diff --git a/build.gradle b/build.gradle
index 872021fb..7af24ef4 100644
--- a/build.gradle
+++ b/build.gradle
@@ -4,7 +4,7 @@ plugins {
}
group 'partner-java-sdk'
-version '0.2.7'
+version '0.2.8'
sourceCompatibility = 1.8
diff --git a/docs/README.md b/docs/README.md
index 78964538..e0ed474d 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -77,7 +77,10 @@ APIサーバがエラーレスポンスを返した場合に使われます。
- [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トークンによる取引作成
@@ -89,6 +92,7 @@ APIサーバがエラーレスポンスを返した場合に使われます。
- [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):
@@ -105,7 +109,9 @@ APIサーバがエラーレスポンスを返した場合に使われます。
### 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コードを読み取ることで取引する
@@ -124,8 +130,14 @@ APIサーバがエラーレスポンスを返した場合に使われます。
- [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): 新規加盟店組織を追加する
@@ -180,6 +192,7 @@ APIサーバがエラーレスポンスを返した場合に使われます。
- [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): 銀行からのチャージ
diff --git a/docs/account.md b/docs/account.md
index 44b41d19..9db6eba5 100644
--- a/docs/account.md
+++ b/docs/account.md
@@ -1,4 +1,11 @@
# Account
+ウォレットを表すデータです。
+CustomerもMerchantも所有し、ウォレット間の送金は取引として記録されます。
+Customerのウォレットはマネー残高(有償バリュー)、ポイント残高(無償バリュー)の2種類の残高をもちます。
+また有効期限別で金額管理しており、有効期限はチャージ時のコンテキストによって決定されます。
+ユーザはマネー別に複数のウォレットを保有することが可能です。
+ただし1マネー1ウォレットのみであり、同一マネーのウォレットを複数所有することはできません。
+
## ListUserAccounts: エンドユーザー、店舗ユーザーのウォレット一覧を表示する
@@ -8,21 +15,22 @@
Request request = new ListUserAccounts(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // userId: ユーザーID
)
- .page(1170) // ページ番号
- .perPage(3512); // 1ページ分の取引数
+ .page(3876) // ページ番号
+ .perPage(5009); // 1ページ分の取引数
```
### Parameters
-**`userId`**
-
-
+#### `userId`
ユーザーIDです。
指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -30,11 +38,14 @@ Request request = new ListUserAccounts(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。デフォルト値は1です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -42,11 +53,14 @@ Request request = new ListUserAccounts(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ当たりのウォレット数です。デフォルト値は50です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -54,6 +68,8 @@ Request request = new ListUserAccounts(
}
```
+
+
成功したときは
@@ -74,8 +90,8 @@ Request request = new CreateUserAccount(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userId: ユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID
)
- .name("qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9") // ウォレット名
- .externalId("iCp3raZonaiDazAfoV") // 外部ID
+ .name("BkYzAxemZaK") // ウォレット名
+ .externalId("wuUfekyaJIsuHhxZpopNYyv6dLAyty2EMgPVlahlWYdbEevp") // 外部ID
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ
```
@@ -83,11 +99,12 @@ Request request = new CreateUserAccount(
### Parameters
-**`userId`**
-
-
+#### `userId`
ユーザーIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -95,13 +112,16 @@ Request request = new CreateUserAccount(
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
マネーIDです。
作成するウォレットのマネーを指定します。このパラメータは必須です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -109,9 +129,12 @@ Request request = new CreateUserAccount(
}
```
-**`name`**
-
+
+
+#### `name`
+
+スキーマ
```json
{
@@ -120,9 +143,12 @@ Request request = new CreateUserAccount(
}
```
-**`externalId`**
-
+
+#### `externalId`
+
+
+スキーマ
```json
{
@@ -131,15 +157,18 @@ Request request = new CreateUserAccount(
}
```
-**`metadata`**
-
+
+#### `metadata`
ウォレットに付加するメタデータをJSON文字列で指定します。
指定できるJSON文字列には以下のような制約があります。
- フラットな構造のJSONを文字列化したものであること。
- keyは最大32文字の文字列(同じkeyを複数指定することはできません)
- valueには128文字以下の文字列が指定できます
+
+スキーマ
+
```json
{
"type": "string",
@@ -147,6 +176,8 @@ Request request = new CreateUserAccount(
}
```
+
+
成功したときは
diff --git a/docs/bank_pay.md b/docs/bank_pay.md
index 2d27c7f4..e5e1620b 100644
--- a/docs/bank_pay.md
+++ b/docs/bank_pay.md
@@ -1,6 +1,59 @@
# BankPay
BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。
+
+## DeleteBank: 銀行口座の削除
+銀行口座を削除します
+
+```JAVA
+Request request = new DeleteBank(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
+);
+
+```
+
+
+
+### Parameters
+#### `userDeviceId`
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `bankId`
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+成功したときは
+[BankDeleted](./responses.md#bank-deleted)
+を返します
+
+
+
+---
+
## ListBanks: 登録した銀行の一覧
@@ -17,9 +70,10 @@ Request request = new ListBanks(
### Parameters
-**`userDeviceId`**
-
+#### `userDeviceId`
+
+スキーマ
```json
{
@@ -28,9 +82,12 @@ Request request = new ListBanks(
}
```
-**`privateMoneyId`**
-
+
+
+#### `privateMoneyId`
+
+スキーマ
```json
{
@@ -39,6 +96,8 @@ Request request = new ListBanks(
}
```
+
+
成功したときは
@@ -57,7 +116,6 @@ Request request = new ListBanks(
ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。
アプリの場合はDeep Linkを使うことを想定しています。
-
```JAVA
Request request = new CreateBank(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID
@@ -65,7 +123,7 @@ Request request = new CreateBank(
"", // callbackUrl: コールバックURL
"ポケペイタロウ" // kana: ユーザーの氏名 (片仮名で指定)
)
- .email("wpVUwFU1am@kd1F.com") // ユーザーのメールアドレス
+ .email("sFDzTIAFGD@PhpB.com") // ユーザーのメールアドレス
.birthdate("19901142"); // 生年月日
```
@@ -73,9 +131,10 @@ Request request = new CreateBank(
### Parameters
-**`userDeviceId`**
-
+#### `userDeviceId`
+
+スキーマ
```json
{
@@ -84,9 +143,12 @@ Request request = new CreateBank(
}
```
-**`privateMoneyId`**
-
+
+
+#### `privateMoneyId`
+
+スキーマ
```json
{
@@ -95,9 +157,12 @@ Request request = new CreateBank(
}
```
-**`callbackUrl`**
-
+
+#### `callbackUrl`
+
+
+スキーマ
```json
{
@@ -106,9 +171,12 @@ Request request = new CreateBank(
}
```
-**`kana`**
-
+
+
+#### `kana`
+
+スキーマ
```json
{
@@ -117,9 +185,12 @@ Request request = new CreateBank(
}
```
-**`email`**
-
+
+#### `email`
+
+
+スキーマ
```json
{
@@ -129,9 +200,12 @@ Request request = new CreateBank(
}
```
-**`birthdate`**
-
+
+
+#### `birthdate`
+
+スキーマ
```json
{
@@ -140,6 +214,8 @@ Request request = new CreateBank(
}
```
+
+
成功したときは
@@ -159,7 +235,7 @@ Request request = new CreateBank(
Request request = new CreateBankTopupTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID
- 8003, // amount: チャージ金額
+ 5538, // amount: チャージ金額
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // bankId: 銀行ID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // requestId: リクエストID
)
@@ -170,9 +246,10 @@ Request request = new CreateBankTopupTransaction(
### Parameters
-**`userDeviceId`**
-
+#### `userDeviceId`
+
+スキーマ
```json
{
@@ -181,9 +258,12 @@ Request request = new CreateBankTopupTransaction(
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
+
+
+スキーマ
```json
{
@@ -192,9 +272,12 @@ Request request = new CreateBankTopupTransaction(
}
```
-**`amount`**
-
+
+
+#### `amount`
+
+スキーマ
```json
{
@@ -203,9 +286,12 @@ Request request = new CreateBankTopupTransaction(
}
```
-**`bankId`**
-
+
+
+#### `bankId`
+
+スキーマ
```json
{
@@ -214,9 +300,12 @@ Request request = new CreateBankTopupTransaction(
}
```
-**`receiverUserId`**
-
+
+#### `receiverUserId`
+
+
+スキーマ
```json
{
@@ -225,9 +314,12 @@ Request request = new CreateBankTopupTransaction(
}
```
-**`requestId`**
-
+
+
+#### `requestId`
+
+スキーマ
```json
{
@@ -236,6 +328,8 @@ Request request = new CreateBankTopupTransaction(
}
```
+
+
成功したときは
diff --git a/docs/bill.md b/docs/bill.md
index 3aaf5d95..4ea30539 100644
--- a/docs/bill.md
+++ b/docs/bill.md
@@ -1,5 +1,16 @@
# Bill
-支払いQRコード
+支払いQRコード(トークン)を表すデータです。
+URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。
+ログイン済みユーザアプリで読込むことで、支払い取引を作成します。
+設定される支払い金額(amount)は、固定値とユーザによる自由入力の2パターンがあります。
+amountが空の場合は、ユーザによる自由入力で受け付けた金額で支払いを行います。
+有効期限は比較的長命で利用される事例が多いです。
+
+複数マネー対応支払いQRコードについて:
+オプショナルで複数のマネーを1つの支払いQRコードに設定可能です。
+その場合ユーザ側でどのマネーで支払うか指定可能です。
+複数マネー対応支払いQRコードにはデフォルトのマネーウォレットを設定する必要があり、ユーザがマネーを明示的に選択しなかった場合はデフォルトのマネーによる支払いになります。
+
## ListBills: 支払いQRコード一覧を表示する
@@ -7,18 +18,18 @@
```JAVA
Request request = new ListBills()
- .page(2897) // ページ番号
- .perPage(1066) // 1ページの表示数
- .billId("r") // 支払いQRコードのID
+ .page(2050) // ページ番号
+ .perPage(1915) // 1ページの表示数
+ .billId("cyY8O4aW8") // 支払いQRコードのID
.privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID
- .organizationCode("b--BUl96") // 組織コード
+ .organizationCode("VE256za--m76DX-ze1-4y--dia-yaMgF") // 組織コード
.description("test bill") // 取引説明文
- .createdFrom("2020-02-16T12:28:09.000000Z") // 作成日時(起点)
- .createdTo("2022-11-02T03:28:47.000000Z") // 作成日時(終点)
+ .createdFrom("2020-08-01T23:02:33.000000Z") // 作成日時(起点)
+ .createdTo("2024-10-28T21:10:42.000000Z") // 作成日時(終点)
.shopName("bill test shop1") // 店舗名
.shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID
- .lowerLimitAmount(8267) // 金額の範囲によるフィルタ(下限)
- .upperLimitAmount(7846) // 金額の範囲によるフィルタ(上限)
+ .lowerLimitAmount(981) // 金額の範囲によるフィルタ(下限)
+ .upperLimitAmount(5036) // 金額の範囲によるフィルタ(上限)
.setDisabled(true); // 支払いQRコードが無効化されているかどうか
```
@@ -26,11 +37,12 @@ Request request = new ListBills()
### Parameters
-**`page`**
-
-
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -38,11 +50,14 @@ Request request = new ListBills()
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページに表示する支払いQRコードの数です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -50,22 +65,28 @@ Request request = new ListBills()
}
```
-**`billId`**
-
+
+#### `billId`
支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。
+
+スキーマ
+
```json
{
"type": "string"
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
支払いQRコードの送金元ウォレットのマネーIDでフィルターします。
+
+スキーマ
+
```json
{
"type": "string",
@@ -73,11 +94,14 @@ Request request = new ListBills()
}
```
-**`organizationCode`**
-
+
+#### `organizationCode`
支払いQRコードの送金元店舗が所属する組織の組織コードでフィルターします。
+
+スキーマ
+
```json
{
"type": "string",
@@ -86,11 +110,14 @@ Request request = new ListBills()
}
```
-**`description`**
-
+
+#### `description`
支払いQRコードを読み取ることで作られた取引の説明文としてアプリなどに表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -98,13 +125,16 @@ Request request = new ListBills()
}
```
-**`createdFrom`**
-
+
+#### `createdFrom`
支払いQRコードの作成日時でフィルターします。
これ以降に作成された支払いQRコードのみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -112,13 +142,16 @@ Request request = new ListBills()
}
```
-**`createdTo`**
-
+
+#### `createdTo`
支払いQRコードの作成日時でフィルターします。
これ以前に作成された支払いQRコードのみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -126,11 +159,14 @@ Request request = new ListBills()
}
```
-**`shopName`**
-
+
+#### `shopName`
支払いQRコードを作成した店舗名でフィルターします。店舗名は部分一致で検索されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -138,11 +174,14 @@ Request request = new ListBills()
}
```
-**`shopId`**
-
+
+#### `shopId`
支払いQRコードを作成した店舗IDでフィルターします。
+
+スキーマ
+
```json
{
"type": "string",
@@ -150,11 +189,14 @@ Request request = new ListBills()
}
```
-**`lowerLimitAmount`**
-
+
+#### `lowerLimitAmount`
支払いQRコードの金額の下限を指定してフィルターします。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -163,11 +205,14 @@ Request request = new ListBills()
}
```
-**`upperLimitAmount`**
-
+
+#### `upperLimitAmount`
支払いQRコードの金額の上限を指定してフィルターします。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -176,17 +221,22 @@ Request request = new ListBills()
}
```
-**`setDisabled`**
-
+
+#### `setDisabled`
支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
+
+
成功したときは
@@ -212,7 +262,7 @@ Request request = new CreateBill(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 支払いマネーのマネーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 支払い先(受け取り人)の店舗ID
)
- .amount(7728.0) // 支払い額
+ .amount(4209.0) // 支払い額
.description("test bill"); // 説明文(アプリ上で取引の説明文として表示される)
```
@@ -220,10 +270,12 @@ Request request = new CreateBill(
### Parameters
-**`amount`**
-
-
+#### `amount`
支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。
+また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。
+
+
+スキーマ
```json
{
@@ -233,9 +285,12 @@ Request request = new CreateBill(
}
```
-**`privateMoneyId`**
-
+
+
+#### `privateMoneyId`
+
+スキーマ
```json
{
@@ -244,9 +299,12 @@ Request request = new CreateBill(
}
```
-**`shopId`**
-
+
+
+#### `shopId`
+
+スキーマ
```json
{
@@ -255,9 +313,12 @@ Request request = new CreateBill(
}
```
-**`description`**
-
+
+#### `description`
+
+
+スキーマ
```json
{
@@ -266,6 +327,8 @@ Request request = new CreateBill(
}
```
+
+
成功したときは
@@ -275,6 +338,7 @@ Request request = 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|
@@ -285,6 +349,46 @@ Request request = new CreateBill(
+---
+
+
+
+## GetBill: 支払いQRコードの表示
+支払いQRコードの内容を表示します。
+
+```JAVA
+Request request = new GetBill(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードのID
+);
+
+```
+
+
+
+### Parameters
+#### `billId`
+表示する支払いQRコードのIDです。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+成功したときは
+[Bill](./responses.md#bill)
+を返します
+
+
+
---
@@ -296,7 +400,7 @@ Request request = new CreateBill(
Request request = new UpdateBill(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードのID
)
- .amount(4321.0) // 支払い額
+ .amount(7704.0) // 支払い額
.description("test bill") // 説明文
.setDisabled(false); // 無効化されているかどうか
@@ -305,11 +409,12 @@ Request request = new UpdateBill(
### Parameters
-**`billId`**
-
-
+#### `billId`
更新対象の支払いQRコードのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -317,10 +422,13 @@ Request request = new UpdateBill(
}
```
-**`amount`**
-
+
+
+#### `amount`
+支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。
-支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。
+
+スキーマ
```json
{
@@ -330,11 +438,14 @@ Request request = new UpdateBill(
}
```
-**`description`**
-
+
+#### `description`
支払いQRコードの詳細説明文です。アプリ上で取引の説明文として表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -342,17 +453,22 @@ Request request = new UpdateBill(
}
```
-**`setDisabled`**
-
+
+#### `setDisabled`
支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
+
+
成功したときは
@@ -364,4 +480,183 @@ Request request = new UpdateBill(
---
+
+## CreatePaymentTransactionWithBill: 支払いQRコードを読み取ることで支払いをする
+通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。
+
+エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。
+支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。
+
+```JAVA
+Request request = new CreatePaymentTransactionWithBill(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // billId: 支払いQRコードのID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // customerId: エンドユーザーのID
+)
+ .metadata("{\"key\":\"value\"}") // 取引メタデータ
+ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID
+ .strategy("point-preferred"); // 支払い時の残高消費方式
+
+```
+
+
+
+### Parameters
+#### `billId`
+支払いQRコードのIDです。
+
+QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `customerId`
+エンドユーザーIDです。
+
+支払いを行うエンドユーザーを指定します。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `metadata`
+取引作成時に指定されるメタデータです。
+
+任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "json"
+}
+```
+
+
+
+#### `requestId`
+取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
+
+取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
+
+リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
+既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `strategy`
+支払い時に残高がどのように消費されるかを指定します。
+デフォルトでは point-preferred (ポイント優先)が採用されます。
+
+- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作)
+- money-only: マネー残高のみから消費され、ポイント残高は使われません
+
+マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "enum": [
+ "point-preferred",
+ "money-only"
+ ]
+}
+```
+
+
+
+
+
+成功したときは
+[TransactionDetail](./responses.md#transaction-detail)
+を返します
+
+### Error Responses
+|status|type|ja|en|
+|---|---|---|---|
+|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
+|422|disabled_bill|支払いQRコードが無効です|Bill is disabled|
+|422|customer_user_not_found||The customer user is not found|
+|422|bill_not_found|支払いQRコードが見つかりません|Bill not found|
+|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.|
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
+|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
+|422|private_money_closed|このマネーは解約されています|This money was closed|
+|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled|
+|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account|
+|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough|
+|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money|
+|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer|
+|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit|
+|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer|
+|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.|
+|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount|
+|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive|
+|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time|
+|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account|
+|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.|
+|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.|
+|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.|
+|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.|
+|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.|
+|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.|
+|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.|
+|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.|
+|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.|
+|422|account_suspended|アカウントは停止されています|The account is suspended|
+|422|account_closed|アカウントは退会しています|The account is closed|
+|422|customer_account_not_found||The customer account is not found|
+|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found|
+|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts|
+|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed|
+|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user|
+|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated|
+|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account|
+|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid|
+|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency|
+|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id|
+|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata|
+|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format|
+|503|temporarily_unavailable||Service Unavailable|
+
+
+
+---
+
+
diff --git a/docs/bulk.md b/docs/bulk.md
index 2659b647..a3e86929 100644
--- a/docs/bulk.md
+++ b/docs/bulk.md
@@ -1,4 +1,10 @@
# Bulk
+一括取引処理を表すデータです。
+CSVファイルのアップロードにより、複数件の取引をバッチ処理する非同期APIを提供します。
+一括処理のステータス(submitted, examining, queued, processing, error, done)を監視できます。
+処理完了時にコールバックURLへの通知も可能です。
+また、スケジュール実行時刻を指定して将来の時点で処理を実行することもできます。
+
## BulkCreateTransaction: CSVファイル一括取引
@@ -6,23 +12,25 @@ CSVファイルから一括取引をします。
```JAVA
Request request = new BulkCreateTransaction(
- "oMxEFE11voG9m7g", // name: 一括取引タスク名
- "WI", // content: 取引する情報のCSV
- "lidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6" // requestId: リクエストID
+ "UFCwG4QGOnpUXmwhMFk", // name: 一括取引タスク名
+ "ufFPOzF9Lv", // content: 取引する情報のCSV
+ "v7JJIkMwpNGlwPY7w3AePumXzLvyF75pQlwz" // requestId: リクエストID
)
- .description("DyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2C") // 一括取引の説明
- .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // マネーID
+ .description("sKLA3j0RsOTGgnfI7tlICoQDpnLAiZiYSVIBpBUCCSgk4") // 一括取引の説明
+ .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID
+ .callbackUrl("https://gnk7sP6E.example.com"); // コールバックURL
```
### Parameters
-**`name`**
-
-
+#### `name`
一括取引タスクの管理用の名前です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -30,11 +38,14 @@ Request request = new BulkCreateTransaction(
}
```
-**`description`**
-
+
+#### `description`
一括取引タスクの管理用の説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -42,9 +53,9 @@ Request request = new BulkCreateTransaction(
}
```
-**`content`**
-
+
+#### `content`
一括取引する情報を書いたCSVの文字列です。
1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。
カラムは以下の7つです。任意のカラムには空文字を指定します。
@@ -68,17 +79,23 @@ Request request = new BulkCreateTransaction(
- `point_expires_at`: ポイントの有効期限
- 任意。指定がないときはマネーに設定された有効期限を適用
+
+スキーマ
+
```json
{
"type": "string"
}
```
-**`requestId`**
-
+
+#### `requestId`
重複したリクエストを判断するためのユニークID。ランダムな36字の文字列を生成して渡してください。
+
+スキーマ
+
```json
{
"type": "string",
@@ -87,11 +104,14 @@ Request request = new BulkCreateTransaction(
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
マネーIDです。 マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -99,6 +119,46 @@ Request request = new BulkCreateTransaction(
}
```
+
+
+#### `callbackUrl`
+一括取引タスクが終了したときに通知されるコールバック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"
+}
+```
+
+
+
成功したときは
@@ -108,6 +168,7 @@ Request request = new BulkCreateTransaction(
### 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|
diff --git a/docs/campaign.md b/docs/campaign.md
index 5e882434..affb1b48 100644
--- a/docs/campaign.md
+++ b/docs/campaign.md
@@ -1,4 +1,9 @@
# Campaign
+自動ポイント還元ルールの設定を表すデータです。
+Pokepay管理画面やPartnerSDK経由でルール登録、更新が可能です。
+取引(Transaction)または外部決済イベント(ExternalTransaction)の内容によって還元するポイント額を計算し、自動で付与するルールを設定可能です。
+targetとして取引または外部決済イベントを選択して個別設定します。
+
## ListCampaigns: キャンペーン一覧を取得する
@@ -10,9 +15,9 @@
Request request = new ListCampaigns(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID
)
- .setOngoing(false) // 現在適用可能なキャンペーンかどうか
- .availableFrom("2023-04-20T21:23:50.000000Z") // 指定された日時以降に適用可能期間が含まれているか
- .availableTo("2020-11-27T03:39:30.000000Z") // 指定された日時以前に適用可能期間が含まれているか
+ .setOngoing(true) // 現在適用可能なキャンペーンかどうか
+ .availableFrom("2025-01-10T07:45:07.000000Z") // 指定された日時以降に適用可能期間が含まれているか
+ .availableTo("2026-02-19T03:35:37.000000Z") // 指定された日時以前に適用可能期間が含まれているか
.page(1) // ページ番号
.perPage(20); // 1ページ分の取得数
@@ -21,13 +26,14 @@ Request request = new ListCampaigns(
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
マネーIDです。
フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -35,25 +41,31 @@ Request request = new ListCampaigns(
}
```
-**`setOngoing`**
-
+
+#### `setOngoing`
有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。
真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。
デフォルトでは未指定(フィルターなし)です。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`availableFrom`**
-
+
+#### `availableFrom`
キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。
デフォルトでは未指定(フィルターなし)です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -61,12 +73,15 @@ Request request = new ListCampaigns(
}
```
-**`availableTo`**
-
+
+#### `availableTo`
キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。
デフォルトでは未指定(フィルターなし)です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -74,11 +89,14 @@ Request request = new ListCampaigns(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -86,11 +104,14 @@ Request request = new ListCampaigns(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取得数です。デフォルトでは 20 になっています。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -99,6 +120,8 @@ Request request = new ListCampaigns(
}
```
+
+
成功したときは
@@ -120,7 +143,6 @@ Request request = new ListCampaigns(
## CreateCampaign: ポイント付与キャンペーンを作る
ポイント付与キャンペーンを作成します。
-
```JAVA
JsonObject items = new JsonObject();
items.addProperty("point_amount", 5);
@@ -130,34 +152,21 @@ items.addProperty("subject_less_than", 5000);
JsonObject items2 = new JsonObject();
items2.addProperty("point_amount", 5);
items2.addProperty("point_amount_unit", "percent");
-items2.addProperty("subject_more_than_or_equal", 1000);
-items2.addProperty("subject_less_than", 5000);
+items2.addProperty("product_code", "4912345678904");
+items2.addProperty("is_multiply_by_count", true);
+items2.addProperty("required_count", 2);
JsonObject items3 = new JsonObject();
-items3.addProperty("point_amount", 5);
-items3.addProperty("point_amount_unit", "percent");
-items3.addProperty("subject_more_than_or_equal", 1000);
-items3.addProperty("subject_less_than", 5000);
+items3.addProperty("product_code", "4912345678904");
+items3.addProperty("classification_code", "c123");
JsonObject items4 = new JsonObject();
-items4.addProperty("point_amount", 5);
-items4.addProperty("point_amount_unit", "percent");
items4.addProperty("product_code", "4912345678904");
-items4.addProperty("is_multiply_by_count", true);
-items4.addProperty("required_count", 2);
+items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
-items5.addProperty("point_amount", 5);
-items5.addProperty("point_amount_unit", "percent");
items5.addProperty("product_code", "4912345678904");
-items5.addProperty("is_multiply_by_count", true);
-items5.addProperty("required_count", 2);
+items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
-items6.addProperty("product_code", "4912345678904");
-items6.addProperty("classification_code", "c123");
-JsonObject items7 = new JsonObject();
-items7.addProperty("from", "12:00");
-items7.addProperty("to", "23:59");
-JsonObject items8 = new JsonObject();
-items8.addProperty("from", "12:00");
-items8.addProperty("to", "23:59");
+items6.addProperty("from", "12:00");
+items6.addProperty("to", "23:59");
JsonObject applicable_account_metadata = new JsonObject();
applicable_account_metadata.addProperty("key", "sex");
applicable_account_metadata.addProperty("value", "male");
@@ -165,50 +174,51 @@ JsonObject applicable_transaction_metadata = new JsonObject();
applicable_transaction_metadata.addProperty("key", "rank");
applicable_transaction_metadata.addProperty("value", "bronze");
Request request = new CreateCampaign(
- "bdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMa", // name: キャンペーン名
+ "MgQrA88yuG2X4KRlpHewo2CgFQkdXPF4V9XHbL6zY6vqwgcI7YPEPHgGnEdzhGAMty3evJwcetItJxO93cN0lVNG0lwTGLR8ci2cIIE66fhj", // name: キャンペーン名
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID
- "2020-05-27T16:30:33.000000Z", // startsAt: キャンペーン開始日時
- "2022-03-29T07:15:33.000000Z", // endsAt: キャンペーン終了日時
- 4491, // priority: キャンペーンの適用優先度
- "external-transaction" // event: イベント種別
+ "2022-01-16T23:41:19.000000Z", // startsAt: キャンペーン開始日時
+ "2025-01-07T14:58:11.000000Z", // endsAt: キャンペーン終了日時
+ 9838, // priority: キャンペーンの適用優先度
+ "payment" // event: イベント種別
)
.bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント負担先店舗ID
- .description("7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO") // キャンペーンの説明文
+ .description("6iiZ64HpvFGkJr1u") // キャンペーンの説明文
.status("disabled") // キャンペーン作成時の状態
- .pointExpiresAt("2023-06-21T16:01:16.000000Z") // ポイント有効期限(絶対日時指定)
- .pointExpiresInDays(5365) // ポイント有効期限(相対日数指定)
- .setExclusive(false) // キャンペーンの重複設定
- .subject("all") // ポイント付与の対象金額の種別
- .amountBasedPointRules(new Object[]{items,items2,items3}) // 取引金額ベースのポイント付与ルール
- .productBasedPointRules(new Object[]{items4,items5}) // 商品情報ベースのポイント付与ルール
- .blacklistedProductRules(new Object[]{items6}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト
- .applicableDaysOfWeek(new Integer[]{0,0,5}) // キャンペーンを適用する曜日 (複数指定)
- .applicableTimeRanges(new Object[]{items7,items8}) // キャンペーンを適用する時間帯 (複数指定)
- .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト
- .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)
- .minimumNumberOfProducts(3310) // キャンペーンを適用する1会計内の商品個数の下限
- .minimumNumberOfAmount(9962) // キャンペーンを適用する1会計内の商品総額の下限
- .minimumNumberForCombinationPurchase(1410) // 複数種類の商品を同時購入するときの商品種別数の下限
+ .pointExpiresAt("2023-03-06T09:12:15.000000Z") // ポイント有効期限(絶対日時指定)
+ .pointExpiresInDays(6878) // ポイント有効期限(相対日数指定)
+ .setExclusive(true) // キャンペーンの重複設定
+ .subject("money") // ポイント付与の対象金額の種別
+ .amountBasedPointRules(new Object[]{items}) // 取引金額ベースのポイント付与ルール
+ .productBasedPointRules(new Object[]{items2}) // 商品情報ベースのポイント付与ルール
+ .blacklistedProductRules(new Object[]{items3,items4,items5}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト
+ .applicableDaysOfWeek(new Integer[]{5}) // キャンペーンを適用する曜日 (複数指定)
+ .applicableTimeRanges(new Object[]{items6}) // キャンペーンを適用する時間帯 (複数指定)
+ .applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト
+ .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)
+ .minimumNumberOfProducts(9699) // キャンペーンを適用する1会計内の商品個数の下限
+ .minimumNumberOfAmount(6716) // キャンペーンを適用する1会計内の商品総額の下限
+ .minimumNumberForCombinationPurchase(2048) // 複数種類の商品を同時購入するときの商品種別数の下限
.existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
- .maxPointAmount(4219) // キャンペーンによって付与されるポイントの上限
- .maxTotalPointAmount(3453) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限
+ .maxPointAmount(4834) // キャンペーンによって付与されるポイントの上限
+ .maxTotalPointAmount(3869) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限
.destPrivateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント付与先となるマネーID
.applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
.applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
- .budgetCapsAmount(1859163538); // キャンペーン予算上限
+ .budgetCapsAmount(1931083884); // キャンペーン予算上限
```
### Parameters
-**`name`**
-
-
+#### `name`
キャンペーン名です(必須項目)。
ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -216,11 +226,14 @@ Request request = new CreateCampaign(
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
キャンペーン対象のマネーのIDです(必須項目)。
+
+スキーマ
+
```json
{
"type": "string",
@@ -228,13 +241,16 @@ Request request = new CreateCampaign(
}
```
-**`startsAt`**
-
+
+#### `startsAt`
キャンペーン開始日時です(必須項目)。
キャンペーン期間中のみポイントが付与されます。
開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -242,13 +258,16 @@ Request request = new CreateCampaign(
}
```
-**`endsAt`**
-
+
+#### `endsAt`
キャンペーン終了日時です(必須項目)。
キャンペーン期間中のみポイントが付与されます。
開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -256,23 +275,26 @@ Request request = new CreateCampaign(
}
```
-**`priority`**
-
+
+#### `priority`
キャンペーンの適用優先度です。
優先度が大きいものから順に適用判定されていきます。
キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "integer"
}
```
-**`event`**
-
+
+#### `event`
キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。
以下のいずれかを指定できます。
@@ -284,6 +306,9 @@ Request request = new CreateCampaign(
3. external-transaction
ポケペイ外の取引(現金決済など)
+
+スキーマ
+
```json
{
"type": "string",
@@ -295,12 +320,15 @@ Request request = new CreateCampaign(
}
```
-**`bearPointShopId`**
-
+
+#### `bearPointShopId`
ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。
ポイント負担先店舗は後から更新することはできません。
+
+スキーマ
+
```json
{
"type": "string",
@@ -308,11 +336,14 @@ Request request = new CreateCampaign(
}
```
-**`description`**
-
+
+#### `description`
キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -320,9 +351,9 @@ Request request = new CreateCampaign(
}
```
-**`status`**
-
+
+#### `status`
キャンペーン作成時の状態を指定します。デフォルトではenabledです。
以下のいずれかを指定できます。
@@ -332,6 +363,9 @@ Request request = new CreateCampaign(
2. disabled
無効
+
+スキーマ
+
```json
{
"type": "string",
@@ -342,12 +376,15 @@ Request request = new CreateCampaign(
}
```
-**`pointExpiresAt`**
-
+
+#### `pointExpiresAt`
キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -355,12 +392,15 @@ Request request = new CreateCampaign(
}
```
-**`pointExpiresInDays`**
-
+
+#### `pointExpiresInDays`
キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -368,23 +408,26 @@ Request request = new CreateCampaign(
}
```
-**`setExclusive`**
-
+
+#### `setExclusive`
キャンペーンの重ね掛けを行うかどうかのフラグです。
これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。
falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`subject`**
-
+
+#### `subject`
ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。
eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。
@@ -397,6 +440,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った
all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む)
注意: event を topup にしたときはポイントの付与に対しても適用されます
+
+スキーマ
+
```json
{
"type": "string",
@@ -407,9 +453,9 @@ all を指定すると決済額全体を対象にします (「ポイント」
}
```
-**`amountBasedPointRules`**
-
+
+#### `amountBasedPointRules`
金額をベースとしてポイント付与を行うルールを指定します。
amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。
各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。
@@ -433,6 +479,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し
]
```
+
+スキーマ
+
```json
{
"type": "array",
@@ -442,9 +491,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し
}
```
-**`productBasedPointRules`**
-
+
+#### `productBasedPointRules`
商品情報をベースとしてポイント付与を行うルールを指定します。
ルールは商品ごとに設定可能で、ルールの配列として指定します。
amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。
@@ -491,6 +540,9 @@ event が payment か external-transaction の時のみ有効です。
]
```
+
+スキーマ
+
```json
{
"type": "array",
@@ -500,13 +552,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`blacklistedProductRules`**
-
+
+#### `blacklistedProductRules`
商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。
除外対象の商品コード、または分類コードのパターンの配列として指定します。
取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。
+
+スキーマ
+
```json
{
"type": "array",
@@ -516,13 +571,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`applicableDaysOfWeek`**
-
+
+#### `applicableDaysOfWeek`
キャンペーンを適用する曜日を指定します (複数指定)。
曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。
指定しなかった場合は全日を対象にします (曜日による適用条件なし)
+
+スキーマ
+
```json
{
"type": "array",
@@ -534,13 +592,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`applicableTimeRanges`**
-
+
+#### `applicableTimeRanges`
キャンペーンを適用する時間帯を指定します (複数指定可)。
時間帯はfromとtoからなるオブジェクトで指定します。
fromとtoは両方必要です。
+
+スキーマ
+
```json
{
"type": "array",
@@ -550,12 +611,15 @@ fromとtoは両方必要です。
}
```
-**`applicableShopIds`**
-
+
+#### `applicableShopIds`
キャンペーンを適用する店舗IDを指定します (複数指定)。
指定しなかった場合は全店舗が対象になります。
+
+スキーマ
+
```json
{
"type": "array",
@@ -566,13 +630,16 @@ fromとtoは両方必要です。
}
```
-**`blacklistedShopIds`**
-
+
+#### `blacklistedShopIds`
キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。
このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。
blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。
+
+スキーマ
+
```json
{
"type": "array",
@@ -583,11 +650,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
-**`minimumNumberOfProducts`**
-
+
+#### `minimumNumberOfProducts`
このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -595,11 +665,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
-**`minimumNumberOfAmount`**
-
+
+#### `minimumNumberOfAmount`
このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -607,9 +680,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
-**`minimumNumberForCombinationPurchase`**
-
+
+#### `minimumNumberForCombinationPurchase`
複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。
このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。
@@ -682,6 +755,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
+
+スキーマ
+
```json
{
"type": "integer",
@@ -689,9 +765,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
-**`existInEachProductGroups`**
-
+
+#### `existInEachProductGroups`
複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。
このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。
@@ -772,19 +848,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"
}
```
-**`maxPointAmount`**
-
+
+#### `maxPointAmount`
キャンペーンによって付与されるポイントの上限を指定します。デフォルトは未指定です。
このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -792,14 +874,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`maxTotalPointAmount`**
-
+
+#### `maxTotalPointAmount`
キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。
このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。
累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -807,9 +892,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`destPrivateMoneyId`**
-
+
+#### `destPrivateMoneyId`
キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。
ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。
@@ -820,6 +905,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -827,9 +915,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`applicableAccountMetadata`**
-
+
+#### `applicableAccountMetadata`
ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。
@@ -856,15 +944,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+スキーマ
+
```json
{
"type": "object"
}
```
-**`applicableTransactionMetadata`**
-
+
+#### `applicableTransactionMetadata`
取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。
@@ -891,20 +982,26 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+スキーマ
+
```json
{
"type": "object"
}
```
-**`budgetCapsAmount`**
-
+
+#### `budgetCapsAmount`
キャンペーンの予算上限を指定します。デフォルトは未指定です。
このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。
一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -913,6 +1010,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+
成功したときは
@@ -952,13 +1051,14 @@ Request request = new GetCampaign(
### Parameters
-**`campaignId`**
-
-
+#### `campaignId`
キャンペーンIDです。
指定したIDのキャンペーンを取得します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -966,6 +1066,8 @@ Request request = new GetCampaign(
}
```
+
+
成功したときは
@@ -981,7 +1083,6 @@ Request request = new GetCampaign(
## UpdateCampaign: ポイント付与キャンペーンを更新する
ポイント付与キャンペーンを更新します。
-
```JAVA
JsonObject items = new JsonObject();
items.addProperty("point_amount", 5);
@@ -1001,23 +1102,11 @@ items3.addProperty("product_code", "4912345678904");
items3.addProperty("is_multiply_by_count", true);
items3.addProperty("required_count", 2);
JsonObject items4 = new JsonObject();
-items4.addProperty("point_amount", 5);
-items4.addProperty("point_amount_unit", "percent");
items4.addProperty("product_code", "4912345678904");
-items4.addProperty("is_multiply_by_count", true);
-items4.addProperty("required_count", 2);
+items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
-items5.addProperty("product_code", "4912345678904");
-items5.addProperty("classification_code", "c123");
-JsonObject items6 = new JsonObject();
-items6.addProperty("from", "12:00");
-items6.addProperty("to", "23:59");
-JsonObject items7 = new JsonObject();
-items7.addProperty("from", "12:00");
-items7.addProperty("to", "23:59");
-JsonObject items8 = new JsonObject();
-items8.addProperty("from", "12:00");
-items8.addProperty("to", "23:59");
+items5.addProperty("from", "12:00");
+items5.addProperty("to", "23:59");
JsonObject applicable_account_metadata = new JsonObject();
applicable_account_metadata.addProperty("key", "sex");
applicable_account_metadata.addProperty("value", "male");
@@ -1027,46 +1116,47 @@ applicable_transaction_metadata.addProperty("value", "bronze");
Request request = new UpdateCampaign(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // campaignId: キャンペーンID
)
- .name("tzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2") // キャンペーン名
- .startsAt("2022-07-19T10:00:07.000000Z") // キャンペーン開始日時
- .endsAt("2024-05-22T15:43:46.000000Z") // キャンペーン終了日時
- .priority(7347) // キャンペーンの適用優先度
- .event("payment") // イベント種別
- .description("98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXdvL") // キャンペーンの説明文
- .status("disabled") // キャンペーン作成時の状態
- .pointExpiresAt("2023-11-21T12:04:13.000000Z") // ポイント有効期限(絶対日時指定)
- .pointExpiresInDays(740) // ポイント有効期限(相対日数指定)
- .setExclusive(true) // キャンペーンの重複設定
- .subject("all") // ポイント付与の対象金額の種別
+ .name("rDsQyk3kwOisNW9XsMHBVPsrsYBnLGXRYzu4noxPXNWpdUvBBp2JsuVIINCRpxja7me48LNXqpqJtjZwJILsuUBm8J0tu2v6zDKp9iO7Ari3UHmo6XPE5Oqy1DljVh9nsqgzongKg5SFSpcaiWqMVEyXiabD2fPkrS1NvYbmwucdTPjBOMyHVeFGY5vB7gjE0J3rzoZQgeuXW4rw3Ob3VU") // キャンペーン名
+ .startsAt("2020-06-10T16:30:09.000000Z") // キャンペーン開始日時
+ .endsAt("2024-09-08T03:51:51.000000Z") // キャンペーン終了日時
+ .priority(7392) // キャンペーンの適用優先度
+ .event("external-transaction") // イベント種別
+ .description("zDljJ6klDtciJUcw1wir4yYsQVBNqeXloDbzzGADkOfMAKTboQcaiYXr4rnNnjCoeQHMuXiGNUysmU86lvAOTbcLzXO1sbMRuBNUlL6K0ReLv75kg6qcs3cEpI1m3wABqtL3bdaVTKdkTjUxGpAh3awQs") // キャンペーンの説明文
+ .status("enabled") // キャンペーン作成時の状態
+ .pointExpiresAt("2020-05-22T00:56:03.000000Z") // ポイント有効期限(絶対日時指定)
+ .pointExpiresInDays(8167) // ポイント有効期限(相対日数指定)
+ .setExclusive(false) // キャンペーンの重複設定
+ .subject("money") // ポイント付与の対象金額の種別
.amountBasedPointRules(new Object[]{items}) // 取引金額ベースのポイント付与ルール
- .productBasedPointRules(new Object[]{items2,items3,items4}) // 商品情報ベースのポイント付与ルール
- .blacklistedProductRules(new Object[]{items5}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト
- .applicableDaysOfWeek(new Integer[]{1,5}) // キャンペーンを適用する曜日 (複数指定)
- .applicableTimeRanges(new Object[]{items6,items7,items8}) // キャンペーンを適用する時間帯 (複数指定)
+ .productBasedPointRules(new Object[]{items2,items3}) // 商品情報ベースのポイント付与ルール
+ .blacklistedProductRules(new Object[]{items4}) // 商品情報ベースのキャンペーンで除外対象にする商品リスト
+ .applicableDaysOfWeek(new Integer[]{1}) // キャンペーンを適用する曜日 (複数指定)
+ .applicableTimeRanges(new Object[]{items5}) // キャンペーンを適用する時間帯 (複数指定)
.applicableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象となる店舗IDのリスト
- .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)
- .minimumNumberOfProducts(7318) // キャンペーンを適用する1会計内の商品個数の下限
- .minimumNumberOfAmount(9052) // キャンペーンを適用する1会計内の商品総額の下限
- .minimumNumberForCombinationPurchase(6125) // 複数種類の商品を同時購入するときの商品種別数の下限
- .existInEachProductGroups(false) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
- .maxPointAmount(5449) // キャンペーンによって付与されるポイントの上限
- .maxTotalPointAmount(1307) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限
+ .blacklistedShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)
+ .minimumNumberOfProducts(5653) // キャンペーンを適用する1会計内の商品個数の下限
+ .minimumNumberOfAmount(5978) // キャンペーンを適用する1会計内の商品総額の下限
+ .minimumNumberForCombinationPurchase(8470) // 複数種類の商品を同時購入するときの商品種別数の下限
+ .existInEachProductGroups(true) // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
+ .maxPointAmount(7507) // キャンペーンによって付与されるポイントの上限
+ .maxTotalPointAmount(1370) // キャンペーンによって付与されるの1人当たりの累計ポイントの上限
.applicableAccountMetadata(applicable_account_metadata) // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
.applicableTransactionMetadata(applicable_transaction_metadata) // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
- .budgetCapsAmount(456514657); // キャンペーン予算上限
+ .budgetCapsAmount(323964643); // キャンペーン予算上限
```
### Parameters
-**`campaignId`**
-
-
+#### `campaignId`
キャンペーンIDです。
指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1074,13 +1164,16 @@ Request request = new UpdateCampaign(
}
```
-**`name`**
-
+
+#### `name`
キャンペーン名です。
ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1088,13 +1181,16 @@ Request request = new UpdateCampaign(
}
```
-**`startsAt`**
-
+
+#### `startsAt`
キャンペーン開始日時です。
キャンペーン期間中のみポイントが付与されます。
開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1102,13 +1198,16 @@ Request request = new UpdateCampaign(
}
```
-**`endsAt`**
-
+
+#### `endsAt`
キャンペーン終了日時です。
キャンペーン期間中のみポイントが付与されます。
開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1116,23 +1215,26 @@ Request request = new UpdateCampaign(
}
```
-**`priority`**
-
+
+#### `priority`
キャンペーンの適用優先度です。
優先度が大きいものから順に適用判定されていきます。
キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。
+
+スキーマ
+
```json
{
"type": "integer"
}
```
-**`event`**
-
+
+#### `event`
キャンペーンのトリガーとなるイベントの種類を指定します。
以下のいずれかを指定できます。
@@ -1144,6 +1246,9 @@ Request request = new UpdateCampaign(
3. external-transaction
ポケペイ外の取引(現金決済など)
+
+スキーマ
+
```json
{
"type": "string",
@@ -1155,11 +1260,14 @@ Request request = new UpdateCampaign(
}
```
-**`description`**
-
+
+#### `description`
キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1167,9 +1275,9 @@ Request request = new UpdateCampaign(
}
```
-**`status`**
-
+
+#### `status`
キャンペーン作成時の状態を指定します。デフォルトではenabledです。
以下のいずれかを指定できます。
@@ -1179,6 +1287,9 @@ Request request = new UpdateCampaign(
2. disabled
無効
+
+スキーマ
+
```json
{
"type": "string",
@@ -1189,12 +1300,15 @@ Request request = new UpdateCampaign(
}
```
-**`pointExpiresAt`**
-
+
+#### `pointExpiresAt`
キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1202,12 +1316,15 @@ Request request = new UpdateCampaign(
}
```
-**`pointExpiresInDays`**
-
+
+#### `pointExpiresInDays`
キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1215,23 +1332,26 @@ Request request = new UpdateCampaign(
}
```
-**`setExclusive`**
-
+
+#### `setExclusive`
キャンペーンの重ね掛けを行うかどうかのフラグです。
これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。
falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`subject`**
-
+
+#### `subject`
ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。
eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。
@@ -1244,6 +1364,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った
all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む)
注意: event を topup にしたときはポイントの付与に対しても適用されます
+
+スキーマ
+
```json
{
"type": "string",
@@ -1254,9 +1377,9 @@ all を指定すると決済額全体を対象にします (「ポイント」
}
```
-**`amountBasedPointRules`**
-
+
+#### `amountBasedPointRules`
金額をベースとしてポイント付与を行うルールを指定します。
amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。
各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。
@@ -1280,6 +1403,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し
]
```
+
+スキーマ
+
```json
{
"type": "array",
@@ -1289,9 +1415,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し
}
```
-**`productBasedPointRules`**
-
+
+#### `productBasedPointRules`
商品情報をベースとしてポイント付与を行うルールを指定します。
ルールは商品ごとに設定可能で、ルールの配列として指定します。
amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。
@@ -1338,6 +1464,9 @@ event が payment か external-transaction の時のみ有効です。
]
```
+
+スキーマ
+
```json
{
"type": "array",
@@ -1347,13 +1476,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`blacklistedProductRules`**
-
+
+#### `blacklistedProductRules`
商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。
除外対象の商品コード、または分類コードのパターンの配列として指定します。
取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1363,13 +1495,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`applicableDaysOfWeek`**
-
+
+#### `applicableDaysOfWeek`
キャンペーンを適用する曜日を指定します (複数指定)。
曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。
指定しなかった場合は全日を対象にします (曜日による適用条件なし)
+
+スキーマ
+
```json
{
"type": "array",
@@ -1381,13 +1516,16 @@ event が payment か external-transaction の時のみ有効です。
}
```
-**`applicableTimeRanges`**
-
+
+#### `applicableTimeRanges`
キャンペーンを適用する時間帯を指定します (複数指定可)。
時間帯はfromとtoからなるオブジェクトで指定します。
fromとtoは両方必要です。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1397,12 +1535,15 @@ fromとtoは両方必要です。
}
```
-**`applicableShopIds`**
-
+
+#### `applicableShopIds`
キャンペーンを適用する店舗IDを指定します (複数指定)。
指定しなかった場合は全店舗が対象になります。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1413,13 +1554,16 @@ fromとtoは両方必要です。
}
```
-**`blacklistedShopIds`**
-
+
+#### `blacklistedShopIds`
キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。
このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。
blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1430,11 +1574,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
-**`minimumNumberOfProducts`**
-
+
+#### `minimumNumberOfProducts`
このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1442,11 +1589,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
-**`minimumNumberOfAmount`**
-
+
+#### `minimumNumberOfAmount`
このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1454,9 +1604,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
-**`minimumNumberForCombinationPurchase`**
-
+
+#### `minimumNumberForCombinationPurchase`
複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。
このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。
@@ -1529,6 +1679,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1536,9 +1689,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません
}
```
-**`existInEachProductGroups`**
-
+
+#### `existInEachProductGroups`
複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。
このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。
@@ -1619,19 +1772,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"
}
```
-**`maxPointAmount`**
-
+
+#### `maxPointAmount`
キャンペーンによって付与される1取引当たりのポイント数の上限を指定します。デフォルトは未指定です。
このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1639,14 +1798,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`maxTotalPointAmount`**
-
+
+#### `maxTotalPointAmount`
キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。
このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。
累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1654,9 +1816,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
-**`applicableAccountMetadata`**
-
+
+#### `applicableAccountMetadata`
ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。
@@ -1683,15 +1845,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+スキーマ
+
```json
{
"type": "object"
}
```
-**`applicableTransactionMetadata`**
-
+
+#### `applicableTransactionMetadata`
取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。
@@ -1718,15 +1883,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+スキーマ
+
```json
{
"type": "object"
}
```
-**`budgetCapsAmount`**
-
+
+#### `budgetCapsAmount`
キャンペーンの予算上限を指定します。
キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。
@@ -1734,6 +1902,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。
キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1742,6 +1913,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+
+
成功したときは
diff --git a/docs/cashtray.md b/docs/cashtray.md
index ed49087a..0e8f635c 100644
--- a/docs/cashtray.md
+++ b/docs/cashtray.md
@@ -1,10 +1,10 @@
# Cashtray
Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。
+店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。
Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。
Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。
また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。
-
## CreateTransactionWithCashtray: CashtrayQRコードを読み取ることで取引する
エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。
@@ -12,13 +12,12 @@ Cashtrayはワンタイムで、一度読み取りに成功するか、取引エ
通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。
もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。
-
```JAVA
Request request = new CreateTransactionWithCashtray(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cashtrayId: Cashtray用QRコードのID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // customerId: エンドユーザーのID
)
- .strategy("point-preferred") // 支払い時の残高消費方式
+ .strategy("money-only") // 支払い時の残高消費方式
.requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID
```
@@ -26,13 +25,14 @@ Request request = new CreateTransactionWithCashtray(
### Parameters
-**`cashtrayId`**
-
-
+#### `cashtrayId`
Cashtray用QRコードのIDです。
QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -40,11 +40,14 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など
}
```
-**`customerId`**
-
+
+#### `customerId`
エンドユーザーIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -52,9 +55,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など
}
```
-**`strategy`**
-
+
+#### `strategy`
支払い時に残高がどのように消費されるかを指定します。
チャージの場合は無効です。
デフォルトでは point-preferred (ポイント優先)が採用されます。
@@ -64,6 +67,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など
マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -74,9 +80,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など
}
```
-**`requestId`**
-
+
+#### `requestId`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。
@@ -86,6 +92,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など
もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -93,6 +102,8 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など
}
```
+
+
成功したときは
@@ -105,7 +116,12 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など
|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|invalid_metadata|メタデータの形式が不正です|Invalid metadata format|
+|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.|
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|private_money_closed|このマネーは解約されています|This money was closed|
|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled|
@@ -115,8 +131,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.|
@@ -136,6 +157,8 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など
|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|
@@ -155,26 +178,26 @@ Cashtrayを作成します。
その他に、Cashtrayから作られる取引に対する説明文や失効時間を指定できます。
-
```JAVA
Request request = new CreateCashtray(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID
- 4669.0 // amount: 金額
+ 2561.0 // amount: 金額
)
.description("たい焼き(小倉)") // 取引履歴に表示する説明文
- .expiresIn(7102); // 失効時間(秒)
+ .expiresIn(5484); // 失効時間(秒)
```
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
取引対象のマネーのIDです(必須項目)。
+
+スキーマ
+
```json
{
"type": "string",
@@ -182,11 +205,14 @@ Request request = new CreateCashtray(
}
```
-**`shopId`**
-
+
+#### `shopId`
店舗のユーザーIDです(必須項目)。
+
+スキーマ
+
```json
{
"type": "string",
@@ -194,24 +220,30 @@ Request request = new CreateCashtray(
}
```
-**`amount`**
-
+
+#### `amount`
マネー額です(必須項目)。
正の値を与えるとチャージになり、負の値を与えると支払いとなります。
+
+スキーマ
+
```json
{
"type": "number"
}
```
-**`description`**
-
+
+#### `description`
Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。
アプリや管理画面などの取引履歴に表示されます。デフォルトでは空文字になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -219,11 +251,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20
}
```
-**`expiresIn`**
-
+
+#### `expiresIn`
Cashtrayが失効するまでの時間を秒単位で指定します(任意項目、デフォルト値は1800秒(30分))。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -231,6 +266,8 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項
}
```
+
+
成功したときは
@@ -266,11 +303,12 @@ Request request = new CancelCashtray(
### Parameters
-**`cashtrayId`**
-
-
+#### `cashtrayId`
無効化するCashtrayのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -278,6 +316,8 @@ Request request = new CancelCashtray(
}
```
+
+
成功したときは
@@ -360,11 +400,12 @@ Request request = new GetCashtray(
### Parameters
-**`cashtrayId`**
-
-
+#### `cashtrayId`
情報を取得するCashtrayのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -372,6 +413,8 @@ Request request = new GetCashtray(
}
```
+
+
成功したときは
@@ -391,20 +434,21 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可
Request request = new UpdateCashtray(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cashtrayId: CashtrayのID
)
- .amount(2045.0) // 金額
+ .amount(4123.0) // 金額
.description("たい焼き(小倉)") // 取引履歴に表示する説明文
- .expiresIn(624); // 失効時間(秒)
+ .expiresIn(4449); // 失効時間(秒)
```
### Parameters
-**`cashtrayId`**
-
-
+#### `cashtrayId`
更新対象のCashtrayのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -412,24 +456,30 @@ Request request = new UpdateCashtray(
}
```
-**`amount`**
-
+
+#### `amount`
マネー額です(任意項目)。
正の値を与えるとチャージになり、負の値を与えると支払いとなります。
+
+スキーマ
+
```json
{
"type": "number"
}
```
-**`description`**
-
+
+#### `description`
Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。
アプリや管理画面などの取引履歴に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -437,11 +487,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20
}
```
-**`expiresIn`**
-
+
+#### `expiresIn`
Cashtrayが失効するまでの時間を秒で指定します(任意項目、デフォルト値は1800秒(30分))。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -449,6 +502,8 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、
}
```
+
+
成功したときは
diff --git a/docs/check.md b/docs/check.md
index b643ab35..f4441339 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コード一覧の取得
```JAVA
Request request = new ListChecks()
- .page(3549) // ページ番号
+ .page(1535) // ページ番号
.perPage(50) // 1ページの表示数
.privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID
- .organizationCode("SiZH6DDfNqfsVRi3zxzsVzVJLxp") // 組織コード
- .expiresFrom("2022-01-21T10:21:24.000000Z") // 有効期限の期間によるフィルター(開始時点)
- .expiresTo("2023-02-28T05:03:02.000000Z") // 有効期限の期間によるフィルター(終了時点)
- .createdFrom("2024-04-13T07:05:15.000000Z") // 作成日時の期間によるフィルター(開始時点)
- .createdTo("2022-09-18T15:22:33.000000Z") // 作成日時の期間によるフィルター(終了時点)
+ .organizationCode("AuhO2DrrEN6v7h6DIeIXBVaS0Zi07") // 組織コード
+ .expiresFrom("2025-09-03T17:37:28.000000Z") // 有効期限の期間によるフィルター(開始時点)
+ .expiresTo("2023-07-15T09:05:54.000000Z") // 有効期限の期間によるフィルター(終了時点)
+ .createdFrom("2025-01-11T07:09:28.000000Z") // 作成日時の期間によるフィルター(開始時点)
+ .createdTo("2026-06-05T15:26:18.000000Z") // 作成日時の期間によるフィルター(終了時点)
.issuerShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 発行店舗ID
- .description("CjOUSN") // チャージQRコードの説明文
+ .description("JykFEWCq") // チャージQRコードの説明文
.setOnetime(false) // ワンタイムのチャージQRコードかどうか
- .setDisabled(false); // 無効化されたチャージQRコードかどうか
+ .setDisabled(true); // 無効化されたチャージQRコードかどうか
```
### Parameters
-**`page`**
-
+#### `page`
+
+スキーマ
```json
{
@@ -42,11 +43,14 @@ Request request = new ListChecks()
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ当たり表示数です。デフォルト値は50です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -54,11 +58,13 @@ Request request = new ListChecks()
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。
+
+スキーマ
```json
{
@@ -67,12 +73,15 @@ Request request = new ListChecks()
}
```
-**`organizationCode`**
-
+
+#### `organizationCode`
チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。
デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -80,12 +89,14 @@ Request request = new ListChecks()
}
```
-**`expiresFrom`**
-
+
+#### `expiresFrom`
有効期限の期間によるフィルターの開始時点のタイムスタンプです。
デフォルトでは未指定です。
+
+スキーマ
```json
{
@@ -94,12 +105,14 @@ Request request = new ListChecks()
}
```
-**`expiresTo`**
-
+
+#### `expiresTo`
有効期限の期間によるフィルターの終了時点のタイムスタンプです。
デフォルトでは未指定です。
+
+スキーマ
```json
{
@@ -108,12 +121,14 @@ Request request = new ListChecks()
}
```
-**`createdFrom`**
-
+
+#### `createdFrom`
作成日時の期間によるフィルターの開始時点のタイムスタンプです。
デフォルトでは未指定です。
+
+スキーマ
```json
{
@@ -122,12 +137,14 @@ Request request = new ListChecks()
}
```
-**`createdTo`**
-
+
+#### `createdTo`
作成日時の期間によるフィルターの終了時点のタイムスタンプです。
デフォルトでは未指定です。
+
+スキーマ
```json
{
@@ -136,12 +153,14 @@ Request request = new ListChecks()
}
```
-**`issuerShopId`**
-
+
+#### `issuerShopId`
チャージQRコードを発行した店舗IDによってフィルターします。
デフォルトでは未指定です。
+
+スキーマ
```json
{
@@ -150,13 +169,15 @@ Request request = new ListChecks()
}
```
-**`description`**
-
+
+#### `description`
チャージQRコードの説明文(description)によってフィルターします。
部分一致(前方一致)したものを表示します。
デフォルトでは未指定です。
+
+スキーマ
```json
{
@@ -164,14 +185,16 @@ Request request = new ListChecks()
}
```
-**`setOnetime`**
-
+
+#### `setOnetime`
チャージQRコードがワンタイムに設定されているかどうかでフィルターします。
`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。
未指定の場合はフィルターしません。
デフォルトでは未指定です。
+
+スキーマ
```json
{
@@ -179,14 +202,16 @@ Request request = new ListChecks()
}
```
-**`setDisabled`**
-
+
+#### `setDisabled`
チャージQRコードが無効化されているかどうかでフィルターします。
`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。
未指定の場合はフィルターしません。
デフォルトでは未指定です。
+
+スキーマ
```json
{
@@ -194,6 +219,8 @@ Request request = new ListChecks()
}
```
+
+
成功したときは
@@ -220,13 +247,13 @@ Request request = new ListChecks()
Request request = new CreateCheck(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: 送金元の店舗アカウントID
)
- .moneyAmount(5709.0) // 付与マネー額
- .pointAmount(9032.0) // 付与ポイント額
+ .moneyAmount(695.0) // 付与マネー額
+ .pointAmount(5262.0) // 付与ポイント額
.description("test check") // 説明文(アプリ上で取引の説明文として表示される)
.setOnetime(true) // ワンタイムかどうかのフラグ
- .usageLimit(569) // ワンタイムでない場合の最大読み取り回数
- .expiresAt("2022-11-10T08:44:22.000000Z") // チャージQRコード自体の失効日時
- .pointExpiresAt("2023-02-21T16:04:27.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限
+ .usageLimit(8837) // ワンタイムでない場合の最大読み取り回数
+ .expiresAt("2023-09-22T01:33:26.000000Z") // チャージQRコード自体の失効日時
+ .pointExpiresAt("2025-04-29T03:36:39.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限
.pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)
.bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ポイント額を負担する店舗のウォレットID
@@ -238,12 +265,12 @@ Request request = new CreateCheck(
### Parameters
-**`moneyAmount`**
-
-
+#### `moneyAmount`
チャージQRコードによって付与されるマネー額です。
`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。
+
+スキーマ
```json
{
@@ -253,12 +280,14 @@ Request request = new CreateCheck(
}
```
-**`pointAmount`**
-
+
+#### `pointAmount`
チャージQRコードによって付与されるポイント額です。
`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。
+
+スキーマ
```json
{
@@ -268,9 +297,12 @@ Request request = new CreateCheck(
}
```
-**`accountId`**
-
+
+
+#### `accountId`
+
+スキーマ
```json
{
@@ -279,9 +311,12 @@ Request request = new CreateCheck(
}
```
-**`description`**
-
+
+#### `description`
+
+
+スキーマ
```json
{
@@ -290,13 +325,15 @@ Request request = new CreateCheck(
}
```
-**`setOnetime`**
-
+
+#### `setOnetime`
チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。
`false`の場合、複数ユーザによって読み取り可能なQRコードになります。
ただし、その場合も1ユーザにつき1回のみしか読み取れません。
+
+スキーマ
```json
{
@@ -304,14 +341,16 @@ Request request = new CreateCheck(
}
```
-**`usageLimit`**
-
+
+#### `usageLimit`
複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。
NULLに設定すると無制限に読み取り可能なチャージQRコードになります。
デフォルト値はNULLです。
ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。
+
+スキーマ
```json
{
@@ -319,13 +358,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`expiresAt`**
-
+
+#### `expiresAt`
チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。
チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。
+
+スキーマ
```json
{
@@ -334,13 +375,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`pointExpiresAt`**
-
+
+#### `pointExpiresAt`
チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。
チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。
+
+スキーマ
```json
{
@@ -349,13 +392,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`pointExpiresInDays`**
-
+
+#### `pointExpiresInDays`
チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。
1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。
`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。
+
+スキーマ
```json
{
@@ -364,12 +409,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`bearPointAccount`**
-
+
+#### `bearPointAccount`
ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。
デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。
+
+スキーマ
```json
{
@@ -378,6 +425,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
+
+
成功したときは
@@ -418,11 +467,12 @@ Request request = new GetCheck(
### Parameters
-**`checkId`**
-
-
+#### `checkId`
表示対象のチャージQRコードのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -430,6 +480,8 @@ Request request = new GetCheck(
}
```
+
+
成功したときは
@@ -448,27 +500,28 @@ Request request = new GetCheck(
Request request = new UpdateCheck(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // checkId: チャージQRコードのID
)
- .moneyAmount(1623.0) // 付与マネー額
- .pointAmount(2280.0) // 付与ポイント額
+ .moneyAmount(3059.0) // 付与マネー額
+ .pointAmount(1107.0) // 付与ポイント額
.description("test check") // チャージQRコードの説明文
- .setOnetime(true) // ワンタイムかどうかのフラグ
- .usageLimit(3244) // ワンタイムでない場合の最大読み取り回数
- .expiresAt("2024-08-13T14:04:59.000000Z") // チャージQRコード自体の失効日時
- .pointExpiresAt("2021-08-26T07:57:47.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限
+ .setOnetime(false) // ワンタイムかどうかのフラグ
+ .usageLimit(9511) // ワンタイムでない場合の最大読み取り回数
+ .expiresAt("2021-06-06T18:20:51.000000Z") // チャージQRコード自体の失効日時
+ .pointExpiresAt("2025-12-19T13:47:32.000000Z") // チャージQRコードによって付与されるポイント残高の有効期限
.pointExpiresInDays(60) // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)
.bearPointAccount("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント額を負担する店舗のウォレットID
- .setDisabled(false); // 無効化されているかどうかのフラグ
+ .setDisabled(true); // 無効化されているかどうかのフラグ
```
### Parameters
-**`checkId`**
-
-
+#### `checkId`
更新対象のチャージQRコードのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -476,12 +529,14 @@ Request request = new UpdateCheck(
}
```
-**`moneyAmount`**
-
+
+#### `moneyAmount`
チャージQRコードによって付与されるマネー額です。
`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。
+
+スキーマ
```json
{
@@ -491,12 +546,14 @@ Request request = new UpdateCheck(
}
```
-**`pointAmount`**
-
+
+#### `pointAmount`
チャージQRコードによって付与されるポイント額です。
`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。
+
+スキーマ
```json
{
@@ -506,12 +563,14 @@ Request request = new UpdateCheck(
}
```
-**`description`**
-
+
+#### `description`
チャージQRコードの説明文です。
チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。
+
+スキーマ
```json
{
@@ -520,13 +579,15 @@ Request request = new UpdateCheck(
}
```
-**`setOnetime`**
-
+
+#### `setOnetime`
チャージQRコードが一度の読み取りで失効するときに`true`にします。
`false`の場合、複数ユーザによって読み取り可能なQRコードになります。
ただし、その場合も1ユーザにつき1回のみしか読み取れません。
+
+スキーマ
```json
{
@@ -534,13 +595,15 @@ Request request = new UpdateCheck(
}
```
-**`usageLimit`**
-
+
+#### `usageLimit`
複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。
NULLに設定すると無制限に読み取り可能なチャージQRコードになります。
ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。
+
+スキーマ
```json
{
@@ -548,13 +611,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`expiresAt`**
-
+
+#### `expiresAt`
チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。
チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。
+
+スキーマ
```json
{
@@ -563,13 +628,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`pointExpiresAt`**
-
+
+#### `pointExpiresAt`
チャージQRコードによって付与されるポイント残高の有効起源を指定します。
チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。
+
+スキーマ
```json
{
@@ -578,14 +645,16 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`pointExpiresInDays`**
-
+
+#### `pointExpiresInDays`
チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。
1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。
`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。
`point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。
+
+スキーマ
```json
{
@@ -594,11 +663,13 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`bearPointAccount`**
-
+
+#### `bearPointAccount`
ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。
+
+スキーマ
```json
{
@@ -607,12 +678,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
-**`setDisabled`**
-
+
+#### `setDisabled`
チャージQRコードを無効化するときに`true`にします。
`false`の場合は無効化されているチャージQRコードを再有効化します。
+
+スキーマ
```json
{
@@ -620,6 +693,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
}
```
+
+
成功したときは
@@ -637,7 +712,6 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。
-
```JAVA
Request request = new CreateTopupTransactionWithCheck(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // checkId: チャージ用QRコードのID
@@ -650,13 +724,14 @@ Request request = new CreateTopupTransactionWithCheck(
### Parameters
-**`checkId`**
-
-
+#### `checkId`
チャージ用QRコードのIDです。
QRコード生成時に送金元店舗のウォレット情報や、送金額などが登録されています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -664,13 +739,16 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
}
```
-**`customerId`**
-
+
+#### `customerId`
エンドユーザーIDです。
送金先のエンドユーザーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -678,9 +756,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
}
```
-**`requestId`**
-
+
+#### `requestId`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
@@ -688,6 +766,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -695,6 +776,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
}
```
+
+
成功したときは
@@ -707,7 +790,12 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
|422|customer_user_not_found||The customer user is not found|
|422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code|
-|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format|
+|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.|
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|private_money_closed|このマネーは解約されています|This money was closed|
|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled|
@@ -717,8 +805,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.|
@@ -738,6 +831,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
|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 6ff76c64..deb9e34d 100644
--- a/docs/coupon.md
+++ b/docs/coupon.md
@@ -1,6 +1,9 @@
# Coupon
-Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。
-Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。
+割引クーポンを表すデータです。
+クーポンをユーザが明示的に利用することによって支払い決済時の割引(固定金額 or 割引率)が適用されます。
+クーポンは支払い時に指定し、支払い処理の前にクーポンに指定の方法で値引き処理を行います。
+クーポン原資を負担する発行店舗を設定したり、配布先を指定することも可能です。
+また、特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。
@@ -11,12 +14,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条
Request request = new ListCoupons(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: 対象クーポンのマネーID
)
- .couponId("UgNjF9") // クーポンID
- .couponName("pGXPoR6") // クーポン名
- .issuedShopName("V6EH9oG2E") // 発行店舗名
- .availableShopName("mJwg74tJd") // 利用可能店舗名
- .availableFrom("2021-09-17T06:11:05.000000Z") // 利用可能期間 (開始日時)
- .availableTo("2022-06-22T11:15:22.000000Z") // 利用可能期間 (終了日時)
+ .couponId("lRg4qB") // クーポンID
+ .couponName("0GRM") // クーポン名
+ .issuedShopName("kbzDn742") // 発行店舗名
+ .availableShopName("8m6fDAk") // 利用可能店舗名
+ .availableFrom("2023-06-18T01:37:55.000000Z") // 利用可能期間 (開始日時)
+ .availableTo("2022-09-24T06:38:54.000000Z") // 利用可能期間 (終了日時)
.page(1) // ページ番号
.perPage(50); // 1ページ分の取得数
@@ -25,12 +28,12 @@ Request request = new ListCoupons(
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
対象クーポンのマネーIDです(必須項目)。
存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。
+
+スキーマ
```json
{
@@ -39,12 +42,14 @@ Request request = new ListCoupons(
}
```
-**`couponId`**
-
+
+#### `couponId`
指定されたクーポンIDで結果をフィルターします。
部分一致(前方一致)します。
+
+スキーマ
```json
{
@@ -52,11 +57,13 @@ Request request = new ListCoupons(
}
```
-**`couponName`**
-
+
+#### `couponName`
指定されたクーポン名で結果をフィルターします。
+
+スキーマ
```json
{
@@ -64,11 +71,13 @@ Request request = new ListCoupons(
}
```
-**`issuedShopName`**
-
+
+#### `issuedShopName`
指定された発行店舗で結果をフィルターします。
+
+スキーマ
```json
{
@@ -76,11 +85,13 @@ Request request = new ListCoupons(
}
```
-**`availableShopName`**
-
+
+#### `availableShopName`
指定された利用可能店舗で結果をフィルターします。
+
+スキーマ
```json
{
@@ -88,11 +99,13 @@ Request request = new ListCoupons(
}
```
-**`availableFrom`**
-
+
+#### `availableFrom`
利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。
+
+スキーマ
```json
{
@@ -101,11 +114,13 @@ Request request = new ListCoupons(
}
```
-**`availableTo`**
-
+
+#### `availableTo`
利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。
+
+スキーマ
```json
{
@@ -114,11 +129,14 @@ Request request = new ListCoupons(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -126,11 +144,14 @@ Request request = new ListCoupons(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取得数です。デフォルトでは 50 になっています。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -138,6 +159,8 @@ Request request = new ListCoupons(
}
```
+
+
成功したときは
@@ -163,26 +186,27 @@ Request request = new ListCoupons(
```JAVA
Request request = new CreateCoupon(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "5Llab29gfUQ6hTQL3",
- "2020-12-30T15:57:59.000000Z",
- "2021-01-11T11:18:00.000000Z",
+ "XCcjSnMwkyUVD7CNl",
+ "2020-08-09T20:34:27.000000Z",
+ "2024-02-04T15:25:38.000000Z",
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // issuedShopId: 発行元の店舗ID
)
- .description("ITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aR")
- .discountAmount(5623)
- .discountPercentage(6960.0)
- .discountUpperLimit(9272)
- .displayStartsAt("2021-04-27T12:56:01.000000Z") // クーポンの掲載期間(開始日時)
- .displayEndsAt("2020-11-05T14:23:13.000000Z") // クーポンの掲載期間(終了日時)
- .setDisabled(true) // 無効化フラグ
+ .description("G8bUcu2404OwW2YlKo3D8R7F9uqtTYDUe0c6WMBb0vMyrrNo2CtAij6bFWlBc9nMouBhD3xaVyDbF9dQAdVbIjdKodnIqsg2hwfCC3ynrJLnPSb5d8avvWNGGZpHcQub7jyKGPEze4eDg0kaj205Q9Vfs")
+ .discountAmount(3469)
+ .discountPercentage(7196.0)
+ .discountUpperLimit(668)
+ .displayStartsAt("2025-08-11T04:34:35.000000Z") // クーポンの掲載期間(開始日時)
+ .displayEndsAt("2023-01-04T09:03:52.000000Z") // クーポンの掲載期間(終了日時)
+ .setDisabled(false) // 無効化フラグ
.setHidden(true) // クーポン一覧に掲載されるかどうか
.setPublic(true) // アプリ配信なしで受け取れるかどうか
- .code("HosccmXh") // クーポン受け取りコード
- .usageLimit(5575) // ユーザごとの利用可能回数(NULLの場合は無制限)
- .minAmount(8497) // クーポン適用可能な最小取引額
- .setShopSpecified(false) // 特定店舗限定のクーポンかどうか
+ .code("dWlEYjRq") // クーポン受け取りコード
+ .usageLimit(2909) // ユーザごとの利用可能回数(NULLの場合は無制限)
+ .minAmount(5761) // クーポン適用可能な最小取引額
+ .setShopSpecified(true) // 特定店舗限定のクーポンかどうか
.availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト
- .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID
+ .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ストレージID
+ .numRecipientsCap(8931); // クーポンを受け取ることができるユーザ数上限
```
@@ -190,9 +214,10 @@ Request request = new CreateCoupon(
### Parameters
-**`privateMoneyId`**
-
+#### `privateMoneyId`
+
+スキーマ
```json
{
@@ -201,9 +226,12 @@ Request request = new CreateCoupon(
}
```
-**`name`**
-
+
+
+#### `name`
+
+スキーマ
```json
{
@@ -212,9 +240,12 @@ Request request = new CreateCoupon(
}
```
-**`description`**
-
+
+#### `description`
+
+
+スキーマ
```json
{
@@ -223,9 +254,12 @@ Request request = new CreateCoupon(
}
```
-**`discountAmount`**
-
+
+
+#### `discountAmount`
+
+スキーマ
```json
{
@@ -234,9 +268,12 @@ Request request = new CreateCoupon(
}
```
-**`discountPercentage`**
-
+
+#### `discountPercentage`
+
+
+スキーマ
```json
{
@@ -245,9 +282,12 @@ Request request = new CreateCoupon(
}
```
-**`discountUpperLimit`**
-
+
+
+#### `discountUpperLimit`
+
+スキーマ
```json
{
@@ -256,9 +296,12 @@ Request request = new CreateCoupon(
}
```
-**`startsAt`**
-
+
+#### `startsAt`
+
+
+スキーマ
```json
{
@@ -267,9 +310,12 @@ Request request = new CreateCoupon(
}
```
-**`endsAt`**
-
+
+
+#### `endsAt`
+
+スキーマ
```json
{
@@ -278,9 +324,12 @@ Request request = new CreateCoupon(
}
```
-**`displayStartsAt`**
-
+
+#### `displayStartsAt`
+
+
+スキーマ
```json
{
@@ -289,9 +338,12 @@ Request request = new CreateCoupon(
}
```
-**`displayEndsAt`**
-
+
+
+#### `displayEndsAt`
+
+スキーマ
```json
{
@@ -300,9 +352,12 @@ Request request = new CreateCoupon(
}
```
-**`setDisabled`**
-
+
+#### `setDisabled`
+
+
+スキーマ
```json
{
@@ -310,12 +365,14 @@ Request request = new CreateCoupon(
}
```
-**`setHidden`**
-
+
+#### `setHidden`
アプリに表示されるクーポン一覧に掲載されるかどうか。
主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。
+
+スキーマ
```json
{
@@ -323,9 +380,12 @@ Request request = new CreateCoupon(
}
```
-**`setPublic`**
-
+
+
+#### `setPublic`
+
+スキーマ
```json
{
@@ -333,9 +393,12 @@ Request request = new CreateCoupon(
}
```
-**`code`**
-
+
+#### `code`
+
+
+スキーマ
```json
{
@@ -343,9 +406,12 @@ Request request = new CreateCoupon(
}
```
-**`usageLimit`**
-
+
+
+#### `usageLimit`
+
+スキーマ
```json
{
@@ -353,9 +419,12 @@ Request request = new CreateCoupon(
}
```
-**`minAmount`**
-
+
+#### `minAmount`
+
+
+スキーマ
```json
{
@@ -363,9 +432,12 @@ Request request = new CreateCoupon(
}
```
-**`issuedShopId`**
-
+
+
+#### `issuedShopId`
+
+スキーマ
```json
{
@@ -374,9 +446,12 @@ Request request = new CreateCoupon(
}
```
-**`setShopSpecified`**
-
+
+#### `setShopSpecified`
+
+
+スキーマ
```json
{
@@ -384,9 +459,12 @@ Request request = new CreateCoupon(
}
```
-**`availableShopIds`**
-
+
+
+#### `availableShopIds`
+
+スキーマ
```json
{
@@ -398,11 +476,14 @@ Request request = new CreateCoupon(
}
```
-**`storageId`**
-
+
+#### `storageId`
Storage APIでアップロードしたクーポン画像のStorage IDを指定します
+
+スキーマ
+
```json
{
"type": "string",
@@ -410,6 +491,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定
}
```
+
+
+#### `numRecipientsCap`
+
+
+スキーマ
+
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+
+
+
成功したときは
@@ -445,13 +542,14 @@ Request request = new GetCoupon(
### Parameters
-**`couponId`**
-
-
+#### `couponId`
取得するクーポンのIDです。
UUIDv4フォーマットである必要があり、フォーマットが異なる場合は InvalidParametersエラー(400)が返ります。
指定したIDのクーポンが存在しない場合はCouponNotFoundエラー(422)が返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -459,6 +557,8 @@ UUIDv4フォーマットである必要があり、フォーマットが異な
}
```
+
+
成功したときは
@@ -478,24 +578,25 @@ UUIDv4フォーマットである必要があり、フォーマットが異な
Request request = new UpdateCoupon(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // couponId: クーポンID
)
- .name("E5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JE")
- .description("ew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQa")
- .discountAmount(3454)
- .discountPercentage(7341.0)
- .discountUpperLimit(5424)
- .startsAt("2022-11-19T21:09:25.000000Z")
- .endsAt("2020-10-04T17:07:18.000000Z")
- .displayStartsAt("2022-03-16T02:48:40.000000Z") // クーポンの掲載期間(開始日時)
- .displayEndsAt("2020-06-03T00:23:31.000000Z") // クーポンの掲載期間(終了日時)
- .setDisabled(true) // 無効化フラグ
+ .name("8BVVabHLEG4agkq2G8IRGQBS0nc")
+ .description("LLndRaY2NqmWOdlkOhTjC67yWAbgIrPt858HfVRa8DX5UPvkC2RO0Ka4lYXy6v8yeYaDtl3yxclWSiWAV8VoZ5q4f3l3OfQm9YtxuJKrD")
+ .discountAmount(6681)
+ .discountPercentage(3462.0)
+ .discountUpperLimit(4621)
+ .startsAt("2020-09-13T23:41:13.000000Z")
+ .endsAt("2025-04-28T21:03:55.000000Z")
+ .displayStartsAt("2021-05-17T04:04:54.000000Z") // クーポンの掲載期間(開始日時)
+ .displayEndsAt("2026-06-13T11:26:38.000000Z") // クーポンの掲載期間(終了日時)
+ .setDisabled(false) // 無効化フラグ
.setHidden(false) // クーポン一覧に掲載されるかどうか
- .setPublic(true) // アプリ配信なしで受け取れるかどうか
- .code("2aIO") // クーポン受け取りコード
- .usageLimit(7115) // ユーザごとの利用可能回数(NULLの場合は無制限)
- .minAmount(6094) // クーポン適用可能な最小取引額
- .setShopSpecified(false) // 特定店舗限定のクーポンかどうか
+ .setPublic(false) // アプリ配信なしで受け取れるかどうか
+ .code("xAhF9F") // クーポン受け取りコード
+ .usageLimit(445) // ユーザごとの利用可能回数(NULLの場合は無制限)
+ .minAmount(7191) // クーポン適用可能な最小取引額
+ .setShopSpecified(true) // 特定店舗限定のクーポンかどうか
.availableShopIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 利用可能店舗リスト
- .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // ストレージID
+ .storageId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ストレージID
+ .numRecipientsCap(6560); // クーポンを受け取ることができるユーザ数上限
```
@@ -505,9 +606,10 @@ Request request = new UpdateCoupon(
### Parameters
-**`couponId`**
-
+#### `couponId`
+
+スキーマ
```json
{
@@ -516,9 +618,12 @@ Request request = new UpdateCoupon(
}
```
-**`name`**
-
+
+#### `name`
+
+
+スキーマ
```json
{
@@ -527,9 +632,12 @@ Request request = new UpdateCoupon(
}
```
-**`description`**
-
+
+
+#### `description`
+
+スキーマ
```json
{
@@ -538,9 +646,12 @@ Request request = new UpdateCoupon(
}
```
-**`discountAmount`**
-
+
+#### `discountAmount`
+
+
+スキーマ
```json
{
@@ -549,9 +660,12 @@ Request request = new UpdateCoupon(
}
```
-**`discountPercentage`**
-
+
+
+#### `discountPercentage`
+
+スキーマ
```json
{
@@ -560,9 +674,12 @@ Request request = new UpdateCoupon(
}
```
-**`discountUpperLimit`**
-
+
+#### `discountUpperLimit`
+
+
+スキーマ
```json
{
@@ -571,9 +688,12 @@ Request request = new UpdateCoupon(
}
```
-**`startsAt`**
-
+
+
+#### `startsAt`
+
+スキーマ
```json
{
@@ -582,9 +702,12 @@ Request request = new UpdateCoupon(
}
```
-**`endsAt`**
-
+
+#### `endsAt`
+
+
+スキーマ
```json
{
@@ -593,9 +716,12 @@ Request request = new UpdateCoupon(
}
```
-**`displayStartsAt`**
-
+
+
+#### `displayStartsAt`
+
+スキーマ
```json
{
@@ -604,9 +730,12 @@ Request request = new UpdateCoupon(
}
```
-**`displayEndsAt`**
-
+
+#### `displayEndsAt`
+
+
+スキーマ
```json
{
@@ -615,9 +744,12 @@ Request request = new UpdateCoupon(
}
```
-**`setDisabled`**
-
+
+
+#### `setDisabled`
+
+スキーマ
```json
{
@@ -625,12 +757,14 @@ Request request = new UpdateCoupon(
}
```
-**`setHidden`**
-
+
+#### `setHidden`
アプリに表示されるクーポン一覧に掲載されるかどうか。
主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。
+
+スキーマ
```json
{
@@ -638,9 +772,12 @@ Request request = new UpdateCoupon(
}
```
-**`setPublic`**
-
+
+#### `setPublic`
+
+
+スキーマ
```json
{
@@ -648,9 +785,12 @@ Request request = new UpdateCoupon(
}
```
-**`code`**
-
+
+
+#### `code`
+
+スキーマ
```json
{
@@ -658,9 +798,12 @@ Request request = new UpdateCoupon(
}
```
-**`usageLimit`**
-
+
+#### `usageLimit`
+
+
+スキーマ
```json
{
@@ -668,9 +811,12 @@ Request request = new UpdateCoupon(
}
```
-**`minAmount`**
-
+
+
+#### `minAmount`
+
+スキーマ
```json
{
@@ -678,9 +824,12 @@ Request request = new UpdateCoupon(
}
```
-**`setShopSpecified`**
-
+
+#### `setShopSpecified`
+
+
+スキーマ
```json
{
@@ -688,9 +837,12 @@ Request request = new UpdateCoupon(
}
```
-**`availableShopIds`**
-
+
+
+#### `availableShopIds`
+
+スキーマ
```json
{
@@ -702,11 +854,14 @@ Request request = new UpdateCoupon(
}
```
-**`storageId`**
-
+
+#### `storageId`
Storage APIでアップロードしたクーポン画像のStorage IDを指定します
+
+スキーマ
+
```json
{
"type": "string",
@@ -714,6 +869,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定
}
```
+
+
+#### `numRecipientsCap`
+
+
+スキーマ
+
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+
+
+
成功したときは
diff --git a/docs/credit_session.md b/docs/credit_session.md
new file mode 100644
index 00000000..9523eabe
--- /dev/null
+++ b/docs/credit_session.md
@@ -0,0 +1,287 @@
+# CreditSession
+クレジットカード決済セッションを管理するためのAPIです。
+Veritrans(決済ゲートウェイ)との連携でクレジットカード決済を実現します。
+セッションには有効期限があり、セッション作成後に取引の実行や売上確定(キャプチャ)を行います。
+3Dセキュア認証にも対応しています。
+
+
+
+## PostCreditSession: Create credit session
+
+```JAVA
+Request request = new PostCreditSession(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+ "2023-09-04T08:00:20.000000Z" // expiresAt: セッション有効期限
+)
+ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // 冪等性キー
+
+```
+
+
+
+### Parameters
+#### `customerId`
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `privateMoneyId`
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `cardId`
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `expiresAt`
+セッション有効期限
+制約: リクエスト時刻から30日以内
+例: "2024-01-15T10:30:00+00:00"
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+
+
+#### `requestId`
+冪等性キー
+同一の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と取引金額を指定します。
+
+```JAVA
+Request request = new CreateCreditSessionTransaction(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // sessionId: クレジットセッションID
+ 5162.0 // amount: 取引金額
+)
+ .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID
+ .description("8uYVQrlAwBlTLDHylYVoU0Lud9b5MHdM8UnuwQ7jNoaulXZjgrVDfW2ufNp0gAs9phyFh2aSmdruAKFNN9YCEWSULZdpylXeF6qvGwUl7ATMaf3NqLOcKmTPNREiEdfOxleMzyqb14XnQoYrg3WK0gxDGSVD8") // 取引説明
+ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // 冪等性キー
+
+```
+
+
+
+### Parameters
+#### `sessionId`
+クレジットセッションID
+
+事前に作成されたクレジットセッションのIDを指定します。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `amount`
+取引金額
+支払い金額を指定します。
+
+
+スキーマ
+
+```json
+{
+ "type": "number",
+ "minimum": 0
+}
+```
+
+
+
+#### `shopId`
+店舗ID
+支払いを行う店舗のIDを指定します。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `description`
+取引説明
+取引の説明や備考を指定します。省略時は空文字列になります。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+
+
+#### `requestId`
+冪等性キー
+同一のrequest_idを持つリクエストは冪等に処理されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+成功したときは
+[CreditSessionTransactionResult](./responses.md#credit-session-transaction-result)
+を返します
+
+
+
+---
+
+
+
+## CaptureCreditSession: Capture credit session
+クレジットセッションの売上確定(キャプチャ)を行います。
+セッション内で行われた支払いの合計金額をクレジットカードに請求します。
+
+```JAVA
+Request request = new CaptureCreditSession(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // sessionId: クレジットセッションID
+)
+ .requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // 冪等性キー
+
+```
+
+
+
+### Parameters
+#### `sessionId`
+クレジットセッションID
+
+キャプチャ対象のクレジットセッションのIDを指定します。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `requestId`
+冪等性キー
+同一のrequest_idを持つリクエストは冪等に処理されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+成功したときは
+[CapturedCreditSession](./responses.md#captured-credit-session)
+を返します
+
+
+
+---
+
+
+
diff --git a/docs/customer.md b/docs/customer.md
index f5991723..93aa84fd 100644
--- a/docs/customer.md
+++ b/docs/customer.md
@@ -1,4 +1,10 @@
# Customer
+エンドユーザー(顧客)のウォレット情報を管理するためのAPIです。
+エンドユーザーのウォレット(アカウント)の作成・更新・取得を行います。
+ウォレットにはマネー残高(有償バリュー)とポイント残高(無償バリュー)があり、
+有効期限別に金額が管理されています。
+また、外部システム連携用のexternal_idやメタデータを設定することも可能です。
+
## DeleteAccount: ウォレットを退会する
@@ -15,13 +21,14 @@ Request request = new DeleteAccount(
### Parameters
-**`accountId`**
-
-
+#### `accountId`
ウォレットIDです。
指定したウォレットIDのウォレットを退会します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -29,17 +36,22 @@ Request request = new DeleteAccount(
}
```
-**`cashback`**
-
+
+#### `cashback`
退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
+
+
成功したときは
@@ -65,13 +77,14 @@ Request request = new GetAccount(
### Parameters
-**`accountId`**
-
-
+#### `accountId`
ウォレットIDです。
フィルターとして使われ、指定したウォレットIDのウォレットを取得します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -79,6 +92,8 @@ Request request = new GetAccount(
}
```
+
+
成功したときは
@@ -105,21 +120,22 @@ Request request = new UpdateAccount(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID
)
.setSuspended(true) // ウォレットが凍結されているかどうか
- .status("active") // ウォレット状態
- .canTransferTopup(false); // チャージ可能かどうか
+ .status("pre-closed") // ウォレット状態
+ .canTransferTopup(true); // チャージ可能かどうか
```
### Parameters
-**`accountId`**
-
-
+#### `accountId`
ウォレットIDです。
指定したウォレットIDのウォレットの状態を更新します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -127,22 +143,28 @@ Request request = new UpdateAccount(
}
```
-**`setSuspended`**
-
+
+#### `setSuspended`
ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`status`**
-
+
+#### `status`
ウォレットの状態です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -154,17 +176,22 @@ Request request = new UpdateAccount(
}
```
-**`canTransferTopup`**
-
+
+#### `canTransferTopup`
店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
+
+
成功したときは
@@ -184,24 +211,25 @@ Request request = new UpdateAccount(
Request request = new ListAccountBalances(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID
)
- .page(7941) // ページ番号
- .perPage(3708) // 1ページ分の取引数
- .expiresAtFrom("2021-10-09T23:01:25.000000Z") // 有効期限の期間によるフィルター(開始時点)
- .expiresAtTo("2023-02-28T03:03:13.000000Z") // 有効期限の期間によるフィルター(終了時点)
- .direction("desc"); // 有効期限によるソート順序
+ .page(7145) // ページ番号
+ .perPage(7394) // 1ページ分の取引数
+ .expiresAtFrom("2024-11-02T13:05:57.000000Z") // 有効期限の期間によるフィルター(開始時点)
+ .expiresAtTo("2024-04-18T05:34:58.000000Z") // 有効期限の期間によるフィルター(終了時点)
+ .direction("asc"); // 有効期限によるソート順序
```
### Parameters
-**`accountId`**
-
-
+#### `accountId`
ウォレットIDです。
フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -209,11 +237,14 @@ Request request = new ListAccountBalances(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。デフォルト値は1です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -221,11 +252,14 @@ Request request = new ListAccountBalances(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分のウォレット残高数です。デフォルト値は30です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -233,11 +267,14 @@ Request request = new ListAccountBalances(
}
```
-**`expiresAtFrom`**
-
+
+#### `expiresAtFrom`
有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -245,11 +282,14 @@ Request request = new ListAccountBalances(
}
```
-**`expiresAtTo`**
-
+
+#### `expiresAtTo`
有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -257,11 +297,14 @@ Request request = new ListAccountBalances(
}
```
-**`direction`**
-
+
+#### `direction`
有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -272,6 +315,8 @@ Request request = new ListAccountBalances(
}
```
+
+
成功したときは
@@ -291,10 +336,10 @@ Request request = new ListAccountBalances(
Request request = new ListAccountExpiredBalances(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID
)
- .page(2601) // ページ番号
- .perPage(9562) // 1ページ分の取引数
- .expiresAtFrom("2021-09-14T00:24:39.000000Z") // 有効期限の期間によるフィルター(開始時点)
- .expiresAtTo("2020-04-28T23:50:47.000000Z") // 有効期限の期間によるフィルター(終了時点)
+ .page(1572) // ページ番号
+ .perPage(2462) // 1ページ分の取引数
+ .expiresAtFrom("2020-01-26T21:15:59.000000Z") // 有効期限の期間によるフィルター(開始時点)
+ .expiresAtTo("2023-06-20T06:08:09.000000Z") // 有効期限の期間によるフィルター(終了時点)
.direction("asc"); // 有効期限によるソート順序
```
@@ -302,13 +347,14 @@ Request request = new ListAccountExpiredBalances(
### Parameters
-**`accountId`**
-
-
+#### `accountId`
ウォレットIDです。
フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -316,11 +362,14 @@ Request request = new ListAccountExpiredBalances(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。デフォルト値は1です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -328,11 +377,14 @@ Request request = new ListAccountExpiredBalances(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分のウォレット残高数です。デフォルト値は30です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -340,11 +392,14 @@ Request request = new ListAccountExpiredBalances(
}
```
-**`expiresAtFrom`**
-
+
+#### `expiresAtFrom`
有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -352,11 +407,14 @@ Request request = new ListAccountExpiredBalances(
}
```
-**`expiresAtTo`**
-
+
+#### `expiresAtTo`
有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -364,11 +422,14 @@ Request request = new ListAccountExpiredBalances(
}
```
-**`direction`**
-
+
+#### `direction`
有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -379,6 +440,8 @@ Request request = new ListAccountExpiredBalances(
}
```
+
+
成功したときは
@@ -398,9 +461,9 @@ Request request = new ListAccountExpiredBalances(
Request request = new UpdateCustomerAccount(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID
)
- .status("suspended") // ウォレット状態
- .accountName("MgU5LJ8nedbEkL6VCbZlYCZFu0YjXrv") // アカウント名
- .externalId("ck1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rO") // 外部ID
+ .status("active") // ウォレット状態
+ .accountName("Y7PcHPZH7mHIXsOqC2xcKBYhL1xCfnaEpDLcNgoBzsuiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVHFftM1EZPsd7jOCTvYgQYDODNTX3") // アカウント名
+ .externalId("U3qGQBWGDfb1wlkuiN7kKWKFox") // 外部ID
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}"); // ウォレットに付加するメタデータ
```
@@ -408,13 +471,14 @@ Request request = new UpdateCustomerAccount(
### Parameters
-**`accountId`**
-
-
+#### `accountId`
ウォレットIDです。
指定したウォレットIDのウォレットの状態を更新します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -422,11 +486,14 @@ Request request = new UpdateCustomerAccount(
}
```
-**`status`**
-
+
+#### `status`
ウォレットの状態です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -438,11 +505,14 @@ Request request = new UpdateCustomerAccount(
}
```
-**`accountName`**
-
+
+#### `accountName`
変更するウォレット名です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -450,11 +520,14 @@ Request request = new UpdateCustomerAccount(
}
```
-**`externalId`**
-
+
+#### `externalId`
変更する外部IDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -462,9 +535,9 @@ Request request = new UpdateCustomerAccount(
}
```
-**`metadata`**
-
+
+#### `metadata`
ウォレットに付加するメタデータをJSON文字列で指定します。
指定できるJSON文字列には以下のような制約があります。
- フラットな構造のJSONを文字列化したものであること。
@@ -482,6 +555,9 @@ Request request = new UpdateCustomerAccount(
このときkey1はfooからbazに更新され、key2に対するデータは消去されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -489,6 +565,8 @@ Request request = new UpdateCustomerAccount(
}
```
+
+
成功したときは
@@ -508,28 +586,29 @@ Request request = new UpdateCustomerAccount(
Request request = new GetCustomerAccounts(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID
)
- .page(1321) // ページ番号
- .perPage(4359) // 1ページ分のウォレット数
- .createdAtFrom("2023-03-20T21:15:42.000000Z") // ウォレット作成日によるフィルター(開始時点)
- .createdAtTo("2024-02-12T10:09:46.000000Z") // ウォレット作成日によるフィルター(終了時点)
- .setSuspended(true) // ウォレットが凍結状態かどうかでフィルターする
+ .page(2508) // ページ番号
+ .perPage(6925) // 1ページ分のウォレット数
+ .createdAtFrom("2025-08-26T05:14:41.000000Z") // ウォレット作成日によるフィルター(開始時点)
+ .createdAtTo("2022-11-12T15:47:17.000000Z") // ウォレット作成日によるフィルター(終了時点)
+ .setSuspended(false) // ウォレットが凍結状態かどうかでフィルターする
.status("suspended") // ウォレット状態
- .externalId("KP7CaX5R9O7hnOQMfDj4u8or1Z5a") // 外部ID
- .tel("0629-6637554") // エンドユーザーの電話番号
- .email("vasIan6Df8@qsq2.com"); // エンドユーザーのメールアドレス
+ .externalId("9tuL5LH4EHPGJy8ZSoJ1krFHQyhzG") // 外部ID
+ .tel("05-2286046") // エンドユーザーの電話番号
+ .email("rwRgeSOaGF@6sto.com"); // エンドユーザーのメールアドレス
```
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
マネーIDです。
一覧するウォレットのマネーを指定します。このパラメータは必須です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -537,11 +616,14 @@ Request request = new GetCustomerAccounts(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。デフォルト値は1です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -549,11 +631,14 @@ Request request = new GetCustomerAccounts(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分のウォレット数です。デフォルト値は30です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -561,11 +646,14 @@ Request request = new GetCustomerAccounts(
}
```
-**`createdAtFrom`**
-
+
+#### `createdAtFrom`
ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -573,11 +661,14 @@ Request request = new GetCustomerAccounts(
}
```
-**`createdAtTo`**
-
+
+#### `createdAtTo`
ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -585,22 +676,28 @@ Request request = new GetCustomerAccounts(
}
```
-**`setSuspended`**
-
+
+#### `setSuspended`
このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`status`**
-
+
+#### `status`
このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -612,11 +709,14 @@ Request request = new GetCustomerAccounts(
}
```
-**`externalId`**
-
+
+#### `externalId`
外部IDでのフィルタリングです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -624,11 +724,14 @@ Request request = new GetCustomerAccounts(
}
```
-**`tel`**
-
+
+#### `tel`
エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -636,11 +739,14 @@ Request request = new GetCustomerAccounts(
}
```
-**`email`**
-
+
+#### `email`
エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -648,6 +754,8 @@ Request request = new GetCustomerAccounts(
}
```
+
+
成功したときは
@@ -678,20 +786,21 @@ Request request = new CreateCustomerAccount(
)
.userName("ポケペイ太郎") // ユーザー名
.accountName("ポケペイ太郎のアカウント") // アカウント名
- .externalId("k3ETquM3SQujWFDE153B47G8gAIFr9"); // 外部ID
+ .externalId("VWAQmmxPEjbZK4rVxAUW7FWHkKwdg6799FNaTUu"); // 外部ID
```
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
マネーIDです。
これによって作成するウォレットのマネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -699,11 +808,14 @@ Request request = new CreateCustomerAccount(
}
```
-**`userName`**
-
+
+#### `userName`
ウォレットと共に作成するユーザ名です。省略した場合は空文字となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -711,11 +823,14 @@ Request request = new CreateCustomerAccount(
}
```
-**`accountName`**
-
+
+#### `accountName`
作成するウォレット名です。省略した場合は空文字となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -723,11 +838,14 @@ Request request = new CreateCustomerAccount(
}
```
-**`externalId`**
-
+
+#### `externalId`
PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -735,6 +853,8 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで
}
```
+
+
成功したときは
@@ -766,10 +886,10 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで
Request request = new GetShopAccounts(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID
)
- .page(7547) // ページ番号
- .perPage(6106) // 1ページ分のウォレット数
- .createdAtFrom("2024-07-31T12:27:29.000000Z") // ウォレット作成日によるフィルター(開始時点)
- .createdAtTo("2020-01-10T02:36:55.000000Z") // ウォレット作成日によるフィルター(終了時点)
+ .page(5719) // ページ番号
+ .perPage(3774) // 1ページ分のウォレット数
+ .createdAtFrom("2023-12-16T16:18:22.000000Z") // ウォレット作成日によるフィルター(開始時点)
+ .createdAtTo("2021-06-21T04:26:48.000000Z") // ウォレット作成日によるフィルター(終了時点)
.setSuspended(true); // ウォレットが凍結状態かどうかでフィルターする
```
@@ -777,13 +897,14 @@ Request request = new GetShopAccounts(
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
マネーIDです。
一覧するウォレットのマネーを指定します。このパラメータは必須です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -791,11 +912,14 @@ Request request = new GetShopAccounts(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。デフォルト値は1です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -803,11 +927,14 @@ Request request = new GetShopAccounts(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分のウォレット数です。デフォルト値は30です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -815,11 +942,14 @@ Request request = new GetShopAccounts(
}
```
-**`createdAtFrom`**
-
+
+#### `createdAtFrom`
ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -827,11 +957,14 @@ Request request = new GetShopAccounts(
}
```
-**`createdAtTo`**
-
+
+#### `createdAtTo`
ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -839,17 +972,22 @@ Request request = new GetShopAccounts(
}
```
-**`setSuspended`**
-
+
+#### `setSuspended`
このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
+
+
成功したときは
@@ -864,6 +1002,81 @@ Request request = new GetShopAccounts(
+---
+
+
+
+## GetCustomerCards: エンドユーザーのクレジットカード一覧を取得する
+エンドユーザーのクレジットカード一覧を取得します。
+3D Secure認証済みのカードのみが返されます。
+idはcredit-sessions作成時に使用できます。
+
+```JAVA
+Request request = new GetCustomerCards(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // customerId: エンドユーザーID
+)
+ .page(2807) // ページ番号
+ .perPage(59); // 1ページ分の要素数
+
+```
+
+
+
+### Parameters
+#### `customerId`
+エンドユーザーのIDです。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `page`
+取得したいページ番号です。デフォルト値は1です。
+
+
+スキーマ
+
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+
+
+
+#### `perPage`
+1ページ当たりの要素数です。デフォルト値は30です。
+
+
+スキーマ
+
+```json
+{
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 100
+}
+```
+
+
+
+
+
+成功したときは
+[PaginatedUserCards](./responses.md#paginated-user-cards)
+を返します
+
+
+
---
@@ -877,10 +1090,10 @@ Request request = new ListCustomerTransactions(
)
.senderCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 送金エンドユーザーID
.receiverCustomerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 受取エンドユーザーID
- .type("payment") // 取引種別
- .setModified(true) // キャンセル済みかどうか
- .from("2023-04-21T10:46:48.000000Z") // 開始日時
- .to("2023-09-25T10:08:26.000000Z") // 終了日時
+ .type("topup") // 取引種別
+ .setModified(false) // キャンセル済みかどうか
+ .from("2025-09-13T03:13:20.000000Z") // 開始日時
+ .to("2022-09-28T01:52:57.000000Z") // 終了日時
.page(1) // ページ番号
.perPage(50); // 1ページ分の取引数
@@ -889,12 +1102,13 @@ Request request = new ListCustomerTransactions(
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
マネーIDです。
フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -902,13 +1116,16 @@ Request request = new ListCustomerTransactions(
}
```
-**`senderCustomerId`**
-
+
+#### `senderCustomerId`
送金ユーザーIDです。
フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -916,13 +1133,16 @@ Request request = new ListCustomerTransactions(
}
```
-**`receiverCustomerId`**
-
+
+#### `receiverCustomerId`
受取ユーザーIDです。
フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -930,9 +1150,9 @@ Request request = new ListCustomerTransactions(
}
```
-**`type`**
-
+
+#### `type`
取引の種類でフィルターします。
以下の種類を指定できます。
@@ -950,6 +1170,9 @@ Request request = new ListCustomerTransactions(
6. expire
ウォレット退会時失効
+
+スキーマ
+
```json
{
"type": "string",
@@ -964,28 +1187,34 @@ Request request = new ListCustomerTransactions(
}
```
-**`setModified`**
-
+
+#### `setModified`
キャンセル済みかどうかを判定するフラグです。
これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。
falseを指定するとキャンセルされていない取引のみ一覧に表示されます
何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`from`**
-
+
+#### `from`
抽出期間の開始日時です。
フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -993,13 +1222,16 @@ falseを指定するとキャンセルされていない取引のみ一覧に表
}
```
-**`to`**
-
+
+#### `to`
抽出期間の終了日時です。
フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1007,11 +1239,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1019,11 +1254,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取引数です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1031,6 +1269,8 @@ falseを指定するとキャンセルされていない取引のみ一覧に表
}
```
+
+
成功したときは
diff --git a/docs/error-response.csv b/docs/error-response.csv
index 9fc60683..3ac5afd9 100644
--- a/docs/error-response.csv
+++ b/docs/error-response.csv
@@ -1,4 +1,6 @@
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
@@ -12,12 +14,19 @@ 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,,,
,,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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
@@ -27,8 +36,14 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of '
,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer
,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit
,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer
-,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached
-,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached
+,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata
+,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount.
+,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount
+,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive
+,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time
+,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account
+,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money.
+,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money.
,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop.
,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used.
,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received.
@@ -76,7 +91,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
-,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format
+,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found.
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
@@ -86,8 +106,13 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On
,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer
,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit
,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer
-,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached
-,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached
+,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount.
+,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount
+,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive
+,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time
+,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account
+,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money.
+,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money.
,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop.
,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used.
,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received.
@@ -105,6 +130,8 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On
,,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
@@ -112,7 +139,12 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On
POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
,,422,customer_user_not_found,,The customer user is not found
,,422,check_not_found,"これはチャージQRコードではありません",This is not a topup QR code
-,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format
+,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found.
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
@@ -122,8 +154,13 @@ POST,/transactions/topup/check,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.
@@ -143,22 +180,77 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ
,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid
,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency
,,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
+,,422,customer_account_not_found,,The customer account is not found
+,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found
+,,422,account_suspended,"アカウントは停止されています",The account is suspended
+,,422,account_closed,"アカウントは退会しています",The account is closed
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
+,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts
+,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed
+,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user
+,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated
+,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
+,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid
+,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency
,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account
,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough
,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money
,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer
,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit
,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer
-,,422,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.
+,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet.
+,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon.
+,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment.
+,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable.
+,,503,temporarily_unavailable,,Service Unavailable
+POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found.
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
+,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
+,,422,private_money_closed,"このマネーは解約されています",This money was closed
+,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
+,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account
+,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough
+,,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.
@@ -168,8 +260,6 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理
,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable.
,,422,account_suspended,"アカウントは停止されています",The account is suspended
,,422,account_closed,"アカウントは退会しています",The account is closed
-,,422,customer_account_not_found,,The customer account is not found
-,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found
,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts
,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed
,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user
@@ -177,9 +267,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,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id
+,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata
,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format
+,,422,customer_account_not_found,,The customer account is not found
+,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found
+,,422,private_money_not_found,"マネーが見つかりません",Private money not found
+,,503,temporarily_unavailable,,Service Unavailable
+POST,/transactions/payment/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,disabled_bill,"支払いQRコードが無効です",Bill is disabled
+,,422,customer_user_not_found,,The customer user is not found
+,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found
+,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found.
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
@@ -189,8 +293,13 @@ POST,/transactions/payment,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.
@@ -200,6 +309,8 @@ POST,/transactions/payment,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
@@ -208,14 +319,18 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに
,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid
,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency
,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id
-,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata
+,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format
,,503,temporarily_unavailable,,Service Unavailable
POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
,,422,customer_user_not_found,,The customer user is not found
,,422,private_money_not_found,"マネーが見つかりません",Private money not found
-,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format
+,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found.
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
@@ -225,8 +340,13 @@ POST,/transactions/transfer,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.
@@ -246,11 +366,18 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに
,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid
,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency
,,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,422,account_not_found,"アカウントが見つかりません",The account is not found
,,422,transaction_restricted,,Transaction is not allowed
,,422,can_not_exchange_between_same_private_money,"同じマネーとの交換はできません",
,,422,can_not_exchange_between_users,"異なるユーザー間での交換は出来ません",
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts
,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user
@@ -266,8 +393,14 @@ POST,/transactions/exchange,422,account_not_found,"アカウントが見つか
,,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.
@@ -284,10 +417,16 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対
,,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,cpm_token_strategy_conflict,"CPMトークンに設定された支払い方式と異なる支払い方式が指定されました。",The strategy conflicts with the one set in the CPM token
,,422,cpm_token_already_proceed,"このCPMトークンは既に処理されています。",The CPM token is already proceed
,,422,cpm_token_already_expired,"このCPMトークンは既に失効しています。",The CPM token is already expired
,,422,cpm_token_not_found,"CPMトークンが見つかりませんでした。",The CPM token is not found.
-,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format
+,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found.
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
@@ -297,8 +436,13 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対
,,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.
@@ -318,8 +462,11 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対
,,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
@@ -327,7 +474,12 @@ POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには
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,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format
+,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found.
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
@@ -337,8 +489,13 @@ POST,/transactions/cashtray,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.
@@ -358,20 +515,30 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに
,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid
,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency
,,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
,,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,customer_account_not_found,,The customer account is not found
,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found
,,422,account_suspended,"アカウントは停止されています",The account is suspended
,,422,account_closed,"アカウントは退会しています",The account is closed
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts
,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed
@@ -388,8 +555,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.
@@ -397,6 +569,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
@@ -423,14 +597,18 @@ 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
+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
@@ -509,12 +687,16 @@ GET,/private-moneys/:uuid/clearings,403,unpermitted_admin_user,"この管理ユ
GET,/private-moneys/:uuid/organization-summaries,400,invalid_parameters,"項目が無効です",Invalid parameters
,,403,,,
,,404,,,
-POST,/private-moneys,400,invalid_parameters,"項目が無効です",Invalid parameters
+POST,/private-moneys,400,credit_card_monthly_cap_less_than_daily_cap,"クレジットカードの1か月間のチャージ額上限は1日あたりチャージ上限額以上である必要があります",Credit card's monthly topup cap is less than its daily cap.
+,,400,invalid_parameters,"項目が無効です",Invalid parameters
,,403,,,
+,,409,itrust_tenant_code_conflict,"テナント識別子はすでに登録されています",The tenant code is already registered
,,409,private_money_conflict,"このマネーは既に登録されています。",The money is already used
+,,422,private_money_invalid_fallback_private_money,"指定されたフォールバックマネーは有効ではありません",The specified fallback private money is not valid
,,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
@@ -557,7 +739,7 @@ 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,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
@@ -573,6 +755,9 @@ GET,/customers/:uuid,400,invalid_parameters,"項目が無効です",Invalid para
,,404,notfound,,Not found
,,422,account_not_found,"アカウントが見つかりません",The account is 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
@@ -617,7 +802,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
@@ -683,10 +871,16 @@ GET,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権
,,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
,,422,account_not_found,"アカウントが見つかりません",The account is not found
,,422,account_not_pre_closed,"アカウントが退会準備中ではありません",The account is not pre-closed
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts
,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user
@@ -702,8 +896,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.
@@ -724,6 +924,7 @@ GET,/accounts/:uuid/expired-balances,403,unpermitted_admin_user,"この管理ユ
,,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
@@ -793,8 +994,10 @@ GET,/coupons/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限
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.
@@ -827,8 +1030,12 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外
,,422,private_money_not_found,"マネーが見つかりません",Private money not found
,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled
,,422,user_device_not_found,,The user-device not found
-,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id
,,422,account_not_found,"アカウントが見つかりません",The account is not found
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
,,422,private_money_closed,"このマネーは解約されています",This money was closed
,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
@@ -838,8 +1045,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.
@@ -858,11 +1071,132 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外
,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account
,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid
,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency
+,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id
,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank
,,422,unpermitted_private_money,"このマネーは使えません",This money is not available
,,503,temporarily_unavailable,,Service Unavailable
,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator."
+DELETE,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,403,forbidden,,Forbidden
+,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found
+,,422,user_device_not_found,,The user-device not found
POST,/paytree/charge-entry-result,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data.
,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found.
POST,/paytree/reconcile,400,invalid_parameters,"項目が無効です",Invalid parameters
,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,503,temporarily_unavailable,,Service Unavailable
+POST,/accounts/:uuid/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid parameters
+,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
+,,422,account_not_found,"アカウントが見つかりません",The account is not found
+GET,/accounts/:uuid/topup-quotas,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
+,,422,account_not_found,"アカウントが見つかりません",The account is not found
+GET,/accounts/:uuid/topup-quotas/:quota-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
+,,422,account_not_found,"アカウントが見つかりません",The account is not found
+PATCH,/accounts/:uuid/topup-quotas/:quota-id,400,invalid_parameters,"項目が無効です",Invalid parameters
+,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
+,,422,account_not_found,"アカウントが見つかりません",The account is not found
+DELETE,/accounts/:uuid/topup-quotas/:quota-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
+,,422,account_not_found,"アカウントが見つかりません",The account is not found
+GET,/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid parameters
+,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
+,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account
+,,422,account_not_found,"アカウントが見つかりません",The account is not found
+,,422,private_money_not_found,"マネーが見つかりません",Private money not found
+POST,/credit-sessions,503,temporarily_unavailable,,Service Unavailable
+POST,/credit-sessions/:uuid/transactions,503,temporarily_unavailable,,Service Unavailable
+POST,/credit-sessions/:uuid/capture,503,temporarily_unavailable,,Service Unavailable
+POST,/internals/transaction-groups,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+GET,/internals/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found
+DELETE,/internals/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found
+,,503,temporarily_unavailable,,Service Unavailable
+POST,/internals/transactions,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found
+,,409,transaction_already_belongs_to_transaction_group,"取引はすでに別のグループに属しています",Transaction already belongs to another group
+,,422,transaction_amount_not_determined,"取引金額が指定されておらず、特定できません",Transaction amount is not specified and cannot be determined
+,,422,account_not_found,"アカウントが見つかりません",The account is not found
+,,422,user_not_found,"ユーザーが見つかりません",The user is not found
+,,422,private_money_not_found,"マネーが見つかりません",Private money not found
+,,422,transaction_not_found,"取引が見つかりません",Transaction not found
+,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id
+,,503,temporarily_unavailable,,Service Unavailable
+POST,/internals/expire-balance,400,invalid_parameters,"項目が無効です",Invalid parameters
+,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found
+,,409,transaction_already_belongs_to_transaction_group,"取引はすでに別のグループに属しています",Transaction already belongs to another group
+,,422,account_not_found,"アカウントが見つかりません",The account is not found
+,,422,user_not_found,"ユーザーが見つかりません",The user is not found
+,,422,private_money_not_found,"マネーが見つかりません",Private money not found
+,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money
+,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending.
+,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found
+,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup.
+,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money.
+,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup
+,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts
+,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user
+,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated
+,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account
+,,422,private_money_closed,"このマネーは解約されています",This money was closed
+,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled
+,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid
+,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency
+,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account
+,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough
+,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money
+,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer
+,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit
+,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer
+,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata
+,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount.
+,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount
+,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive
+,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time
+,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account
+,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money.
+,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money.
+,,422,coupon_unavailable_shop,"このクーポンはこの店舗では使用できません。",This coupon is unavailable for this shop.
+,,422,coupon_already_used,"このクーポンは既に使用済みです。",This coupon is already used.
+,,422,coupon_not_received,"このクーポンは受け取られていません。",This coupon is not received.
+,,422,coupon_not_sent,"このウォレットに対して配信されていないクーポンです。",This coupon is not sent to this account yet.
+,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon.
+,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment.
+,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable.
+,,422,account_suspended,"アカウントは停止されています",The account is suspended
+,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed
+,,422,account_closed,"アカウントは退会しています",The account is closed
+,,422,transaction_not_found,"取引が見つかりません",Transaction not found
+,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id
+,,503,temporarily_unavailable,,Service Unavailable
+GET,/internals/system-user,422,user_not_found,"ユーザーが見つかりません",The user is not found
+,,503,temporarily_unavailable,,Service Unavailable
+GET,/internals/private-moneys/:uuid/credit-session-settings,422,private_money_not_found,"マネーが見つかりません",Private money not found
+,,503,temporarily_unavailable,,Service Unavailable
+GET,/jihanpi-vending-machines,400,invalid_parameters,"項目が無効です",Invalid parameters
+,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,organization_not_found,,Organization not found
+,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found
+,,422,private_money_not_found,"マネーが見つかりません",Private money not found
+POST,/jihanpi-vending-machines,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,409,jihanpi_vending_machine_nfc_tag_id_conflict,"同じ自販機NFCタグIDがすでに存在します",Jihanpi vending machine NFC tag ID conflict
+,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found
+,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found
+GET,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found
+PATCH,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,409,jihanpi_vending_machine_nfc_tag_id_conflict,"同じ自販機NFCタグIDがすでに存在します",Jihanpi vending machine NFC tag ID conflict
+,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found
+,,503,temporarily_unavailable,,Service Unavailable
+DELETE,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission
+,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found
+,,503,temporarily_unavailable,,Service Unavailable
diff --git a/docs/event.md b/docs/event.md
index e5935b68..4fdf7347 100644
--- a/docs/event.md
+++ b/docs/event.md
@@ -1,4 +1,10 @@
# Event
+外部決済イベント(ExternalTransaction)を表すデータです。
+Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。
+外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。
+イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。
+リクエストIDによる羃等性の担保もサポートしています。
+
## CreateExternalTransaction: ポケペイ外部取引を作成する
@@ -6,7 +12,6 @@
ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。
-
```JAVA
JsonObject items = new JsonObject();
items.addProperty("jan_code", "abc");
@@ -28,26 +33,27 @@ Request request = new CreateExternalTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID
- 1360 // amount: 取引額
+ 7586 // amount: 取引額
)
.description("たい焼き(小倉)") // 取引説明文
.metadata("{\"key\":\"value\"}") // ポケペイ外部取引メタデータ
.products(new Object[]{items,items2}) // 商品情報データ
.requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID
- .doneAt("2020-06-15T08:52:34.000000Z"); // ポケペイ外部取引の実施時間
+ .doneAt("2025-04-12T21:38:52.000000Z"); // ポケペイ外部取引の実施時間
```
### Parameters
-**`shopId`**
-
-
+#### `shopId`
店舗IDです。
ポケペイ外部取引が行なう店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -55,13 +61,16 @@ Request request = new CreateExternalTransaction(
}
```
-**`customerId`**
-
+
+#### `customerId`
エンドユーザーIDです。
エンドユーザーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -69,13 +78,16 @@ Request request = new CreateExternalTransaction(
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
マネーIDです。
マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -83,11 +95,14 @@ Request request = new CreateExternalTransaction(
}
```
-**`amount`**
-
+
+#### `amount`
取引金額です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -95,13 +110,16 @@ Request request = new CreateExternalTransaction(
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
任意入力で、取引履歴に表示される説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -109,13 +127,16 @@ Request request = new CreateExternalTransaction(
}
```
-**`metadata`**
-
+
+#### `metadata`
ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -123,9 +144,9 @@ Request request = new CreateExternalTransaction(
}
```
-**`products`**
-
+
+#### `products`
一つの取引に含まれる商品情報データです。
以下の内容からなるJSONオブジェクトの配列で指定します。
@@ -137,6 +158,9 @@ Request request = new CreateExternalTransaction(
- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean
- `other`: その他商品に関する情報。JSONオブジェクトで指定します。
+
+スキーマ
+
```json
{
"type": "array",
@@ -146,15 +170,18 @@ Request request = new CreateExternalTransaction(
}
```
-**`requestId`**
-
+
+#### `requestId`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -162,13 +189,16 @@ Request request = new CreateExternalTransaction(
}
```
-**`doneAt`**
-
+
+#### `doneAt`
ポケペイ外部取引が実際に起こった時間です。
時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。
デフォルトではCreateExternalTransactionがリクエストされた時間になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -176,6 +206,8 @@ Request request = new CreateExternalTransaction(
}
```
+
+
成功したときは
@@ -190,11 +222,15 @@ Request request = new CreateExternalTransaction(
|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|customer_account_not_found||The customer account is not found|
|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found|
|422|account_suspended|アカウントは停止されています|The account is suspended|
|422|account_closed|アカウントは退会しています|The account is closed|
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts|
|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed|
@@ -211,8 +247,13 @@ Request request = new CreateExternalTransaction(
|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.|
@@ -220,6 +261,8 @@ Request request = new CreateExternalTransaction(
|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|
@@ -247,9 +290,10 @@ Request request = new RefundExternalTransaction(
### Parameters
-**`eventId`**
-
+#### `eventId`
+
+スキーマ
```json
{
@@ -258,9 +302,12 @@ Request request = new RefundExternalTransaction(
}
```
-**`description`**
-
+
+
+#### `description`
+
+スキーマ
```json
{
@@ -269,6 +316,8 @@ Request request = new RefundExternalTransaction(
}
```
+
+
成功したときは
@@ -296,9 +345,10 @@ Request request = new GetExternalTransactionByRequestId(
### Parameters
-**`requestId`**
-
+#### `requestId`
+
+スキーマ
```json
{
@@ -307,6 +357,8 @@ Request request = new GetExternalTransactionByRequestId(
}
```
+
+
成功したときは
diff --git a/docs/organization.md b/docs/organization.md
index 1c9c3474..beff890c 100644
--- a/docs/organization.md
+++ b/docs/organization.md
@@ -1,4 +1,9 @@
# Organization
+組織(発行体・加盟店組織)を表すデータです。
+Pokepay上でマネーを発行する発行体や、店舗を束ねる加盟店組織を管理します。
+組織には組織コード、組織名、本社情報などが含まれます。
+組織配下に複数の店舗(Shop)を持つことができます。
+
## ListOrganizations: 加盟店組織の一覧を取得する
@@ -9,20 +14,21 @@ Request request = new ListOrganizations(
)
.page(1) // ページ番号
.perPage(50) // 1ページ分の取引数
- .name("AZ") // 組織名
- .code("81ee9F1zae"); // 組織コード
+ .name("nN") // 組織名
+ .code("l"); // 組織コード
```
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
マネーIDです。
このマネーに加盟している加盟組織がフィルターされます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -30,11 +36,14 @@ Request request = new ListOrganizations(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -42,11 +51,14 @@ Request request = new ListOrganizations(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取引数です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -54,9 +66,12 @@ Request request = new ListOrganizations(
}
```
-**`name`**
-
+
+
+#### `name`
+
+スキーマ
```json
{
@@ -64,9 +79,12 @@ Request request = new ListOrganizations(
}
```
-**`code`**
-
+
+#### `code`
+
+
+スキーマ
```json
{
@@ -74,6 +92,8 @@ Request request = new ListOrganizations(
}
```
+
+
成功したときは
@@ -99,9 +119,9 @@ Request request = new ListOrganizations(
Request request = new CreateOrganization(
"ox-supermarket", // code: 新規組織コード
"oxスーパー", // name: 新規組織名
- new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // privateMoneyIds: 加盟店組織で有効にするマネーIDの配列
- "UGprRtPpZg@ZzOh.com", // issuerAdminUserEmail: 発行体担当者メールアドレス
- "vmvIjVKe7a@M7Qi.com" // memberAdminUserEmail: 新規組織担当者メールアドレス
+ new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // privateMoneyIds: 加盟店組織で有効にするマネーIDの配列
+ "3R6Ngh2OAi@1Bcn.com", // issuerAdminUserEmail: 発行体担当者メールアドレス
+ "wfTRLJa4uo@IhpR.com" // memberAdminUserEmail: 新規組織担当者メールアドレス
)
.bankName("XYZ銀行") // 銀行名
.bankCode("1234") // 銀行金融機関コード
@@ -117,9 +137,10 @@ Request request = new CreateOrganization(
### Parameters
-**`code`**
-
+#### `code`
+
+スキーマ
```json
{
@@ -128,9 +149,12 @@ Request request = new CreateOrganization(
}
```
-**`name`**
-
+
+
+#### `name`
+
+スキーマ
```json
{
@@ -139,9 +163,12 @@ Request request = new CreateOrganization(
}
```
-**`privateMoneyIds`**
-
+
+#### `privateMoneyIds`
+
+
+スキーマ
```json
{
@@ -154,9 +181,12 @@ Request request = new CreateOrganization(
}
```
-**`issuerAdminUserEmail`**
-
+
+
+#### `issuerAdminUserEmail`
+
+スキーマ
```json
{
@@ -165,9 +195,12 @@ Request request = new CreateOrganization(
}
```
-**`memberAdminUserEmail`**
-
+
+#### `memberAdminUserEmail`
+
+
+スキーマ
```json
{
@@ -176,9 +209,12 @@ Request request = new CreateOrganization(
}
```
-**`bankName`**
-
+
+
+#### `bankName`
+
+スキーマ
```json
{
@@ -187,9 +223,12 @@ Request request = new CreateOrganization(
}
```
-**`bankCode`**
-
+
+
+#### `bankCode`
+
+スキーマ
```json
{
@@ -198,9 +237,12 @@ Request request = new CreateOrganization(
}
```
-**`bankBranchName`**
-
+
+#### `bankBranchName`
+
+
+スキーマ
```json
{
@@ -209,9 +251,12 @@ Request request = new CreateOrganization(
}
```
-**`bankBranchCode`**
-
+
+
+#### `bankBranchCode`
+
+スキーマ
```json
{
@@ -220,9 +265,12 @@ Request request = new CreateOrganization(
}
```
-**`bankAccountType`**
-
+
+#### `bankAccountType`
+
+
+スキーマ
```json
{
@@ -235,9 +283,12 @@ Request request = new CreateOrganization(
}
```
-**`bankAccount`**
-
+
+
+#### `bankAccount`
+
+スキーマ
```json
{
@@ -247,9 +298,12 @@ Request request = new CreateOrganization(
}
```
-**`bankAccountHolderName`**
-
+
+
+#### `bankAccountHolderName`
+
+スキーマ
```json
{
@@ -259,9 +313,12 @@ Request request = new CreateOrganization(
}
```
-**`contactName`**
-
+
+#### `contactName`
+
+
+スキーマ
```json
{
@@ -270,6 +327,8 @@ Request request = new CreateOrganization(
}
```
+
+
成功したときは
diff --git a/docs/private_money.md b/docs/private_money.md
index 622fef6c..40797bc4 100644
--- a/docs/private_money.md
+++ b/docs/private_money.md
@@ -1,4 +1,10 @@
# Private Money
+Pokepay上で発行する電子マネーを表すデータです。
+電子マネーは1つの発行体(Organization)によって発行されます。
+電子マネーはCustomerやMerchantが所有するウォレット間を送金されます。
+電子マネー残高はユーザが有償で購入するマネーと無償で付与されるポイントの2種類のバリューで構成され、
+それぞれ有効期限決定ロジックは電子マネーの設定に依存します。
+
## GetPrivateMoneys: マネー一覧を取得する
@@ -17,11 +23,12 @@ Request request = new GetPrivateMoneys()
### Parameters
-**`organizationCode`**
-
-
+#### `organizationCode`
パートナーキーの管理者が発行体組織に属している場合、発行マネーのうち、この組織コードで指定した決済加盟店組織が加盟しているマネーの一覧を返します。決済加盟店組織の管理者は自組織以外を指定することはできません。
+
+スキーマ
+
```json
{
"type": "string",
@@ -30,9 +37,12 @@ Request request = new GetPrivateMoneys()
}
```
-**`page`**
-
+
+
+#### `page`
+
+スキーマ
```json
{
@@ -41,9 +51,12 @@ Request request = new GetPrivateMoneys()
}
```
-**`perPage`**
-
+
+#### `perPage`
+
+
+スキーマ
```json
{
@@ -52,6 +65,8 @@ Request request = new GetPrivateMoneys()
}
```
+
+
成功したときは
@@ -76,8 +91,8 @@ Request request = new GetPrivateMoneys()
Request request = new GetPrivateMoneyOrganizationSummaries(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID
)
- .from("2023-04-20T00:53:32.000000Z") // 開始日時(toと同時に指定する必要有)
- .to("2023-12-03T18:01:03.000000Z") // 終了日時(fromと同時に指定する必要有)
+ .from("2023-11-03T02:09:32.000000Z") // 開始日時(toと同時に指定する必要有)
+ .to("2026-03-30T15:14:20.000000Z") // 終了日時(fromと同時に指定する必要有)
.page(1) // ページ番号
.perPage(50); // 1ページ分の取引数
@@ -87,9 +102,10 @@ Request request = new GetPrivateMoneyOrganizationSummaries(
### Parameters
-**`privateMoneyId`**
-
+#### `privateMoneyId`
+
+スキーマ
```json
{
@@ -98,9 +114,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries(
}
```
-**`from`**
-
+
+
+#### `from`
+
+スキーマ
```json
{
@@ -109,9 +128,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries(
}
```
-**`to`**
-
+
+#### `to`
+
+
+スキーマ
```json
{
@@ -120,9 +142,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries(
}
```
-**`page`**
-
+
+
+#### `page`
+
+スキーマ
```json
{
@@ -131,9 +156,12 @@ Request request = new GetPrivateMoneyOrganizationSummaries(
}
```
-**`perPage`**
-
+
+#### `perPage`
+
+
+スキーマ
```json
{
@@ -142,6 +170,8 @@ Request request = new GetPrivateMoneyOrganizationSummaries(
}
```
+
+
成功したときは
@@ -160,17 +190,18 @@ Request request = new GetPrivateMoneyOrganizationSummaries(
Request request = new GetPrivateMoneySummary(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID
)
- .from("2022-01-26T00:25:32.000000Z") // 開始日時
- .to("2020-09-07T00:32:24.000000Z"); // 終了日時
+ .from("2025-04-08T18:58:51.000000Z") // 開始日時
+ .to("2022-11-15T07:44:36.000000Z"); // 終了日時
```
### Parameters
-**`privateMoneyId`**
-
+#### `privateMoneyId`
+
+スキーマ
```json
{
@@ -179,9 +210,12 @@ Request request = new GetPrivateMoneySummary(
}
```
-**`from`**
-
+
+#### `from`
+
+
+スキーマ
```json
{
@@ -190,9 +224,12 @@ Request request = new GetPrivateMoneySummary(
}
```
-**`to`**
-
+
+
+#### `to`
+
+スキーマ
```json
{
@@ -201,6 +238,8 @@ Request request = new GetPrivateMoneySummary(
}
```
+
+
成功したときは
diff --git a/docs/responses.md b/docs/responses.md
index 5b3cb837..dfb09591 100644
--- a/docs/responses.md
+++ b/docs/responses.md
@@ -1,12 +1,34 @@
# Responses
+
+## CreditSession
+* `getId() String`:
+* `getExpiresAt() String`:
+
+
+## CapturedCreditSession
+* `getSessionId() String`:
+
+
+## CreditSessionTransactionResult
+
+
+## PaginatedUserCards
+* `getRows() UserCard[]`:
+* `getCount() int`: 総件数
+* `getPagination() Pagination`:
+
+`getRows`は [UserCard](#user-card) クラスのインスタンスの配列を返します。
+
+`getPagination`は [Pagination](#pagination) クラスのインスタンスを返します。
+
## AccountWithUser
-* `getId() String`:
-* `getName() String`:
-* `isSuspended() boolean`:
-* `getStatus() String`:
-* `getPrivateMoney() PrivateMoney`:
-* `getUser() User`:
+* `getId() String`: ウォレットID
+* `getName() String`: ウォレット名
+* `isSuspended() boolean`: ウォレットが凍結されているかどうか
+* `getStatus() String`: ウォレット状態
+* `getPrivateMoney() PrivateMoney`: 設定マネー情報
+* `getUser() User`: ユーザ情報
`getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。
@@ -14,17 +36,17 @@
## AccountDetail
-* `getId() String`:
-* `getName() String`:
-* `isSuspended() boolean`:
-* `getStatus() String`:
-* `getBalance() double`:
-* `getMoneyBalance() double`:
-* `getPointBalance() double`:
-* `getPointDebt() double`:
-* `getPrivateMoney() PrivateMoney`:
-* `getUser() User`:
-* `getExternalId() String`:
+* `getId() String`: ウォレットID
+* `getName() String`: ウォレット名
+* `isSuspended() boolean`: ウォレットが凍結されているかどうか
+* `getStatus() String`: ウォレット状態
+* `getBalance() double`: 総残高
+* `getMoneyBalance() double`: マネー残高
+* `getPointBalance() double`: ポイント残高
+* `getPointDebt() double`: ポイント負債
+* `getPrivateMoney() PrivateMoney`: 設定マネー情報
+* `getUser() User`: ユーザ情報
+* `getExternalId() String`: 外部ID
`getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。
@@ -43,6 +65,7 @@
* `getAccount() AccountWithUser`: 支払いQRコード発行ウォレット
* `isDisabled() boolean`: 無効化されているかどうか
* `getToken() String`: 支払いQRコードを解析したときに出てくるURL
+* `getCreatedAt() String`: 支払いQRコードの作成日時
`getAccount`は [AccountWithUser](#account-with-user) クラスのインスタンスを返します。
@@ -89,6 +112,7 @@
* `getScopes() String[]`: 許可された取引種別
* `getExpiresAt() String`: CPMトークンの失効日時
* `getMetadata() String`: エンドユーザー側メタデータ
+* `getStrategy() String`: 支払い時の残高消費方式
`getAccount`は [AccountDetail](#account-detail) クラスのインスタンスを返します。
@@ -142,9 +166,9 @@
* `getId() String`: 取引ID
* `getType() String`: 取引種別
* `isModified() boolean`: 返金された取引かどうか
-* `getSender() User`: 送金者情報
+* `getSender() User`: 送金ユーザ情報
* `getSenderAccount() Account`: 送金ウォレット情報
-* `getReceiver() User`: 受取者情報
+* `getReceiver() User`: 受取ユーザ情報
* `getReceiverAccount() Account`: 受取ウォレット情報
* `getAmount() double`: 取引総額 (マネー額 + ポイント額)
* `getMoneyAmount() double`: 取引マネー額
@@ -153,7 +177,7 @@
* `getCampaignPointAmount() double`: キャンペーンによるポイント付与額
* `getDoneAt() String`: 取引日時
* `getDescription() String`: 取引説明文
-* `getTransfers() Transfer[]`:
+* `getTransfers() Transfer[]`: 取引明細一覧
`getReceiver`と`getSender`は [User](#user) クラスのインスタンスを返します。
@@ -161,6 +185,16 @@
`getTransfers`は [Transfer](#transfer) クラスのインスタンスの配列を返します。
+
+## TransactionGroup
+* `getId() String`: トランザクショングループID
+* `getName() String`: トランザクショングループ名
+* `getCreatedAt() String`: 作成日時
+* `getUpdatedAt() String`: 更新日時
+* `getTransactions() Transaction[]`: グループに属する取引一覧
+
+`getTransactions`は [Transaction](#transaction) クラスのインスタンスの配列を返します。
+
## ShopWithAccounts
* `getId() String`: 店舗ID
@@ -187,6 +221,7 @@
* `getErrorLineno() int`: バルク取引のエラーが発生した行番号
* `getSubmittedAt() String`: バルク取引が登録された日時
* `getUpdatedAt() String`: バルク取引が更新された日時
+* `getScheduledAt() String`: バルク取引の予約実行日時
## PaginatedBulkTransactionJob
@@ -273,6 +308,9 @@
`getRows`は [Bank](#bank) クラスのインスタンスの配列を返します。
+
+## BankDeleted
+
## PaginatedTransaction
* `getRows() Transaction[]`:
@@ -293,6 +331,16 @@
`getRows`は [Transaction](#transaction) クラスのインスタンスの配列を返します。
+
+## PaginatedBillTransaction
+* `getRows() BillTransaction[]`:
+* `getPerPage() int`:
+* `getCount() int`:
+* `getNextPageCursorId() String`:
+* `getPrevPageCursorId() String`:
+
+`getRows`は [BillTransaction](#bill-transaction) クラスのインスタンスの配列を返します。
+
## PaginatedTransfers
* `getRows() Transfer[]`:
@@ -461,6 +509,8 @@
* `getCouponImage() String`: クーポン画像のURL
* `getAvailableShops() User[]`: 利用可能店舗リスト
* `getPrivateMoney() PrivateMoney`: クーポンのマネー
+* `getNumRecipientsCap() int`: クーポンを受け取ることができるユーザ数上限
+* `getNumRecipients() int`: クーポンを受け取ったユーザ数
`getIssuedShop`は [User](#user) クラスのインスタンスを返します。
@@ -505,6 +555,20 @@
`getTransaction`は [Transaction](#transaction) クラスのインスタンスを返します。
+
+## UserCard
+* `getId() String`: カード識別子
+* `getCardNumber() String`: マスク済みカード番号
+* `getRegisteredAt() String`: 登録日時
+
+
+## Pagination
+* `getCurrent() int`:
+* `getPerPage() int`:
+* `getMaxPage() int`:
+* `getHasPrev() boolean`:
+* `getHasNext() boolean`:
+
## PrivateMoney
* `getId() String`: マネーID
@@ -524,22 +588,14 @@
`getOrganization`は [Organization](#organization) クラスのインスタンスを返します。
-
-## Pagination
-* `getCurrent() int`:
-* `getPerPage() int`:
-* `getMaxPage() int`:
-* `getHasPrev() boolean`:
-* `getHasNext() boolean`:
-
## Transaction
* `getId() String`: 取引ID
* `getType() String`: 取引種別
* `isModified() boolean`: 返金された取引かどうか
-* `getSender() User`: 送金者情報
+* `getSender() User`: 送金ユーザ情報
* `getSenderAccount() Account`: 送金ウォレット情報
-* `getReceiver() User`: 受取者情報
+* `getReceiver() User`: 受取ユーザ情報
* `getReceiverAccount() Account`: 受取ウォレット情報
* `getAmount() double`: 取引総額 (マネー額 + ポイント額)
* `getMoneyAmount() double`: 取引マネー額
@@ -584,23 +640,23 @@
* `getId() String`: ウォレットID
* `getName() String`: ウォレット名
* `isSuspended() boolean`: ウォレットが凍結されているかどうか
-* `getStatus() String`:
+* `getStatus() String`: ウォレット状態
* `getPrivateMoney() PrivateMoney`: 設定マネー情報
`getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。
## Transfer
-* `getId() String`:
-* `getSenderAccount() AccountWithoutPrivateMoneyDetail`:
-* `getReceiverAccount() AccountWithoutPrivateMoneyDetail`:
-* `getAmount() double`:
-* `getMoneyAmount() double`:
-* `getPointAmount() double`:
-* `getDoneAt() String`:
-* `getType() String`:
-* `getDescription() String`:
-* `getTransactionId() String`:
+* `getId() String`: 取引明細ID
+* `getSenderAccount() AccountWithoutPrivateMoneyDetail`: 送金元ウォレット
+* `getReceiverAccount() AccountWithoutPrivateMoneyDetail`: 送金先ウォレット
+* `getAmount() double`: 送金総額 (マネー額 + ポイント額)
+* `getMoneyAmount() double`: 送金マネー額
+* `getPointAmount() double`: 送金ポイント額
+* `getDoneAt() String`: 送金日時
+* `getType() String`: 取引明細種別
+* `getDescription() String`: 取引明細説明文
+* `getTransactionId() String`: 親取引ID
`getReceiverAccount`と`getSenderAccount`は [AccountWithoutPrivateMoneyDetail](#account-without-private-money-detail) クラスのインスタンスを返します。
@@ -657,6 +713,15 @@
`getPrivateMoney`は [PrivateMoney](#private-money) クラスのインスタンスを返します。
+
+## BillTransaction
+* `getTransaction() Transaction`:
+* `getBill() Bill`:
+
+`getTransaction`は [Transaction](#transaction) クラスのインスタンスを返します。
+
+`getBill`は [Bill](#bill) クラスのインスタンスを返します。
+
## AccountBalance
* `getExpiresAt() String`:
@@ -703,6 +768,8 @@
* `getCode() String`: クーポン受け取りコード
* `isDisabled() boolean`: 無効化フラグ
* `getToken() String`: クーポンを特定するためのトークン
+* `getNumRecipientsCap() int`: クーポンを受け取ることができるユーザ数上限
+* `getNumRecipients() int`: クーポンを受け取ったユーザ数
`getIssuedShop`は [User](#user) クラスのインスタンスを返します。
diff --git a/docs/seven_bank_atm_session.md b/docs/seven_bank_atm_session.md
index 741b5407..527898ad 100644
--- a/docs/seven_bank_atm_session.md
+++ b/docs/seven_bank_atm_session.md
@@ -1,14 +1,13 @@
# SevenBankATMSession
セブンATMチャージの取引内容を照会するAPIを提供しています。
-
## GetSevenBankATMSession: セブン銀行ATMセッションの取得
セブン銀行ATMセッションを取得します
```JAVA
Request request = new GetSevenBankATMSession(
- "ZBysF" // qrInfo: QRコードの情報
+ "KNmzEARJ1" // qrInfo: QRコードの情報
);
```
@@ -16,17 +15,20 @@ Request request = new GetSevenBankATMSession(
### Parameters
-**`qrInfo`**
-
-
+#### `qrInfo`
取得するセブン銀行ATMチャージのQRコードの情報です。
+
+スキーマ
+
```json
{
"type": "string"
}
```
+
+
成功したときは
diff --git a/docs/shop.md b/docs/shop.md
index 6e8b15e1..f9d9497c 100644
--- a/docs/shop.md
+++ b/docs/shop.md
@@ -1,4 +1,10 @@
# Shop
+店舗(加盟店)を表すデータです。
+Pokepayプラットフォーム上で支払いを受け取る店舗ユーザーを管理します。
+店舗は組織(Organization)に所属し、店舗ごとにウォレットを持ちます。
+店舗情報には住所、電話番号、メールアドレス、外部連携用IDなどが含まれます。
+店舗ステータス(active/disabled)の管理も可能です。
+
## ListShops: 店舗一覧を取得する
@@ -8,11 +14,11 @@ Request request = new ListShops()
.organizationCode("pocketchange") // 組織コード
.privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID
.name("oxスーパー三田店") // 店舗名
- .postalCode("3903470") // 店舗の郵便番号
+ .postalCode("202-5336") // 店舗の郵便番号
.address("東京都港区芝...") // 店舗の住所
- .tel("0341-24862") // 店舗の電話番号
- .email("5mN9clYyKl@8cUs.com") // 店舗のメールアドレス
- .externalId("Yw8CW8rHVcmWZsjKlFT0f7di") // 店舗の外部ID
+ .tel("054-540-9920") // 店舗の電話番号
+ .email("DEhr0AwKki@QOHC.com") // 店舗のメールアドレス
+ .externalId("QCIIRDiJ5EWSps1CcPm4CujuDvi") // 店舗の外部ID
.withDisabled(true) // 無効な店舗を含める
.page(1) // ページ番号
.perPage(50); // 1ページ分の取引数
@@ -22,11 +28,11 @@ Request request = new ListShops()
### Parameters
-**`organizationCode`**
-
-
+#### `organizationCode`
このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。
+
+スキーマ
```json
{
@@ -36,11 +42,13 @@ Request request = new ListShops()
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。
+
+スキーマ
```json
{
@@ -49,11 +57,13 @@ Request request = new ListShops()
}
```
-**`name`**
-
+
+#### `name`
このパラメータを渡すとその名前の店舗のみが返されます。
+
+スキーマ
```json
{
@@ -63,11 +73,13 @@ Request request = new ListShops()
}
```
-**`postalCode`**
-
+
+#### `postalCode`
このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -76,11 +88,13 @@ Request request = new ListShops()
}
```
-**`address`**
-
+
+#### `address`
このパラメータを渡すとその住所が登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -89,11 +103,13 @@ Request request = new ListShops()
}
```
-**`tel`**
-
+
+#### `tel`
このパラメータを渡すとその電話番号が登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -102,11 +118,13 @@ Request request = new ListShops()
}
```
-**`email`**
-
+
+#### `email`
このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -116,11 +134,13 @@ Request request = new ListShops()
}
```
-**`externalId`**
-
+
+#### `externalId`
このパラメータを渡すとその外部IDが登録された店舗のみが返されます。
+
+スキーマ
```json
{
@@ -129,11 +149,13 @@ Request request = new ListShops()
}
```
-**`withDisabled`**
-
+
+#### `withDisabled`
このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。
+
+スキーマ
```json
{
@@ -141,11 +163,14 @@ Request request = new ListShops()
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -153,11 +178,14 @@ Request request = new ListShops()
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取引数です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -165,6 +193,8 @@ Request request = new ListShops()
}
```
+
+
成功したときは
@@ -192,11 +222,11 @@ Request request = new ListShops()
Request request = new CreateShop(
"oxスーパー三田店" // shopName: 店舗名
)
- .shopPostalCode("720-9003") // 店舗の郵便番号
+ .shopPostalCode("9120026") // 店舗の郵便番号
.shopAddress("東京都港区芝...") // 店舗の住所
- .shopTel("06-5528-1163") // 店舗の電話番号
- .shopEmail("Ory7pQcwkQ@vvHf.com") // 店舗のメールアドレス
- .shopExternalId("ZTUiaSBniTvgiFcfFWfXo") // 店舗の外部ID
+ .shopTel("034-23333") // 店舗の電話番号
+ .shopEmail("5RxVGrM7sD@hsRo.com") // 店舗のメールアドレス
+ .shopExternalId("ZrBgBn") // 店舗の外部ID
.organizationCode("ox-supermarket"); // 組織コード
```
@@ -204,9 +234,10 @@ Request request = new CreateShop(
### Parameters
-**`shopName`**
-
+#### `shopName`
+
+スキーマ
```json
{
@@ -216,9 +247,12 @@ Request request = new CreateShop(
}
```
-**`shopPostalCode`**
-
+
+#### `shopPostalCode`
+
+
+スキーマ
```json
{
@@ -227,9 +261,12 @@ Request request = new CreateShop(
}
```
-**`shopAddress`**
-
+
+
+#### `shopAddress`
+
+スキーマ
```json
{
@@ -238,9 +275,12 @@ Request request = new CreateShop(
}
```
-**`shopTel`**
-
+
+#### `shopTel`
+
+
+スキーマ
```json
{
@@ -249,9 +289,12 @@ Request request = new CreateShop(
}
```
-**`shopEmail`**
-
+
+
+#### `shopEmail`
+
+スキーマ
```json
{
@@ -261,9 +304,12 @@ Request request = new CreateShop(
}
```
-**`shopExternalId`**
-
+
+#### `shopExternalId`
+
+
+スキーマ
```json
{
@@ -272,9 +318,12 @@ Request request = new CreateShop(
}
```
-**`organizationCode`**
-
+
+
+#### `organizationCode`
+
+スキーマ
```json
{
@@ -284,6 +333,8 @@ Request request = new CreateShop(
}
```
+
+
成功したときは
@@ -312,27 +363,28 @@ Request request = new CreateShop(
Request request = new CreateShopV2(
"oxスーパー三田店" // name: 店舗名
)
- .postalCode("8426726") // 店舗の郵便番号
+ .postalCode("7420873") // 店舗の郵便番号
.address("東京都港区芝...") // 店舗の住所
- .tel("02-11-332") // 店舗の電話番号
- .email("xSJQCC2TKE@3m70.com") // 店舗のメールアドレス
- .externalId("u0i2E7e3WCog3HknLhb4mGHjaX24j") // 店舗の外部ID
+ .tel("0813-603-4634") // 店舗の電話番号
+ .email("lFFoKvu4lo@beul.com") // 店舗のメールアドレス
+ .externalId("XI7c3F") // 店舗の外部ID
.organizationCode("ox-supermarket") // 組織コード
.privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列
- .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}); // 店舗でチャージ可能にするマネーIDの配列
+ .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}); // 店舗でチャージ可能にするマネーIDの配列
```
### Parameters
-**`name`**
-
-
+#### `name`
店舗名です。
同一組織内に同名の店舗があった場合は`name_conflict`エラーが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -341,9 +393,12 @@ Request request = new CreateShopV2(
}
```
-**`postalCode`**
-
+
+#### `postalCode`
+
+
+スキーマ
```json
{
@@ -352,9 +407,12 @@ Request request = new CreateShopV2(
}
```
-**`address`**
-
+
+
+#### `address`
+
+スキーマ
```json
{
@@ -363,9 +421,12 @@ Request request = new CreateShopV2(
}
```
-**`tel`**
-
+
+#### `tel`
+
+
+スキーマ
```json
{
@@ -374,9 +435,12 @@ Request request = new CreateShopV2(
}
```
-**`email`**
-
+
+
+#### `email`
+
+スキーマ
```json
{
@@ -386,9 +450,12 @@ Request request = new CreateShopV2(
}
```
-**`externalId`**
-
+
+#### `externalId`
+
+
+スキーマ
```json
{
@@ -397,9 +464,12 @@ Request request = new CreateShopV2(
}
```
-**`organizationCode`**
-
+
+
+#### `organizationCode`
+
+スキーマ
```json
{
@@ -409,14 +479,17 @@ Request request = new CreateShopV2(
}
```
-**`privateMoneyIds`**
-
+
+#### `privateMoneyIds`
店舗で有効にするマネーIDの配列を指定します。
店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。
このパラメータを省略したときは、店舗が所属する組織が発行または加盟している全てのマネーのウォレットができます。
+
+スキーマ
+
```json
{
"type": "array",
@@ -428,14 +501,17 @@ Request request = new CreateShopV2(
}
```
-**`canTopupPrivateMoneyIds`**
-
+
+#### `canTopupPrivateMoneyIds`
店舗でチャージ可能にするマネーIDの配列を指定します。
このパラメータは発行体のみが指定でき、自身が発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。
省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。
+
+スキーマ
+
```json
{
"type": "array",
@@ -447,6 +523,8 @@ Request request = new CreateShopV2(
}
```
+
+
成功したときは
@@ -485,9 +563,10 @@ Request request = new GetShop(
### Parameters
-**`shopId`**
-
+#### `shopId`
+
+スキーマ
```json
{
@@ -496,6 +575,8 @@ Request request = new GetShop(
}
```
+
+
成功したときは
@@ -516,23 +597,24 @@ Request request = new UpdateShop(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // shopId: 店舗ユーザーID
)
.name("oxスーパー三田店") // 店舗名
- .postalCode("6312761") // 店舗の郵便番号
+ .postalCode("1920291") // 店舗の郵便番号
.address("東京都港区芝...") // 店舗の住所
- .tel("01441419") // 店舗の電話番号
- .email("pgFNSux0je@obdQ.com") // 店舗のメールアドレス
- .externalId("1VXjU") // 店舗の外部ID
- .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列
- .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗でチャージ可能にするマネーIDの配列
- .status("disabled"); // 店舗の状態
+ .tel("007584-974") // 店舗の電話番号
+ .email("LtrR0H47hb@bDvB.com") // 店舗のメールアドレス
+ .externalId("kQWYC4RWqJwsq2yT7AWpCDk") // 店舗の外部ID
+ .privateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗で有効にするマネーIDの配列
+ .canTopupPrivateMoneyIds(new String[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}) // 店舗でチャージ可能にするマネーIDの配列
+ .status("active"); // 店舗の状態
```
### Parameters
-**`shopId`**
-
+#### `shopId`
+
+スキーマ
```json
{
@@ -541,13 +623,16 @@ Request request = new UpdateShop(
}
```
-**`name`**
-
+
+#### `name`
店舗名です。
同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -556,11 +641,14 @@ Request request = new UpdateShop(
}
```
-**`postalCode`**
-
+
+#### `postalCode`
店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -568,9 +656,12 @@ Request request = new UpdateShop(
}
```
-**`address`**
-
+
+#### `address`
+
+
+スキーマ
```json
{
@@ -579,11 +670,14 @@ Request request = new UpdateShop(
}
```
-**`tel`**
-
+
+#### `tel`
店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -591,11 +685,14 @@ Request request = new UpdateShop(
}
```
-**`email`**
-
+
+#### `email`
店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -604,11 +701,14 @@ Request request = new UpdateShop(
}
```
-**`externalId`**
-
+
+#### `externalId`
店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -616,14 +716,17 @@ Request request = new UpdateShop(
}
```
-**`privateMoneyIds`**
-
+
+#### `privateMoneyIds`
店舗で有効にするマネーIDの配列を指定します。
店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。
店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。
+
+スキーマ
+
```json
{
"type": "array",
@@ -635,14 +738,17 @@ Request request = new UpdateShop(
}
```
-**`canTopupPrivateMoneyIds`**
-
+
+#### `canTopupPrivateMoneyIds`
店舗でチャージ可能にするマネーIDの配列を指定します。
このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。
省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。
+
+スキーマ
+
```json
{
"type": "array",
@@ -654,11 +760,14 @@ Request request = new UpdateShop(
}
```
-**`status`**
-
+
+#### `status`
店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -669,6 +778,8 @@ Request request = new UpdateShop(
}
```
+
+
成功したときは
diff --git a/docs/transaction.md b/docs/transaction.md
index 41193020..a382521f 100644
--- a/docs/transaction.md
+++ b/docs/transaction.md
@@ -1,4 +1,15 @@
# Transaction
+取引を表すデータです。
+マネー(Private Money)のウォレット間の送金を記録し、キャンセルなどで状態が更新されることがあります。
+取引種類として以下が存在します。
+
+- topup: チャージ。Merchant => Customer送金
+- payment: 支払い。Customer => Merchant送金
+- transfer: 個人間譲渡。Customer => Customer送金
+- exchange: マネー間交換。1ユーザのウォレット間の送金(交換)
+- expire: 退会時失効。退会時の払戻を伴わない残高失効履歴
+- cashback: 退会時払戻。退会時の払戻金額履歴
+
## GetCpmToken: CPMトークンの状態取得
@@ -6,7 +17,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効
```JAVA
Request request = new GetCpmToken(
- "l7UfMqNeIWxDQ5mYkDBp76" // cpmToken: CPMトークン
+ "uuGnm3um0ZKYlqHYAPfacx" // cpmToken: CPMトークン
);
```
@@ -14,11 +25,12 @@ Request request = new GetCpmToken(
### Parameters
-**`cpmToken`**
-
-
+#### `cpmToken`
CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -27,6 +39,8 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを
}
```
+
+
成功したときは
@@ -44,18 +58,18 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを
```JAVA
Request request = new ListTransactions()
- .from("2020-04-18T09:50:55.000000Z") // 開始日時
- .to("2022-09-23T18:31:36.000000Z") // 終了日時
+ .from("2022-03-27T11:31:39.000000Z") // 開始日時
+ .to("2025-05-27T16:45:40.000000Z") // 終了日時
.page(1) // ページ番号
.perPage(50) // 1ページ分の取引数
.shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID
.customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID
.customerName("太郎") // エンドユーザー名
.terminalId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 端末ID
- .transactionId("l") // 取引ID
+ .transactionId("ba4pxX") // 取引ID
.organizationCode("pocketchange") // 組織コード
.privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID
- .setModified(true) // キャンセルフラグ
+ .setModified(false) // キャンセルフラグ
.types(new String[]{"topup","payment"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment
.description("店頭QRコードによる支払い"); // 取引説明文
@@ -64,13 +78,14 @@ Request request = new ListTransactions()
### Parameters
-**`from`**
-
-
+#### `from`
抽出期間の開始日時です。
フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -78,13 +93,16 @@ Request request = new ListTransactions()
}
```
-**`to`**
-
+
+#### `to`
抽出期間の終了日時です。
フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -92,11 +110,14 @@ Request request = new ListTransactions()
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -104,11 +125,14 @@ Request request = new ListTransactions()
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取引数です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -116,13 +140,16 @@ Request request = new ListTransactions()
}
```
-**`shopId`**
-
+
+#### `shopId`
店舗IDです。
フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -130,13 +157,16 @@ Request request = new ListTransactions()
}
```
-**`customerId`**
-
+
+#### `customerId`
エンドユーザーIDです。
フィルターとして使われ、指定されたエンドユーザーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -144,13 +174,16 @@ Request request = new ListTransactions()
}
```
-**`customerName`**
-
+
+#### `customerName`
エンドユーザー名です。
フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -158,13 +191,16 @@ Request request = new ListTransactions()
}
```
-**`terminalId`**
-
+
+#### `terminalId`
端末IDです。
フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -172,26 +208,32 @@ Request request = new ListTransactions()
}
```
-**`transactionId`**
-
+
+#### `transactionId`
取引IDです。
フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string"
}
```
-**`organizationCode`**
-
+
+#### `organizationCode`
組織コードです。
フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -200,13 +242,16 @@ Request request = new ListTransactions()
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
マネーIDです。
フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -214,23 +259,26 @@ Request request = new ListTransactions()
}
```
-**`setModified`**
-
+
+#### `setModified`
キャンセルフラグです。
これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。
デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`types`**
-
+
+#### `types`
取引の種類でフィルターします。
以下の種類を指定できます。
@@ -253,6 +301,9 @@ Request request = new ListTransactions()
6. expire
退会時失効取引
+
+スキーマ
+
```json
{
"type": "array",
@@ -270,13 +321,16 @@ Request request = new ListTransactions()
}
```
-**`description`**
-
+
+#### `description`
取引を指定の取引説明文でフィルターします。
取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -284,6 +338,8 @@ Request request = new ListTransactions()
}
```
+
+
成功したときは
@@ -311,19 +367,20 @@ Request request = new CreateTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
)
- .moneyAmount(8752)
- .pointAmount(6176)
- .pointExpiresAt("2022-06-27T17:56:39.000000Z") // ポイント有効期限
- .description("yF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5q");
+ .moneyAmount(6854)
+ .pointAmount(99)
+ .pointExpiresAt("2023-08-07T19:48:20.000000Z") // ポイント有効期限
+ .description("d3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVCDKp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7");
```
### Parameters
-**`shopId`**
-
+#### `shopId`
+
+スキーマ
```json
{
@@ -332,9 +389,12 @@ Request request = new CreateTransaction(
}
```
-**`customerId`**
-
+
+#### `customerId`
+
+
+スキーマ
```json
{
@@ -343,9 +403,12 @@ Request request = new CreateTransaction(
}
```
-**`privateMoneyId`**
-
+
+
+#### `privateMoneyId`
+
+スキーマ
```json
{
@@ -354,9 +417,12 @@ Request request = new CreateTransaction(
}
```
-**`moneyAmount`**
-
+
+#### `moneyAmount`
+
+
+スキーマ
```json
{
@@ -366,9 +432,12 @@ Request request = new CreateTransaction(
}
```
-**`pointAmount`**
-
+
+
+#### `pointAmount`
+
+スキーマ
```json
{
@@ -378,12 +447,15 @@ Request request = new CreateTransaction(
}
```
-**`pointExpiresAt`**
-
+
+#### `pointExpiresAt`
ポイントをチャージした場合の、付与されるポイントの有効期限です。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -391,9 +463,12 @@ Request request = new CreateTransaction(
}
```
-**`description`**
-
+
+
+#### `description`
+
+スキーマ
```json
{
@@ -402,6 +477,8 @@ Request request = new CreateTransaction(
}
```
+
+
成功したときは
@@ -417,6 +494,11 @@ Request request = new CreateTransaction(
|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|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|private_money_closed|このマネーは解約されています|This money was closed|
|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled|
@@ -426,8 +508,14 @@ Request request = new CreateTransaction(
|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.|
@@ -450,6 +538,93 @@ Request request = new CreateTransaction(
+---
+
+
+
+## CreateTransactionGroup: トランザクショングループを作成する
+複数の取引を1つのグループとして管理できるようにします。
+
+```JAVA
+Request request = new CreateTransactionGroup(
+ "hkzGk2" // 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: トランザクショングループを取得する
+指定したトランザクショングループの詳細を返します。
+
+```JAVA
+Request request = new ShowTransactionGroup(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // uuid: 取得したいトランザクショングループID
+);
+
+```
+
+
+
+### Parameters
+#### `uuid`
+取得したいトランザクショングループID
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+
+
+成功したときは
+[TransactionGroup](./responses.md#transaction-group)
+を返します
+
+
+
---
@@ -466,11 +641,11 @@ Request request = new ListTransactionsV2()
.customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID
.customerName("太郎") // エンドユーザー名
.description("店頭QRコードによる支払い") // 取引説明文
- .transactionId("peG") // 取引ID
+ .transactionId("yYl") // 取引ID
.setModified(false) // キャンセルフラグ
.types(new String[]{"topup","payment"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment
- .from("2021-05-03T01:40:37.000000Z") // 開始日時
- .to("2021-05-13T19:05:55.000000Z") // 終了日時
+ .from("2020-07-30T17:54:45.000000Z") // 開始日時
+ .to("2025-03-14T01:25:15.000000Z") // 終了日時
.nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransactionのID
.prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransactionのID
.perPage(50); // 1ページ分の取引数
@@ -480,13 +655,14 @@ Request request = new ListTransactionsV2()
### Parameters
-**`privateMoneyId`**
-
-
+#### `privateMoneyId`
マネーIDです。
指定したマネーでの取引が一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -494,13 +670,16 @@ Request request = new ListTransactionsV2()
}
```
-**`organizationCode`**
-
+
+#### `organizationCode`
組織コードです。
フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -509,13 +688,16 @@ Request request = new ListTransactionsV2()
}
```
-**`shopId`**
-
+
+#### `shopId`
店舗IDです。
フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -523,13 +705,16 @@ Request request = new ListTransactionsV2()
}
```
-**`terminalId`**
-
+
+#### `terminalId`
端末IDです。
フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -537,13 +722,16 @@ Request request = new ListTransactionsV2()
}
```
-**`customerId`**
-
+
+#### `customerId`
エンドユーザーIDです。
フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -551,13 +739,16 @@ Request request = new ListTransactionsV2()
}
```
-**`customerName`**
-
+
+#### `customerName`
エンドユーザー名です。
フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -565,13 +756,16 @@ Request request = new ListTransactionsV2()
}
```
-**`description`**
-
+
+#### `description`
取引を指定の取引説明文でフィルターします。
取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -579,36 +773,42 @@ Request request = new ListTransactionsV2()
}
```
-**`transactionId`**
-
+
+#### `transactionId`
取引IDです。
フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string"
}
```
-**`setModified`**
-
+
+#### `setModified`
キャンセルフラグです。
これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。
デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`types`**
-
+
+#### `types`
取引の種類でフィルターします。
以下の種類を指定できます。
@@ -635,6 +835,9 @@ Request request = new ListTransactionsV2()
6. expire
退会時失効取引
+
+スキーマ
+
```json
{
"type": "array",
@@ -652,13 +855,16 @@ Request request = new ListTransactionsV2()
}
```
-**`from`**
-
+
+#### `from`
抽出期間の開始日時です。
フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -666,13 +872,16 @@ Request request = new ListTransactionsV2()
}
```
-**`to`**
-
+
+#### `to`
抽出期間の終了日時です。
フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -680,15 +889,18 @@ Request request = new ListTransactionsV2()
}
```
-**`nextPageCursorId`**
-
+
+#### `nextPageCursorId`
次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。
本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。
UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。
next_page_cursor_idのtransaction自体は次のページには含まれません。
+
+スキーマ
+
```json
{
"type": "string",
@@ -696,9 +908,9 @@ next_page_cursor_idのtransaction自体は次のページには含まれませ
}
```
-**`prevPageCursorId`**
-
+
+#### `prevPageCursorId`
前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。
本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。
@@ -706,6 +918,9 @@ UUIDである場合は前のページが存在することを意味し、このp
prev_page_cursor_idのtransaction自体は前のページには含まれません。
+
+スキーマ
+
```json
{
"type": "string",
@@ -713,13 +928,16 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取引数です。
デフォルト値は50です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -728,6 +946,8 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ
}
```
+
+
成功したときは
@@ -742,6 +962,311 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ
+---
+
+
+
+## ListBillTransactions: 支払い取引履歴を取得する
+支払いによって発生した取引を支払いのデータとともに一覧で返します。
+
+```JAVA
+Request request = new ListBillTransactions()
+ .privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID
+ .organizationCode("pocketchange") // 組織コード
+ .shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID
+ .customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID
+ .customerName("太郎") // エンドユーザー名
+ .terminalId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザー端末ID
+ .description("店頭QRコードによる支払い") // 取引説明文
+ .transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 取引ID
+ .billId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 支払いQRコードのID
+ .setModified(true) // キャンセルフラグ
+ .from("2021-06-04T01:56:12.000000Z") // 開始日時
+ .to("2026-03-07T00:18:34.000000Z") // 終了日時
+ .nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransactionのID
+ .prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransactionのID
+ .perPage(50); // 1ページ分の取引数
+
+```
+
+
+
+### Parameters
+#### `privateMoneyId`
+マネーIDです。
+
+指定したマネーでの取引が一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `organizationCode`
+組織コードです。
+
+フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "maxLength": 32,
+ "pattern": "^[a-zA-Z0-9-]*$"
+}
+```
+
+
+
+#### `shopId`
+店舗IDです。
+
+フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `customerId`
+エンドユーザーIDです。
+
+フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `customerName`
+エンドユーザー名です。
+
+フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "maxLength": 256
+}
+```
+
+
+
+#### `terminalId`
+エンドユーザーの端末IDです。
+フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `description`
+取引を指定の取引説明文でフィルターします。
+
+取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "maxLength": 200
+}
+```
+
+
+
+#### `transactionId`
+取引IDです。
+
+フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `billId`
+支払いQRコードのIDです。
+
+フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `setModified`
+キャンセルフラグです。
+
+これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。
+デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "boolean"
+}
+```
+
+
+
+#### `from`
+抽出期間の開始日時です。
+
+フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+
+
+#### `to`
+抽出期間の終了日時です。
+
+フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "date-time"
+}
+```
+
+
+
+#### `nextPageCursorId`
+次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。
+本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。
+UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。
+
+next_page_cursor_idのtransaction自体は次のページには含まれません。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `prevPageCursorId`
+前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。
+
+本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。
+UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。
+
+prev_page_cursor_idのtransaction自体は前のページには含まれません。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
+#### `perPage`
+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|
+
+
+
---
@@ -756,9 +1281,9 @@ Request request = new CreateTopupTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // privateMoneyId: マネーID
)
.bearPointShopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // ポイント支払時の負担店舗ID
- .moneyAmount(7901) // マネー額
- .pointAmount(5298) // ポイント額
- .pointExpiresAt("2023-08-17T00:14:32.000000Z") // ポイント有効期限
+ .moneyAmount(4943) // マネー額
+ .pointAmount(1872) // ポイント額
+ .pointExpiresAt("2024-11-09T23:39:20.000000Z") // ポイント有効期限
.description("初夏のチャージキャンペーン") // 取引履歴に表示する説明文
.metadata("{\"key\":\"value\"}") // 取引メタデータ
.requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID
@@ -768,13 +1293,14 @@ Request request = new CreateTopupTransaction(
### Parameters
-**`shopId`**
-
-
+#### `shopId`
店舗IDです。
送金元の店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -782,13 +1308,16 @@ Request request = new CreateTopupTransaction(
}
```
-**`customerId`**
-
+
+#### `customerId`
エンドユーザーIDです。
送金先のエンドユーザーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -796,13 +1325,16 @@ Request request = new CreateTopupTransaction(
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
マネーIDです。
マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -810,13 +1342,16 @@ Request request = new CreateTopupTransaction(
}
```
-**`bearPointShopId`**
-
+
+#### `bearPointShopId`
ポイント支払時の負担店舗IDです。
ポイント支払い時に実際お金を負担する店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -824,14 +1359,17 @@ Request request = new CreateTopupTransaction(
}
```
-**`moneyAmount`**
-
+
+#### `moneyAmount`
マネー額です。
送金するマネー額を指定します。
デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -839,14 +1377,17 @@ Request request = new CreateTopupTransaction(
}
```
-**`pointAmount`**
-
+
+#### `pointAmount`
ポイント額です。
送金するポイント額を指定します。
デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -854,12 +1395,15 @@ Request request = new CreateTopupTransaction(
}
```
-**`pointExpiresAt`**
-
+
+#### `pointExpiresAt`
ポイントをチャージした場合の、付与されるポイントの有効期限です。
省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -867,13 +1411,16 @@ Request request = new CreateTopupTransaction(
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
任意入力で、取引履歴に表示される説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -881,13 +1428,16 @@ Request request = new CreateTopupTransaction(
}
```
-**`metadata`**
-
+
+#### `metadata`
取引作成時に指定されるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -895,9 +1445,9 @@ Request request = new CreateTopupTransaction(
}
```
-**`requestId`**
-
+
+#### `requestId`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
@@ -905,6 +1455,9 @@ Request request = new CreateTopupTransaction(
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -912,6 +1465,8 @@ Request request = new CreateTopupTransaction(
}
```
+
+
成功したときは
@@ -924,7 +1479,12 @@ Request request = new CreateTopupTransaction(
|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|
-|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format|
+|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.|
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|private_money_closed|このマネーは解約されています|This money was closed|
|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled|
@@ -934,8 +1494,13 @@ Request request = new CreateTopupTransaction(
|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.|
@@ -953,6 +1518,8 @@ Request request = new CreateTopupTransaction(
|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|
@@ -968,7 +1535,6 @@ Request request = new CreateTopupTransaction(
支払取引を作成します。
支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。
-
```JAVA
JsonObject items = new JsonObject();
items.addProperty("jan_code", "abc");
@@ -998,26 +1564,28 @@ Request request = new CreatePaymentTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID
- 9367 // amount: 支払い額
+ 3416 // amount: 支払い額
)
.description("たい焼き(小倉)") // 取引履歴に表示する説明文
.metadata("{\"key\":\"value\"}") // 取引メタデータ
.products(new Object[]{items,items2,items3}) // 商品情報データ
.requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // リクエストID
- .strategy("point-preferred"); // 支払い時の残高消費方式
+ .strategy("point-preferred") // 支払い時の残高消費方式
+ .couponId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // クーポンID
```
### Parameters
-**`shopId`**
-
-
+#### `shopId`
店舗IDです。
送金先の店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1025,13 +1593,16 @@ Request request = new CreatePaymentTransaction(
}
```
-**`customerId`**
-
+
+#### `customerId`
エンドユーザーIDです。
送金元のエンドユーザーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1039,13 +1610,16 @@ Request request = new CreatePaymentTransaction(
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
マネーIDです。
マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1053,13 +1627,16 @@ Request request = new CreatePaymentTransaction(
}
```
-**`amount`**
-
+
+#### `amount`
マネー額です。
送金するマネー額を指定します。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1067,13 +1644,16 @@ Request request = new CreatePaymentTransaction(
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
任意入力で、取引履歴に表示される説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1081,13 +1661,16 @@ Request request = new CreatePaymentTransaction(
}
```
-**`metadata`**
-
+
+#### `metadata`
取引作成時に指定されるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1095,9 +1678,9 @@ Request request = new CreatePaymentTransaction(
}
```
-**`products`**
-
+
+#### `products`
一つの取引に含まれる商品情報データです。
以下の内容からなるJSONオブジェクトの配列で指定します。
@@ -1109,6 +1692,9 @@ Request request = new CreatePaymentTransaction(
- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean
- `other`: その他商品に関する情報。JSONオブジェクトで指定します。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1118,9 +1704,9 @@ Request request = new CreatePaymentTransaction(
}
```
-**`requestId`**
-
+
+#### `requestId`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
@@ -1128,6 +1714,9 @@ Request request = new CreatePaymentTransaction(
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1135,9 +1724,9 @@ Request request = new CreatePaymentTransaction(
}
```
-**`strategy`**
-
+
+#### `strategy`
支払い時に残高がどのように消費されるかを指定します。
デフォルトでは point-preferred (ポイント優先)が採用されます。
@@ -1146,6 +1735,9 @@ Request request = new CreatePaymentTransaction(
マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1156,6 +1748,23 @@ Request request = new CreatePaymentTransaction(
}
```
+
+
+#### `couponId`
+支払いに対して適用するクーポンのIDを指定します。
+
+
+スキーマ
+
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+
+
+
成功したときは
@@ -1166,7 +1775,12 @@ Request request = new CreatePaymentTransaction(
|status|type|ja|en|
|---|---|---|---|
|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission|
-|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format|
+|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.|
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|private_money_closed|このマネーは解約されています|This money was closed|
|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled|
@@ -1176,8 +1790,13 @@ Request request = new CreatePaymentTransaction(
|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.|
@@ -1195,6 +1814,8 @@ Request request = new CreatePaymentTransaction(
|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|
@@ -1210,7 +1831,6 @@ Request request = new CreatePaymentTransaction(
CPMトークンにより取引を作成します。
CPMトークンに設定されたスコープの取引を作ることができます。
-
```JAVA
JsonObject items = new JsonObject();
items.addProperty("jan_code", "abc");
@@ -1237,9 +1857,9 @@ items3.addProperty("quantity", 1);
items3.addProperty("is_discounted", false);
items3.addProperty("other", "{}");
Request request = new CreateCpmTransaction(
- "NKIGuoyWD3BHeU5bcdtREm", // cpmToken: CPMトークン
+ "OiEYcNwwBKhoxCdqw8SDS6", // cpmToken: CPMトークン
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID
- 1095.0 // amount: 取引金額
+ 8780.0 // amount: 取引金額
)
.description("たい焼き(小倉)") // 取引説明文
.metadata("{\"key\":\"value\"}") // 店舗側メタデータ
@@ -1252,13 +1872,14 @@ Request request = new CreateCpmTransaction(
### Parameters
-**`cpmToken`**
-
-
+#### `cpmToken`
エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。
エンドユーザーによって許可された取引のスコープを持っています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1267,13 +1888,16 @@ Request request = new CreateCpmTransaction(
}
```
-**`shopId`**
-
+
+#### `shopId`
店舗IDです。
支払いやチャージを行う店舗を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1281,26 +1905,32 @@ Request request = new CreateCpmTransaction(
}
```
-**`amount`**
-
+
+#### `amount`
取引金額を指定します。
正の値を与えるとチャージになり、負の値を与えると支払いとなります。
+
+スキーマ
+
```json
{
"type": "number"
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
エンドユーザーアプリの取引履歴などに表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1308,13 +1938,16 @@ Request request = new CreateCpmTransaction(
}
```
-**`metadata`**
-
+
+#### `metadata`
取引作成時に店舗側から指定されるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1322,9 +1955,9 @@ Request request = new CreateCpmTransaction(
}
```
-**`products`**
-
+
+#### `products`
一つの取引に含まれる商品情報データです。
以下の内容からなるJSONオブジェクトの配列で指定します。
@@ -1336,6 +1969,9 @@ Request request = new CreateCpmTransaction(
- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean
- `other`: その他商品に関する情報。JSONオブジェクトで指定します。
+
+スキーマ
+
```json
{
"type": "array",
@@ -1345,9 +1981,9 @@ Request request = new CreateCpmTransaction(
}
```
-**`requestId`**
-
+
+#### `requestId`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
@@ -1355,6 +1991,9 @@ Request request = new CreateCpmTransaction(
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1362,16 +2001,18 @@ Request request = new CreateCpmTransaction(
}
```
-**`strategy`**
-
+
+#### `strategy`
支払い時に残高がどのように消費されるかを指定します。
-デフォルトでは point-preferred (ポイント優先)が採用されます。
+エンドユーザーがCPMトークン作成時に指定した残高消費方式と一致するか、どちらか一方のみが指定されている必要があります。
+両方が指定されていて値が異なる場合、cpm_token_strategy_conflictが返ります。
-- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作)
+- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます
- money-only: マネー残高のみから消費され、ポイント残高は使われません
-マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。
+
+スキーマ
```json
{
@@ -1383,6 +2024,8 @@ Request request = new CreateCpmTransaction(
}
```
+
+
成功したときは
@@ -1396,10 +2039,16 @@ Request request = new CreateCpmTransaction(
|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|cpm_token_strategy_conflict|CPMトークンに設定された支払い方式と異なる支払い方式が指定されました。|The strategy conflicts with the one set in the CPM token|
|422|cpm_token_already_proceed|このCPMトークンは既に処理されています。|The CPM token is already proceed|
|422|cpm_token_already_expired|このCPMトークンは既に失効しています。|The CPM token is already expired|
|422|cpm_token_not_found|CPMトークンが見つかりませんでした。|The CPM token is not found.|
-|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format|
+|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.|
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|private_money_closed|このマネーは解約されています|This money was closed|
|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled|
@@ -1409,8 +2058,13 @@ Request request = new CreateCpmTransaction(
|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.|
@@ -1430,6 +2084,8 @@ Request request = new CreateCpmTransaction(
|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|
@@ -1442,13 +2098,12 @@ Request request = new CreateCpmTransaction(
エンドユーザー間での送金取引(個人間送金)を作成します。
個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。
-
```JAVA
Request request = new CreateTransferTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // senderId: 送金元ユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // receiverId: 受取ユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID
- 9492.0 // amount: 送金額
+ 4150.0 // amount: 送金額
)
.metadata("{\"key\":\"value\"}") // 取引メタデータ
.description("たい焼き(小倉)") // 取引履歴に表示する説明文
@@ -1459,13 +2114,14 @@ Request request = new CreateTransferTransaction(
### Parameters
-**`senderId`**
-
-
+#### `senderId`
エンドユーザーIDです。
送金元のエンドユーザー(送り主)を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1473,13 +2129,16 @@ Request request = new CreateTransferTransaction(
}
```
-**`receiverId`**
-
+
+#### `receiverId`
エンドユーザーIDです。
送金先のエンドユーザー(受け取り人)を指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1487,13 +2146,16 @@ Request request = new CreateTransferTransaction(
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
マネーIDです。
マネーを指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1501,13 +2163,16 @@ Request request = new CreateTransferTransaction(
}
```
-**`amount`**
-
+
+#### `amount`
マネー額です。
送金するマネー額を指定します。
+
+スキーマ
+
```json
{
"type": "number",
@@ -1515,13 +2180,16 @@ Request request = new CreateTransferTransaction(
}
```
-**`metadata`**
-
+
+#### `metadata`
取引作成時に指定されるメタデータです。
任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1529,13 +2197,16 @@ Request request = new CreateTransferTransaction(
}
```
-**`description`**
-
+
+#### `description`
取引説明文です。
任意入力で、取引履歴に表示される説明文です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1543,9 +2214,9 @@ Request request = new CreateTransferTransaction(
}
```
-**`requestId`**
-
+
+#### `requestId`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
@@ -1553,6 +2224,9 @@ Request request = new CreateTransferTransaction(
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1560,6 +2234,8 @@ Request request = new CreateTransferTransaction(
}
```
+
+
成功したときは
@@ -1572,7 +2248,12 @@ Request request = new CreateTransferTransaction(
|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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.|
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|private_money_closed|このマネーは解約されています|This money was closed|
|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled|
@@ -1582,8 +2263,13 @@ Request request = new CreateTransferTransaction(
|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.|
@@ -1603,6 +2289,8 @@ Request request = new CreateTransferTransaction(
|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|
@@ -1618,9 +2306,9 @@ Request request = new CreateExchangeTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- 961
+ 4080
)
- .description("PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7V")
+ .description("Lm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFslSf8NaBTyV6GBT8tDHI0zWcr0sMpkdiHOOwl5xIQiAP4")
.requestId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"); // リクエストID
```
@@ -1628,9 +2316,10 @@ Request request = new CreateExchangeTransaction(
### Parameters
-**`userId`**
-
+#### `userId`
+
+スキーマ
```json
{
@@ -1639,9 +2328,12 @@ Request request = new CreateExchangeTransaction(
}
```
-**`senderPrivateMoneyId`**
-
+
+
+#### `senderPrivateMoneyId`
+
+スキーマ
```json
{
@@ -1650,9 +2342,12 @@ Request request = new CreateExchangeTransaction(
}
```
-**`receiverPrivateMoneyId`**
-
+
+#### `receiverPrivateMoneyId`
+
+
+スキーマ
```json
{
@@ -1661,9 +2356,12 @@ Request request = new CreateExchangeTransaction(
}
```
-**`amount`**
-
+
+
+#### `amount`
+
+スキーマ
```json
{
@@ -1672,9 +2370,12 @@ Request request = new CreateExchangeTransaction(
}
```
-**`description`**
-
+
+#### `description`
+
+
+スキーマ
```json
{
@@ -1683,9 +2384,9 @@ Request request = new CreateExchangeTransaction(
}
```
-**`requestId`**
-
+
+#### `requestId`
取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
@@ -1693,6 +2394,9 @@ Request request = new CreateExchangeTransaction(
リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1700,6 +2404,8 @@ Request request = new CreateExchangeTransaction(
}
```
+
+
成功したときは
@@ -1713,6 +2419,11 @@ Request request = new CreateExchangeTransaction(
|422|transaction_restricted||Transaction is not allowed|
|422|can_not_exchange_between_same_private_money|同じマネーとの交換はできません||
|422|can_not_exchange_between_users|異なるユーザー間での交換は出来ません||
+|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money|
+|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.|
+|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found|
+|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.|
+|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.|
|422|account_can_not_topup|この店舗からはチャージできません|account can not topup|
|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts|
|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user|
@@ -1728,8 +2439,14 @@ Request request = new CreateExchangeTransaction(
|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.|
@@ -1762,13 +2479,14 @@ Request request = new GetTransaction(
### Parameters
-**`transactionId`**
-
-
+#### `transactionId`
取引IDです。
フィルターとして使われ、指定した取引IDの取引を取得します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1776,6 +2494,8 @@ Request request = new GetTransaction(
}
```
+
+
成功したときは
@@ -1802,16 +2522,17 @@ Request request = new RefundTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // transactionId: 取引ID
)
.description("返品対応のため") // 取引履歴に表示する返金事由
- .returningPointExpiresAt("2020-03-20T07:43:18.000000Z"); // 返却ポイントの有効期限
+ .returningPointExpiresAt("2020-10-26T03:07:54.000000Z"); // 返却ポイントの有効期限
```
### Parameters
-**`transactionId`**
-
+#### `transactionId`
+
+スキーマ
```json
{
@@ -1820,9 +2541,12 @@ Request request = new RefundTransaction(
}
```
-**`description`**
-
+
+
+#### `description`
+
+スキーマ
```json
{
@@ -1831,11 +2555,14 @@ Request request = new RefundTransaction(
}
```
-**`returningPointExpiresAt`**
-
+
+#### `returningPointExpiresAt`
ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1843,6 +2570,8 @@ Request request = new RefundTransaction(
}
```
+
+
成功したときは
@@ -1868,13 +2597,14 @@ Request request = new GetTransactionByRequestId(
### Parameters
-**`requestId`**
-
-
+#### `requestId`
取引作成時にクライアントが生成し指定するリクエストIDです。
リクエストIDに対応する取引が存在すればその取引を返し、無ければNotFound(404)を返します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1882,6 +2612,8 @@ Request request = new GetTransactionByRequestId(
}
```
+
+
成功したときは
@@ -1906,12 +2638,13 @@ Request request = new GetBulkTransaction(
### Parameters
-**`bulkTransactionId`**
-
-
+#### `bulkTransactionId`
バルク取引ジョブIDです。
バルク取引ジョブ登録時にレスポンスに含まれます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1919,6 +2652,8 @@ Request request = new GetBulkTransaction(
}
```
+
+
成功したときは
@@ -1945,12 +2680,13 @@ Request request = new ListBulkTransactionJobs(
### Parameters
-**`bulkTransactionId`**
-
-
+#### `bulkTransactionId`
バルク取引ジョブIDです。
バルク取引ジョブ登録時にレスポンスに含まれます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -1958,11 +2694,14 @@ Request request = new ListBulkTransactionJobs(
}
```
-**`page`**
-
+
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1970,11 +2709,14 @@ Request request = new ListBulkTransactionJobs(
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取得数です。デフォルトでは 50 になっています。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -1982,6 +2724,8 @@ Request request = new ListBulkTransactionJobs(
}
```
+
+
成功したときは
@@ -2023,12 +2767,13 @@ Request request = new RequestUserStats(
### Parameters
-**`from`**
-
-
+#### `from`
集計する期間の開始時刻をISO8601形式で指定します。
時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -2036,12 +2781,15 @@ Request request = new RequestUserStats(
}
```
-**`to`**
-
+
+#### `to`
集計する期間の終了時刻をISO8601形式で指定します。
時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。
+
+スキーマ
+
```json
{
"type": "string",
@@ -2049,6 +2797,8 @@ Request request = new RequestUserStats(
}
```
+
+
成功したときは
@@ -2062,7 +2812,62 @@ Request request = new RequestUserStats(
|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"
+
+```JAVA
+Request request = new TerminateUserStats(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // operationId: 集計タスクID
+);
+
+```
+
+
+
+### Parameters
+#### `operationId`
+強制終了対象の集計タスク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 c6ceb53a..40655876 100644
--- a/docs/transfer.md
+++ b/docs/transfer.md
@@ -1,4 +1,10 @@
# Transfer
+送金取引明細を表すデータです。
+マネー(Private Money)のウォレット間の送金記録を取得します。
+取引(Transaction)は複数の送金明細(Transfer)で構成されています。
+送金明細には送金元・送金先のアカウント情報、マネー額、ポイント額などが含まれます。
+取引種別として、payment, topup, campaign-topup, transfer, exchange, refund-payment, refund-topup, cashback, expire等があります。
+
## GetAccountTransferSummary:
@@ -8,8 +14,8 @@
Request request = new GetAccountTransferSummary(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // accountId: ウォレットID
)
- .from("2021-12-29T10:37:26.000000Z") // 集計期間の開始時刻
- .to("2021-02-25T17:29:04.000000Z") // 集計期間の終了時刻
+ .from("2020-08-31T08:50:29.000000Z") // 集計期間の開始時刻
+ .to("2026-06-05T02:52:32.000000Z") // 集計期間の終了時刻
.transferTypes(new String[]{"topup","payment"}); // 取引明細種別 (複数指定可)
```
@@ -17,13 +23,14 @@ Request request = new GetAccountTransferSummary(
### Parameters
-**`accountId`**
-
-
+#### `accountId`
ウォレットIDです。
ここで指定したウォレットIDの取引明細レベルでの集計を取得します。
+
+スキーマ
+
```json
{
"type": "string",
@@ -31,9 +38,12 @@ Request request = new GetAccountTransferSummary(
}
```
-**`from`**
-
+
+#### `from`
+
+
+スキーマ
```json
{
@@ -42,9 +52,12 @@ Request request = new GetAccountTransferSummary(
}
```
-**`to`**
-
+
+
+#### `to`
+
+スキーマ
```json
{
@@ -53,9 +66,9 @@ Request request = new GetAccountTransferSummary(
}
```
-**`transferTypes`**
-
+
+#### `transferTypes`
取引明細の種別でフィルターします。
以下の種別を指定できます。
@@ -84,6 +97,9 @@ Request request = new GetAccountTransferSummary(
- refund-exchange-outflow
交換による他マネーへの流出取引に対するキャンセル取引
+
+スキーマ
+
```json
{
"type": "array",
@@ -107,6 +123,8 @@ Request request = new GetAccountTransferSummary(
}
```
+
+
成功したときは
@@ -123,19 +141,19 @@ Request request = new GetAccountTransferSummary(
```JAVA
Request request = new ListTransfers()
- .from("2021-01-30T20:49:05.000000Z")
- .to("2023-02-22T20:08:11.000000Z")
- .page(3365)
- .perPage(5071)
+ .from("2024-11-18T08:24:13.000000Z")
+ .to("2023-02-26T03:56:51.000000Z")
+ .page(3943)
+ .perPage(7335)
.shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
- .shopName("3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCx")
+ .shopName("uFUQK5yc0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z")
.customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
- .customerName("ziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9")
+ .customerName("59oBy13mtel3d8TfJ3Ol39ScasZnA58jo0hnztlMdM7BVfn4iFYyJJXfrDUn2Z5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O6y0fQnXOgwkIth5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrPufrwL5Z4qM5cyeftMbZhJuNsCdqVbAgL")
.transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
.privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
- .setModified(false)
- .transactionTypes(new String[]{"topup","cashback","transfer","expire","exchange","payment"})
- .transferTypes(new String[]{"exchange"}) // 取引明細の種類でフィルターします。
+ .setModified(true)
+ .transactionTypes(new String[]{"payment","cashback","transfer","topup","exchange","expire"})
+ .transferTypes(new String[]{"exchange","campaign","transfer","topup"}) // 取引明細の種類でフィルターします。
.description("店頭QRコードによる支払い"); // 取引詳細説明文
```
@@ -143,9 +161,10 @@ Request request = new ListTransfers()
### Parameters
-**`from`**
-
+#### `from`
+
+スキーマ
```json
{
@@ -154,9 +173,12 @@ Request request = new ListTransfers()
}
```
-**`to`**
-
+
+
+#### `to`
+
+スキーマ
```json
{
@@ -165,9 +187,12 @@ Request request = new ListTransfers()
}
```
-**`page`**
-
+
+#### `page`
+
+
+スキーマ
```json
{
@@ -176,9 +201,12 @@ Request request = new ListTransfers()
}
```
-**`perPage`**
-
+
+
+#### `perPage`
+
+スキーマ
```json
{
@@ -187,9 +215,12 @@ Request request = new ListTransfers()
}
```
-**`shopId`**
-
+
+#### `shopId`
+
+
+スキーマ
```json
{
@@ -198,9 +229,12 @@ Request request = new ListTransfers()
}
```
-**`shopName`**
-
+
+
+#### `shopName`
+
+スキーマ
```json
{
@@ -209,9 +243,12 @@ Request request = new ListTransfers()
}
```
-**`customerId`**
-
+
+
+#### `customerId`
+
+スキーマ
```json
{
@@ -220,9 +257,12 @@ Request request = new ListTransfers()
}
```
-**`customerName`**
-
+
+#### `customerName`
+
+
+スキーマ
```json
{
@@ -231,9 +271,12 @@ Request request = new ListTransfers()
}
```
-**`transactionId`**
-
+
+
+#### `transactionId`
+
+スキーマ
```json
{
@@ -242,9 +285,12 @@ Request request = new ListTransfers()
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
+
+
+スキーマ
```json
{
@@ -253,9 +299,12 @@ Request request = new ListTransfers()
}
```
-**`setModified`**
-
+
+
+#### `setModified`
+
+スキーマ
```json
{
@@ -263,9 +312,12 @@ Request request = new ListTransfers()
}
```
-**`transactionTypes`**
-
+
+#### `transactionTypes`
+
+
+スキーマ
```json
{
@@ -284,9 +336,9 @@ Request request = new ListTransfers()
}
```
-**`transferTypes`**
-
+
+#### `transferTypes`
取引明細の種類でフィルターします。
以下の種類を指定できます。
@@ -312,6 +364,9 @@ Request request = new ListTransfers()
7. expire
退会時失効取引
+
+スキーマ
+
```json
{
"type": "array",
@@ -331,13 +386,16 @@ Request request = new ListTransfers()
}
```
-**`description`**
-
+
+#### `description`
取引詳細を指定の取引詳細説明文でフィルターします。
取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -345,6 +403,8 @@ Request request = new ListTransfers()
}
```
+
+
成功したときは
@@ -368,33 +428,34 @@ Request request = new ListTransfers()
```JAVA
Request request = new ListTransfersV2()
.shopId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 店舗ID
- .shopName("pzYekawpUouvYHKlj0G") // 店舗名
+ .shopName("QVC38rMOaKHSf5htPpycWdWsbduWBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNiX5kIXisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM5mHn7CA1SM3xNEFCgQheyCbSnP7P0SqnjQBF0gNpyvaBHzjlAdXU9fbl4BElEfYJcTmiRof0lbldCRsSSTgoxq") // 店舗名
.customerId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // エンドユーザーID
- .customerName("L0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7") // エンドユーザー名
+ .customerName("3aCnDQum7xlHp8mSoN73gaH3XPjunt8NgffostplBJ13qPcXVXQ9E7OqefuC0zsB8aQbgel1VXLZNhM7VCGfzH0EqAidHGV4baZPNRUSJ") // エンドユーザー名
.transactionId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 取引ID
.privateMoneyId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // マネーID
.setModified(false) // キャンセルフラグ
- .transactionTypes(new String[]{"exchange","payment","cashback","expire"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment
+ .transactionTypes(new String[]{"payment"}) // 取引種別 (複数指定可)、チャージ=topup、支払い=payment
.nextPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 次ページへ遷移する際に起点となるtransferのID
.prevPageCursorId("xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx") // 前ページへ遷移する際に起点となるtransferのID
.perPage(50) // 1ページ分の取引数
- .transferTypes(new String[]{"transfer","exchange","coupon","cashback","payment","topup"}) // 取引明細種別 (複数指定可)
+ .transferTypes(new String[]{"exchange"}) // 取引明細種別 (複数指定可)
.description("店頭QRコードによる支払い") // 取引詳細説明文
- .from("2020-02-10T06:55:29.000000Z") // 開始日時
- .to("2024-03-31T15:07:15.000000Z"); // 終了日時
+ .from("2025-08-28T05:23:52.000000Z") // 開始日時
+ .to("2025-06-01T07:49:00.000000Z"); // 終了日時
```
### Parameters
-**`shopId`**
-
-
+#### `shopId`
店舗IDです。
フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -402,13 +463,16 @@ Request request = new ListTransfersV2()
}
```
-**`shopName`**
-
+
+#### `shopName`
店舗名です。
フィルターとして使われ、入力された名前に部分一致する店舗での取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -416,13 +480,16 @@ Request request = new ListTransfersV2()
}
```
-**`customerId`**
-
+
+#### `customerId`
エンドユーザーIDです。
フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -430,13 +497,16 @@ Request request = new ListTransfersV2()
}
```
-**`customerName`**
-
+
+#### `customerName`
エンドユーザー名です。
フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -444,13 +514,16 @@ Request request = new ListTransfersV2()
}
```
-**`transactionId`**
-
+
+#### `transactionId`
取引IDです。
フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -458,13 +531,16 @@ Request request = new ListTransfersV2()
}
```
-**`privateMoneyId`**
-
+
+#### `privateMoneyId`
マネーIDです。
指定したマネーでの取引が一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -472,23 +548,26 @@ Request request = new ListTransfersV2()
}
```
-**`setModified`**
-
+
+#### `setModified`
キャンセルフラグです。
これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。
デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`transactionTypes`**
-
+
+#### `transactionTypes`
取引の種類でフィルターします。
以下の種類を指定できます。
@@ -515,6 +594,9 @@ Request request = new ListTransfersV2()
6. expire
退会時失効取引
+
+スキーマ
+
```json
{
"type": "array",
@@ -532,15 +614,18 @@ Request request = new ListTransfersV2()
}
```
-**`nextPageCursorId`**
-
+
+#### `nextPageCursorId`
次ページへ遷移する際に起点となるtransferのID(前ページの末尾要素のID)です。
本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。
UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。
next_page_cursor_idのtransfer自体は次のページには含まれません。
+
+スキーマ
+
```json
{
"type": "string",
@@ -548,9 +633,9 @@ next_page_cursor_idのtransfer自体は次のページには含まれません
}
```
-**`prevPageCursorId`**
-
+
+#### `prevPageCursorId`
前ページへ遷移する際に起点となるtransferのID(次ページの先頭要素のID)です。
本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。
@@ -558,6 +643,9 @@ UUIDである場合は前のページが存在することを意味し、このp
prev_page_cursor_idのtransfer自体は前のページには含まれません。
+
+スキーマ
+
```json
{
"type": "string",
@@ -565,13 +653,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取引数です。
デフォルト値は50です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -580,9 +671,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません
}
```
-**`transferTypes`**
-
+
+#### `transferTypes`
取引明細の種類でフィルターします。
以下の種類を指定できます。
@@ -608,6 +699,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません
7. expire
退会時失効取引
+
+スキーマ
+
```json
{
"type": "array",
@@ -627,13 +721,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません
}
```
-**`description`**
-
+
+#### `description`
取引詳細を指定の取引詳細説明文でフィルターします。
取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。
+
+スキーマ
+
```json
{
"type": "string",
@@ -641,13 +738,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません
}
```
-**`from`**
-
+
+#### `from`
抽出期間の開始日時です。
フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -655,13 +755,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません
}
```
-**`to`**
-
+
+#### `to`
抽出期間の終了日時です。
フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。
+
+スキーマ
+
```json
{
"type": "string",
@@ -669,6 +772,8 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません
}
```
+
+
成功したときは
diff --git a/docs/user.md b/docs/user.md
index aa9b25ea..884d17dc 100644
--- a/docs/user.md
+++ b/docs/user.md
@@ -1,3 +1,8 @@
# User
+ユーザを表すデータです。
+エンドユーザー(Customer)と店舗ユーザー(Merchant)の2種類が存在します。
+エンドユーザーは認証の主体であり、マネー毎にウォレットを持ちます。
+店舗ユーザーは組織に所属し、同じくマネー毎にウォレットを持ちます。
+
diff --git a/docs/user_device.md b/docs/user_device.md
index 7f88a827..1c063e58 100644
--- a/docs/user_device.md
+++ b/docs/user_device.md
@@ -3,7 +3,6 @@ UserDeviceはユーザー毎のデバイスを管理します。
あるユーザーが使っている端末を区別する必要がある場合に用いられます。
これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。
-
## CreateUserDevice: ユーザーのデバイス登録
ユーザーのデバイスを新規に登録します
@@ -19,9 +18,10 @@ Request request = new CreateUserDevice(
### Parameters
-**`userId`**
-
+#### `userId`
+
+スキーマ
```json
{
@@ -30,12 +30,14 @@ Request request = new CreateUserDevice(
}
```
-**`metadata`**
-
+
+#### `metadata`
ユーザーのデバイス用の情報をメタデータを保持するために用います。
例: 端末の固有情報やブラウザのUser-Agent
+
+スキーマ
```json
{
@@ -44,6 +46,8 @@ Request request = new CreateUserDevice(
}
```
+
+
成功したときは
@@ -75,9 +79,10 @@ Request request = new GetUserDevice(
### Parameters
-**`userDeviceId`**
-
+#### `userDeviceId`
+
+スキーマ
```json
{
@@ -86,6 +91,8 @@ Request request = new GetUserDevice(
}
```
+
+
成功したときは
@@ -101,7 +108,6 @@ Request request = new GetUserDevice(
## ActivateUserDevice: デバイスの有効化
指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。
-
```JAVA
Request request = new ActivateUserDevice(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // userDeviceId: ユーザーデバイスID
@@ -112,9 +118,10 @@ Request request = new ActivateUserDevice(
### Parameters
-**`userDeviceId`**
-
+#### `userDeviceId`
+
+スキーマ
```json
{
@@ -123,6 +130,8 @@ Request request = new ActivateUserDevice(
}
```
+
+
成功したときは
diff --git a/docs/webhook.md b/docs/webhook.md
index f9cd7134..2a8b0268 100644
--- a/docs/webhook.md
+++ b/docs/webhook.md
@@ -3,7 +3,6 @@ Webhookは特定のワーカータスクでの処理が完了した事を通知
WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。
通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。
-
## ListWebhooks: 作成したWebhookの一覧を返す
@@ -17,11 +16,12 @@ Request request = new ListWebhooks()
### Parameters
-**`page`**
-
-
+#### `page`
取得したいページ番号です。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -29,11 +29,14 @@ Request request = new ListWebhooks()
}
```
-**`perPage`**
-
+
+#### `perPage`
1ページ分の取得数です。デフォルトでは 50 になっています。
+
+スキーマ
+
```json
{
"type": "integer",
@@ -41,6 +44,8 @@ Request request = new ListWebhooks()
}
```
+
+
成功したときは
@@ -65,8 +70,8 @@ Request request = new ListWebhooks()
```JAVA
Request request = new CreateWebhook(
- "bulk_shops", // task: タスク名
- "r5u" // url: URL
+ "process_user_stats_operation", // task: タスク名
+ "JcmLuj" // url: URL
);
```
@@ -74,11 +79,12 @@ Request request = new CreateWebhook(
### Parameters
-**`task`**
-
-
+#### `task`
ワーカータスク名を指定します
+
+スキーマ
+
```json
{
"type": "string",
@@ -89,17 +95,22 @@ Request request = new CreateWebhook(
}
```
-**`url`**
-
+
+#### `url`
通知先のURLを指定します
+
+スキーマ
+
```json
{
"type": "string"
}
```
+
+
成功したときは
@@ -131,11 +142,12 @@ Request request = new DeleteWebhook(
### Parameters
-**`webhookId`**
-
-
+#### `webhookId`
削除するWebhookのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -143,6 +155,8 @@ Request request = new DeleteWebhook(
}
```
+
+
成功したときは
@@ -162,8 +176,8 @@ Request request = new DeleteWebhook(
Request request = new UpdateWebhook(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // webhookId: Webhook ID
)
- .url("MSg7mI2h9") // URL
- .setActive(true) // 有効/無効
+ .url("s8") // URL
+ .setActive(false) // 有効/無効
.task("bulk_shops"); // タスク名
```
@@ -171,11 +185,12 @@ Request request = new UpdateWebhook(
### Parameters
-**`webhookId`**
-
-
+#### `webhookId`
更新するWebhookのIDです。
+
+スキーマ
+
```json
{
"type": "string",
@@ -183,33 +198,42 @@ Request request = new UpdateWebhook(
}
```
-**`url`**
-
+
+#### `url`
変更するURLを指定します
+
+スキーマ
+
```json
{
"type": "string"
}
```
-**`setActive`**
-
+
+#### `setActive`
trueならWebhookによる通知が有効になり、falseなら無効になります
+
+スキーマ
+
```json
{
"type": "boolean"
}
```
-**`task`**
-
+
+#### `task`
指定したタスクが終了したときにWebhookによる通知がされます
+
+スキーマ
+
```json
{
"type": "string",
@@ -220,6 +244,8 @@ trueならWebhookによる通知が有効になり、falseなら無効になり
}
```
+
+
成功したときは
diff --git a/partner.yaml b/partner.yaml
index 7bf01bfd..8405e0ef 100644
--- a/partner.yaml
+++ b/partner.yaml
@@ -13,53 +13,144 @@ info:
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: |
+ description: |-
セブンATMチャージの取引内容を照会するAPIを提供しています。
components:
@@ -79,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:
@@ -127,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:
@@ -261,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:
@@ -377,6 +592,17 @@ components:
description: |-
取引作成時に店舗側から指定されるメタデータです。
全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列です。
+ strategy:
+ type: string
+ enum: [point-preferred, money-only]
+ nullable: true
+ title: 支払い時の残高消費方式
+ description: |-
+ エンドユーザーがCPMトークン作成時に指定した残高消費方式です。
+ nullの場合は支払い時にpoint-preferred(ポイント優先)として扱われます。
+
+ - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます
+ - money-only: マネー残高のみから消費され、ポイント残高は使われません
Cashtray:
x-pokepay-schema-type: "response"
@@ -570,7 +796,7 @@ components:
type:
type: string
title: '取引種別'
- description: |
+ description: |-
各取引種別の値の意味は以下の通りです。
- topup: チャージ
- payment: 支払い
@@ -584,13 +810,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: '受取ウォレット情報'
@@ -603,7 +829,7 @@ components:
point_amount:
type: number
title: '取引ポイント額(キャンペーン付与ポイント合算)'
- description: |
+ description: |-
取引のポイント額です。
キャンペーンによるポイント付与額との合算値なので、元々の取引のポイント額のみを取り出したいときは `raw_point_amount` を参照してください。
チャージ取引の場合、point_amount = raw_point_amount + campaign_point_amount
@@ -612,21 +838,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:
@@ -637,7 +870,7 @@ components:
type:
type: string
title: '取引種別'
- description: |
+ description: |-
各取引種別の値の意味は以下の通りです。
- topup: チャージ
- payment: 支払い
@@ -651,13 +884,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: '受取ウォレット情報'
@@ -670,7 +903,7 @@ components:
point_amount:
type: number
title: '取引ポイント額(キャンペーン付与ポイント合算)'
- description: |
+ description: |-
取引のポイント額です。
キャンペーンによるポイント付与額との合算値なので、元々の取引のポイント額のみを取り出したいときは `raw_point_amount` を参照してください。
チャージ取引の場合、point_amount = raw_point_amount + campaign_point_amount
@@ -679,23 +912,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:
@@ -823,6 +1098,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:
@@ -925,33 +1205,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:
@@ -1020,7 +1341,7 @@ components:
$ref: '#/components/schemas/TransactionDetail'
nullable: true
title: 関連ポケペイ取引詳細
- description: |
+ description: |-
ポケペイ外取引と連動して作られたポケペイ取引の取引詳細です。
例えば、キャンペーンによるポイント付与取引やキャンセル状況などの情報が含まれます。
ポケペイ取引が存在しない場合はnullが設定されます。
@@ -1283,6 +1604,10 @@ components:
type: integer
minimum: 0
+ BankDeleted:
+ x-pokepay-schema-type: "response"
+ properties: {}
+
PaginatedTransaction:
x-pokepay-schema-type: "response"
properties:
@@ -1322,6 +1647,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:
@@ -1651,7 +2002,7 @@ components:
is_hidden:
type: boolean
title: 'クーポン一覧に掲載されるかどうか'
- description: |
+ description: |-
アプリに表示されるクーポン一覧に掲載されるかどうか。
主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。
is_public:
@@ -1667,6 +2018,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:
@@ -1725,7 +2090,7 @@ components:
is_hidden:
type: boolean
title: 'クーポン一覧に掲載されるかどうか'
- description: |
+ description: |-
アプリに表示されるクーポン一覧に掲載されるかどうか。
主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。
is_public:
@@ -1753,6 +2118,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:
@@ -1988,6 +2367,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:
@@ -2027,96 +2412,281 @@ paths:
$ref: '#/components/schemas/Echo'
'400':
$ref: '#/components/responses/BadRequest'
- /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"
+ /credit-sessions:
+ post:
+ x-pokepay-operator-name: "PostCreditSession"
x-pokepay-allow-server-side: true
- parameters:
- - in: path
- name: user_id
- required: true
- schema:
- type: string
- format: uuid
- title: 'ユーザーID'
- description: |-
- ユーザーIDです。
-
- 指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。
+ tags:
+ - 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:
- page:
- type: integer
- minimum: 1
- title: 'ページ番号'
- description: 取得したいページ番号です。デフォルト値は1です。
- per_page:
- type: integer
- minimum: 1
- title: '1ページ分の取引数'
- description: 1ページ当たりのウォレット数です。デフォルト値は50です。
+ 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/PaginatedAccountDetails'
+ $ref: '#/components/schemas/CreditSession'
'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'
+ '503':
+ $ref: '#/components/responses/TemporarilyUnavailable'
+ /credit-sessions/{session_id}/transactions:
post:
+ x-pokepay-operator-name: "CreateCreditSessionTransaction"
+ x-pokepay-allow-server-side: true
tags:
- - Account
- summary: 'エンドユーザーのウォレットを作成する'
+ - CreditSession
+ summary: Create transaction with credit session
description: |-
- 既存のエンドユーザーに対して、指定したマネーのウォレットを新規作成します
- x-pokepay-operator-name: "CreateUserAccount"
- x-pokepay-allow-server-side: true
+ クレジットセッションを使用して取引を作成します。
+ セッション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を指定します。
requestBody:
required: true
content:
application/json:
schema:
- required: ["private_money_id"]
+ type: object
+ required: ["amount"]
properties:
- private_money_id:
- title: 'マネーID'
+ amount:
+ type: number
+ minimum: 0
description: |-
- マネーIDです。
-
+ 取引金額
+ 支払い金額を指定します。
+ 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':
+ $ref: '#/components/responses/BadRequest'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ post:
+ tags:
+ - Account
+ summary: 'エンドユーザーのウォレットを作成する'
+ description: |-
+ 既存のエンドユーザーに対して、指定したマネーのウォレットを新規作成します
+ x-pokepay-operator-name: "CreateUserAccount"
+ x-pokepay-allow-server-side: true
+ parameters:
+ - in: path
+ name: user_id
+ required: true
+ schema:
+ type: string
+ format: uuid
+ title: 'ユーザーID'
+ description: |-
+ ユーザーIDです。
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ required: ["private_money_id"]
+ properties:
+ private_money_id:
+ title: 'マネーID'
+ description: |-
+ マネーIDです。
+
作成するウォレットのマネーを指定します。このパラメータは必須です。
type: string
format: uuid
@@ -2893,7 +3463,9 @@ paths:
nullable: true
format: decimal
title: '支払い額'
- description: 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。
+ description: |-
+ 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。
+ また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。
private_money_id:
type: string
format: uuid
@@ -2922,6 +3494,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
@@ -2951,7 +3555,7 @@ paths:
nullable: true
format: decimal
title: '支払い額'
- description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。
+ description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。
description:
type: string
maxLength: 200
@@ -2995,7 +3599,7 @@ paths:
minimum: 0
format: decimal
title: '付与マネー額'
- description: |
+ description: |-
チャージQRコードによって付与されるマネー額です。
`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。
point_amount:
@@ -3003,7 +3607,7 @@ paths:
minimum: 0
format: decimal
title: '付与ポイント額'
- description: |
+ description: |-
チャージQRコードによって付与されるポイント額です。
`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。
account_id:
@@ -3018,7 +3622,7 @@ paths:
is_onetime:
type: boolean
title: 'ワンタイムかどうかのフラグ'
- description: |
+ description: |-
チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。
`false`の場合、複数ユーザによって読み取り可能なQRコードになります。
ただし、その場合も1ユーザにつき1回のみしか読み取れません。
@@ -3026,7 +3630,7 @@ paths:
type: integer
nullable: true
title: 'ワンタイムでない場合の最大読み取り回数'
- description: |
+ description: |-
複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。
NULLに設定すると無制限に読み取り可能なチャージQRコードになります。
デフォルト値はNULLです。
@@ -3035,7 +3639,7 @@ paths:
type: string
format: date-time
title: 'チャージQRコード自体の失効日時'
- description: |
+ description: |-
チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。
チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。
@@ -3043,7 +3647,7 @@ paths:
type: string
format: date-time
title: 'チャージQRコードによって付与されるポイント残高の有効期限'
- description: |
+ description: |-
チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。
チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。
@@ -3051,7 +3655,7 @@ paths:
type: integer
minimum: 1
title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)'
- description: |
+ description: |-
チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。
1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。
`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。
@@ -3060,7 +3664,7 @@ paths:
type: string
format: uuid
title: 'ポイント額を負担する店舗のウォレットID'
- description: |
+ description: |-
ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。
デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。
responses:
@@ -3102,7 +3706,7 @@ paths:
type: string
format: uuid
title: 'マネーID'
- description: |
+ description: |-
チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。
organization_code:
type: string
@@ -3115,48 +3719,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`の場合はワンタイムでないものをフィルターします。
未指定の場合はフィルターしません。
@@ -3164,7 +3768,7 @@ paths:
is_disabled:
type: boolean
title: '無効化されたチャージQRコードかどうか'
- description: |
+ description: |-
チャージQRコードが無効化されているかどうかでフィルターします。
`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。
未指定の場合はフィルターしません。
@@ -3241,7 +3845,7 @@ paths:
minimum: 0
format: decimal
title: '付与マネー額'
- description: |
+ description: |-
チャージQRコードによって付与されるマネー額です。
`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。
point_amount:
@@ -3249,21 +3853,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回のみしか読み取れません。
@@ -3271,7 +3875,7 @@ paths:
type: integer
nullable: true
title: 'ワンタイムでない場合の最大読み取り回数'
- description: |
+ description: |-
複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。
NULLに設定すると無制限に読み取り可能なチャージQRコードになります。
ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。
@@ -3279,7 +3883,7 @@ paths:
type: string
format: date-time
title: 'チャージQRコード自体の失効日時'
- description: |
+ description: |-
チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。
チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。
@@ -3288,7 +3892,7 @@ paths:
format: date-time
nullable: true
title: 'チャージQRコードによって付与されるポイント残高の有効期限'
- description: |
+ description: |-
チャージQRコードによって付与されるポイント残高の有効起源を指定します。
チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。
@@ -3297,7 +3901,7 @@ paths:
minimum: 1
nullable: true
title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)'
- description: |
+ description: |-
チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。
1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。
`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。
@@ -3307,12 +3911,12 @@ paths:
type: string
format: uuid
title: 'ポイント額を負担する店舗のウォレットID'
- description: |
+ description: |-
ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。
is_disabled:
type: boolean
title: '無効化されているかどうかのフラグ'
- description: |
+ description: |-
チャージQRコードを無効化するときに`true`にします。
`false`の場合は無効化されているチャージQRコードを再有効化します。
responses:
@@ -3572,6 +4176,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:
@@ -3686,14 +4360,169 @@ paths:
private_money_idが指定されたとき、そのマネーから見て流入方向の交換取引が抽出されます。
private_money_idを省略した場合は表示されません。
- 5. cashback
- 退会時返金取引
+ 5. cashback
+ 退会時返金取引
+
+ 6. expire
+ 退会時失効取引
+ items:
+ type: string
+ enum: [topup, payment, exchange_outflow, exchange_inflow, cashback, expire]
+ 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
+ title: '1ページ分の取引数'
+ description: |-
+ 1ページ分の取引数です。
+
+ デフォルト値は50です。
+ example: 50
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $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です。
- 6. expire
- 退会時失効取引
- items:
- type: string
- enum: [topup, payment, exchange_outflow, exchange_inflow, cashback, expire]
+ フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。
+ is_modified:
+ type: boolean
+ title: 'キャンセルフラグ'
+ description: |-
+ キャンセルフラグです。
+
+ これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。
+ デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。
from:
type: string
format: date-time
@@ -3735,6 +4564,7 @@ paths:
type: integer
minimum: 1
maximum: 1000
+ default: 50
title: '1ページ分の取引数'
description: |-
1ページ分の取引数です。
@@ -3747,9 +4577,11 @@ paths:
content:
application/json:
schema:
- $ref: '#/components/schemas/PaginatedTransactionV2'
+ $ref: '#/components/schemas/PaginatedBillTransaction'
'400':
$ref: '#/components/responses/InvalidParameters'
+ '403':
+ $ref: '#/components/responses/Forbidden'
/transactions/topup:
post:
tags:
@@ -3871,7 +4703,7 @@ paths:
tags:
- Check
summary: 'チャージQRコードを読み取ることでチャージする'
- description: |
+ description: |-
通常チャージQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがチャージQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。
エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。
@@ -3932,7 +4764,7 @@ paths:
tags:
- Transaction
summary: '支払いする'
- description: |
+ description: |-
支払取引を作成します。
支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。
x-pokepay-operator-name: "CreatePaymentTransaction"
@@ -4020,6 +4852,96 @@ paths:
- 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
+ title: 'リクエストID'
+ description: |-
+ 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。
+
+ 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。
+
+ リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。
+ 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。
+ example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2'
+ strategy:
+ type: string
+ enum: [point-preferred, money-only]
+ default: 'point-preferred'
+ title: '支払い時の残高消費方式'
+ description: |-
+ 支払い時に残高がどのように消費されるかを指定します。
+ デフォルトでは point-preferred (ポイント優先)が採用されます。
+
+ - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作)
+ - money-only: マネー残高のみから消費され、ポイント残高は使われません
+
マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。
example: 'point-preferred'
responses:
@@ -4033,6 +4955,8 @@ paths:
$ref: '#/components/responses/BadRequest'
'403':
$ref: '#/components/responses/Forbidden'
+ '404':
+ $ref: '#/components/responses/NotFound'
'422':
$ref: '#/components/responses/UnprocessableEntity'
/transactions/cpm:
@@ -4040,7 +4964,7 @@ paths:
tags:
- Transaction
summary: 'CPMトークンによる取引作成'
- description: |
+ description: |-
CPMトークンにより取引を作成します。
CPMトークンに設定されたスコープの取引を作ることができます。
x-pokepay-operator-name: "CreateCpmTransaction"
@@ -4112,15 +5036,15 @@ paths:
strategy:
type: string
enum: [point-preferred, money-only]
+ nullable: true
title: '支払い時の残高消費方式'
description: |-
支払い時に残高がどのように消費されるかを指定します。
- デフォルトでは point-preferred (ポイント優先)が採用されます。
+ エンドユーザーがCPMトークン作成時に指定した残高消費方式と一致するか、どちらか一方のみが指定されている必要があります。
+ 両方が指定されていて値が異なる場合、cpm_token_strategy_conflictが返ります。
- - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作)
+ - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます
- money-only: マネー残高のみから消費され、ポイント残高は使われません
-
- マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。
example: 'point-preferred'
responses:
'200':
@@ -4198,7 +5122,7 @@ paths:
tags:
- Cashtray
summary: 'CashtrayQRコードを読み取ることで取引する'
- description: |
+ description: |-
エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。
通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。
@@ -4279,7 +5203,7 @@ paths:
tags:
- Transaction
summary: '個人間送金'
- description: |
+ description: |-
エンドユーザー間での送金取引(個人間送金)を作成します。
個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。
x-pokepay-operator-name: "CreateTransferTransaction"
@@ -4484,6 +5408,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
@@ -4621,7 +5576,7 @@ paths:
tags:
- Event
summary: 'ポケペイ外部取引を作成する'
- description: |
+ description: |-
ポケペイ外部取引を作成します。
ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。
@@ -5259,14 +6214,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
@@ -5274,44 +6229,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
@@ -5790,6 +6745,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:
@@ -5982,7 +6985,7 @@ paths:
tags:
- Cashtray
summary: 'Cashtrayを作る'
- description: |
+ description: |-
Cashtrayを作成します。
エンドユーザーに対して支払いまたはチャージを行う店舗の情報(店舗ユーザーIDとマネーID)と、取引金額が必須項目です。
@@ -6235,7 +7238,7 @@ paths:
tags:
- Campaign
summary: 'ポイント付与キャンペーンを作る'
- description: |
+ description: |-
ポイント付与キャンペーンを作成します。
x-pokepay-operator-name: "CreateCampaign"
x-pokepay-allow-server-side: true
@@ -7135,7 +8138,7 @@ paths:
tags:
- Campaign
summary: 'ポイント付与キャンペーンを更新する'
- description: |
+ description: |-
ポイント付与キャンペーンを更新します。
x-pokepay-operator-name: "UpdateCampaign"
x-pokepay-allow-server-side: true
@@ -7989,6 +8992,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"
@@ -8175,7 +9222,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"}'
@@ -8232,7 +9279,7 @@ paths:
tags:
- UserDevice
summary: デバイスの有効化
- description: |
+ description: |-
指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。
parameters:
- in: path
@@ -8267,7 +9314,7 @@ paths:
tags:
- BankPay
summary: 銀行口座の登録
- description: |
+ description: |-
銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。
ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。
@@ -8367,6 +9414,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:
@@ -8446,41 +9533,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
@@ -8564,7 +9651,7 @@ paths:
is_hidden:
type: boolean
title: 'クーポン一覧に掲載されるかどうか'
- description: |
+ description: |-
アプリに表示されるクーポン一覧に掲載されるかどうか。
主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。
is_public:
@@ -8598,6 +9685,10 @@ paths:
format: uuid
title: "ストレージID"
description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します"
+ num_recipients_cap:
+ type: integer
+ minimum: 1
+ title: 'クーポンを受け取ることができるユーザ数上限'
responses:
'200':
description: OK
@@ -8709,7 +9800,7 @@ paths:
is_hidden:
type: boolean
title: 'クーポン一覧に掲載されるかどうか'
- description: |
+ description: |-
アプリに表示されるクーポン一覧に掲載されるかどうか。
主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。
is_public:
@@ -8741,6 +9832,10 @@ paths:
format: uuid
title: "ストレージID"
description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します"
+ num_recipients_cap:
+ type: integer
+ minimum: 1
+ title: 'クーポンを受け取ることができるユーザ数上限'
responses:
'200':
description: OK
@@ -8788,4 +9883,4 @@ paths:
'404':
$ref: '#/components/responses/NotFound'
'422':
- $ref: '#/components/responses/UnprocessableEntity'
\ No newline at end of file
+ $ref: '#/components/responses/UnprocessableEntity'
diff --git a/src/main/java/jp/pokepay/partnerapi/request/BulkCreateTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/BulkCreateTransaction.java
index 22cbf611..a91b93ca 100644
--- a/src/main/java/jp/pokepay/partnerapi/request/BulkCreateTransaction.java
+++ b/src/main/java/jp/pokepay/partnerapi/request/BulkCreateTransaction.java
@@ -12,6 +12,7 @@ public class BulkCreateTransaction extends Request {
private String content;
private String requestId;
private String privateMoneyId;
+ private String callbackUrl;
public BulkCreateTransaction(String name, String content, String requestId) {
this.name = name;
@@ -29,6 +30,11 @@ public BulkCreateTransaction privateMoneyId(String privateMoneyId) {
return this;
}
+ public BulkCreateTransaction callbackUrl(String callbackUrl) {
+ this.callbackUrl = callbackUrl;
+ return this;
+ }
+
@Override
public Method method() {
return Method.POST;
@@ -52,6 +58,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
if (content != null) { object.add("content", context.serialize(this.content)); }
if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); }
if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); }
+ if (callbackUrl != null) { object.add("callback_url", context.serialize(this.callbackUrl)); }
return object;
}
}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.java b/src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.java
new file mode 100644
index 00000000..4d4aeb80
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/CaptureCreditSession.java
@@ -0,0 +1,43 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class CaptureCreditSession extends Request {
+ private String requestId;
+ private String sessionId;
+
+ public CaptureCreditSession(String sessionId) {
+ this.sessionId = sessionId;
+ }
+
+ public CaptureCreditSession requestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ @Override
+ public Method method() {
+ return Method.POST;
+ }
+
+ @Override
+ public String path() {
+ return "/credit-sessions" + "/" + this.sessionId + "/capture";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return CapturedCreditSession.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java b/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java
index c965988e..a714acf2 100644
--- a/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java
+++ b/src/main/java/jp/pokepay/partnerapi/request/CreateCoupon.java
@@ -27,6 +27,7 @@ public class CreateCoupon extends Request {
private Boolean isShopSpecified;
private String[] availableShopIds;
private String storageId;
+ private Integer numRecipientsCap;
public CreateCoupon(String privateMoneyId, String name, String startsAt, String endsAt, String issuedShopId) {
this.privateMoneyId = privateMoneyId;
@@ -111,6 +112,11 @@ public CreateCoupon storageId(String storageId) {
return this;
}
+ public CreateCoupon numRecipientsCap(Integer numRecipientsCap) {
+ this.numRecipientsCap = numRecipientsCap;
+ return this;
+ }
+
@Override
public Method method() {
return Method.POST;
@@ -149,6 +155,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
if (isShopSpecified != null) { object.add("is_shop_specified", context.serialize(this.isShopSpecified)); }
if (availableShopIds != null) { object.add("available_shop_ids", context.serialize(this.availableShopIds)); }
if (storageId != null) { object.add("storage_id", context.serialize(this.storageId)); }
+ if (numRecipientsCap != null) { object.add("num_recipients_cap", context.serialize(this.numRecipientsCap)); }
return object;
}
}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateCreditSessionTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/CreateCreditSessionTransaction.java
new file mode 100644
index 00000000..c1cc814f
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/CreateCreditSessionTransaction.java
@@ -0,0 +1,60 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class CreateCreditSessionTransaction extends Request {
+ private Double amount;
+ private String shopId;
+ private String description;
+ private String requestId;
+ private String sessionId;
+
+ public CreateCreditSessionTransaction(String sessionId, double amount) {
+ this.sessionId = sessionId;
+ this.amount = amount;
+ }
+
+ public CreateCreditSessionTransaction shopId(String shopId) {
+ this.shopId = shopId;
+ return this;
+ }
+
+ public CreateCreditSessionTransaction description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ public CreateCreditSessionTransaction requestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ @Override
+ public Method method() {
+ return Method.POST;
+ }
+
+ @Override
+ public String path() {
+ return "/credit-sessions" + "/" + this.sessionId + "/transactions";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return CreditSessionTransactionResult.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (amount != null) { object.add("amount", context.serialize((int)this.amount.doubleValue())); }
+ if (shopId != null) { object.add("shop_id", context.serialize(this.shopId)); }
+ if (description != null) { object.add("description", context.serialize(this.description)); }
+ if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransaction.java b/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransaction.java
index 9bc1e218..eb87e827 100644
--- a/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransaction.java
+++ b/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransaction.java
@@ -16,6 +16,7 @@ public class CreatePaymentTransaction extends Request {
private Object[] products;
private String requestId;
private String strategy;
+ private String couponId;
public CreatePaymentTransaction(String shopId, String customerId, String privateMoneyId, int amount) {
this.shopId = shopId;
@@ -49,6 +50,11 @@ public CreatePaymentTransaction strategy(String strategy) {
return this;
}
+ public CreatePaymentTransaction couponId(String couponId) {
+ this.couponId = couponId;
+ return this;
+ }
+
@Override
public Method method() {
return Method.POST;
@@ -76,6 +82,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
if (products != null) { object.add("products", context.serialize(this.products)); }
if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); }
if (strategy != null) { object.add("strategy", context.serialize(this.strategy)); }
+ if (couponId != null) { object.add("coupon_id", context.serialize(this.couponId)); }
return object;
}
}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransactionWithBill.java b/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransactionWithBill.java
new file mode 100644
index 00000000..9e2b79b9
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/CreatePaymentTransactionWithBill.java
@@ -0,0 +1,61 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class CreatePaymentTransactionWithBill extends Request {
+ private String billId;
+ private String customerId;
+ private String metadata;
+ private String requestId;
+ private String strategy;
+
+ public CreatePaymentTransactionWithBill(String billId, String customerId) {
+ this.billId = billId;
+ this.customerId = customerId;
+ }
+
+ public CreatePaymentTransactionWithBill metadata(String metadata) {
+ this.metadata = metadata;
+ return this;
+ }
+
+ public CreatePaymentTransactionWithBill requestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ public CreatePaymentTransactionWithBill strategy(String strategy) {
+ this.strategy = strategy;
+ return this;
+ }
+
+ @Override
+ public Method method() {
+ return Method.POST;
+ }
+
+ @Override
+ public String path() {
+ return "/transactions" + "/payment" + "/bill";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return TransactionDetail.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (billId != null) { object.add("bill_id", context.serialize(this.billId)); }
+ if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); }
+ if (metadata != null) { object.add("metadata", context.serialize(this.metadata)); }
+ if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); }
+ if (strategy != null) { object.add("strategy", context.serialize(this.strategy)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/CreateTransactionGroup.java b/src/main/java/jp/pokepay/partnerapi/request/CreateTransactionGroup.java
new file mode 100644
index 00000000..b7176b44
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/CreateTransactionGroup.java
@@ -0,0 +1,37 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class CreateTransactionGroup extends Request {
+ private String name;
+
+ public CreateTransactionGroup(String name) {
+ this.name = name;
+ }
+
+ @Override
+ public Method method() {
+ return Method.POST;
+ }
+
+ @Override
+ public String path() {
+ return "/transaction-groups";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return TransactionGroup.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (name != null) { object.add("name", context.serialize(this.name)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java b/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java
new file mode 100644
index 00000000..cf6194b9
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/DeleteBank.java
@@ -0,0 +1,39 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class DeleteBank extends Request {
+ private String bankId;
+ private String userDeviceId;
+
+ public DeleteBank(String userDeviceId, String bankId) {
+ this.userDeviceId = userDeviceId;
+ this.bankId = bankId;
+ }
+
+ @Override
+ public Method method() {
+ return Method.DELETE;
+ }
+
+ @Override
+ public String path() {
+ return "/user-devices" + "/" + this.userDeviceId + "/banks";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return BankDeleted.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (bankId != null) { object.add("bank_id", context.serialize(this.bankId)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/GetBill.java b/src/main/java/jp/pokepay/partnerapi/request/GetBill.java
new file mode 100644
index 00000000..e2e4504c
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/GetBill.java
@@ -0,0 +1,36 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class GetBill extends Request {
+ private String billId;
+
+ public GetBill(String billId) {
+ this.billId = billId;
+ }
+
+ @Override
+ public Method method() {
+ return Method.GET;
+ }
+
+ @Override
+ public String path() {
+ return "/bills" + "/" + this.billId;
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return Bill.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/GetCustomerCards.java b/src/main/java/jp/pokepay/partnerapi/request/GetCustomerCards.java
new file mode 100644
index 00000000..2153a2c0
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/GetCustomerCards.java
@@ -0,0 +1,50 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class GetCustomerCards extends Request {
+ private Integer page;
+ private Integer perPage;
+ private String customerId;
+
+ public GetCustomerCards(String customerId) {
+ this.customerId = customerId;
+ }
+
+ public GetCustomerCards page(Integer page) {
+ this.page = page;
+ return this;
+ }
+
+ public GetCustomerCards perPage(Integer perPage) {
+ this.perPage = perPage;
+ return this;
+ }
+
+ @Override
+ public Method method() {
+ return Method.GET;
+ }
+
+ @Override
+ public String path() {
+ return "/customers" + "/" + this.customerId + "/cards";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return PaginatedUserCards.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (page != null) { object.add("page", context.serialize(this.page)); }
+ if (perPage != null) { object.add("per_page", context.serialize(this.perPage)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java b/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java
new file mode 100644
index 00000000..dd030572
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/ListBillTransactions.java
@@ -0,0 +1,139 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class ListBillTransactions extends Request {
+ private String privateMoneyId;
+ private String organizationCode;
+ private String shopId;
+ private String customerId;
+ private String customerName;
+ private String terminalId;
+ private String description;
+ private String transactionId;
+ private String billId;
+ private Boolean isModified;
+ private String from;
+ private String to;
+ private String nextPageCursorId;
+ private String prevPageCursorId;
+ private Integer perPage;
+
+ public ListBillTransactions() {
+ }
+
+ public ListBillTransactions privateMoneyId(String privateMoneyId) {
+ this.privateMoneyId = privateMoneyId;
+ return this;
+ }
+
+ public ListBillTransactions organizationCode(String organizationCode) {
+ this.organizationCode = organizationCode;
+ return this;
+ }
+
+ public ListBillTransactions shopId(String shopId) {
+ this.shopId = shopId;
+ return this;
+ }
+
+ public ListBillTransactions customerId(String customerId) {
+ this.customerId = customerId;
+ return this;
+ }
+
+ public ListBillTransactions customerName(String customerName) {
+ this.customerName = customerName;
+ return this;
+ }
+
+ public ListBillTransactions terminalId(String terminalId) {
+ this.terminalId = terminalId;
+ return this;
+ }
+
+ public ListBillTransactions description(String description) {
+ this.description = description;
+ return this;
+ }
+
+ public ListBillTransactions transactionId(String transactionId) {
+ this.transactionId = transactionId;
+ return this;
+ }
+
+ public ListBillTransactions billId(String billId) {
+ this.billId = billId;
+ return this;
+ }
+
+ public ListBillTransactions setModified(Boolean modified) {
+ isModified = modified;
+ return this;
+ }
+
+ public ListBillTransactions from(String from) {
+ this.from = from;
+ return this;
+ }
+
+ public ListBillTransactions to(String to) {
+ this.to = to;
+ return this;
+ }
+
+ public ListBillTransactions nextPageCursorId(String nextPageCursorId) {
+ this.nextPageCursorId = nextPageCursorId;
+ return this;
+ }
+
+ public ListBillTransactions prevPageCursorId(String prevPageCursorId) {
+ this.prevPageCursorId = prevPageCursorId;
+ return this;
+ }
+
+ public ListBillTransactions perPage(Integer perPage) {
+ this.perPage = perPage;
+ return this;
+ }
+
+ @Override
+ public Method method() {
+ return Method.GET;
+ }
+
+ @Override
+ public String path() {
+ return "/transactions" + "/bill";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return PaginatedBillTransaction.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); }
+ if (organizationCode != null) { object.add("organization_code", context.serialize(this.organizationCode)); }
+ if (shopId != null) { object.add("shop_id", context.serialize(this.shopId)); }
+ if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); }
+ if (customerName != null) { object.add("customer_name", context.serialize(this.customerName)); }
+ if (terminalId != null) { object.add("terminal_id", context.serialize(this.terminalId)); }
+ if (description != null) { object.add("description", context.serialize(this.description)); }
+ if (transactionId != null) { object.add("transaction_id", context.serialize(this.transactionId)); }
+ if (billId != null) { object.add("bill_id", context.serialize(this.billId)); }
+ if (isModified != null) { object.add("is_modified", context.serialize(this.isModified)); }
+ if (from != null) { object.add("from", context.serialize(this.from)); }
+ if (to != null) { object.add("to", context.serialize(this.to)); }
+ if (nextPageCursorId != null) { object.add("next_page_cursor_id", context.serialize(this.nextPageCursorId)); }
+ if (prevPageCursorId != null) { object.add("prev_page_cursor_id", context.serialize(this.prevPageCursorId)); }
+ if (perPage != null) { object.add("per_page", context.serialize(this.perPage)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.java b/src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.java
new file mode 100644
index 00000000..bce832bb
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/PostCreditSession.java
@@ -0,0 +1,53 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class PostCreditSession extends Request {
+ private String customerId;
+ private String privateMoneyId;
+ private String cardId;
+ private String expiresAt;
+ private String requestId;
+
+ public PostCreditSession(String customerId, String privateMoneyId, String cardId, String expiresAt) {
+ this.customerId = customerId;
+ this.privateMoneyId = privateMoneyId;
+ this.cardId = cardId;
+ this.expiresAt = expiresAt;
+ }
+
+ public PostCreditSession requestId(String requestId) {
+ this.requestId = requestId;
+ return this;
+ }
+
+ @Override
+ public Method method() {
+ return Method.POST;
+ }
+
+ @Override
+ public String path() {
+ return "/credit-sessions";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return CreditSession.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (customerId != null) { object.add("customer_id", context.serialize(this.customerId)); }
+ if (privateMoneyId != null) { object.add("private_money_id", context.serialize(this.privateMoneyId)); }
+ if (cardId != null) { object.add("card_id", context.serialize(this.cardId)); }
+ if (expiresAt != null) { object.add("expires_at", context.serialize(this.expiresAt)); }
+ if (requestId != null) { object.add("request_id", context.serialize(this.requestId)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/ShowTransactionGroup.java b/src/main/java/jp/pokepay/partnerapi/request/ShowTransactionGroup.java
new file mode 100644
index 00000000..461e57f6
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/ShowTransactionGroup.java
@@ -0,0 +1,36 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class ShowTransactionGroup extends Request {
+ private String uuid;
+
+ public ShowTransactionGroup(String uuid) {
+ this.uuid = uuid;
+ }
+
+ @Override
+ public Method method() {
+ return Method.GET;
+ }
+
+ @Override
+ public String path() {
+ return "/transaction-groups" + "/" + this.uuid;
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return TransactionGroup.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java b/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java
new file mode 100644
index 00000000..9c07769b
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/TerminateUserStats.java
@@ -0,0 +1,37 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.request;
+
+import com.google.gson.JsonObject;
+import com.google.gson.JsonSerializationContext;
+import jp.pokepay.partnerapi.response.*;
+import java.lang.reflect.Type;
+
+public class TerminateUserStats extends Request {
+ private String operationId;
+
+ public TerminateUserStats(String operationId) {
+ this.operationId = operationId;
+ }
+
+ @Override
+ public Method method() {
+ return Method.POST;
+ }
+
+ @Override
+ public String path() {
+ return "/user-stats" + "/terminate";
+ }
+
+ @Override
+ public Type getResponseClass() {
+ return UserStatsOperation.class;
+ }
+
+ @Override
+ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
+ JsonObject object = new JsonObject();
+ if (operationId != null) { object.add("operation_id", context.serialize(this.operationId)); }
+ return object;
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java b/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java
index 1836afd8..177759e4 100644
--- a/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java
+++ b/src/main/java/jp/pokepay/partnerapi/request/UpdateCoupon.java
@@ -25,6 +25,7 @@ public class UpdateCoupon extends Request {
private Boolean isShopSpecified;
private String[] availableShopIds;
private String storageId;
+ private Integer numRecipientsCap;
private String couponId;
public UpdateCoupon(String couponId) {
@@ -121,6 +122,11 @@ public UpdateCoupon storageId(String storageId) {
return this;
}
+ public UpdateCoupon numRecipientsCap(Integer numRecipientsCap) {
+ this.numRecipientsCap = numRecipientsCap;
+ return this;
+ }
+
@Override
public Method method() {
return Method.PATCH;
@@ -157,6 +163,7 @@ public JsonObject getRequestBodyJsonObject(JsonSerializationContext context) {
if (isShopSpecified != null) { object.add("is_shop_specified", context.serialize(this.isShopSpecified)); }
if (availableShopIds != null) { object.add("available_shop_ids", context.serialize(this.availableShopIds)); }
if (storageId != null) { object.add("storage_id", context.serialize(this.storageId)); }
+ if (numRecipientsCap != null) { object.add("num_recipients_cap", context.serialize(this.numRecipientsCap)); }
return object;
}
}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CaptureCreditSessionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CaptureCreditSessionSerializer.java
new file mode 100644
index 00000000..6779f294
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CaptureCreditSessionSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.CaptureCreditSession;
+
+import java.lang.reflect.Type;
+
+public class CaptureCreditSessionSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(CaptureCreditSession src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCreditSessionTransactionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCreditSessionTransactionSerializer.java
new file mode 100644
index 00000000..7a104c8c
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateCreditSessionTransactionSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.CreateCreditSessionTransaction;
+
+import java.lang.reflect.Type;
+
+public class CreateCreditSessionTransactionSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(CreateCreditSessionTransaction src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreatePaymentTransactionWithBillSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreatePaymentTransactionWithBillSerializer.java
new file mode 100644
index 00000000..2bbdbd77
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreatePaymentTransactionWithBillSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.CreatePaymentTransactionWithBill;
+
+import java.lang.reflect.Type;
+
+public class CreatePaymentTransactionWithBillSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(CreatePaymentTransactionWithBill src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateTransactionGroupSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateTransactionGroupSerializer.java
new file mode 100644
index 00000000..5deec7f8
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/CreateTransactionGroupSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.CreateTransactionGroup;
+
+import java.lang.reflect.Type;
+
+public class CreateTransactionGroupSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(CreateTransactionGroup src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java
new file mode 100644
index 00000000..6fcf7b75
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/DeleteBankSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.DeleteBank;
+
+import java.lang.reflect.Type;
+
+public class DeleteBankSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(DeleteBank src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/GetBillSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetBillSerializer.java
new file mode 100644
index 00000000..9e229f50
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetBillSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.GetBill;
+
+import java.lang.reflect.Type;
+
+public class GetBillSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(GetBill src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCustomerCardsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCustomerCardsSerializer.java
new file mode 100644
index 00000000..b3dd0ea9
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/GetCustomerCardsSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.GetCustomerCards;
+
+import java.lang.reflect.Type;
+
+public class GetCustomerCardsSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(GetCustomerCards src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java
new file mode 100644
index 00000000..a52e27b9
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/ListBillTransactionsSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.ListBillTransactions;
+
+import java.lang.reflect.Type;
+
+public class ListBillTransactionsSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(ListBillTransactions src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/PostCreditSessionSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/PostCreditSessionSerializer.java
new file mode 100644
index 00000000..659ef57b
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/PostCreditSessionSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.PostCreditSession;
+
+import java.lang.reflect.Type;
+
+public class PostCreditSessionSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(PostCreditSession src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java
index 8c05830c..60164b93 100644
--- a/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/SerializerHelper.java
@@ -5,6 +5,9 @@
import com.google.gson.GsonBuilder;
import jp.pokepay.partnerapi.request.GetPing;
import jp.pokepay.partnerapi.request.SendEcho;
+import jp.pokepay.partnerapi.request.PostCreditSession;
+import jp.pokepay.partnerapi.request.CreateCreditSessionTransaction;
+import jp.pokepay.partnerapi.request.CaptureCreditSession;
import jp.pokepay.partnerapi.request.GetUser;
import jp.pokepay.partnerapi.request.ListUserAccounts;
import jp.pokepay.partnerapi.request.CreateUserAccount;
@@ -20,6 +23,7 @@
import jp.pokepay.partnerapi.request.GetShopAccounts;
import jp.pokepay.partnerapi.request.ListBills;
import jp.pokepay.partnerapi.request.CreateBill;
+import jp.pokepay.partnerapi.request.GetBill;
import jp.pokepay.partnerapi.request.UpdateBill;
import jp.pokepay.partnerapi.request.ListChecks;
import jp.pokepay.partnerapi.request.CreateCheck;
@@ -28,10 +32,14 @@
import jp.pokepay.partnerapi.request.GetCpmToken;
import jp.pokepay.partnerapi.request.ListTransactions;
import jp.pokepay.partnerapi.request.CreateTransaction;
+import jp.pokepay.partnerapi.request.CreateTransactionGroup;
+import jp.pokepay.partnerapi.request.ShowTransactionGroup;
import jp.pokepay.partnerapi.request.ListTransactionsV2;
+import jp.pokepay.partnerapi.request.ListBillTransactions;
import jp.pokepay.partnerapi.request.CreateTopupTransaction;
import jp.pokepay.partnerapi.request.CreateTopupTransactionWithCheck;
import jp.pokepay.partnerapi.request.CreatePaymentTransaction;
+import jp.pokepay.partnerapi.request.CreatePaymentTransactionWithBill;
import jp.pokepay.partnerapi.request.CreateCpmTransaction;
import jp.pokepay.partnerapi.request.CreateTransactionWithCashtray;
import jp.pokepay.partnerapi.request.CreateTransferTransaction;
@@ -55,6 +63,7 @@
import jp.pokepay.partnerapi.request.GetPrivateMoneys;
import jp.pokepay.partnerapi.request.GetPrivateMoneyOrganizationSummaries;
import jp.pokepay.partnerapi.request.GetPrivateMoneySummary;
+import jp.pokepay.partnerapi.request.GetCustomerCards;
import jp.pokepay.partnerapi.request.ListCustomerTransactions;
import jp.pokepay.partnerapi.request.GetBulkTransaction;
import jp.pokepay.partnerapi.request.ListBulkTransactionJobs;
@@ -67,6 +76,7 @@
import jp.pokepay.partnerapi.request.GetCampaign;
import jp.pokepay.partnerapi.request.UpdateCampaign;
import jp.pokepay.partnerapi.request.RequestUserStats;
+import jp.pokepay.partnerapi.request.TerminateUserStats;
import jp.pokepay.partnerapi.request.ListWebhooks;
import jp.pokepay.partnerapi.request.CreateWebhook;
import jp.pokepay.partnerapi.request.DeleteWebhook;
@@ -74,6 +84,7 @@
import jp.pokepay.partnerapi.request.CreateUserDevice;
import jp.pokepay.partnerapi.request.GetUserDevice;
import jp.pokepay.partnerapi.request.ActivateUserDevice;
+import jp.pokepay.partnerapi.request.DeleteBank;
import jp.pokepay.partnerapi.request.ListBanks;
import jp.pokepay.partnerapi.request.CreateBank;
import jp.pokepay.partnerapi.request.CreateBankTopupTransaction;
@@ -87,6 +98,9 @@ public class SerializerHelper {
public static void registerTypeAdapters(GsonBuilder gsonBuilder) {
gsonBuilder.registerTypeAdapter(GetPing.class, new GetPingSerializer());
gsonBuilder.registerTypeAdapter(SendEcho.class, new SendEchoSerializer());
+ gsonBuilder.registerTypeAdapter(PostCreditSession.class, new PostCreditSessionSerializer());
+ gsonBuilder.registerTypeAdapter(CreateCreditSessionTransaction.class, new CreateCreditSessionTransactionSerializer());
+ gsonBuilder.registerTypeAdapter(CaptureCreditSession.class, new CaptureCreditSessionSerializer());
gsonBuilder.registerTypeAdapter(GetUser.class, new GetUserSerializer());
gsonBuilder.registerTypeAdapter(ListUserAccounts.class, new ListUserAccountsSerializer());
gsonBuilder.registerTypeAdapter(CreateUserAccount.class, new CreateUserAccountSerializer());
@@ -102,6 +116,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) {
gsonBuilder.registerTypeAdapter(GetShopAccounts.class, new GetShopAccountsSerializer());
gsonBuilder.registerTypeAdapter(ListBills.class, new ListBillsSerializer());
gsonBuilder.registerTypeAdapter(CreateBill.class, new CreateBillSerializer());
+ gsonBuilder.registerTypeAdapter(GetBill.class, new GetBillSerializer());
gsonBuilder.registerTypeAdapter(UpdateBill.class, new UpdateBillSerializer());
gsonBuilder.registerTypeAdapter(ListChecks.class, new ListChecksSerializer());
gsonBuilder.registerTypeAdapter(CreateCheck.class, new CreateCheckSerializer());
@@ -110,10 +125,14 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) {
gsonBuilder.registerTypeAdapter(GetCpmToken.class, new GetCpmTokenSerializer());
gsonBuilder.registerTypeAdapter(ListTransactions.class, new ListTransactionsSerializer());
gsonBuilder.registerTypeAdapter(CreateTransaction.class, new CreateTransactionSerializer());
+ gsonBuilder.registerTypeAdapter(CreateTransactionGroup.class, new CreateTransactionGroupSerializer());
+ gsonBuilder.registerTypeAdapter(ShowTransactionGroup.class, new ShowTransactionGroupSerializer());
gsonBuilder.registerTypeAdapter(ListTransactionsV2.class, new ListTransactionsV2Serializer());
+ gsonBuilder.registerTypeAdapter(ListBillTransactions.class, new ListBillTransactionsSerializer());
gsonBuilder.registerTypeAdapter(CreateTopupTransaction.class, new CreateTopupTransactionSerializer());
gsonBuilder.registerTypeAdapter(CreateTopupTransactionWithCheck.class, new CreateTopupTransactionWithCheckSerializer());
gsonBuilder.registerTypeAdapter(CreatePaymentTransaction.class, new CreatePaymentTransactionSerializer());
+ gsonBuilder.registerTypeAdapter(CreatePaymentTransactionWithBill.class, new CreatePaymentTransactionWithBillSerializer());
gsonBuilder.registerTypeAdapter(CreateCpmTransaction.class, new CreateCpmTransactionSerializer());
gsonBuilder.registerTypeAdapter(CreateTransactionWithCashtray.class, new CreateTransactionWithCashtraySerializer());
gsonBuilder.registerTypeAdapter(CreateTransferTransaction.class, new CreateTransferTransactionSerializer());
@@ -137,6 +156,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) {
gsonBuilder.registerTypeAdapter(GetPrivateMoneys.class, new GetPrivateMoneysSerializer());
gsonBuilder.registerTypeAdapter(GetPrivateMoneyOrganizationSummaries.class, new GetPrivateMoneyOrganizationSummariesSerializer());
gsonBuilder.registerTypeAdapter(GetPrivateMoneySummary.class, new GetPrivateMoneySummarySerializer());
+ gsonBuilder.registerTypeAdapter(GetCustomerCards.class, new GetCustomerCardsSerializer());
gsonBuilder.registerTypeAdapter(ListCustomerTransactions.class, new ListCustomerTransactionsSerializer());
gsonBuilder.registerTypeAdapter(GetBulkTransaction.class, new GetBulkTransactionSerializer());
gsonBuilder.registerTypeAdapter(ListBulkTransactionJobs.class, new ListBulkTransactionJobsSerializer());
@@ -149,6 +169,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) {
gsonBuilder.registerTypeAdapter(GetCampaign.class, new GetCampaignSerializer());
gsonBuilder.registerTypeAdapter(UpdateCampaign.class, new UpdateCampaignSerializer());
gsonBuilder.registerTypeAdapter(RequestUserStats.class, new RequestUserStatsSerializer());
+ gsonBuilder.registerTypeAdapter(TerminateUserStats.class, new TerminateUserStatsSerializer());
gsonBuilder.registerTypeAdapter(ListWebhooks.class, new ListWebhooksSerializer());
gsonBuilder.registerTypeAdapter(CreateWebhook.class, new CreateWebhookSerializer());
gsonBuilder.registerTypeAdapter(DeleteWebhook.class, new DeleteWebhookSerializer());
@@ -156,6 +177,7 @@ public static void registerTypeAdapters(GsonBuilder gsonBuilder) {
gsonBuilder.registerTypeAdapter(CreateUserDevice.class, new CreateUserDeviceSerializer());
gsonBuilder.registerTypeAdapter(GetUserDevice.class, new GetUserDeviceSerializer());
gsonBuilder.registerTypeAdapter(ActivateUserDevice.class, new ActivateUserDeviceSerializer());
+ gsonBuilder.registerTypeAdapter(DeleteBank.class, new DeleteBankSerializer());
gsonBuilder.registerTypeAdapter(ListBanks.class, new ListBanksSerializer());
gsonBuilder.registerTypeAdapter(CreateBank.class, new CreateBankSerializer());
gsonBuilder.registerTypeAdapter(CreateBankTopupTransaction.class, new CreateBankTopupTransactionSerializer());
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/ShowTransactionGroupSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/ShowTransactionGroupSerializer.java
new file mode 100644
index 00000000..94ef92c2
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/ShowTransactionGroupSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.ShowTransactionGroup;
+
+import java.lang.reflect.Type;
+
+public class ShowTransactionGroupSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(ShowTransactionGroup src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java b/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java
new file mode 100644
index 00000000..e9fae8b1
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/request/serializer/TerminateUserStatsSerializer.java
@@ -0,0 +1,17 @@
+// DO NOT EDIT: File is generated by code generator.
+
+package jp.pokepay.partnerapi.request.serializer;
+
+import com.google.gson.JsonElement;
+import com.google.gson.JsonSerializationContext;
+import com.google.gson.JsonSerializer;
+import jp.pokepay.partnerapi.request.TerminateUserStats;
+
+import java.lang.reflect.Type;
+
+public class TerminateUserStatsSerializer implements JsonSerializer {
+ @Override
+ public JsonElement serialize(TerminateUserStats src, Type typeOfSrc, JsonSerializationContext context) {
+ return src.getRequestBodyJsonObject(context);
+ }
+}
diff --git a/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java b/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java
new file mode 100644
index 00000000..163da620
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/BankDeleted.java
@@ -0,0 +1,6 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class BankDeleted extends Response {
+}
+
diff --git a/src/main/java/jp/pokepay/partnerapi/response/Bill.java b/src/main/java/jp/pokepay/partnerapi/response/Bill.java
index fd0c85ec..f460db5e 100644
--- a/src/main/java/jp/pokepay/partnerapi/response/Bill.java
+++ b/src/main/java/jp/pokepay/partnerapi/response/Bill.java
@@ -10,6 +10,7 @@ public class Bill extends Response {
private AccountWithUser account;
private Boolean isDisabled;
private String token;
+ private String createdAt;
public String getId() {
return id;
@@ -42,5 +43,9 @@ public Boolean isDisabled() {
public String getToken() {
return token;
}
+
+ public String getCreatedAt() {
+ return createdAt;
+ }
}
diff --git a/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java
new file mode 100644
index 00000000..d856cb3d
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/BillTransaction.java
@@ -0,0 +1,16 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class BillTransaction extends Response {
+ private Transaction transaction;
+ private Bill bill;
+
+ public Transaction getTransaction() {
+ return transaction;
+ }
+
+ public Bill getBill() {
+ return bill;
+ }
+}
+
diff --git a/src/main/java/jp/pokepay/partnerapi/response/BulkTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/BulkTransaction.java
index 2ef7a9c8..8e0ece20 100644
--- a/src/main/java/jp/pokepay/partnerapi/response/BulkTransaction.java
+++ b/src/main/java/jp/pokepay/partnerapi/response/BulkTransaction.java
@@ -11,6 +11,7 @@ public class BulkTransaction extends Response {
private Integer errorLineno;
private String submittedAt;
private String updatedAt;
+ private String scheduledAt;
public String getId() {
return id;
@@ -47,5 +48,9 @@ public String getSubmittedAt() {
public String getUpdatedAt() {
return updatedAt;
}
+
+ public String getScheduledAt() {
+ return scheduledAt;
+ }
}
diff --git a/src/main/java/jp/pokepay/partnerapi/response/CapturedCreditSession.java b/src/main/java/jp/pokepay/partnerapi/response/CapturedCreditSession.java
new file mode 100644
index 00000000..75ba5aad
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/CapturedCreditSession.java
@@ -0,0 +1,11 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class CapturedCreditSession extends Response {
+ private String sessionId;
+
+ public String getSessionId() {
+ return sessionId;
+ }
+}
+
diff --git a/src/main/java/jp/pokepay/partnerapi/response/Coupon.java b/src/main/java/jp/pokepay/partnerapi/response/Coupon.java
index 6d2bccf4..f46e97e4 100644
--- a/src/main/java/jp/pokepay/partnerapi/response/Coupon.java
+++ b/src/main/java/jp/pokepay/partnerapi/response/Coupon.java
@@ -21,6 +21,8 @@ public class Coupon extends Response {
private String code;
private Boolean isDisabled;
private String token;
+ private Integer numRecipientsCap;
+ private Integer numRecipients;
public String getId() {
return id;
@@ -97,5 +99,13 @@ public Boolean isDisabled() {
public String getToken() {
return token;
}
+
+ public Integer getNumRecipientsCap() {
+ return numRecipientsCap;
+ }
+
+ public Integer getNumRecipients() {
+ return numRecipients;
+ }
}
diff --git a/src/main/java/jp/pokepay/partnerapi/response/CouponDetail.java b/src/main/java/jp/pokepay/partnerapi/response/CouponDetail.java
index 256ab460..49e397d3 100644
--- a/src/main/java/jp/pokepay/partnerapi/response/CouponDetail.java
+++ b/src/main/java/jp/pokepay/partnerapi/response/CouponDetail.java
@@ -24,6 +24,8 @@ public class CouponDetail extends Response {
private String couponImage;
private User[] availableShops;
private PrivateMoney privateMoney;
+ private Integer numRecipientsCap;
+ private Integer numRecipients;
public String getId() {
return id;
@@ -112,5 +114,13 @@ public User[] getAvailableShops() {
public PrivateMoney getPrivateMoney() {
return privateMoney;
}
+
+ public Integer getNumRecipientsCap() {
+ return numRecipientsCap;
+ }
+
+ public Integer getNumRecipients() {
+ return numRecipients;
+ }
}
diff --git a/src/main/java/jp/pokepay/partnerapi/response/CpmToken.java b/src/main/java/jp/pokepay/partnerapi/response/CpmToken.java
index 3395dc3f..d8d43bb0 100644
--- a/src/main/java/jp/pokepay/partnerapi/response/CpmToken.java
+++ b/src/main/java/jp/pokepay/partnerapi/response/CpmToken.java
@@ -9,6 +9,7 @@ public class CpmToken extends Response {
private String[] scopes;
private String expiresAt;
private String metadata;
+ private String strategy;
public String getCpmToken() {
return cpmToken;
@@ -37,5 +38,9 @@ public String getExpiresAt() {
public String getMetadata() {
return metadata;
}
+
+ public String getStrategy() {
+ return strategy;
+ }
}
diff --git a/src/main/java/jp/pokepay/partnerapi/response/CreditSession.java b/src/main/java/jp/pokepay/partnerapi/response/CreditSession.java
new file mode 100644
index 00000000..b57f0bf9
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/CreditSession.java
@@ -0,0 +1,16 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class CreditSession extends Response {
+ private String id;
+ private String expiresAt;
+
+ public String getId() {
+ return id;
+ }
+
+ public String getExpiresAt() {
+ return expiresAt;
+ }
+}
+
diff --git a/src/main/java/jp/pokepay/partnerapi/response/CreditSessionTransactionResult.java b/src/main/java/jp/pokepay/partnerapi/response/CreditSessionTransactionResult.java
new file mode 100644
index 00000000..cd506266
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/CreditSessionTransactionResult.java
@@ -0,0 +1,6 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class CreditSessionTransactionResult extends Response {
+}
+
diff --git a/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java b/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java
new file mode 100644
index 00000000..408281ca
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/PaginatedBillTransaction.java
@@ -0,0 +1,31 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class PaginatedBillTransaction extends Response {
+ private BillTransaction[] rows;
+ private Integer perPage;
+ private Integer count;
+ private String nextPageCursorId;
+ private String prevPageCursorId;
+
+ public BillTransaction[] getRows() {
+ return rows;
+ }
+
+ public Integer getPerPage() {
+ return perPage;
+ }
+
+ public Integer getCount() {
+ return count;
+ }
+
+ public String getNextPageCursorId() {
+ return nextPageCursorId;
+ }
+
+ public String getPrevPageCursorId() {
+ return prevPageCursorId;
+ }
+}
+
diff --git a/src/main/java/jp/pokepay/partnerapi/response/PaginatedUserCards.java b/src/main/java/jp/pokepay/partnerapi/response/PaginatedUserCards.java
new file mode 100644
index 00000000..9cfdcc75
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/PaginatedUserCards.java
@@ -0,0 +1,21 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class PaginatedUserCards extends Response {
+ private UserCard[] rows;
+ private Integer count;
+ private Pagination pagination;
+
+ public UserCard[] getRows() {
+ return rows;
+ }
+
+ public Integer getCount() {
+ return count;
+ }
+
+ public Pagination getPagination() {
+ return pagination;
+ }
+}
+
diff --git a/src/main/java/jp/pokepay/partnerapi/response/TransactionGroup.java b/src/main/java/jp/pokepay/partnerapi/response/TransactionGroup.java
new file mode 100644
index 00000000..084384bd
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/TransactionGroup.java
@@ -0,0 +1,31 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class TransactionGroup extends Response {
+ private String id;
+ private String name;
+ private String createdAt;
+ private String updatedAt;
+ private Transaction[] transactions;
+
+ public String getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getCreatedAt() {
+ return createdAt;
+ }
+
+ public String getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public Transaction[] getTransactions() {
+ return transactions;
+ }
+}
+
diff --git a/src/main/java/jp/pokepay/partnerapi/response/UserCard.java b/src/main/java/jp/pokepay/partnerapi/response/UserCard.java
new file mode 100644
index 00000000..905af477
--- /dev/null
+++ b/src/main/java/jp/pokepay/partnerapi/response/UserCard.java
@@ -0,0 +1,21 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.response;
+
+public class UserCard extends Response {
+ private String id;
+ private String cardNumber;
+ private String registeredAt;
+
+ public String getId() {
+ return id;
+ }
+
+ public String getCardNumber() {
+ return cardNumber;
+ }
+
+ public String getRegisteredAt() {
+ return registeredAt;
+ }
+}
+
diff --git a/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java
index 67f4d086..e19c7bc6 100644
--- a/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ActivateUserDeviceTest.java
@@ -12,7 +12,7 @@ public class ActivateUserDeviceTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ActivateUserDevice(
- "8731c411-b461-4e4a-9764-89255ea8a85c"
+ "77db06ad-c625-42d8-81fc-cb64fe0eb2ff"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java
index f9e8a64e..a0c5e43e 100644
--- a/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/BulkCreateTransactionTest.java
@@ -12,9 +12,9 @@ public class BulkCreateTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new BulkCreateTransaction(
- "8HRSP5FHw4UX4tGWi4N1",
- "Wpw",
- "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN"
+ "z0qcHqLIsXtLIzc5kRp3W",
+ "nRoU2x23",
+ "XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh"
);
try {
PartnerAPITest.getClient().send(request);
@@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new BulkCreateTransaction(
- "8HRSP5FHw4UX4tGWi4N1",
- "Wpw",
- "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN"
+ "z0qcHqLIsXtLIzc5kRp3W",
+ "nRoU2x23",
+ "XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh"
)
- .privateMoneyId("52d410b7-8c36-4486-acc0-708a5e74ce01");
+ .callbackUrl("https://9JCT1xGc.example.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -49,12 +49,33 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new BulkCreateTransaction(
- "8HRSP5FHw4UX4tGWi4N1",
- "Wpw",
- "hPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN"
+ "z0qcHqLIsXtLIzc5kRp3W",
+ "nRoU2x23",
+ "XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh"
)
- .description("HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0kt")
- .privateMoneyId("7e11363a-9aeb-479a-b179-4573a184ff65");
+ .privateMoneyId("925fcb51-6acc-4224-be7f-f552d3257a49")
+ .callbackUrl("https://yKzcfWhC.example.com");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test3() throws ConnectionError, ProcessingError {
+ Request request = new BulkCreateTransaction(
+ "z0qcHqLIsXtLIzc5kRp3W",
+ "nRoU2x23",
+ "XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh"
+ )
+ .description("zi1Z8")
+ .privateMoneyId("2d8c780b-e19f-463c-af9e-6d8731a4ef39")
+ .callbackUrl("https://pSvPCqCp.example.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java
index 7462e695..6b66038f 100644
--- a/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CancelCashtrayTest.java
@@ -12,7 +12,7 @@ public class CancelCashtrayTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CancelCashtray(
- "aaf6a586-88af-4705-b315-e668c4144e0c"
+ "e3936c44-0c77-4f91-86b5-99591d406edf"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/CaptureCreditSessionTest.java b/src/test/java/jp/pokepay/partnerapi/CaptureCreditSessionTest.java
new file mode 100644
index 00000000..2cd238c7
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/CaptureCreditSessionTest.java
@@ -0,0 +1,45 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.CaptureCreditSession;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class CaptureCreditSessionTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new CaptureCreditSession(
+ "40765da0-f6f2-41cc-b413-655243e97309"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test1() throws ConnectionError, ProcessingError {
+ Request request = new CaptureCreditSession(
+ "40765da0-f6f2-41cc-b413-655243e97309"
+ )
+ .requestId("ff18fd70-52a7-4b0f-9227-95a7c5dcd5cd");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java
index af765064..ed9881f9 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateBankTest.java
@@ -12,10 +12,10 @@ public class CreateBankTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateBank(
- "3ca9f004-3488-4140-af5b-15c3eabf1100",
- "0c771527-c425-4790-b992-69f2ae020db2",
- "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0",
- "vPKHwlN5cgpKhTDjrt62aO0gTJK"
+ "593ddae2-a52e-4caf-a7f9-bb55a579c8e4",
+ "c3231c88-6d0f-4824-ba8a-c0f79ba5d01a",
+ "tweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424",
+ "D"
);
try {
PartnerAPITest.getClient().send(request);
@@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateBank(
- "3ca9f004-3488-4140-af5b-15c3eabf1100",
- "0c771527-c425-4790-b992-69f2ae020db2",
- "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0",
- "vPKHwlN5cgpKhTDjrt62aO0gTJK"
+ "593ddae2-a52e-4caf-a7f9-bb55a579c8e4",
+ "c3231c88-6d0f-4824-ba8a-c0f79ba5d01a",
+ "tweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424",
+ "D"
)
- .birthdate("vsFX8p");
+ .birthdate("7dkePpr");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateBank(
- "3ca9f004-3488-4140-af5b-15c3eabf1100",
- "0c771527-c425-4790-b992-69f2ae020db2",
- "XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0",
- "vPKHwlN5cgpKhTDjrt62aO0gTJK"
+ "593ddae2-a52e-4caf-a7f9-bb55a579c8e4",
+ "c3231c88-6d0f-4824-ba8a-c0f79ba5d01a",
+ "tweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424",
+ "D"
)
- .email("CgUNdYXQCh@ONhw.com")
- .birthdate("GHDaQRst");
+ .email("AJuqXJLC9D@lGjq.com")
+ .birthdate("c5");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java
index c35d61b3..960a1e16 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateBankTopupTransactionTest.java
@@ -12,11 +12,11 @@ public class CreateBankTopupTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateBankTopupTransaction(
- "eae535ff-5685-4921-bcbd-740d68355f05",
- "2d0004fa-3df9-4790-a6c3-2e4d8cb93aab",
- 4420,
- "50da505b-1a2a-43b6-b234-c9da39d2185e",
- "5254fac9-c835-443a-baaf-5a67dc14e889"
+ "898a7733-e75b-425c-ab02-a901188a9c05",
+ "5bb6b948-9b74-4866-b9e3-2040ac4aa4c4",
+ 1151,
+ "dbe3eb25-81e2-4213-860f-a6fee0943670",
+ "aff6b906-e64e-493c-8b6c-ec4ff5ec34ed"
);
try {
PartnerAPITest.getClient().send(request);
@@ -32,13 +32,13 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateBankTopupTransaction(
- "eae535ff-5685-4921-bcbd-740d68355f05",
- "2d0004fa-3df9-4790-a6c3-2e4d8cb93aab",
- 4420,
- "50da505b-1a2a-43b6-b234-c9da39d2185e",
- "5254fac9-c835-443a-baaf-5a67dc14e889"
+ "898a7733-e75b-425c-ab02-a901188a9c05",
+ "5bb6b948-9b74-4866-b9e3-2040ac4aa4c4",
+ 1151,
+ "dbe3eb25-81e2-4213-860f-a6fee0943670",
+ "aff6b906-e64e-493c-8b6c-ec4ff5ec34ed"
)
- .receiverUserId("c581ccb9-aa16-41e2-bec4-09ae24384255");
+ .receiverUserId("ac6c230d-4308-4029-9b49-ca7167ea377c");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java b/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java
index d28ad546..9f2698d5 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateBillTest.java
@@ -12,8 +12,8 @@ public class CreateBillTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateBill(
- "c404cacf-f9c6-4b71-8977-32134cce0494",
- "887fe62c-62c0-4078-b276-e6f80b19b3eb"
+ "c0fb4d20-913c-4b92-8d7c-f8465bf9a3f5",
+ "b4d1531a-08f2-4d8c-adb2-ad108e5eae01"
);
try {
PartnerAPITest.getClient().send(request);
@@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateBill(
- "c404cacf-f9c6-4b71-8977-32134cce0494",
- "887fe62c-62c0-4078-b276-e6f80b19b3eb"
+ "c0fb4d20-913c-4b92-8d7c-f8465bf9a3f5",
+ "b4d1531a-08f2-4d8c-adb2-ad108e5eae01"
)
- .description("wVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj");
+ .description("HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBD");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateBill(
- "c404cacf-f9c6-4b71-8977-32134cce0494",
- "887fe62c-62c0-4078-b276-e6f80b19b3eb"
+ "c0fb4d20-913c-4b92-8d7c-f8465bf9a3f5",
+ "b4d1531a-08f2-4d8c-adb2-ad108e5eae01"
)
- .amount(3754.0)
- .description("k3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWw");
+ .amount(8169.0)
+ .description("CyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHX");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java
index 6e6fe27f..aa3d4f29 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateCampaignTest.java
@@ -12,14 +12,14 @@ public class CreateCampaignTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"5907704a-6730-41fd-85b9-2c95e35a3a0b","c8b53f99-3b77-4329-a812-f1ec9b21671b","eb5011c6-da36-4d94-8ac3-c522c7fa359d"});
+ .applicableShopIds(new String[]{"a8b20dfe-18f1-4c5d-83d0-74ddb45f15f1","f25722bf-ef86-4031-9aeb-356cb242abfe","adba3125-8d8e-487d-a9d0-7a1a5ab0180f","f8905d86-9fd9-41c9-85e9-f7b4820d5d7e","fc1b0366-1c1c-4367-9a7a-8cde77df3c2e","8946fa70-1cbb-490d-aec6-fd9e3b95b5e6","72572587-5382-4e39-9976-1f3b3cd7745d","d95cac84-6720-4cc3-921a-3696e3e4242c","91429d8d-8c94-47c4-a555-b638a3dcb9ca","dd7a3bb5-b539-419e-8f5b-001cf84498f4"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -34,15 +34,15 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"b3a30f6c-d4cd-492b-8bc6-982efb72e8a1","b890bc48-c36b-4354-9c48-91c5dbb06afb","4c3d0960-e747-4caf-9229-07d7c082e4d5","63fb1142-6801-49d6-95da-71dbfd26a7e1","116eefb1-639b-4586-b2ed-0cfff5f6767c","67386841-db78-407a-9fdf-021a8b9d0146","65548214-e7d5-40c6-b682-eee9627cc068"})
- .bearPointShopId("3867ad2c-76f6-406c-8d5d-6d7db08283c9");
+ .applicableShopIds(new String[]{"934101ef-f45f-46eb-bc86-237f69834e1d","c8d81b2b-2b3e-4aa8-85df-7a8496e4f216","1bf162a8-3b4d-4a4d-965e-0d9b6e88985d","485cd389-64e8-446d-8bdb-74fa254954b2"})
+ .bearPointShopId("a0be5a8b-84e9-437b-9b2c-1eafc5c6bedf");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -57,16 +57,16 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"6d43b906-651e-4405-9adc-14ffb85786f5","7d7056af-db6f-4a4f-8510-ae6eead2b2a6","53e9445f-c6c0-4429-bf4b-32f250e98961","5559e2ce-139e-465d-aa05-463fff20333a","09cfde92-8621-432d-b02a-d011f0283e5e"})
- .description("sN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2Ek")
- .bearPointShopId("a0a75deb-72dd-465e-8cd0-05325678ba0d");
+ .applicableShopIds(new String[]{"8c200e2a-86c2-40ef-8755-55b1bcd650cf","f4657b8d-1103-44f8-9f81-4a55e26667c0","332a8b21-9ea7-447d-ad0b-aa1d5e2889fe","610fe149-376c-463a-8681-28b7766a6a09","4660d76a-d53d-4502-ac9c-b9d7e8f16e78","7359ddc0-bd99-49f2-a603-f7947e636a10","c8674f45-d74b-484d-9fd1-498205606738","bf14bec6-74a7-499e-8373-47b0b7c6cba8","71f0518f-f736-47b2-904c-9b62cc000835"})
+ .description("yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23M")
+ .bearPointShopId("a4e76683-6980-4edd-ab3f-2b38ff753a16");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -81,17 +81,17 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"69379425-1008-431d-8916-efd02b10f1f9","e5afaa02-c73e-4b37-bb48-aa3e4c403e89","e8e8a085-2557-46b7-a4c5-9e5e3b7a5ae5","6f9d91a7-dd5c-4cb7-a8a9-70fe5c9856f3","d8dfba6b-43c2-48b9-badd-8e207b381308","95937bbc-621f-4d12-8229-9642fe742928","8c2074b1-389e-4d18-9983-fd4e371fac2f"})
+ .applicableShopIds(new String[]{"439836ed-1236-4ac3-acee-009d9d5fee28","a881c030-b96e-4b8a-a593-b4785ee30578","88b15035-4c8d-4ac3-85f7-dc35bb3de47e","95bba404-1c12-49b8-b33c-80cae6f8f332","84d572d7-385f-4c45-8269-026999279bdc"})
.status("disabled")
- .description("E0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ff")
- .bearPointShopId("4a270b59-c3c1-4b65-9fab-04807155db36");
+ .description("FuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3ma")
+ .bearPointShopId("51a0d8e7-7852-4a5a-8058-5b424489d476");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -106,18 +106,18 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"bdd50904-966b-4dbb-b02e-d71a93ad6dd8","c180197c-193e-40e9-87c3-dc54710cab69","b7d97953-8a42-4c55-8965-0635d7705f2d","05d9b269-b4db-4a71-8906-a49a2389514d","53f24d4f-4f63-45ea-b9f1-0c05c3192ac2","6d51375f-a63b-4d4b-ac53-a446a89b11c7"})
- .pointExpiresAt("2022-03-04T07:27:56.000000Z")
+ .applicableShopIds(new String[]{"16bb15d9-5e80-4c51-8e89-1b312b4c09b1"})
+ .pointExpiresAt("2021-03-04T09:04:37.000000Z")
.status("enabled")
- .description("LuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsK")
- .bearPointShopId("d12b845a-9510-43d7-af55-afabd0e15793");
+ .description("iTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Km")
+ .bearPointShopId("52ff85fa-a9f8-4e16-b2e3-ea533703e2f6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -132,19 +132,19 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"5129d44f-0152-4a3a-8cb9-abffe94f0714","70b32f38-20a3-46ad-919f-1e3efd957d44","26219476-e939-405b-940e-5dd7316295b3","ed4fd8df-5c04-462f-b4ef-92979752f56e","ecab59f2-f216-4bf5-b5c4-883d7c71ac01","59bd5f2e-aef8-4e78-9b52-b7a78d10f78d"})
- .pointExpiresInDays(7576)
- .pointExpiresAt("2023-08-05T02:11:40.000000Z")
+ .applicableShopIds(new String[]{"90b4fc12-fe73-45e7-a670-c332e2ada6b8","45fd7692-004e-4150-bbd7-c7719eb34def","f073f936-0b58-433a-b1ec-fb974b022302","3d73b071-7e23-42f2-89d2-0cb9c46d45ec"})
+ .pointExpiresInDays(665)
+ .pointExpiresAt("2025-12-28T03:45:52.000000Z")
.status("disabled")
- .description("kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30")
- .bearPointShopId("3ca2b36f-445f-4388-9206-17a809bf05f3");
+ .description("4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3Q")
+ .bearPointShopId("0ccbf3df-e253-4a22-a548-82a26c6e5eac");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -159,20 +159,20 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"43680453-40cc-4a23-915f-0c6020782fe9","55769d26-45a8-4b34-8a46-9816f75d8514","962bb4c1-15d7-49de-aa76-2b9aad9963a3","74ffebce-382f-4f22-bf46-a56ce38ec102","33663cfd-21cd-4184-a947-c668bd55871b","9cc23acf-4c00-4637-8d6a-7f0aab4ad005","2e630fef-5e0d-489f-ae84-54a91762a046","d48528e9-d448-4b4c-a2f4-a44e19e6620d"})
+ .applicableShopIds(new String[]{"9753b43e-e901-485e-bd0b-90e02931f0fa","ef7a2d4b-ce61-4b9c-acb8-5455a314714a","b4fcb32b-4337-4400-ad5f-a8f67f91eaea","46ea9b89-4554-4fc6-bb55-5130f45f1077"})
.setExclusive(false)
- .pointExpiresInDays(5594)
- .pointExpiresAt("2024-01-26T14:59:07.000000Z")
+ .pointExpiresInDays(4861)
+ .pointExpiresAt("2024-07-19T21:09:25.000000Z")
.status("disabled")
- .description("7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9k")
- .bearPointShopId("0b3c2c76-0f49-417e-ba20-32e3dc79c4b3");
+ .description("89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6c")
+ .bearPointShopId("59670168-7627-4fba-bba2-adc4702a0317");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -187,21 +187,21 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"3233323b-118a-4ee7-9182-3088ea5e9515","7fcce72f-d066-4fd6-8363-2977f15ef4cb","98b99fc5-9715-453f-8f41-a26cfc981986","f6e8ee4d-a3d5-4e15-ac95-039478d88e5c","f1304959-93e2-416c-a37b-9ec1082471ee","8d94a54f-cf18-42ca-955d-e7ff46aaff20"})
+ .applicableShopIds(new String[]{"a5e268b2-6120-48d0-a31a-b1ea319b5a0d","3513c814-580c-4bdc-a49e-760186c413b2","34b7ce63-38ff-4bf4-91f6-9aed84d7835a","ba2d3afa-b688-422f-bd16-a87b0d326c75","247c5717-250d-4f47-b533-dd2d7b8555f1","25e5dedd-915a-43d7-9400-71d9a37ab37f","fdb0ea02-c67a-4302-90a0-7047721dbb21"})
.subject("all")
- .setExclusive(true)
- .pointExpiresInDays(164)
- .pointExpiresAt("2021-01-10T21:46:04.000000Z")
- .status("disabled")
- .description("YgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu")
- .bearPointShopId("7220fe40-9fb2-4469-a880-b8ef757ac34d");
+ .setExclusive(false)
+ .pointExpiresInDays(6945)
+ .pointExpiresAt("2021-09-03T11:08:05.000000Z")
+ .status("enabled")
+ .description("uuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4P")
+ .bearPointShopId("c064f2cb-38db-45c9-9997-f1d251891cc1");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -225,33 +225,23 @@ void test8() throws ConnectionError, ProcessingError {
items2.addProperty("point_amount_unit", "percent");
items2.addProperty("subject_more_than_or_equal", 1000);
items2.addProperty("subject_less_than", 5000);
- JsonObject items3 = new JsonObject();
- items3.addProperty("point_amount", 5);
- items3.addProperty("point_amount_unit", "percent");
- items3.addProperty("subject_more_than_or_equal", 1000);
- items3.addProperty("subject_less_than", 5000);
- JsonObject items4 = new JsonObject();
- items4.addProperty("point_amount", 5);
- items4.addProperty("point_amount_unit", "percent");
- items4.addProperty("subject_more_than_or_equal", 1000);
- items4.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"658543a0-00f8-4428-84aa-155b0c94df73","cb1affe6-0055-47b3-9b80-3bd439bf55aa","efffde14-f5c3-488c-b1c1-25fc069e8f38","d0f43b66-a3d6-45b5-9c03-bfeef84419eb","b6b03683-907a-48f9-a107-5b4d85a6316f","b9a5f81c-8c36-412c-9048-23ce9bccc0ff","0f588a8b-1046-49ea-8e31-7cb64209664d","1e5171f4-e131-4a4e-9707-b9ceb4debd2e","287a9988-84de-45fc-a4fb-de86366f3ad4","165af330-8692-4f97-8c5b-070965140396"})
- .amountBasedPointRules(new Object[]{items,items2,items3,items4})
+ .applicableShopIds(new String[]{"ffa8685d-d955-4943-b5dc-f9936d30e5d1","4cb2b17b-6b79-45e3-9767-c91862c78646"})
+ .amountBasedPointRules(new Object[]{items,items2})
.subject("money")
- .setExclusive(false)
- .pointExpiresInDays(8993)
- .pointExpiresAt("2022-11-29T18:34:52.000000Z")
+ .setExclusive(true)
+ .pointExpiresInDays(6175)
+ .pointExpiresAt("2025-12-09T00:19:59.000000Z")
.status("disabled")
- .description("iaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrE")
- .bearPointShopId("4e803ceb-cbd5-4ef2-8b5d-74d55fa15309");
+ .description("dRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0")
+ .bearPointShopId("48149296-cbaa-4098-9ef6-07df2d017067");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -298,43 +288,26 @@ void test9() throws ConnectionError, ProcessingError {
JsonObject items6 = new JsonObject();
items6.addProperty("point_amount", 5);
items6.addProperty("point_amount_unit", "percent");
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
- JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
- JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("subject_more_than_or_equal", 1000);
- items8.addProperty("subject_less_than", 5000);
- JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
+ items6.addProperty("subject_more_than_or_equal", 1000);
+ items6.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"61c54144-fcac-47d9-a461-ced5c04d01ff","e4eda0cd-4140-4dd3-b48a-3517c56906fb"})
- .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7})
- .amountBasedPointRules(new Object[]{items8,items9})
- .subject("all")
- .setExclusive(false)
- .pointExpiresInDays(2564)
- .pointExpiresAt("2022-03-27T05:22:02.000000Z")
+ .applicableShopIds(new String[]{"f159bd88-e4be-403d-bcc7-8423d3477318","e6391604-c9a6-4d6e-b21d-30803c770913"})
+ .productBasedPointRules(new Object[]{items,items2,items3,items4,items5})
+ .amountBasedPointRules(new Object[]{items6})
+ .subject("money")
+ .setExclusive(true)
+ .pointExpiresInDays(2273)
+ .pointExpiresAt("2022-10-27T01:02:37.000000Z")
.status("enabled")
- .description("9RliuqOBINm")
- .bearPointShopId("1508f3b4-0651-4022-b737-9d5b2511702f");
+ .description("wF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h")
+ .bearPointShopId("d46cb0fb-c48e-4db8-a567-bb8e10a8bc46");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -367,8 +340,11 @@ void test10() throws ConnectionError, ProcessingError {
items6.addProperty("product_code", "4912345678904");
items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
+ items7.addProperty("point_amount", 5);
+ items7.addProperty("point_amount_unit", "percent");
items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("is_multiply_by_count", true);
+ items7.addProperty("required_count", 2);
JsonObject items8 = new JsonObject();
items8.addProperty("point_amount", 5);
items8.addProperty("point_amount_unit", "percent");
@@ -390,27 +366,88 @@ void test10() throws ConnectionError, ProcessingError {
JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
+ JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
+ JsonObject items13 = new JsonObject();
+ items13.addProperty("point_amount", 5);
+ items13.addProperty("point_amount_unit", "percent");
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"167e148a-f60d-4028-b971-afe9e382d27b","ac0c702a-f3fa-4bab-8656-cfd1e7757485","c6ef7a6f-5b16-4007-a53e-d10e90a9d33a"})
- .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7})
- .productBasedPointRules(new Object[]{items8,items9,items10})
- .amountBasedPointRules(new Object[]{items11})
- .subject("money")
- .setExclusive(true)
- .pointExpiresInDays(8894)
- .pointExpiresAt("2023-08-22T21:01:30.000000Z")
+ .applicableShopIds(new String[]{"21b19c55-9890-4bc3-8eb7-1614cae1d03a","8fdf1bd1-1abc-4a05-8ab0-d640046a0651","a72b5a9f-722a-47fc-bc07-0e07fe0b49a1","3bd93917-045c-4c81-976c-44017a891881","851a6e71-b589-4f3f-b7f4-2f3f7b0deec4","12939acc-fc38-4838-a1cc-f5664cbf723f","8e46e8ab-a7db-4267-ab29-604369d0fd14","bb3a542e-68a6-42e4-b3ac-d702f1adbbed","1d7bc9f3-b165-428c-8c51-f3fde2b76d28","22493342-292c-4124-9849-e1019fe97a1e"})
+ .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6})
+ .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14,items15,items16})
+ .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22})
+ .subject("all")
+ .setExclusive(false)
+ .pointExpiresInDays(5873)
+ .pointExpiresAt("2020-03-14T18:33:54.000000Z")
.status("disabled")
- .description("QJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs")
- .bearPointShopId("c8946e96-32b3-417b-a8ea-37212adf9a9d");
+ .description("TvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7H")
+ .bearPointShopId("9d1e2475-b436-46d7-8b09-2da18d95eab5");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -440,17 +477,29 @@ void test11() throws ConnectionError, ProcessingError {
items5.addProperty("product_code", "4912345678904");
items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
+ items6.addProperty("point_amount", 5);
+ items6.addProperty("point_amount_unit", "percent");
items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("is_multiply_by_count", true);
+ items6.addProperty("required_count", 2);
JsonObject items7 = new JsonObject();
+ items7.addProperty("point_amount", 5);
+ items7.addProperty("point_amount_unit", "percent");
items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("is_multiply_by_count", true);
+ items7.addProperty("required_count", 2);
JsonObject items8 = new JsonObject();
+ items8.addProperty("point_amount", 5);
+ items8.addProperty("point_amount_unit", "percent");
items8.addProperty("product_code", "4912345678904");
- items8.addProperty("classification_code", "c123");
+ items8.addProperty("is_multiply_by_count", true);
+ items8.addProperty("required_count", 2);
JsonObject items9 = new JsonObject();
+ items9.addProperty("point_amount", 5);
+ items9.addProperty("point_amount_unit", "percent");
items9.addProperty("product_code", "4912345678904");
- items9.addProperty("classification_code", "c123");
+ items9.addProperty("is_multiply_by_count", true);
+ items9.addProperty("required_count", 2);
JsonObject items10 = new JsonObject();
items10.addProperty("point_amount", 5);
items10.addProperty("point_amount_unit", "percent");
@@ -466,13 +515,15 @@ void test11() throws ConnectionError, ProcessingError {
JsonObject items12 = new JsonObject();
items12.addProperty("point_amount", 5);
items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
JsonObject items14 = new JsonObject();
items14.addProperty("point_amount", 5);
items14.addProperty("point_amount_unit", "percent");
@@ -483,26 +534,51 @@ void test11() throws ConnectionError, ProcessingError {
items15.addProperty("point_amount_unit", "percent");
items15.addProperty("subject_more_than_or_equal", 1000);
items15.addProperty("subject_less_than", 5000);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"df4b4a1f-db22-4544-84b1-bb8c58080a56","4d0d7ea5-4f59-44fb-bd6e-a43a248cbbd4","8b92295d-8868-43c5-a08a-8a9dcf0d68d1","af0a78fe-43cf-4acc-b46c-e70a73af16eb","11dc2fde-2f3a-49dd-92d0-84c9e4243741"})
- .applicableDaysOfWeek(new Integer[]{5,1,6})
- .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
- .productBasedPointRules(new Object[]{items10,items11})
- .amountBasedPointRules(new Object[]{items12,items13,items14,items15})
- .subject("all")
- .setExclusive(true)
- .pointExpiresInDays(4036)
- .pointExpiresAt("2023-12-04T19:40:33.000000Z")
- .status("enabled")
- .description("LwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj")
- .bearPointShopId("21eae237-9903-486a-a8ca-6faf6cd35db1");
+ .applicableShopIds(new String[]{"5c8bba82-95a2-4ebc-a21f-7b8847ee0337","47504985-546e-4cdd-a270-91fba70de912","ce37af85-9e5b-4c67-b563-bbaf785aa2e8","1a6e43b6-528c-4af3-a4b2-734ab87b9c36"})
+ .applicableDaysOfWeek(new Integer[]{0,1,0,1,0,0,4,6})
+ .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5})
+ .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13})
+ .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20})
+ .subject("money")
+ .setExclusive(false)
+ .pointExpiresInDays(4582)
+ .pointExpiresAt("2023-07-30T00:03:25.000000Z")
+ .status("disabled")
+ .description("n521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iw")
+ .bearPointShopId("8329b84e-f7ec-4589-9d39-dc980e0c9b43");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -520,104 +596,121 @@ void test12() throws ConnectionError, ProcessingError {
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("point_amount", 5);
- items3.addProperty("point_amount_unit", "percent");
items3.addProperty("product_code", "4912345678904");
- items3.addProperty("is_multiply_by_count", true);
- items3.addProperty("required_count", 2);
+ items3.addProperty("classification_code", "c123");
JsonObject items4 = new JsonObject();
- items4.addProperty("point_amount", 5);
- items4.addProperty("point_amount_unit", "percent");
items4.addProperty("product_code", "4912345678904");
- items4.addProperty("is_multiply_by_count", true);
- items4.addProperty("required_count", 2);
+ items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
- items5.addProperty("point_amount", 5);
- items5.addProperty("point_amount_unit", "percent");
items5.addProperty("product_code", "4912345678904");
- items5.addProperty("is_multiply_by_count", true);
- items5.addProperty("required_count", 2);
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("point_amount", 5);
- items6.addProperty("point_amount_unit", "percent");
items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("subject_more_than_or_equal", 1000);
- items8.addProperty("subject_less_than", 5000);
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
items10.addProperty("point_amount", 5);
items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("subject_more_than_or_equal", 1000);
- items10.addProperty("subject_less_than", 5000);
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("is_multiply_by_count", true);
+ items10.addProperty("required_count", 2);
JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
JsonObject items12 = new JsonObject();
items12.addProperty("point_amount", 5);
items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
JsonObject items14 = new JsonObject();
items14.addProperty("point_amount", 5);
items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
JsonObject items15 = new JsonObject();
items15.addProperty("point_amount", 5);
items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
- Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
- )
- .applicableShopIds(new String[]{"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","feec9c1f-6ca4-4949-88fd-b62dbf3cfcf3","d732deb3-9c00-4773-8673-f93d7a4b66f3","163a513a-d3b0-43e2-935a-f5b14948a6fc","5cb12b63-c3a0-47d2-8735-ba7295336d04"})
- .applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{1,5,6,0,5})
- .blacklistedProductRules(new Object[]{items2})
- .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7})
- .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15})
- .subject("money")
- .setExclusive(false)
- .pointExpiresInDays(9667)
- .pointExpiresAt("2023-04-07T15:17:38.000000Z")
- .status("enabled")
- .description("t6R89vRehYIZbMh6MfShA8D4E")
- .bearPointShopId("e65a7cf6-32b7-400f-9a21-37cf67d8d1dc");
- try {
- PartnerAPITest.getClient().send(request);
- } catch (PartnerRequestError e) {
- if (e.getType().equals("invalid_parameters")) {
- System.out.println(e.getType());
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
+ Request request = new CreateCampaign(
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
+ )
+ .applicableShopIds(new String[]{"d909de4e-0980-4a35-bf00-fcafb9fc69f9","9b392018-fa40-48a0-a89f-7ec3cb7e04a0","f0cdaa73-2302-4014-84cd-c1bec2415f18","70941075-8e94-4f1c-9e75-1393b90c1e61","75147ad7-0e67-4e82-9eb6-19f60ce6afea","170812a9-446f-48da-86ca-c05522a21735"})
+ .applicableTimeRanges(new Object[]{items,items2})
+ .applicableDaysOfWeek(new Integer[]{0,6,2,0,6,6})
+ .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9})
+ .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15})
+ .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21})
+ .subject("all")
+ .setExclusive(true)
+ .pointExpiresInDays(931)
+ .pointExpiresAt("2026-05-25T18:01:21.000000Z")
+ .status("disabled")
+ .description("GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7")
+ .bearPointShopId("2d6e7596-051e-4148-8fcd-b9f327209d37");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
System.out.println(e.getMessage());
System.out.println(e.getRawJson());
}
@@ -639,14 +732,14 @@ void test13() throws ConnectionError, ProcessingError {
items4.addProperty("from", "12:00");
items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("from", "12:00");
- items7.addProperty("to", "23:59");
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
@@ -660,11 +753,8 @@ void test13() throws ConnectionError, ProcessingError {
items11.addProperty("product_code", "4912345678904");
items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("is_multiply_by_count", true);
- items12.addProperty("required_count", 2);
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
@@ -710,46 +800,30 @@ void test13() throws ConnectionError, ProcessingError {
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("product_code", "4912345678904");
- items20.addProperty("is_multiply_by_count", true);
- items20.addProperty("required_count", 2);
- JsonObject items21 = new JsonObject();
- items21.addProperty("point_amount", 5);
- items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
- JsonObject items22 = new JsonObject();
- items22.addProperty("point_amount", 5);
- items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("subject_more_than_or_equal", 1000);
- items22.addProperty("subject_less_than", 5000);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"a4dae680-9ebe-44d4-9447-0754dca30b37","bdbcb730-824c-432f-a1c0-ee90f544750a","b81e6151-0e5d-42b2-9465-4af064ebe511","a2a60878-7968-448e-93d8-cb94cc8faf76","bd351dae-bd08-4d13-a64a-51f24aa1cbdf","02be5ffe-2394-4b71-bf01-93186575231f","157f190c-f3a7-4ff7-bcc3-65aa5b0da585","4df2778b-cdf7-432b-badd-ef767f6b4f1f"})
- .minimumNumberOfProducts(8904)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
- .applicableDaysOfWeek(new Integer[]{5,4,1,4})
- .blacklistedProductRules(new Object[]{items8,items9,items10,items11})
- .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19,items20})
- .amountBasedPointRules(new Object[]{items21,items22,items23})
+ .applicableShopIds(new String[]{"1f2412ae-c938-4798-8da6-363c05d7c8f7","6b1a8c22-8370-4ddd-8e1e-3bbf93ee4e9b","24d524a7-e4db-4e8a-be0d-638159d477e6"})
+ .minimumNumberOfProducts(480)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4})
+ .applicableDaysOfWeek(new Integer[]{2,4,6})
+ .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12})
+ .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19})
+ .amountBasedPointRules(new Object[]{items20})
.subject("all")
- .setExclusive(false)
- .pointExpiresInDays(2046)
- .pointExpiresAt("2022-03-14T05:45:03.000000Z")
+ .setExclusive(true)
+ .pointExpiresInDays(5824)
+ .pointExpiresAt("2025-02-19T04:04:13.000000Z")
.status("enabled")
- .description("AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14xB891rPV7FcdDeB61vcOZ1uNBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOt")
- .bearPointShopId("5d0cd008-0741-4bef-bf29-048dce507f58");
+ .description("ZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hx")
+ .bearPointShopId("ed69e695-42a6-4096-a3b4-f29102ffe477");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -770,143 +844,118 @@ void test14() throws ConnectionError, ProcessingError {
items2.addProperty("from", "12:00");
items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("from", "12:00");
- items3.addProperty("to", "23:59");
+ items3.addProperty("product_code", "4912345678904");
+ items3.addProperty("classification_code", "c123");
JsonObject items4 = new JsonObject();
- items4.addProperty("from", "12:00");
- items4.addProperty("to", "23:59");
+ items4.addProperty("product_code", "4912345678904");
+ items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("from", "12:00");
- items7.addProperty("to", "23:59");
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
+ items8.addProperty("point_amount", 5);
+ items8.addProperty("point_amount_unit", "percent");
items8.addProperty("product_code", "4912345678904");
- items8.addProperty("classification_code", "c123");
+ items8.addProperty("is_multiply_by_count", true);
+ items8.addProperty("required_count", 2);
JsonObject items9 = new JsonObject();
+ items9.addProperty("point_amount", 5);
+ items9.addProperty("point_amount_unit", "percent");
items9.addProperty("product_code", "4912345678904");
- items9.addProperty("classification_code", "c123");
+ items9.addProperty("is_multiply_by_count", true);
+ items9.addProperty("required_count", 2);
JsonObject items10 = new JsonObject();
+ items10.addProperty("point_amount", 5);
+ items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("classification_code", "c123");
+ items10.addProperty("is_multiply_by_count", true);
+ items10.addProperty("required_count", 2);
JsonObject items11 = new JsonObject();
+ items11.addProperty("point_amount", 5);
+ items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("classification_code", "c123");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("classification_code", "c123");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
JsonObject items13 = new JsonObject();
+ items13.addProperty("point_amount", 5);
+ items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
- items13.addProperty("classification_code", "c123");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("classification_code", "c123");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("classification_code", "c123");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
items16.addProperty("product_code", "4912345678904");
- items16.addProperty("classification_code", "c123");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
items17.addProperty("product_code", "4912345678904");
- items17.addProperty("classification_code", "c123");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("product_code", "4912345678904");
- items18.addProperty("is_multiply_by_count", true);
- items18.addProperty("required_count", 2);
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("product_code", "4912345678904");
- items19.addProperty("is_multiply_by_count", true);
- items19.addProperty("required_count", 2);
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("product_code", "4912345678904");
- items20.addProperty("is_multiply_by_count", true);
- items20.addProperty("required_count", 2);
- JsonObject items21 = new JsonObject();
- items21.addProperty("point_amount", 5);
- items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("product_code", "4912345678904");
- items21.addProperty("is_multiply_by_count", true);
- items21.addProperty("required_count", 2);
- JsonObject items22 = new JsonObject();
- items22.addProperty("point_amount", 5);
- items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("product_code", "4912345678904");
- items22.addProperty("is_multiply_by_count", true);
- items22.addProperty("required_count", 2);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("product_code", "4912345678904");
- items23.addProperty("is_multiply_by_count", true);
- items23.addProperty("required_count", 2);
- JsonObject items24 = new JsonObject();
- items24.addProperty("point_amount", 5);
- items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("product_code", "4912345678904");
- items24.addProperty("is_multiply_by_count", true);
- items24.addProperty("required_count", 2);
- JsonObject items25 = new JsonObject();
- items25.addProperty("point_amount", 5);
- items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("product_code", "4912345678904");
- items25.addProperty("is_multiply_by_count", true);
- items25.addProperty("required_count", 2);
- JsonObject items26 = new JsonObject();
- items26.addProperty("point_amount", 5);
- items26.addProperty("point_amount_unit", "percent");
- items26.addProperty("product_code", "4912345678904");
- items26.addProperty("is_multiply_by_count", true);
- items26.addProperty("required_count", 2);
- JsonObject items27 = new JsonObject();
- items27.addProperty("point_amount", 5);
- items27.addProperty("point_amount_unit", "percent");
- items27.addProperty("product_code", "4912345678904");
- items27.addProperty("is_multiply_by_count", true);
- items27.addProperty("required_count", 2);
- JsonObject items28 = new JsonObject();
- items28.addProperty("point_amount", 5);
- items28.addProperty("point_amount_unit", "percent");
- items28.addProperty("subject_more_than_or_equal", 1000);
- items28.addProperty("subject_less_than", 5000);
- JsonObject items29 = new JsonObject();
- items29.addProperty("point_amount", 5);
- items29.addProperty("point_amount_unit", "percent");
- items29.addProperty("subject_more_than_or_equal", 1000);
- items29.addProperty("subject_less_than", 5000);
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"a86289a7-3137-4d27-af70-362c4cda0814","3b373df5-b261-44e5-a337-a86cedcfe79a","6ecb2710-75cf-4a2e-b5ad-8e38607f33c1","066efe3d-0222-4a7c-a5b6-e2a879e26a3b","4c284a68-0554-4fee-a17d-55f28066d029","382227c6-6bd3-436a-a2c2-d7fda50a91ba","e229141c-028e-4f97-b12d-ca0ef81f99e8","d8d0cd69-2b52-44ea-9318-7754299d9597","019950ce-7cd3-4da7-9595-5f28dceb1155"})
- .minimumNumberOfAmount(1205)
- .minimumNumberOfProducts(1449)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
- .applicableDaysOfWeek(new Integer[]{3,0,2,6,5})
- .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17})
- .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25,items26,items27})
- .amountBasedPointRules(new Object[]{items28,items29})
- .subject("money")
+ .applicableShopIds(new String[]{"6034222d-5866-4b30-9699-9ef36078ae63"})
+ .minimumNumberOfAmount(8240)
+ .minimumNumberOfProducts(987)
+ .applicableTimeRanges(new Object[]{items,items2})
+ .applicableDaysOfWeek(new Integer[]{6,2,1,3,3,1,3,2,5})
+ .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7})
+ .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17})
+ .amountBasedPointRules(new Object[]{items18,items19,items20})
+ .subject("all")
.setExclusive(false)
- .pointExpiresInDays(5580)
- .pointExpiresAt("2024-08-01T12:57:01.000000Z")
+ .pointExpiresInDays(5565)
+ .pointExpiresAt("2020-06-23T08:56:53.000000Z")
.status("disabled")
- .description("cWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjP")
- .bearPointShopId("c5f62e06-7f17-4426-92ac-f1a83e64c546");
+ .description("m9")
+ .bearPointShopId("b69c392a-45dc-43d1-ba1c-6fd90fa0b25d");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -933,14 +982,14 @@ void test15() throws ConnectionError, ProcessingError {
items4.addProperty("from", "12:00");
items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("from", "12:00");
- items7.addProperty("to", "23:59");
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
@@ -960,14 +1009,23 @@ void test15() throws ConnectionError, ProcessingError {
items13.addProperty("product_code", "4912345678904");
items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("classification_code", "c123");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("classification_code", "c123");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
items16.addProperty("product_code", "4912345678904");
- items16.addProperty("classification_code", "c123");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
@@ -977,125 +1035,82 @@ void test15() throws ConnectionError, ProcessingError {
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
- Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
- )
- .applicableShopIds(new String[]{"5d9c5908-df18-45cd-ab1e-e2b0d517d25c","c722168f-8abe-40c4-8c7c-8a88b433f764","fc7207f7-82c0-4f15-96d8-f12409d015a2","41c62b31-25aa-4624-9f3f-4de018cd3bee","9be2e2bf-a866-4a50-9a1e-fef424139a88","bf6620fa-9747-47f5-aed6-308876f6d9ca","78481ea8-2ce2-477c-b4c3-c41fd13cc483","b2f9a8ee-d773-429a-afe0-d7ff75bc6ffc"})
- .minimumNumberForCombinationPurchase(8486)
- .minimumNumberOfAmount(4679)
- .minimumNumberOfProducts(8725)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
- .applicableDaysOfWeek(new Integer[]{3,4,2,6})
- .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16})
- .productBasedPointRules(new Object[]{items17})
- .amountBasedPointRules(new Object[]{items18})
- .subject("money")
- .setExclusive(false)
- .pointExpiresInDays(1676)
- .pointExpiresAt("2024-03-24T10:38:38.000000Z")
- .status("disabled")
- .description("r7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6Mis")
- .bearPointShopId("9f337750-19a8-4dd4-81d8-003bd1fc6d76");
- try {
- PartnerAPITest.getClient().send(request);
- } catch (PartnerRequestError e) {
- if (e.getType().equals("invalid_parameters")) {
- System.out.println(e.getType());
- System.out.println(e.getMessage());
- System.out.println(e.getRawJson());
- }
- assertNotEquals("invalid_parameters", e.getType());
- }
- }
- @Test
- void test16() throws ConnectionError, ProcessingError {
- JsonObject items = new JsonObject();
- items.addProperty("from", "12:00");
- items.addProperty("to", "23:59");
- JsonObject items2 = new JsonObject();
- items2.addProperty("from", "12:00");
- items2.addProperty("to", "23:59");
- JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
- JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
- JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
- JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
- JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
- JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
- JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
- JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
- JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
- JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
- JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("product_code", "4912345678904");
+ items22.addProperty("is_multiply_by_count", true);
+ items22.addProperty("required_count", 2);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("subject_more_than_or_equal", 1000);
+ items23.addProperty("subject_less_than", 5000);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
+ JsonObject items26 = new JsonObject();
+ items26.addProperty("point_amount", 5);
+ items26.addProperty("point_amount_unit", "percent");
+ items26.addProperty("subject_more_than_or_equal", 1000);
+ items26.addProperty("subject_less_than", 5000);
+ JsonObject items27 = new JsonObject();
+ items27.addProperty("point_amount", 5);
+ items27.addProperty("point_amount_unit", "percent");
+ items27.addProperty("subject_more_than_or_equal", 1000);
+ items27.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"013b0a99-f0c1-4450-bebc-59276a539257","fb6937d6-44fd-4d2c-a6b0-16a592992ac0","5991d5a1-f95c-4c8d-aeeb-5f4963c3c6b2","eaf58ae3-5c70-45db-a9da-d2726b4fe55f","f466ca77-d82f-4ce8-b4e0-198210a8cb90","da9952fd-9930-439d-8ea3-5f1ad49d075e","92bf133b-25fe-419a-b2e4-3a683b2a51d4","f42f6a9c-3382-4873-8990-bf189801a753","4286dffb-a63a-410c-b88f-69185e691ece","69340d9f-d0ba-4dbd-bea2-27d828808784"})
- .existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(8003)
- .minimumNumberOfAmount(7361)
- .minimumNumberOfProducts(77)
- .applicableTimeRanges(new Object[]{items,items2})
- .applicableDaysOfWeek(new Integer[]{3,0,3,0,2,4,6,0,2})
- .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7})
- .productBasedPointRules(new Object[]{items8,items9,items10,items11})
- .amountBasedPointRules(new Object[]{items12,items13})
+ .applicableShopIds(new String[]{"3cc05416-2fa9-4391-9f1c-df396940ade5","fe27234f-fcba-4c22-92a1-ef26ab219330","b48923d2-d850-451f-9c58-49beeee17f90","b78d3ab1-979b-4fd2-85c7-65c4bb402bcc","c65d460a-bb87-4c98-9322-8d5d8b7e3cea","31bce0e5-f6af-412b-90f8-2f992c299428","cfae1289-e7e5-4cb4-9590-14dc943c6e17","be1e9407-1c8a-4832-8e17-b80428be8e36","c8a06c68-1932-41ca-98d0-93db27d1ca8c"})
+ .minimumNumberForCombinationPurchase(7828)
+ .minimumNumberOfAmount(6337)
+ .minimumNumberOfProducts(9181)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4})
+ .applicableDaysOfWeek(new Integer[]{3,3,0,1,5,6,1,2})
+ .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13})
+ .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20,items21,items22})
+ .amountBasedPointRules(new Object[]{items23,items24,items25,items26,items27})
.subject("all")
.setExclusive(true)
- .pointExpiresInDays(2597)
- .pointExpiresAt("2020-03-27T07:03:19.000000Z")
- .status("disabled")
- .description("9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO")
- .bearPointShopId("64659729-edbc-420a-b542-9b973fb793a2");
+ .pointExpiresInDays(9464)
+ .pointExpiresAt("2024-08-09T16:14:39.000000Z")
+ .status("enabled")
+ .description("WD3OcRqlTHYwOestfQF")
+ .bearPointShopId("50bf5615-4f0a-4f75-a660-236d349829c7");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1108,7 +1123,7 @@ void test16() throws ConnectionError, ProcessingError {
}
}
@Test
- void test17() throws ConnectionError, ProcessingError {
+ void test16() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
@@ -1155,11 +1170,8 @@ void test17() throws ConnectionError, ProcessingError {
items15.addProperty("product_code", "4912345678904");
items15.addProperty("classification_code", "c123");
JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
items16.addProperty("product_code", "4912345678904");
- items16.addProperty("is_multiply_by_count", true);
- items16.addProperty("required_count", 2);
+ items16.addProperty("classification_code", "c123");
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
@@ -1193,27 +1205,23 @@ void test17() throws ConnectionError, ProcessingError {
JsonObject items22 = new JsonObject();
items22.addProperty("point_amount", 5);
items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("product_code", "4912345678904");
- items22.addProperty("is_multiply_by_count", true);
- items22.addProperty("required_count", 2);
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
JsonObject items23 = new JsonObject();
items23.addProperty("point_amount", 5);
items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("product_code", "4912345678904");
- items23.addProperty("is_multiply_by_count", true);
- items23.addProperty("required_count", 2);
+ items23.addProperty("subject_more_than_or_equal", 1000);
+ items23.addProperty("subject_less_than", 5000);
JsonObject items24 = new JsonObject();
items24.addProperty("point_amount", 5);
items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("product_code", "4912345678904");
- items24.addProperty("is_multiply_by_count", true);
- items24.addProperty("required_count", 2);
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
JsonObject items25 = new JsonObject();
items25.addProperty("point_amount", 5);
items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("product_code", "4912345678904");
- items25.addProperty("is_multiply_by_count", true);
- items25.addProperty("required_count", 2);
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
JsonObject items26 = new JsonObject();
items26.addProperty("point_amount", 5);
items26.addProperty("point_amount_unit", "percent");
@@ -1229,104 +1237,41 @@ void test17() throws ConnectionError, ProcessingError {
items28.addProperty("point_amount_unit", "percent");
items28.addProperty("subject_more_than_or_equal", 1000);
items28.addProperty("subject_less_than", 5000);
+ JsonObject items29 = new JsonObject();
+ items29.addProperty("point_amount", 5);
+ items29.addProperty("point_amount_unit", "percent");
+ items29.addProperty("subject_more_than_or_equal", 1000);
+ items29.addProperty("subject_less_than", 5000);
+ JsonObject items30 = new JsonObject();
+ items30.addProperty("point_amount", 5);
+ items30.addProperty("point_amount_unit", "percent");
+ items30.addProperty("subject_more_than_or_equal", 1000);
+ items30.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"93257eac-0ab0-4154-8961-2d3dc674afa1"})
- .maxPointAmount(2958)
+ .applicableShopIds(new String[]{"f289ed56-81af-48e6-ada5-1b1753a96c08","99567d97-a455-4df3-b723-ec3426481e90"})
.existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(645)
- .minimumNumberOfAmount(1165)
- .minimumNumberOfProducts(8850)
+ .minimumNumberForCombinationPurchase(4878)
+ .minimumNumberOfAmount(8582)
+ .minimumNumberOfProducts(487)
.applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10})
- .applicableDaysOfWeek(new Integer[]{2,3,5})
- .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15})
- .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24,items25})
- .amountBasedPointRules(new Object[]{items26,items27,items28})
- .subject("all")
- .setExclusive(false)
- .pointExpiresInDays(5055)
- .pointExpiresAt("2023-03-03T21:23:26.000000Z")
- .status("disabled")
- .description("XXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WI")
- .bearPointShopId("c977b7f4-0ac3-4dab-a539-5f828e954ed6");
- try {
- PartnerAPITest.getClient().send(request);
- } catch (PartnerRequestError e) {
- if (e.getType().equals("invalid_parameters")) {
- System.out.println(e.getType());
- System.out.println(e.getMessage());
- System.out.println(e.getRawJson());
- }
- assertNotEquals("invalid_parameters", e.getType());
- }
- }
- @Test
- void test18() throws ConnectionError, ProcessingError {
- JsonObject items = new JsonObject();
- items.addProperty("from", "12:00");
- items.addProperty("to", "23:59");
- JsonObject items2 = new JsonObject();
- items2.addProperty("from", "12:00");
- items2.addProperty("to", "23:59");
- JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
- JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
- JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
- JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
- JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
- JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
- JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
- Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
- )
- .applicableShopIds(new String[]{"51abeb94-00a2-4580-9060-efffddc839ff","05207684-2f8e-4267-894d-f85fd2d14713","ad351f28-6079-42e4-85e1-256c69d8c247","cb91613b-da37-48a9-b602-aa71a94545bc","2d4d922e-f794-4845-8fb4-85014d0b48d4","347c6031-7ff6-414f-b20c-b482317519cb","0253d98d-cf41-4a1e-b449-e277a7b67aa5","242f0104-27e7-4619-93b5-10c14521aa01","21b20767-a121-4069-898b-3d5b6172b4a7","25c78b2a-b46a-45d7-88d2-7179d5182ca9"})
- .maxTotalPointAmount(2297)
- .maxPointAmount(3609)
- .existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(7151)
- .minimumNumberOfAmount(2668)
- .minimumNumberOfProducts(5412)
- .applicableTimeRanges(new Object[]{items,items2})
- .applicableDaysOfWeek(new Integer[]{6,6,0,3,1,5,4})
- .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7})
- .productBasedPointRules(new Object[]{items8})
- .amountBasedPointRules(new Object[]{items9})
+ .applicableDaysOfWeek(new Integer[]{2,0,1,4,5,3,3,0,0})
+ .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16})
+ .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21})
+ .amountBasedPointRules(new Object[]{items22,items23,items24,items25,items26,items27,items28,items29,items30})
.subject("money")
.setExclusive(true)
- .pointExpiresInDays(906)
- .pointExpiresAt("2021-04-08T00:19:48.000000Z")
- .status("enabled")
- .description("evW68NKpdkq0PMSo6iR11TAHpgNTXOx")
- .bearPointShopId("87223ac6-6082-4aa1-bd26-17778d231371");
+ .pointExpiresInDays(8584)
+ .pointExpiresAt("2020-05-05T04:56:31.000000Z")
+ .status("disabled")
+ .description("La44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LT")
+ .bearPointShopId("272282dc-83cb-4251-8ff8-ab8f1b57e5c4");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1339,7 +1284,7 @@ void test18() throws ConnectionError, ProcessingError {
}
}
@Test
- void test19() throws ConnectionError, ProcessingError {
+ void test17() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
@@ -1365,35 +1310,20 @@ void test19() throws ConnectionError, ProcessingError {
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("is_multiply_by_count", true);
- items12.addProperty("required_count", 2);
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
+ items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
items14.addProperty("point_amount", 5);
items14.addProperty("point_amount_unit", "percent");
@@ -1435,33 +1365,31 @@ void test19() throws ConnectionError, ProcessingError {
items20.addProperty("subject_more_than_or_equal", 1000);
items20.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"b232d627-16e8-456b-8c93-628b4306078a","03643582-0b85-4f70-bd5a-acbe8f5418d6","194600a2-bb96-4c61-8468-100a21e1c3f0","a6a61e46-8c1c-4d13-bb02-e01bc25ee3d0"})
- .destPrivateMoneyId("46ab49fc-5d7f-4698-bc0c-101cd3803495")
- .maxTotalPointAmount(8305)
- .maxPointAmount(4500)
- .existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(1072)
- .minimumNumberOfAmount(6237)
- .minimumNumberOfProducts(8931)
+ .applicableShopIds(new String[]{"7e691bd4-b07a-437d-8d1c-e56e8ca67c4d"})
+ .maxPointAmount(3512)
+ .existInEachProductGroups(true)
+ .minimumNumberForCombinationPurchase(6474)
+ .minimumNumberOfAmount(1684)
+ .minimumNumberOfProducts(1292)
.applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
- .applicableDaysOfWeek(new Integer[]{3,6,6,4,1,5,2,4})
- .blacklistedProductRules(new Object[]{items8})
- .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17,items18})
+ .applicableDaysOfWeek(new Integer[]{6})
+ .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13})
+ .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18})
.amountBasedPointRules(new Object[]{items19,items20})
- .subject("all")
- .setExclusive(false)
- .pointExpiresInDays(2086)
- .pointExpiresAt("2020-04-13T12:51:34.000000Z")
- .status("enabled")
- .description("vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsP")
- .bearPointShopId("3cf579ef-5eb2-42f6-abbf-6ce36c4fbcda");
+ .subject("money")
+ .setExclusive(true)
+ .pointExpiresInDays(6353)
+ .pointExpiresAt("2022-07-23T10:13:58.000000Z")
+ .status("disabled")
+ .description("jSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo")
+ .bearPointShopId("b101efb2-2867-4e07-8ec4-bb000eebd8dd");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1474,31 +1402,145 @@ void test19() throws ConnectionError, ProcessingError {
}
}
@Test
- void test20() throws ConnectionError, ProcessingError {
- JsonObject applicable_account_metadata = new JsonObject();
- applicable_account_metadata.addProperty("key", "sex");
- applicable_account_metadata.addProperty("value", "male");
+ void test18() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("from", "12:00");
- items2.addProperty("to", "23:59");
+ items2.addProperty("product_code", "4912345678904");
+ items2.addProperty("classification_code", "c123");
JsonObject items3 = new JsonObject();
- items3.addProperty("from", "12:00");
- items3.addProperty("to", "23:59");
+ items3.addProperty("product_code", "4912345678904");
+ items3.addProperty("classification_code", "c123");
JsonObject items4 = new JsonObject();
- items4.addProperty("from", "12:00");
- items4.addProperty("to", "23:59");
+ items4.addProperty("product_code", "4912345678904");
+ items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("from", "12:00");
- items7.addProperty("to", "23:59");
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
+ JsonObject items8 = new JsonObject();
+ items8.addProperty("point_amount", 5);
+ items8.addProperty("point_amount_unit", "percent");
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("is_multiply_by_count", true);
+ items8.addProperty("required_count", 2);
+ JsonObject items9 = new JsonObject();
+ items9.addProperty("point_amount", 5);
+ items9.addProperty("point_amount_unit", "percent");
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("is_multiply_by_count", true);
+ items9.addProperty("required_count", 2);
+ JsonObject items10 = new JsonObject();
+ items10.addProperty("point_amount", 5);
+ items10.addProperty("point_amount_unit", "percent");
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("is_multiply_by_count", true);
+ items10.addProperty("required_count", 2);
+ JsonObject items11 = new JsonObject();
+ items11.addProperty("point_amount", 5);
+ items11.addProperty("point_amount_unit", "percent");
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
+ JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
+ JsonObject items13 = new JsonObject();
+ items13.addProperty("point_amount", 5);
+ items13.addProperty("point_amount_unit", "percent");
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("subject_more_than_or_equal", 1000);
+ items14.addProperty("subject_less_than", 5000);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("subject_more_than_or_equal", 1000);
+ items15.addProperty("subject_less_than", 5000);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
+ Request request = new CreateCampaign(
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
+ )
+ .applicableShopIds(new String[]{"921e7e43-df72-4315-9686-49af8a0b34b3","a405f53e-8150-4878-926f-272b20c44bfa","0b6f2e60-4a76-4aec-9d9c-6bf02dbdb904","924ad2ee-8d67-4683-9770-ddc17c4817b6","dc513694-9421-47f8-a25a-8ccd6655641d"})
+ .maxTotalPointAmount(615)
+ .maxPointAmount(5348)
+ .existInEachProductGroups(true)
+ .minimumNumberForCombinationPurchase(6774)
+ .minimumNumberOfAmount(4574)
+ .minimumNumberOfProducts(888)
+ .applicableTimeRanges(new Object[]{items})
+ .applicableDaysOfWeek(new Integer[]{1})
+ .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7})
+ .productBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13})
+ .amountBasedPointRules(new Object[]{items14,items15,items16,items17})
+ .subject("all")
+ .setExclusive(false)
+ .pointExpiresInDays(4454)
+ .pointExpiresAt("2020-10-21T14:23:33.000000Z")
+ .status("disabled")
+ .description("MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd2")
+ .bearPointShopId("440b6638-d8d9-4c99-ac04-ba71d3205ead");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test19() throws ConnectionError, ProcessingError {
+ JsonObject items = new JsonObject();
+ items.addProperty("from", "12:00");
+ items.addProperty("to", "23:59");
+ JsonObject items2 = new JsonObject();
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
+ JsonObject items3 = new JsonObject();
+ items3.addProperty("product_code", "4912345678904");
+ items3.addProperty("classification_code", "c123");
+ JsonObject items4 = new JsonObject();
+ items4.addProperty("product_code", "4912345678904");
+ items4.addProperty("classification_code", "c123");
+ JsonObject items5 = new JsonObject();
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
+ JsonObject items6 = new JsonObject();
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
+ JsonObject items7 = new JsonObject();
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
@@ -1515,14 +1557,23 @@ void test20() throws ConnectionError, ProcessingError {
items12.addProperty("product_code", "4912345678904");
items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
+ items13.addProperty("point_amount", 5);
+ items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
- items13.addProperty("classification_code", "c123");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("classification_code", "c123");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("classification_code", "c123");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
@@ -1550,118 +1601,66 @@ void test20() throws ConnectionError, ProcessingError {
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("product_code", "4912345678904");
- items20.addProperty("is_multiply_by_count", true);
- items20.addProperty("required_count", 2);
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
JsonObject items21 = new JsonObject();
items21.addProperty("point_amount", 5);
items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("product_code", "4912345678904");
- items21.addProperty("is_multiply_by_count", true);
- items21.addProperty("required_count", 2);
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
JsonObject items22 = new JsonObject();
items22.addProperty("point_amount", 5);
items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("product_code", "4912345678904");
- items22.addProperty("is_multiply_by_count", true);
- items22.addProperty("required_count", 2);
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
JsonObject items23 = new JsonObject();
items23.addProperty("point_amount", 5);
items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("product_code", "4912345678904");
- items23.addProperty("is_multiply_by_count", true);
- items23.addProperty("required_count", 2);
+ items23.addProperty("subject_more_than_or_equal", 1000);
+ items23.addProperty("subject_less_than", 5000);
JsonObject items24 = new JsonObject();
items24.addProperty("point_amount", 5);
items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("product_code", "4912345678904");
- items24.addProperty("is_multiply_by_count", true);
- items24.addProperty("required_count", 2);
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
JsonObject items25 = new JsonObject();
items25.addProperty("point_amount", 5);
items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("product_code", "4912345678904");
- items25.addProperty("is_multiply_by_count", true);
- items25.addProperty("required_count", 2);
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
JsonObject items26 = new JsonObject();
items26.addProperty("point_amount", 5);
items26.addProperty("point_amount_unit", "percent");
items26.addProperty("subject_more_than_or_equal", 1000);
items26.addProperty("subject_less_than", 5000);
- JsonObject items27 = new JsonObject();
- items27.addProperty("point_amount", 5);
- items27.addProperty("point_amount_unit", "percent");
- items27.addProperty("subject_more_than_or_equal", 1000);
- items27.addProperty("subject_less_than", 5000);
- JsonObject items28 = new JsonObject();
- items28.addProperty("point_amount", 5);
- items28.addProperty("point_amount_unit", "percent");
- items28.addProperty("subject_more_than_or_equal", 1000);
- items28.addProperty("subject_less_than", 5000);
- JsonObject items29 = new JsonObject();
- items29.addProperty("point_amount", 5);
- items29.addProperty("point_amount_unit", "percent");
- items29.addProperty("subject_more_than_or_equal", 1000);
- items29.addProperty("subject_less_than", 5000);
- JsonObject items30 = new JsonObject();
- items30.addProperty("point_amount", 5);
- items30.addProperty("point_amount_unit", "percent");
- items30.addProperty("subject_more_than_or_equal", 1000);
- items30.addProperty("subject_less_than", 5000);
- JsonObject items31 = new JsonObject();
- items31.addProperty("point_amount", 5);
- items31.addProperty("point_amount_unit", "percent");
- items31.addProperty("subject_more_than_or_equal", 1000);
- items31.addProperty("subject_less_than", 5000);
- JsonObject items32 = new JsonObject();
- items32.addProperty("point_amount", 5);
- items32.addProperty("point_amount_unit", "percent");
- items32.addProperty("subject_more_than_or_equal", 1000);
- items32.addProperty("subject_less_than", 5000);
- JsonObject items33 = new JsonObject();
- items33.addProperty("point_amount", 5);
- items33.addProperty("point_amount_unit", "percent");
- items33.addProperty("subject_more_than_or_equal", 1000);
- items33.addProperty("subject_less_than", 5000);
- JsonObject items34 = new JsonObject();
- items34.addProperty("point_amount", 5);
- items34.addProperty("point_amount_unit", "percent");
- items34.addProperty("subject_more_than_or_equal", 1000);
- items34.addProperty("subject_less_than", 5000);
- JsonObject items35 = new JsonObject();
- items35.addProperty("point_amount", 5);
- items35.addProperty("point_amount_unit", "percent");
- items35.addProperty("subject_more_than_or_equal", 1000);
- items35.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"a08b534b-8484-46a8-a1bb-6f9c4bfe0466","983dbe34-9037-4930-8d44-0c77ec02ff91","95bfea86-93b5-4959-9f9e-edacaeca4091","6b4dd3c9-f1b6-4dd3-a585-ec15dd16ed41","e5232fa6-bda2-4dad-a6a4-b027501160cf","56530d05-43c2-4294-842b-03c2ef74dce7","adf90152-c595-4b96-bc14-c19147994541"})
- .applicableAccountMetadata(applicable_account_metadata)
- .destPrivateMoneyId("bd69dc67-93ed-4eea-85de-e7f86a483e90")
- .maxTotalPointAmount(5697)
- .maxPointAmount(5312)
- .existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(328)
- .minimumNumberOfAmount(7935)
- .minimumNumberOfProducts(8451)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
- .applicableDaysOfWeek(new Integer[]{3,1,3,3,6,1,1,2})
- .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15})
- .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24,items25})
- .amountBasedPointRules(new Object[]{items26,items27,items28,items29,items30,items31,items32,items33,items34,items35})
- .subject("money")
+ .applicableShopIds(new String[]{"ff508534-0224-48d0-9452-a25b1870206c","7411d4ec-ae78-46b6-aab0-091a7b070497","69b2f2ac-3d33-49e2-84d5-2282be87b9b9","66b22a8f-5675-4a85-9e9d-24a1c181937f","87879ff4-5df8-4bde-ace7-4c1ef6e29320","8549951e-a50a-4245-bab1-6909b8ef7540"})
+ .destPrivateMoneyId("03accb3d-7e2a-4a4c-9d5e-a6923269ff8d")
+ .maxTotalPointAmount(4508)
+ .maxPointAmount(6732)
+ .existInEachProductGroups(false)
+ .minimumNumberForCombinationPurchase(402)
+ .minimumNumberOfAmount(799)
+ .minimumNumberOfProducts(7876)
+ .applicableTimeRanges(new Object[]{items,items2})
+ .applicableDaysOfWeek(new Integer[]{2,6,1,1,4,2,4,1})
+ .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10,items11,items12})
+ .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19})
+ .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25,items26})
+ .subject("all")
.setExclusive(true)
- .pointExpiresInDays(9158)
- .pointExpiresAt("2021-06-30T00:37:58.000000Z")
- .status("enabled")
- .description("dsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQi")
- .bearPointShopId("6a264609-5e2b-4175-967f-0ffab378b03a");
+ .pointExpiresInDays(657)
+ .pointExpiresAt("2020-06-03T00:38:14.000000Z")
+ .status("disabled")
+ .description("TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnx")
+ .bearPointShopId("08bb7fad-d18a-4a1c-aebc-157371db6584");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1674,10 +1673,7 @@ void test20() throws ConnectionError, ProcessingError {
}
}
@Test
- void test21() throws ConnectionError, ProcessingError {
- JsonObject applicable_transaction_metadata = new JsonObject();
- applicable_transaction_metadata.addProperty("key", "rank");
- applicable_transaction_metadata.addProperty("value", "bronze");
+ void test20() throws ConnectionError, ProcessingError {
JsonObject applicable_account_metadata = new JsonObject();
applicable_account_metadata.addProperty("key", "sex");
applicable_account_metadata.addProperty("value", "male");
@@ -1694,17 +1690,17 @@ void test21() throws ConnectionError, ProcessingError {
items4.addProperty("from", "12:00");
items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("from", "12:00");
- items7.addProperty("to", "23:59");
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("from", "12:00");
- items8.addProperty("to", "23:59");
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
items9.addProperty("product_code", "4912345678904");
items9.addProperty("classification_code", "c123");
@@ -1715,8 +1711,11 @@ void test21() throws ConnectionError, ProcessingError {
items11.addProperty("product_code", "4912345678904");
items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("classification_code", "c123");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
@@ -1756,92 +1755,208 @@ void test21() throws ConnectionError, ProcessingError {
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("product_code", "4912345678904");
- items19.addProperty("is_multiply_by_count", true);
- items19.addProperty("required_count", 2);
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("product_code", "4912345678904");
- items20.addProperty("is_multiply_by_count", true);
- items20.addProperty("required_count", 2);
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
JsonObject items21 = new JsonObject();
items21.addProperty("point_amount", 5);
items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("product_code", "4912345678904");
- items21.addProperty("is_multiply_by_count", true);
- items21.addProperty("required_count", 2);
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
JsonObject items22 = new JsonObject();
items22.addProperty("point_amount", 5);
items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("product_code", "4912345678904");
- items22.addProperty("is_multiply_by_count", true);
- items22.addProperty("required_count", 2);
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
JsonObject items23 = new JsonObject();
items23.addProperty("point_amount", 5);
items23.addProperty("point_amount_unit", "percent");
items23.addProperty("subject_more_than_or_equal", 1000);
items23.addProperty("subject_less_than", 5000);
- JsonObject items24 = new JsonObject();
- items24.addProperty("point_amount", 5);
- items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("subject_more_than_or_equal", 1000);
- items24.addProperty("subject_less_than", 5000);
- JsonObject items25 = new JsonObject();
- items25.addProperty("point_amount", 5);
- items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("subject_more_than_or_equal", 1000);
- items25.addProperty("subject_less_than", 5000);
- JsonObject items26 = new JsonObject();
- items26.addProperty("point_amount", 5);
- items26.addProperty("point_amount_unit", "percent");
- items26.addProperty("subject_more_than_or_equal", 1000);
- items26.addProperty("subject_less_than", 5000);
- JsonObject items27 = new JsonObject();
- items27.addProperty("point_amount", 5);
- items27.addProperty("point_amount_unit", "percent");
- items27.addProperty("subject_more_than_or_equal", 1000);
- items27.addProperty("subject_less_than", 5000);
- JsonObject items28 = new JsonObject();
- items28.addProperty("point_amount", 5);
- items28.addProperty("point_amount_unit", "percent");
- items28.addProperty("subject_more_than_or_equal", 1000);
- items28.addProperty("subject_less_than", 5000);
- JsonObject items29 = new JsonObject();
- items29.addProperty("point_amount", 5);
- items29.addProperty("point_amount_unit", "percent");
- items29.addProperty("subject_more_than_or_equal", 1000);
- items29.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
+ )
+ .applicableShopIds(new String[]{"89f5a3d5-94cc-4537-9fd2-cef20bd60cf8","2acd9ff1-0ae2-46c2-817f-b1228402cd9a"})
+ .applicableAccountMetadata(applicable_account_metadata)
+ .destPrivateMoneyId("02680d01-d016-4378-8559-dcb544b93517")
+ .maxTotalPointAmount(8507)
+ .maxPointAmount(5316)
+ .existInEachProductGroups(false)
+ .minimumNumberForCombinationPurchase(9571)
+ .minimumNumberOfAmount(3193)
+ .minimumNumberOfProducts(9699)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4})
+ .applicableDaysOfWeek(new Integer[]{6,2,5,4,1,6})
+ .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11})
+ .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18})
+ .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23})
+ .subject("all")
+ .setExclusive(true)
+ .pointExpiresInDays(6173)
+ .pointExpiresAt("2021-09-26T21:28:04.000000Z")
+ .status("enabled")
+ .description("wUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6o")
+ .bearPointShopId("0653e022-a97e-4b1a-8ff0-4e552948b319");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test21() throws ConnectionError, ProcessingError {
+ JsonObject applicable_transaction_metadata = new JsonObject();
+ applicable_transaction_metadata.addProperty("key", "rank");
+ applicable_transaction_metadata.addProperty("value", "bronze");
+ JsonObject applicable_account_metadata = new JsonObject();
+ applicable_account_metadata.addProperty("key", "sex");
+ applicable_account_metadata.addProperty("value", "male");
+ JsonObject items = new JsonObject();
+ items.addProperty("from", "12:00");
+ items.addProperty("to", "23:59");
+ JsonObject items2 = new JsonObject();
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
+ JsonObject items3 = new JsonObject();
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
+ JsonObject items4 = new JsonObject();
+ items4.addProperty("from", "12:00");
+ items4.addProperty("to", "23:59");
+ JsonObject items5 = new JsonObject();
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
+ JsonObject items6 = new JsonObject();
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
+ JsonObject items7 = new JsonObject();
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
+ JsonObject items8 = new JsonObject();
+ items8.addProperty("from", "12:00");
+ items8.addProperty("to", "23:59");
+ JsonObject items9 = new JsonObject();
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
+ JsonObject items10 = new JsonObject();
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("classification_code", "c123");
+ JsonObject items11 = new JsonObject();
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("classification_code", "c123");
+ JsonObject items12 = new JsonObject();
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("classification_code", "c123");
+ JsonObject items13 = new JsonObject();
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("classification_code", "c123");
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("subject_more_than_or_equal", 1000);
+ items23.addProperty("subject_less_than", 5000);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
+ Request request = new CreateCampaign(
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"844a8264-bd0d-4254-8026-68169967945b","cb04ac60-18a1-45b2-8690-31be9e408a59","1efed1d6-2656-4c3b-8ea1-d667e1c0920b"})
+ .applicableShopIds(new String[]{"b79f5e0c-8c6e-4d83-92d8-65b5d7624170","06bdac61-4165-4586-a626-3b7062f0a4f2","7311a218-4257-4574-9053-1cc7dc7fb4da","d934d772-f2cc-4a39-bb3f-27fdaaa9d2d5","5f4abd24-e372-446d-8114-face24d66925","555cca3a-c512-4202-9593-760c0e11d198","9e3a20b3-33f6-4046-a75a-1eaa6ad77c9e","1d8c0311-8736-4f18-8388-e9398c43f776","a0b38e77-03d8-4ea5-9200-13c9a811e605"})
.applicableTransactionMetadata(applicable_transaction_metadata)
.applicableAccountMetadata(applicable_account_metadata)
- .destPrivateMoneyId("ffce731d-2d5d-496b-a8c7-5c5b04dde23e")
- .maxTotalPointAmount(6026)
- .maxPointAmount(4578)
+ .destPrivateMoneyId("e8ad3462-cb5f-46ca-ac60-37b7b0378779")
+ .maxTotalPointAmount(9645)
+ .maxPointAmount(1169)
.existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(2379)
- .minimumNumberOfAmount(9491)
- .minimumNumberOfProducts(8536)
+ .minimumNumberForCombinationPurchase(7676)
+ .minimumNumberOfAmount(8960)
+ .minimumNumberOfProducts(307)
.applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
- .applicableDaysOfWeek(new Integer[]{0,6,2})
- .blacklistedProductRules(new Object[]{items9,items10,items11,items12})
- .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21,items22})
- .amountBasedPointRules(new Object[]{items23,items24,items25,items26,items27,items28,items29})
+ .applicableDaysOfWeek(new Integer[]{3,6,0,1,2,4})
+ .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13})
+ .productBasedPointRules(new Object[]{items14,items15,items16})
+ .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25})
.subject("money")
- .setExclusive(true)
- .pointExpiresInDays(5123)
- .pointExpiresAt("2021-05-25T21:20:11.000000Z")
- .status("disabled")
- .description("L1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iB")
- .bearPointShopId("c444f0ef-22c7-4555-b1cf-7b8d299f1103");
+ .setExclusive(false)
+ .pointExpiresInDays(4060)
+ .pointExpiresAt("2024-08-25T16:06:07.000000Z")
+ .status("enabled")
+ .description("63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0")
+ .bearPointShopId("ff40b6e4-c8ff-49c5-a8cf-c79204df1027");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1868,8 +1983,11 @@ void test22() throws ConnectionError, ProcessingError {
items2.addProperty("product_code", "4912345678904");
items2.addProperty("classification_code", "c123");
JsonObject items3 = new JsonObject();
+ items3.addProperty("point_amount", 5);
+ items3.addProperty("point_amount_unit", "percent");
items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("is_multiply_by_count", true);
+ items3.addProperty("required_count", 2);
JsonObject items4 = new JsonObject();
items4.addProperty("point_amount", 5);
items4.addProperty("point_amount_unit", "percent");
@@ -1885,21 +2003,18 @@ void test22() throws ConnectionError, ProcessingError {
JsonObject items6 = new JsonObject();
items6.addProperty("point_amount", 5);
items6.addProperty("point_amount_unit", "percent");
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
+ items6.addProperty("subject_more_than_or_equal", 1000);
+ items6.addProperty("subject_less_than", 5000);
JsonObject items7 = new JsonObject();
items7.addProperty("point_amount", 5);
items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("subject_more_than_or_equal", 1000);
+ items7.addProperty("subject_less_than", 5000);
JsonObject items8 = new JsonObject();
items8.addProperty("point_amount", 5);
items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
+ items8.addProperty("subject_more_than_or_equal", 1000);
+ items8.addProperty("subject_less_than", 5000);
JsonObject items9 = new JsonObject();
items9.addProperty("point_amount", 5);
items9.addProperty("point_amount_unit", "percent");
@@ -1915,37 +2030,52 @@ void test22() throws ConnectionError, ProcessingError {
items11.addProperty("point_amount_unit", "percent");
items11.addProperty("subject_more_than_or_equal", 1000);
items11.addProperty("subject_less_than", 5000);
+ JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
+ items12.addProperty("subject_more_than_or_equal", 1000);
+ items12.addProperty("subject_less_than", 5000);
+ JsonObject items13 = new JsonObject();
+ items13.addProperty("point_amount", 5);
+ items13.addProperty("point_amount_unit", "percent");
+ items13.addProperty("subject_more_than_or_equal", 1000);
+ items13.addProperty("subject_less_than", 5000);
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("subject_more_than_or_equal", 1000);
+ items14.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .applicableShopIds(new String[]{"4f0246df-5981-4a55-8021-9ea7c2f0947d","b7608b6d-dc0b-4a1d-be49-376c277e163a","93096406-0a81-48b7-896a-d53d55d41502","b9fb856c-949c-49d7-b8c0-bd99496fd9f2","f2ce2c66-a203-4794-9045-d74b3efcd84d","c7e7875f-e5d1-4982-b8c6-74a79edfd99e","94f85643-a573-47b0-a88f-f736768c87b2","dee49b50-fd4c-4b62-b539-f9794e81ad2d","cb1ab366-3ffa-406e-a9f7-6e1a36eda71a"})
- .budgetCapsAmount(1117682233)
+ .applicableShopIds(new String[]{"5ecdcd80-da1c-4abb-89bc-4e25539e4b17","1c349b22-1ff1-4d4f-a3c6-be879f38494c","80845371-9c6e-4e0c-b2a0-205a8905f6de","0baf9c17-7f75-484c-afeb-f29741ca25de","310197b5-3fc7-4ca6-a846-69328965d846"})
+ .budgetCapsAmount(58159111)
.applicableTransactionMetadata(applicable_transaction_metadata)
.applicableAccountMetadata(applicable_account_metadata)
- .destPrivateMoneyId("e10a412e-5c5a-4b60-aeaa-c8b7ec6a4c54")
- .maxTotalPointAmount(688)
- .maxPointAmount(491)
- .existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(6104)
- .minimumNumberOfAmount(6401)
- .minimumNumberOfProducts(4191)
+ .destPrivateMoneyId("283254d5-96f5-4c79-bb44-a8d6d3b33d07")
+ .maxTotalPointAmount(5436)
+ .maxPointAmount(8339)
+ .existInEachProductGroups(false)
+ .minimumNumberForCombinationPurchase(7643)
+ .minimumNumberOfAmount(4442)
+ .minimumNumberOfProducts(6502)
.applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{2,0})
- .blacklistedProductRules(new Object[]{items2,items3})
- .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8})
- .amountBasedPointRules(new Object[]{items9,items10,items11})
- .subject("money")
- .setExclusive(true)
- .pointExpiresInDays(3171)
- .pointExpiresAt("2020-09-03T19:49:23.000000Z")
+ .applicableDaysOfWeek(new Integer[]{3})
+ .blacklistedProductRules(new Object[]{items2})
+ .productBasedPointRules(new Object[]{items3,items4,items5})
+ .amountBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14})
+ .subject("all")
+ .setExclusive(false)
+ .pointExpiresInDays(6020)
+ .pointExpiresAt("2022-06-22T08:49:37.000000Z")
.status("enabled")
- .description("AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw")
- .bearPointShopId("fb7cdc35-e47e-4404-92b8-763347af603c");
+ .description("DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS7")
+ .bearPointShopId("f326f101-4a5f-480e-94fe-50a26de542b0");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1960,14 +2090,14 @@ void test22() throws ConnectionError, ProcessingError {
@Test
void test23() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"84d572d7-385f-4c45-8269-026999279bdc","1f34dacf-d196-4ac6-bb10-39f552b52577","774f7d6e-0e80-413f-871b-c9ad0aa54f65"});
+ .blacklistedShopIds(new String[]{"bacc3b26-2723-4e4a-8f55-091d3a28e0fe"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1982,15 +2112,15 @@ void test23() throws ConnectionError, ProcessingError {
@Test
void test24() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"2ffa9795-4e88-49d4-af15-8fe662ab2757","e33ad3c8-bbb1-4216-b0f1-27716deb26ec","05dfcc03-205e-41c9-a860-72bda745bb1d","4eb5cc68-de08-4a5d-8f46-8900eff9f69d","37ff34cb-2beb-4892-8fee-b650bcf44e9b","b8360552-3a17-4365-b367-1d88d07e82ff","267ce1b3-5c4f-41f1-9920-0fcdc42a667c","1a622886-367f-4a44-b640-d0d9986c95a7","f8385137-f91c-402f-8266-ff1d4e75b52a"})
- .bearPointShopId("7a002bff-5110-4189-acba-506f86423770");
+ .blacklistedShopIds(new String[]{"00d93b47-b8dc-4a5d-9ec3-b4e7eb58da4c","7c0cd411-917b-4f9d-9b1e-cd2ee5e88518","feb4bdf9-23e3-47b3-8821-eed8398450ad","3641f999-74e3-4fa1-a546-1099f6448fcf","cec70759-d7ad-4770-81c1-f6ace1236987","ce4d3648-4281-45a9-990d-a6d9bc0a72cb"})
+ .bearPointShopId("e3979439-ef7a-4886-b73b-8685926840b3");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2005,16 +2135,16 @@ void test24() throws ConnectionError, ProcessingError {
@Test
void test25() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"9bd596dc-834c-4730-839f-beb6bbe9ed84"})
- .description("OQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0Pi")
- .bearPointShopId("71a17849-07a4-432f-9ede-3a0f1b86900c");
+ .blacklistedShopIds(new String[]{"b85b3ef8-1944-4b50-bc0a-66b27ebf9810","362ed495-5569-4606-a3f4-f6e99a7cc4a8","8d4c84f8-39d9-4c3a-93fe-e5d7b1421830","371db141-6593-4983-9b0f-fa6e28bdacaf","8647f1ec-5ffe-4f0e-a7ca-e7f94a911507","0527c15b-4fd1-4896-b4ef-ee0296be1e67"})
+ .description("jQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5")
+ .bearPointShopId("232f2690-3408-41f6-858f-6afde9d9b686");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2029,17 +2159,17 @@ void test25() throws ConnectionError, ProcessingError {
@Test
void test26() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"c3c5b45d-469e-449b-93b5-cb3fac6bf834","b954e7a1-5a97-41f1-b613-e1bcedf52e36","4da4dda9-5469-4c3f-940f-3e29f581cb05","38687c32-3b80-485c-ae5d-cf589c4b62d7","d24aedbf-a73f-42eb-bcf6-4ce6d9dd33a1","e7e42a16-aef5-4e80-b3a9-55219b4e4545","13564bb3-b906-4113-85ed-b88263854de1","51a0d8e7-7852-4a5a-8058-5b424489d476"})
- .status("enabled")
- .description("QN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZ")
- .bearPointShopId("a2a0fd3f-b088-4098-a639-962b3e8ea54b");
+ .blacklistedShopIds(new String[]{"0b3861df-d05c-4e3b-89c5-0a6f79186922","d987a0cd-1d06-4d6a-ba3f-696281225754","794fde34-4656-49d0-b85d-786c9246c5da","eff909c6-bcad-42b0-8168-d05b10f910fb"})
+ .status("disabled")
+ .description("puShoXCly79fXYfw5LEwfbe5dxC9nFb6")
+ .bearPointShopId("37dcb0a0-e685-4ac5-aed2-1d1528244db3");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2054,18 +2184,18 @@ void test26() throws ConnectionError, ProcessingError {
@Test
void test27() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"8e70ae16-6d32-47e3-93f6-196390b4fc12","cc99fe73-15e7-4066-b032-a6b845fd7692","be42004e-b150-45fb-9771-4deff073f936","62280b58-133a-4c71-ac97-23023d73b071","810b7e23-b2f2-4309-92b9-45ecd92aeae7","b4064298-c6f0-4a93-b4ed-337a0ccab7b4","a00569ee-2079-41d6-be2f-5fd3548ab6d5","8e74a286-9eac-4844-a4d3-998c1c7e9b05","c0dbc732-c4ab-4672-8750-15c9805d592a"})
- .pointExpiresAt("2023-12-05T23:19:49.000000Z")
+ .blacklistedShopIds(new String[]{"d49064a1-36d8-4b0e-8937-aa629f1332ba","af08a800-8c84-48a1-a124-b6807f914130","078251b9-532d-4130-97a7-5369a8e58ec2","a21959f4-c4d2-4b5f-bb2d-642a030a4668","7146c830-48bc-4226-a1dd-fd762f9d10d7","3ed2e5ef-f8ac-41ed-b703-dc2e766ad29b","77313669-f353-4d92-a58e-da5cc7ef6c7c","a33aeec6-ef9d-4fc9-81cf-14b49b7b13f5"})
+ .pointExpiresAt("2025-01-06T02:30:50.000000Z")
.status("enabled")
- .description("8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQ")
- .bearPointShopId("80a8fc80-fd55-4c93-b998-0fd7f9549461");
+ .description("tJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiu")
+ .bearPointShopId("5ab54485-3967-4e83-a717-c56c1b00f30b");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2080,19 +2210,19 @@ void test27() throws ConnectionError, ProcessingError {
@Test
void test28() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"28052ae7-8bc2-480b-a14c-27574a003619","ba1d9ecd-9290-4e98-aa57-59f09d0fabde","b8560974-6fea-47e7-bf66-cdb04bf643c6","73af1f69-a15a-41da-8344-6193e5170c60","1fa20991-44db-4d45-8aae-f3ba72b04596","73f83ac5-c04f-45b2-bcfb-7050cc7526da","0bdca3ad-03dc-40c1-a0b9-68e29a6de9e9"})
- .pointExpiresInDays(650)
- .pointExpiresAt("2022-02-17T13:36:31.000000Z")
+ .blacklistedShopIds(new String[]{"146e582b-cd22-4989-8a10-a54a5eddb942","18c0d2c7-4792-4aff-9d74-ad3000d90afc","ea863fe4-7a2c-4be3-90e2-5019597acb20","a2b7465c-c88f-46f4-9186-776318a70f0b","edf9e834-5289-4028-b553-84eb23110beb","4603c91b-adb2-4a82-8096-cdb6553184f5","36250a02-8cd3-46d2-bcf7-cd58c57cbb36","7a69f240-5fd2-405e-a678-94375119de66","e4ec4089-42cf-4dc5-af46-5e5396b01e9d"})
+ .pointExpiresInDays(8334)
+ .pointExpiresAt("2020-10-22T16:51:25.000000Z")
.status("disabled")
- .description("PG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG")
- .bearPointShopId("711f3035-2733-4d2d-b1dd-915a9e3153d7");
+ .description("iDYpTTgrywklVD4mELe2edQ")
+ .bearPointShopId("e5bd3da7-84e4-4b0a-9136-76a532f3793d");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2107,20 +2237,20 @@ void test28() throws ConnectionError, ProcessingError {
@Test
void test29() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"ef038d00-71d9-437f-827a-c302bda45210","dd995ea0-7047-4b21-93ef-9b20f3262115","686f5b98-f82a-4023-b540-3075b4b5f542","78575cdd-da58-43b6-a1cc-41fd700be2dc","465eedd5-4ad5-4b5f-8ca0-5cd5c354b3c2"})
- .setExclusive(false)
- .pointExpiresInDays(4603)
- .pointExpiresAt("2024-05-24T17:09:19.000000Z")
- .status("disabled")
- .description("18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZ")
- .bearPointShopId("37819da9-3c01-43aa-a863-cd5ac5da415f");
+ .blacklistedShopIds(new String[]{"69d7f977-e53c-4d5c-9775-bfb1f09c6b32","a5e0a18e-b555-4365-94be-d32dd0663437"})
+ .setExclusive(true)
+ .pointExpiresInDays(7687)
+ .pointExpiresAt("2026-01-23T07:40:37.000000Z")
+ .status("enabled")
+ .description("gJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt")
+ .bearPointShopId("b02afdb9-b5b3-40df-b400-6632f81322b6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2135,21 +2265,21 @@ void test29() throws ConnectionError, ProcessingError {
@Test
void test30() throws ConnectionError, ProcessingError {
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"a4d90487-3da1-4d38-8d92-3d0a15471975","a768db53-e814-456c-9652-b99181a68223","2c3854af-a2a2-423e-961c-23cbe7004b67","d1282607-0b43-4053-b049-4e0f16308aaa","f95b3ccc-7eb1-47bb-b359-a95993c79575","a2dc8b83-66c7-41ce-b1b7-8a72aa7dc4e6","3df21a54-4e39-4828-a284-3aee2f6e9e9b","e3587d4f-698c-4525-b4a9-fbfc20b7c87d","65221743-3fbb-4402-935d-20e97f703a18"})
- .subject("money")
- .setExclusive(true)
- .pointExpiresInDays(7926)
- .pointExpiresAt("2020-05-21T11:57:51.000000Z")
- .status("enabled")
- .description("7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbip")
- .bearPointShopId("1666ee43-0f86-4c8f-8898-be15675033bb");
+ .blacklistedShopIds(new String[]{"d46ed64c-3ae9-4851-91c1-a787c42816ac","032dc94d-dc42-4ed9-ad78-c6b0bf371a35","6d225d37-587c-4183-9a41-54eff38dcb3b","19f01f42-b7f7-4e2e-8ce5-54f2ecce16f9","49fa164e-dee5-441a-90fe-96635f308b75","167e0503-d482-42c9-9c68-949e895e8855","c48f94c2-e7d8-4d88-9251-839f0a222791","f1f0fb52-d9ab-465e-832f-7576768b45bf"})
+ .subject("all")
+ .setExclusive(false)
+ .pointExpiresInDays(1030)
+ .pointExpiresAt("2026-01-03T04:32:08.000000Z")
+ .status("disabled")
+ .description("mDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOY")
+ .bearPointShopId("9f03c58f-7afa-449a-b321-1ab74521243f");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2198,23 +2328,38 @@ void test31() throws ConnectionError, ProcessingError {
items7.addProperty("point_amount_unit", "percent");
items7.addProperty("subject_more_than_or_equal", 1000);
items7.addProperty("subject_less_than", 5000);
+ JsonObject items8 = new JsonObject();
+ items8.addProperty("point_amount", 5);
+ items8.addProperty("point_amount_unit", "percent");
+ items8.addProperty("subject_more_than_or_equal", 1000);
+ items8.addProperty("subject_less_than", 5000);
+ JsonObject items9 = new JsonObject();
+ items9.addProperty("point_amount", 5);
+ items9.addProperty("point_amount_unit", "percent");
+ items9.addProperty("subject_more_than_or_equal", 1000);
+ items9.addProperty("subject_less_than", 5000);
+ JsonObject items10 = new JsonObject();
+ items10.addProperty("point_amount", 5);
+ items10.addProperty("point_amount_unit", "percent");
+ items10.addProperty("subject_more_than_or_equal", 1000);
+ items10.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"0e947921-1506-4dac-9075-0d74cffe94ef","b4e1096b-3dd8-42d0-8871-c330032a8631","81c75320-9ab6-4663-858a-a1ef975565dd","857e9913-01f1-4527-a6bb-483e61ada4e9","36fa6fc1-8593-4280-a813-055ed3d4fd8b","8a0b69a9-1c29-47d5-9706-5b27f10f2ad8","413d6c78-9e91-40ff-a346-d59dc58fd3df","b8a9e22b-b9d2-427a-a40f-9b3c5ce58991","0141503f-c0ce-43b5-953d-d98d85dd6745"})
- .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7})
+ .blacklistedShopIds(new String[]{"8111b882-52bc-4f2f-859b-67e3cde2f450"})
+ .amountBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10})
.subject("money")
.setExclusive(true)
- .pointExpiresInDays(1136)
- .pointExpiresAt("2020-03-08T17:47:40.000000Z")
+ .pointExpiresInDays(6479)
+ .pointExpiresAt("2020-04-12T19:07:53.000000Z")
.status("enabled")
- .description("uqVIJLmWFeGJqYbyf9xqe")
- .bearPointShopId("52140f2a-5ad6-4eb9-8caa-aa9afb4f11e7");
+ .description("iKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa22")
+ .bearPointShopId("aa3bcd32-26db-4d6e-8842-d498802597ac");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2261,9 +2406,8 @@ void test32() throws ConnectionError, ProcessingError {
JsonObject items6 = new JsonObject();
items6.addProperty("point_amount", 5);
items6.addProperty("point_amount_unit", "percent");
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
+ items6.addProperty("subject_more_than_or_equal", 1000);
+ items6.addProperty("subject_less_than", 5000);
JsonObject items7 = new JsonObject();
items7.addProperty("point_amount", 5);
items7.addProperty("point_amount_unit", "percent");
@@ -2299,29 +2443,24 @@ void test32() throws ConnectionError, ProcessingError {
items13.addProperty("point_amount_unit", "percent");
items13.addProperty("subject_more_than_or_equal", 1000);
items13.addProperty("subject_less_than", 5000);
- JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"b2154984-e7b6-4ed4-b4ef-c512c9123897","7a13c3ef-f7d2-4cf8-9c4b-a42bafde2411","5f8ae4be-73b5-4acb-9c0c-17a68e56fdde","8a453185-a152-4d18-b2ad-a83307d7b329","c13f8516-0228-4d86-a8fb-c48e507dbdb8"})
- .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6})
- .amountBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14})
+ .blacklistedShopIds(new String[]{"7a92b34e-a0b6-4a7c-a9b5-10b157d3ebb0","cde65ee2-d806-4e8c-9fc1-785de527dcc8"})
+ .productBasedPointRules(new Object[]{items,items2,items3,items4,items5})
+ .amountBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13})
.subject("money")
- .setExclusive(true)
- .pointExpiresInDays(9934)
- .pointExpiresAt("2022-06-02T04:13:13.000000Z")
- .status("disabled")
- .description("CN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s")
- .bearPointShopId("fe8eee24-94b2-434a-b6b7-34b0dc7a8681");
+ .setExclusive(false)
+ .pointExpiresInDays(979)
+ .pointExpiresAt("2022-01-17T12:40:54.000000Z")
+ .status("enabled")
+ .description("qtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKR")
+ .bearPointShopId("5ca6c41f-54dd-4973-a92b-dcac54554bea");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2342,129 +2481,35 @@ void test33() throws ConnectionError, ProcessingError {
items2.addProperty("product_code", "4912345678904");
items2.addProperty("classification_code", "c123");
JsonObject items3 = new JsonObject();
+ items3.addProperty("point_amount", 5);
+ items3.addProperty("point_amount_unit", "percent");
items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("is_multiply_by_count", true);
+ items3.addProperty("required_count", 2);
JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
- JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
- JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
- JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
- JsonObject items8 = new JsonObject();
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("classification_code", "c123");
- JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
- JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
- JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
- JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("product_code", "4912345678904");
- items12.addProperty("is_multiply_by_count", true);
- items12.addProperty("required_count", 2);
- JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
- JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
- JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("product_code", "4912345678904");
- items15.addProperty("is_multiply_by_count", true);
- items15.addProperty("required_count", 2);
- JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
- JsonObject items17 = new JsonObject();
- items17.addProperty("point_amount", 5);
- items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
- JsonObject items18 = new JsonObject();
- items18.addProperty("point_amount", 5);
- items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
- JsonObject items19 = new JsonObject();
- items19.addProperty("point_amount", 5);
- items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
- JsonObject items20 = new JsonObject();
- items20.addProperty("point_amount", 5);
- items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("subject_more_than_or_equal", 1000);
- items20.addProperty("subject_less_than", 5000);
- JsonObject items21 = new JsonObject();
- items21.addProperty("point_amount", 5);
- items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
- JsonObject items22 = new JsonObject();
- items22.addProperty("point_amount", 5);
- items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("subject_more_than_or_equal", 1000);
- items22.addProperty("subject_less_than", 5000);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
- JsonObject items24 = new JsonObject();
- items24.addProperty("point_amount", 5);
- items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("subject_more_than_or_equal", 1000);
- items24.addProperty("subject_less_than", 5000);
+ items4.addProperty("point_amount", 5);
+ items4.addProperty("point_amount_unit", "percent");
+ items4.addProperty("subject_more_than_or_equal", 1000);
+ items4.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"bc86f729-dbb8-4be8-9c6e-1cbdadfb6f34"})
- .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
- .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15})
- .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24})
- .subject("all")
- .setExclusive(false)
- .pointExpiresInDays(1998)
- .pointExpiresAt("2024-04-05T06:31:47.000000Z")
- .status("enabled")
- .description("n521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwx")
- .bearPointShopId("99787046-2dc2-4758-a66e-fe26e557e7ba");
+ .blacklistedShopIds(new String[]{"c925a11f-9492-4ab9-ad5e-a541efc53e43","62a51ae2-667c-4b9b-8d28-de46267d91e8","f9d4e383-ce91-4283-933a-3a22cacdf462","9de2de29-3d2a-4055-ae82-5c2f2ec68dbd","e68baa8b-0c97-43d8-885e-052053827864"})
+ .blacklistedProductRules(new Object[]{items,items2})
+ .productBasedPointRules(new Object[]{items3})
+ .amountBasedPointRules(new Object[]{items4})
+ .subject("money")
+ .setExclusive(true)
+ .pointExpiresInDays(2700)
+ .pointExpiresAt("2025-01-27T12:30:00.000000Z")
+ .status("disabled")
+ .description("qiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpy")
+ .bearPointShopId("62363016-6edc-40a7-83d0-d670375e64e0");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2485,8 +2530,11 @@ void test34() throws ConnectionError, ProcessingError {
items2.addProperty("product_code", "4912345678904");
items2.addProperty("classification_code", "c123");
JsonObject items3 = new JsonObject();
+ items3.addProperty("point_amount", 5);
+ items3.addProperty("point_amount_unit", "percent");
items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("is_multiply_by_count", true);
+ items3.addProperty("required_count", 2);
JsonObject items4 = new JsonObject();
items4.addProperty("point_amount", 5);
items4.addProperty("point_amount_unit", "percent");
@@ -2508,78 +2556,43 @@ void test34() throws ConnectionError, ProcessingError {
JsonObject items7 = new JsonObject();
items7.addProperty("point_amount", 5);
items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("subject_more_than_or_equal", 1000);
+ items7.addProperty("subject_less_than", 5000);
JsonObject items8 = new JsonObject();
items8.addProperty("point_amount", 5);
items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
+ items8.addProperty("subject_more_than_or_equal", 1000);
+ items8.addProperty("subject_less_than", 5000);
JsonObject items9 = new JsonObject();
items9.addProperty("point_amount", 5);
items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
+ items9.addProperty("subject_more_than_or_equal", 1000);
+ items9.addProperty("subject_less_than", 5000);
JsonObject items10 = new JsonObject();
items10.addProperty("point_amount", 5);
items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
- JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
- JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
- JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
- JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
- JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
- JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
+ items10.addProperty("subject_more_than_or_equal", 1000);
+ items10.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"a373a745-6e9d-4160-9bac-c3a20c08ad71","c9acc803-0a36-4197-87e3-fe4e6eec6b50","13fe81ae-fdc3-4820-929a-6f45e8d3b956","cfaee0db-75fb-400f-903e-26a4c985a0f1","8f76d4b4-4336-4c40-8764-17c9968aff50","eb9b5625-c62c-484a-ad23-95386b5237e1"})
- .applicableDaysOfWeek(new Integer[]{5,0,1,2})
- .blacklistedProductRules(new Object[]{items,items2,items3})
- .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11})
- .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16})
- .subject("all")
- .setExclusive(false)
- .pointExpiresInDays(7370)
- .pointExpiresAt("2022-12-15T05:27:20.000000Z")
- .status("enabled")
- .description("YUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQG")
- .bearPointShopId("5dfa95aa-4bc8-4ea7-b0ba-158cef863a29");
+ .blacklistedShopIds(new String[]{"ec78b8f3-09a2-4ea0-a8be-3a17328404fa","613074e9-7dbd-42d6-acef-63ae704c3829","d3664941-ee74-43f9-9c6e-292d6296d64c","7d737482-0a73-4350-a71f-735b593424cf","6581c395-e982-4f9c-818c-6d3916e0be8a","33316f82-c1a2-435c-83c6-adfa5495a038","be758937-d390-446b-a45e-77c961c6259b","34747b08-cf1e-4003-9d6d-95cfd8d0a8cc","361157d7-4ce0-4110-ba79-b86ecd78291b"})
+ .applicableDaysOfWeek(new Integer[]{6,0,3,4,4,4,3,0})
+ .blacklistedProductRules(new Object[]{items,items2})
+ .productBasedPointRules(new Object[]{items3,items4,items5,items6})
+ .amountBasedPointRules(new Object[]{items7,items8,items9,items10})
+ .subject("money")
+ .setExclusive(true)
+ .pointExpiresInDays(2156)
+ .pointExpiresAt("2022-05-16T21:25:35.000000Z")
+ .status("disabled")
+ .description("WD")
+ .bearPointShopId("da71824c-285f-4d1f-9a6d-ade9550bc1a4");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2609,86 +2622,109 @@ void test35() throws ConnectionError, ProcessingError {
items5.addProperty("from", "12:00");
items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("classification_code", "c123");
+ items8.addProperty("from", "12:00");
+ items8.addProperty("to", "23:59");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
+ items9.addProperty("from", "12:00");
+ items9.addProperty("to", "23:59");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("is_multiply_by_count", true);
- items12.addProperty("required_count", 2);
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
+ items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
+ items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("classification_code", "c123");
JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("classification_code", "c123");
JsonObject items17 = new JsonObject();
- items17.addProperty("point_amount", 5);
- items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("classification_code", "c123");
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("product_code", "4912345678904");
+ items22.addProperty("is_multiply_by_count", true);
+ items22.addProperty("required_count", 2);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("product_code", "4912345678904");
+ items23.addProperty("is_multiply_by_count", true);
+ items23.addProperty("required_count", 2);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("product_code", "4912345678904");
+ items24.addProperty("is_multiply_by_count", true);
+ items24.addProperty("required_count", 2);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"4a475c33-7578-4ad0-91fa-efa1c28ec250","2b58ffa5-26ce-483b-82bb-a78781092abe","67ab8d97-84bf-4d5a-8dba-c0e1e5e0b3b3","23e760e3-be54-4ced-bbaa-a810b1e951d4","3d19673f-7df3-403d-ac5f-185478850926","70d9ee44-fca9-4005-88fa-08dd8a213471","8eaec1b0-9f85-4f07-a2a5-5cb0e4dbe450"})
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5})
- .applicableDaysOfWeek(new Integer[]{3})
- .blacklistedProductRules(new Object[]{items6,items7,items8})
- .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14})
- .amountBasedPointRules(new Object[]{items15,items16,items17})
- .subject("all")
+ .blacklistedShopIds(new String[]{"11452d79-ed84-4fd9-bb19-3c3469240497","211073f1-3c2a-4d53-8403-9563683464e5","de6c85b1-098e-45a8-a136-424767056343","81d5de34-5e77-42d0-b44c-656b5d411ef6","012c6816-b70d-46b3-a65b-256fbc833a3a","ac8f631a-08fb-4c12-b419-7ced48e51feb"})
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
+ .applicableDaysOfWeek(new Integer[]{1,1,1,6,4,2,0,2,2})
+ .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17})
+ .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24})
+ .amountBasedPointRules(new Object[]{items25})
+ .subject("money")
.setExclusive(false)
- .pointExpiresInDays(9700)
- .pointExpiresAt("2023-04-26T22:54:50.000000Z")
- .status("enabled")
- .description("EUxwAJXNLOLDUjAEUO9KUSGzbSRmd")
- .bearPointShopId("74cd1581-dfa3-49e0-a1a4-ff363808f0b6");
+ .pointExpiresInDays(75)
+ .pointExpiresAt("2026-02-17T22:14:36.000000Z")
+ .status("disabled")
+ .description("nlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvs")
+ .bearPointShopId("945ec3f8-827c-4ec6-8e29-d5b764ffe673");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2709,81 +2745,84 @@ void test36() throws ConnectionError, ProcessingError {
items2.addProperty("from", "12:00");
items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
items4.addProperty("product_code", "4912345678904");
items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
- items5.addProperty("point_amount", 5);
- items5.addProperty("point_amount_unit", "percent");
items5.addProperty("product_code", "4912345678904");
- items5.addProperty("is_multiply_by_count", true);
- items5.addProperty("required_count", 2);
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("point_amount", 5);
- items6.addProperty("point_amount_unit", "percent");
items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("subject_more_than_or_equal", 1000);
- items8.addProperty("subject_less_than", 5000);
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("subject_more_than_or_equal", 1000);
- items10.addProperty("subject_less_than", 5000);
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("subject_more_than_or_equal", 1000);
+ items15.addProperty("subject_less_than", 5000);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"7a214bc8-bdbc-4d7f-8df8-e69581d342a6","c3643096-8263-46b4-9177-c3406034222d","b5b25866-8b30-4856-99f3-ae63e52da02f","94e9f769-43da-4e9c-b198-aa56c0d00e0f","312dfd1a-ca67-4cb9-83a3-ead955b23c7f","f20a201b-e52a-438d-b4ca-64f98c7ca482","772c6427-868b-41f8-bcd5-cb7133bcd701","a9bca16d-72a1-4db9-aadc-c3d14a688cba","a3eb8f1c-6fd9-425d-bc9d-fbd83cc05416","9ff32fa9-b391-451f-9c39-ade5fe27234f"})
- .minimumNumberOfProducts(4307)
- .applicableTimeRanges(new Object[]{items,items2})
- .applicableDaysOfWeek(new Integer[]{0,2,0,4,0,6,0})
- .blacklistedProductRules(new Object[]{items3,items4})
- .productBasedPointRules(new Object[]{items5,items6,items7})
- .amountBasedPointRules(new Object[]{items8,items9,items10,items11,items12,items13})
- .subject("all")
+ .blacklistedShopIds(new String[]{"1ead4143-b032-4998-bf33-2e871eb1b170","21418041-9ad6-4362-9b7f-f7d8e6b82669","2a695a80-1c8a-4476-80c8-0bda82eb318d","097fd374-b1f2-499b-bcc9-acc1c88f1d01","74f93c18-4779-4550-b3c2-02e0473c92b3","4471fb0b-163c-4f6e-adb1-67dd3d134a09","8ce8023e-7e6d-4b34-8a35-5db162111282","96ab8408-6c6d-4f94-8e03-5550425c9382","0d06a29b-e2fb-4c2e-95dd-9bfe18374c38","e0080d64-e33a-4e54-8944-0fa66daf28b7"})
+ .minimumNumberOfProducts(1809)
+ .applicableTimeRanges(new Object[]{items,items2,items3})
+ .applicableDaysOfWeek(new Integer[]{3,0,1})
+ .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11,items12})
+ .productBasedPointRules(new Object[]{items13,items14})
+ .amountBasedPointRules(new Object[]{items15,items16,items17})
+ .subject("money")
.setExclusive(true)
- .pointExpiresInDays(1547)
- .pointExpiresAt("2020-12-16T05:35:03.000000Z")
- .status("enabled")
- .description("jexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1")
- .bearPointShopId("7fcfb2da-cf11-462f-87ae-782da38bcf7d");
+ .pointExpiresInDays(8066)
+ .pointExpiresAt("2021-07-25T22:50:05.000000Z")
+ .status("disabled")
+ .description("Cw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0n")
+ .bearPointShopId("72cb0012-9da2-488a-9d78-45f7d338dbff");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2810,20 +2849,20 @@ void test37() throws ConnectionError, ProcessingError {
items4.addProperty("from", "12:00");
items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("from", "12:00");
- items7.addProperty("to", "23:59");
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("from", "12:00");
- items8.addProperty("to", "23:59");
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("from", "12:00");
- items9.addProperty("to", "23:59");
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
items10.addProperty("product_code", "4912345678904");
items10.addProperty("classification_code", "c123");
@@ -2840,129 +2879,71 @@ void test37() throws ConnectionError, ProcessingError {
items14.addProperty("product_code", "4912345678904");
items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("classification_code", "c123");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
items16.addProperty("product_code", "4912345678904");
- items16.addProperty("classification_code", "c123");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
items17.addProperty("product_code", "4912345678904");
- items17.addProperty("classification_code", "c123");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
- items18.addProperty("product_code", "4912345678904");
- items18.addProperty("classification_code", "c123");
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("product_code", "4912345678904");
- items19.addProperty("is_multiply_by_count", true);
- items19.addProperty("required_count", 2);
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("product_code", "4912345678904");
- items20.addProperty("is_multiply_by_count", true);
- items20.addProperty("required_count", 2);
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
JsonObject items21 = new JsonObject();
items21.addProperty("point_amount", 5);
items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("product_code", "4912345678904");
- items21.addProperty("is_multiply_by_count", true);
- items21.addProperty("required_count", 2);
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
JsonObject items22 = new JsonObject();
items22.addProperty("point_amount", 5);
items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("product_code", "4912345678904");
- items22.addProperty("is_multiply_by_count", true);
- items22.addProperty("required_count", 2);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("product_code", "4912345678904");
- items23.addProperty("is_multiply_by_count", true);
- items23.addProperty("required_count", 2);
- JsonObject items24 = new JsonObject();
- items24.addProperty("point_amount", 5);
- items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("product_code", "4912345678904");
- items24.addProperty("is_multiply_by_count", true);
- items24.addProperty("required_count", 2);
- JsonObject items25 = new JsonObject();
- items25.addProperty("point_amount", 5);
- items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("product_code", "4912345678904");
- items25.addProperty("is_multiply_by_count", true);
- items25.addProperty("required_count", 2);
- JsonObject items26 = new JsonObject();
- items26.addProperty("point_amount", 5);
- items26.addProperty("point_amount_unit", "percent");
- items26.addProperty("product_code", "4912345678904");
- items26.addProperty("is_multiply_by_count", true);
- items26.addProperty("required_count", 2);
- JsonObject items27 = new JsonObject();
- items27.addProperty("point_amount", 5);
- items27.addProperty("point_amount_unit", "percent");
- items27.addProperty("product_code", "4912345678904");
- items27.addProperty("is_multiply_by_count", true);
- items27.addProperty("required_count", 2);
- JsonObject items28 = new JsonObject();
- items28.addProperty("point_amount", 5);
- items28.addProperty("point_amount_unit", "percent");
- items28.addProperty("subject_more_than_or_equal", 1000);
- items28.addProperty("subject_less_than", 5000);
- JsonObject items29 = new JsonObject();
- items29.addProperty("point_amount", 5);
- items29.addProperty("point_amount_unit", "percent");
- items29.addProperty("subject_more_than_or_equal", 1000);
- items29.addProperty("subject_less_than", 5000);
- JsonObject items30 = new JsonObject();
- items30.addProperty("point_amount", 5);
- items30.addProperty("point_amount_unit", "percent");
- items30.addProperty("subject_more_than_or_equal", 1000);
- items30.addProperty("subject_less_than", 5000);
- JsonObject items31 = new JsonObject();
- items31.addProperty("point_amount", 5);
- items31.addProperty("point_amount_unit", "percent");
- items31.addProperty("subject_more_than_or_equal", 1000);
- items31.addProperty("subject_less_than", 5000);
- JsonObject items32 = new JsonObject();
- items32.addProperty("point_amount", 5);
- items32.addProperty("point_amount_unit", "percent");
- items32.addProperty("subject_more_than_or_equal", 1000);
- items32.addProperty("subject_less_than", 5000);
- JsonObject items33 = new JsonObject();
- items33.addProperty("point_amount", 5);
- items33.addProperty("point_amount_unit", "percent");
- items33.addProperty("subject_more_than_or_equal", 1000);
- items33.addProperty("subject_less_than", 5000);
- JsonObject items34 = new JsonObject();
- items34.addProperty("point_amount", 5);
- items34.addProperty("point_amount_unit", "percent");
- items34.addProperty("subject_more_than_or_equal", 1000);
- items34.addProperty("subject_less_than", 5000);
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"a581fa65-a77f-4cb6-a753-a519a8a87998","146464b6-d6fd-49a2-87f8-528259326d3e","827a7531-e65b-49c4-b14d-74cf43c211f8","bd8bb343-00dd-448d-bf3f-a8c7e05151be","da143655-4b5c-4db3-9a66-69bd5f4f16ff","7dbb5fb6-28ba-4541-8d89-105082197cae","be89184a-c67e-4aee-820e-fb9975d20d00"})
- .minimumNumberOfAmount(8447)
- .minimumNumberOfProducts(7069)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
- .applicableDaysOfWeek(new Integer[]{1,1,0,0,2,1,1,3,0,6})
- .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18})
- .productBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26,items27})
- .amountBasedPointRules(new Object[]{items28,items29,items30,items31,items32,items33,items34})
- .subject("all")
+ .blacklistedShopIds(new String[]{"863f890f-5bfa-4058-9873-5f185c056de0","bb2bef3d-348d-4d99-af03-a8f079f58a63","15c04268-cffd-4ba3-b747-3dddd0989d21","735f6a51-a5a6-4e18-aae0-78c725f138ea","b115e9c2-8f05-4d38-98f0-e22a8c2636b2","cec061f3-ec3a-4e56-a829-85ec4ae62cff","894c4916-98a4-4c63-9731-2ac6c0523d37","66c26141-485c-450d-956a-77cf10ac5c10","51c3990d-1982-4137-a24a-05f45dab632d","b95f765d-74cf-4fb7-846e-b8810e9f526e"})
+ .minimumNumberOfAmount(7062)
+ .minimumNumberOfProducts(6460)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4})
+ .applicableDaysOfWeek(new Integer[]{1})
+ .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13,items14})
+ .productBasedPointRules(new Object[]{items15,items16,items17})
+ .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22})
+ .subject("money")
.setExclusive(false)
- .pointExpiresInDays(5346)
- .pointExpiresAt("2020-11-19T19:29:32.000000Z")
- .status("enabled")
- .description("ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6")
- .bearPointShopId("dc513694-9421-47f8-a25a-8ccd6655641d");
+ .pointExpiresInDays(3662)
+ .pointExpiresAt("2020-05-19T16:15:49.000000Z")
+ .status("disabled")
+ .description("hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHj")
+ .bearPointShopId("a72c424b-2330-42a0-985e-27e9d44920a0");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2989,14 +2970,14 @@ void test38() throws ConnectionError, ProcessingError {
items4.addProperty("from", "12:00");
items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
@@ -3007,35 +2988,20 @@ void test38() throws ConnectionError, ProcessingError {
items10.addProperty("product_code", "4912345678904");
items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("is_multiply_by_count", true);
- items12.addProperty("required_count", 2);
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
+ items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
+ items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("is_multiply_by_count", true);
- items15.addProperty("required_count", 2);
+ items15.addProperty("classification_code", "c123");
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
@@ -3045,28 +3011,33 @@ void test38() throws ConnectionError, ProcessingError {
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("subject_more_than_or_equal", 1000);
- items20.addProperty("subject_less_than", 5000);
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
JsonObject items21 = new JsonObject();
items21.addProperty("point_amount", 5);
items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
JsonObject items22 = new JsonObject();
items22.addProperty("point_amount", 5);
items22.addProperty("point_amount_unit", "percent");
@@ -3088,29 +3059,29 @@ void test38() throws ConnectionError, ProcessingError {
items25.addProperty("subject_more_than_or_equal", 1000);
items25.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"da1fb68f-4266-44e3-b03f-b1aacf385a75","93d591dd-0377-47f0-b0c9-02a5c391acce"})
- .minimumNumberForCombinationPurchase(9392)
- .minimumNumberOfAmount(9974)
- .minimumNumberOfProducts(9246)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4})
- .applicableDaysOfWeek(new Integer[]{2,3})
- .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10})
- .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16})
- .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25})
+ .blacklistedShopIds(new String[]{"70387267-3e30-427c-9c98-7b8ce1b45305","91b3645c-defa-4c14-af1c-ee6344aca951","30984a95-6dad-4ed2-acef-f56ebb4b59f2","f5fc5314-440f-4731-9cce-6281e4b4137c"})
+ .minimumNumberForCombinationPurchase(3018)
+ .minimumNumberOfAmount(1008)
+ .minimumNumberOfProducts(5776)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
+ .applicableDaysOfWeek(new Integer[]{3})
+ .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15})
+ .productBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21})
+ .amountBasedPointRules(new Object[]{items22,items23,items24,items25})
.subject("all")
.setExclusive(false)
- .pointExpiresInDays(2638)
- .pointExpiresAt("2024-04-28T00:47:57.000000Z")
- .status("disabled")
- .description("qZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5")
- .bearPointShopId("39b59148-a7d7-4d5b-a049-7e119e987df1");
+ .pointExpiresInDays(8100)
+ .pointExpiresAt("2021-06-04T04:52:57.000000Z")
+ .status("enabled")
+ .description("1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5")
+ .bearPointShopId("3f1bb6fd-50be-4e9c-893d-33f71970322c");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3128,20 +3099,20 @@ void test39() throws ConnectionError, ProcessingError {
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
+ items4.addProperty("from", "12:00");
+ items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
items7.addProperty("product_code", "4912345678904");
items7.addProperty("classification_code", "c123");
@@ -3149,8 +3120,11 @@ void test39() throws ConnectionError, ProcessingError {
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
+ items9.addProperty("point_amount", 5);
+ items9.addProperty("point_amount_unit", "percent");
items9.addProperty("product_code", "4912345678904");
- items9.addProperty("classification_code", "c123");
+ items9.addProperty("is_multiply_by_count", true);
+ items9.addProperty("required_count", 2);
JsonObject items10 = new JsonObject();
items10.addProperty("point_amount", 5);
items10.addProperty("point_amount_unit", "percent");
@@ -3174,67 +3148,42 @@ void test39() throws ConnectionError, ProcessingError {
items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
- JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
- JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("product_code", "4912345678904");
- items15.addProperty("is_multiply_by_count", true);
- items15.addProperty("required_count", 2);
- JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("product_code", "4912345678904");
- items16.addProperty("is_multiply_by_count", true);
- items16.addProperty("required_count", 2);
- JsonObject items17 = new JsonObject();
- items17.addProperty("point_amount", 5);
- items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("product_code", "4912345678904");
- items17.addProperty("is_multiply_by_count", true);
- items17.addProperty("required_count", 2);
- JsonObject items18 = new JsonObject();
- items18.addProperty("point_amount", 5);
- items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("product_code", "4912345678904");
- items18.addProperty("is_multiply_by_count", true);
- items18.addProperty("required_count", 2);
- JsonObject items19 = new JsonObject();
- items19.addProperty("point_amount", 5);
- items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
+ items13.addProperty("required_count", 2);
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("subject_more_than_or_equal", 1000);
+ items14.addProperty("subject_less_than", 5000);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("subject_more_than_or_equal", 1000);
+ items15.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"e79989ce-4f08-4803-9da5-9822750f3a55","414bc4af-c76f-4f4d-8508-441229a5c600","b4b65b9a-af2e-47e9-bfb9-1177683b4e07","de8701ce-dcc9-483c-a15d-a83b8697ffca","a7149faf-58db-49f9-89b2-7cf0595fbbc1","569a6c97-3ae0-49c4-92f3-dc32f22118c0","906edd42-5734-4d5e-91f9-b0161d346742","7909bfb1-41c7-4fa9-915a-27170967bc02","c9b2ce13-7d54-4f6b-ae02-f204bb504334"})
- .existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(9266)
- .minimumNumberOfAmount(1216)
- .minimumNumberOfProducts(8355)
- .applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{6,2,1,2,2,3,5,0,1})
- .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9})
- .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18})
- .amountBasedPointRules(new Object[]{items19})
- .subject("money")
+ .blacklistedShopIds(new String[]{"bd016883-1d0b-46d3-89f1-81c4d590b7d2","b2ea13d1-31a2-4db8-ac0c-b33a63313531","b5f3afbe-fbe6-492c-9fb3-3e6c95a8f538","d6f4662e-ad48-4951-ab1e-a9516c7b7f75","f839063d-84f6-4c6d-8b2d-df32c4f943d0","b4d2a089-e281-43f4-ad1a-346bdefb0597","f3561473-1ab2-425a-a325-d3d2d49cf3f0","40f710ec-9f0c-418f-8169-953151286ceb","d54aaa63-b410-4d59-8c03-74929dbd66d5","f19dc8ba-bdea-4864-a3fb-381b59c00b15"})
+ .existInEachProductGroups(false)
+ .minimumNumberForCombinationPurchase(9739)
+ .minimumNumberOfAmount(2880)
+ .minimumNumberOfProducts(1484)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6})
+ .applicableDaysOfWeek(new Integer[]{4,3,0,6,3,4,2})
+ .blacklistedProductRules(new Object[]{items7,items8})
+ .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13})
+ .amountBasedPointRules(new Object[]{items14,items15})
+ .subject("all")
.setExclusive(true)
- .pointExpiresInDays(7764)
- .pointExpiresAt("2023-07-03T06:40:54.000000Z")
+ .pointExpiresInDays(2544)
+ .pointExpiresAt("2020-07-03T01:29:23.000000Z")
.status("enabled")
- .description("nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn")
- .bearPointShopId("9ce4d227-cd39-42d6-8aea-c89ba01a9d5f");
+ .description("z7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2")
+ .bearPointShopId("9a80ffd9-4aab-40d9-b360-3619d6d260bc");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3261,17 +3210,17 @@ void test40() throws ConnectionError, ProcessingError {
items4.addProperty("from", "12:00");
items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("classification_code", "c123");
+ items8.addProperty("from", "12:00");
+ items8.addProperty("to", "23:59");
JsonObject items9 = new JsonObject();
items9.addProperty("product_code", "4912345678904");
items9.addProperty("classification_code", "c123");
@@ -3279,11 +3228,17 @@ void test40() throws ConnectionError, ProcessingError {
items10.addProperty("product_code", "4912345678904");
items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
+ items11.addProperty("point_amount", 5);
+ items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("classification_code", "c123");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("classification_code", "c123");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
@@ -3323,8 +3278,9 @@ void test40() throws ConnectionError, ProcessingError {
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
@@ -3360,32 +3316,37 @@ void test40() throws ConnectionError, ProcessingError {
items26.addProperty("point_amount_unit", "percent");
items26.addProperty("subject_more_than_or_equal", 1000);
items26.addProperty("subject_less_than", 5000);
+ JsonObject items27 = new JsonObject();
+ items27.addProperty("point_amount", 5);
+ items27.addProperty("point_amount_unit", "percent");
+ items27.addProperty("subject_more_than_or_equal", 1000);
+ items27.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"47922744-f089-4b31-9eb7-5d16cb1f736b","e780702e-5d6a-43a8-8e3a-d129e9aee72f","4df90ff2-cf25-407e-b2be-851c23f97db9","100e4803-3235-4a6e-873d-fd0e74245d7b","3a714afb-294d-4822-922f-5108dcb76c93","384ec2ec-c332-48ab-9045-19c48d14c916"})
- .maxPointAmount(8988)
+ .blacklistedShopIds(new String[]{"64d6b00b-cb1f-4f8b-8718-f26d3cf2fbe3","16440ee2-c67b-455a-901d-8bd25bab6e16"})
+ .maxPointAmount(663)
.existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(8088)
- .minimumNumberOfAmount(5579)
- .minimumNumberOfProducts(8043)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4})
- .applicableDaysOfWeek(new Integer[]{3,4,1,4,5,3,3,1,1,1})
- .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12})
- .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18})
- .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23,items24,items25,items26})
+ .minimumNumberForCombinationPurchase(1348)
+ .minimumNumberOfAmount(153)
+ .minimumNumberOfProducts(7428)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
+ .applicableDaysOfWeek(new Integer[]{5,6,4,4,3})
+ .blacklistedProductRules(new Object[]{items9,items10})
+ .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19})
+ .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25,items26,items27})
.subject("all")
- .setExclusive(false)
- .pointExpiresInDays(9944)
- .pointExpiresAt("2020-09-09T05:23:52.000000Z")
+ .setExclusive(true)
+ .pointExpiresInDays(7196)
+ .pointExpiresAt("2026-02-08T11:15:25.000000Z")
.status("disabled")
- .description("dNFDbX7fss0ltmaJnxsla")
- .bearPointShopId("89f5a3d5-94cc-4537-9fd2-cef20bd60cf8");
+ .description("foqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv")
+ .bearPointShopId("2955a6b4-295b-4bed-a0f8-1269fe9a968a");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3412,14 +3373,14 @@ void test41() throws ConnectionError, ProcessingError {
items4.addProperty("from", "12:00");
items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
@@ -3433,23 +3394,14 @@ void test41() throws ConnectionError, ProcessingError {
items11.addProperty("product_code", "4912345678904");
items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("is_multiply_by_count", true);
- items12.addProperty("required_count", 2);
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
+ items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
+ items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
items15.addProperty("point_amount", 5);
items15.addProperty("point_amount_unit", "percent");
@@ -3479,53 +3431,33 @@ void test41() throws ConnectionError, ProcessingError {
items19.addProperty("point_amount_unit", "percent");
items19.addProperty("subject_more_than_or_equal", 1000);
items19.addProperty("subject_less_than", 5000);
- JsonObject items20 = new JsonObject();
- items20.addProperty("point_amount", 5);
- items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("subject_more_than_or_equal", 1000);
- items20.addProperty("subject_less_than", 5000);
- JsonObject items21 = new JsonObject();
- items21.addProperty("point_amount", 5);
- items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
- JsonObject items22 = new JsonObject();
- items22.addProperty("point_amount", 5);
- items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("subject_more_than_or_equal", 1000);
- items22.addProperty("subject_less_than", 5000);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"b0e10ae2-16c2-4f01-bf22-cd9a02680d01","90fad016-1378-4f05-99b5-3517fd97613a"})
- .maxTotalPointAmount(5316)
- .maxPointAmount(9116)
+ .blacklistedShopIds(new String[]{"f3f64e79-21e2-4518-8e4c-ff53be2b48fa"})
+ .maxTotalPointAmount(6869)
+ .maxPointAmount(9643)
.existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(9571)
- .minimumNumberOfAmount(3193)
- .minimumNumberOfProducts(9699)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4})
- .applicableDaysOfWeek(new Integer[]{6,2,5,4,1,6})
- .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11})
- .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18})
- .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23})
+ .minimumNumberForCombinationPurchase(2537)
+ .minimumNumberOfAmount(604)
+ .minimumNumberOfProducts(7497)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
+ .applicableDaysOfWeek(new Integer[]{1,4,5,6,4,2,3,0})
+ .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14})
+ .productBasedPointRules(new Object[]{items15,items16,items17,items18})
+ .amountBasedPointRules(new Object[]{items19})
.subject("all")
- .setExclusive(true)
- .pointExpiresInDays(6173)
- .pointExpiresAt("2021-09-26T21:28:04.000000Z")
- .status("enabled")
- .description("wUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6o")
- .bearPointShopId("0653e022-a97e-4b1a-8ff0-4e552948b319");
+ .setExclusive(false)
+ .pointExpiresInDays(1401)
+ .pointExpiresAt("2021-03-29T18:17:58.000000Z")
+ .status("disabled")
+ .description("SGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs")
+ .bearPointShopId("495d82b1-d773-479c-9497-fd33f4e19324");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3564,11 +3496,11 @@ void test42() throws ConnectionError, ProcessingError {
items8.addProperty("from", "12:00");
items8.addProperty("to", "23:59");
JsonObject items9 = new JsonObject();
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("classification_code", "c123");
+ items9.addProperty("from", "12:00");
+ items9.addProperty("to", "23:59");
JsonObject items10 = new JsonObject();
- items10.addProperty("product_code", "4912345678904");
- items10.addProperty("classification_code", "c123");
+ items10.addProperty("from", "12:00");
+ items10.addProperty("to", "23:59");
JsonObject items11 = new JsonObject();
items11.addProperty("product_code", "4912345678904");
items11.addProperty("classification_code", "c123");
@@ -3579,17 +3511,11 @@ void test42() throws ConnectionError, ProcessingError {
items13.addProperty("product_code", "4912345678904");
items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
+ items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("is_multiply_by_count", true);
- items15.addProperty("required_count", 2);
+ items15.addProperty("classification_code", "c123");
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
@@ -3599,76 +3525,54 @@ void test42() throws ConnectionError, ProcessingError {
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
items20.addProperty("subject_more_than_or_equal", 1000);
items20.addProperty("subject_less_than", 5000);
- JsonObject items21 = new JsonObject();
- items21.addProperty("point_amount", 5);
- items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
- JsonObject items22 = new JsonObject();
- items22.addProperty("point_amount", 5);
- items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("subject_more_than_or_equal", 1000);
- items22.addProperty("subject_less_than", 5000);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
- JsonObject items24 = new JsonObject();
- items24.addProperty("point_amount", 5);
- items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("subject_more_than_or_equal", 1000);
- items24.addProperty("subject_less_than", 5000);
- JsonObject items25 = new JsonObject();
- items25.addProperty("point_amount", 5);
- items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("subject_more_than_or_equal", 1000);
- items25.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"b79f5e0c-8c6e-4d83-92d8-65b5d7624170","06bdac61-4165-4586-a626-3b7062f0a4f2","7311a218-4257-4574-9053-1cc7dc7fb4da","d934d772-f2cc-4a39-bb3f-27fdaaa9d2d5","5f4abd24-e372-446d-8114-face24d66925","555cca3a-c512-4202-9593-760c0e11d198","9e3a20b3-33f6-4046-a75a-1eaa6ad77c9e","1d8c0311-8736-4f18-8388-e9398c43f776","a0b38e77-03d8-4ea5-9200-13c9a811e605"})
- .destPrivateMoneyId("e8ad3462-cb5f-46ca-ac60-37b7b0378779")
- .maxTotalPointAmount(9645)
- .maxPointAmount(1169)
- .existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(7676)
- .minimumNumberOfAmount(8960)
- .minimumNumberOfProducts(307)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
- .applicableDaysOfWeek(new Integer[]{3,6,0,1,2,4})
- .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13})
- .productBasedPointRules(new Object[]{items14,items15,items16})
- .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25})
+ .blacklistedShopIds(new String[]{"6e405d82-5c7b-4e61-956a-ee86fcd3dd57","57443c8a-56d5-471b-846b-d6e25201a256","aaa5cee2-a8b9-4a34-bf95-94299c9ad5dd","f85befbd-9813-4ba5-a403-60e839f52463","9db25751-08ed-4a5f-908e-23a2e58f96bd","9a0c2d23-5207-4225-946a-874125334a0b","6d10949b-8d54-4969-a09b-703a5f2ab334"})
+ .destPrivateMoneyId("862833c6-42f6-4f21-8fd4-ceaf6ecb05c2")
+ .maxTotalPointAmount(5114)
+ .maxPointAmount(4383)
+ .existInEachProductGroups(false)
+ .minimumNumberForCombinationPurchase(8051)
+ .minimumNumberOfAmount(5786)
+ .minimumNumberOfProducts(6356)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10})
+ .applicableDaysOfWeek(new Integer[]{2,6,5,0,1,0,1,5,5,1})
+ .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15})
+ .productBasedPointRules(new Object[]{items16,items17,items18,items19})
+ .amountBasedPointRules(new Object[]{items20})
.subject("money")
.setExclusive(false)
- .pointExpiresInDays(4060)
- .pointExpiresAt("2024-08-25T16:06:07.000000Z")
- .status("enabled")
- .description("63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0")
- .bearPointShopId("ff40b6e4-c8ff-49c5-a8cf-c79204df1027");
+ .pointExpiresInDays(6167)
+ .pointExpiresAt("2022-11-18T20:07:33.000000Z")
+ .status("disabled")
+ .description("TX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSL")
+ .bearPointShopId("97199765-92ba-49b8-9e28-445811ed51aa");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3689,100 +3593,150 @@ void test43() throws ConnectionError, ProcessingError {
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("point_amount", 5);
- items3.addProperty("point_amount_unit", "percent");
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("is_multiply_by_count", true);
- items3.addProperty("required_count", 2);
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("point_amount", 5);
- items4.addProperty("point_amount_unit", "percent");
items4.addProperty("product_code", "4912345678904");
- items4.addProperty("is_multiply_by_count", true);
- items4.addProperty("required_count", 2);
+ items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
- items5.addProperty("point_amount", 5);
- items5.addProperty("point_amount_unit", "percent");
items5.addProperty("product_code", "4912345678904");
- items5.addProperty("is_multiply_by_count", true);
- items5.addProperty("required_count", 2);
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("point_amount", 5);
- items6.addProperty("point_amount_unit", "percent");
- items6.addProperty("subject_more_than_or_equal", 1000);
- items6.addProperty("subject_less_than", 5000);
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("subject_more_than_or_equal", 1000);
- items7.addProperty("subject_less_than", 5000);
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("subject_more_than_or_equal", 1000);
- items8.addProperty("subject_less_than", 5000);
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("subject_more_than_or_equal", 1000);
- items10.addProperty("subject_less_than", 5000);
- JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("classification_code", "c123");
+ JsonObject items11 = new JsonObject();
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
items14.addProperty("point_amount", 5);
items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("product_code", "4912345678904");
+ items22.addProperty("is_multiply_by_count", true);
+ items22.addProperty("required_count", 2);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("product_code", "4912345678904");
+ items23.addProperty("is_multiply_by_count", true);
+ items23.addProperty("required_count", 2);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
+ JsonObject items26 = new JsonObject();
+ items26.addProperty("point_amount", 5);
+ items26.addProperty("point_amount_unit", "percent");
+ items26.addProperty("subject_more_than_or_equal", 1000);
+ items26.addProperty("subject_less_than", 5000);
+ JsonObject items27 = new JsonObject();
+ items27.addProperty("point_amount", 5);
+ items27.addProperty("point_amount_unit", "percent");
+ items27.addProperty("subject_more_than_or_equal", 1000);
+ items27.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"5ecdcd80-da1c-4abb-89bc-4e25539e4b17","1c349b22-1ff1-4d4f-a3c6-be879f38494c","80845371-9c6e-4e0c-b2a0-205a8905f6de","0baf9c17-7f75-484c-afeb-f29741ca25de","310197b5-3fc7-4ca6-a846-69328965d846"})
+ .blacklistedShopIds(new String[]{"666f307c-3c5a-4669-8cdb-155b77185b63","d0cf7c7f-55c2-47b9-aaec-d88a2e4de9a9","4537b4eb-f27e-4f75-8077-0fc0ee112e0f","fbb7ca24-d5a4-4bd5-ad74-5d35d5b52114","25a1c92c-0d67-4047-937e-14d8bceefe99","0075e932-ca53-4e62-bc17-b50c69d801c2","a0c9c212-d7db-4852-9350-dee05a542ba8","7c020961-c4d9-4c8f-a557-bf3f11b47af9"})
.applicableAccountMetadata(applicable_account_metadata)
- .destPrivateMoneyId("03777006-54d5-46f5-b97b-a844b8d0a8d6")
- .maxTotalPointAmount(5436)
- .maxPointAmount(8339)
- .existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(7643)
- .minimumNumberOfAmount(4442)
- .minimumNumberOfProducts(6502)
- .applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{3})
- .blacklistedProductRules(new Object[]{items2})
- .productBasedPointRules(new Object[]{items3,items4,items5})
- .amountBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14})
- .subject("all")
- .setExclusive(false)
- .pointExpiresInDays(6020)
- .pointExpiresAt("2022-06-22T08:49:37.000000Z")
+ .destPrivateMoneyId("b6da086e-576d-46a8-a855-8bd179bb6adf")
+ .maxTotalPointAmount(1596)
+ .maxPointAmount(2088)
+ .existInEachProductGroups(true)
+ .minimumNumberForCombinationPurchase(657)
+ .minimumNumberOfAmount(1177)
+ .minimumNumberOfProducts(8910)
+ .applicableTimeRanges(new Object[]{items,items2,items3})
+ .applicableDaysOfWeek(new Integer[]{2,5,6,0,1})
+ .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9,items10,items11,items12,items13})
+ .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20,items21,items22,items23})
+ .amountBasedPointRules(new Object[]{items24,items25,items26,items27})
+ .subject("money")
+ .setExclusive(true)
+ .pointExpiresInDays(2083)
+ .pointExpiresAt("2025-02-15T10:49:54.000000Z")
.status("enabled")
- .description("DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS7")
- .bearPointShopId("f326f101-4a5f-480e-94fe-50a26de542b0");
+ .description("PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU")
+ .bearPointShopId("d6c98010-d6ab-4f33-b3c5-bdac87edee8e");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3815,20 +3769,20 @@ void test44() throws ConnectionError, ProcessingError {
items4.addProperty("from", "12:00");
items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("from", "12:00");
- items7.addProperty("to", "23:59");
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("from", "12:00");
- items8.addProperty("to", "23:59");
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("from", "12:00");
- items9.addProperty("to", "23:59");
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
items10.addProperty("product_code", "4912345678904");
items10.addProperty("classification_code", "c123");
@@ -3845,11 +3799,17 @@ void test44() throws ConnectionError, ProcessingError {
items14.addProperty("product_code", "4912345678904");
items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("classification_code", "c123");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
items16.addProperty("product_code", "4912345678904");
- items16.addProperty("classification_code", "c123");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
@@ -3883,113 +3843,48 @@ void test44() throws ConnectionError, ProcessingError {
JsonObject items22 = new JsonObject();
items22.addProperty("point_amount", 5);
items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("product_code", "4912345678904");
- items22.addProperty("is_multiply_by_count", true);
- items22.addProperty("required_count", 2);
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
JsonObject items23 = new JsonObject();
items23.addProperty("point_amount", 5);
items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("product_code", "4912345678904");
- items23.addProperty("is_multiply_by_count", true);
- items23.addProperty("required_count", 2);
+ items23.addProperty("subject_more_than_or_equal", 1000);
+ items23.addProperty("subject_less_than", 5000);
JsonObject items24 = new JsonObject();
items24.addProperty("point_amount", 5);
items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("product_code", "4912345678904");
- items24.addProperty("is_multiply_by_count", true);
- items24.addProperty("required_count", 2);
- JsonObject items25 = new JsonObject();
- items25.addProperty("point_amount", 5);
- items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("product_code", "4912345678904");
- items25.addProperty("is_multiply_by_count", true);
- items25.addProperty("required_count", 2);
- JsonObject items26 = new JsonObject();
- items26.addProperty("point_amount", 5);
- items26.addProperty("point_amount_unit", "percent");
- items26.addProperty("product_code", "4912345678904");
- items26.addProperty("is_multiply_by_count", true);
- items26.addProperty("required_count", 2);
- JsonObject items27 = new JsonObject();
- items27.addProperty("point_amount", 5);
- items27.addProperty("point_amount_unit", "percent");
- items27.addProperty("subject_more_than_or_equal", 1000);
- items27.addProperty("subject_less_than", 5000);
- JsonObject items28 = new JsonObject();
- items28.addProperty("point_amount", 5);
- items28.addProperty("point_amount_unit", "percent");
- items28.addProperty("subject_more_than_or_equal", 1000);
- items28.addProperty("subject_less_than", 5000);
- JsonObject items29 = new JsonObject();
- items29.addProperty("point_amount", 5);
- items29.addProperty("point_amount_unit", "percent");
- items29.addProperty("subject_more_than_or_equal", 1000);
- items29.addProperty("subject_less_than", 5000);
- JsonObject items30 = new JsonObject();
- items30.addProperty("point_amount", 5);
- items30.addProperty("point_amount_unit", "percent");
- items30.addProperty("subject_more_than_or_equal", 1000);
- items30.addProperty("subject_less_than", 5000);
- JsonObject items31 = new JsonObject();
- items31.addProperty("point_amount", 5);
- items31.addProperty("point_amount_unit", "percent");
- items31.addProperty("subject_more_than_or_equal", 1000);
- items31.addProperty("subject_less_than", 5000);
- JsonObject items32 = new JsonObject();
- items32.addProperty("point_amount", 5);
- items32.addProperty("point_amount_unit", "percent");
- items32.addProperty("subject_more_than_or_equal", 1000);
- items32.addProperty("subject_less_than", 5000);
- JsonObject items33 = new JsonObject();
- items33.addProperty("point_amount", 5);
- items33.addProperty("point_amount_unit", "percent");
- items33.addProperty("subject_more_than_or_equal", 1000);
- items33.addProperty("subject_less_than", 5000);
- JsonObject items34 = new JsonObject();
- items34.addProperty("point_amount", 5);
- items34.addProperty("point_amount_unit", "percent");
- items34.addProperty("subject_more_than_or_equal", 1000);
- items34.addProperty("subject_less_than", 5000);
- JsonObject items35 = new JsonObject();
- items35.addProperty("point_amount", 5);
- items35.addProperty("point_amount_unit", "percent");
- items35.addProperty("subject_more_than_or_equal", 1000);
- items35.addProperty("subject_less_than", 5000);
- JsonObject items36 = new JsonObject();
- items36.addProperty("point_amount", 5);
- items36.addProperty("point_amount_unit", "percent");
- items36.addProperty("subject_more_than_or_equal", 1000);
- items36.addProperty("subject_less_than", 5000);
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"bacc3b26-2723-4e4a-8f55-091d3a28e0fe"})
+ .blacklistedShopIds(new String[]{"42138379-c085-4e12-be7c-47c746595694","d8c7d207-1c9c-4155-b9d3-40e3db9de485","cd9d3237-8b88-4995-945f-b15714173218","c6635ff0-6fde-4868-a60c-93fc50f9ac27","813bca55-1e19-48c3-86ae-3dbad93de7a8","6228c73f-ac0e-4bd1-804f-570a2bba0a92","12d931a7-c2ec-4ede-825f-e40e44dae595","88f716e8-1c82-49ca-839d-9800071dad93","156085ff-7ffa-4b53-8849-b92e6eb3a910"})
.applicableTransactionMetadata(applicable_transaction_metadata)
.applicableAccountMetadata(applicable_account_metadata)
- .destPrivateMoneyId("67872fcb-41ea-4e4b-8ce5-3b47df08b8dc")
- .maxTotalPointAmount(2654)
- .maxPointAmount(4548)
+ .destPrivateMoneyId("c4339607-0c02-4775-b39d-524ce2313334")
+ .maxTotalPointAmount(9734)
+ .maxPointAmount(7575)
.existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(6733)
- .minimumNumberOfAmount(5138)
- .minimumNumberOfProducts(4476)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
- .applicableDaysOfWeek(new Integer[]{3,3,0,1,0,5,1,3,1,5})
- .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15,items16})
- .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25,items26})
- .amountBasedPointRules(new Object[]{items27,items28,items29,items30,items31,items32,items33,items34,items35,items36})
- .subject("all")
+ .minimumNumberForCombinationPurchase(1952)
+ .minimumNumberOfAmount(7985)
+ .minimumNumberOfProducts(2692)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4})
+ .applicableDaysOfWeek(new Integer[]{3,2})
+ .blacklistedProductRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13,items14})
+ .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21})
+ .amountBasedPointRules(new Object[]{items22,items23,items24})
+ .subject("money")
.setExclusive(true)
- .pointExpiresInDays(9410)
- .pointExpiresAt("2022-10-14T12:36:17.000000Z")
+ .pointExpiresInDays(1057)
+ .pointExpiresAt("2021-02-13T11:11:35.000000Z")
.status("enabled")
- .description("HYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiB")
- .bearPointShopId("a21959f4-c4d2-4b5f-bb2d-642a030a4668");
+ .description("nP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQR")
+ .bearPointShopId("3b6d4e2f-88e7-4d63-a516-7931c99e60ba");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -4040,82 +3935,101 @@ void test45() throws ConnectionError, ProcessingError {
items10.addProperty("product_code", "4912345678904");
items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
JsonObject items14 = new JsonObject();
items14.addProperty("point_amount", 5);
items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
JsonObject items15 = new JsonObject();
items15.addProperty("point_amount", 5);
items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
Request request = new CreateCampaign(
- "V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDoku",
- "1e1a0f25-bf2f-4164-8cfa-6994b790dfd0",
- "2021-02-25T21:26:31.000000Z",
- "2020-09-09T10:07:27.000000Z",
- 6174,
- "topup"
+ "8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5",
+ "658a58db-7f87-426d-9b7b-c772052f6809",
+ "2020-03-25T02:53:40.000000Z",
+ "2021-03-29T01:32:57.000000Z",
+ 6829,
+ "payment"
)
- .blacklistedShopIds(new String[]{"506c48bc-2226-4961-9d76-10d73ed2e5ef"})
- .budgetCapsAmount(1517025453)
+ .blacklistedShopIds(new String[]{"6827a1c5-ecf9-4298-9848-444d2eb3e358","71a9edc2-8b9a-4999-972c-bf6a51fc4cb8","5be83b26-d80d-4325-af74-4693279c11c5","5d4e6e88-d6a3-49af-8196-7c63f6b9dd5e","f399ffa1-7446-4eaa-b9b5-2f12618b356f","af157eef-f058-4def-a517-8f02bea15958","20581ffd-0375-487a-9d0e-930bb34e88fc"})
+ .budgetCapsAmount(123779949)
.applicableTransactionMetadata(applicable_transaction_metadata)
.applicableAccountMetadata(applicable_account_metadata)
- .destPrivateMoneyId("011241ed-9e37-4e03-ae9b-36697259f353")
- .maxTotalPointAmount(4495)
- .maxPointAmount(6749)
+ .destPrivateMoneyId("88410b99-e9d2-463b-ad70-c69c22987843")
+ .maxTotalPointAmount(225)
+ .maxPointAmount(8735)
.existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(4226)
- .minimumNumberOfAmount(5301)
- .minimumNumberOfProducts(5110)
+ .minimumNumberForCombinationPurchase(3485)
+ .minimumNumberOfAmount(6024)
+ .minimumNumberOfProducts(2146)
.applicableTimeRanges(new Object[]{items,items2,items3,items4,items5})
- .applicableDaysOfWeek(new Integer[]{4})
- .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10})
- .productBasedPointRules(new Object[]{items11})
- .amountBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19})
+ .applicableDaysOfWeek(new Integer[]{3,5,4,6,2,4,4})
+ .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10,items11,items12})
+ .productBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18,items19,items20,items21})
+ .amountBasedPointRules(new Object[]{items22})
.subject("money")
- .setExclusive(true)
- .pointExpiresInDays(189)
- .pointExpiresAt("2022-01-27T14:38:20.000000Z")
+ .setExclusive(false)
+ .pointExpiresInDays(8269)
+ .pointExpiresAt("2023-05-23T17:08:23.000000Z")
.status("enabled")
- .description("LBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJ")
- .bearPointShopId("7b804381-8d75-4f20-b49a-b801d39ba53b");
+ .description("DCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffE")
+ .bearPointShopId("0129a769-1d63-4838-9722-0a734ac9f979");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java
index ca20e975..0864b3c0 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateCashtrayTest.java
@@ -12,9 +12,9 @@ public class CreateCashtrayTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateCashtray(
- "044202f7-3525-4117-8dd7-0ded95240fda",
- "48aeadc5-538d-4ee4-af33-69d46096e93b",
- 5771.0
+ "ab108388-64a5-4016-a02f-7e72a5a4aee8",
+ "ca541eff-d653-40f5-8cb2-3e9718582200",
+ 1202.0
);
try {
PartnerAPITest.getClient().send(request);
@@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateCashtray(
- "044202f7-3525-4117-8dd7-0ded95240fda",
- "48aeadc5-538d-4ee4-af33-69d46096e93b",
- 5771.0
+ "ab108388-64a5-4016-a02f-7e72a5a4aee8",
+ "ca541eff-d653-40f5-8cb2-3e9718582200",
+ 1202.0
)
- .expiresIn(5237);
+ .expiresIn(872);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateCashtray(
- "044202f7-3525-4117-8dd7-0ded95240fda",
- "48aeadc5-538d-4ee4-af33-69d46096e93b",
- 5771.0
+ "ab108388-64a5-4016-a02f-7e72a5a4aee8",
+ "ca541eff-d653-40f5-8cb2-3e9718582200",
+ 1202.0
)
- .description("PfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMg")
- .expiresIn(1558);
+ .description("ga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf47")
+ .expiresIn(5390);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java
index a7d6411a..13f10d18 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateCheckTest.java
@@ -12,9 +12,9 @@ public class CreateCheckTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(9410.0);
+ .moneyAmount(6896.0);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(8482.0)
- .description("6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjF");
+ .moneyAmount(2977.0)
+ .description("NZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(9448.0)
+ .moneyAmount(7556.0)
.setOnetime(true)
- .description("YgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp");
+ .description("sRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3lV");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -66,12 +66,12 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(3210.0)
- .usageLimit(6298)
+ .moneyAmount(4946.0)
+ .usageLimit(2385)
.setOnetime(true)
- .description("5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47Xe");
+ .description("7O823WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXX");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -86,13 +86,13 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(4346.0)
- .expiresAt("2022-03-26T18:20:47.000000Z")
- .usageLimit(1113)
+ .moneyAmount(2094.0)
+ .expiresAt("2024-09-11T12:51:25.000000Z")
+ .usageLimit(6416)
.setOnetime(false)
- .description("aQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnh");
+ .description("Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -107,14 +107,14 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(4677.0)
- .pointExpiresAt("2020-12-02T11:49:10.000000Z")
- .expiresAt("2021-03-16T21:57:04.000000Z")
- .usageLimit(8337)
- .setOnetime(false)
- .description("VfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAb");
+ .moneyAmount(2702.0)
+ .pointExpiresAt("2022-03-10T22:59:02.000000Z")
+ .expiresAt("2021-07-30T12:40:06.000000Z")
+ .usageLimit(7160)
+ .setOnetime(true)
+ .description("kmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1U");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -129,15 +129,15 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(5887.0)
- .pointExpiresInDays(8507)
- .pointExpiresAt("2024-02-28T08:15:03.000000Z")
- .expiresAt("2023-12-03T05:36:08.000000Z")
- .usageLimit(6826)
+ .moneyAmount(3850.0)
+ .pointExpiresInDays(2815)
+ .pointExpiresAt("2021-03-16T04:27:51.000000Z")
+ .expiresAt("2022-11-20T03:26:05.000000Z")
+ .usageLimit(3528)
.setOnetime(true)
- .description("HRtQBqCHsxk71kIOiSHcZ37");
+ .description("k2IRflsv");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -152,16 +152,16 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(4969.0)
- .bearPointAccount("c3bf7a17-5d0d-41ef-aa60-9a20234a6eee")
- .pointExpiresInDays(5740)
- .pointExpiresAt("2022-03-09T10:21:43.000000Z")
- .expiresAt("2023-05-17T17:33:30.000000Z")
- .usageLimit(3506)
+ .moneyAmount(9079.0)
+ .bearPointAccount("93a55815-5475-4f22-807c-a196eea46726")
+ .pointExpiresInDays(5723)
+ .pointExpiresAt("2026-01-14T18:47:03.000000Z")
+ .expiresAt("2026-01-28T13:14:11.000000Z")
+ .usageLimit(418)
.setOnetime(true)
- .description("3qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQ");
+ .description("k0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmX");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -176,10 +176,10 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(1926.0)
- .pointAmount(1737.0);
+ .moneyAmount(3927.0)
+ .pointAmount(1661.0);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -194,11 +194,11 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(3633.0)
- .pointAmount(9333.0)
- .description("CwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApo");
+ .moneyAmount(9955.0)
+ .pointAmount(431.0)
+ .description("TOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -213,12 +213,12 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(9105.0)
- .pointAmount(1004.0)
+ .moneyAmount(1704.0)
+ .pointAmount(650.0)
.setOnetime(true)
- .description("rzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5Az");
+ .description("55uy56fVMl4ovKtbbNML");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -233,13 +233,13 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(9132.0)
- .pointAmount(465.0)
- .usageLimit(8034)
- .setOnetime(false)
- .description("E5VhNxjrtNh84WLuHKWoYQpDL");
+ .moneyAmount(1019.0)
+ .pointAmount(3999.0)
+ .usageLimit(2524)
+ .setOnetime(true)
+ .description("xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsx");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -254,14 +254,14 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(2676.0)
- .pointAmount(5322.0)
- .expiresAt("2024-03-10T02:31:21.000000Z")
- .usageLimit(7962)
+ .moneyAmount(4232.0)
+ .pointAmount(5355.0)
+ .expiresAt("2021-03-26T09:43:13.000000Z")
+ .usageLimit(7806)
.setOnetime(false)
- .description("WbDVy6Ss7attO0");
+ .description("iSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -276,15 +276,15 @@ void test12() throws ConnectionError, ProcessingError {
@Test
void test13() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(5779.0)
- .pointAmount(6184.0)
- .pointExpiresAt("2021-10-19T08:15:57.000000Z")
- .expiresAt("2020-04-27T09:52:11.000000Z")
- .usageLimit(2593)
+ .moneyAmount(7160.0)
+ .pointAmount(2088.0)
+ .pointExpiresAt("2026-02-06T23:34:09.000000Z")
+ .expiresAt("2020-03-30T00:48:24.000000Z")
+ .usageLimit(3022)
.setOnetime(true)
- .description("Z2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu");
+ .description("eqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbf");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -299,16 +299,16 @@ void test13() throws ConnectionError, ProcessingError {
@Test
void test14() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(6601.0)
- .pointAmount(7035.0)
- .pointExpiresInDays(3528)
- .pointExpiresAt("2021-10-21T23:47:41.000000Z")
- .expiresAt("2022-05-27T09:41:16.000000Z")
- .usageLimit(2708)
- .setOnetime(true)
- .description("b57N6Bfk723xgVJhWc2FL");
+ .moneyAmount(8280.0)
+ .pointAmount(3169.0)
+ .pointExpiresInDays(2302)
+ .pointExpiresAt("2020-06-21T10:51:14.000000Z")
+ .expiresAt("2020-10-25T14:15:25.000000Z")
+ .usageLimit(3135)
+ .setOnetime(false)
+ .description("HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDv");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -323,17 +323,17 @@ void test14() throws ConnectionError, ProcessingError {
@Test
void test15() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .moneyAmount(3205.0)
- .pointAmount(6411.0)
- .bearPointAccount("964f5ced-a5f5-40b9-852d-2fd21b587a7c")
- .pointExpiresInDays(2485)
- .pointExpiresAt("2020-12-27T05:32:39.000000Z")
- .expiresAt("2024-10-01T08:57:54.000000Z")
- .usageLimit(817)
- .setOnetime(false)
- .description("FfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd");
+ .moneyAmount(6578.0)
+ .pointAmount(4934.0)
+ .bearPointAccount("e96623cb-b255-40b3-b3d0-7fd936255c3f")
+ .pointExpiresInDays(3930)
+ .pointExpiresAt("2021-06-23T00:37:46.000000Z")
+ .expiresAt("2020-08-08T16:24:09.000000Z")
+ .usageLimit(4996)
+ .setOnetime(true)
+ .description("IyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJt");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -348,9 +348,9 @@ void test15() throws ConnectionError, ProcessingError {
@Test
void test16() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .pointAmount(1701.0);
+ .pointAmount(1362.0);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -365,10 +365,10 @@ void test16() throws ConnectionError, ProcessingError {
@Test
void test17() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .pointAmount(6900.0)
- .description("p1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQY");
+ .pointAmount(9935.0)
+ .description("nJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -383,11 +383,11 @@ void test17() throws ConnectionError, ProcessingError {
@Test
void test18() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .pointAmount(4691.0)
- .setOnetime(true)
- .description("SoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkD");
+ .pointAmount(3859.0)
+ .setOnetime(false)
+ .description("5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -402,12 +402,12 @@ void test18() throws ConnectionError, ProcessingError {
@Test
void test19() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .pointAmount(93.0)
- .usageLimit(2886)
- .setOnetime(false)
- .description("GmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w");
+ .pointAmount(3592.0)
+ .usageLimit(2357)
+ .setOnetime(true)
+ .description("GrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0g");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -422,13 +422,13 @@ void test19() throws ConnectionError, ProcessingError {
@Test
void test20() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .pointAmount(8001.0)
- .expiresAt("2022-12-01T00:06:04.000000Z")
- .usageLimit(5044)
+ .pointAmount(7066.0)
+ .expiresAt("2020-02-09T04:52:58.000000Z")
+ .usageLimit(5158)
.setOnetime(true)
- .description("MRFhBa1KS");
+ .description("nSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -443,14 +443,14 @@ void test20() throws ConnectionError, ProcessingError {
@Test
void test21() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .pointAmount(7226.0)
- .pointExpiresAt("2023-06-01T14:20:15.000000Z")
- .expiresAt("2022-08-21T00:16:06.000000Z")
- .usageLimit(6434)
- .setOnetime(false)
- .description("AtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4");
+ .pointAmount(3007.0)
+ .pointExpiresAt("2025-08-08T18:23:02.000000Z")
+ .expiresAt("2022-06-22T04:29:19.000000Z")
+ .usageLimit(7940)
+ .setOnetime(true)
+ .description("uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAh");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -465,15 +465,15 @@ void test21() throws ConnectionError, ProcessingError {
@Test
void test22() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .pointAmount(8059.0)
- .pointExpiresInDays(9472)
- .pointExpiresAt("2021-05-25T04:18:07.000000Z")
- .expiresAt("2020-09-12T18:57:04.000000Z")
- .usageLimit(6469)
+ .pointAmount(379.0)
+ .pointExpiresInDays(5154)
+ .pointExpiresAt("2023-03-21T03:25:06.000000Z")
+ .expiresAt("2025-12-03T20:22:03.000000Z")
+ .usageLimit(1588)
.setOnetime(false)
- .description("c6DIDKem3xaXPio5o0");
+ .description("5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYK");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -488,16 +488,16 @@ void test22() throws ConnectionError, ProcessingError {
@Test
void test23() throws ConnectionError, ProcessingError {
Request request = new CreateCheck(
- "c88e2d1d-1b1f-45da-a392-319bc72de1bf"
+ "11aa316d-7eda-4f20-b8ce-da3b961ab7b4"
)
- .pointAmount(6281.0)
- .bearPointAccount("08141bf1-29b9-4178-b0e9-675585186008")
- .pointExpiresInDays(4352)
- .pointExpiresAt("2022-03-21T21:06:35.000000Z")
- .expiresAt("2020-08-30T05:34:49.000000Z")
- .usageLimit(2690)
+ .pointAmount(1031.0)
+ .bearPointAccount("24a7f392-2f7b-4452-8d3f-b8d06a33d356")
+ .pointExpiresInDays(3897)
+ .pointExpiresAt("2026-03-28T15:42:36.000000Z")
+ .expiresAt("2021-08-08T21:23:34.000000Z")
+ .usageLimit(5543)
.setOnetime(false)
- .description("rfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvP");
+ .description("cOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDK");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java
index 057c8af1..9cc9c4c0 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateCouponTest.java
@@ -12,13 +12,13 @@ public class CreateCouponTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(8539);
+ .discountAmount(4515);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -33,14 +33,14 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(5276)
- .storageId("f77ee315-9cdc-45f7-88d8-4e2dea98d2ec");
+ .discountAmount(8299)
+ .numRecipientsCap(2850);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -55,15 +55,15 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(475)
- .minAmount(1579)
- .storageId("f46b87ca-beac-4246-959f-632718138880");
+ .discountAmount(5999)
+ .storageId("5e2a538a-f9be-44a8-9e2f-8e9753525172")
+ .numRecipientsCap(7675);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -78,16 +78,16 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(9602)
- .usageLimit(5001)
- .minAmount(5144)
- .storageId("03c2523f-6a22-4428-890e-3db6b613f48b");
+ .discountAmount(2508)
+ .minAmount(6972)
+ .storageId("2556fc53-c824-40c0-b7f3-110f8dc380bf")
+ .numRecipientsCap(6153);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,17 +102,17 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(5533)
- .code("xf")
- .usageLimit(8070)
- .minAmount(5763)
- .storageId("3de35655-d515-43b8-9712-dbc857ad1c49");
+ .discountAmount(6199)
+ .usageLimit(4713)
+ .minAmount(7385)
+ .storageId("2b787224-d14f-4fd0-af99-f63de7a49823")
+ .numRecipientsCap(5741);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -127,18 +127,18 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(4094)
- .setPublic(false)
- .code("LO5Dd5X")
- .usageLimit(1164)
- .minAmount(144)
- .storageId("3bac0488-36c6-4f57-8c0e-308cab040384");
+ .discountAmount(6081)
+ .code("UlMDxo")
+ .usageLimit(6531)
+ .minAmount(3495)
+ .storageId("bcfd2444-42e1-4802-b2dd-ee6cc1f758aa")
+ .numRecipientsCap(2205);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -153,19 +153,19 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(2528)
- .setHidden(false)
- .setPublic(false)
- .code("oU011Xo")
- .usageLimit(7962)
- .minAmount(5831)
- .storageId("59691fef-5a9b-4693-83f0-4eba34c704e5");
+ .discountAmount(1432)
+ .setPublic(true)
+ .code("zJC7w")
+ .usageLimit(1666)
+ .minAmount(973)
+ .storageId("e0fdef01-be00-4ec1-abc6-12d9aecb9928")
+ .numRecipientsCap(5695);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -180,20 +180,20 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(8684)
- .setDisabled(true)
- .setHidden(true)
- .setPublic(true)
- .code("PpOt9Y")
- .usageLimit(9916)
- .minAmount(7954)
- .storageId("59c54db3-d86d-42f3-b874-eb634e0f0273");
+ .discountAmount(5710)
+ .setHidden(false)
+ .setPublic(false)
+ .code("v")
+ .usageLimit(8365)
+ .minAmount(3206)
+ .storageId("43482fc4-2b8f-4876-af5c-ffe7656a8c0c")
+ .numRecipientsCap(1201);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -208,21 +208,21 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(1542)
- .displayEndsAt("2022-07-16T04:09:00.000000Z")
+ .discountAmount(3259)
.setDisabled(true)
.setHidden(false)
- .setPublic(false)
- .code("QEq")
- .usageLimit(4475)
- .minAmount(9266)
- .storageId("65bac18f-ed23-4441-9d55-29ec72878374");
+ .setPublic(true)
+ .code("2T90aOF")
+ .usageLimit(7291)
+ .minAmount(5873)
+ .storageId("822d1cbe-0d4c-445a-bea1-7d5c71d9d693")
+ .numRecipientsCap(7755);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -237,22 +237,22 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(9323)
- .displayStartsAt("2020-01-17T13:55:18.000000Z")
- .displayEndsAt("2023-11-10T17:58:13.000000Z")
- .setDisabled(false)
+ .discountAmount(6999)
+ .displayEndsAt("2026-06-04T03:42:21.000000Z")
+ .setDisabled(true)
.setHidden(true)
- .setPublic(false)
- .code("V8aSNO9")
- .usageLimit(2060)
- .minAmount(6855)
- .storageId("84f34919-7dd1-4521-95c0-d76e3459a144");
+ .setPublic(true)
+ .code("W8mYG8iBpA")
+ .usageLimit(9482)
+ .minAmount(7609)
+ .storageId("16d1838e-4ef7-4ea6-8b94-01b7f35d06fc")
+ .numRecipientsCap(3467);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -267,23 +267,23 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(5875)
- .discountUpperLimit(1146)
- .displayStartsAt("2024-04-11T07:18:28.000000Z")
- .displayEndsAt("2020-05-25T08:09:45.000000Z")
- .setDisabled(false)
+ .discountAmount(7878)
+ .displayStartsAt("2022-04-08T23:36:05.000000Z")
+ .displayEndsAt("2020-08-24T04:37:26.000000Z")
+ .setDisabled(true)
.setHidden(false)
- .setPublic(true)
- .code("g8bbFQz")
- .usageLimit(4669)
- .minAmount(9680)
- .storageId("e9db5f89-f6e4-4c24-acd8-ef0e9fc4b1c4");
+ .setPublic(false)
+ .code("MDJDN9k")
+ .usageLimit(7018)
+ .minAmount(1390)
+ .storageId("b587a185-df2a-491f-84aa-369a5f4b473f")
+ .numRecipientsCap(966);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -298,24 +298,24 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(5467)
- .description("ujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQ")
- .discountUpperLimit(9314)
- .displayStartsAt("2021-08-02T00:37:40.000000Z")
- .displayEndsAt("2023-08-06T16:53:53.000000Z")
+ .discountAmount(65)
+ .discountUpperLimit(1652)
+ .displayStartsAt("2022-09-16T10:59:59.000000Z")
+ .displayEndsAt("2025-01-03T01:16:07.000000Z")
.setDisabled(false)
.setHidden(true)
- .setPublic(false)
- .code("wXW1Rg")
- .usageLimit(7926)
- .minAmount(3472)
- .storageId("a29dc282-bb78-4a3f-aa10-4d1f86482a65");
+ .setPublic(true)
+ .code("0y")
+ .usageLimit(986)
+ .minAmount(659)
+ .storageId("a4cc108c-afc3-4cb3-ad74-119cc76627bd")
+ .numRecipientsCap(5039);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -330,15 +330,25 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(275)
- .setShopSpecified(false)
- .availableShopIds(new String[]{"a59beb91-ad74-4971-a32f-73852727747d","b17580dc-5a30-4b82-ac56-6075137f9285","ba00cb56-1786-40a0-80e5-6affbd737376","54cdc9c2-c39a-4e70-be4b-dfa582324009","0c618721-ea5a-4046-b355-d1104fdba895","49af4f4a-3750-4373-862c-86005d97183d","e1191f43-1ea4-4a2a-90fc-a6e3edd01c88","bc43387f-096b-41a6-8f52-833f1775b26f","799bed86-3d27-4f43-99a1-9f7448225f12"});
+ .discountAmount(2838)
+ .description("NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCN")
+ .discountUpperLimit(1365)
+ .displayStartsAt("2022-07-14T22:11:05.000000Z")
+ .displayEndsAt("2022-12-26T11:24:25.000000Z")
+ .setDisabled(false)
+ .setHidden(false)
+ .setPublic(true)
+ .code("pK")
+ .usageLimit(5599)
+ .minAmount(6989)
+ .storageId("76305a7c-a41c-4dbb-b636-19da592a51bd")
+ .numRecipientsCap(7647);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -353,16 +363,15 @@ void test12() throws ConnectionError, ProcessingError {
@Test
void test13() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(7000)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"9c6798c1-7b71-4022-804a-f0edf4674374","e755e42b-0e26-4e26-b4c0-aedc280cf304","9011a98e-fc59-4063-9358-37c458406e89","21b812ef-6201-4098-85c3-8de765231577","3e34b9e0-3bac-4fa4-b9be-59a93e5b2f70","4d166fd1-c0ee-4883-a0fc-135129db1c55"})
- .storageId("a85d8b2b-9df3-41ee-9ed7-90942a5b84cf");
+ .discountAmount(2112)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"389c7c8f-8b86-4e4f-8c3c-18741c11186f","c4bb9991-95a0-4501-b1ef-ebd41af7edf0","12ea967a-31e0-4063-ae5a-4379328104a7","dc11ebad-29a0-4280-9cc4-7c5c46a8182c","e1f5afaf-930d-442d-91cf-26277b9b65dd","bfe64049-d1d7-429e-bc5e-018095b25256"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -377,17 +386,16 @@ void test13() throws ConnectionError, ProcessingError {
@Test
void test14() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(4058)
- .setShopSpecified(false)
- .availableShopIds(new String[]{"29d0c4ca-1538-4707-a152-21dcf67f4bdd","72f91f8e-2e47-4df7-9e18-e3fa1b313416","468e4e36-4c56-4e44-9ef1-c032000810a9"})
- .minAmount(1899)
- .storageId("78ee4ecc-13d6-49b7-ae15-05d55dcfc352");
+ .discountAmount(1015)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"deaac6d1-cc60-4263-ad5f-a9c7373aa659","96416662-9aab-4e7d-844b-2d02aec5576c","9e1f3b05-23e9-4386-8e76-7b79bddff99a","366df8f2-2803-49c3-85f2-ffcd5270ad0c","90aba577-34bf-4640-93ce-d6a418a57317","c4e175f3-6584-464f-8c6d-b34b52d8ca8d","572a4864-c9f1-45d8-831b-f69a60638c95"})
+ .numRecipientsCap(7526);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -402,18 +410,17 @@ void test14() throws ConnectionError, ProcessingError {
@Test
void test15() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(2182)
- .setShopSpecified(false)
- .availableShopIds(new String[]{"aeb86f97-1cd9-4982-b3b1-f442a3277bd4","38ce07e2-54cb-4b6a-b994-d08a4f2c0b51","5a6c7a65-e9fc-41cd-a6c7-9f57b207b055","26ec1cb4-1db6-426c-8031-89c08c1b28e5","96ceea76-9032-470b-b351-aedbe0d22c35","66632850-0edf-4705-9bd4-9f8c07ca4aa1"})
- .usageLimit(8272)
- .minAmount(8679)
- .storageId("545687f4-0792-442e-b43d-6a34a7823606");
+ .discountAmount(6146)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"4ee4956a-d17a-4109-a5e0-804192ac7a6d","32c0de6b-e9d6-4a99-a519-197e2c6a791f","4aa49501-5779-403c-a016-79a3813cf4e2","50c3b2a0-f556-45f1-a270-633191a80a1c","b1224fd9-a3f2-45fa-b510-69f2c7eaf16b","dc11b00f-892a-4d3f-b193-bc9c195e7387","2ce23d7b-73c9-4f8f-bbc1-c7f70d8ed063","564af7ca-5336-435e-b3f8-e8b22e1cf857","7845fa70-d389-4e82-ac2d-646b882063ac","f3bff786-e01e-42f1-b2af-403fa3ec4246"})
+ .storageId("287f970d-2513-4e64-aa07-2b843397d91e")
+ .numRecipientsCap(8964);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -428,19 +435,18 @@ void test15() throws ConnectionError, ProcessingError {
@Test
void test16() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(7489)
- .setShopSpecified(false)
- .availableShopIds(new String[]{"2b2a45aa-bd3c-4fad-b7dc-4722c47e733f","d8f0d850-a4c0-4f31-9a24-9da0d08b8117","8065e7a4-ac30-40ca-9694-5ce61e62503a","d20cfec6-32ba-4ddc-b952-b1aa466b6bd3"})
- .code("f0Q")
- .usageLimit(945)
- .minAmount(3824)
- .storageId("601055ed-8068-42d7-8881-e6cef7ce467b");
+ .discountAmount(8587)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"3bf178fd-30b6-4443-85d4-0f60afda826c","c0599d18-7637-4b36-ad83-0aa7b3f82427","948588b4-2775-4431-8093-51e242c40045","5a77897b-ec55-467c-8a75-b6dbf9e7e38f","60f9ce2e-4cda-4ea7-b321-cca5f9fd223c","315959da-402a-4ed8-a445-e65b275e1a90","a24527e9-8807-4700-a7f3-ec586b237d22","fffea0c8-fe16-4047-8671-453271930c6f","4e6e6ce6-ed52-48be-9d3f-642b233df454"})
+ .minAmount(8943)
+ .storageId("c1623ec0-c205-4659-b542-70d858a4a4e7")
+ .numRecipientsCap(9110);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -455,20 +461,19 @@ void test16() throws ConnectionError, ProcessingError {
@Test
void test17() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(1822)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"9e9a2465-dc02-48b7-87c5-bc056113af3a","2c35717b-616a-489d-9e08-cdc2d0b79cbc"})
- .setPublic(true)
- .code("kQNn9uWl9")
- .usageLimit(2067)
- .minAmount(8138)
- .storageId("3f23cb2d-b775-4aa2-811e-375ea0720e6e");
+ .discountAmount(4398)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"1bc1c88f-c43c-4493-bb3a-aeea94d5b31a","ea634ec9-2679-4390-9a1f-261a8f06c4af","c478a3c9-7cca-49c5-837a-a18ea1501c16","13efbea8-2d02-4386-8bbe-bad8d9c192fe"})
+ .usageLimit(1694)
+ .minAmount(4165)
+ .storageId("35763d4d-3285-4374-94a4-daa8d5832453")
+ .numRecipientsCap(8048);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -483,21 +488,20 @@ void test17() throws ConnectionError, ProcessingError {
@Test
void test18() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(5150)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"0b4f4421-9d00-4fe0-b966-0d7410a6e611","45b6b7dc-03f7-42ab-a77c-4a39f0fa509d","d3359973-3ada-4636-85cf-e4581214cf6d","0ea9a38e-2c1a-417a-aecd-89f37e7e3a4d","1c52da93-b583-4b56-8544-4be84462aadf","b76ea00d-ae62-4da1-babe-70dd7c36b1a7"})
- .setHidden(true)
- .setPublic(true)
- .code("vUl3UtK")
- .usageLimit(443)
- .minAmount(9691)
- .storageId("99f70450-3c88-4f92-b5a8-815441d23bcc");
+ .discountAmount(3691)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"13006259-8a8b-498c-aba7-b252476446e9","7a9e66a1-25c1-4c1e-b2e9-378c636dbeeb","b4fc4696-96d7-468f-aabc-4009d0495107","800ebd20-18da-4ed3-b615-2d8a06e8f857","cff76807-9eba-463a-8134-bd5dff00d727","6b0fd8b9-6385-48bc-826f-12a8a2b9a03d","a0a38211-0c20-422c-84b8-95c8b4a86ead","6437c99d-b1d1-41d5-8521-ee035e1d7aa8"})
+ .code("ypAtZsgS")
+ .usageLimit(7620)
+ .minAmount(3919)
+ .storageId("c1961a3d-49c1-457f-9bd3-05086061a50b")
+ .numRecipientsCap(430);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -512,22 +516,21 @@ void test18() throws ConnectionError, ProcessingError {
@Test
void test19() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(7936)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"bc9084e8-2abf-48ec-9bc0-ee3db3664d6c","442f821d-d401-46b0-87d0-0e9c724bb834","52dabad1-e9a9-4941-ab0a-37d10ff91bbd"})
- .setDisabled(false)
- .setHidden(false)
- .setPublic(false)
- .code("PrTAo5HhY")
- .usageLimit(7829)
- .minAmount(8706)
- .storageId("c4d8b70b-04ea-4e43-a17e-ca4747eda32b");
+ .discountAmount(5686)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"4854e7be-40d7-432c-8f80-758240344cbe","762e1f92-1034-4b08-88ac-ae79a6f1569d","e0a172e3-3f23-4945-8bbe-5981d0ab5c65","f2886a2f-8fc8-4472-aebb-0926a5ba9c34","9adc3036-eb33-4305-9736-7829a4717491","aaad489b-28ec-4896-929c-52d834dae4de","e993b89b-d9d4-452e-b2b2-e78d417b0b1f"})
+ .setPublic(true)
+ .code("PpZt0j1CI3")
+ .usageLimit(8812)
+ .minAmount(3485)
+ .storageId("edac1114-1fca-4214-90b3-39b02129d7f1")
+ .numRecipientsCap(261);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -542,23 +545,22 @@ void test19() throws ConnectionError, ProcessingError {
@Test
void test20() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(5469)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"bfa7c7c0-3b9c-4b94-aa14-a4f5cb51b54a","283a90af-a42d-457c-aeae-8788128323c3","2ad38266-707b-4905-822c-b8cf0d9ee834","85fa7efb-b757-4631-838e-f8c95385e556","1912f30e-8996-46b2-9556-dee9e853a75a","753e7a56-e73c-4cc8-80d2-d6572b3b7305"})
- .displayEndsAt("2023-06-05T01:05:20.000000Z")
- .setDisabled(false)
+ .discountAmount(5278)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"028382fe-4112-4156-b266-6139e0c4505b","4f3f253b-57b9-4024-ad7e-39d09cb349cf","681ce5a6-e46f-4ee0-ac71-77318f3eefba","3fc1d565-2a5e-45e9-aad7-713961a4d840","db71b318-6fd2-45ad-ba75-cc7ed5ee63ce","b260b41a-fa5e-44c8-9fd8-a85ec8e3dfcc","d2b96673-e318-4f62-a5fd-17599c7ed26d","b0c8565d-3aac-46f2-a6a9-4ebaa4b5c0c8","a17b3bf7-e9e9-4cba-80a5-eb57374200b6"})
.setHidden(false)
- .setPublic(true)
- .code("j3cWX")
- .usageLimit(3634)
- .minAmount(3770)
- .storageId("f89234cc-76c8-4f00-8cdb-5b786f0b6a09");
+ .setPublic(false)
+ .code("eh")
+ .usageLimit(2975)
+ .minAmount(6390)
+ .storageId("2c5c2e1b-8b4b-454c-a8f5-10b9a1df1fea")
+ .numRecipientsCap(6868);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -573,24 +575,23 @@ void test20() throws ConnectionError, ProcessingError {
@Test
void test21() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(7932)
- .setShopSpecified(false)
- .availableShopIds(new String[]{"b9a977d6-8c5d-4cc3-bed2-d0d889492ca4","d5818992-91a3-414a-b752-3752962d62b9","3b4a82f6-6be8-4729-8ec9-ab142d84ff3e","7c3f0883-25f5-4215-85a0-8e8bb1029db3"})
- .displayStartsAt("2020-06-06T14:51:56.000000Z")
- .displayEndsAt("2020-10-14T03:23:02.000000Z")
- .setDisabled(true)
- .setHidden(true)
+ .discountAmount(2041)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"3b51ea6b-0a40-48ab-91f9-d94492b0c498"})
+ .setDisabled(false)
+ .setHidden(false)
.setPublic(false)
- .code("kGd5KFM")
- .usageLimit(6689)
- .minAmount(5918)
- .storageId("3ff0cbea-6953-4c7b-be3e-4e25fc26bbc8");
+ .code("xjQhXv")
+ .usageLimit(1649)
+ .minAmount(643)
+ .storageId("50ac1dba-b027-444e-986b-c555688926f7")
+ .numRecipientsCap(6897);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -605,25 +606,24 @@ void test21() throws ConnectionError, ProcessingError {
@Test
void test22() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(9996)
+ .discountAmount(2564)
.setShopSpecified(false)
- .availableShopIds(new String[]{"ce67f98f-0785-42db-9210-8a21966fd081","0743d597-9212-467d-81b9-ff1b6fa09481"})
- .discountUpperLimit(8133)
- .displayStartsAt("2022-11-04T06:50:09.000000Z")
- .displayEndsAt("2020-12-08T05:10:13.000000Z")
- .setDisabled(true)
+ .availableShopIds(new String[]{"8aad454f-924a-4762-a67e-430e5cf27bcd","655bd3fa-a6d4-4704-90cd-15e9ca3bca35","c919ccce-1507-49e1-91c4-b2f167378d76","4667178a-2249-402f-8b8e-5f6bd311f145","434f4022-72e7-4eeb-a902-4ed5298f0d91","5a906abf-0131-42e9-874a-916f6f5eb934","c04339fc-2e56-4380-a4a6-0b042fe6d10d","9214441d-65e5-4a75-af31-d714188bfa0e","abfc0389-d2ee-4d44-a4b6-86322923df70"})
+ .displayEndsAt("2025-03-14T02:49:41.000000Z")
+ .setDisabled(false)
.setHidden(true)
.setPublic(true)
- .code("iSyzzCHj")
- .usageLimit(1238)
- .minAmount(6853)
- .storageId("20142e89-d545-40e7-b087-ecba52153bfc");
+ .code("fX")
+ .usageLimit(6786)
+ .minAmount(4809)
+ .storageId("daca3319-2b62-4c75-973a-7dd7b5e99492")
+ .numRecipientsCap(234);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -638,26 +638,25 @@ void test22() throws ConnectionError, ProcessingError {
@Test
void test23() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountAmount(3312)
- .setShopSpecified(false)
- .availableShopIds(new String[]{"c9e7db59-433c-465b-bb44-154641e462a1","53201ac6-a0c4-4e02-988d-bb162d001ed9","2e50fd91-d7ad-4b31-b12d-9af5dcc54c78","8902bd4e-616b-4d95-ae53-82c05b93440b","e6d3d19f-7223-42d3-b12e-b3f679e4b5ed","52a56b1c-8821-4c1d-8328-e14cec90ca4f","a4ebd455-d6ec-41dd-a064-de201fd3fcbe","f4e4f526-801c-4363-b1b7-b07ab869d23c"})
- .description("rM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3j")
- .discountUpperLimit(8101)
- .displayStartsAt("2024-04-06T13:04:31.000000Z")
- .displayEndsAt("2024-01-07T07:14:33.000000Z")
+ .discountAmount(6548)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"f665a61e-c233-4fdd-a6bf-e55538ef4c02","cbc72759-5781-464f-bad7-aea9f8bc3f0a","a7052107-d200-462e-afc5-3d7a8cf8b0ed","4d13f1b8-6bc1-4432-83c1-f5c7456e8e3c","2d2030ec-5481-4899-a13d-150c4b121196","8f223a0f-eb1f-4420-b9a3-e80ffb6a15f9","508e0ee9-c68b-4b76-985b-6d0799b36dda","b7e484c2-7223-43af-b8e6-291c0ed0ebde","d6e08ad1-028f-4836-9409-d8dc17170cd8","79503dac-28bb-4fcd-a95c-a6ff3be0d4c1"})
+ .displayStartsAt("2024-12-29T21:43:48.000000Z")
+ .displayEndsAt("2023-04-22T20:16:04.000000Z")
.setDisabled(false)
- .setHidden(true)
- .setPublic(false)
- .code("VDn")
- .usageLimit(7260)
- .minAmount(6071)
- .storageId("466bd282-148a-470e-965f-c802f899a2c1");
+ .setHidden(false)
+ .setPublic(true)
+ .code("SO")
+ .usageLimit(1779)
+ .minAmount(9793)
+ .storageId("3f387246-01fb-4f4d-8352-7d3a81493dee")
+ .numRecipientsCap(7490);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -672,13 +671,26 @@ void test23() throws ConnectionError, ProcessingError {
@Test
void test24() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(6905.0);
+ .discountAmount(1559)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"41c9faf1-6a1c-4aca-a283-10f6159ba4ba","225292b3-ef5d-4c9e-83a6-3284c791280f","8212e6d9-8786-4f6f-a93f-3429a1ac317c"})
+ .discountUpperLimit(7065)
+ .displayStartsAt("2024-07-04T21:40:30.000000Z")
+ .displayEndsAt("2026-05-04T19:17:37.000000Z")
+ .setDisabled(true)
+ .setHidden(true)
+ .setPublic(true)
+ .code("UUxf")
+ .usageLimit(4757)
+ .minAmount(510)
+ .storageId("34147fc8-188d-47aa-a415-1eeb0973bf46")
+ .numRecipientsCap(9947);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -693,14 +705,27 @@ void test24() throws ConnectionError, ProcessingError {
@Test
void test25() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(3816.0)
- .storageId("025def26-9766-4731-960b-e5e1d03e4c32");
+ .discountAmount(8158)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"15b81c8d-186a-4ba7-af6a-bab42c0c28ba","d7b4b2c5-ec60-4119-a982-c960593e3439","d8764f1d-5fa5-475c-b028-43b6eb0a2f68","28d67c1b-236a-471d-92cf-0202371e9ea8"})
+ .description("DSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D46SGfEdpD0URVkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iMjgCaf4v1F7zb24TvVYy")
+ .discountUpperLimit(4104)
+ .displayStartsAt("2023-10-08T11:21:01.000000Z")
+ .displayEndsAt("2021-04-15T18:58:15.000000Z")
+ .setDisabled(true)
+ .setHidden(false)
+ .setPublic(false)
+ .code("oNYL")
+ .usageLimit(7753)
+ .minAmount(545)
+ .storageId("b2be0958-4786-41f8-a48d-6ef122d24cef")
+ .numRecipientsCap(8033);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -715,15 +740,13 @@ void test25() throws ConnectionError, ProcessingError {
@Test
void test26() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(1815.0)
- .minAmount(8361)
- .storageId("2fcab82a-92e9-4e91-9693-61b4e4962c8d");
+ .discountPercentage(3822.0);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -738,16 +761,14 @@ void test26() throws ConnectionError, ProcessingError {
@Test
void test27() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(7640.0)
- .usageLimit(2402)
- .minAmount(9467)
- .storageId("0d909ab0-0836-47d9-8f13-f081575448b5");
+ .discountPercentage(619.0)
+ .numRecipientsCap(6942);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -762,17 +783,15 @@ void test27() throws ConnectionError, ProcessingError {
@Test
void test28() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(6535.0)
- .code("FN9bW")
- .usageLimit(7865)
- .minAmount(2539)
- .storageId("adbf89ad-7822-4513-b3c6-922a83c93cba");
+ .discountPercentage(71.0)
+ .storageId("c5bf1d7d-08f1-4e58-acca-0298946c5f70")
+ .numRecipientsCap(380);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -787,18 +806,16 @@ void test28() throws ConnectionError, ProcessingError {
@Test
void test29() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(7691.0)
- .setPublic(true)
- .code("8sMw")
- .usageLimit(6242)
- .minAmount(9832)
- .storageId("2d4b08c0-8201-4831-9746-89a56d1f4194");
+ .discountPercentage(4050.0)
+ .minAmount(2129)
+ .storageId("ee1b18f7-4c2b-48db-b039-f32a0ac6eaee")
+ .numRecipientsCap(4373);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -813,19 +830,17 @@ void test29() throws ConnectionError, ProcessingError {
@Test
void test30() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(9204.0)
- .setHidden(true)
- .setPublic(true)
- .code("EmCrF")
- .usageLimit(5037)
- .minAmount(4749)
- .storageId("143eb371-58ce-4392-b73f-b128c0ef59a9");
+ .discountPercentage(5817.0)
+ .usageLimit(2981)
+ .minAmount(7071)
+ .storageId("13248163-bf76-4830-9884-e6f0353b9332")
+ .numRecipientsCap(890);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -840,20 +855,18 @@ void test30() throws ConnectionError, ProcessingError {
@Test
void test31() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(3684.0)
- .setDisabled(true)
- .setHidden(true)
- .setPublic(false)
- .code("5Q")
- .usageLimit(5856)
- .minAmount(8045)
- .storageId("8c30ebc6-f94d-4a05-b6fb-e5ecc5ed5123");
+ .discountPercentage(5735.0)
+ .code("KqGnnOeMt")
+ .usageLimit(7878)
+ .minAmount(6042)
+ .storageId("01d4b674-9597-4e6f-b312-ae1d03e5f0be")
+ .numRecipientsCap(6530);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -868,21 +881,19 @@ void test31() throws ConnectionError, ProcessingError {
@Test
void test32() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(6297.0)
- .displayEndsAt("2022-04-29T07:55:42.000000Z")
- .setDisabled(true)
- .setHidden(true)
+ .discountPercentage(6720.0)
.setPublic(true)
- .code("a2")
- .usageLimit(8588)
- .minAmount(1448)
- .storageId("0ad47ba4-5ea6-4e83-a76f-ea18a4c48b28");
+ .code("BMyDD")
+ .usageLimit(2080)
+ .minAmount(7579)
+ .storageId("ba85673b-dbb0-4c91-8aa9-a0ab00ce5929")
+ .numRecipientsCap(8340);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -897,22 +908,20 @@ void test32() throws ConnectionError, ProcessingError {
@Test
void test33() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(8908.0)
- .displayStartsAt("2023-12-22T04:20:55.000000Z")
- .displayEndsAt("2023-10-15T14:09:14.000000Z")
- .setDisabled(false)
- .setHidden(false)
+ .discountPercentage(4204.0)
+ .setHidden(true)
.setPublic(false)
- .code("E9OEvOU")
- .usageLimit(4169)
- .minAmount(7785)
- .storageId("3d98deae-d342-4b3e-b7e2-19bc6c04764a");
+ .code("WFE85")
+ .usageLimit(1370)
+ .minAmount(9255)
+ .storageId("4abb60e2-5755-49aa-bde1-d2ae26ab5320")
+ .numRecipientsCap(7967);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -927,23 +936,21 @@ void test33() throws ConnectionError, ProcessingError {
@Test
void test34() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(5017.0)
- .discountUpperLimit(4268)
- .displayStartsAt("2023-04-20T09:30:47.000000Z")
- .displayEndsAt("2020-06-02T02:54:45.000000Z")
+ .discountPercentage(6740.0)
.setDisabled(true)
.setHidden(false)
- .setPublic(false)
- .code("fgOe9n")
- .usageLimit(1238)
- .minAmount(6254)
- .storageId("27c7e262-9c4f-46ae-8de6-bb5bcc92f031");
+ .setPublic(true)
+ .code("hmx5")
+ .usageLimit(4448)
+ .minAmount(6411)
+ .storageId("e5eb904c-b693-4c71-8293-9527089550f6")
+ .numRecipientsCap(7015);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -958,24 +965,22 @@ void test34() throws ConnectionError, ProcessingError {
@Test
void test35() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(1885.0)
- .description("ceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8")
- .discountUpperLimit(8336)
- .displayStartsAt("2020-01-06T07:23:01.000000Z")
- .displayEndsAt("2020-06-15T12:46:52.000000Z")
+ .discountPercentage(5079.0)
+ .displayEndsAt("2024-10-25T10:16:18.000000Z")
.setDisabled(false)
.setHidden(false)
.setPublic(true)
- .code("kI4pFJl")
- .usageLimit(6655)
- .minAmount(3551)
- .storageId("126693af-cedc-4cb8-a1b4-05b925102d26");
+ .code("EB880lMB")
+ .usageLimit(9533)
+ .minAmount(4932)
+ .storageId("d321bac5-e32a-4a88-80de-3d19a602c8f4")
+ .numRecipientsCap(5095);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -990,15 +995,23 @@ void test35() throws ConnectionError, ProcessingError {
@Test
void test36() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(8325.0)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"55e623d3-3008-4ae9-92d6-d0729014de2b"});
+ .discountPercentage(9079.0)
+ .displayStartsAt("2026-03-29T13:02:45.000000Z")
+ .displayEndsAt("2022-06-09T23:48:40.000000Z")
+ .setDisabled(true)
+ .setHidden(false)
+ .setPublic(true)
+ .code("scPUoeV1X")
+ .usageLimit(2077)
+ .minAmount(8254)
+ .storageId("227d8f5f-23c8-4eb7-9138-cde8a3064caf")
+ .numRecipientsCap(5088);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1013,16 +1026,24 @@ void test36() throws ConnectionError, ProcessingError {
@Test
void test37() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(8900.0)
- .setShopSpecified(false)
- .availableShopIds(new String[]{"935a1f6d-fcca-4e9d-b59f-4b54854d1e50","09a8f22f-8f10-4e6b-8cf5-765e55b2e64e","9fc13405-bae7-4909-a5ee-32a37371a375","50f44395-9db1-43a2-b863-bddf5cace7be","902469db-15b0-454b-ae8f-e736833a1150","cc6ad596-fb7a-4dca-862c-4bd1ef36c413","2c0b50ed-ec2c-41b7-b768-2c0729ef987b","e907ae43-0118-41ae-9bb3-9b0cf54ffa40","ff729413-8ce2-4abd-be79-10d9b7b8c4a4","69cef47c-5a68-426e-9e40-a15db0919805"})
- .storageId("dbd238bf-74eb-4939-8c36-0a79ca2eedb5");
+ .discountPercentage(7751.0)
+ .discountUpperLimit(9738)
+ .displayStartsAt("2025-12-03T15:51:58.000000Z")
+ .displayEndsAt("2025-05-21T19:35:42.000000Z")
+ .setDisabled(true)
+ .setHidden(false)
+ .setPublic(true)
+ .code("x9H0O")
+ .usageLimit(6352)
+ .minAmount(951)
+ .storageId("e1337ad2-d4db-480b-98f3-330e2a150ea6")
+ .numRecipientsCap(2564);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1037,17 +1058,25 @@ void test37() throws ConnectionError, ProcessingError {
@Test
void test38() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(2100.0)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"298885eb-261f-4c15-a34e-76c868c83027","d9f60dd2-e9cd-4a5c-9818-c02e7433add1","08083083-b4d4-4a7a-9dd7-0d0c6491a8b1","94c1bb16-553d-44a5-a9c2-970faebdd969","baba755e-cdd5-4cfd-a0c9-4118da35531c","1c8d12a8-91fd-4535-ba5f-8f4ae394208f","f376cade-09af-443a-873a-e37f67fd241e","7d2c923f-e862-4e00-a8c7-4eefd1c02545"})
- .minAmount(7161)
- .storageId("3f29d096-da9e-4404-99cb-2a97108e0b05");
+ .discountPercentage(4345.0)
+ .description("9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiU")
+ .discountUpperLimit(3865)
+ .displayStartsAt("2025-10-15T05:59:02.000000Z")
+ .displayEndsAt("2020-07-25T19:29:19.000000Z")
+ .setDisabled(true)
+ .setHidden(true)
+ .setPublic(false)
+ .code("eza9F")
+ .usageLimit(2936)
+ .minAmount(7800)
+ .storageId("8721c601-b223-4e3c-b39b-10c7a3a88503")
+ .numRecipientsCap(9301);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1062,18 +1091,15 @@ void test38() throws ConnectionError, ProcessingError {
@Test
void test39() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(2185.0)
+ .discountPercentage(6567.0)
.setShopSpecified(false)
- .availableShopIds(new String[]{"c627f3ef-a930-4b04-97ad-45768dcfdd4e","67908976-c2f5-47e0-9d7c-091bd2633dda","971cdf32-d77a-4e4f-8e91-f12542046b8a","b92bbb9b-9cf9-4602-be6d-eebdb03f06e4","30f6517d-1f8f-4b00-960f-e29e7e20bd8c"})
- .usageLimit(7222)
- .minAmount(5012)
- .storageId("52ebbb80-abaf-4a81-a0a1-b89408e5a109");
+ .availableShopIds(new String[]{"bab9e0dc-4781-4a1b-8a75-f1606f03ddf5","ded2e76e-7e04-4d0d-9f10-d24d7e9bb9ce","7fd33a9c-8a88-4c9f-9228-bfde003acb20","1cbbbd4d-4337-4c4a-bd55-7fd628398cf5","6c5baa37-79fc-43d9-a7a8-849e27f7f744","5aad0f84-a949-48b0-9f0f-a75f25d0a5a1"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1088,19 +1114,16 @@ void test39() throws ConnectionError, ProcessingError {
@Test
void test40() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(4730.0)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"cc6bf7b6-f610-4710-b3dc-5a6c0f58fd7b","c625cb5f-9b9e-405b-8622-76f235ed48f9"})
- .code("8C4rDtJ")
- .usageLimit(5582)
- .minAmount(1855)
- .storageId("e2dbf0fa-66fc-4895-a345-c3465577b31d");
+ .discountPercentage(3371.0)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"bf73b9a6-823c-47fa-9d83-a8d3b92ef5ed","a9779310-4d2a-4a87-a1b6-e8b3eeeca7e3","0a917dfe-dd21-43ad-955e-533df65ecabd","316e7fb4-cc19-4439-bae1-79b1e9d64e9c","b089b6a8-a03e-44a7-91aa-239f9a8e424a","c5077541-36af-4f1b-8c1e-f3e330c78f70"})
+ .numRecipientsCap(3269);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1115,20 +1138,17 @@ void test40() throws ConnectionError, ProcessingError {
@Test
void test41() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(2148.0)
+ .discountPercentage(9021.0)
.setShopSpecified(true)
- .availableShopIds(new String[]{"4c0009ef-f296-4117-a2b4-98bc3219c2bb","4244be06-4eb2-4db7-8912-6025c4b5a3d3","cddfb65e-5b95-48bd-8205-bf79523b46f5","6a421a5e-e124-479e-ad38-97cd6539aa0f","1b818799-0fc9-4b72-a0d6-5f95c9d93629","cfcdafbc-a4f5-4be7-962e-d45ca9b93bc2","24ecb5a2-89a4-46a4-a7af-2166e0fda2d4"})
- .setPublic(false)
- .code("i")
- .usageLimit(3390)
- .minAmount(5939)
- .storageId("9c20b5ad-eb71-481c-ab70-91ab73d86e1e");
+ .availableShopIds(new String[]{"6b3fd959-44cb-4ea1-a06f-b83ee825f261","2929e495-c78d-4247-a6da-3f187b589ca7","f9f0d271-b0c6-4651-84d2-89a970b81910","43a6a612-098d-4ddf-a0cd-df2f35173e59","31594622-88ea-46b7-a5c9-799653b2b4bb","813fe192-31b0-409a-8fe9-d627d7260bd4","f3415e22-ffe7-4520-be3f-022a793b72ac","528e0966-fd3d-4c50-ba96-2272a2523db6"})
+ .storageId("2234c8b8-0ee6-42d0-a62b-9e322d17f741")
+ .numRecipientsCap(5023);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1143,21 +1163,18 @@ void test41() throws ConnectionError, ProcessingError {
@Test
void test42() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(344.0)
+ .discountPercentage(3205.0)
.setShopSpecified(false)
- .availableShopIds(new String[]{"074885e7-e403-4413-9a5a-1dee6263345a","b8bd1f22-b4b3-4d15-a0cc-8f83d387101e","1139d74a-96cf-43f5-a7b3-7a8d99e69d69","880c921b-f277-46a3-a985-6ba8fa46601f"})
- .setHidden(true)
- .setPublic(true)
- .code("HdsS3")
- .usageLimit(3756)
- .minAmount(133)
- .storageId("83f44596-2a53-4d05-a8ea-7b8f91f114af");
+ .availableShopIds(new String[]{"9b2bced2-7ac3-4526-b15b-dfd673aef183","c8c46409-1713-40df-a06a-734909fab14d","0b7a895a-1bac-46f5-9506-adec6781996c","08e9bc08-930e-4ff4-a1da-0974329da26a","ecbee317-c3e7-484d-bb3a-6ce61404a986","df780275-8ba2-4fc4-b86e-ef8b7c7945b3","ebc46d24-402f-409d-913f-b4277ca0bde7","6e854da7-9273-4cae-a9e4-5bc57fdbb68f","49c7421f-6d60-4075-a611-363280112b4e"})
+ .minAmount(5954)
+ .storageId("83516e48-a3e5-4204-97a1-325aa96f5c1f")
+ .numRecipientsCap(7358);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1172,22 +1189,19 @@ void test42() throws ConnectionError, ProcessingError {
@Test
void test43() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(3857.0)
+ .discountPercentage(5652.0)
.setShopSpecified(true)
- .availableShopIds(new String[]{"0b31ac34-f91f-4253-815c-3c3fdd13c1f2","39da7e0d-6db1-4667-8fab-81d32052d05c"})
- .setDisabled(false)
- .setHidden(true)
- .setPublic(false)
- .code("Pel")
- .usageLimit(7033)
- .minAmount(3063)
- .storageId("f12ef0a9-645b-4f71-ae27-6f6b27922871");
+ .availableShopIds(new String[]{"2b73fe5b-285c-47bd-a8d9-c04b46610abd","fb0f1e6e-3687-43f2-9f19-747a07d3db4a","f4450c23-4d1a-4e57-bb0c-b7fca018ea92","91e9338d-f119-437b-a970-6ef4912f9c7c","d6fd4288-fb98-47cd-a82a-623f3a0a71f9","1904eb22-2caa-4a81-8f25-8aafc4c45598","46ecef57-c655-438e-a921-43b6f2e335b4","1f7a18d9-e0ae-4eda-a291-ab2c6a8e4a47"})
+ .usageLimit(1818)
+ .minAmount(7945)
+ .storageId("fa1a52e5-599f-46f9-8353-c5c6ad391f48")
+ .numRecipientsCap(9767);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1202,23 +1216,20 @@ void test43() throws ConnectionError, ProcessingError {
@Test
void test44() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(7976.0)
+ .discountPercentage(3821.0)
.setShopSpecified(false)
- .availableShopIds(new String[]{"ed415e4a-40c7-491c-86db-6b7b9047bc21","96da3455-78a4-4357-971f-58de46390022","52b95c63-588c-40df-82ae-d68f76c870f3","1cbc1fb7-844f-4a4b-b22b-876189a34d37","d48ccbdd-7dcc-490d-a1bd-c1d40e3b0e47","11a83669-d680-4d2d-8ae0-71a50b0f02d3","b8876de9-e6b2-44ee-9f56-5643e01671e1"})
- .displayEndsAt("2023-05-18T23:24:23.000000Z")
- .setDisabled(false)
- .setHidden(false)
- .setPublic(false)
- .code("Wf")
- .usageLimit(6811)
- .minAmount(8019)
- .storageId("08830937-d988-4741-b15c-657798bfddcc");
+ .availableShopIds(new String[]{"08042008-ab72-4e43-bb42-c9bab3169538","8ea1343e-d298-44de-b424-3f8352ef8f8b","9b1c61f1-8a8c-4a38-b1fb-9704b9f21ca0","b610d032-3bc9-460e-96d9-5e03bf073c32"})
+ .code("UPxEK8m")
+ .usageLimit(6573)
+ .minAmount(4615)
+ .storageId("0073fc0a-6b48-4e1f-aea3-42a8725ef9bd")
+ .numRecipientsCap(9256);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1233,24 +1244,21 @@ void test44() throws ConnectionError, ProcessingError {
@Test
void test45() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(492.0)
- .setShopSpecified(true)
- .availableShopIds(new String[]{"614a3316-a7e9-4715-a33e-02cfa30af7c2"})
- .displayStartsAt("2022-08-19T08:58:33.000000Z")
- .displayEndsAt("2022-03-25T12:11:45.000000Z")
- .setDisabled(true)
- .setHidden(true)
+ .discountPercentage(6377.0)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"d7bfe7a5-7ba1-4cc9-a1dc-5ec3c80d48c0","36882209-50aa-4cdf-aeb2-9bf8ff5c7a05","681b7af4-79a9-4465-93a9-8bccff615686","f03071c5-99ed-4d4f-8e7b-cd1fc16838f0","110c182b-f773-46b6-a575-b6db4272a7e0","6bd3de7d-c234-41d0-b2b2-ef72c6137598","3e54853f-438e-4599-9c9c-063eb26aec6a","a78647d4-bf34-459b-a47f-04ae80f32fa6"})
.setPublic(false)
- .code("F")
- .usageLimit(4045)
- .minAmount(8409)
- .storageId("a3f6e75e-cad1-464c-911b-720b25f9c608");
+ .code("T")
+ .usageLimit(5913)
+ .minAmount(3350)
+ .storageId("7a92cffd-75c2-4de7-bd4c-cbbde99d0797")
+ .numRecipientsCap(5912);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1265,25 +1273,22 @@ void test45() throws ConnectionError, ProcessingError {
@Test
void test46() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(3147.0)
+ .discountPercentage(9330.0)
.setShopSpecified(false)
- .availableShopIds(new String[]{"68d9266a-f65d-445f-a471-3588e7417dc8","520127b9-c760-48a5-8b87-53e0cee1e364","a2bd8df9-53e0-441a-a6e7-851a622658f3"})
- .discountUpperLimit(4934)
- .displayStartsAt("2020-05-16T10:47:43.000000Z")
- .displayEndsAt("2021-11-05T09:57:35.000000Z")
- .setDisabled(true)
+ .availableShopIds(new String[]{"0d52c14a-f1ec-4e22-a411-049cbf709096","b74f52d9-27c0-4584-ba14-61956a4f06ac","91571aed-6a06-49d3-9e2f-585efed8d786","19edcb84-0dfd-4b05-b144-658eda75c8b3","3e17ce7b-3aea-4b68-be0d-129dc554ac5e","d6215d30-17cb-4474-af51-6e612ecca4a0","db0a52e5-9ffe-44e1-97b3-75f6f053cb2e","b1c79c37-4599-457b-b73f-8d812995a17f"})
.setHidden(true)
.setPublic(false)
- .code("89Abrha")
- .usageLimit(5397)
- .minAmount(389)
- .storageId("c28b0a7e-0bd7-4eff-921c-1acdbdd36389");
+ .code("e7b9HTOawW")
+ .usageLimit(428)
+ .minAmount(3738)
+ .storageId("5b8d1ced-1710-4e1f-8fca-966ca9996590")
+ .numRecipientsCap(9863);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1298,26 +1303,157 @@ void test46() throws ConnectionError, ProcessingError {
@Test
void test47() throws ConnectionError, ProcessingError {
Request request = new CreateCoupon(
- "6766f169-5df9-4e9b-8e09-a269a879dd33",
- "aAuGXWsNdhyWJyqrPAKmmZGZJN",
- "2022-07-04T11:47:15.000000Z",
- "2021-02-13T08:49:11.000000Z",
- "602867b4-6c6a-49ba-ab32-7161fcd53418"
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
)
- .discountPercentage(6992.0)
+ .discountPercentage(978.0)
.setShopSpecified(true)
- .availableShopIds(new String[]{"55441377-1a40-4abf-8139-be29a27307aa","6b74cb42-7e16-4462-ab1e-fc578338f53d","1e068547-1edd-47bb-8c57-2578b6155354","8e7f264f-c614-400b-91dd-5aa803069f2d","92ee026e-c4bd-4ef1-8d5b-cda1faee8148"})
- .description("U20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6H")
- .discountUpperLimit(3746)
- .displayStartsAt("2022-06-21T01:16:33.000000Z")
- .displayEndsAt("2020-06-13T02:31:21.000000Z")
+ .availableShopIds(new String[]{"7f628e39-b17d-4699-8df2-12efb984c4e7","e9f86ad6-0f5a-4577-9c4a-5e1b8e97ca4f","5a6f5f9a-569d-4283-b206-c5f8b39bee0e","dec1dc27-00fe-41bd-857b-e94ec4f884e3"})
+ .setDisabled(true)
+ .setHidden(true)
+ .setPublic(false)
+ .code("Ub")
+ .usageLimit(9563)
+ .minAmount(4086)
+ .storageId("c1c8761f-db19-4ee0-8cf0-4225357ae54e")
+ .numRecipientsCap(8314);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test48() throws ConnectionError, ProcessingError {
+ Request request = new CreateCoupon(
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
+ )
+ .discountPercentage(6268.0)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"9bc65800-d296-4b22-898f-7ffd0a2242b0","b68e9076-e12e-4bac-aa71-91ca1ac9b5af"})
+ .displayEndsAt("2023-08-11T13:35:52.000000Z")
+ .setDisabled(false)
+ .setHidden(true)
+ .setPublic(true)
+ .code("o")
+ .usageLimit(8533)
+ .minAmount(4539)
+ .storageId("515ddb89-91d1-46d9-b390-c93cdeb81485")
+ .numRecipientsCap(610);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test49() throws ConnectionError, ProcessingError {
+ Request request = new CreateCoupon(
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
+ )
+ .discountPercentage(6349.0)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"81f7e4f3-855f-45f2-a1ca-09d54d836561","b7e8dc63-ce59-4904-8ab2-6128bfe6627d","ca8eb6bb-89f2-4c91-99dc-5017494c208a","179e1359-ba51-40cf-b4e7-bda9acbd22a0","f300327d-131d-4892-986d-23c7113ceec8","2c0d35c3-3e8f-42dd-a62c-c062e7c424d5","0fde4a56-0db5-4326-9942-576bcca8272e"})
+ .displayStartsAt("2024-12-06T01:02:11.000000Z")
+ .displayEndsAt("2020-06-19T18:34:10.000000Z")
+ .setDisabled(false)
+ .setHidden(true)
+ .setPublic(false)
+ .code("Yi")
+ .usageLimit(4386)
+ .minAmount(83)
+ .storageId("96b6b28a-8a4e-496c-870a-5ddf4b687c21")
+ .numRecipientsCap(6725);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test50() throws ConnectionError, ProcessingError {
+ Request request = new CreateCoupon(
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
+ )
+ .discountPercentage(4987.0)
+ .setShopSpecified(true)
+ .availableShopIds(new String[]{"01a11c57-b8ab-4407-a519-3966d9fbe07a","a0d69ea6-4d5f-472b-a969-41061a1581c8","281ba306-29c9-4db3-8d45-66790d0a4fff","842e0f6b-7fce-4470-aa77-d7c3880b5923","6169799f-f9d0-4399-aaae-2ac18b00516b","e1f92ffa-9681-4ee0-b959-a2b26aa0d81b"})
+ .discountUpperLimit(2939)
+ .displayStartsAt("2025-06-08T06:43:10.000000Z")
+ .displayEndsAt("2023-12-20T19:03:09.000000Z")
.setDisabled(false)
.setHidden(false)
+ .setPublic(true)
+ .code("JJ5")
+ .usageLimit(9532)
+ .minAmount(1715)
+ .storageId("7cb28ed5-8ab3-44ce-b60a-1ebc987016c6")
+ .numRecipientsCap(1841);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test51() throws ConnectionError, ProcessingError {
+ Request request = new CreateCoupon(
+ "b397d6b1-61e5-4170-9fe1-6cc35aa32306",
+ "enfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2Ma",
+ "2024-02-28T17:56:18.000000Z",
+ "2021-11-14T01:19:11.000000Z",
+ "02f96792-d294-439a-b9ce-21e0fdcc6168"
+ )
+ .discountPercentage(4643.0)
+ .setShopSpecified(false)
+ .availableShopIds(new String[]{"dfcbf6b2-5d36-4270-a2cf-83125f9e40b3","64be2cc8-e374-4af4-ac6c-ac4732a22095","7f3b7d34-98a3-4165-94f9-fc2247bf1fe9","0e6d597d-40e1-4bf4-8b4d-724982d3d23f","9563f5ba-6337-42de-be25-70bb3651d104","15db1399-77d6-4afe-86b3-8d90749d9b64"})
+ .description("tu")
+ .discountUpperLimit(1815)
+ .displayStartsAt("2020-01-21T19:49:59.000000Z")
+ .displayEndsAt("2022-04-26T15:14:18.000000Z")
+ .setDisabled(false)
+ .setHidden(true)
.setPublic(false)
- .code("hAD4rp")
- .usageLimit(7287)
- .minAmount(5143)
- .storageId("505e7faa-8ce8-4cd7-931b-1c1116ecf546");
+ .code("Q3")
+ .usageLimit(1966)
+ .minAmount(7319)
+ .storageId("31f47817-187c-478e-bd76-df5e4ae47b5f")
+ .numRecipientsCap(5263);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java
index 6d28c489..ac9515aa 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateCpmTransactionTest.java
@@ -12,9 +12,9 @@ public class CreateCpmTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateCpmTransaction(
- "yg3cEPs9bN7e1DJRmWCvXV",
- "39a71035-8e66-4183-b79c-a92f11a3288a",
- 14.0
+ "Ccagg1x0DCy4shXKR7nTWC",
+ "eb33f579-4dc9-4274-b347-6e8b9361b3f2",
+ 3975.0
);
try {
PartnerAPITest.getClient().send(request);
@@ -30,9 +30,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateCpmTransaction(
- "yg3cEPs9bN7e1DJRmWCvXV",
- "39a71035-8e66-4183-b79c-a92f11a3288a",
- 14.0
+ "Ccagg1x0DCy4shXKR7nTWC",
+ "eb33f579-4dc9-4274-b347-6e8b9361b3f2",
+ 3975.0
)
.strategy("point-preferred");
try {
@@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateCpmTransaction(
- "yg3cEPs9bN7e1DJRmWCvXV",
- "39a71035-8e66-4183-b79c-a92f11a3288a",
- 14.0
+ "Ccagg1x0DCy4shXKR7nTWC",
+ "eb33f579-4dc9-4274-b347-6e8b9361b3f2",
+ 3975.0
)
- .requestId("77fe478d-5bc6-4e78-8807-b6de97513e52")
- .strategy("point-preferred");
+ .requestId("2fb143d5-b993-43d1-920c-7769fd077b79")
+ .strategy("money-only");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -92,61 +92,13 @@ void test3() throws ConnectionError, ProcessingError {
items3.addProperty("quantity", 1);
items3.addProperty("is_discounted", false);
items3.addProperty("other", "{}");
- JsonObject items4 = new JsonObject();
- items4.addProperty("jan_code", "abc");
- items4.addProperty("name", "name1");
- items4.addProperty("unit_price", 100);
- items4.addProperty("price", 100);
- items4.addProperty("quantity", 1);
- items4.addProperty("is_discounted", false);
- items4.addProperty("other", "{}");
- JsonObject items5 = new JsonObject();
- items5.addProperty("jan_code", "abc");
- items5.addProperty("name", "name1");
- items5.addProperty("unit_price", 100);
- items5.addProperty("price", 100);
- items5.addProperty("quantity", 1);
- items5.addProperty("is_discounted", false);
- items5.addProperty("other", "{}");
- JsonObject items6 = new JsonObject();
- items6.addProperty("jan_code", "abc");
- items6.addProperty("name", "name1");
- items6.addProperty("unit_price", 100);
- items6.addProperty("price", 100);
- items6.addProperty("quantity", 1);
- items6.addProperty("is_discounted", false);
- items6.addProperty("other", "{}");
- JsonObject items7 = new JsonObject();
- items7.addProperty("jan_code", "abc");
- items7.addProperty("name", "name1");
- items7.addProperty("unit_price", 100);
- items7.addProperty("price", 100);
- items7.addProperty("quantity", 1);
- items7.addProperty("is_discounted", false);
- items7.addProperty("other", "{}");
- JsonObject items8 = new JsonObject();
- items8.addProperty("jan_code", "abc");
- items8.addProperty("name", "name1");
- items8.addProperty("unit_price", 100);
- items8.addProperty("price", 100);
- items8.addProperty("quantity", 1);
- items8.addProperty("is_discounted", false);
- items8.addProperty("other", "{}");
- JsonObject items9 = new JsonObject();
- items9.addProperty("jan_code", "abc");
- items9.addProperty("name", "name1");
- items9.addProperty("unit_price", 100);
- items9.addProperty("price", 100);
- items9.addProperty("quantity", 1);
- items9.addProperty("is_discounted", false);
- items9.addProperty("other", "{}");
Request request = new CreateCpmTransaction(
- "yg3cEPs9bN7e1DJRmWCvXV",
- "39a71035-8e66-4183-b79c-a92f11a3288a",
- 14.0
+ "Ccagg1x0DCy4shXKR7nTWC",
+ "eb33f579-4dc9-4274-b347-6e8b9361b3f2",
+ 3975.0
)
- .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
- .requestId("27df3392-3887-41d4-a9d4-dcd7c7e0a74f")
+ .products(new Object[]{items,items2,items3})
+ .requestId("b18e12e3-9b6d-4af3-9cba-a71d869e847c")
.strategy("money-only");
try {
PartnerAPITest.getClient().send(request);
@@ -177,39 +129,15 @@ void test4() throws ConnectionError, ProcessingError {
items2.addProperty("quantity", 1);
items2.addProperty("is_discounted", false);
items2.addProperty("other", "{}");
- JsonObject items3 = new JsonObject();
- items3.addProperty("jan_code", "abc");
- items3.addProperty("name", "name1");
- items3.addProperty("unit_price", 100);
- items3.addProperty("price", 100);
- items3.addProperty("quantity", 1);
- items3.addProperty("is_discounted", false);
- items3.addProperty("other", "{}");
- JsonObject items4 = new JsonObject();
- items4.addProperty("jan_code", "abc");
- items4.addProperty("name", "name1");
- items4.addProperty("unit_price", 100);
- items4.addProperty("price", 100);
- items4.addProperty("quantity", 1);
- items4.addProperty("is_discounted", false);
- items4.addProperty("other", "{}");
- JsonObject items5 = new JsonObject();
- items5.addProperty("jan_code", "abc");
- items5.addProperty("name", "name1");
- items5.addProperty("unit_price", 100);
- items5.addProperty("price", 100);
- items5.addProperty("quantity", 1);
- items5.addProperty("is_discounted", false);
- items5.addProperty("other", "{}");
Request request = new CreateCpmTransaction(
- "yg3cEPs9bN7e1DJRmWCvXV",
- "39a71035-8e66-4183-b79c-a92f11a3288a",
- 14.0
+ "Ccagg1x0DCy4shXKR7nTWC",
+ "eb33f579-4dc9-4274-b347-6e8b9361b3f2",
+ 3975.0
)
.metadata("{\"key\":\"value\"}")
- .products(new Object[]{items,items2,items3,items4,items5})
- .requestId("94f12ee0-aa98-42cb-8c1e-da6849d2aba5")
- .strategy("money-only");
+ .products(new Object[]{items,items2})
+ .requestId("4b3fafb8-9781-46d4-b261-ddacb933a947")
+ .strategy("point-preferred");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -239,16 +167,80 @@ void test5() throws ConnectionError, ProcessingError {
items2.addProperty("quantity", 1);
items2.addProperty("is_discounted", false);
items2.addProperty("other", "{}");
+ JsonObject items3 = new JsonObject();
+ items3.addProperty("jan_code", "abc");
+ items3.addProperty("name", "name1");
+ items3.addProperty("unit_price", 100);
+ items3.addProperty("price", 100);
+ items3.addProperty("quantity", 1);
+ items3.addProperty("is_discounted", false);
+ items3.addProperty("other", "{}");
+ JsonObject items4 = new JsonObject();
+ items4.addProperty("jan_code", "abc");
+ items4.addProperty("name", "name1");
+ items4.addProperty("unit_price", 100);
+ items4.addProperty("price", 100);
+ items4.addProperty("quantity", 1);
+ items4.addProperty("is_discounted", false);
+ items4.addProperty("other", "{}");
+ JsonObject items5 = new JsonObject();
+ items5.addProperty("jan_code", "abc");
+ items5.addProperty("name", "name1");
+ items5.addProperty("unit_price", 100);
+ items5.addProperty("price", 100);
+ items5.addProperty("quantity", 1);
+ items5.addProperty("is_discounted", false);
+ items5.addProperty("other", "{}");
+ JsonObject items6 = new JsonObject();
+ items6.addProperty("jan_code", "abc");
+ items6.addProperty("name", "name1");
+ items6.addProperty("unit_price", 100);
+ items6.addProperty("price", 100);
+ items6.addProperty("quantity", 1);
+ items6.addProperty("is_discounted", false);
+ items6.addProperty("other", "{}");
+ JsonObject items7 = new JsonObject();
+ items7.addProperty("jan_code", "abc");
+ items7.addProperty("name", "name1");
+ items7.addProperty("unit_price", 100);
+ items7.addProperty("price", 100);
+ items7.addProperty("quantity", 1);
+ items7.addProperty("is_discounted", false);
+ items7.addProperty("other", "{}");
+ JsonObject items8 = new JsonObject();
+ items8.addProperty("jan_code", "abc");
+ items8.addProperty("name", "name1");
+ items8.addProperty("unit_price", 100);
+ items8.addProperty("price", 100);
+ items8.addProperty("quantity", 1);
+ items8.addProperty("is_discounted", false);
+ items8.addProperty("other", "{}");
+ JsonObject items9 = new JsonObject();
+ items9.addProperty("jan_code", "abc");
+ items9.addProperty("name", "name1");
+ items9.addProperty("unit_price", 100);
+ items9.addProperty("price", 100);
+ items9.addProperty("quantity", 1);
+ items9.addProperty("is_discounted", false);
+ items9.addProperty("other", "{}");
+ JsonObject items10 = new JsonObject();
+ items10.addProperty("jan_code", "abc");
+ items10.addProperty("name", "name1");
+ items10.addProperty("unit_price", 100);
+ items10.addProperty("price", 100);
+ items10.addProperty("quantity", 1);
+ items10.addProperty("is_discounted", false);
+ items10.addProperty("other", "{}");
Request request = new CreateCpmTransaction(
- "yg3cEPs9bN7e1DJRmWCvXV",
- "39a71035-8e66-4183-b79c-a92f11a3288a",
- 14.0
+ "Ccagg1x0DCy4shXKR7nTWC",
+ "eb33f579-4dc9-4274-b347-6e8b9361b3f2",
+ 3975.0
)
- .description("4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjH")
+ .description("0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPm")
.metadata("{\"key\":\"value\"}")
- .products(new Object[]{items,items2})
- .requestId("391bed4c-b269-4fab-b226-1d00f8db6c8b")
- .strategy("money-only");
+ .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10})
+ .requestId("4394d472-1b0d-4a61-a4c7-da5661d36a8f")
+ .strategy("point-preferred");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCreditSessionTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCreditSessionTransactionTest.java
new file mode 100644
index 00000000..daa4a0c8
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/CreateCreditSessionTransactionTest.java
@@ -0,0 +1,86 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.CreateCreditSessionTransaction;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class CreateCreditSessionTransactionTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new CreateCreditSessionTransaction(
+ "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e",
+ 9780.0
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test1() throws ConnectionError, ProcessingError {
+ Request request = new CreateCreditSessionTransaction(
+ "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e",
+ 9780.0
+ )
+ .requestId("2c826d8b-e412-4dbe-a759-328251097330");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test2() throws ConnectionError, ProcessingError {
+ Request request = new CreateCreditSessionTransaction(
+ "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e",
+ 9780.0
+ )
+ .description("BddIYIaGsnHTfyj3vGhpYs6lE3PVxThCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiN")
+ .requestId("637c48af-86f9-48ed-82e1-99558a467bfe");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test3() throws ConnectionError, ProcessingError {
+ Request request = new CreateCreditSessionTransaction(
+ "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e",
+ 9780.0
+ )
+ .shopId("4d1e7adb-31c9-4ea0-b5b6-7310d8249eec")
+ .description("IyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa6h6AAgB9jXehhbgsnyiHZ1n3qwk3r3QhfSXAhy6Q6NsE0G4ETHn0hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUg")
+ .requestId("3c19993c-6f8f-4de2-b2ae-9871bf5118f1");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java b/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java
index bdd76850..2a86ea19 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateCustomerAccountTest.java
@@ -12,7 +12,7 @@ public class CreateCustomerAccountTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateCustomerAccount(
- "c454fa7a-8121-47c1-8460-3b4e2ea6762c"
+ "835f1a89-8691-4df3-aab7-584d1e24c526"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateCustomerAccount(
- "c454fa7a-8121-47c1-8460-3b4e2ea6762c"
+ "835f1a89-8691-4df3-aab7-584d1e24c526"
)
- .externalId("e87oi");
+ .externalId("nGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkO");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateCustomerAccount(
- "c454fa7a-8121-47c1-8460-3b4e2ea6762c"
+ "835f1a89-8691-4df3-aab7-584d1e24c526"
)
- .accountName("kJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXh")
- .externalId("26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5");
+ .accountName("NNAjB")
+ .externalId("CYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3a");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateCustomerAccount(
- "c454fa7a-8121-47c1-8460-3b4e2ea6762c"
+ "835f1a89-8691-4df3-aab7-584d1e24c526"
)
- .userName("bgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH")
- .accountName("emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdW")
- .externalId("jKy82N74m");
+ .userName("JmzxxuQUVBryDZ")
+ .accountName("3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoa")
+ .externalId("LlrJk6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java
index ea299851..bded2cab 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateExchangeTransactionTest.java
@@ -12,10 +12,10 @@ public class CreateExchangeTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateExchangeTransaction(
- "ca127c0c-3261-4028-94cc-ccf2d2a52131",
- "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9",
- "db01c22d-6011-4ce4-a38d-62e775c56e73",
- 7412
+ "1bb9e055-507d-44c4-9420-a54b3ef84e7c",
+ "005ebf3c-82b4-406a-a83e-644a03e00e48",
+ "8ca99912-d430-436a-9a41-c66a29d826ce",
+ 5208
);
try {
PartnerAPITest.getClient().send(request);
@@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateExchangeTransaction(
- "ca127c0c-3261-4028-94cc-ccf2d2a52131",
- "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9",
- "db01c22d-6011-4ce4-a38d-62e775c56e73",
- 7412
+ "1bb9e055-507d-44c4-9420-a54b3ef84e7c",
+ "005ebf3c-82b4-406a-a83e-644a03e00e48",
+ "8ca99912-d430-436a-9a41-c66a29d826ce",
+ 5208
)
- .requestId("92f5b7ff-f7c2-450e-bc37-458e428585bb");
+ .requestId("4f5a0c99-2317-4c85-a997-2b312d0b669b");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateExchangeTransaction(
- "ca127c0c-3261-4028-94cc-ccf2d2a52131",
- "c81a0cc2-7c07-4a5f-9e8b-8ecc4a7031d9",
- "db01c22d-6011-4ce4-a38d-62e775c56e73",
- 7412
+ "1bb9e055-507d-44c4-9420-a54b3ef84e7c",
+ "005ebf3c-82b4-406a-a83e-644a03e00e48",
+ "8ca99912-d430-436a-9a41-c66a29d826ce",
+ 5208
)
- .description("f3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5c")
- .requestId("1ea02ddd-cfa7-4d7b-9c0d-0729624b266b");
+ .description("ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3")
+ .requestId("a65a88f4-3f7c-4e56-9844-bd85a99c4eed");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java
index 73757b9c..c2d92f8d 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateExternalTransactionTest.java
@@ -12,10 +12,10 @@ public class CreateExternalTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateExternalTransaction(
- "cef71cb4-adc8-4988-ac73-f97e7ce8164c",
- "7813ba65-86c9-405d-a33c-de4e4e377c19",
- "612f9089-0c72-4746-ae40-ce76e1c17413",
- 8221
+ "a04ecb2d-c1ce-4a4a-98f4-e23c74e7b1e6",
+ "d54dc704-c8f6-484c-acba-aafa55f24302",
+ "0d76909d-f600-42a0-95d4-654dc4e31b4d",
+ 5762
);
try {
PartnerAPITest.getClient().send(request);
@@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateExternalTransaction(
- "cef71cb4-adc8-4988-ac73-f97e7ce8164c",
- "7813ba65-86c9-405d-a33c-de4e4e377c19",
- "612f9089-0c72-4746-ae40-ce76e1c17413",
- 8221
+ "a04ecb2d-c1ce-4a4a-98f4-e23c74e7b1e6",
+ "d54dc704-c8f6-484c-acba-aafa55f24302",
+ "0d76909d-f600-42a0-95d4-654dc4e31b4d",
+ 5762
)
- .doneAt("2021-12-27T02:20:28.000000Z");
+ .doneAt("2020-10-08T11:54:38.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateExternalTransaction(
- "cef71cb4-adc8-4988-ac73-f97e7ce8164c",
- "7813ba65-86c9-405d-a33c-de4e4e377c19",
- "612f9089-0c72-4746-ae40-ce76e1c17413",
- 8221
+ "a04ecb2d-c1ce-4a4a-98f4-e23c74e7b1e6",
+ "d54dc704-c8f6-484c-acba-aafa55f24302",
+ "0d76909d-f600-42a0-95d4-654dc4e31b4d",
+ 5762
)
- .requestId("043b69d1-e8c2-4486-9f49-0d0c4338b4d8")
- .doneAt("2021-07-15T01:50:22.000000Z");
+ .requestId("e557ebab-23be-4ad6-bd1a-390370abb39c")
+ .doneAt("2025-08-20T03:03:20.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -87,15 +87,63 @@ void test3() throws ConnectionError, ProcessingError {
items2.addProperty("quantity", 1);
items2.addProperty("is_discounted", false);
items2.addProperty("other", "{}");
+ JsonObject items3 = new JsonObject();
+ items3.addProperty("jan_code", "abc");
+ items3.addProperty("name", "name1");
+ items3.addProperty("unit_price", 100);
+ items3.addProperty("price", 100);
+ items3.addProperty("quantity", 1);
+ items3.addProperty("is_discounted", false);
+ items3.addProperty("other", "{}");
+ JsonObject items4 = new JsonObject();
+ items4.addProperty("jan_code", "abc");
+ items4.addProperty("name", "name1");
+ items4.addProperty("unit_price", 100);
+ items4.addProperty("price", 100);
+ items4.addProperty("quantity", 1);
+ items4.addProperty("is_discounted", false);
+ items4.addProperty("other", "{}");
+ JsonObject items5 = new JsonObject();
+ items5.addProperty("jan_code", "abc");
+ items5.addProperty("name", "name1");
+ items5.addProperty("unit_price", 100);
+ items5.addProperty("price", 100);
+ items5.addProperty("quantity", 1);
+ items5.addProperty("is_discounted", false);
+ items5.addProperty("other", "{}");
+ JsonObject items6 = new JsonObject();
+ items6.addProperty("jan_code", "abc");
+ items6.addProperty("name", "name1");
+ items6.addProperty("unit_price", 100);
+ items6.addProperty("price", 100);
+ items6.addProperty("quantity", 1);
+ items6.addProperty("is_discounted", false);
+ items6.addProperty("other", "{}");
+ JsonObject items7 = new JsonObject();
+ items7.addProperty("jan_code", "abc");
+ items7.addProperty("name", "name1");
+ items7.addProperty("unit_price", 100);
+ items7.addProperty("price", 100);
+ items7.addProperty("quantity", 1);
+ items7.addProperty("is_discounted", false);
+ items7.addProperty("other", "{}");
+ JsonObject items8 = new JsonObject();
+ items8.addProperty("jan_code", "abc");
+ items8.addProperty("name", "name1");
+ items8.addProperty("unit_price", 100);
+ items8.addProperty("price", 100);
+ items8.addProperty("quantity", 1);
+ items8.addProperty("is_discounted", false);
+ items8.addProperty("other", "{}");
Request request = new CreateExternalTransaction(
- "cef71cb4-adc8-4988-ac73-f97e7ce8164c",
- "7813ba65-86c9-405d-a33c-de4e4e377c19",
- "612f9089-0c72-4746-ae40-ce76e1c17413",
- 8221
+ "a04ecb2d-c1ce-4a4a-98f4-e23c74e7b1e6",
+ "d54dc704-c8f6-484c-acba-aafa55f24302",
+ "0d76909d-f600-42a0-95d4-654dc4e31b4d",
+ 5762
)
- .products(new Object[]{items,items2})
- .requestId("96edc93f-6bca-4fc2-8be7-b525e401f85d")
- .doneAt("2024-02-02T10:33:18.000000Z");
+ .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
+ .requestId("3ec366bc-895b-41bf-b615-74334a2e3d49")
+ .doneAt("2021-03-03T02:34:54.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -125,24 +173,16 @@ void test4() throws ConnectionError, ProcessingError {
items2.addProperty("quantity", 1);
items2.addProperty("is_discounted", false);
items2.addProperty("other", "{}");
- JsonObject items3 = new JsonObject();
- items3.addProperty("jan_code", "abc");
- items3.addProperty("name", "name1");
- items3.addProperty("unit_price", 100);
- items3.addProperty("price", 100);
- items3.addProperty("quantity", 1);
- items3.addProperty("is_discounted", false);
- items3.addProperty("other", "{}");
Request request = new CreateExternalTransaction(
- "cef71cb4-adc8-4988-ac73-f97e7ce8164c",
- "7813ba65-86c9-405d-a33c-de4e4e377c19",
- "612f9089-0c72-4746-ae40-ce76e1c17413",
- 8221
+ "a04ecb2d-c1ce-4a4a-98f4-e23c74e7b1e6",
+ "d54dc704-c8f6-484c-acba-aafa55f24302",
+ "0d76909d-f600-42a0-95d4-654dc4e31b4d",
+ 5762
)
.metadata("{\"key\":\"value\"}")
- .products(new Object[]{items,items2,items3})
- .requestId("406e7215-c344-46b1-9c0b-5dc00ce938f9")
- .doneAt("2020-12-01T12:39:39.000000Z");
+ .products(new Object[]{items,items2})
+ .requestId("78bf0bbe-9935-471c-a6b5-a7b4c16e39bb")
+ .doneAt("2025-05-19T20:23:53.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -172,65 +212,17 @@ void test5() throws ConnectionError, ProcessingError {
items2.addProperty("quantity", 1);
items2.addProperty("is_discounted", false);
items2.addProperty("other", "{}");
- JsonObject items3 = new JsonObject();
- items3.addProperty("jan_code", "abc");
- items3.addProperty("name", "name1");
- items3.addProperty("unit_price", 100);
- items3.addProperty("price", 100);
- items3.addProperty("quantity", 1);
- items3.addProperty("is_discounted", false);
- items3.addProperty("other", "{}");
- JsonObject items4 = new JsonObject();
- items4.addProperty("jan_code", "abc");
- items4.addProperty("name", "name1");
- items4.addProperty("unit_price", 100);
- items4.addProperty("price", 100);
- items4.addProperty("quantity", 1);
- items4.addProperty("is_discounted", false);
- items4.addProperty("other", "{}");
- JsonObject items5 = new JsonObject();
- items5.addProperty("jan_code", "abc");
- items5.addProperty("name", "name1");
- items5.addProperty("unit_price", 100);
- items5.addProperty("price", 100);
- items5.addProperty("quantity", 1);
- items5.addProperty("is_discounted", false);
- items5.addProperty("other", "{}");
- JsonObject items6 = new JsonObject();
- items6.addProperty("jan_code", "abc");
- items6.addProperty("name", "name1");
- items6.addProperty("unit_price", 100);
- items6.addProperty("price", 100);
- items6.addProperty("quantity", 1);
- items6.addProperty("is_discounted", false);
- items6.addProperty("other", "{}");
- JsonObject items7 = new JsonObject();
- items7.addProperty("jan_code", "abc");
- items7.addProperty("name", "name1");
- items7.addProperty("unit_price", 100);
- items7.addProperty("price", 100);
- items7.addProperty("quantity", 1);
- items7.addProperty("is_discounted", false);
- items7.addProperty("other", "{}");
- JsonObject items8 = new JsonObject();
- items8.addProperty("jan_code", "abc");
- items8.addProperty("name", "name1");
- items8.addProperty("unit_price", 100);
- items8.addProperty("price", 100);
- items8.addProperty("quantity", 1);
- items8.addProperty("is_discounted", false);
- items8.addProperty("other", "{}");
Request request = new CreateExternalTransaction(
- "cef71cb4-adc8-4988-ac73-f97e7ce8164c",
- "7813ba65-86c9-405d-a33c-de4e4e377c19",
- "612f9089-0c72-4746-ae40-ce76e1c17413",
- 8221
+ "a04ecb2d-c1ce-4a4a-98f4-e23c74e7b1e6",
+ "d54dc704-c8f6-484c-acba-aafa55f24302",
+ "0d76909d-f600-42a0-95d4-654dc4e31b4d",
+ 5762
)
- .description("FlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rW")
+ .description("1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFy")
.metadata("{\"key\":\"value\"}")
- .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
- .requestId("8481e464-8ecb-439a-b2f9-a6101006bce2")
- .doneAt("2023-06-01T04:59:05.000000Z");
+ .products(new Object[]{items,items2})
+ .requestId("d4819a9a-024b-47f0-8370-ef49bbabb00a")
+ .doneAt("2021-04-09T08:34:02.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java b/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java
index c3c77a8c..5ff7a487 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateOrganizationTest.java
@@ -12,11 +12,11 @@ public class CreateOrganizationTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
);
try {
PartnerAPITest.getClient().send(request);
@@ -32,13 +32,13 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
)
- .contactName("SoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcda");
+ .contactName("9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -53,14 +53,14 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
)
- .bankAccountHolderName("R")
- .contactName("9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs8");
+ .bankAccountHolderName("ユ")
+ .contactName("8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -75,15 +75,15 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
)
- .bankAccount("116767")
- .bankAccountHolderName("8")
- .contactName("zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7");
+ .bankAccount("")
+ .bankAccountHolderName(")")
+ .contactName("KCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFw");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -98,16 +98,16 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
)
.bankAccountType("other")
- .bankAccount("89874")
- .bankAccountHolderName(",")
- .contactName("43AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchk");
+ .bankAccount("48333")
+ .bankAccountHolderName(")")
+ .contactName("tb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0u");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -122,17 +122,17 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
)
- .bankBranchCode("165")
- .bankAccountType("saving")
- .bankAccount("300")
- .bankAccountHolderName("ラ")
- .contactName("ZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RI");
+ .bankBranchCode("866")
+ .bankAccountType("other")
+ .bankAccount("1828269")
+ .bankAccountHolderName("「")
+ .contactName("poYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smA");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -147,18 +147,18 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
)
- .bankBranchName("GwbFSZ2qU3L")
- .bankBranchCode("624")
- .bankAccountType("saving")
- .bankAccount("5")
- .bankAccountHolderName("\\")
- .contactName("3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7");
+ .bankBranchName("qngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYN")
+ .bankBranchCode("125")
+ .bankAccountType("current")
+ .bankAccount("631429")
+ .bankAccountHolderName("A")
+ .contactName("G5aE3q4gTN93gHJ");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -173,19 +173,19 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
)
- .bankCode("4615")
- .bankBranchName("klIR5ig74Fkbtbb0Sl")
- .bankBranchCode("219")
+ .bankCode("")
+ .bankBranchName("A1FfneXYRV1FBu9VqwmK2QWEkaIk3Nf304AeRoMB")
+ .bankBranchCode("979")
.bankAccountType("other")
- .bankAccount("7948")
- .bankAccountHolderName("\\")
- .contactName("Hxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp9");
+ .bankAccount("334938")
+ .bankAccountHolderName(" ")
+ .contactName("Q0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -200,20 +200,20 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new CreateOrganization(
- "T6b0IY83jSy9CLjq8yjjxInoBnLVw5N",
- "xHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkA",
- new String[]{"f53e5ac2-eea9-46ca-b71a-e17761216ea0"},
- "mgCWNKDP1e@nxAK.com",
- "ZBD2FhNoFZ@KIbA.com"
+ "a",
+ "9m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX8",
+ new String[]{"5a799f1c-5237-4ed0-954c-65fa44004252","a172d429-d6c0-4532-b9ef-915415503b05","8cd43c43-3d9f-43f6-8c12-aa80b18582b1","2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a","b9f31219-eb68-490c-9627-af6cfb425bbb","723f82cc-e4f0-4e8e-8be7-88824d9075f4","3fe77c72-d293-4909-b004-e3616ff5abbb","c04ecb8d-ac58-4c8d-bbed-75ecf09e1530","81e3e2c9-5938-43be-95aa-347d4033128c","5c4107c1-11b7-481f-b350-0f8aa545a159"},
+ "x7KWs9Grfk@cGFx.com",
+ "lkTYjYgPlx@nzpf.com"
)
- .bankName("ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5Y")
- .bankCode("")
- .bankBranchName("VquVYsbDyy")
- .bankBranchCode("292")
- .bankAccountType("other")
- .bankAccount("534")
+ .bankName("qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACR")
+ .bankCode("4758")
+ .bankBranchName("1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoA")
+ .bankBranchCode("")
+ .bankAccountType("current")
+ .bankAccount("272027")
.bankAccountHolderName(".")
- .contactName("qoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJ");
+ .contactName("EBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUF");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java
index 96db774d..8e2fc4f0 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionTest.java
@@ -12,10 +12,10 @@ public class CreatePaymentTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreatePaymentTransaction(
- "ae21cfdf-3cfd-409a-9617-cd364b4ac168",
- "ac57cbb5-9cc4-46d1-b484-3f1e1589a291",
- "e3e53d7f-6dd4-4714-bb10-9a1b5929494c",
- 2752
+ "244073a8-323a-4c4d-af3c-126db0490b64",
+ "03faa520-2519-4eab-a014-6a9e853f5fa8",
+ "34664fc2-b17d-4c53-9ada-c8725e4d3632",
+ 3133
);
try {
PartnerAPITest.getClient().send(request);
@@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreatePaymentTransaction(
- "ae21cfdf-3cfd-409a-9617-cd364b4ac168",
- "ac57cbb5-9cc4-46d1-b484-3f1e1589a291",
- "e3e53d7f-6dd4-4714-bb10-9a1b5929494c",
- 2752
+ "244073a8-323a-4c4d-af3c-126db0490b64",
+ "03faa520-2519-4eab-a014-6a9e853f5fa8",
+ "34664fc2-b17d-4c53-9ada-c8725e4d3632",
+ 3133
)
- .strategy("money-only");
+ .couponId("be7fad32-26e0-4b5f-b0fe-aff815145574");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreatePaymentTransaction(
- "ae21cfdf-3cfd-409a-9617-cd364b4ac168",
- "ac57cbb5-9cc4-46d1-b484-3f1e1589a291",
- "e3e53d7f-6dd4-4714-bb10-9a1b5929494c",
- 2752
+ "244073a8-323a-4c4d-af3c-126db0490b64",
+ "03faa520-2519-4eab-a014-6a9e853f5fa8",
+ "34664fc2-b17d-4c53-9ada-c8725e4d3632",
+ 3133
)
- .requestId("2aa855f3-c72b-4758-bde2-f146fa62868a")
- .strategy("money-only");
+ .strategy("point-preferred")
+ .couponId("60833bbf-2170-475a-9325-a46467af0ad1");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -71,6 +71,28 @@ void test2() throws ConnectionError, ProcessingError {
}
@Test
void test3() throws ConnectionError, ProcessingError {
+ Request request = new CreatePaymentTransaction(
+ "244073a8-323a-4c4d-af3c-126db0490b64",
+ "03faa520-2519-4eab-a014-6a9e853f5fa8",
+ "34664fc2-b17d-4c53-9ada-c8725e4d3632",
+ 3133
+ )
+ .requestId("8621d939-8728-400a-8973-c60e3a9aaa5d")
+ .strategy("point-preferred")
+ .couponId("30b29521-c116-4ea9-b3bc-ba198acc566c");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test4() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("jan_code", "abc");
items.addProperty("name", "name1");
@@ -120,14 +142,15 @@ void test3() throws ConnectionError, ProcessingError {
items6.addProperty("is_discounted", false);
items6.addProperty("other", "{}");
Request request = new CreatePaymentTransaction(
- "ae21cfdf-3cfd-409a-9617-cd364b4ac168",
- "ac57cbb5-9cc4-46d1-b484-3f1e1589a291",
- "e3e53d7f-6dd4-4714-bb10-9a1b5929494c",
- 2752
+ "244073a8-323a-4c4d-af3c-126db0490b64",
+ "03faa520-2519-4eab-a014-6a9e853f5fa8",
+ "34664fc2-b17d-4c53-9ada-c8725e4d3632",
+ 3133
)
.products(new Object[]{items,items2,items3,items4,items5,items6})
- .requestId("3829af74-a55a-42fb-b477-53c649410e93")
- .strategy("point-preferred");
+ .requestId("d1a36411-3c7b-4d60-9759-acc0a3b2d902")
+ .strategy("money-only")
+ .couponId("2b59644a-ac21-4648-837e-f820858da72c");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -140,7 +163,7 @@ void test3() throws ConnectionError, ProcessingError {
}
}
@Test
- void test4() throws ConnectionError, ProcessingError {
+ void test5() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("jan_code", "abc");
items.addProperty("name", "name1");
@@ -173,48 +196,17 @@ void test4() throws ConnectionError, ProcessingError {
items4.addProperty("quantity", 1);
items4.addProperty("is_discounted", false);
items4.addProperty("other", "{}");
- JsonObject items5 = new JsonObject();
- items5.addProperty("jan_code", "abc");
- items5.addProperty("name", "name1");
- items5.addProperty("unit_price", 100);
- items5.addProperty("price", 100);
- items5.addProperty("quantity", 1);
- items5.addProperty("is_discounted", false);
- items5.addProperty("other", "{}");
- JsonObject items6 = new JsonObject();
- items6.addProperty("jan_code", "abc");
- items6.addProperty("name", "name1");
- items6.addProperty("unit_price", 100);
- items6.addProperty("price", 100);
- items6.addProperty("quantity", 1);
- items6.addProperty("is_discounted", false);
- items6.addProperty("other", "{}");
- JsonObject items7 = new JsonObject();
- items7.addProperty("jan_code", "abc");
- items7.addProperty("name", "name1");
- items7.addProperty("unit_price", 100);
- items7.addProperty("price", 100);
- items7.addProperty("quantity", 1);
- items7.addProperty("is_discounted", false);
- items7.addProperty("other", "{}");
- JsonObject items8 = new JsonObject();
- items8.addProperty("jan_code", "abc");
- items8.addProperty("name", "name1");
- items8.addProperty("unit_price", 100);
- items8.addProperty("price", 100);
- items8.addProperty("quantity", 1);
- items8.addProperty("is_discounted", false);
- items8.addProperty("other", "{}");
Request request = new CreatePaymentTransaction(
- "ae21cfdf-3cfd-409a-9617-cd364b4ac168",
- "ac57cbb5-9cc4-46d1-b484-3f1e1589a291",
- "e3e53d7f-6dd4-4714-bb10-9a1b5929494c",
- 2752
+ "244073a8-323a-4c4d-af3c-126db0490b64",
+ "03faa520-2519-4eab-a014-6a9e853f5fa8",
+ "34664fc2-b17d-4c53-9ada-c8725e4d3632",
+ 3133
)
.metadata("{\"key\":\"value\"}")
- .products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
- .requestId("48d1c6ac-7999-4478-82ae-158994bd6c1a")
- .strategy("money-only");
+ .products(new Object[]{items,items2,items3,items4})
+ .requestId("28b295dd-94bb-46c1-ac09-7f79237f08ec")
+ .strategy("point-preferred")
+ .couponId("db700bf0-ca56-413e-bd36-eff82c8cd9d7");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -227,7 +219,7 @@ void test4() throws ConnectionError, ProcessingError {
}
}
@Test
- void test5() throws ConnectionError, ProcessingError {
+ void test6() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("jan_code", "abc");
items.addProperty("name", "name1");
@@ -293,16 +285,17 @@ void test5() throws ConnectionError, ProcessingError {
items8.addProperty("is_discounted", false);
items8.addProperty("other", "{}");
Request request = new CreatePaymentTransaction(
- "ae21cfdf-3cfd-409a-9617-cd364b4ac168",
- "ac57cbb5-9cc4-46d1-b484-3f1e1589a291",
- "e3e53d7f-6dd4-4714-bb10-9a1b5929494c",
- 2752
+ "244073a8-323a-4c4d-af3c-126db0490b64",
+ "03faa520-2519-4eab-a014-6a9e853f5fa8",
+ "34664fc2-b17d-4c53-9ada-c8725e4d3632",
+ 3133
)
- .description("LsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zL")
+ .description("t7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8")
.metadata("{\"key\":\"value\"}")
.products(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
- .requestId("d910fda9-2d27-407b-8e19-bb249777445a")
- .strategy("money-only");
+ .requestId("f5ac7b5f-1240-4c83-9a11-a5c898483ce3")
+ .strategy("point-preferred")
+ .couponId("96b48faa-dd02-47da-bc58-d820d4f8860b");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionWithBillTest.java b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionWithBillTest.java
new file mode 100644
index 00000000..bfe786a5
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/CreatePaymentTransactionWithBillTest.java
@@ -0,0 +1,86 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.CreatePaymentTransactionWithBill;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class CreatePaymentTransactionWithBillTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new CreatePaymentTransactionWithBill(
+ "7b86da9c-b84e-41dd-9133-265835ca89e1",
+ "11f2f128-b0b7-44a5-b0a4-0b6fa268acb7"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test1() throws ConnectionError, ProcessingError {
+ Request request = new CreatePaymentTransactionWithBill(
+ "7b86da9c-b84e-41dd-9133-265835ca89e1",
+ "11f2f128-b0b7-44a5-b0a4-0b6fa268acb7"
+ )
+ .strategy("point-preferred");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test2() throws ConnectionError, ProcessingError {
+ Request request = new CreatePaymentTransactionWithBill(
+ "7b86da9c-b84e-41dd-9133-265835ca89e1",
+ "11f2f128-b0b7-44a5-b0a4-0b6fa268acb7"
+ )
+ .requestId("71d5b7ee-e6a2-4b8f-96bc-8980c8e54946")
+ .strategy("point-preferred");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test3() throws ConnectionError, ProcessingError {
+ Request request = new CreatePaymentTransactionWithBill(
+ "7b86da9c-b84e-41dd-9133-265835ca89e1",
+ "11f2f128-b0b7-44a5-b0a4-0b6fa268acb7"
+ )
+ .metadata("{\"key\":\"value\"}")
+ .requestId("f0662458-d0d5-42d2-9920-0529b41152eb")
+ .strategy("point-preferred");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java b/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java
index 5a50ce69..f99726df 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateShopTest.java
@@ -12,7 +12,7 @@ public class CreateShopTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateShop(
- "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV"
+ "xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6I"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateShop(
- "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV"
+ "xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6I"
)
- .organizationCode("T-sG-A-Y4rx3806--");
+ .organizationCode("-3zg1rfy-23h4--sScpLT--l3-NHnF");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateShop(
- "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV"
+ "xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6I"
)
- .shopExternalId("cqmENfDor1zgwF9x3")
- .organizationCode("2-");
+ .shopExternalId("CTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U")
+ .organizationCode("J2oS5lww");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateShop(
- "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV"
+ "xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6I"
)
- .shopEmail("fU4cD6smAe@qngi.com")
- .shopExternalId("ikqDE3OudXpYhNw")
- .organizationCode("ZA7BK-");
+ .shopEmail("Zw3XOfvqGL@qQiq.com")
+ .shopExternalId("G2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaI")
+ .organizationCode("4a3-0w-oq38S3M-E");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new CreateShop(
- "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV"
+ "xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6I"
)
- .shopTel("0476633-271")
- .shopEmail("1FfneXYRV1@FBu9.com")
- .shopExternalId("VqwmK2QWEkaIk3Nf304AeRoMBnYR")
- .organizationCode("I-sc750tZXruc");
+ .shopTel("02508621")
+ .shopEmail("LeCaVZzJ21@Wkjw.com")
+ .shopExternalId("096vY0YkfqArkVOxtHaQbqrekxj6KVFb")
+ .organizationCode("MHEh1---m-Fx5929--9--D6xF-0-G");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new CreateShop(
- "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV"
+ "xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6I"
)
- .shopAddress("EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJ")
- .shopTel("02557640")
- .shopEmail("g3h5b1QYmV@Ctk7.com")
- .shopExternalId("JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspa")
- .organizationCode("Y1l-3S-a99d39XW2-OAW4--i");
+ .shopAddress("vld3IeJyhTlRgTT2NxSiphZR")
+ .shopTel("02-02-284")
+ .shopEmail("mLSHQhe4tH@Pdlv.com")
+ .shopExternalId("xC8QojNKN0zq")
+ .organizationCode("BnibTq1Ew3W-m-nAp-be9-");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new CreateShop(
- "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV"
+ "xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6I"
)
- .shopPostalCode("1393414")
- .shopAddress("bb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd")
- .shopTel("0061231408")
- .shopEmail("qoWmfQbT09@Lp66.com")
- .shopExternalId("g0d7eGITtIklkYFTO7OJe9dSEOGAL")
- .organizationCode("t518798nQhn-67");
+ .shopPostalCode("0323251")
+ .shopAddress("1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07")
+ .shopTel("092-962544")
+ .shopEmail("6GGJ1GXo5U@PiFJ.com")
+ .shopExternalId("ScrEGcY5I6vYJqEcansSsP2ceIv")
+ .organizationCode("7f5Nil9--5c");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java b/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java
index 8ac3f459..d4585b2e 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateShopV2Test.java
@@ -12,7 +12,7 @@ public class CreateShopV2Test {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
)
- .canTopupPrivateMoneyIds(new String[]{});
+ .canTopupPrivateMoneyIds(new String[]{"68c06994-dfd0-4507-9fd3-38810804a9b7","38b7981e-9550-460e-924a-67300ec6d1fd","662b7185-57b9-4c95-8b99-3b7701740329","9c29aae8-be12-41ec-9bc6-da361fd14d94","d6211e8a-dcc3-4522-9d56-0f6c57ced4cd","98da092b-904b-4cc6-aea1-bc4854c2c36b","06680354-d05c-4f48-85fb-0960d24ce747","4aba8caf-d452-4829-97d5-1142f52b6801","712bb9d6-05d5-41da-9be1-efb11316639b","1a496586-ecf2-43ed-bc41-db785c77907a"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
)
- .privateMoneyIds(new String[]{"f30fb147-1426-4944-bd88-6a56dd9456d2","38fb19e4-5c6f-45a0-aa85-1b47556f5a6a","233f947b-36e9-4067-8870-a11470b6451f","c69e96da-3ebb-4104-ac1b-8d9d9ff28392","b1c0c838-6e49-426e-95a5-81a6f2d8a82d","92f1a6c8-9fa2-4e13-9142-5ee846a8fecd","a780f03b-a949-4c7b-8e72-e364b7864dda","9b1e774a-a60c-4f54-9827-ad3976c8a505"})
- .canTopupPrivateMoneyIds(new String[]{"474d3cff-204d-4f6e-9167-3047572dcdfe","19307487-c38a-4ee6-a380-ad8429fb46c5","793eb0ec-38aa-4feb-9363-55f43d0263b5","fc1685ab-b040-48b6-b442-89b33eb85d40","eef3a0d1-0c76-4c9b-80d9-62ea69c91f11","42909ef9-8138-486d-bb55-fe9242f0b0aa","5051c900-a3e7-4fc4-b995-18d8133f5e2e","2aa5f88e-fc51-4f3a-a314-3c59ffd68307"});
+ .privateMoneyIds(new String[]{"65548214-e7d5-40c6-b682-eee9627cc068","3867ad2c-76f6-406c-8d5d-6d7db08283c9","22ff837f-527b-411b-b406-651ed0acb405","2bdaad1a-56dc-44ff-b5af-db6f42754a4f","93e5d6c5-d810-4e6e-a65f-c6c0aa850429","cd08c5bf-054b-42f2-a1ce-139e56cf865d","29b9c2ea-c405-463f-ba92-8621af0ec32d"})
+ .canTopupPrivateMoneyIds(new String[]{});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
)
- .organizationCode("45obEl-JlK8KJ-2")
- .privateMoneyIds(new String[]{"571c1f61-0fa0-41ee-8cc9-4014511f14aa","b04c775c-5a7e-4500-8cbc-420599d77cb8","4509ce25-bbc6-4a89-b1c9-a858198be5f1"})
- .canTopupPrivateMoneyIds(new String[]{"999c5565-9e89-4619-a1ec-1c820b465bc7","d0a85d7e-c9be-4129-9a3b-75c475e93c4f","5d81e904-fb87-4ace-95df-2025879f3f2c","6bb56041-f8bd-492d-a64a-26208cb731e6","d3d9be5e-74ec-4832-88cd-10f47969b5db","ffb072a0-7a1f-456f-b779-f2619dcda18c","3b2d6593-9601-4a57-b047-daebe29536f4","38efd286-ccb1-4970-8f8f-01cf76094593","14b8b70c-2bc2-4da4-9a81-38fb67363d17","6608ae1e-43fb-40ba-8108-d1efdbb8fbfe"});
+ .organizationCode("9GGd18g651T-IRaM-")
+ .privateMoneyIds(new String[]{"340bfda0-a3bc-4bb2-a7c5-7c0633462791","c59cf76b-5deb-42dd-9e0c-ebd05bd30532","5678ba0d-93ae-4f56-a508-f31dad866a49","78367916-efd0-41f9-823e-8b372ff08d7b","8edb5d48-aa3e-4e89-8557-96b7c19cdb24","efdeefc5-9e5e-4ae5-a75c-acb73fc330a8","9f2fa9a9-70fe-46f3-abc2-b8b9bfaec73a"})
+ .canTopupPrivateMoneyIds(new String[]{});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
)
- .externalId("U6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8m")
- .organizationCode("J-Ig-h-2e-L-d0I8Gq-5N")
- .privateMoneyIds(new String[]{"cdc42a10-65cf-4515-9a0d-24c638ad6c7b","ce865b7a-8e79-4325-a531-31bd12ff47b0","0d816b84-b4f3-474d-ae8c-f13152031a68","fa56a64c-9171-449c-a085-a297ec0a0da1","9100008d-87e7-4ada-b45b-e3a57c5e040d","20b0ca98-f8d3-41e3-a62b-08ec5295176b","c57e1c2c-7086-4bb2-8a9d-2be4e4b0c66a","84c83a7a-2889-4191-ae6a-23c0db27f082"})
- .canTopupPrivateMoneyIds(new String[]{"a0a0e846-1697-4d83-a5be-621a4342ee7a","17f3abf4-bca8-4055-b9ab-f20992e0278a","f17efb92-c7be-4285-9979-655c9e462199","5a7371d5-3b92-432d-9312-4b2d6eebc7f7","ddb098f7-d640-45f9-9313-5718cc8da6b9","180e68c2-ec35-4a0d-a87d-9bbb6ae12140","5404cc2a-38f4-49e7-8e26-d8c92c3622c4","98bb9170-833d-49d5-aa80-ccf06bc3038a","95de72fa-49cb-450e-a909-4879e24374ea","e43cfd3b-9433-4542-853f-9576a0117059"});
+ .externalId("BB1YNClE0")
+ .organizationCode("M")
+ .privateMoneyIds(new String[]{"5d1f8032-3b3c-4392-ad78-d56a86571c94","c0ebb6dd-4049-4d75-a2b5-8c5770a86239","dd10da64-f78d-4db4-a661-a6b7cd063d2d","8dc73339-e9e0-4894-936e-89cfa7691048","54c687d3-e466-4c5b-aa0a-304b5d1dc15b","3adfebeb-f570-40b3-bc51-e8dfd01d2d97","7d7fd06b-61a9-4ac9-9c9d-bd9f597206b1"})
+ .canTopupPrivateMoneyIds(new String[]{"8bd20add-aceb-45a7-ab50-cbd5f2e682cf"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
)
- .email("p1TbuySIy9@vMfj.com")
- .externalId("s9RSVIuRLJamUgod9vJ")
- .organizationCode("5sO0P-En--Zn-CZ--ga-2-0-GWq-wO-V")
- .privateMoneyIds(new String[]{"80343906-659b-4c85-94a6-44011287311e","471eac5a-a4e7-4001-b5e5-069aa4784324","dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515","40ca7903-b5a8-43a6-b09e-e0d90b79398a","c602736c-62f2-4d05-acfb-415d36716a4f","4240bbaa-243e-4838-8a45-351b9762407c","f4eb71a9-671b-4c89-b34c-c8b7ecc0c5e7","015b5bd7-36b6-4870-96ad-594f9f064d0d"})
- .canTopupPrivateMoneyIds(new String[]{"6c0731ae-4a87-465a-b480-0b6a722a52d2","44d1e5c6-8082-4ece-a136-c67f8cf3f71d","ec607884-0f24-49e8-a97b-312518633a6f","a24d5b42-f44f-421b-be94-89e9dd964268","10b5069b-d493-4ba0-9bbc-fce4da842b7f","fc34212d-dc04-4248-a776-f2e5ab2ae0ea","a379ed96-2990-463b-a210-521b6c634923","0d0da1cc-01fe-4ae6-a837-84c8abca658a"});
+ .email("WIOCC9XRXS@kWvg.com")
+ .externalId("dC6YsQVBM615BS")
+ .organizationCode("0-")
+ .privateMoneyIds(new String[]{"a23ee378-4efb-4928-9f47-846c94418ef3","727f8e5a-16e1-4d56-a453-0e3ff45fd670","a71eadaf-4805-4f88-9d5d-3b8f66ce191b","f155101a-24ea-41ef-bb8f-d4173f7b60d1","43bef5b6-d001-47e6-9d66-0b5951aac3c1","294d4b65-6b5f-45ab-8036-5d15bdd50904","d647966b-8dbb-4e70-ae1a-6dd8c180197c","7e1d193e-00e9-4587-8354-ab69b7d97953"})
+ .canTopupPrivateMoneyIds(new String[]{"99beac55-06c9-4865-b52d-b269489eb4db","d1b54a71-d5c9-4b06-9a4d-4d4fc8924f63"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
)
- .tel("058821-568")
- .email("czyOhMWAPb@HXyt.com")
- .externalId("djUT8FkE6WXDem2rgSzz")
- .organizationCode("P-25--m-O-9-G-66p--7x-3KKsm18")
- .privateMoneyIds(new String[]{"cdadda4c-ae3d-44a8-b1b6-71efe4f7ffab","2dee894e-6e41-4933-a3ba-e57c1b159dbe","249aeca6-98da-4e34-8eee-aabbd48f12de"})
- .canTopupPrivateMoneyIds(new String[]{"6235a749-7afc-4245-aae1-f94e471e7536","8e7b5480-1964-49a9-a223-ff59d72762a2","3d989b06-fd85-495a-94d9-8e20c1af50df","085af4b4-8713-4dfc-81df-90f0b1a40500","703d2439-fdaf-4f06-9a62-4b5aeca7db67","f3b46622-ce73-4e88-a6e3-f88f56d19b42","71355128-2756-40c0-9d8a-bbb3377d5e0c","e76bc070-fe58-4c69-90d0-a4feed9ff3e9","819bbbd7-f3b2-4519-be9f-358065f1e097"});
+ .tel("0152-67054")
+ .email("qDn2oMYRFh@8cqn.com")
+ .externalId("2spFoKb7jYgx3gTJKy6dBb3")
+ .organizationCode("-j-d-6QuitA-aP2C1el-8a-31-9vvm")
+ .privateMoneyIds(new String[]{"a3d30510-edf5-44c7-b333-0432b1f337eb","278786d9-83e4-4281-92c5-75ff48cf69d1","5ed66d9f-b625-459a-830f-ffb3b919d8dd","348a80b9-0f01-4160-a297-438c74834abb","470acf6e-00da-4684-8255-ce7615adc634","bdc73e15-ff07-4346-ac38-0edf665deede","d459d003-0a0b-4bff-8add-b92285395937","2920f655-66af-4a17-baf9-7806d2239192","2f8ee6bc-4e0f-4ddb-849e-b33b51788907"})
+ .canTopupPrivateMoneyIds(new String[]{"77491445-4a76-40dc-a729-aab75dd7c2e2","798bc163-1690-4bf4-afe3-186d63d67e10","e31719c9-4571-4fe4-a798-13ed118769c0","cc3e3976-001f-49a0-bad4-973ce4248356","f763ca38-899e-44d2-82fa-1aa383768899","2a869d1a-425f-4d70-95de-ee08bcddb5b0","3cda3380-46e7-47aa-a978-3bf3b2277304","fed0e182-8b99-424b-9a10-a3d793bd386f","cce72155-afab-4793-a54f-0152340a4a3a"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
)
- .address("Um4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQ")
- .tel("05-7596-791")
- .email("BJMiWPv5dA@bUBW.com")
- .externalId("ta68v79KNgsodWT1kP64c")
- .organizationCode("KR7nb")
- .privateMoneyIds(new String[]{"e5b4f3eb-3362-484e-9f8a-2b5798d5df14","e11f2da7-242a-4907-b418-5a80213c7f3f","b7ee6134-0178-42b5-ac5b-9714ab36d9f0","1ddf1794-cc21-4319-a91c-a0abadda7660"})
- .canTopupPrivateMoneyIds(new String[]{"9c78491a-8c65-4f6c-8878-9b7f00f1aa36","06feb18e-bb7d-47da-b7b3-fdc15ea2eace","0b6bd05d-ebeb-4524-a7df-657bdb1f1b72","c8dd41ae-0a04-4ce5-8e4d-d25356c9c581","1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599","af424593-329d-4569-a70e-99627c770734","0df948d9-f062-4033-b436-71eb9bc7586d","c2885e76-1879-4e8f-a87c-eba8c16c4d7c","c3f1c30e-a60f-4103-aa22-17c4e2a21637","bd8577a2-1109-49d9-a186-62fe51976f2d"});
+ .address("98QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30oRsSLi4FAWjvNFlMGhO7MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuG")
+ .tel("0276130-5612")
+ .email("ZyG6ql9kvI@c3ug.com")
+ .externalId("fVcwKEOAlMUYblAnOJ")
+ .organizationCode("8--BQ4GH-2imx2--c7D-m")
+ .privateMoneyIds(new String[]{"bfd7fa9a-5453-46dc-a46b-a27e07ce50d2","fd5eae2c-fde4-44bd-89c8-2e6c8c30a3c2","61a7f96f-a5b7-4490-a95c-884da1852dc7","94aa6ff3-6fa8-4397-ac2e-4191001a3a51","1ce9a5e5-8d4c-42fa-94e7-2139e0d28846","5e95c68e-8c3d-46be-bd43-69d0f2fcdc36","6e35aee2-23ef-4eca-bfa3-cbbd97650c2c","e6a0c518-3f13-4dbc-9fe0-d1eb6e8c9cc1","07852ea4-e28d-4abb-8e45-5f895413d2bc","3ccc7586-33d7-4a5a-b0f8-05bc4634a087"})
+ .canTopupPrivateMoneyIds(new String[]{"7cc65c22-1a01-4e6b-af9b-97354412ef2c","b20969ff-299f-47a4-b2a8-dbbf4edda3f4","b36db3d8-21e4-41df-a8eb-756aa2aaba43"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new CreateShopV2(
- "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq"
+ "W3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokud"
)
- .postalCode("1601719")
- .address("h5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3")
- .tel("0918-0596")
- .email("SJX1OiNUbq@HXuS.com")
- .externalId("WeM8VL")
- .organizationCode("oq8n09-S2v-Go")
- .privateMoneyIds(new String[]{"3cd1c838-0bd6-489d-86ee-5eeaaa745ac6","b5fd5c91-025b-4fef-8589-6d7d373b6973"})
- .canTopupPrivateMoneyIds(new String[]{"c4e163e6-5eab-43bf-879e-cd3652d0d908","d20e9714-2bb4-4809-ad76-157c12616dd8","2ad2094b-2a0e-43bd-83a3-de3027d6a479","760dccc9-318b-422e-a02f-c03a2245ef08","3364f713-fcd9-4644-b2a2-1dcf33e448ed"});
+ .postalCode("664-0849")
+ .address("x1kHTVbpRx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIia")
+ .tel("021-129-6627")
+ .email("UZkKwMvzRh@ZdC9.com")
+ .externalId("PIbxRIokrSMcA")
+ .organizationCode("B772-QP1--91y-Cu-M-X2LS-V")
+ .privateMoneyIds(new String[]{"12a5c541-4144-4cac-9924-16613b46ced5","c04d01ff-a0cd-4140-9334-0e8af8a23517","c56906fb-efd6-460b-b1af-4fdb268fe7f8","8998f859-ae30-4a03-837a-3eb62b2eadf1","d4d9610a-1ab9-4e52-bc6c-c7ffbd99782a","e6222ce9-5275-4b71-8f42-f5298f163d7f","24fc1449-6dce-416d-b451-0022c1d9c737","73e18737-9d5b-402f-828a-f60de59eb028","6c51ea79-7271-4fe9-bb2a-f3fae1d5abab","8d23aa86-0356-4fd1-856f-5b1620d87007"})
+ .canTopupPrivateMoneyIds(new String[]{"1d4d183e-d10e-433a-8632-9cdc6c751e60","37dfec06-f6d8-42bd-b92a-4f012f95706d","784d2a2b-7ed1-491e-8a4a-4069a0b84fc5","a255d145-1a4c-432c-94d6-96fdac0a94ba","565aacec-11f9-4184-9de3-265bb02ce98f"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java
index b01d70cc..df602cee 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionTest.java
@@ -12,9 +12,9 @@ public class CreateTopupTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransaction(
- "bbafe09a-0ee7-49a4-ab24-d4ae379dba38",
- "0686a451-395f-4e53-9a1d-f813f169da77",
- "af4d7e4a-0031-4775-a48c-64a95566c41c"
+ "a1fc6e7f-4423-4814-a70e-9bce63b0151d",
+ "c53cd34c-7680-4839-9857-ac157f9f6d8d",
+ "e2a33bcd-42b6-4189-9c3f-2b88e08dab63"
);
try {
PartnerAPITest.getClient().send(request);
@@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransaction(
- "bbafe09a-0ee7-49a4-ab24-d4ae379dba38",
- "0686a451-395f-4e53-9a1d-f813f169da77",
- "af4d7e4a-0031-4775-a48c-64a95566c41c"
+ "a1fc6e7f-4423-4814-a70e-9bce63b0151d",
+ "c53cd34c-7680-4839-9857-ac157f9f6d8d",
+ "e2a33bcd-42b6-4189-9c3f-2b88e08dab63"
)
- .requestId("6c64555b-d9af-4745-97c9-087ea03b9908");
+ .requestId("2a3fa0d3-2665-4d91-af6a-08fa343f360b");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransaction(
- "bbafe09a-0ee7-49a4-ab24-d4ae379dba38",
- "0686a451-395f-4e53-9a1d-f813f169da77",
- "af4d7e4a-0031-4775-a48c-64a95566c41c"
+ "a1fc6e7f-4423-4814-a70e-9bce63b0151d",
+ "c53cd34c-7680-4839-9857-ac157f9f6d8d",
+ "e2a33bcd-42b6-4189-9c3f-2b88e08dab63"
)
.metadata("{\"key\":\"value\"}")
- .requestId("f939997e-bb86-43a1-8662-9fa926ac4089");
+ .requestId("778e8a1a-3a4f-411c-a024-d2da6ee8c95a");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -69,13 +69,13 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransaction(
- "bbafe09a-0ee7-49a4-ab24-d4ae379dba38",
- "0686a451-395f-4e53-9a1d-f813f169da77",
- "af4d7e4a-0031-4775-a48c-64a95566c41c"
+ "a1fc6e7f-4423-4814-a70e-9bce63b0151d",
+ "c53cd34c-7680-4839-9857-ac157f9f6d8d",
+ "e2a33bcd-42b6-4189-9c3f-2b88e08dab63"
)
- .description("7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecq")
+ .description("rLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVg")
.metadata("{\"key\":\"value\"}")
- .requestId("53596018-c257-4fe4-bcc4-8d098d867fd6");
+ .requestId("5c19ecd6-e927-403b-8384-2de3672986f3");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -90,14 +90,14 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransaction(
- "bbafe09a-0ee7-49a4-ab24-d4ae379dba38",
- "0686a451-395f-4e53-9a1d-f813f169da77",
- "af4d7e4a-0031-4775-a48c-64a95566c41c"
+ "a1fc6e7f-4423-4814-a70e-9bce63b0151d",
+ "c53cd34c-7680-4839-9857-ac157f9f6d8d",
+ "e2a33bcd-42b6-4189-9c3f-2b88e08dab63"
)
- .pointExpiresAt("2022-04-26T11:41:07.000000Z")
- .description("stoEtPVoykbtA6l7WDayqQLAKXyhWYdlIH")
+ .pointExpiresAt("2025-05-10T03:27:47.000000Z")
+ .description("OQMdHqZLlv01wGqO")
.metadata("{\"key\":\"value\"}")
- .requestId("2ce8fee6-9053-40fe-8242-cc4bb1fa0349");
+ .requestId("1063889f-ca8c-4d15-a798-f35fcf7b458a");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -112,15 +112,15 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransaction(
- "bbafe09a-0ee7-49a4-ab24-d4ae379dba38",
- "0686a451-395f-4e53-9a1d-f813f169da77",
- "af4d7e4a-0031-4775-a48c-64a95566c41c"
+ "a1fc6e7f-4423-4814-a70e-9bce63b0151d",
+ "c53cd34c-7680-4839-9857-ac157f9f6d8d",
+ "e2a33bcd-42b6-4189-9c3f-2b88e08dab63"
)
- .pointAmount(817)
- .pointExpiresAt("2021-09-07T09:54:19.000000Z")
- .description("Ql4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNto")
+ .pointAmount(6254)
+ .pointExpiresAt("2022-09-20T19:07:22.000000Z")
+ .description("FsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZ")
.metadata("{\"key\":\"value\"}")
- .requestId("ca208929-ae70-4cf1-893f-8fbf31547cbb");
+ .requestId("3d14e570-d3b7-45e6-aa64-7509fb8f28b9");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -135,16 +135,16 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransaction(
- "bbafe09a-0ee7-49a4-ab24-d4ae379dba38",
- "0686a451-395f-4e53-9a1d-f813f169da77",
- "af4d7e4a-0031-4775-a48c-64a95566c41c"
+ "a1fc6e7f-4423-4814-a70e-9bce63b0151d",
+ "c53cd34c-7680-4839-9857-ac157f9f6d8d",
+ "e2a33bcd-42b6-4189-9c3f-2b88e08dab63"
)
- .moneyAmount(6582)
- .pointAmount(2496)
- .pointExpiresAt("2021-03-28T20:33:04.000000Z")
- .description("rDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJ")
+ .moneyAmount(4132)
+ .pointAmount(5147)
+ .pointExpiresAt("2020-02-18T23:28:15.000000Z")
+ .description("zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41")
.metadata("{\"key\":\"value\"}")
- .requestId("28d8b055-11a7-4321-8657-46f08b430634");
+ .requestId("87ecba6f-8917-4155-8d57-5c5e4999577d");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -159,17 +159,17 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransaction(
- "bbafe09a-0ee7-49a4-ab24-d4ae379dba38",
- "0686a451-395f-4e53-9a1d-f813f169da77",
- "af4d7e4a-0031-4775-a48c-64a95566c41c"
+ "a1fc6e7f-4423-4814-a70e-9bce63b0151d",
+ "c53cd34c-7680-4839-9857-ac157f9f6d8d",
+ "e2a33bcd-42b6-4189-9c3f-2b88e08dab63"
)
- .bearPointShopId("6bfc44af-b553-494a-9dc4-281b2f3b2864")
- .moneyAmount(1469)
- .pointAmount(9488)
- .pointExpiresAt("2023-01-18T11:40:14.000000Z")
- .description("9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3")
+ .bearPointShopId("aef5e9d2-9816-49a1-97ea-3e31775ba5f3")
+ .moneyAmount(5378)
+ .pointAmount(4246)
+ .pointExpiresAt("2024-10-19T16:42:48.000000Z")
+ .description("tSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2H")
.metadata("{\"key\":\"value\"}")
- .requestId("a5258802-a1a5-41a5-84d0-40d1007639c2");
+ .requestId("05d447f6-5889-4ec0-8be1-aec9616e7cf9");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java
index dba2d885..3f120fb7 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateTopupTransactionWithCheckTest.java
@@ -12,8 +12,8 @@ public class CreateTopupTransactionWithCheckTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransactionWithCheck(
- "cd4eb994-98b7-4aea-91b8-0e53a7345bbb",
- "6f4c62b1-299e-474c-a3ca-1e9e30e7b8cd"
+ "aa271e93-3db1-4a64-9e52-264b5b9c0875",
+ "311e672f-3efa-4c7c-8f6c-c82d560d8c40"
);
try {
PartnerAPITest.getClient().send(request);
@@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateTopupTransactionWithCheck(
- "cd4eb994-98b7-4aea-91b8-0e53a7345bbb",
- "6f4c62b1-299e-474c-a3ca-1e9e30e7b8cd"
+ "aa271e93-3db1-4a64-9e52-264b5b9c0875",
+ "311e672f-3efa-4c7c-8f6c-c82d560d8c40"
)
- .requestId("3e9427b9-30bb-4edd-b9ac-acea3da3f083");
+ .requestId("4d3bb591-6d4c-4a7d-8e98-e6a0e2dcc2bd");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransactionGroupTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransactionGroupTest.java
new file mode 100644
index 00000000..d2b3cbd2
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/CreateTransactionGroupTest.java
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.CreateTransactionGroup;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class CreateTransactionGroupTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new CreateTransactionGroup(
+ "TeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java
index 6a05f39a..79543a83 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateTransactionTest.java
@@ -12,9 +12,9 @@ public class CreateTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateTransaction(
- "6376c4cd-77d5-4f83-b5f6-4a691c7475e7",
- "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291",
- "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d"
);
try {
PartnerAPITest.getClient().send(request);
@@ -30,11 +30,11 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateTransaction(
- "6376c4cd-77d5-4f83-b5f6-4a691c7475e7",
- "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291",
- "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d"
)
- .description("jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhM");
+ .description("NYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVD");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -49,12 +49,12 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateTransaction(
- "6376c4cd-77d5-4f83-b5f6-4a691c7475e7",
- "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291",
- "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d"
)
- .pointExpiresAt("2022-04-18T05:29:48.000000Z")
- .description("y1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX");
+ .pointExpiresAt("2026-06-01T11:21:33.000000Z")
+ .description("JMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -69,13 +69,13 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateTransaction(
- "6376c4cd-77d5-4f83-b5f6-4a691c7475e7",
- "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291",
- "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d"
)
- .pointAmount(350)
- .pointExpiresAt("2023-05-10T17:38:49.000000Z")
- .description("RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZP");
+ .pointAmount(9496)
+ .pointExpiresAt("2026-04-28T02:49:21.000000Z")
+ .description("WDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5Qx");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -90,14 +90,14 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new CreateTransaction(
- "6376c4cd-77d5-4f83-b5f6-4a691c7475e7",
- "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291",
- "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d"
+ "54834b5c-2549-4c46-95f2-4d29e2e821d4",
+ "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5",
+ "6dd14e7e-5638-4902-81cb-a0185959ff6d"
)
- .moneyAmount(2628)
- .pointAmount(4634)
- .pointExpiresAt("2020-05-01T08:52:03.000000Z")
- .description("vKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFT");
+ .moneyAmount(6858)
+ .pointAmount(1488)
+ .pointExpiresAt("2025-05-07T04:42:36.000000Z")
+ .description("bbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mw");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java
index c25b1d23..da88a59d 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateTransactionWithCashtrayTest.java
@@ -12,8 +12,8 @@ public class CreateTransactionWithCashtrayTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateTransactionWithCashtray(
- "695ea41a-9f9f-449b-a519-cf27509404b6",
- "ca9e2ff1-fbed-48c3-98de-cafb1e81400b"
+ "2a2cccbd-e9f3-49fc-8c4a-5515ed340ee9",
+ "97eacdf1-4c08-4589-bb27-b262bc8c30ba"
);
try {
PartnerAPITest.getClient().send(request);
@@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateTransactionWithCashtray(
- "695ea41a-9f9f-449b-a519-cf27509404b6",
- "ca9e2ff1-fbed-48c3-98de-cafb1e81400b"
+ "2a2cccbd-e9f3-49fc-8c4a-5515ed340ee9",
+ "97eacdf1-4c08-4589-bb27-b262bc8c30ba"
)
- .requestId("3d343bff-c2c6-48b3-ba66-3afb9fbd6b2b");
+ .requestId("079825fc-1c51-461c-b34d-d2d1e93012a1");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateTransactionWithCashtray(
- "695ea41a-9f9f-449b-a519-cf27509404b6",
- "ca9e2ff1-fbed-48c3-98de-cafb1e81400b"
+ "2a2cccbd-e9f3-49fc-8c4a-5515ed340ee9",
+ "97eacdf1-4c08-4589-bb27-b262bc8c30ba"
)
- .strategy("money-only")
- .requestId("5520406f-93a1-4145-8e34-eb68de8c927e");
+ .strategy("point-preferred")
+ .requestId("56b4ad04-b2d2-462f-a439-1b43eb7c9794");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java
index 361e0f00..4b2ce21a 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateTransferTransactionTest.java
@@ -12,10 +12,10 @@ public class CreateTransferTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateTransferTransaction(
- "a3ce4b26-c72a-439b-927e-80477f3f01b6",
- "886fa328-e2ea-4816-8007-03faea01d2f2",
- "95a550d0-a9dc-4046-9de9-c2ceae3f9f96",
- 8333.0
+ "3212ad8b-2980-467c-a2fe-d81989da56aa",
+ "ce78edbe-5684-452e-acf4-a8fb7b2377d8",
+ "5c3b99ec-7cc7-449f-b6dd-152537188d81",
+ 3710.0
);
try {
PartnerAPITest.getClient().send(request);
@@ -31,12 +31,12 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateTransferTransaction(
- "a3ce4b26-c72a-439b-927e-80477f3f01b6",
- "886fa328-e2ea-4816-8007-03faea01d2f2",
- "95a550d0-a9dc-4046-9de9-c2ceae3f9f96",
- 8333.0
+ "3212ad8b-2980-467c-a2fe-d81989da56aa",
+ "ce78edbe-5684-452e-acf4-a8fb7b2377d8",
+ "5c3b99ec-7cc7-449f-b6dd-152537188d81",
+ 3710.0
)
- .requestId("e78dc0d9-42d4-48d3-8abe-8ab90e73616f");
+ .requestId("d65c4561-4107-4668-8ee3-e16681c351f4");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -51,13 +51,13 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateTransferTransaction(
- "a3ce4b26-c72a-439b-927e-80477f3f01b6",
- "886fa328-e2ea-4816-8007-03faea01d2f2",
- "95a550d0-a9dc-4046-9de9-c2ceae3f9f96",
- 8333.0
+ "3212ad8b-2980-467c-a2fe-d81989da56aa",
+ "ce78edbe-5684-452e-acf4-a8fb7b2377d8",
+ "5c3b99ec-7cc7-449f-b6dd-152537188d81",
+ 3710.0
)
- .description("hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyEN")
- .requestId("4c32a7ee-12ee-4cef-b424-561b0fc1aaca");
+ .description("2PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsa")
+ .requestId("c1a6bd6c-76d1-443f-a839-7165e1773108");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -72,14 +72,14 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateTransferTransaction(
- "a3ce4b26-c72a-439b-927e-80477f3f01b6",
- "886fa328-e2ea-4816-8007-03faea01d2f2",
- "95a550d0-a9dc-4046-9de9-c2ceae3f9f96",
- 8333.0
+ "3212ad8b-2980-467c-a2fe-d81989da56aa",
+ "ce78edbe-5684-452e-acf4-a8fb7b2377d8",
+ "5c3b99ec-7cc7-449f-b6dd-152537188d81",
+ 3710.0
)
.metadata("{\"key\":\"value\"}")
- .description("M2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoC")
- .requestId("7cd2c5aa-6d59-462f-afd9-e01a7bbac46d");
+ .description("t3sJPwGPZVdfeHb6D60qrRKjcydAgQf1k")
+ .requestId("783c8b6a-bf2c-49e7-b985-d26ca216db3e");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateUserAccountTest.java b/src/test/java/jp/pokepay/partnerapi/CreateUserAccountTest.java
index d3095ff9..79e56ffb 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateUserAccountTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateUserAccountTest.java
@@ -12,8 +12,8 @@ public class CreateUserAccountTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateUserAccount(
- "1cca797a-a4ae-4807-a9ad-4bab80f00988",
- "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d"
+ "53a50385-11f5-46f5-a3d9-62a90c8a29c4",
+ "6cddcb78-7848-485a-a46e-a0ab2dc39ee9"
);
try {
PartnerAPITest.getClient().send(request);
@@ -29,8 +29,8 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateUserAccount(
- "1cca797a-a4ae-4807-a9ad-4bab80f00988",
- "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d"
+ "53a50385-11f5-46f5-a3d9-62a90c8a29c4",
+ "6cddcb78-7848-485a-a46e-a0ab2dc39ee9"
)
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}");
try {
@@ -47,10 +47,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new CreateUserAccount(
- "1cca797a-a4ae-4807-a9ad-4bab80f00988",
- "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d"
+ "53a50385-11f5-46f5-a3d9-62a90c8a29c4",
+ "6cddcb78-7848-485a-a46e-a0ab2dc39ee9"
)
- .externalId("FBMnn24Y00BddIYIaGsnHTfyj3vGhpYs6lE3PVx")
+ .externalId("kAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6")
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}");
try {
PartnerAPITest.getClient().send(request);
@@ -66,11 +66,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new CreateUserAccount(
- "1cca797a-a4ae-4807-a9ad-4bab80f00988",
- "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d"
+ "53a50385-11f5-46f5-a3d9-62a90c8a29c4",
+ "6cddcb78-7848-485a-a46e-a0ab2dc39ee9"
)
- .name("hCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiNymBaUIu6lQIyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa")
- .externalId("h6AAgB9jXehhbgs")
+ .name("Qi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBW")
+ .externalId("M")
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}");
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java
index 6c6047a4..0d5827f7 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateUserDeviceTest.java
@@ -12,7 +12,7 @@ public class CreateUserDeviceTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateUserDevice(
- "3dc6d77e-acc2-4632-8c0f-c6abed1cea87"
+ "a88eef9d-1603-4c02-93ef-57b20af82f42"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new CreateUserDevice(
- "3dc6d77e-acc2-4632-8c0f-c6abed1cea87"
+ "a88eef9d-1603-4c02-93ef-57b20af82f42"
)
.metadata("{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}");
try {
diff --git a/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java
index 16fa1aa0..ed2ee469 100644
--- a/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/CreateWebhookTest.java
@@ -12,8 +12,8 @@ public class CreateWebhookTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new CreateWebhook(
- "bulk_shops",
- "v"
+ "process_user_stats_operation",
+ "XYVgVjKzF"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java
index 9c48765c..857f9739 100644
--- a/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/DeleteAccountTest.java
@@ -12,7 +12,7 @@ public class DeleteAccountTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new DeleteAccount(
- "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d"
+ "6e0f5443-faad-451b-9992-5ce9c4e4ae3a"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new DeleteAccount(
- "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d"
+ "6e0f5443-faad-451b-9992-5ce9c4e4ae3a"
)
- .cashback(true);
+ .cashback(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java
new file mode 100644
index 00000000..8961497b
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/DeleteBankTest.java
@@ -0,0 +1,29 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.DeleteBank;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class DeleteBankTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new DeleteBank(
+ "2eb68c07-3114-4607-ab3d-27a1ba1d8e86",
+ "74ae5605-ec82-41db-b560-3b6b0ee283ca"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java
index 8c5dd7e9..8a95e6c5 100644
--- a/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/DeleteWebhookTest.java
@@ -12,7 +12,7 @@ public class DeleteWebhookTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new DeleteWebhook(
- "e58e54ee-1f49-49d3-a0be-7230f9ff0994"
+ "d0ef4d68-8c25-4101-a0ed-0c78bc4b4ff5"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetAccountTest.java b/src/test/java/jp/pokepay/partnerapi/GetAccountTest.java
index 09f7c5a8..b8f994fa 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetAccountTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetAccountTest.java
@@ -12,7 +12,7 @@ public class GetAccountTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetAccount(
- "e2f27231-d218-406e-b371-622b2afd45f7"
+ "659420e6-ccd8-47bd-9f80-4444609cfe97"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetAccountTransferSummaryTest.java b/src/test/java/jp/pokepay/partnerapi/GetAccountTransferSummaryTest.java
index 51894994..d891f646 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetAccountTransferSummaryTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetAccountTransferSummaryTest.java
@@ -12,7 +12,7 @@ public class GetAccountTransferSummaryTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetAccountTransferSummary(
- "d79ada44-2554-41d3-a753-5725590e9c63"
+ "2784c798-d5ac-46da-8465-d2dbc213a805"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new GetAccountTransferSummary(
- "d79ada44-2554-41d3-a753-5725590e9c63"
+ "2784c798-d5ac-46da-8465-d2dbc213a805"
)
- .transferTypes(new String[]{"exchange-outflow","exchange-inflow","refund-topup","use-coupon","refund-coupon","payment","refund-campaign","campaign-topup","refund-exchange-outflow"});
+ .transferTypes(new String[]{"use-coupon"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new GetAccountTransferSummary(
- "d79ada44-2554-41d3-a753-5725590e9c63"
+ "2784c798-d5ac-46da-8465-d2dbc213a805"
)
- .to("2022-08-23T05:52:55.000000Z")
- .transferTypes(new String[]{"exchange-outflow","use-coupon","refund-payment","topup","payment","exchange-inflow","refund-exchange-outflow"});
+ .to("2023-02-07T22:58:38.000000Z")
+ .transferTypes(new String[]{"refund-exchange-outflow","exchange-outflow","refund-campaign","refund-exchange-inflow","payment","refund-payment","campaign-topup","topup","refund-coupon","refund-topup","use-coupon"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new GetAccountTransferSummary(
- "d79ada44-2554-41d3-a753-5725590e9c63"
+ "2784c798-d5ac-46da-8465-d2dbc213a805"
)
- .from("2024-08-01T20:42:17.000000Z")
- .to("2022-12-23T22:37:41.000000Z")
- .transferTypes(new String[]{"refund-campaign","refund-payment","use-coupon","refund-exchange-outflow","exchange-inflow","refund-topup"});
+ .from("2023-09-02T11:04:26.000000Z")
+ .to("2023-04-29T14:54:57.000000Z")
+ .transferTypes(new String[]{"payment","refund-coupon","campaign-topup","refund-exchange-outflow","topup","refund-campaign"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/GetBillTest.java b/src/test/java/jp/pokepay/partnerapi/GetBillTest.java
new file mode 100644
index 00000000..6b943afa
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/GetBillTest.java
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.GetBill;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class GetBillTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new GetBill(
+ "f87fba5f-f102-4493-be3d-e2203cd347c3"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java
index cb701759..06309262 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetBulkTransactionTest.java
@@ -12,7 +12,7 @@ public class GetBulkTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetBulkTransaction(
- "e58bf7ca-9507-4ca7-8c7c-f29834f6cc7b"
+ "cee74a26-3c7d-4eb1-84a1-785af4b701fe"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java
index 907a235f..adbe5933 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetCampaignTest.java
@@ -12,7 +12,7 @@ public class GetCampaignTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetCampaign(
- "f4216304-2f33-46f7-8217-ed37d527d473"
+ "4218c340-02f6-4178-90d8-d055dbd36808"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java
index 935108df..851ac309 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetCashtrayTest.java
@@ -12,7 +12,7 @@ public class GetCashtrayTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetCashtray(
- "889cfd0f-1711-4dc9-901f-71072893803b"
+ "cff6cb9e-edac-4091-89b6-add3387561e5"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetCheckTest.java b/src/test/java/jp/pokepay/partnerapi/GetCheckTest.java
index c9063413..6898272f 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetCheckTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetCheckTest.java
@@ -12,7 +12,7 @@ public class GetCheckTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetCheck(
- "b051a77b-0e57-4138-aef5-ff8a3812550b"
+ "6cdc5517-57ff-4d82-8fc2-6f2ad7130968"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java b/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java
index 11647b47..45a5eccb 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetCouponTest.java
@@ -12,7 +12,7 @@ public class GetCouponTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetCoupon(
- "282f5141-ced8-4882-9b84-38fd6c0fdc2c"
+ "ffeb658a-2340-4c15-906f-b80bbb76f118"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetCpmTokenTest.java b/src/test/java/jp/pokepay/partnerapi/GetCpmTokenTest.java
index 729a9ee8..a95b9614 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetCpmTokenTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetCpmTokenTest.java
@@ -12,7 +12,7 @@ public class GetCpmTokenTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetCpmToken(
- "XNEvBDebROkI568yn3vAdg"
+ "s4Vk2VUx2tI5N4bIOpNtWw"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetCustomerAccountsTest.java b/src/test/java/jp/pokepay/partnerapi/GetCustomerAccountsTest.java
index b746291e..e8182988 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetCustomerAccountsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetCustomerAccountsTest.java
@@ -12,7 +12,7 @@ public class GetCustomerAccountsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
- .email("cm0Sp2RluF@OAxJ.com");
+ .email("fcLabY2vDz@XzQx.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
- .tel("07-0551-2657")
- .email("TcJlnsa7zu@y1tu.com");
+ .tel("0386914")
+ .email("9VFC5bo0KX@fPAS.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
- .externalId("dw")
- .tel("071-69745487")
- .email("fKkMLwrBpO@RQ9L.com");
+ .externalId("w8jPQ0hMJ4nPgNJOUuVI3xkUSOX0v")
+ .tel("0074-316-0237")
+ .email("pl9MWii2ex@Aarz.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
- .status("suspended")
- .externalId("lnKRmCd4n")
- .tel("045-981479")
- .email("qpn3W7S36l@34SS.com");
+ .status("active")
+ .externalId("UllrgsQZQAnUYeKIbZQuPYAKNLvTyMc")
+ .tel("039-279393")
+ .email("z5jRHNPv9L@O3Mt.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
.setSuspended(false)
.status("active")
- .externalId("W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA")
- .tel("09215911045")
- .email("P1AnQALadF@sAzg.com");
+ .externalId("yt1wTnktL8AY")
+ .tel("004073-175")
+ .email("ncONv8Kje2@pUTW.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
- .createdAtTo("2022-07-27T22:59:50.000000Z")
- .setSuspended(true)
- .status("pre-closed")
- .externalId("tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc")
- .tel("0129-664-818")
- .email("3sP8V6IT9V@FC5b.com");
+ .createdAtTo("2022-04-21T04:20:10.000000Z")
+ .setSuspended(false)
+ .status("suspended")
+ .externalId("NDe87")
+ .tel("045226365")
+ .email("Usk6umIdkj@ysmB.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
- .createdAtFrom("2021-03-24T19:42:09.000000Z")
- .createdAtTo("2020-09-24T18:38:11.000000Z")
+ .createdAtFrom("2022-05-05T01:50:52.000000Z")
+ .createdAtTo("2024-03-10T11:23:04.000000Z")
.setSuspended(true)
- .status("active")
- .externalId("PASw8jPQ0hMJ4nPgNJOUuVI3xkUSOX0vTgyFK1F")
- .tel("002-97-992")
- .email("exAarzlUll@rgsQ.com");
+ .status("suspended")
+ .externalId("Cy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg2")
+ .tel("0343-6615")
+ .email("wFZHEg2RF0@uEHw.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
- .perPage(6435)
- .createdAtFrom("2022-12-18T13:21:30.000000Z")
- .createdAtTo("2022-10-28T02:45:21.000000Z")
- .setSuspended(true)
- .status("active")
- .externalId("YeKIbZQuPYAKNLvTyMcIYl")
- .tel("079352848")
- .email("Pv9LO3MtPy@t1wT.com");
+ .perPage(2583)
+ .createdAtFrom("2022-08-10T17:00:59.000000Z")
+ .createdAtTo("2023-09-15T19:26:54.000000Z")
+ .setSuspended(false)
+ .status("suspended")
+ .externalId("Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5")
+ .tel("0416-7601-378")
+ .email("rq2HjQnZoV@WhOd.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -192,17 +192,17 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new GetCustomerAccounts(
- "e981839f-7730-40a4-9991-3f49bc7c0625"
+ "0e4e7760-d0c1-43f4-8192-1c94876e3f07"
)
- .page(8687)
- .perPage(8494)
- .createdAtFrom("2024-02-11T20:15:48.000000Z")
- .createdAtTo("2023-10-06T20:45:00.000000Z")
+ .page(9504)
+ .perPage(992)
+ .createdAtFrom("2024-11-26T21:23:31.000000Z")
+ .createdAtTo("2026-05-27T18:46:45.000000Z")
.setSuspended(true)
- .status("active")
- .externalId("Yk")
- .tel("004073-175")
- .email("ncONv8Kje2@pUTW.com");
+ .status("suspended")
+ .externalId("EjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzF")
+ .tel("06-385030")
+ .email("DlS2m5Kv5I@bgTW.com");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/GetCustomerCardsTest.java b/src/test/java/jp/pokepay/partnerapi/GetCustomerCardsTest.java
new file mode 100644
index 00000000..9659a467
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/GetCustomerCardsTest.java
@@ -0,0 +1,63 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.GetCustomerCards;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class GetCustomerCardsTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new GetCustomerCards(
+ "80cb3494-67d3-418d-9649-45ece816f13b"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test1() throws ConnectionError, ProcessingError {
+ Request request = new GetCustomerCards(
+ "80cb3494-67d3-418d-9649-45ece816f13b"
+ )
+ .perPage(58);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test2() throws ConnectionError, ProcessingError {
+ Request request = new GetCustomerCards(
+ "80cb3494-67d3-418d-9649-45ece816f13b"
+ )
+ .page(7424)
+ .perPage(78);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java b/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java
index a57658a3..3d538b9d 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetExternalTransactionByRequestIdTest.java
@@ -12,7 +12,7 @@ public class GetExternalTransactionByRequestIdTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetExternalTransactionByRequestId(
- "4e64bff1-5f4d-4c40-baae-80a79582760a"
+ "d6155e44-7ccd-4b59-9335-9a42156fdbd5"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java
index c761d9b9..98de5e0c 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneyOrganizationSummariesTest.java
@@ -12,7 +12,7 @@ public class GetPrivateMoneyOrganizationSummariesTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneyOrganizationSummaries(
- "25c2238f-cf81-4930-aefa-23951ca983f1"
+ "a69ad5a1-ad3c-47f3-bb11-5fc18e59fa69"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneyOrganizationSummaries(
- "25c2238f-cf81-4930-aefa-23951ca983f1"
+ "a69ad5a1-ad3c-47f3-bb11-5fc18e59fa69"
)
- .page(3863);
+ .page(4039);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneyOrganizationSummaries(
- "25c2238f-cf81-4930-aefa-23951ca983f1"
+ "a69ad5a1-ad3c-47f3-bb11-5fc18e59fa69"
)
- .perPage(4164)
- .page(1671);
+ .perPage(4303)
+ .page(6564);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneyOrganizationSummaries(
- "25c2238f-cf81-4930-aefa-23951ca983f1"
+ "a69ad5a1-ad3c-47f3-bb11-5fc18e59fa69"
)
- .from("2023-02-24T15:38:45.000000Z")
- .to("2020-06-01T22:27:12.000000Z");
+ .from("2021-10-13T12:35:36.000000Z")
+ .to("2022-03-02T22:15:19.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -81,11 +81,11 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneyOrganizationSummaries(
- "25c2238f-cf81-4930-aefa-23951ca983f1"
+ "a69ad5a1-ad3c-47f3-bb11-5fc18e59fa69"
)
- .from("2022-04-29T04:44:50.000000Z")
- .to("2023-02-28T01:22:24.000000Z")
- .page(2940);
+ .from("2024-05-18T13:28:57.000000Z")
+ .to("2022-11-16T15:18:57.000000Z")
+ .page(3684);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -100,12 +100,12 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneyOrganizationSummaries(
- "25c2238f-cf81-4930-aefa-23951ca983f1"
+ "a69ad5a1-ad3c-47f3-bb11-5fc18e59fa69"
)
- .from("2020-06-22T06:48:08.000000Z")
- .to("2024-10-03T11:36:06.000000Z")
- .perPage(2431)
- .page(6798);
+ .from("2022-09-20T16:39:04.000000Z")
+ .to("2023-01-28T15:06:04.000000Z")
+ .perPage(1698)
+ .page(9923);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java
index 2725120c..395887e8 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneySummaryTest.java
@@ -12,7 +12,7 @@ public class GetPrivateMoneySummaryTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneySummary(
- "bc754716-7e01-46ff-bef3-b315e34c3f20"
+ "90fce3bf-5ffb-4127-b115-12e8d136531f"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneySummary(
- "bc754716-7e01-46ff-bef3-b315e34c3f20"
+ "90fce3bf-5ffb-4127-b115-12e8d136531f"
)
- .to("2020-02-01T06:05:29.000000Z");
+ .to("2021-09-29T07:00:43.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneySummary(
- "bc754716-7e01-46ff-bef3-b315e34c3f20"
+ "90fce3bf-5ffb-4127-b115-12e8d136531f"
)
- .from("2023-06-06T15:44:55.000000Z")
- .to("2022-07-27T19:34:17.000000Z");
+ .from("2020-10-28T06:45:17.000000Z")
+ .to("2022-03-16T17:17:36.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java
index 06f90b73..1c1aa2ab 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetPrivateMoneysTest.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneys()
- .perPage(6996);
+ .perPage(5626);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneys()
- .page(2568)
- .perPage(7422);
+ .page(5392)
+ .perPage(6058);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new GetPrivateMoneys()
- .organizationCode("qr-5a-89")
- .page(972)
- .perPage(207);
+ .organizationCode("---0FciB9EI")
+ .page(6737)
+ .perPage(8245);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java b/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java
index 5691bfac..ca5a1510 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetSevenBankATMSessionTest.java
@@ -12,7 +12,7 @@ public class GetSevenBankATMSessionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetSevenBankATMSession(
- "EkSwN7J"
+ "LQ8Gn"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetShopAccountsTest.java b/src/test/java/jp/pokepay/partnerapi/GetShopAccountsTest.java
index bd0fcdd1..826fcd61 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetShopAccountsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetShopAccountsTest.java
@@ -12,7 +12,7 @@ public class GetShopAccountsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetShopAccounts(
- "31ecb769-3144-4a83-95a2-b72406deb863"
+ "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new GetShopAccounts(
- "31ecb769-3144-4a83-95a2-b72406deb863"
+ "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d"
)
- .setSuspended(false);
+ .setSuspended(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new GetShopAccounts(
- "31ecb769-3144-4a83-95a2-b72406deb863"
+ "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d"
)
- .createdAtTo("2020-05-06T02:02:55.000000Z")
+ .createdAtTo("2021-10-31T16:57:13.000000Z")
.setSuspended(true);
try {
PartnerAPITest.getClient().send(request);
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new GetShopAccounts(
- "31ecb769-3144-4a83-95a2-b72406deb863"
+ "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d"
)
- .createdAtFrom("2023-03-17T16:04:05.000000Z")
- .createdAtTo("2024-03-19T06:01:45.000000Z")
- .setSuspended(false);
+ .createdAtFrom("2023-11-06T02:31:37.000000Z")
+ .createdAtTo("2024-07-07T08:34:30.000000Z")
+ .setSuspended(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -82,11 +82,11 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new GetShopAccounts(
- "31ecb769-3144-4a83-95a2-b72406deb863"
+ "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d"
)
- .perPage(4823)
- .createdAtFrom("2023-07-22T08:29:37.000000Z")
- .createdAtTo("2020-07-29T13:51:14.000000Z")
+ .perPage(6667)
+ .createdAtFrom("2023-12-12T11:10:42.000000Z")
+ .createdAtTo("2023-11-10T03:08:06.000000Z")
.setSuspended(false);
try {
PartnerAPITest.getClient().send(request);
@@ -102,12 +102,12 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new GetShopAccounts(
- "31ecb769-3144-4a83-95a2-b72406deb863"
+ "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d"
)
- .page(4360)
- .perPage(8484)
- .createdAtFrom("2022-04-08T21:42:45.000000Z")
- .createdAtTo("2023-03-08T17:36:02.000000Z")
+ .page(7903)
+ .perPage(1435)
+ .createdAtFrom("2021-06-16T10:57:24.000000Z")
+ .createdAtTo("2020-01-11T14:03:41.000000Z")
.setSuspended(true);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetShopTest.java b/src/test/java/jp/pokepay/partnerapi/GetShopTest.java
index 9d2a61b7..c1bb88ae 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetShopTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetShopTest.java
@@ -12,7 +12,7 @@ public class GetShopTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetShop(
- "026fffa8-2866-4283-98da-548e8efcfc76"
+ "4100048e-9b66-4b5b-a47c-587ef280f724"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java b/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java
index 2812fab0..13e417c9 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetTransactionByRequestIdTest.java
@@ -12,7 +12,7 @@ public class GetTransactionByRequestIdTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetTransactionByRequestId(
- "deb8b291-56a1-4247-bb36-e8f07aec80fb"
+ "c8abf1fb-bc08-446b-97c5-f8abaf064dda"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java
index 6785d460..85d85ea6 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetTransactionTest.java
@@ -12,7 +12,7 @@ public class GetTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetTransaction(
- "0a12dd2d-bb34-4fc3-aee4-0502dbfefb4e"
+ "1b5c4179-22cc-453c-bef9-a39a42ccb65a"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java b/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java
index c47e7302..6c0093ed 100644
--- a/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/GetUserDeviceTest.java
@@ -12,7 +12,7 @@ public class GetUserDeviceTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new GetUserDevice(
- "0dc83d4f-7776-4b76-b82e-8c80e00d323b"
+ "6195b8b2-a8cf-4ea0-a06c-ae12a1f0584c"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java b/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java
index 164b940f..c284dc7a 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListAccountBalancesTest.java
@@ -12,7 +12,7 @@ public class ListAccountBalancesTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListAccountBalances(
- "0adcc451-9f5b-4fe8-8803-fd1118c34c95"
+ "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListAccountBalances(
- "0adcc451-9f5b-4fe8-8803-fd1118c34c95"
+ "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf"
)
- .direction("desc");
+ .direction("asc");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListAccountBalances(
- "0adcc451-9f5b-4fe8-8803-fd1118c34c95"
+ "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf"
)
- .expiresAtTo("2020-10-07T18:59:38.000000Z")
- .direction("desc");
+ .expiresAtTo("2024-07-17T16:43:47.000000Z")
+ .direction("asc");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListAccountBalances(
- "0adcc451-9f5b-4fe8-8803-fd1118c34c95"
+ "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf"
)
- .expiresAtFrom("2020-09-07T21:25:03.000000Z")
- .expiresAtTo("2024-10-02T20:33:17.000000Z")
+ .expiresAtFrom("2021-04-06T08:41:06.000000Z")
+ .expiresAtTo("2023-06-02T11:51:13.000000Z")
.direction("desc");
try {
PartnerAPITest.getClient().send(request);
@@ -82,11 +82,11 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListAccountBalances(
- "0adcc451-9f5b-4fe8-8803-fd1118c34c95"
+ "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf"
)
- .perPage(5374)
- .expiresAtFrom("2021-01-13T03:58:59.000000Z")
- .expiresAtTo("2024-09-16T05:40:45.000000Z")
+ .perPage(4634)
+ .expiresAtFrom("2024-01-18T23:56:06.000000Z")
+ .expiresAtTo("2021-12-10T18:32:08.000000Z")
.direction("desc");
try {
PartnerAPITest.getClient().send(request);
@@ -102,12 +102,12 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListAccountBalances(
- "0adcc451-9f5b-4fe8-8803-fd1118c34c95"
+ "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf"
)
- .page(9044)
- .perPage(3584)
- .expiresAtFrom("2022-05-05T20:55:29.000000Z")
- .expiresAtTo("2023-04-07T14:57:44.000000Z")
+ .page(5372)
+ .perPage(1503)
+ .expiresAtFrom("2021-10-12T09:36:01.000000Z")
+ .expiresAtTo("2023-11-12T04:37:14.000000Z")
.direction("asc");
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java b/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java
index f0879076..fbe4d6c8 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListAccountExpiredBalancesTest.java
@@ -12,7 +12,7 @@ public class ListAccountExpiredBalancesTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListAccountExpiredBalances(
- "cce276f9-f936-4628-91b6-bb60d347c3df"
+ "154960a2-ce1f-44d3-ad4e-01f7bc94c80f"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListAccountExpiredBalances(
- "cce276f9-f936-4628-91b6-bb60d347c3df"
+ "154960a2-ce1f-44d3-ad4e-01f7bc94c80f"
)
- .direction("asc");
+ .direction("desc");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListAccountExpiredBalances(
- "cce276f9-f936-4628-91b6-bb60d347c3df"
+ "154960a2-ce1f-44d3-ad4e-01f7bc94c80f"
)
- .expiresAtTo("2022-11-08T09:57:39.000000Z")
+ .expiresAtTo("2020-05-12T06:39:28.000000Z")
.direction("desc");
try {
PartnerAPITest.getClient().send(request);
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListAccountExpiredBalances(
- "cce276f9-f936-4628-91b6-bb60d347c3df"
+ "154960a2-ce1f-44d3-ad4e-01f7bc94c80f"
)
- .expiresAtFrom("2021-02-10T04:23:33.000000Z")
- .expiresAtTo("2021-11-27T03:23:28.000000Z")
- .direction("desc");
+ .expiresAtFrom("2021-08-10T22:28:30.000000Z")
+ .expiresAtTo("2022-01-02T23:11:37.000000Z")
+ .direction("asc");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -82,11 +82,11 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListAccountExpiredBalances(
- "cce276f9-f936-4628-91b6-bb60d347c3df"
+ "154960a2-ce1f-44d3-ad4e-01f7bc94c80f"
)
- .perPage(9269)
- .expiresAtFrom("2022-07-27T12:24:37.000000Z")
- .expiresAtTo("2020-03-19T18:01:03.000000Z")
+ .perPage(4714)
+ .expiresAtFrom("2020-04-19T21:07:10.000000Z")
+ .expiresAtTo("2023-01-28T20:39:36.000000Z")
.direction("desc");
try {
PartnerAPITest.getClient().send(request);
@@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListAccountExpiredBalances(
- "cce276f9-f936-4628-91b6-bb60d347c3df"
+ "154960a2-ce1f-44d3-ad4e-01f7bc94c80f"
)
- .page(6531)
- .perPage(2579)
- .expiresAtFrom("2023-10-07T04:30:21.000000Z")
- .expiresAtTo("2023-04-20T20:38:29.000000Z")
- .direction("asc");
+ .page(2353)
+ .perPage(7193)
+ .expiresAtFrom("2025-03-14T13:29:46.000000Z")
+ .expiresAtTo("2021-07-19T10:26:05.000000Z")
+ .direction("desc");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java b/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java
index eb967c01..5bfc6cf3 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListBanksTest.java
@@ -12,7 +12,7 @@ public class ListBanksTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListBanks(
- "a829764d-e1b6-4d25-9279-1fceebdd8b45"
+ "687de962-6d75-40f7-a934-b9d95927312a"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListBanks(
- "a829764d-e1b6-4d25-9279-1fceebdd8b45"
+ "687de962-6d75-40f7-a934-b9d95927312a"
)
- .privateMoneyId("f13bb85d-66aa-4930-a316-33b8455d28c1");
+ .privateMoneyId("557b269c-ec03-4075-99dd-d23f330c9a4a");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java
new file mode 100644
index 00000000..ea17faf3
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/ListBillTransactionsTest.java
@@ -0,0 +1,356 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.ListBillTransactions;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class ListBillTransactionsTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions();
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test1() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .perPage(227);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test2() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .prevPageCursorId("2a67173e-b942-43a4-ae81-adefee312533")
+ .perPage(329);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test3() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .nextPageCursorId("3edd73da-a3af-468e-9d04-ffe87a2c959c")
+ .prevPageCursorId("29f2e505-1bee-4cf9-8e5a-6a354d01fb19")
+ .perPage(850);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test4() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .to("2023-08-03T15:24:11.000000Z")
+ .nextPageCursorId("ccbb09bb-df37-4016-b78f-a5d54e3090ab")
+ .prevPageCursorId("d67b2b98-1a30-4bb4-a12c-e9de9b83b890")
+ .perPage(294);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test5() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .from("2025-04-12T09:53:49.000000Z")
+ .to("2024-05-13T09:34:33.000000Z")
+ .nextPageCursorId("39f20a17-71cc-4111-b301-89167d16d33d")
+ .prevPageCursorId("d34cd134-bce8-4a6d-b934-10c36e116eb2")
+ .perPage(224);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test6() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .setModified(true)
+ .from("2025-11-05T01:00:16.000000Z")
+ .to("2023-09-28T21:39:19.000000Z")
+ .nextPageCursorId("aa9eba9a-af06-4238-893b-50a8e0abd640")
+ .prevPageCursorId("a31802d7-f60d-4209-ae01-b64337f29b9a")
+ .perPage(723);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test7() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .billId("c7adb47c-89e6-4827-8cfa-5a32a83f79ec")
+ .setModified(false)
+ .from("2022-09-04T06:37:11.000000Z")
+ .to("2023-06-12T03:51:25.000000Z")
+ .nextPageCursorId("f2914d65-79fd-4827-af8f-6a2366054429")
+ .prevPageCursorId("c76517f6-5f8f-40e2-bbaf-462a36dbd131")
+ .perPage(979);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test8() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .transactionId("ed1f2fbf-fcb7-4ecf-b69d-f6ab3af9f151")
+ .billId("bcfe0d4f-f6e7-4e5f-a29e-e398c28ba1dc")
+ .setModified(false)
+ .from("2023-01-28T04:13:11.000000Z")
+ .to("2025-08-10T09:06:27.000000Z")
+ .nextPageCursorId("147a18fa-8770-4887-a314-7b13a99d878b")
+ .prevPageCursorId("cd8be4e1-384c-4c9d-977b-783d92d57578")
+ .perPage(62);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test9() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .description("a2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z1")
+ .transactionId("3b3d5fb4-ab0b-4139-8a42-cc52ae62b05a")
+ .billId("156b07db-3ced-4051-bb98-69ac200a23fe")
+ .setModified(true)
+ .from("2021-08-14T15:17:27.000000Z")
+ .to("2023-07-17T08:28:01.000000Z")
+ .nextPageCursorId("82b0a411-9ae7-461c-977a-6d65e99bbf7c")
+ .prevPageCursorId("71b30fe3-4671-4018-97e4-92bc03e5a2c4")
+ .perPage(266);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test10() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .terminalId("8d867fd6-f953-4cfd-a1f3-f0f45416faef")
+ .description("tPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8")
+ .transactionId("14fc35e8-a5e0-4e8c-aeef-3970553942ba")
+ .billId("ffae7dec-7465-43a8-97f5-5329b29a42f6")
+ .setModified(false)
+ .from("2024-01-19T21:16:23.000000Z")
+ .to("2025-12-16T04:08:13.000000Z")
+ .nextPageCursorId("e14eb408-acb0-4ee4-ba26-828275476799")
+ .prevPageCursorId("8fa8b2a5-1efa-4ef1-be9a-f283fd6cc291")
+ .perPage(30);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test11() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .customerName("DmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6Axiyb")
+ .terminalId("953c7749-5f55-4b64-aadf-b0eee008f732")
+ .description("JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8")
+ .transactionId("300ec42e-5054-42ad-9e97-496361c8428f")
+ .billId("b5756b39-0183-4a21-a7b1-b1d9a252e15c")
+ .setModified(true)
+ .from("2021-10-02T10:03:30.000000Z")
+ .to("2023-01-12T05:28:42.000000Z")
+ .nextPageCursorId("28fbba7f-c7c4-49f5-ad10-5e414f41fc00")
+ .prevPageCursorId("c301b430-2442-492a-9526-17c592ddc397")
+ .perPage(931);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test12() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .customerId("9add4615-170d-412d-9061-95782dcf9706")
+ .customerName("u5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d")
+ .terminalId("243e16dd-7637-4eb2-bed0-7684f57112bf")
+ .description("RBNNGTP71wcJLJGkIvTZnRNAv")
+ .transactionId("97f2e9b7-b53f-4f84-9eef-d1adea798fe5")
+ .billId("0c1eef51-3f6a-4f55-a5be-5a18c33aa796")
+ .setModified(true)
+ .from("2025-09-06T21:18:25.000000Z")
+ .to("2024-01-29T07:59:54.000000Z")
+ .nextPageCursorId("f8831bdf-3631-40c7-b062-b197a7053e1e")
+ .prevPageCursorId("846ce781-2c5e-4a83-b743-350054bdac60")
+ .perPage(71);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test13() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .shopId("8ebb431c-9f75-4df2-b86d-d905c91c52e1")
+ .customerId("a4b2aa7f-b1af-4f23-8ca4-2a196d8d752a")
+ .customerName("HHuXDOcuycPW2WYY40yWZt9")
+ .terminalId("758e3893-ae5a-4cea-a482-72c8c80b663f")
+ .description("qLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3")
+ .transactionId("1963673e-330c-41cb-b72a-00e853d5152a")
+ .billId("1972276a-06bb-491d-b1f0-e9cd0845d1f1")
+ .setModified(false)
+ .from("2022-12-26T07:01:25.000000Z")
+ .to("2024-01-31T13:21:18.000000Z")
+ .nextPageCursorId("4c32a7ee-12ee-4cef-b424-561b0fc1aaca")
+ .prevPageCursorId("6745f3ff-4fcb-474e-a54d-e7327835c544")
+ .perPage(139);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test14() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .organizationCode("5uL6-5-kia0-02--8")
+ .shopId("ff80bd4f-5cac-4cb3-977a-787bcc034ad9")
+ .customerId("b32d57c6-c653-4ac7-99b9-adae48bc8c62")
+ .customerName("V5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7ED")
+ .terminalId("b740977e-78df-4b6b-b7bb-fed8e8665bce")
+ .description("6HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yL")
+ .transactionId("0183e6c6-0c08-4c6c-a24c-1b80ba703613")
+ .billId("48674ba8-69b5-4911-a9eb-f162943f059c")
+ .setModified(false)
+ .from("2023-05-01T01:29:23.000000Z")
+ .to("2023-03-30T17:06:36.000000Z")
+ .nextPageCursorId("58eec69d-aa20-42bc-9e36-54a9642d70f8")
+ .prevPageCursorId("289b3e09-4355-471a-915f-71adfd827f97")
+ .perPage(744);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test15() throws ConnectionError, ProcessingError {
+ Request request = new ListBillTransactions()
+ .privateMoneyId("8454fb78-e21a-4c9f-a689-4735a1f90aa9")
+ .organizationCode("45L4--5wtjozI-W--eh9")
+ .shopId("fadd450d-627f-4b83-859a-b7a83dd48b43")
+ .customerId("7065e522-5f56-4776-8a8c-fe1516e9430a")
+ .customerName("Anqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mL")
+ .terminalId("cd261880-601f-4fca-83fa-57217045fba6")
+ .description("HpOgkhaasWI8ELqJwRA62Ghe")
+ .transactionId("cdc01918-0e3f-4330-aee5-102a66df1c1e")
+ .billId("1688dab6-6c70-4463-8ed2-03b130d86b3c")
+ .setModified(true)
+ .from("2024-04-22T20:48:23.000000Z")
+ .to("2021-10-05T04:50:45.000000Z")
+ .nextPageCursorId("da70d6ca-df70-42a5-a6f2-4f66078b752f")
+ .prevPageCursorId("a8c90f46-6e44-4cdd-be0a-d0b4cc443507")
+ .perPage(952);
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java
index e875352a..8f4cfed4 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListBillsTest.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .setDisabled(false);
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -41,7 +41,7 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .upperLimitAmount(3460)
+ .upperLimitAmount(9364)
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .lowerLimitAmount(3003)
- .upperLimitAmount(2795)
- .setDisabled(true);
+ .lowerLimitAmount(9372)
+ .upperLimitAmount(5960)
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -74,9 +74,9 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .shopId("a9696cec-9a6a-4ba0-b1b1-beff32bea9d1")
- .lowerLimitAmount(6740)
- .upperLimitAmount(874)
+ .shopId("0c7a21e5-557f-4a6d-955b-517b3dd30ee8")
+ .lowerLimitAmount(209)
+ .upperLimitAmount(816)
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -92,10 +92,10 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .shopName("kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kX")
- .shopId("52fbc519-17e0-450f-a1fb-f1be62dd6c3d")
- .lowerLimitAmount(6587)
- .upperLimitAmount(4324)
+ .shopName("CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5L")
+ .shopId("ef7517ac-5c42-4f95-a261-57ac8b4cab9d")
+ .lowerLimitAmount(8117)
+ .upperLimitAmount(3441)
.setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
@@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .createdTo("2024-04-18T15:33:35.000000Z")
- .shopName("stCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25u")
- .shopId("8767767b-8976-455e-afdf-74728b146513")
- .lowerLimitAmount(6765)
- .upperLimitAmount(7751)
- .setDisabled(true);
+ .createdTo("2021-01-15T02:18:17.000000Z")
+ .shopName("iTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdos")
+ .shopId("63703d90-5372-48e3-8528-95733bb1fe11")
+ .lowerLimitAmount(5799)
+ .upperLimitAmount(2746)
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -131,12 +131,12 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .createdFrom("2022-07-30T05:48:44.000000Z")
- .createdTo("2020-11-03T12:14:03.000000Z")
- .shopName("GKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q")
- .shopId("3752130a-b436-4bf1-a9f6-e7809624e470")
- .lowerLimitAmount(452)
- .upperLimitAmount(5404)
+ .createdFrom("2023-03-11T09:56:39.000000Z")
+ .createdTo("2022-01-02T12:50:41.000000Z")
+ .shopName("qVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8Vy")
+ .shopId("4a5bbff5-1352-4de5-9689-46c39d5f9223")
+ .lowerLimitAmount(472)
+ .upperLimitAmount(7168)
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -152,13 +152,13 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .description("ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O")
- .createdFrom("2022-03-17T01:45:50.000000Z")
- .createdTo("2023-10-26T09:45:48.000000Z")
- .shopName("zG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH")
- .shopId("383b5f1b-2538-4659-8caa-a2a88e28a3f6")
- .lowerLimitAmount(1391)
- .upperLimitAmount(6869)
+ .description("5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41mu")
+ .createdFrom("2022-11-06T08:17:48.000000Z")
+ .createdTo("2021-10-05T03:28:27.000000Z")
+ .shopName("IO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g71")
+ .shopId("c5f38ba3-1edd-465f-b7ab-d342a8f1472a")
+ .lowerLimitAmount(569)
+ .upperLimitAmount(971)
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -174,14 +174,14 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .organizationCode("H54G51-a8")
- .description("7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMI")
- .createdFrom("2022-05-28T22:33:06.000000Z")
- .createdTo("2023-06-03T18:28:37.000000Z")
- .shopName("OIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3om")
- .shopId("36462a8a-4f44-430f-8239-ccb25f087860")
- .lowerLimitAmount(1266)
- .upperLimitAmount(9333)
+ .organizationCode("-wrS-x6H6C--D5S6--8xd364V-k1D")
+ .description("8An")
+ .createdFrom("2021-08-02T04:48:29.000000Z")
+ .createdTo("2026-05-23T20:57:14.000000Z")
+ .shopName("oXtmv8LerXQe8LjF8Q6qvpD5ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW")
+ .shopId("611e61b0-4d63-4e16-a1c4-585d3d689c31")
+ .lowerLimitAmount(5806)
+ .upperLimitAmount(8942)
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -197,15 +197,15 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .privateMoneyId("f5b45ff1-ac93-415f-ac92-7896ea3e7ec0")
- .organizationCode("-sx-d8l6i---y--o-z6T4-Jv-")
- .description("AI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T")
- .createdFrom("2022-06-04T02:02:29.000000Z")
- .createdTo("2024-06-09T12:30:26.000000Z")
- .shopName("20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLn")
- .shopId("9a3fe1c1-2772-44b7-a14e-85c862961001")
- .lowerLimitAmount(3446)
- .upperLimitAmount(4104)
+ .privateMoneyId("7aba3f2f-45cf-4590-bacb-060ad1610810")
+ .organizationCode("e7--S-GJ--u72-kqv")
+ .description("hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd144X7ZEq8UGlMat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1")
+ .createdFrom("2020-11-22T11:42:30.000000Z")
+ .createdTo("2024-05-30T01:45:41.000000Z")
+ .shopName("R9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcY")
+ .shopId("e80b7065-a188-4a46-90a5-ef7727a42563")
+ .lowerLimitAmount(6736)
+ .upperLimitAmount(9760)
.setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
@@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .billId("M")
- .privateMoneyId("a52375dc-0844-42fc-a55a-9f4c3ee4024f")
- .organizationCode("3-8ErShQ--14--5Lh-va--U-")
- .description("JLdESdgB4")
- .createdFrom("2022-11-07T11:43:00.000000Z")
- .createdTo("2021-08-22T14:32:00.000000Z")
- .shopName("huAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacS")
- .shopId("18a62974-78b3-47f7-bca1-bc8ae5d555e8")
- .lowerLimitAmount(4830)
- .upperLimitAmount(6678)
- .setDisabled(false);
+ .billId("7")
+ .privateMoneyId("7c5edf83-adfe-405a-adcc-4379ce4a60e7")
+ .organizationCode("bF2-JR---id1i-qhN-B3eYx-KH3r")
+ .description("7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD4")
+ .createdFrom("2025-03-28T21:18:36.000000Z")
+ .createdTo("2020-01-08T13:59:56.000000Z")
+ .shopName("fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54")
+ .shopId("9be9dd90-eb0f-481a-9faf-a893342c07c8")
+ .lowerLimitAmount(271)
+ .upperLimitAmount(1376)
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .perPage(737)
- .billId("HQ5cbR")
- .privateMoneyId("9a952f36-ae32-41a0-8f45-7edd3017071c")
- .organizationCode("X-z3q470F5N-NRB9-Syci")
- .description("T65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zI")
- .createdFrom("2020-09-25T15:17:58.000000Z")
- .createdTo("2020-12-02T23:21:54.000000Z")
- .shopName("Zx4eE9mHPjq6XCvYjxbcuNA5AOQ")
- .shopId("07d8d248-443e-4527-be89-51bad8f57297")
- .lowerLimitAmount(6034)
- .upperLimitAmount(8050)
- .setDisabled(false);
+ .perPage(9176)
+ .billId("6lY3NxA2Qq")
+ .privateMoneyId("491c89a6-4836-4e81-8c2d-385b812a3387")
+ .organizationCode("-0dgdTpvFpuHP-9p-x28C3")
+ .description("26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXO")
+ .createdFrom("2025-09-14T22:54:14.000000Z")
+ .createdTo("2021-06-15T01:10:36.000000Z")
+ .shopName("eAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfg")
+ .shopId("346f8807-de18-4999-8c31-53dbb4914c91")
+ .lowerLimitAmount(2355)
+ .upperLimitAmount(670)
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -272,18 +272,18 @@ void test12() throws ConnectionError, ProcessingError {
@Test
void test13() throws ConnectionError, ProcessingError {
Request request = new ListBills()
- .page(4791)
- .perPage(8158)
- .billId("Xo")
- .privateMoneyId("c4701f9c-f3fb-4d10-a3d0-83f5eb671e34")
- .organizationCode("-Mka-PgXu0Xkt9H--9-g0")
- .description("nur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rx")
- .createdFrom("2023-09-11T18:25:47.000000Z")
- .createdTo("2021-10-19T12:21:40.000000Z")
- .shopName("yEvnewbYd4rNZJsCq7m7arw2NKYH1")
- .shopId("d1ec81a0-e632-4807-9781-7b7870093e19")
- .lowerLimitAmount(7590)
- .upperLimitAmount(8545)
+ .page(1851)
+ .perPage(3837)
+ .billId("kM")
+ .privateMoneyId("6782b486-91d9-4829-9d53-b4df6c9fa16b")
+ .organizationCode("cIqFB-D2n-1J")
+ .description("Rbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFWTQ1")
+ .createdFrom("2020-08-30T19:09:28.000000Z")
+ .createdTo("2023-01-14T06:34:30.000000Z")
+ .shopName("Vt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6")
+ .shopId("0d5d8b86-11f9-4095-9e3d-92c45f7dddf1")
+ .lowerLimitAmount(7433)
+ .upperLimitAmount(2436)
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java b/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java
index cad99595..20334d69 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListBulkTransactionJobsTest.java
@@ -12,7 +12,7 @@ public class ListBulkTransactionJobsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListBulkTransactionJobs(
- "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1"
+ "ae1ec4fd-304b-43ea-b274-d087f56fcec2"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListBulkTransactionJobs(
- "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1"
+ "ae1ec4fd-304b-43ea-b274-d087f56fcec2"
)
- .perPage(986);
+ .perPage(6317);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListBulkTransactionJobs(
- "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1"
+ "ae1ec4fd-304b-43ea-b274-d087f56fcec2"
)
- .page(9569)
- .perPage(6767);
+ .page(9415)
+ .perPage(6561);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java
index 9406c540..6a9c0f89 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListCampaignsTest.java
@@ -12,7 +12,7 @@ public class ListCampaignsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListCampaigns(
- "f3463bc2-349f-41a0-bdd1-7649fd7843ed"
+ "482431be-8a59-41d6-963b-dbce1613d2a1"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListCampaigns(
- "f3463bc2-349f-41a0-bdd1-7649fd7843ed"
+ "482431be-8a59-41d6-963b-dbce1613d2a1"
)
- .perPage(3);
+ .perPage(40);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListCampaigns(
- "f3463bc2-349f-41a0-bdd1-7649fd7843ed"
+ "482431be-8a59-41d6-963b-dbce1613d2a1"
)
- .page(4010)
- .perPage(31);
+ .page(4620)
+ .perPage(30);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListCampaigns(
- "f3463bc2-349f-41a0-bdd1-7649fd7843ed"
+ "482431be-8a59-41d6-963b-dbce1613d2a1"
)
- .availableTo("2024-06-29T01:26:44.000000Z")
- .page(5805)
+ .availableTo("2023-02-27T01:58:53.000000Z")
+ .page(4457)
.perPage(8);
try {
PartnerAPITest.getClient().send(request);
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListCampaigns(
- "f3463bc2-349f-41a0-bdd1-7649fd7843ed"
+ "482431be-8a59-41d6-963b-dbce1613d2a1"
)
- .availableFrom("2022-10-27T15:54:11.000000Z")
- .availableTo("2020-01-12T10:32:20.000000Z")
- .page(5383)
- .perPage(18);
+ .availableFrom("2021-03-11T15:55:07.000000Z")
+ .availableTo("2022-08-03T00:37:18.000000Z")
+ .page(6026)
+ .perPage(42);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListCampaigns(
- "f3463bc2-349f-41a0-bdd1-7649fd7843ed"
+ "482431be-8a59-41d6-963b-dbce1613d2a1"
)
- .setOngoing(true)
- .availableFrom("2023-10-24T12:23:08.000000Z")
- .availableTo("2022-09-21T23:55:07.000000Z")
- .page(7663)
- .perPage(31);
+ .setOngoing(false)
+ .availableFrom("2021-02-04T22:19:13.000000Z")
+ .availableTo("2021-08-31T04:33:40.000000Z")
+ .page(2379)
+ .perPage(23);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java b/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java
index 5fee4d11..18c6c2c0 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListChecksTest.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .setDisabled(false);
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -42,7 +42,7 @@ void test1() throws ConnectionError, ProcessingError {
void test2() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
.setOnetime(true)
- .setDisabled(true);
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -57,7 +57,7 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .description("rfIL")
+ .description("Hyso5u9O")
.setOnetime(false)
.setDisabled(false);
try {
@@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .issuerShopId("eda02500-664e-4e38-97fb-26bf47759f9c")
- .description("7")
- .setOnetime(true)
- .setDisabled(true);
+ .issuerShopId("44c818ea-319b-40a4-bde9-3d130386e39b")
+ .description("a9h")
+ .setOnetime(false)
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .createdTo("2023-04-23T01:28:23.000000Z")
- .issuerShopId("dd29802a-5d83-413f-8cfe-74066b7b4bca")
- .description("oY")
- .setOnetime(false)
- .setDisabled(false);
+ .createdTo("2026-01-03T11:20:35.000000Z")
+ .issuerShopId("b75feffd-26df-441a-a4aa-9db3fbc1786f")
+ .description("wp1QqOY")
+ .setOnetime(true)
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .createdFrom("2021-11-04T11:35:54.000000Z")
- .createdTo("2022-11-08T06:35:09.000000Z")
- .issuerShopId("9f6b96c0-dfe2-4138-89f3-a10a20987af0")
- .description("1FcaYx8")
+ .createdFrom("2023-07-11T03:28:10.000000Z")
+ .createdTo("2020-10-21T18:24:20.000000Z")
+ .issuerShopId("464c154a-4b25-4bdb-9f10-3b9d60f88476")
+ .description("4bnDyHKg7j")
.setOnetime(false)
- .setDisabled(true);
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -131,11 +131,11 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .expiresTo("2021-04-29T11:14:49.000000Z")
- .createdFrom("2024-09-17T11:10:47.000000Z")
- .createdTo("2021-02-14T00:09:23.000000Z")
- .issuerShopId("43529fa7-7637-4992-9e4b-7d816ca05cb2")
- .description("oQE")
+ .expiresTo("2023-05-05T01:01:26.000000Z")
+ .createdFrom("2020-09-09T12:46:47.000000Z")
+ .createdTo("2022-12-15T10:35:00.000000Z")
+ .issuerShopId("ca7d6152-c142-4ebb-ae11-c6c44cca8ff5")
+ .description("rb62")
.setOnetime(true)
.setDisabled(true);
try {
@@ -152,13 +152,13 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .expiresFrom("2023-08-18T13:32:31.000000Z")
- .expiresTo("2020-07-10T20:09:28.000000Z")
- .createdFrom("2024-08-30T22:02:55.000000Z")
- .createdTo("2020-10-04T10:56:49.000000Z")
- .issuerShopId("04c2c0e4-ee76-4c1c-aefa-23874afee603")
- .description("KVxdoit0n")
- .setOnetime(true)
+ .expiresFrom("2023-03-14T04:19:53.000000Z")
+ .expiresTo("2024-05-29T11:57:01.000000Z")
+ .createdFrom("2023-07-29T10:54:52.000000Z")
+ .createdTo("2020-06-15T15:29:49.000000Z")
+ .issuerShopId("b3e5f712-1465-4c99-ba61-864ed82b85dc")
+ .description("035TYh")
+ .setOnetime(false)
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .organizationCode("RdkY0a6T9IRy95uKnYj6")
- .expiresFrom("2021-07-21T06:51:59.000000Z")
- .expiresTo("2022-01-15T21:12:06.000000Z")
- .createdFrom("2021-09-02T02:43:46.000000Z")
- .createdTo("2023-08-06T09:38:39.000000Z")
- .issuerShopId("201e2b83-18f1-402d-808e-1dc4c80bd16b")
- .description("4zF")
- .setOnetime(false)
- .setDisabled(true);
+ .organizationCode("YVT689")
+ .expiresFrom("2020-10-22T00:16:10.000000Z")
+ .expiresTo("2024-06-09T23:04:00.000000Z")
+ .createdFrom("2025-09-08T11:46:38.000000Z")
+ .createdTo("2024-12-15T16:14:57.000000Z")
+ .issuerShopId("409608c2-1a2b-4b49-94b9-fe38a4928645")
+ .description("3v")
+ .setOnetime(true)
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -197,15 +197,15 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .privateMoneyId("c0917074-e8f6-46c1-83a0-1cdd2f6c1e37")
- .organizationCode("t4NS9wkdOXwioDpfXuzoNb")
- .expiresFrom("2022-05-14T21:29:54.000000Z")
- .expiresTo("2023-01-21T02:32:01.000000Z")
- .createdFrom("2023-09-02T13:45:51.000000Z")
- .createdTo("2021-06-27T19:24:57.000000Z")
- .issuerShopId("72a8e55d-15aa-4b75-8b65-52a1880d0eaf")
- .description("j9znX2X")
- .setOnetime(true)
+ .privateMoneyId("adf8571c-8fa2-4769-88ee-9aca7db9a162")
+ .organizationCode("C3RzxMs")
+ .expiresFrom("2025-08-25T20:46:16.000000Z")
+ .expiresTo("2020-05-23T14:03:51.000000Z")
+ .createdFrom("2022-02-16T23:55:05.000000Z")
+ .createdTo("2020-11-23T03:12:04.000000Z")
+ .issuerShopId("8afa46d4-9052-441f-91a3-85d656335b20")
+ .description("bDG")
+ .setOnetime(false)
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .perPage(8559)
- .privateMoneyId("0e65db05-3dc6-4ba5-baac-be51bada5be3")
- .organizationCode("5QEOmdgUm73I2kFc")
- .expiresFrom("2020-01-21T19:39:55.000000Z")
- .expiresTo("2022-05-24T22:27:26.000000Z")
- .createdFrom("2020-09-17T20:59:41.000000Z")
- .createdTo("2021-02-09T18:52:01.000000Z")
- .issuerShopId("77b23aeb-57f3-4a5a-821d-947f9d2f56b6")
- .description("yT3")
+ .perPage(7756)
+ .privateMoneyId("3c9ea4c6-0df6-4e9a-9666-05f25bb86037")
+ .organizationCode("cTIqfZGa8VmM7LxaafZsEiZ4")
+ .expiresFrom("2025-09-22T02:09:44.000000Z")
+ .expiresTo("2023-04-19T23:42:54.000000Z")
+ .createdFrom("2025-11-27T06:26:52.000000Z")
+ .createdTo("2020-10-17T06:21:09.000000Z")
+ .issuerShopId("6bd061f4-f5cc-41a7-85bb-c198be55b3de")
+ .description("S")
.setOnetime(true)
- .setDisabled(true);
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new ListChecks()
- .page(9600)
- .perPage(87)
- .privateMoneyId("a8b8f410-d352-4951-843e-6a37884d22cf")
- .organizationCode("823WFeXCsADfv")
- .expiresFrom("2023-05-11T13:54:21.000000Z")
- .expiresTo("2020-01-13T01:26:13.000000Z")
- .createdFrom("2022-07-02T00:06:35.000000Z")
- .createdTo("2020-01-07T02:30:24.000000Z")
- .issuerShopId("01f62a9d-2753-4b1a-a5ac-4cf43f2ce74a")
- .description("Lu")
- .setOnetime(false)
- .setDisabled(false);
+ .page(9404)
+ .perPage(4850)
+ .privateMoneyId("790d017c-4b43-434d-959e-adc88a3e8a23")
+ .organizationCode("Uv6WI9WlLqAjFF")
+ .expiresFrom("2023-03-14T11:32:38.000000Z")
+ .expiresTo("2020-07-03T17:47:10.000000Z")
+ .createdFrom("2026-05-03T04:20:32.000000Z")
+ .createdTo("2024-09-07T06:38:44.000000Z")
+ .issuerShopId("8a3ab96f-fd08-4bf6-93c9-22c1dd10edb3")
+ .description("7if4YoZJ")
+ .setOnetime(true)
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java
index 79cc238c..b44f49f8 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListCouponsTest.java
@@ -12,7 +12,7 @@ public class ListCouponsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
)
- .perPage(5571);
+ .perPage(237);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
)
- .page(8650)
- .perPage(7773);
+ .page(8747)
+ .perPage(620);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
)
- .availableTo("2023-09-25T06:22:38.000000Z")
- .page(3351)
- .perPage(1673);
+ .availableTo("2023-11-14T13:16:14.000000Z")
+ .page(8224)
+ .perPage(5424);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
)
- .availableFrom("2024-09-30T09:57:39.000000Z")
- .availableTo("2020-03-18T01:00:22.000000Z")
- .page(5984)
- .perPage(4476);
+ .availableFrom("2020-05-02T21:26:29.000000Z")
+ .availableTo("2024-05-15T12:47:57.000000Z")
+ .page(8419)
+ .perPage(6105);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
)
- .availableShopName("4aTjbZ")
- .availableFrom("2021-10-04T14:19:21.000000Z")
- .availableTo("2022-03-05T22:16:44.000000Z")
- .page(6976)
- .perPage(9826);
+ .availableShopName("sHe")
+ .availableFrom("2025-01-14T01:00:59.000000Z")
+ .availableTo("2020-12-06T13:27:21.000000Z")
+ .page(8474)
+ .perPage(6282);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
)
- .issuedShopName("W")
- .availableShopName("Rs")
- .availableFrom("2022-03-08T06:29:25.000000Z")
- .availableTo("2024-04-24T08:35:06.000000Z")
- .page(5499)
- .perPage(9438);
+ .issuedShopName("6R7zZjofX")
+ .availableShopName("p8q4Bfps6V")
+ .availableFrom("2025-11-07T15:06:16.000000Z")
+ .availableTo("2022-09-12T07:20:59.000000Z")
+ .page(258)
+ .perPage(8482);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
)
- .couponName("Z6")
- .issuedShopName("rz0tQnP1")
- .availableShopName("Co4x4A")
- .availableFrom("2023-12-20T06:59:36.000000Z")
- .availableTo("2021-05-25T05:31:22.000000Z")
- .page(9890)
- .perPage(4355);
+ .couponName("wOSBaSPaN")
+ .issuedShopName("M4bPYPan8")
+ .availableShopName("YIRAIS")
+ .availableFrom("2022-10-16T20:56:39.000000Z")
+ .availableTo("2025-06-10T14:52:02.000000Z")
+ .page(268)
+ .perPage(263);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListCoupons(
- "b44303ec-e198-4255-8ade-7a0f634deec2"
+ "6a1b6546-e7aa-43c5-b0c5-b41b69b9f37a"
)
- .couponId("zQhY1Jl")
- .couponName("Hqb")
- .issuedShopName("ULcyq")
- .availableShopName("Fghq")
- .availableFrom("2023-04-08T23:17:21.000000Z")
- .availableTo("2021-11-25T09:22:19.000000Z")
- .page(6986)
- .perPage(8190);
+ .couponId("2nbw")
+ .couponName("9")
+ .issuedShopName("wXrTBW")
+ .availableShopName("hKP8S")
+ .availableFrom("2022-08-28T14:09:43.000000Z")
+ .availableTo("2024-08-25T08:03:14.000000Z")
+ .page(9894)
+ .perPage(571);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java
index 771c4a44..e5dc78f9 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListCustomerTransactionsTest.java
@@ -12,7 +12,7 @@ public class ListCustomerTransactionsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
)
- .perPage(6702);
+ .perPage(1372);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
)
- .page(3721)
- .perPage(1673);
+ .page(6587)
+ .perPage(3947);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
)
- .to("2021-06-26T10:33:28.000000Z")
- .page(1122)
- .perPage(2641);
+ .to("2023-09-17T10:10:37.000000Z")
+ .page(6465)
+ .perPage(7221);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
)
- .from("2023-08-31T11:35:24.000000Z")
- .to("2021-11-27T00:17:30.000000Z")
- .page(6128)
- .perPage(9468);
+ .from("2021-12-16T10:46:05.000000Z")
+ .to("2021-10-21T01:55:16.000000Z")
+ .page(9433)
+ .perPage(4544);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
)
- .setModified(true)
- .from("2021-10-15T20:46:20.000000Z")
- .to("2023-11-14T17:02:46.000000Z")
- .page(8406)
- .perPage(1440);
+ .setModified(false)
+ .from("2023-04-20T16:46:42.000000Z")
+ .to("2025-04-10T22:13:28.000000Z")
+ .page(973)
+ .perPage(9191);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
)
- .type("transfer")
- .setModified(true)
- .from("2022-03-30T21:58:48.000000Z")
- .to("2024-01-29T17:38:21.000000Z")
- .page(786)
- .perPage(2848);
+ .type("expire")
+ .setModified(false)
+ .from("2020-01-20T17:58:12.000000Z")
+ .to("2020-10-06T22:07:03.000000Z")
+ .page(6625)
+ .perPage(4035);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
)
- .receiverCustomerId("476067c0-5180-472f-9748-fbe19e693314")
- .type("cashback")
- .setModified(true)
- .from("2020-07-04T11:49:13.000000Z")
- .to("2020-10-22T23:48:51.000000Z")
- .page(4783)
- .perPage(8752);
+ .receiverCustomerId("45e400ef-43a2-4df6-91ab-2780e2da8848")
+ .type("payment")
+ .setModified(false)
+ .from("2026-05-02T09:19:05.000000Z")
+ .to("2023-06-27T10:38:34.000000Z")
+ .page(4172)
+ .perPage(2674);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListCustomerTransactions(
- "1552de2f-da0c-48ac-a9e1-2fa8e58654df"
+ "9942f30e-77b1-497d-b370-237f0239f926"
)
- .senderCustomerId("d2869b53-2e22-4d40-bc23-f9d272cd44e5")
- .receiverCustomerId("03a89a91-73ea-4831-99d4-32f7b9069362")
- .type("exchange")
+ .senderCustomerId("da16bdd9-2f7a-4e6b-b712-946074911bbe")
+ .receiverCustomerId("7626c529-3122-47c7-8142-7e831dc15dad")
+ .type("expire")
.setModified(false)
- .from("2020-01-13T05:00:34.000000Z")
- .to("2020-03-01T04:56:22.000000Z")
- .page(5098)
- .perPage(7841);
+ .from("2023-10-31T16:30:14.000000Z")
+ .to("2025-11-08T17:22:15.000000Z")
+ .page(1723)
+ .perPage(6688);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java b/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java
index 2b400f24..83ee5333 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListOrganizationsTest.java
@@ -12,7 +12,7 @@ public class ListOrganizationsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListOrganizations(
- "984c0512-4bc5-4658-abc3-5594816b6f55"
+ "77091b06-3d70-44fa-bff9-abe052658bc6"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListOrganizations(
- "984c0512-4bc5-4658-abc3-5594816b6f55"
+ "77091b06-3d70-44fa-bff9-abe052658bc6"
)
- .code("yPfCabjEt");
+ .code("c0O5qDH6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListOrganizations(
- "984c0512-4bc5-4658-abc3-5594816b6f55"
+ "77091b06-3d70-44fa-bff9-abe052658bc6"
)
- .name("If7wKoPmNQ")
- .code("U6zl3h0Z");
+ .name("AdyV")
+ .code("n4o55A");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListOrganizations(
- "984c0512-4bc5-4658-abc3-5594816b6f55"
+ "77091b06-3d70-44fa-bff9-abe052658bc6"
)
- .perPage(2813)
- .name("oCe5IIfE")
- .code("aRl");
+ .perPage(1554)
+ .name("5DSTN7F")
+ .code("Y8t8MIK7G");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListOrganizations(
- "984c0512-4bc5-4658-abc3-5594816b6f55"
+ "77091b06-3d70-44fa-bff9-abe052658bc6"
)
- .page(9969)
- .perPage(3099)
- .name("hTTQp")
- .code("QoSR");
+ .page(1530)
+ .perPage(78)
+ .name("0XmxAy")
+ .code("3ATlX");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java b/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java
index 6e8dde4f..033f80da 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListShopsTest.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .perPage(5064);
+ .perPage(1552);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .page(6150)
- .perPage(1031);
+ .page(3451)
+ .perPage(7630);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .withDisabled(true)
- .page(516)
- .perPage(3314);
+ .withDisabled(false)
+ .page(1618)
+ .perPage(2029);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .externalId("w")
- .withDisabled(false)
- .page(986)
- .perPage(1660);
+ .externalId("9WdfwN1GBXrbSDIYZlYLOis5sB")
+ .withDisabled(true)
+ .page(4105)
+ .perPage(6487);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .email("75stQD6SAh@41fZ.com")
- .externalId("i84vybd1Jsf0jR3rzbwtxyn2FAh1zUed")
- .withDisabled(false)
- .page(4934)
- .perPage(8487);
+ .email("50E243Lt7Q@0CkQ.com")
+ .externalId("GlHLmFUomkHrvNClWFSWTgMn5wd")
+ .withDisabled(true)
+ .page(3511)
+ .perPage(3314);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .tel("04934109886")
- .email("vHVgjPvTnT@RbAG.com")
- .externalId("JFBzSB")
- .withDisabled(false)
- .page(5349)
- .perPage(5597);
+ .tel("00221408-867")
+ .email("mfQbT09Lp6@65rg.com")
+ .externalId("0d7eGIT")
+ .withDisabled(true)
+ .page(6282)
+ .perPage(1226);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .address("N9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH")
- .tel("064-399-326")
- .email("N0T80aLvrK@oRyT.com")
- .externalId("gPVT4AzeoZEOYuu1RyqlWwyCN")
+ .address("lkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj")
+ .tel("01148-9978")
+ .email("uqvdSNveWz@WI5L.com")
+ .externalId("6stQvZvRJLln3CmVmPz2")
.withDisabled(true)
- .page(9062)
- .perPage(6597);
+ .page(6821)
+ .perPage(6857);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .postalCode("483-3967")
- .address("00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0Yor")
- .tel("0322631")
- .email("4pFpuxUcIr@b43g.com")
- .externalId("0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx")
- .withDisabled(false)
- .page(1942)
- .perPage(1073);
+ .postalCode("723-7862")
+ .address("TbiOHYbzW7EYCf76ToHcl8dtzcqD6rqwGDVRdojGjigHpZl8InHQBhMIrdZJT9MnQgGfElkSc")
+ .tel("0030-091")
+ .email("y8mUgDyXQY@OSsh.com")
+ .externalId("pGMCke10fApKjBHnAmdlKiUj9")
+ .withDisabled(true)
+ .page(9074)
+ .perPage(1386);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .name("qLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhC")
- .postalCode("4322619")
- .address("FeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MI")
- .tel("0518-4313")
- .email("TlXa99m3El@a8zc.com")
- .externalId("R94JgHtiXrfi45gdORj3Jla3Pfb8OgNhh")
+ .name("anI8FqIXqzelGZDONUAJfl2HMto7yaW0Gkt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2Qniqd")
+ .postalCode("3999219")
+ .address("O8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAP")
+ .tel("0839435486")
+ .email("kE6WXDem2r@gSzz.com")
+ .externalId("Q4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFF")
.withDisabled(true)
- .page(9357)
- .perPage(3629);
+ .page(443)
+ .perPage(2608);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .privateMoneyId("4294a866-e4fb-4ddb-8251-6a6a3228145f")
- .name("sClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqw")
- .postalCode("5487162")
- .address("qZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcG")
- .tel("0080-547599")
- .email("gPlxnzpf9X@cHDi.com")
- .externalId("w8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNj")
- .withDisabled(true)
- .page(7375)
- .perPage(4400);
+ .privateMoneyId("6b09653d-cd2c-43ef-a698-d90fe987cd2b")
+ .name("hzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KN")
+ .postalCode("7318422")
+ .address("T1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANkreMSnigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3")
+ .tel("0918-0596")
+ .email("SJX1OiNUbq@HXuS.com")
+ .externalId("WeM8VL")
+ .withDisabled(false)
+ .page(2144)
+ .perPage(5982);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new ListShops()
- .organizationCode("3O3UbVmd-")
- .privateMoneyId("6c582c7c-e112-45b2-8024-7261075be237")
- .name("llUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACIt")
- .postalCode("946-1005")
- .address("NfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa")
- .tel("0939137673")
- .email("qnjKtXS5ct@b0sU.com")
- .externalId("amQiJ")
+ .organizationCode("oq8n")
+ .privateMoneyId("b1efaefa-c7c0-437e-a937-39290d084572")
+ .name("ucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1ux")
+ .postalCode("9254007")
+ .address("cAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSE")
+ .tel("058-0971-4940")
+ .email("bZFvX4DTrn@Yj6r.com")
+ .externalId("9HuWGm")
.withDisabled(true)
- .page(2018)
- .perPage(9438);
+ .page(5130)
+ .perPage(1501);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java b/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java
index 98fde2c1..48c470a1 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListTransactionsTest.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .description("WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYX");
+ .description("RJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .types(new String[]{"exchange_inflow"})
- .description("acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPc");
+ .types(new String[]{"exchange_inflow","payment","exchange_outflow","expire","cashback"})
+ .description("kw6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdB");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .setModified(true)
- .types(new String[]{"topup","exchange_outflow"})
- .description("CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd");
+ .setModified(false)
+ .types(new String[]{"cashback","exchange_inflow","topup"})
+ .description("HS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiR");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .privateMoneyId("8241fcb6-d353-4140-8de7-58b4bf444d8d")
+ .privateMoneyId("f6dbb5f4-3647-4e4a-b11c-cfddf66d2601")
.setModified(true)
- .types(new String[]{"expire","topup","exchange_outflow","payment"})
- .description("LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mh");
+ .types(new String[]{"expire","payment","topup","cashback","exchange_inflow"})
+ .description("1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .organizationCode("s8cQf--ht--D")
- .privateMoneyId("c5d1da6b-ab22-4598-9835-a1de9db3ebc7")
+ .organizationCode("y6An-T47t15W7ARlu")
+ .privateMoneyId("0c11c1eb-20b0-4e9a-9fbe-4e78cd912bbc")
.setModified(true)
- .types(new String[]{"cashback","exchange_outflow","exchange_inflow","payment","topup"})
- .description("sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvflY8MFYZJvlfPZ9XRs2DjUex8");
+ .types(new String[]{"expire","payment","cashback","exchange_inflow"})
+ .description("U5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVju");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .transactionId("Zcru468")
- .organizationCode("436qXf")
- .privateMoneyId("b827d131-f8e8-44ac-977f-3ab363c948a2")
+ .transactionId("Fsk")
+ .organizationCode("s--sp05F6Y--Z803-2U")
+ .privateMoneyId("8751fda1-2336-45b8-86f5-e32552727f1a")
.setModified(true)
- .types(new String[]{"exchange_inflow","exchange_outflow","payment","cashback"})
- .description("pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXD");
+ .types(new String[]{"payment","exchange_outflow","topup"})
+ .description("IBQsKNbECUonyUv3nTPZ701h3");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .terminalId("14db71eb-d419-4c4a-87f1-7879db1dae31")
- .transactionId("yPaGHV")
- .organizationCode("W-9jFTlu-XkApk--324-FW3m--8-")
- .privateMoneyId("f8dee0a6-4c4f-4836-9cd8-37543703a79b")
+ .terminalId("63c948a2-fd94-4223-967f-44359577ead1")
+ .transactionId("ywi2p")
+ .organizationCode("-Y--H-GGc-4e-M-")
+ .privateMoneyId("c9294359-f03b-4735-bca4-6614975adc1e")
.setModified(true)
- .types(new String[]{"expire","cashback","topup"})
- .description("PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI");
+ .types(new String[]{"exchange_outflow","cashback"})
+ .description("s73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPaGHVk");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .customerName("nC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76")
- .terminalId("942ad200-1544-453b-9154-5a91246500cb")
- .transactionId("eEBb")
- .organizationCode("-8bdGRbR0u7")
- .privateMoneyId("5ca47afe-dc11-4352-9ab0-f05149728ab2")
+ .customerName("yMSdmemZcovbEUc9TiM3DTSa7pJlo8JS6mIVfCl8O6XT")
+ .terminalId("3703a79b-b8f0-40a5-879b-eb1b8955fe5c")
+ .transactionId("PEJOaN")
+ .organizationCode("kJsWNR-R")
+ .privateMoneyId("de093a66-d57f-45b4-aab1-8d5802910a6c")
.setModified(false)
- .types(new String[]{"topup","expire","exchange_outflow"})
- .description("VGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13");
+ .types(new String[]{"topup","exchange_outflow"})
+ .description("XBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigd");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .customerId("e1fb97c2-7d0a-494a-8c2f-f213e79cfa71")
- .customerName("URa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzst")
- .terminalId("7f0f5d7a-0831-43a2-81b9-2e581d4966fb")
- .transactionId("Ut")
- .organizationCode("A--6-770")
- .privateMoneyId("5e072da8-d0bf-4c29-9210-5aecbed23e28")
- .setModified(false)
- .types(new String[]{"expire","exchange_inflow"})
- .description("VbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08a");
+ .customerId("9e832bc2-0116-4e8a-992b-9776209ccb11")
+ .customerName("VDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGR")
+ .terminalId("248394f3-3ace-4fce-9ecf-875d9d394cfc")
+ .transactionId("zmZ5n")
+ .organizationCode("8mf")
+ .privateMoneyId("86301539-6e26-4f95-a764-41b630efe5d1")
+ .setModified(true)
+ .types(new String[]{"payment","expire"})
+ .description("L");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .shopId("1c9c6657-819e-41c1-92e7-8ad98ba2914b")
- .customerId("912678e7-2bcd-40bc-92e7-b1be4e34f2b4")
- .customerName("eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfb")
- .terminalId("74929615-c3e2-4087-aa92-4f0ab92255ee")
- .transactionId("xn1Ii4QyBa")
- .organizationCode("wVPk")
- .privateMoneyId("b01bcb4d-a00c-4b09-a63a-3867c4c57002")
- .setModified(true)
- .types(new String[]{"payment","cashback"})
- .description("kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR");
+ .shopId("2d0db3db-49b5-44e3-b49e-6b3a1ad5452b")
+ .customerId("180f6db0-c1c7-4608-8793-483d48bbb718")
+ .customerName("i4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6K")
+ .terminalId("5608c25b-1d92-410e-99f1-9ff3a5830e98")
+ .transactionId("DE")
+ .organizationCode("-iW73r1Y-bvxv")
+ .privateMoneyId("2c87a899-7567-45b2-b6a0-45c2556c6174")
+ .setModified(false)
+ .types(new String[]{"topup","exchange_outflow","expire","payment"})
+ .description("lEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .perPage(6969)
- .shopId("1f680389-a398-4538-9c05-2f46d622c0fb")
- .customerId("3da66e37-cc29-4708-8fd5-2ae258c2d2e4")
- .customerName("6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62H")
- .terminalId("3a8fca69-a00e-4b2f-8c1e-754bb23030ba")
- .transactionId("75FUjJKU")
- .organizationCode("3-S87-jLYQf-X-6--oZ0G-N")
- .privateMoneyId("aa25ef95-c6da-4090-93b2-5afdc4ed01ca")
+ .perPage(7693)
+ .shopId("fbd6a0e0-3372-4d23-ab95-b071eef4d2bb")
+ .customerId("e9ff71e6-bb4e-4dbe-a7a4-8cffa2826d0d")
+ .customerName("GAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5Bazm")
+ .terminalId("dcc9becb-ce3e-47f1-897d-62a08961c648")
+ .transactionId("UlvI3TLRDU")
+ .organizationCode("1T54RprF9e")
+ .privateMoneyId("9921668a-1c8c-4b66-a8c6-1f5b26c71db0")
.setModified(true)
- .types(new String[]{"expire"})
- .description("bXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisL");
+ .types(new String[]{"payment","exchange_outflow","cashback","topup","expire","exchange_inflow"})
+ .description("Rg4eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyB");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .page(8791)
- .perPage(4125)
- .shopId("04e72a3f-308d-4ac1-8b24-7a85bf70fc21")
- .customerId("642fcb38-c880-4cfb-8437-ec522c3da0be")
- .customerName("vLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2JnK33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0")
- .terminalId("7d16cee5-bd55-4afa-9534-6ef8ece8abd8")
- .transactionId("5OLhVoB1l")
- .organizationCode("u5Jec2Sq9")
- .privateMoneyId("e5765496-b9f4-4a3c-b6ae-7ccf355db2df")
+ .page(5957)
+ .perPage(1458)
+ .shopId("25a1b673-3f5f-40a3-914a-98fc7e5cba0a")
+ .customerId("e3566da9-311c-4e37-916b-d3b6fa03dae4")
+ .customerName("P6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFr")
+ .terminalId("8b340176-3230-4a84-86f0-96b569f2b4d6")
+ .transactionId("2XFS")
+ .organizationCode("80-tv9Fy1")
+ .privateMoneyId("ffac6395-94ec-438f-9b99-6ee786500033")
.setModified(false)
- .types(new String[]{"expire","topup"})
- .description("eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuK");
+ .types(new String[]{"topup","exchange_inflow"})
+ .description("jzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUt");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError {
@Test
void test13() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .to("2021-05-24T07:04:14.000000Z")
- .page(4199)
- .perPage(6607)
- .shopId("1074fcae-d78a-4ed6-9457-7615bf98ffc6")
- .customerId("7ef1721c-45d4-4c04-bc7b-a9eb4f8b5568")
- .customerName("YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJSIFUrT")
- .terminalId("f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5")
- .transactionId("KmONYXCce")
- .organizationCode("--KXh6Qjt-yU7-0-xA7y-A--gO0-ve--")
- .privateMoneyId("a5f3cfda-76d9-4522-9ece-6904f7c31a9a")
+ .to("2022-02-07T22:47:04.000000Z")
+ .page(812)
+ .perPage(771)
+ .shopId("8e5fd89b-2b53-49bb-b81f-9d5341ae038f")
+ .customerId("63f4bd61-127c-44de-b53e-1571a8764f09")
+ .customerName("YfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua")
+ .terminalId("8e1a411c-2bbb-45e0-855b-273288fccdd7")
+ .transactionId("PHw1U")
+ .organizationCode("99q-L-I7f5-U2--fa-Lleb-7e-5-")
+ .privateMoneyId("de760078-73fb-4ab5-8577-64070047582e")
.setModified(false)
- .types(new String[]{"exchange_outflow","topup","payment","expire","exchange_inflow"})
- .description("OzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRj");
+ .types(new String[]{"exchange_inflow","exchange_outflow","payment","expire","cashback"})
+ .description("5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiX");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError {
@Test
void test14() throws ConnectionError, ProcessingError {
Request request = new ListTransactions()
- .from("2021-11-23T05:19:03.000000Z")
- .to("2023-02-12T18:24:57.000000Z")
- .page(4869)
- .perPage(8902)
- .shopId("4f506bbd-ab39-4fe4-bc2f-ffc0f28819c2")
- .customerId("33433dfd-82b8-4a40-a643-bd9aee2d40ba")
- .customerName("GfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07")
- .terminalId("a2943d3f-0f45-46d8-a0c8-10ad8cc48724")
- .transactionId("C5hQ61p")
- .organizationCode("-aZi-x-RYy-x7gh3-8weWi35i8kx92")
- .privateMoneyId("b2e608fc-9390-4850-9002-124a1438abbf")
+ .from("2025-09-04T12:32:59.000000Z")
+ .to("2025-10-28T02:35:46.000000Z")
+ .page(723)
+ .perPage(2710)
+ .shopId("4a4ab0f2-d9fc-4b30-be59-5496244cb9f4")
+ .customerId("a380ba3c-56b6-45ae-8fdf-ed9ddd0b2f6e")
+ .customerName("t0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKl")
+ .terminalId("1a939b17-6eee-4066-95ce-fcae5000d78a")
+ .transactionId("TWFTkh4")
+ .organizationCode("W-i-MgUl-7-e-2lbp47YIY-S-")
+ .privateMoneyId("3d39693e-5973-446c-84bb-a724682b8804")
.setModified(false)
- .types(new String[]{"exchange_inflow","topup","expire","cashback","payment"})
- .description("YdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalO");
+ .types(new String[]{"exchange_outflow","expire","exchange_inflow","payment","topup"})
+ .description("JS");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransactionsV2Test.java b/src/test/java/jp/pokepay/partnerapi/ListTransactionsV2Test.java
index b9c7ace7..ceb332ea 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListTransactionsV2Test.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListTransactionsV2Test.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .perPage(794);
+ .perPage(267);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .prevPageCursorId("3b39a53e-1ceb-475a-be4c-1b23542a7d10")
- .perPage(636);
+ .prevPageCursorId("2d6b2f87-f014-45f5-ad0d-10e0b5367189")
+ .perPage(422);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .nextPageCursorId("92ca1f0d-d064-4922-b9b8-af969e436ea1")
- .prevPageCursorId("04044642-50dc-4f9d-b957-8e57b8dc3771")
- .perPage(510);
+ .nextPageCursorId("c248bfa6-de5c-429f-b5fb-5fc27c00ea7c")
+ .prevPageCursorId("58ce8032-e8d4-481c-8ace-6dcabd783681")
+ .perPage(996);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .to("2021-07-05T19:46:25.000000Z")
- .nextPageCursorId("d57c82ce-d572-4f58-96a9-0e05ca0f2b0e")
- .prevPageCursorId("6ce554d8-62a9-47bc-898b-f2318d3486ad")
- .perPage(248);
+ .to("2022-01-12T07:05:06.000000Z")
+ .nextPageCursorId("0aefbbca-9b47-4ae0-b605-f38cd3f02fd3")
+ .prevPageCursorId("4405b26d-69eb-4914-b341-35b18464694d")
+ .perPage(118);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .from("2024-06-30T00:22:03.000000Z")
- .to("2022-09-03T17:53:44.000000Z")
- .nextPageCursorId("62e27792-a1d4-46f1-9c87-7a7715750571")
- .prevPageCursorId("1e012cde-c398-43fa-9686-d03ceb1a2f3f")
- .perPage(549);
+ .from("2023-01-05T16:53:50.000000Z")
+ .to("2025-04-01T04:25:21.000000Z")
+ .nextPageCursorId("e9d81bfe-877e-442e-81b7-81b9bc91d8d3")
+ .prevPageCursorId("abcd1149-1aba-41bc-961e-a206827712be")
+ .perPage(172);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .types(new String[]{"exchange_inflow"})
- .from("2021-08-12T01:32:55.000000Z")
- .to("2023-12-16T09:15:41.000000Z")
- .nextPageCursorId("8ff5d0a8-060f-4a8a-97f7-96f0571a1df3")
- .prevPageCursorId("3143db33-2080-43e9-81d2-82a3029c7e44")
- .perPage(75);
+ .types(new String[]{"payment","expire","topup","cashback"})
+ .from("2023-08-04T17:40:54.000000Z")
+ .to("2023-11-02T15:41:31.000000Z")
+ .nextPageCursorId("59b1d643-abd4-4449-af0c-aaa29d626ff5")
+ .prevPageCursorId("972a7718-71fc-4777-9b04-e0a1018d6670")
+ .perPage(788);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .setModified(true)
- .types(new String[]{"cashback","expire","payment"})
- .from("2021-10-09T01:30:02.000000Z")
- .to("2021-02-04T11:44:46.000000Z")
- .nextPageCursorId("83f576fc-6cab-4995-9d8b-f86b58115da9")
- .prevPageCursorId("29dbd74f-2d84-4e92-9a7c-f19c8b2e674f")
- .perPage(687);
+ .setModified(false)
+ .types(new String[]{"exchange_inflow","cashback","payment","topup","exchange_outflow"})
+ .from("2022-04-26T09:01:04.000000Z")
+ .to("2025-10-16T17:34:04.000000Z")
+ .nextPageCursorId("c3f39995-c5e1-40bf-93c2-e62c3326875b")
+ .prevPageCursorId("c0ebcfc5-b7dc-4630-9191-e8aa76b2e620")
+ .perPage(105);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .transactionId("E")
- .setModified(false)
- .types(new String[]{"exchange_inflow","exchange_outflow","topup","cashback"})
- .from("2022-02-10T19:32:15.000000Z")
- .to("2020-12-30T04:05:46.000000Z")
- .nextPageCursorId("cd506e1c-213d-4f26-b1b9-91a9746df8d7")
- .prevPageCursorId("6d3afbf4-ed0e-40a9-a773-0173a136a69e")
- .perPage(435);
+ .transactionId("jzN")
+ .setModified(true)
+ .types(new String[]{"payment"})
+ .from("2020-07-03T21:11:56.000000Z")
+ .to("2022-10-01T05:54:37.000000Z")
+ .nextPageCursorId("c70d1ca8-221a-42b0-96e5-9bb0baa6147e")
+ .prevPageCursorId("6f98c972-bfce-4433-9186-7f1d34f50fc5")
+ .perPage(348);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .description("YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90")
- .transactionId("Lh1FnEv5pC")
- .setModified(true)
- .types(new String[]{"payment","exchange_inflow"})
- .from("2024-10-03T16:15:54.000000Z")
- .to("2020-04-20T06:48:44.000000Z")
- .nextPageCursorId("bec140d3-d76b-4574-8b07-92f127977031")
- .prevPageCursorId("4f1c3e05-bf3b-4118-a494-ef02c8061d81")
- .perPage(740);
+ .description("m7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfI")
+ .transactionId("SyoLqEQKh")
+ .setModified(false)
+ .types(new String[]{"exchange_outflow","payment","cashback","expire"})
+ .from("2024-12-08T13:12:39.000000Z")
+ .to("2023-10-06T22:46:26.000000Z")
+ .nextPageCursorId("f73d2590-2281-47f2-8c02-47842a1d6833")
+ .prevPageCursorId("6975e905-43cb-485c-a589-32820fe751f0")
+ .perPage(44);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .customerName("xb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkp")
- .description("YWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwD")
- .transactionId("tqXzHNdyt")
- .setModified(false)
- .types(new String[]{"cashback","expire"})
- .from("2020-04-21T23:46:36.000000Z")
- .to("2022-07-05T07:08:16.000000Z")
- .nextPageCursorId("b9cf372b-6f2c-44d1-aa17-63f240f1247b")
- .prevPageCursorId("8a07bad7-1169-47eb-8074-e24dc93cf284")
- .perPage(414);
+ .customerName("treugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSgh")
+ .description("Cw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34")
+ .transactionId("jE8W9")
+ .setModified(true)
+ .types(new String[]{"topup","payment"})
+ .from("2024-12-06T07:46:31.000000Z")
+ .to("2020-08-22T20:50:43.000000Z")
+ .nextPageCursorId("d0fbabc5-4b3c-417a-9a4c-56ee1759fc35")
+ .prevPageCursorId("0a53ed85-292f-4da9-b5f9-6f767e7bbb10")
+ .perPage(40);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .customerId("72885693-789f-428b-8bdf-87cba7fe9730")
- .customerName("HLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA")
- .description("fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFe")
- .transactionId("EH")
+ .customerId("81a32662-8cce-4c6b-9866-a821dfad102f")
+ .customerName("kqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAs")
+ .description("vQQw8eNXwtPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwv")
+ .transactionId("QFKDImV0W")
.setModified(true)
- .types(new String[]{"exchange_outflow"})
- .from("2023-05-30T21:33:05.000000Z")
- .to("2021-02-27T11:58:29.000000Z")
- .nextPageCursorId("038acead-e850-4994-a96f-3b2ba1881dcd")
- .prevPageCursorId("01fe0421-f25c-497d-9180-4fda1ed94b77")
- .perPage(367);
+ .types(new String[]{"topup","exchange_inflow","exchange_outflow","cashback","expire","payment"})
+ .from("2025-03-25T05:46:06.000000Z")
+ .to("2024-04-21T17:54:26.000000Z")
+ .nextPageCursorId("2b5accaf-7713-497a-a9d4-62d873471c01")
+ .prevPageCursorId("54af3204-35cd-4688-a7a2-dd2bcd991ef5")
+ .perPage(643);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .terminalId("b820fda7-038a-4541-a7c5-c0a7ae5ffc12")
- .customerId("1a888925-5c1c-4bed-adf5-8f3d0977300d")
- .customerName("UL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hbo")
- .description("1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXU")
- .transactionId("J1V0r5CHRN")
- .setModified(true)
- .types(new String[]{"cashback","exchange_inflow","topup","exchange_outflow"})
- .from("2024-01-31T03:46:51.000000Z")
- .to("2021-07-13T22:29:32.000000Z")
- .nextPageCursorId("9a618de4-8fe3-425d-b398-6cabc93b72b3")
- .prevPageCursorId("5f1ed84f-6ea8-4bc0-93a3-ea076171cffc")
- .perPage(495);
+ .terminalId("e06b45ed-b807-4346-aa3e-1d26809eb9e5")
+ .customerId("a6716e61-64c5-4648-a40a-41163b9005e8")
+ .customerName("PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1Vk")
+ .description("tFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfp")
+ .transactionId("TrIx")
+ .setModified(false)
+ .types(new String[]{"exchange_inflow","exchange_outflow","payment"})
+ .from("2020-11-20T16:52:18.000000Z")
+ .to("2021-06-13T07:29:08.000000Z")
+ .nextPageCursorId("64a8d224-6cf8-4c22-a7a7-4066c71fbc30")
+ .prevPageCursorId("ec3597a7-cf65-4da1-8106-abd0dd90cb80")
+ .perPage(389);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError {
@Test
void test13() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .shopId("73d29439-f434-47f7-b0d3-6ec38841ac99")
- .terminalId("8b14ad42-0194-4110-8789-9aeec68a43e2")
- .customerId("367bfb18-c63e-4d32-9522-a037e525c9cb")
- .customerName("I1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNf")
- .description("RiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U")
- .transactionId("XBig")
- .setModified(false)
- .types(new String[]{"exchange_outflow","expire","exchange_inflow"})
- .from("2020-08-12T04:56:25.000000Z")
- .to("2020-11-24T22:08:32.000000Z")
- .nextPageCursorId("c519f0e1-0b30-4f31-a34c-07b77d20b315")
- .prevPageCursorId("24224765-5d64-4305-a86d-2df292aacf56")
- .perPage(906);
+ .shopId("375ec13e-2110-49ea-9f6f-a5eb88fda305")
+ .terminalId("23f38ec5-ffd6-467e-8810-e8ba33a63e95")
+ .customerId("d2bd4e13-65d2-4382-aa46-79ccf1b1c13b")
+ .customerName("hiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjl")
+ .description("QzrcG4cFx990D5go4dBLdUCSZVd4cTqnNfSRiX")
+ .transactionId("Lw6IXxo")
+ .setModified(true)
+ .types(new String[]{"cashback","topup","exchange_outflow","expire","payment"})
+ .from("2024-01-23T19:32:02.000000Z")
+ .to("2026-04-10T14:13:13.000000Z")
+ .nextPageCursorId("9af3b345-8ee5-4ff2-8c4e-7127a8577917")
+ .prevPageCursorId("bd51d245-8c4b-4321-be4d-9459c0099b05")
+ .perPage(937);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError {
@Test
void test14() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .organizationCode("aK--z--9-9-z-0m2O-grW-bv")
- .shopId("0caa601e-8eb4-4a21-9861-c9a26f97ac7e")
- .terminalId("72170974-9f28-443a-ae74-42d287e37bcf")
- .customerId("970d08da-e963-4d12-8283-ebe2043f9ae5")
- .customerName("ZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx")
- .description("2McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BT")
- .transactionId("Nca")
- .setModified(false)
- .types(new String[]{"cashback","topup"})
- .from("2023-12-25T20:01:08.000000Z")
- .to("2020-09-02T09:26:19.000000Z")
- .nextPageCursorId("8cb39107-9a71-4516-8569-9047b21dc5ce")
- .prevPageCursorId("fe9e45e5-8953-4e94-84ca-edf54581f0e5")
- .perPage(787);
+ .organizationCode("49Z3-Af-3QQb-j0Nu-")
+ .shopId("ab504349-7dd1-464b-9151-b9010663148b")
+ .terminalId("886558c8-2f62-4afc-a436-5ce6ea945ae9")
+ .customerId("659e2b6b-6fa7-41ae-9dd6-43e781f6f138")
+ .customerName("3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQ")
+ .description("s9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqT")
+ .transactionId("KQYa")
+ .setModified(true)
+ .types(new String[]{"cashback","expire","payment"})
+ .from("2023-08-25T10:38:14.000000Z")
+ .to("2026-01-09T02:36:33.000000Z")
+ .nextPageCursorId("ef9cdccd-f19a-4961-af30-71e90fcf08bc")
+ .prevPageCursorId("da52fd4d-76a8-4c82-a72c-d484de4bda95")
+ .perPage(427);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -327,21 +327,21 @@ void test14() throws ConnectionError, ProcessingError {
@Test
void test15() throws ConnectionError, ProcessingError {
Request request = new ListTransactionsV2()
- .privateMoneyId("60d57317-f1d7-49a9-834e-3421780c098a")
- .organizationCode("35A-1n")
- .shopId("eff09dcb-e0ec-463c-a4c1-4ba98e9f29ce")
- .terminalId("79267e47-73fa-4353-97da-c3e5d1fd6234")
- .customerId("f9368c39-c597-437d-9a2d-93901ba10cf1")
- .customerName("KV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04")
- .description("Ls4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZm")
- .transactionId("6C")
- .setModified(true)
- .types(new String[]{"exchange_outflow","exchange_inflow"})
- .from("2023-11-29T14:24:26.000000Z")
- .to("2024-07-12T21:55:27.000000Z")
- .nextPageCursorId("0d1a60b9-77d9-4f33-a600-8e99e11809b9")
- .prevPageCursorId("11a2eca6-8e64-4b1b-bbea-684d1cbf0e60")
- .perPage(805);
+ .privateMoneyId("14935578-5f37-4732-8daf-af8eb59f58e3")
+ .organizationCode("--amCO3FHU--68M6-tQ04mYLv-7Yw")
+ .shopId("010e53f6-3199-4844-bc33-2cc24c9fc25c")
+ .terminalId("36b28d04-d454-4eee-821f-c314311c68a9")
+ .customerId("4888faa6-9a4e-41e3-a1c9-b97624edf9b4")
+ .customerName("Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn73")
+ .description("2KUYpvpwWJTv2DUcm")
+ .transactionId("sWBT")
+ .setModified(false)
+ .types(new String[]{"payment","cashback","expire","exchange_outflow","topup"})
+ .from("2025-10-08T09:55:20.000000Z")
+ .to("2021-07-29T07:10:06.000000Z")
+ .nextPageCursorId("a0db3eec-5bbf-4c95-8f0e-96e89e7c004e")
+ .prevPageCursorId("db94a50f-e06f-4452-8555-1b698d3a02ef")
+ .perPage(230);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java b/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java
index 38e5bdd1..088a9f2c 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListTransfersTest.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .description("B8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuO");
+ .description("ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .transferTypes(new String[]{"coupon","transfer"})
- .description("c8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWU");
+ .transferTypes(new String[]{"transfer","cashback","coupon","expire","campaign"})
+ .description("UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSi");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .transactionTypes(new String[]{"expire"})
- .transferTypes(new String[]{"coupon","cashback","transfer","exchange","topup","payment","campaign","expire"})
- .description("UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTK");
+ .transactionTypes(new String[]{"payment","cashback","expire"})
+ .transferTypes(new String[]{"exchange","payment","topup"})
+ .description("jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8Ui");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .setModified(true)
- .transactionTypes(new String[]{"expire","exchange","payment","topup"})
- .transferTypes(new String[]{"transfer","expire","payment","campaign","cashback","topup"})
- .description("v7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx");
+ .setModified(false)
+ .transactionTypes(new String[]{"cashback"})
+ .transferTypes(new String[]{"topup","cashback","campaign","expire"})
+ .description("NxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6K");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .privateMoneyId("f69561a4-e09f-407c-b8fa-8a77efa971df")
+ .privateMoneyId("9e4c334d-44f3-4887-875b-f3d244e51053")
.setModified(true)
- .transactionTypes(new String[]{"cashback","transfer","exchange"})
- .transferTypes(new String[]{"topup"})
- .description("UQr");
+ .transactionTypes(new String[]{"cashback","topup","payment","expire","exchange"})
+ .transferTypes(new String[]{"exchange","campaign","payment","expire","coupon"})
+ .description("hFwjSSUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .transactionId("46b5b8af-342d-48f0-9da3-39db84adb392")
- .privateMoneyId("20809e81-1bfd-4bac-b156-1e24a7e2ec98")
- .setModified(true)
- .transactionTypes(new String[]{"payment"})
- .transferTypes(new String[]{"coupon","campaign","cashback"})
- .description("4wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ");
+ .transactionId("97f5ce53-a599-497d-99a2-1c7b021bdc3b")
+ .privateMoneyId("f9a82d32-185d-4938-9cc3-d97d252fa918")
+ .setModified(false)
+ .transactionTypes(new String[]{"transfer"})
+ .transferTypes(new String[]{"cashback"})
+ .description("WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .customerName("ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXm")
- .transactionId("7e33e549-d7b4-49d0-a7ec-c13a756c6a50")
- .privateMoneyId("a6f903f6-97a3-4c79-a995-6bff066954ef")
+ .customerName("3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTY")
+ .transactionId("c884d81c-e079-4643-956f-ec8785993e20")
+ .privateMoneyId("ff109fcf-9eac-4107-9687-b0fdae495945")
.setModified(false)
- .transactionTypes(new String[]{"cashback","transfer","payment","exchange","expire"})
- .transferTypes(new String[]{"payment","topup","campaign"})
- .description("vJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7");
+ .transactionTypes(new String[]{"exchange","transfer"})
+ .transferTypes(new String[]{"payment","cashback"})
+ .description("gDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9Kx");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .customerId("7fc65c90-b7ee-46a2-8f16-d4bce6538980")
- .customerName("XURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvf")
- .transactionId("fc297801-b78b-4f4a-8c62-b329c91511d4")
- .privateMoneyId("97d8027c-d1df-4b1b-9a98-b22b550a3192")
- .setModified(true)
- .transactionTypes(new String[]{"topup","payment","cashback","exchange"})
+ .customerId("ec37e66a-6273-4097-95fa-7fe5231f71e5")
+ .customerName("EvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2g")
+ .transactionId("958fa3ab-2349-4470-b70f-4c481a57c890")
+ .privateMoneyId("3c4d1684-bc90-436c-9392-e39fa9eb2943")
+ .setModified(false)
+ .transactionTypes(new String[]{"topup","expire","exchange"})
.transferTypes(new String[]{"exchange"})
- .description("6HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhK");
+ .description("Z8tjsh68ScZg3aAMErPcV9o0TcGJkIJ");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .shopName("gvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6")
- .customerId("e5825dbc-4081-4491-8d3f-63efd163ccad")
- .customerName("DkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBS")
- .transactionId("3267ce5b-2640-48e8-957e-3a280ad90b36")
- .privateMoneyId("f50c6398-e785-4885-be49-2cb6c0a7c0f1")
- .setModified(true)
- .transactionTypes(new String[]{"transfer","exchange","cashback","payment"})
- .transferTypes(new String[]{"expire","coupon","campaign"})
- .description("IFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCp");
+ .shopName("RMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwAS")
+ .customerId("01940baa-da5b-4317-ac6c-1d32bfb1a468")
+ .customerName("GkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWw")
+ .transactionId("b0eff541-03b7-47c9-a2eb-e55c4be2b644")
+ .privateMoneyId("fcbc166d-0cdf-40eb-bf27-5517899fa02d")
+ .setModified(false)
+ .transactionTypes(new String[]{"payment","cashback","expire","transfer","exchange","topup"})
+ .transferTypes(new String[]{"campaign","payment","cashback"})
+ .description("SHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .shopId("1b5c4179-22cc-453c-bef9-a39a42ccb65a")
- .shopName("50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJT")
- .customerId("23ea49e9-3c17-45a5-b713-2bcf881f9d2b")
- .customerName("UK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNS")
- .transactionId("fa19fce6-0283-4b97-9e7b-88ed8c45ea7d")
- .privateMoneyId("11dc6f98-d386-49c5-b5a3-06ff3d16fe21")
+ .shopId("cb8e5688-d3b1-45f3-9f86-1d9aa18424d4")
+ .shopName("jjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGw")
+ .customerId("f17c55e9-2f79-447b-8519-c7052367e31c")
+ .customerName("4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKd")
+ .transactionId("a301632b-6754-41bb-b48c-1b3d7daad60a")
+ .privateMoneyId("7af69fa4-c2f5-4225-b8fd-705fa378bdb3")
.setModified(true)
- .transactionTypes(new String[]{"cashback","topup","payment","exchange","transfer","expire"})
- .transferTypes(new String[]{"transfer","cashback","coupon","campaign","payment"})
- .description("MyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe");
+ .transactionTypes(new String[]{"expire"})
+ .transferTypes(new String[]{"payment"})
+ .description("M");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .perPage(1417)
- .shopId("94a51035-33ad-4aa6-b258-03c055df6fb0")
- .shopName("rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ")
- .customerId("bb41ea14-5f37-4c80-a5b1-2d1545b7e61a")
- .customerName("CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jR")
- .transactionId("cf80c144-88bc-4199-966e-0e44ebff96e6")
- .privateMoneyId("1f3e21d5-f316-4cf4-807d-2fb459bdb925")
+ .perPage(3845)
+ .shopId("367f3fa9-839e-4aba-aa4f-f5197b68b318")
+ .shopName("6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l")
+ .customerId("7a1f9db7-10b0-475a-bf73-7cc7d6d7f908")
+ .customerName("PlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFw")
+ .transactionId("699d4f7d-1628-4056-90ed-17e1c7556848")
+ .privateMoneyId("047a0c06-b059-42dd-951c-873f10613a77")
.setModified(true)
- .transactionTypes(new String[]{"payment","transfer"})
- .transferTypes(new String[]{"coupon","payment","campaign","topup","transfer","expire","cashback","exchange"})
- .description("cCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZ");
+ .transactionTypes(new String[]{"topup","payment","exchange","cashback","expire","transfer"})
+ .transferTypes(new String[]{"expire","cashback"})
+ .description("R1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmD");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .page(1939)
- .perPage(1737)
- .shopId("9bd97640-2990-4459-95a7-b5e50f914add")
- .shopName("A6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYv")
- .customerId("e00a80d9-2931-4a88-99d7-e78ccf09b74d")
- .customerName("a6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20S")
- .transactionId("49c2a599-497d-4359-a27b-dc3bf9a82d32")
- .privateMoneyId("44b7185d-0938-429c-837d-a918e99902c5")
- .setModified(true)
- .transactionTypes(new String[]{"payment","cashback","transfer","exchange"})
- .transferTypes(new String[]{"transfer","topup","coupon","campaign","exchange","payment","cashback","expire"})
- .description("FgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCG");
+ .page(9024)
+ .perPage(5354)
+ .shopId("a7fd1551-42dd-4daf-9aa2-465f0d6e9589")
+ .shopName("mfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3")
+ .customerId("d84fd246-1c73-46a7-a142-5d17b10355fb")
+ .customerName("HTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79f")
+ .transactionId("7f3d3bf1-2da0-479a-a8c9-6354c57843ee")
+ .privateMoneyId("1a45853b-126e-4196-8b7b-bb8d62f5047a")
+ .setModified(false)
+ .transactionTypes(new String[]{"topup","transfer"})
+ .transferTypes(new String[]{"payment","coupon","topup","exchange","transfer"})
+ .description("B8sle88sl7rSWKN9oQ");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError {
@Test
void test13() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .to("2020-03-12T11:40:45.000000Z")
- .page(6724)
- .perPage(3429)
- .shopId("37e7f3a0-6f1a-45c5-a411-ee1ca472a898")
- .shopName("Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTM")
- .customerId("1c97d2e1-cf8b-4819-97e7-57c45a2e72d3")
- .customerName("eHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrt")
- .transactionId("ec44d2c3-c59c-45f8-ab16-18eba6632c74")
- .privateMoneyId("5d4437cd-697e-4662-a92c-2a003930cc0f")
+ .to("2024-12-17T06:45:21.000000Z")
+ .page(3529)
+ .perPage(3722)
+ .shopId("dd8d478d-072e-41f3-be94-d8bf7201bc4e")
+ .shopName("48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGh")
+ .customerId("2fdb9f3c-f9ec-4183-bd3a-21e2b330e913")
+ .customerName("aOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXW")
+ .transactionId("964b28f4-537f-4a87-8bfd-1755125f6e7a")
+ .privateMoneyId("62b95381-078a-47a3-806b-1dce5288d4a2")
.setModified(true)
- .transactionTypes(new String[]{"transfer","payment","expire","exchange","cashback","topup"})
- .transferTypes(new String[]{"coupon","exchange","campaign","topup","payment"})
- .description("bRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUM");
+ .transactionTypes(new String[]{"exchange"})
+ .transferTypes(new String[]{"expire","topup","payment","transfer","exchange","cashback","coupon"})
+ .description("BKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError {
@Test
void test14() throws ConnectionError, ProcessingError {
Request request = new ListTransfers()
- .from("2020-03-21T17:58:30.000000Z")
- .to("2022-05-05T13:45:47.000000Z")
- .page(2900)
- .perPage(2506)
- .shopId("9cadd92f-eae4-4cad-854a-11cdb435cec7")
- .shopName("98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhW")
- .customerId("2ef834c6-5b7c-4ff7-a33b-63413bb3e106")
- .customerName("ll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW")
- .transactionId("dbcd2c99-007b-412f-b0d0-9c09313f4008")
- .privateMoneyId("975e10bc-5d92-42c7-add5-eeb4b1466735")
- .setModified(false)
- .transactionTypes(new String[]{"cashback","exchange","payment","transfer","topup"})
- .transferTypes(new String[]{"coupon","transfer","exchange","payment","topup","expire"})
- .description("NvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtu");
+ .from("2022-05-03T12:34:35.000000Z")
+ .to("2021-01-13T03:57:38.000000Z")
+ .page(8812)
+ .perPage(6603)
+ .shopId("af6583c2-602b-4916-be84-17c452d5f1f6")
+ .shopName("xWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjY")
+ .customerId("6aac285d-8b03-4ce4-9be8-9d597fd276f9")
+ .customerName("9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafd")
+ .transactionId("07fa762d-74e9-4a89-a976-9e3ddb44dc4e")
+ .privateMoneyId("727c8fee-83b4-40ce-8562-fdce4c298acc")
+ .setModified(true)
+ .transactionTypes(new String[]{"topup"})
+ .transferTypes(new String[]{"campaign","exchange"})
+ .description("mUNmLeKEfXUc2dQExu22E4bX");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java b/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java
index b415ce2d..f5b316f9 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListTransfersV2Test.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .to("2021-03-23T04:04:58.000000Z");
+ .to("2021-07-23T21:15:26.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .from("2024-07-18T07:55:43.000000Z")
- .to("2024-03-16T20:33:15.000000Z");
+ .from("2025-03-19T11:38:02.000000Z")
+ .to("2023-09-02T12:57:56.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -57,9 +57,9 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .description("hwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4Ez")
- .from("2022-08-02T00:56:05.000000Z")
- .to("2021-04-23T15:57:26.000000Z");
+ .description("srAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Yns")
+ .from("2025-07-02T18:08:02.000000Z")
+ .to("2025-04-09T15:53:39.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -74,10 +74,10 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .transferTypes(new String[]{"transfer","coupon","topup","payment","exchange"})
- .description("DCSxoowqwobMRj4K8plKuk")
- .from("2021-11-14T22:11:39.000000Z")
- .to("2024-07-25T10:04:06.000000Z");
+ .transferTypes(new String[]{"coupon","transfer","exchange","expire","campaign"})
+ .description("T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2")
+ .from("2020-05-30T00:23:10.000000Z")
+ .to("2026-05-24T10:25:13.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -92,11 +92,11 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .perPage(172)
- .transferTypes(new String[]{"coupon","transfer","campaign","expire"})
- .description("CXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGb")
- .from("2020-07-23T04:27:44.000000Z")
- .to("2022-11-20T17:12:04.000000Z");
+ .perPage(102)
+ .transferTypes(new String[]{"cashback","payment"})
+ .description("u24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5pax")
+ .from("2020-10-08T09:40:57.000000Z")
+ .to("2021-07-25T16:41:47.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -111,12 +111,12 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .prevPageCursorId("69f15609-b3f0-49e2-80cd-8f04367f3fa9")
- .perPage(927)
- .transferTypes(new String[]{"exchange","transfer","payment","topup","expire","coupon","campaign"})
- .description("aiDroY6Q3IK7BQ6AmswdAM")
- .from("2020-09-17T19:34:00.000000Z")
- .to("2024-01-24T08:06:52.000000Z");
+ .prevPageCursorId("69a15144-6b32-4458-bd84-e61f099573e3")
+ .perPage(208)
+ .transferTypes(new String[]{"cashback","transfer","campaign","topup","exchange","payment","coupon","expire"})
+ .description("6iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7Z")
+ .from("2020-10-07T23:08:43.000000Z")
+ .to("2022-10-24T02:41:06.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -131,13 +131,13 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .nextPageCursorId("7416611f-2e33-43c9-8af2-56af066b1677")
- .prevPageCursorId("7bd970d6-d2e2-4573-b970-bccdd97bd8f8")
- .perPage(231)
- .transferTypes(new String[]{"payment","cashback"})
- .description("1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmm")
- .from("2020-12-27T00:56:08.000000Z")
- .to("2021-02-25T20:32:37.000000Z");
+ .nextPageCursorId("d8a1bb02-12b8-43af-ac08-1c963bb3d3d0")
+ .prevPageCursorId("ba287056-910a-48ca-aeab-58dd8d1f786b")
+ .perPage(966)
+ .transferTypes(new String[]{"transfer","exchange","payment","coupon","cashback","expire"})
+ .description("eTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx")
+ .from("2022-10-13T07:45:55.000000Z")
+ .to("2021-06-21T04:02:50.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -152,14 +152,14 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .transactionTypes(new String[]{"expire","cashback"})
- .nextPageCursorId("af0744c7-8de8-4ae5-ad2d-8e8ef679abfb")
- .prevPageCursorId("256441a2-fc14-45fb-b354-86992c485b94")
- .perPage(574)
- .transferTypes(new String[]{"topup","expire","coupon","exchange","campaign","cashback","payment","transfer"})
- .description("c7CS1DK4G")
- .from("2023-08-10T03:01:06.000000Z")
- .to("2022-11-14T00:51:10.000000Z");
+ .transactionTypes(new String[]{"transfer","expire","cashback"})
+ .nextPageCursorId("f66abfd9-8aea-4aa6-9035-950ba45a59be")
+ .prevPageCursorId("db2d3b1e-5107-43f0-afaa-2564d59f5135")
+ .perPage(777)
+ .transferTypes(new String[]{"payment","transfer","topup","expire","exchange"})
+ .description("FLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7C")
+ .from("2025-11-29T23:51:46.000000Z")
+ .to("2025-05-25T20:51:21.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -174,15 +174,15 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .setModified(true)
- .transactionTypes(new String[]{"exchange"})
- .nextPageCursorId("17ac544d-078c-4c58-9b07-320c57bdc9c8")
- .prevPageCursorId("327abbfc-6a97-498e-9d72-14fa41ea10b9")
- .perPage(60)
- .transferTypes(new String[]{"campaign","coupon","expire"})
- .description("mUp8pN9pjtBKEK15Dd3XxCT0Zmu")
- .from("2024-03-18T05:31:34.000000Z")
- .to("2022-03-14T12:52:05.000000Z");
+ .setModified(false)
+ .transactionTypes(new String[]{"payment","exchange","topup","cashback","transfer"})
+ .nextPageCursorId("d685eccf-3551-429a-aab2-447105eb5303")
+ .prevPageCursorId("a64ae791-5f70-4db6-a58b-78425dda8190")
+ .perPage(34)
+ .transferTypes(new String[]{"expire","transfer"})
+ .description("IuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDx")
+ .from("2023-08-14T11:23:41.000000Z")
+ .to("2020-12-04T03:47:31.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -197,16 +197,16 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .privateMoneyId("6eb0a40d-c937-44f4-820e-b0cf3a0c4440")
+ .privateMoneyId("5eb3a22d-a1fd-4370-8ff0-b71c70188c56")
.setModified(true)
- .transactionTypes(new String[]{"exchange","transfer"})
- .nextPageCursorId("161abbde-6265-4cdc-9dce-5f6195861a74")
- .prevPageCursorId("c0942e47-98a8-42de-bf06-267c6ab5cb6f")
- .perPage(877)
- .transferTypes(new String[]{"transfer","expire","cashback","exchange","topup","coupon","campaign","payment"})
- .description("SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1Ll")
- .from("2021-07-18T19:57:18.000000Z")
- .to("2022-01-18T16:37:21.000000Z");
+ .transactionTypes(new String[]{"transfer","topup","expire","cashback","payment"})
+ .nextPageCursorId("89110a79-95b6-4550-9fcf-593764ce58a3")
+ .prevPageCursorId("9b573bb3-2781-4aa4-a3a8-ed976bb2c35b")
+ .perPage(920)
+ .transferTypes(new String[]{"topup","payment","exchange","cashback","campaign","expire"})
+ .description("v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M")
+ .from("2021-10-22T10:47:21.000000Z")
+ .to("2024-12-09T03:11:30.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -221,17 +221,17 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .transactionId("3405f240-8da3-4c0a-aac9-83e9c7fb400a")
- .privateMoneyId("ac2d57bd-0f35-4b3d-b1d9-31545b075671")
- .setModified(true)
- .transactionTypes(new String[]{"transfer","topup","cashback","exchange","expire","payment"})
- .nextPageCursorId("136c436a-c71a-4c14-bc01-a66666243374")
- .prevPageCursorId("e4685af3-359d-4342-94ab-c4eb7cb010a6")
- .perPage(896)
- .transferTypes(new String[]{"transfer","coupon"})
- .description("gIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXql")
- .from("2023-07-03T17:38:54.000000Z")
- .to("2022-06-30T07:14:35.000000Z");
+ .transactionId("4db002b5-74b6-4ed6-9551-1bfb7532b07a")
+ .privateMoneyId("534fffc9-8326-4f02-8792-8c3e255db52b")
+ .setModified(false)
+ .transactionTypes(new String[]{"payment","expire","exchange"})
+ .nextPageCursorId("ce0c4df2-359e-4edf-b7e6-e9f3de7ae242")
+ .prevPageCursorId("6312baee-87a7-4308-9f46-4675085de73b")
+ .perPage(423)
+ .transferTypes(new String[]{"transfer","cashback","payment","expire","topup","campaign"})
+ .description("Y8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWR")
+ .from("2024-10-30T11:15:11.000000Z")
+ .to("2022-07-30T23:37:56.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -246,18 +246,18 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .customerName("d5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCsp")
- .transactionId("21798f89-20e4-48ff-9308-3ff01ff7a6cb")
- .privateMoneyId("34092b84-562e-43e3-bc1f-2ba0fbc9fa08")
+ .customerName("wobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBl")
+ .transactionId("c95243c3-7296-4f4a-905e-89ea7feaa674")
+ .privateMoneyId("3fcb1e56-d7ea-4036-92a1-d4a9f5295d41")
.setModified(false)
- .transactionTypes(new String[]{"exchange","expire","payment"})
- .nextPageCursorId("6849350b-72b5-42a3-a77c-34bd749761cc")
- .prevPageCursorId("9b3bab85-e5c1-4454-8170-817ac425298f")
- .perPage(338)
- .transferTypes(new String[]{"exchange","transfer","campaign","payment","coupon","cashback"})
- .description("G1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2w")
- .from("2023-07-06T21:17:42.000000Z")
- .to("2020-03-06T07:13:06.000000Z");
+ .transactionTypes(new String[]{"expire"})
+ .nextPageCursorId("ff7d1e2c-57ea-4bd7-b26a-e8a2727920b8")
+ .prevPageCursorId("19d2656e-4289-48ac-afad-d29664e4b0d7")
+ .perPage(355)
+ .transferTypes(new String[]{"topup"})
+ .description("KQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0")
+ .from("2021-03-09T16:17:48.000000Z")
+ .to("2023-02-06T14:29:46.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -272,19 +272,19 @@ void test12() throws ConnectionError, ProcessingError {
@Test
void test13() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .customerId("01340f5e-e511-4db3-b6d9-0a3aa2cdda2c")
- .customerName("uE4jwp0IiR44I5KLiOrRKq3qxtTGi")
- .transactionId("dee32366-1821-44ce-b63f-e1cb261c9a2c")
- .privateMoneyId("5da3a272-3e72-46e1-84b5-60f5ebdeb5a4")
- .setModified(false)
- .transactionTypes(new String[]{"transfer","cashback","payment","exchange","topup"})
- .nextPageCursorId("ba7b5f00-a9a8-4ded-91e4-d74c73fedb4e")
- .prevPageCursorId("c853e04f-52cb-49ad-9c3e-eeabed53ba9f")
- .perPage(830)
- .transferTypes(new String[]{"topup","expire"})
- .description("Oh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3")
- .from("2024-06-24T19:10:10.000000Z")
- .to("2020-09-08T11:39:54.000000Z");
+ .customerId("f4e91560-95e4-44eb-adc8-9481ec8c27d7")
+ .customerName("dPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLu")
+ .transactionId("cf7bb608-a472-4f09-be11-e9c284c0afab")
+ .privateMoneyId("af5a8b79-7512-4a99-9ff2-1907c3eb4d0e")
+ .setModified(true)
+ .transactionTypes(new String[]{"payment","expire","topup","cashback","transfer"})
+ .nextPageCursorId("0e95e7dc-9a82-4420-b3fa-2156486dc8bb")
+ .prevPageCursorId("ddcde45c-9b77-4dad-ac51-4f417e0c8912")
+ .perPage(191)
+ .transferTypes(new String[]{"campaign","topup","exchange","expire","transfer","payment","coupon"})
+ .description("YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57y")
+ .from("2021-01-19T21:43:56.000000Z")
+ .to("2022-12-27T05:42:23.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -299,20 +299,20 @@ void test13() throws ConnectionError, ProcessingError {
@Test
void test14() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .shopName("blmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidV")
- .customerId("87951304-1e47-461f-b719-da29f2c9cac2")
- .customerName("6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5")
- .transactionId("47b14440-34ec-497f-8f77-68aeae516ed7")
- .privateMoneyId("34d59ddd-6596-4d5a-8b75-1f57af90bb57")
- .setModified(true)
- .transactionTypes(new String[]{"cashback"})
- .nextPageCursorId("23d1c950-51f1-40b2-b2ea-bece15ca43ab")
- .prevPageCursorId("f917069c-5732-42a2-b8a8-a700a3b13851")
- .perPage(615)
- .transferTypes(new String[]{"payment","expire","transfer","topup","cashback"})
- .description("Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdi")
- .from("2021-05-20T20:37:10.000000Z")
- .to("2024-07-05T05:06:05.000000Z");
+ .shopName("pO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI")
+ .customerId("7c15b5fc-91b4-4c37-b0af-55a89af1aca7")
+ .customerName("qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EA")
+ .transactionId("74d6c0ee-606c-4fc6-aa14-9219c90ee445")
+ .privateMoneyId("e7281ee7-f283-49cd-bcaf-0ded7f98df29")
+ .setModified(false)
+ .transactionTypes(new String[]{"payment","topup","expire","transfer","cashback","exchange"})
+ .nextPageCursorId("5aaff583-e5be-4ac2-9605-55604b33fb24")
+ .prevPageCursorId("fdcfbc5b-ac4e-4bb0-80d4-1fff6ec18838")
+ .perPage(131)
+ .transferTypes(new String[]{"topup","exchange","coupon","expire"})
+ .description("oRyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwn")
+ .from("2021-03-10T04:34:37.000000Z")
+ .to("2025-04-06T18:13:06.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -327,21 +327,21 @@ void test14() throws ConnectionError, ProcessingError {
@Test
void test15() throws ConnectionError, ProcessingError {
Request request = new ListTransfersV2()
- .shopId("db44dc4e-8fee-43b4-8e05-9662940afdce")
- .shopName("XIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mH")
- .customerId("aac45f15-00e8-4969-a0d3-46c4f9deee8e")
- .customerName("XKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnT")
- .transactionId("78f15c8a-e4ec-4989-934c-66f998f4bcfe")
- .privateMoneyId("b5102dfc-6ade-4475-bfdc-73839d210a62")
+ .shopId("d516f594-aa59-4fb3-8dad-a81b5570867d")
+ .shopName("JVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdv")
+ .customerId("32d122f5-6d51-40e2-b5e0-ac0dc3c5ba51")
+ .customerName("YDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkY")
+ .transactionId("1fb859a4-ab50-4547-a10a-57827ebbb13d")
+ .privateMoneyId("d4849b27-8cba-4754-a409-2938fa916389")
.setModified(false)
- .transactionTypes(new String[]{"payment"})
- .nextPageCursorId("f4d07335-cbf5-4c16-8739-bdfba1be0d59")
- .prevPageCursorId("3f422c34-2019-48e3-ae03-e3ac71afdc8c")
- .perPage(951)
- .transferTypes(new String[]{"cashback","exchange","expire","transfer","payment"})
- .description("RZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16")
- .from("2023-07-22T03:23:23.000000Z")
- .to("2022-10-03T00:53:54.000000Z");
+ .transactionTypes(new String[]{"payment","exchange","transfer","expire","topup","cashback"})
+ .nextPageCursorId("72decb62-1cea-44e9-9e1d-b018f61f4136")
+ .prevPageCursorId("1815f202-f891-4385-bdee-0b446dd55894")
+ .perPage(511)
+ .transferTypes(new String[]{"exchange","coupon","campaign"})
+ .description("eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKi")
+ .from("2025-02-02T20:44:23.000000Z")
+ .to("2022-09-18T09:42:09.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListUserAccountsTest.java b/src/test/java/jp/pokepay/partnerapi/ListUserAccountsTest.java
index 263a3910..247a259e 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListUserAccountsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListUserAccountsTest.java
@@ -12,7 +12,7 @@ public class ListUserAccountsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new ListUserAccounts(
- "f7badafa-54a1-4511-b337-e4aa1c1fe652"
+ "580852da-986e-4146-8a04-b74de803cf9c"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListUserAccounts(
- "f7badafa-54a1-4511-b337-e4aa1c1fe652"
+ "580852da-986e-4146-8a04-b74de803cf9c"
)
- .perPage(5145);
+ .perPage(6774);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListUserAccounts(
- "f7badafa-54a1-4511-b337-e4aa1c1fe652"
+ "580852da-986e-4146-8a04-b74de803cf9c"
)
- .page(7996)
- .perPage(3122);
+ .page(4049)
+ .perPage(405);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java b/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java
index 7a9c9054..c95e00f3 100644
--- a/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/ListWebhooksTest.java
@@ -26,7 +26,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new ListWebhooks()
- .perPage(3090);
+ .perPage(7361);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -41,8 +41,8 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new ListWebhooks()
- .page(7154)
- .perPage(1647);
+ .page(7907)
+ .perPage(5712);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/PostCreditSessionTest.java b/src/test/java/jp/pokepay/partnerapi/PostCreditSessionTest.java
new file mode 100644
index 00000000..4a22d778
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/PostCreditSessionTest.java
@@ -0,0 +1,51 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.PostCreditSession;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class PostCreditSessionTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new PostCreditSession(
+ "f7badafa-54a1-4511-b337-e4aa1c1fe652",
+ "7c419418-aa59-4e5c-bbdc-7d8d6bf88c31",
+ "1cca797a-a4ae-4807-a9ad-4bab80f00988",
+ "2024-03-08T03:04:44.000000Z"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test1() throws ConnectionError, ProcessingError {
+ Request request = new PostCreditSession(
+ "f7badafa-54a1-4511-b337-e4aa1c1fe652",
+ "7c419418-aa59-4e5c-bbdc-7d8d6bf88c31",
+ "1cca797a-a4ae-4807-a9ad-4bab80f00988",
+ "2024-03-08T03:04:44.000000Z"
+ )
+ .requestId("cc450cba-668f-4380-854c-2e6dae6d9426");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java
index 8f5b0a76..e8a5c0a5 100644
--- a/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/RefundExternalTransactionTest.java
@@ -12,7 +12,7 @@ public class RefundExternalTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new RefundExternalTransaction(
- "681094c4-980c-4d74-98ca-0969c4d5dbe9"
+ "86dc273c-0117-4f5e-9a7e-9c58f454603b"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new RefundExternalTransaction(
- "681094c4-980c-4d74-98ca-0969c4d5dbe9"
+ "86dc273c-0117-4f5e-9a7e-9c58f454603b"
)
- .description("kZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8Ox");
+ .description("msoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVS");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java b/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java
index b4049b2a..25981b3c 100644
--- a/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/RefundTransactionTest.java
@@ -12,7 +12,7 @@ public class RefundTransactionTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new RefundTransaction(
- "8e486a0d-3f86-46aa-8b07-c127608e19e8"
+ "2212eff1-43b5-47fd-b0e6-c1918aae3510"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new RefundTransaction(
- "8e486a0d-3f86-46aa-8b07-c127608e19e8"
+ "2212eff1-43b5-47fd-b0e6-c1918aae3510"
)
- .returningPointExpiresAt("2021-08-05T07:10:19.000000Z");
+ .returningPointExpiresAt("2022-09-26T22:36:35.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new RefundTransaction(
- "8e486a0d-3f86-46aa-8b07-c127608e19e8"
+ "2212eff1-43b5-47fd-b0e6-c1918aae3510"
)
- .description("gpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziT")
- .returningPointExpiresAt("2022-09-30T08:34:41.000000Z");
+ .description("joNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26")
+ .returningPointExpiresAt("2020-05-23T02:38:20.000000Z");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java b/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java
index 64d8fcb6..f358b897 100644
--- a/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/RequestUserStatsTest.java
@@ -12,8 +12,8 @@ public class RequestUserStatsTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new RequestUserStats(
- "2022-08-22T14:40:07.000000Z",
- "2024-09-18T13:18:22.000000Z"
+ "2023-08-22T22:03:54.000000Z",
+ "2023-12-09T12:37:40.000000Z"
);
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/ShowTransactionGroupTest.java b/src/test/java/jp/pokepay/partnerapi/ShowTransactionGroupTest.java
new file mode 100644
index 00000000..f4f4801b
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/ShowTransactionGroupTest.java
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.ShowTransactionGroup;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class ShowTransactionGroupTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new ShowTransactionGroup(
+ "0c94c2d7-f495-4c5d-959d-d75a15c697e9"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java b/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java
new file mode 100644
index 00000000..a5a0e509
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/TerminateUserStatsTest.java
@@ -0,0 +1,28 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi;
+
+import jp.pokepay.partnerapi.request.TerminateUserStats;
+import jp.pokepay.partnerapi.request.Request;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class TerminateUserStatsTest {
+ @Test
+ void test0() throws ConnectionError, ProcessingError {
+ Request request = new TerminateUserStats(
+ "1ee0163b-b7f1-4634-a87f-f35bc0bd1a48"
+ );
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateAccountTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateAccountTest.java
index 63beff5d..89e1ec0b 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateAccountTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateAccountTest.java
@@ -12,7 +12,7 @@ public class UpdateAccountTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateAccount(
- "f687016b-d0b3-46f2-8833-e8985291851f"
+ "95c86f58-0405-4529-92d0-94c33ae0c1e2"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateAccount(
- "f687016b-d0b3-46f2-8833-e8985291851f"
+ "95c86f58-0405-4529-92d0-94c33ae0c1e2"
)
- .canTransferTopup(true);
+ .canTransferTopup(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,7 +45,7 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateAccount(
- "f687016b-d0b3-46f2-8833-e8985291851f"
+ "95c86f58-0405-4529-92d0-94c33ae0c1e2"
)
.status("pre-closed")
.canTransferTopup(true);
@@ -63,7 +63,7 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateAccount(
- "f687016b-d0b3-46f2-8833-e8985291851f"
+ "95c86f58-0405-4529-92d0-94c33ae0c1e2"
)
.setSuspended(true)
.status("active")
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java
index ddc95e4a..d9c3fee8 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateBillTest.java
@@ -12,7 +12,7 @@ public class UpdateBillTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateBill(
- "ab811bae-a4a2-4ac5-9eec-f8b9ec534517"
+ "e0f0d313-534b-44c4-9166-3cd3cae8eca8"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateBill(
- "ab811bae-a4a2-4ac5-9eec-f8b9ec534517"
+ "e0f0d313-534b-44c4-9166-3cd3cae8eca8"
)
.setDisabled(true);
try {
@@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateBill(
- "ab811bae-a4a2-4ac5-9eec-f8b9ec534517"
+ "e0f0d313-534b-44c4-9166-3cd3cae8eca8"
)
- .description("RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv")
+ .description("9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEm")
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateBill(
- "ab811bae-a4a2-4ac5-9eec-f8b9ec534517"
+ "e0f0d313-534b-44c4-9166-3cd3cae8eca8"
)
- .amount(140.0)
- .description("4bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iM")
- .setDisabled(false);
+ .amount(9641.0)
+ .description("QFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHo")
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java
index 484daa0c..a34da09c 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateCampaignTest.java
@@ -12,9 +12,9 @@ public class UpdateCampaignTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"201a1969-78aa-405f-9272-20f2c8525b2b","c9883fea-362f-4136-989e-1b24c370216d","92f100a0-437f-4bd8-84d9-54eff37a6571","a04274a7-1b56-4ec5-be9e-bc7f561e8376","e3a1bf5e-2bcb-4b76-a5ae-94f778977b33","7241d841-57e4-4ac5-b324-affbb550a20e","aeac5935-4568-4c47-a114-5f842f6464c4","5194a4cc-1089-4a7b-a075-819aeb378506","c213b519-fa61-4c53-bef0-74863e5ee907","559cc459-6d6c-46b1-9424-021d45703ac7"});
+ .applicableShopIds(new String[]{"2584f66f-5c4d-4dbb-b8a6-8127142cbb51","6c4c0892-d1a3-4ea5-889e-7294173d8d84","a68cf09d-5ac1-47b7-acd7-523ab380ea0a"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"ec27c6fe-059a-4a24-82ba-180ac4dfcd13","f985c984-19e9-41f5-8567-5e834f78f167","c5501e17-c56c-430b-b82b-cd22f5516989","f7d3cc4a-6b10-454a-82c7-4792184ecaff","5e21c79d-ad74-4d30-bce4-7a2c8fca5be3","aef32150-c7e2-4019-a05c-c88f4dd576f4"})
- .name("c4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLn");
+ .applicableShopIds(new String[]{"1f21a135-25c7-4e3b-8c48-fc21ee8edff1","d074898a-e3bd-499f-8be0-b0c9e8a58d10","7db208d4-71ea-4730-95ba-cc10173d02be","290cd967-444a-4977-b8ed-6d66e43d952b","e5454861-b41f-4ac6-9430-549009b671ad","66a6e1e7-d0df-49c7-ba9d-700a5e535f66","c84d4b0f-b1fe-4d67-8eec-6e97ab3be6c7","e5e31836-d29d-4285-8c5b-1fb7617dda60","5ea45d27-ada4-4c2c-98cf-74e66d75c423","5bedf882-3224-4f47-a9b8-3f381aeabc0f"})
+ .name("7nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy0");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"483acffd-cfbf-4b3d-8c85-c451016291ae","7a0a289d-125c-447b-98e5-b9e14d9dd333","16d1250c-bae5-443e-9499-e527acb9f640","306fc1af-ccc2-45ec-90a3-b3b10963847a","01008ae1-e7fd-4e31-986e-2d3711d59dbd","f9e353c9-6e5b-4ce3-80bc-ba2113063257"})
- .startsAt("2023-09-14T01:59:29.000000Z")
- .name("MlrV1ey0F13qC7iArhwm76E35ql4X");
+ .applicableShopIds(new String[]{"b42a6849-3a47-4ec3-9826-4eed46ff8b7a"})
+ .startsAt("2023-06-28T11:59:58.000000Z")
+ .name("sObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -66,12 +66,12 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"6b54f766-9255-4615-a165-2bc0557be331","f47afcb4-61d7-4ede-988a-03629081e296","cdde2e74-fdb9-45b3-9f74-bf00327a6632","f81322b6-c1bb-440f-acfe-20be21e09007","d46ed64c-3ae9-4851-91c1-a787c42816ac","032dc94d-dc42-4ed9-ad78-c6b0bf371a35"})
- .endsAt("2022-12-06T01:23:38.000000Z")
- .startsAt("2022-09-02T03:49:21.000000Z")
- .name("BwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9gh");
+ .applicableShopIds(new String[]{"9e788fba-4d62-4cf9-8716-f4bc3a07c728","7abc6e63-e3e4-4806-ad49-0161b329e2b6","83566c2c-9512-4ebc-b3dc-c4aad63cdf21","8da70d32-f809-4613-964f-b1adef2168de","6caa5882-3cff-4c69-93b4-a9296306ba34","62a4f097-735e-4dc0-bcb8-efabfcb939fa","58b09959-d311-41a7-8ed9-107e92189175","eb1851d3-62e5-4cf2-9667-8d74cc94ed35"})
+ .endsAt("2021-10-24T15:21:20.000000Z")
+ .startsAt("2024-11-05T08:48:31.000000Z")
+ .name("ThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYn");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -86,13 +86,13 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"fdcf6c13-1c86-4d5c-a518-18434304d6d4","9582de5b-88ab-4cca-83de-ff91296df797"})
- .priority(6098)
- .endsAt("2020-09-10T21:53:03.000000Z")
- .startsAt("2023-05-11T04:34:12.000000Z")
- .name("Xhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8");
+ .applicableShopIds(new String[]{"67404ef2-f912-4f2e-95af-f638107d6028","24aa0e4a-2c4a-418a-b67d-6e720d45daf1","01768988-a64a-41b5-b824-6875b4d403fc","be6c2fcb-ddfe-4dd7-ae1a-de68c53aa7a0","4b90476a-6604-4398-8ac5-860c9fa9ccd6","bf1fb003-6617-41a0-a612-8e67dde1bd01","d8eb2204-bc34-49eb-ad19-4a22a9f7bb25","18e0142d-b827-455f-9bfc-436dde7ff68d","7e55b73d-633e-412e-a79b-38032533cbac"})
+ .priority(3143)
+ .endsAt("2022-12-09T04:37:06.000000Z")
+ .startsAt("2022-08-18T20:57:23.000000Z")
+ .name("fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTB");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -107,14 +107,14 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"d5365c8b-e163-4569-af2b-de2dfaec44bc","98e228e8-4e71-4c57-be20-16f78e636ed7","8648f6cb-c1cc-4c49-83f3-56e748017178","06817d6f-7a92-44f8-85a1-f5dce51de9ab"})
+ .applicableShopIds(new String[]{"1a803053-3bfd-4b12-adeb-0a8b45acb0f6","e1ef4e5b-98c3-4141-aa7d-dc9806f8574a","3d677403-3855-4052-9182-f52ebfd6c230","5bc8c0f8-aa63-4404-8e3b-a6fde5a8cf99","5ff1b2b8-f70f-44ae-b6b3-d492c66406d8","7402eac7-2d7f-4eef-b8bb-0ece2b8f2baa"})
.event("topup")
- .priority(6681)
- .endsAt("2023-08-27T09:21:44.000000Z")
- .startsAt("2020-11-20T17:43:31.000000Z")
- .name("2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFh");
+ .priority(406)
+ .endsAt("2026-06-17T19:31:43.000000Z")
+ .startsAt("2020-08-03T20:26:01.000000Z")
+ .name("zQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -129,15 +129,15 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"7dd0ce91-f283-4553-ba22-f4629de2de29","d5a73d2a-6055-41ee-822f-8dbde68baa8b","67c00c97-03d8-4b08-9e20-7864a61202d1","4686d170-b28b-416d-9070-7b5c71ab0a8b"})
- .description("FqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyC")
- .event("topup")
- .priority(5744)
- .endsAt("2023-12-01T20:45:20.000000Z")
- .startsAt("2023-01-22T11:16:39.000000Z")
- .name("iVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m");
+ .applicableShopIds(new String[]{"fac048b5-4015-4a6c-810c-613d43d5ffe9","0fc20be1-fbfc-46c8-b76b-bfc0c08503f3","f3439114-b0f4-419a-a81b-5a92c210b4ac","5599041c-8971-4d1d-bbb2-d7f11dce588a"})
+ .description("t1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzX")
+ .event("external-transaction")
+ .priority(7742)
+ .endsAt("2024-10-13T00:26:20.000000Z")
+ .startsAt("2022-07-29T00:40:47.000000Z")
+ .name("9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CY");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -152,16 +152,16 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"8219900a-ff35-4db1-8208-6c6d4204ff94","09bea70e-f703-4550-829b-e2fb4ac21c2e","e9418e55-33dd-4bfe-b864-e33a43296e54","87b52509-7f44-4fa6-b796-4710c3fd01e2","16d23a3d-ebee-43a2-bb0f-f1d82d66b091"})
- .status("enabled")
- .description("r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8h")
+ .applicableShopIds(new String[]{"5706f07a-b853-4d03-8ac2-4b5784118e94","605371b4-97f3-428e-9e74-54ebc6e0fedb","7ca7a66f-93bf-4e5c-9063-3ca76aab6b17","0afb24b7-0455-4003-8058-0a527b843aa8","1fde0a79-eaa2-4f52-a9ac-7f568209bcb8","52c2ad15-e650-432f-aadc-e61633691c03"})
+ .status("disabled")
+ .description("ax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIb")
.event("external-transaction")
- .priority(5511)
- .endsAt("2023-05-29T19:29:06.000000Z")
- .startsAt("2023-03-30T02:43:56.000000Z")
- .name("pqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQd");
+ .priority(8492)
+ .endsAt("2024-09-24T22:37:32.000000Z")
+ .startsAt("2021-05-16T04:08:36.000000Z")
+ .name("Qsr0pTvhXVGg9hnQ");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -176,17 +176,17 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"8179b6eb-ff31-4230-9c4f-efb1d1bcf042","6663101b-13a4-495d-a90e-52826613c367"})
- .pointExpiresAt("2021-02-12T12:09:31.000000Z")
- .status("enabled")
- .description("vU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuK")
- .event("payment")
- .priority(8099)
- .endsAt("2021-06-04T04:52:57.000000Z")
- .startsAt("2023-10-26T09:20:26.000000Z")
- .name("1hdXC");
+ .applicableShopIds(new String[]{"1024e879-739a-4b9b-a597-4a6ea20f8a7a","e8ae48f5-aa7f-43f7-b2cf-fc13dc8fdeb3","63c0ef67-230c-4698-a647-ebdb1c86f151","ec1a2c95-631c-400f-ad47-d065614d6630","492c9f39-a7af-4765-8fd8-7becc987ac4b","3eae16f4-97d0-4111-a771-79d3a68741c1"})
+ .pointExpiresAt("2022-11-14T02:08:48.000000Z")
+ .status("disabled")
+ .description("aGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwz")
+ .event("external-transaction")
+ .priority(345)
+ .endsAt("2023-11-05T00:40:19.000000Z")
+ .startsAt("2020-08-17T01:20:34.000000Z")
+ .name("zTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2r");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -201,18 +201,18 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"ce9bd3f9-0ac1-404c-a84c-048ab60ec391","c6d5b424-268c-4c73-a4d0-91daedfb3cdc","d84eca09-7d2d-49b4-905c-99f8f8de07c5","8b8a0e95-b6da-425b-8261-974cd501af39","cc89b6dc-ef85-4e8c-a48a-f15c0593c167","7c402791-4bd0-4ba2-84dd-4f0cb1a42097","6c29d3ef-d045-470c-b5d0-d616df168c8f","7c26bc6e-854f-4660-9278-f0539e9e769f"})
- .pointExpiresInDays(6234)
- .pointExpiresAt("2020-02-10T10:51:05.000000Z")
- .status("enabled")
- .description("IBQUZMwQEKQp536z2WYA1sx132uYpl")
+ .applicableShopIds(new String[]{"9b3a7734-eafb-4959-88e3-cc2e7fef0541","aa7c3e87-3bca-454b-bc57-99c839d90ac3"})
+ .pointExpiresInDays(8357)
+ .pointExpiresAt("2022-02-12T01:20:38.000000Z")
+ .status("disabled")
+ .description("oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zr")
.event("external-transaction")
- .priority(9745)
- .endsAt("2022-04-24T08:50:34.000000Z")
- .startsAt("2020-09-05T17:02:02.000000Z")
- .name("tFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi2");
+ .priority(3295)
+ .endsAt("2020-09-13T21:12:42.000000Z")
+ .startsAt("2024-09-24T08:52:45.000000Z")
+ .name("epcLNjePvmbsJ6aAodX3l");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -227,19 +227,19 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"ca05f932-ed23-42ca-b7ab-ab3a2d0b9bb1","88e8f9e9-d3e4-4441-b894-78e39e4345d1","88ffbeb9-b0d2-4284-9b8b-685164b175e3","ab4472c1-fdb9-43b3-8526-ee8f1983136a"})
+ .applicableShopIds(new String[]{"3c8dff06-c953-4f1a-ba65-242c07425454","6eb63f7c-508c-485f-a695-b87e9fd6d206","75d3bfd8-cbf5-4755-aae8-c187bc6ce881","45eecf72-9bfa-4af9-915e-dacb129e098a"})
.setExclusive(true)
- .pointExpiresInDays(7419)
- .pointExpiresAt("2021-08-22T22:07:08.000000Z")
+ .pointExpiresInDays(2895)
+ .pointExpiresAt("2023-02-08T06:17:35.000000Z")
.status("enabled")
- .description("VE1oN8GZytUXsp14vePeJ")
+ .description("IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r")
.event("external-transaction")
- .priority(7933)
- .endsAt("2022-09-08T05:55:52.000000Z")
- .startsAt("2021-05-01T18:01:55.000000Z")
- .name("1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcb");
+ .priority(8696)
+ .endsAt("2024-10-26T07:48:40.000000Z")
+ .startsAt("2023-03-14T00:53:09.000000Z")
+ .name("IalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW2");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -254,20 +254,20 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"2cd7121d-8bd2-4e16-9646-6a19e77f4543"})
+ .applicableShopIds(new String[]{"a8fbf4ee-e8fe-42a1-86cb-3aca5a8788bd","b5f55359-36bf-4c44-b61d-6f7ac526a7cd","bc02d5b0-1726-40b0-95b4-63d15775b1e0","b8209327-8cd3-48d9-a46b-ae7bf7aa4de5","26e6a663-1fba-47a0-af02-0d7f27e50dc6","f8c1cd4a-3efa-4b80-87f2-6c333f12861f"})
.subject("all")
.setExclusive(true)
- .pointExpiresInDays(7428)
- .pointExpiresAt("2020-08-10T07:46:38.000000Z")
- .status("disabled")
- .description("WEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4")
- .event("topup")
- .priority(3913)
- .endsAt("2021-04-27T04:59:45.000000Z")
- .startsAt("2023-08-03T21:04:35.000000Z")
- .name("wQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5");
+ .pointExpiresInDays(7676)
+ .pointExpiresAt("2026-05-09T21:29:07.000000Z")
+ .status("enabled")
+ .description("rOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZ")
+ .event("payment")
+ .priority(4310)
+ .endsAt("2025-11-04T12:06:31.000000Z")
+ .startsAt("2023-10-20T07:41:00.000000Z")
+ .name("9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A0");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -286,22 +286,37 @@ void test12() throws ConnectionError, ProcessingError {
items.addProperty("point_amount_unit", "percent");
items.addProperty("subject_more_than_or_equal", 1000);
items.addProperty("subject_less_than", 5000);
+ JsonObject items2 = new JsonObject();
+ items2.addProperty("point_amount", 5);
+ items2.addProperty("point_amount_unit", "percent");
+ items2.addProperty("subject_more_than_or_equal", 1000);
+ items2.addProperty("subject_less_than", 5000);
+ JsonObject items3 = new JsonObject();
+ items3.addProperty("point_amount", 5);
+ items3.addProperty("point_amount_unit", "percent");
+ items3.addProperty("subject_more_than_or_equal", 1000);
+ items3.addProperty("subject_less_than", 5000);
+ JsonObject items4 = new JsonObject();
+ items4.addProperty("point_amount", 5);
+ items4.addProperty("point_amount_unit", "percent");
+ items4.addProperty("subject_more_than_or_equal", 1000);
+ items4.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"45af3000-bd9c-4fdb-85f0-277948842199","4579f524-c4c2-4328-a31f-22e443c598e8","10e80104-025d-4066-84f4-aeddcf984e8d"})
- .amountBasedPointRules(new Object[]{items})
- .subject("all")
+ .applicableShopIds(new String[]{"1cbd3b9f-0b38-46c8-bd4d-9fdb6cc0c8f5","17dc602f-35fd-4087-ba2f-8ed2d5ac9d2d","0d4b600c-42cb-4056-9eea-9defe6d045d9"})
+ .amountBasedPointRules(new Object[]{items,items2,items3,items4})
+ .subject("money")
.setExclusive(false)
- .pointExpiresInDays(4348)
- .pointExpiresAt("2023-04-11T03:47:25.000000Z")
+ .pointExpiresInDays(4920)
+ .pointExpiresAt("2022-01-23T03:46:51.000000Z")
.status("enabled")
- .description("gxIW5ljI6yfgW8z")
- .event("external-transaction")
- .priority(1582)
- .endsAt("2024-07-02T19:52:32.000000Z")
- .startsAt("2023-06-26T13:57:53.000000Z")
- .name("ul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3Z");
+ .description("ExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT")
+ .event("payment")
+ .priority(1546)
+ .endsAt("2026-04-17T00:35:09.000000Z")
+ .startsAt("2023-03-15T01:34:05.000000Z")
+ .name("Pr6H3Lr");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -366,50 +381,31 @@ void test13() throws ConnectionError, ProcessingError {
JsonObject items9 = new JsonObject();
items9.addProperty("point_amount", 5);
items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("is_multiply_by_count", true);
+ items9.addProperty("required_count", 2);
JsonObject items10 = new JsonObject();
items10.addProperty("point_amount", 5);
items10.addProperty("point_amount_unit", "percent");
items10.addProperty("subject_more_than_or_equal", 1000);
items10.addProperty("subject_less_than", 5000);
- JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
- JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
- JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
- JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"a8efe63b-a4f2-46dd-a7ad-14e1f13dc102"})
- .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
- .amountBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14})
- .subject("money")
+ .applicableShopIds(new String[]{"9f1dd456-38dd-43f1-879f-047cdabebd61","da00118b-bb89-4164-a9a7-14b7f95672c9","62c80721-a685-450a-b453-9e632f8bd420","5465970d-d322-42ff-b46f-4f5537b8e1be","292ce5a0-d803-4e64-ace9-9509604c869f","80e5d339-ed84-4c1f-8559-59a9ea0d9a70"})
+ .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
+ .amountBasedPointRules(new Object[]{items10})
+ .subject("all")
.setExclusive(false)
- .pointExpiresInDays(3659)
- .pointExpiresAt("2021-06-17T19:14:20.000000Z")
+ .pointExpiresInDays(4892)
+ .pointExpiresAt("2026-01-11T22:10:34.000000Z")
.status("enabled")
- .description("iLHRNzuSt")
+ .description("4d1DUqCUDmWqMmM9IYmurAkMd4wDsA")
.event("topup")
- .priority(5260)
- .endsAt("2023-07-11T20:38:32.000000Z")
- .startsAt("2023-02-17T13:06:56.000000Z")
- .name("5");
+ .priority(5019)
+ .endsAt("2025-02-15T11:38:55.000000Z")
+ .startsAt("2021-11-15T23:18:56.000000Z")
+ .name("01hvmpIXnG4Vdq7gNAtqrq");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -430,11 +426,8 @@ void test14() throws ConnectionError, ProcessingError {
items2.addProperty("product_code", "4912345678904");
items2.addProperty("classification_code", "c123");
JsonObject items3 = new JsonObject();
- items3.addProperty("point_amount", 5);
- items3.addProperty("point_amount_unit", "percent");
items3.addProperty("product_code", "4912345678904");
- items3.addProperty("is_multiply_by_count", true);
- items3.addProperty("required_count", 2);
+ items3.addProperty("classification_code", "c123");
JsonObject items4 = new JsonObject();
items4.addProperty("point_amount", 5);
items4.addProperty("point_amount_unit", "percent");
@@ -450,9 +443,8 @@ void test14() throws ConnectionError, ProcessingError {
JsonObject items6 = new JsonObject();
items6.addProperty("point_amount", 5);
items6.addProperty("point_amount_unit", "percent");
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
+ items6.addProperty("subject_more_than_or_equal", 1000);
+ items6.addProperty("subject_less_than", 5000);
JsonObject items7 = new JsonObject();
items7.addProperty("point_amount", 5);
items7.addProperty("point_amount_unit", "percent");
@@ -468,24 +460,54 @@ void test14() throws ConnectionError, ProcessingError {
items9.addProperty("point_amount_unit", "percent");
items9.addProperty("subject_more_than_or_equal", 1000);
items9.addProperty("subject_less_than", 5000);
+ JsonObject items10 = new JsonObject();
+ items10.addProperty("point_amount", 5);
+ items10.addProperty("point_amount_unit", "percent");
+ items10.addProperty("subject_more_than_or_equal", 1000);
+ items10.addProperty("subject_less_than", 5000);
+ JsonObject items11 = new JsonObject();
+ items11.addProperty("point_amount", 5);
+ items11.addProperty("point_amount_unit", "percent");
+ items11.addProperty("subject_more_than_or_equal", 1000);
+ items11.addProperty("subject_less_than", 5000);
+ JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
+ items12.addProperty("subject_more_than_or_equal", 1000);
+ items12.addProperty("subject_less_than", 5000);
+ JsonObject items13 = new JsonObject();
+ items13.addProperty("point_amount", 5);
+ items13.addProperty("point_amount_unit", "percent");
+ items13.addProperty("subject_more_than_or_equal", 1000);
+ items13.addProperty("subject_less_than", 5000);
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("subject_more_than_or_equal", 1000);
+ items14.addProperty("subject_less_than", 5000);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("subject_more_than_or_equal", 1000);
+ items15.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"0bf31cfc-88a3-4068-9afa-ea2fa03e4be6","afbfbe62-0ccd-4743-af0a-58b9f20c847c","5ebbc218-185d-45de-9ef1-3ebea6890c2d","6b64dc90-6012-49f9-a1c1-6ad23f31ddf8","00c07ff4-fd3e-485d-a15a-ffa16d2ad75f","3be3bc14-7df1-460f-bbfb-fe9a1b0d9ce7","f8d657dd-9a42-4235-a674-a7304a0ab4eb"})
- .blacklistedProductRules(new Object[]{items,items2})
- .productBasedPointRules(new Object[]{items3,items4,items5,items6})
- .amountBasedPointRules(new Object[]{items7,items8,items9})
+ .applicableShopIds(new String[]{"6584dba9-c275-4acb-914e-d851b80fb348","cb9085b3-3e18-4b50-8715-6a44efdd8e8d","c932cee3-a052-4b77-bb7c-1555c7a455c3","51b13f07-d4e5-448f-bd63-2f983395c410","7fe01553-e606-4642-aaa7-562dca7db54f","e3315b09-f550-4ddd-a15e-b3f2569836d9","cecec57c-1655-45e6-8118-bfdb1b3702d4"})
+ .blacklistedProductRules(new Object[]{items,items2,items3})
+ .productBasedPointRules(new Object[]{items4,items5})
+ .amountBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13,items14,items15})
.subject("money")
.setExclusive(true)
- .pointExpiresInDays(8956)
- .pointExpiresAt("2022-03-04T23:06:48.000000Z")
+ .pointExpiresInDays(5100)
+ .pointExpiresAt("2022-07-28T22:11:36.000000Z")
.status("enabled")
- .description("S4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7")
- .event("topup")
- .priority(4973)
- .endsAt("2021-02-15T13:07:43.000000Z")
- .startsAt("2021-11-28T01:04:01.000000Z")
- .name("YOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUe");
+ .description("xUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQ")
+ .event("external-transaction")
+ .priority(7643)
+ .endsAt("2026-04-08T00:06:08.000000Z")
+ .startsAt("2020-02-17T16:35:47.000000Z")
+ .name("kL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -506,56 +528,35 @@ void test15() throws ConnectionError, ProcessingError {
items2.addProperty("product_code", "4912345678904");
items2.addProperty("classification_code", "c123");
JsonObject items3 = new JsonObject();
- items3.addProperty("point_amount", 5);
- items3.addProperty("point_amount_unit", "percent");
items3.addProperty("product_code", "4912345678904");
- items3.addProperty("is_multiply_by_count", true);
- items3.addProperty("required_count", 2);
+ items3.addProperty("classification_code", "c123");
JsonObject items4 = new JsonObject();
- items4.addProperty("point_amount", 5);
- items4.addProperty("point_amount_unit", "percent");
items4.addProperty("product_code", "4912345678904");
- items4.addProperty("is_multiply_by_count", true);
- items4.addProperty("required_count", 2);
+ items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
- items5.addProperty("point_amount", 5);
- items5.addProperty("point_amount_unit", "percent");
items5.addProperty("product_code", "4912345678904");
- items5.addProperty("is_multiply_by_count", true);
- items5.addProperty("required_count", 2);
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("point_amount", 5);
- items6.addProperty("point_amount_unit", "percent");
items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("subject_more_than_or_equal", 1000);
- items10.addProperty("subject_less_than", 5000);
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
JsonObject items12 = new JsonObject();
items12.addProperty("point_amount", 5);
items12.addProperty("point_amount_unit", "percent");
@@ -577,24 +578,24 @@ void test15() throws ConnectionError, ProcessingError {
items15.addProperty("subject_more_than_or_equal", 1000);
items15.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"791e97e5-0acd-4a8c-b3e0-cae0a65b15a5","6fcd9095-8271-4b75-a419-c905a0c5ceb8","ea40e6eb-a11b-4c6e-bf2f-3cffd4bbd8e8"})
- .applicableDaysOfWeek(new Integer[]{2,0,0})
- .blacklistedProductRules(new Object[]{items,items2})
- .productBasedPointRules(new Object[]{items3,items4,items5,items6,items7,items8})
- .amountBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14,items15})
+ .applicableShopIds(new String[]{"d8acc875-6034-491f-9ebe-296d358b73b4","c412cff2-c5e8-4245-b750-321c72bfd421","3d6914eb-e394-43ff-9e5d-2c45acb745c0","4febd7fa-dd2d-47a1-99a3-b8aeafeede15","407b0f50-107e-4dfe-997e-33d648dd2fd8","e42c6e66-2f7a-4df7-b4ac-3beafb4fb624","19a45378-40c9-43b8-a908-f7287951e982"})
+ .applicableDaysOfWeek(new Integer[]{2})
+ .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10})
+ .productBasedPointRules(new Object[]{items11})
+ .amountBasedPointRules(new Object[]{items12,items13,items14,items15})
.subject("money")
.setExclusive(false)
- .pointExpiresInDays(2128)
- .pointExpiresAt("2024-10-10T07:55:01.000000Z")
- .status("enabled")
- .description("FHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEP")
- .event("topup")
- .priority(8523)
- .endsAt("2021-11-23T18:33:31.000000Z")
- .startsAt("2021-01-31T00:28:24.000000Z")
- .name("oSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHa");
+ .pointExpiresInDays(9806)
+ .pointExpiresAt("2024-09-14T04:09:41.000000Z")
+ .status("disabled")
+ .description("sLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtT")
+ .event("payment")
+ .priority(6318)
+ .endsAt("2021-07-25T05:18:32.000000Z")
+ .startsAt("2020-02-25T23:27:01.000000Z")
+ .name("P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zp");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -618,14 +619,14 @@ void test16() throws ConnectionError, ProcessingError {
items3.addProperty("from", "12:00");
items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("from", "12:00");
- items4.addProperty("to", "23:59");
+ items4.addProperty("product_code", "4912345678904");
+ items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
items7.addProperty("product_code", "4912345678904");
items7.addProperty("classification_code", "c123");
@@ -633,14 +634,23 @@ void test16() throws ConnectionError, ProcessingError {
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
+ items9.addProperty("point_amount", 5);
+ items9.addProperty("point_amount_unit", "percent");
items9.addProperty("product_code", "4912345678904");
- items9.addProperty("classification_code", "c123");
+ items9.addProperty("is_multiply_by_count", true);
+ items9.addProperty("required_count", 2);
JsonObject items10 = new JsonObject();
+ items10.addProperty("point_amount", 5);
+ items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("classification_code", "c123");
+ items10.addProperty("is_multiply_by_count", true);
+ items10.addProperty("required_count", 2);
JsonObject items11 = new JsonObject();
+ items11.addProperty("point_amount", 5);
+ items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("classification_code", "c123");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
JsonObject items12 = new JsonObject();
items12.addProperty("point_amount", 5);
items12.addProperty("point_amount_unit", "percent");
@@ -658,26 +668,51 @@ void test16() throws ConnectionError, ProcessingError {
items14.addProperty("point_amount_unit", "percent");
items14.addProperty("subject_more_than_or_equal", 1000);
items14.addProperty("subject_less_than", 5000);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("subject_more_than_or_equal", 1000);
+ items15.addProperty("subject_less_than", 5000);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"665bd1f0-f440-44bc-be41-b47706657b29","7e5efba8-b7db-48b5-9690-11c0d917747b","2ae873a8-83fc-4fe3-b00c-e8b7419c7243","01362a45-e437-431f-9ab8-5e4a8c007ea3"})
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6})
- .applicableDaysOfWeek(new Integer[]{3,0,3,5,4,3})
- .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11})
- .productBasedPointRules(new Object[]{items12,items13})
- .amountBasedPointRules(new Object[]{items14})
- .subject("money")
- .setExclusive(true)
- .pointExpiresInDays(2497)
- .pointExpiresAt("2024-01-03T05:55:35.000000Z")
+ .applicableShopIds(new String[]{"b334d0c8-a8e9-4a70-a674-6393220bd653"})
+ .applicableTimeRanges(new Object[]{items,items2,items3})
+ .applicableDaysOfWeek(new Integer[]{4,5,5,5,1,0,1,2,0})
+ .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8})
+ .productBasedPointRules(new Object[]{items9,items10,items11,items12,items13})
+ .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19})
+ .subject("all")
+ .setExclusive(false)
+ .pointExpiresInDays(4738)
+ .pointExpiresAt("2024-09-06T07:09:37.000000Z")
.status("disabled")
- .description("rDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7")
- .event("external-transaction")
- .priority(1092)
- .endsAt("2021-04-25T19:58:00.000000Z")
- .startsAt("2023-12-12T17:28:09.000000Z")
- .name("xM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1");
+ .description("7nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwq")
+ .event("topup")
+ .priority(5685)
+ .endsAt("2024-01-23T08:06:54.000000Z")
+ .startsAt("2024-09-18T08:29:44.000000Z")
+ .name("fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -716,11 +751,11 @@ void test17() throws ConnectionError, ProcessingError {
items8.addProperty("from", "12:00");
items8.addProperty("to", "23:59");
JsonObject items9 = new JsonObject();
- items9.addProperty("from", "12:00");
- items9.addProperty("to", "23:59");
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("from", "12:00");
- items10.addProperty("to", "23:59");
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
items11.addProperty("product_code", "4912345678904");
items11.addProperty("classification_code", "c123");
@@ -731,23 +766,14 @@ void test17() throws ConnectionError, ProcessingError {
items13.addProperty("product_code", "4912345678904");
items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
+ items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("is_multiply_by_count", true);
- items15.addProperty("required_count", 2);
+ items15.addProperty("classification_code", "c123");
JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
items16.addProperty("product_code", "4912345678904");
- items16.addProperty("is_multiply_by_count", true);
- items16.addProperty("required_count", 2);
+ items16.addProperty("classification_code", "c123");
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
@@ -775,33 +801,39 @@ void test17() throws ConnectionError, ProcessingError {
JsonObject items21 = new JsonObject();
items21.addProperty("point_amount", 5);
items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
JsonObject items22 = new JsonObject();
items22.addProperty("point_amount", 5);
items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("subject_more_than_or_equal", 1000);
- items22.addProperty("subject_less_than", 5000);
+ items22.addProperty("product_code", "4912345678904");
+ items22.addProperty("is_multiply_by_count", true);
+ items22.addProperty("required_count", 2);
JsonObject items23 = new JsonObject();
items23.addProperty("point_amount", 5);
items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
+ items23.addProperty("product_code", "4912345678904");
+ items23.addProperty("is_multiply_by_count", true);
+ items23.addProperty("required_count", 2);
JsonObject items24 = new JsonObject();
items24.addProperty("point_amount", 5);
items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("subject_more_than_or_equal", 1000);
- items24.addProperty("subject_less_than", 5000);
+ items24.addProperty("product_code", "4912345678904");
+ items24.addProperty("is_multiply_by_count", true);
+ items24.addProperty("required_count", 2);
JsonObject items25 = new JsonObject();
items25.addProperty("point_amount", 5);
items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("subject_more_than_or_equal", 1000);
- items25.addProperty("subject_less_than", 5000);
+ items25.addProperty("product_code", "4912345678904");
+ items25.addProperty("is_multiply_by_count", true);
+ items25.addProperty("required_count", 2);
JsonObject items26 = new JsonObject();
items26.addProperty("point_amount", 5);
items26.addProperty("point_amount_unit", "percent");
- items26.addProperty("subject_more_than_or_equal", 1000);
- items26.addProperty("subject_less_than", 5000);
+ items26.addProperty("product_code", "4912345678904");
+ items26.addProperty("is_multiply_by_count", true);
+ items26.addProperty("required_count", 2);
JsonObject items27 = new JsonObject();
items27.addProperty("point_amount", 5);
items27.addProperty("point_amount_unit", "percent");
@@ -823,26 +855,26 @@ void test17() throws ConnectionError, ProcessingError {
items30.addProperty("subject_more_than_or_equal", 1000);
items30.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"19d1647b-ebd5-4d38-8e76-2ae67165ef7e","087097ad-1654-447e-8150-50e768378ea5","4c662b03-c8da-41d1-9d25-c092b6723f1b","191baaef-c3de-41aa-87c7-3ca684b65158","88781984-43ab-444c-a5dc-4fbaf39c77db"})
- .minimumNumberOfProducts(3555)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10})
- .applicableDaysOfWeek(new Integer[]{0,4,5,5,6,4,6,2,2})
- .blacklistedProductRules(new Object[]{items11,items12,items13})
- .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20})
- .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29,items30})
- .subject("all")
- .setExclusive(false)
- .pointExpiresInDays(7051)
- .pointExpiresAt("2023-09-27T07:08:06.000000Z")
- .status("disabled")
- .description("W")
- .event("topup")
- .priority(9103)
- .endsAt("2020-12-09T22:09:02.000000Z")
- .startsAt("2021-09-03T10:28:08.000000Z")
- .name("gkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSk");
+ .applicableShopIds(new String[]{"c27ba719-2108-42ae-acd9-0479137af38b"})
+ .minimumNumberOfProducts(1319)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
+ .applicableDaysOfWeek(new Integer[]{5,3,6,5,0})
+ .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16})
+ .productBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23,items24,items25,items26})
+ .amountBasedPointRules(new Object[]{items27,items28,items29,items30})
+ .subject("money")
+ .setExclusive(true)
+ .pointExpiresInDays(1940)
+ .pointExpiresAt("2025-03-02T18:34:23.000000Z")
+ .status("enabled")
+ .description("7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZt")
+ .event("payment")
+ .priority(3451)
+ .endsAt("2025-05-04T11:58:52.000000Z")
+ .startsAt("2025-10-03T09:45:34.000000Z")
+ .name("Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -860,11 +892,11 @@ void test18() throws ConnectionError, ProcessingError {
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("from", "12:00");
- items2.addProperty("to", "23:59");
+ items2.addProperty("product_code", "4912345678904");
+ items2.addProperty("classification_code", "c123");
JsonObject items3 = new JsonObject();
- items3.addProperty("from", "12:00");
- items3.addProperty("to", "23:59");
+ items3.addProperty("product_code", "4912345678904");
+ items3.addProperty("classification_code", "c123");
JsonObject items4 = new JsonObject();
items4.addProperty("product_code", "4912345678904");
items4.addProperty("classification_code", "c123");
@@ -875,29 +907,17 @@ void test18() throws ConnectionError, ProcessingError {
items6.addProperty("product_code", "4912345678904");
items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
@@ -913,41 +933,30 @@ void test18() throws ConnectionError, ProcessingError {
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
- JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
- JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
+ items13.addProperty("subject_more_than_or_equal", 1000);
+ items13.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"e1ef4e5b-98c3-4141-aa7d-dc9806f8574a","3d677403-3855-4052-9182-f52ebfd6c230","5bc8c0f8-aa63-4404-8e3b-a6fde5a8cf99","5ff1b2b8-f70f-44ae-b6b3-d492c66406d8","7402eac7-2d7f-4eef-b8bb-0ece2b8f2baa","73e14b94-6a24-4196-9fd9-7e4238bf9b20","4bda5afa-68d1-4946-b287-2bb6b6968aae"})
- .minimumNumberOfAmount(4947)
- .minimumNumberOfProducts(9626)
- .applicableTimeRanges(new Object[]{items,items2,items3})
- .applicableDaysOfWeek(new Integer[]{5})
- .blacklistedProductRules(new Object[]{items4,items5,items6})
- .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13})
- .amountBasedPointRules(new Object[]{items14,items15})
- .subject("money")
+ .applicableShopIds(new String[]{"2c3363d7-e46f-48fa-a6a7-d15560071621","7912bd07-bac7-4bef-b193-64ef33fbb956","46b9a081-62d2-443a-81a2-b7b18ea3b850","3879bc3a-35d6-4e32-8cca-0026741621a0","ec7be044-a423-4e96-b53e-f9d35541d022","ed2e936a-80fa-4155-8276-c1e011418cd3","a61a2db2-1edf-41ca-af0a-f5a8ffb033ec"})
+ .minimumNumberOfAmount(8887)
+ .minimumNumberOfProducts(424)
+ .applicableTimeRanges(new Object[]{items})
+ .applicableDaysOfWeek(new Integer[]{1,4,3,2,2,5,5,0,1})
+ .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9,items10})
+ .productBasedPointRules(new Object[]{items11,items12})
+ .amountBasedPointRules(new Object[]{items13})
+ .subject("all")
.setExclusive(true)
- .pointExpiresInDays(8694)
- .pointExpiresAt("2022-09-02T12:19:44.000000Z")
+ .pointExpiresInDays(3483)
+ .pointExpiresAt("2020-09-05T19:14:54.000000Z")
.status("enabled")
- .description("k8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2")
+ .description("Re6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ9")
.event("payment")
- .priority(6282)
- .endsAt("2021-11-17T13:16:21.000000Z")
- .startsAt("2022-04-03T18:49:21.000000Z")
- .name("ISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNe");
+ .priority(4703)
+ .endsAt("2023-09-04T06:29:07.000000Z")
+ .startsAt("2022-06-24T15:54:29.000000Z")
+ .name("2C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -977,8 +986,8 @@ void test19() throws ConnectionError, ProcessingError {
items5.addProperty("from", "12:00");
items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
items7.addProperty("product_code", "4912345678904");
items7.addProperty("classification_code", "c123");
@@ -989,54 +998,76 @@ void test19() throws ConnectionError, ProcessingError {
items9.addProperty("product_code", "4912345678904");
items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
+ items10.addProperty("point_amount", 5);
+ items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("classification_code", "c123");
+ items10.addProperty("is_multiply_by_count", true);
+ items10.addProperty("required_count", 2);
JsonObject items11 = new JsonObject();
+ items11.addProperty("point_amount", 5);
+ items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("classification_code", "c123");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("classification_code", "c123");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
+ items13.addProperty("subject_more_than_or_equal", 1000);
+ items13.addProperty("subject_less_than", 5000);
JsonObject items14 = new JsonObject();
items14.addProperty("point_amount", 5);
items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
+ items14.addProperty("subject_more_than_or_equal", 1000);
+ items14.addProperty("subject_less_than", 5000);
JsonObject items15 = new JsonObject();
items15.addProperty("point_amount", 5);
items15.addProperty("point_amount_unit", "percent");
items15.addProperty("subject_more_than_or_equal", 1000);
items15.addProperty("subject_less_than", 5000);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"ea40d6af-7b3f-4c08-9159-f70e61ca749a","4a5ab74a-0b58-4d44-863c-e9eed14e244e"})
- .minimumNumberForCombinationPurchase(283)
- .minimumNumberOfAmount(517)
- .minimumNumberOfProducts(1645)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5})
- .applicableDaysOfWeek(new Integer[]{3,4,5,4,2})
- .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10,items11,items12})
- .productBasedPointRules(new Object[]{items13,items14})
- .amountBasedPointRules(new Object[]{items15})
- .subject("money")
- .setExclusive(false)
- .pointExpiresInDays(2474)
- .pointExpiresAt("2024-02-17T17:44:31.000000Z")
- .status("disabled")
- .description("kSjhKrHXePF1aNsQcGEPe")
- .event("external-transaction")
- .priority(2179)
- .endsAt("2021-03-25T18:53:17.000000Z")
- .startsAt("2021-03-20T20:56:39.000000Z")
- .name("2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3Tb");
+ .applicableShopIds(new String[]{"0a6d4740-e76b-4406-968c-30d47806258b","31f13282-4659-4fcc-85da-f1748eaf616a","58808f90-8ef1-460f-a02e-384186b325b6","0a758ae2-fd6c-4c95-9e43-a0ceb14e4e2d","2114fb2b-fc58-488d-8317-d7aa3039c402","d9e90e2c-1178-4689-8c42-5624c347c9b2","5bd55ca9-bc33-4c4e-8b02-3e86c59f9b44","bbba38ad-d2fc-4e19-b625-35170c206705"})
+ .minimumNumberForCombinationPurchase(6073)
+ .minimumNumberOfAmount(7932)
+ .minimumNumberOfProducts(9283)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6})
+ .applicableDaysOfWeek(new Integer[]{0,3,4,6,2,3,1,5,2,5})
+ .blacklistedProductRules(new Object[]{items7,items8,items9})
+ .productBasedPointRules(new Object[]{items10,items11,items12})
+ .amountBasedPointRules(new Object[]{items13,items14,items15,items16,items17,items18})
+ .subject("all")
+ .setExclusive(true)
+ .pointExpiresInDays(5100)
+ .pointExpiresAt("2021-08-21T05:42:54.000000Z")
+ .status("enabled")
+ .description("611LhXRF1WjDXemYssWVQAa")
+ .event("topup")
+ .priority(2011)
+ .endsAt("2025-09-08T20:50:08.000000Z")
+ .startsAt("2020-06-16T23:34:44.000000Z")
+ .name("9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1050,6 +1081,103 @@ void test19() throws ConnectionError, ProcessingError {
}
@Test
void test20() throws ConnectionError, ProcessingError {
+ JsonObject items = new JsonObject();
+ items.addProperty("from", "12:00");
+ items.addProperty("to", "23:59");
+ JsonObject items2 = new JsonObject();
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
+ JsonObject items3 = new JsonObject();
+ items3.addProperty("product_code", "4912345678904");
+ items3.addProperty("classification_code", "c123");
+ JsonObject items4 = new JsonObject();
+ items4.addProperty("point_amount", 5);
+ items4.addProperty("point_amount_unit", "percent");
+ items4.addProperty("product_code", "4912345678904");
+ items4.addProperty("is_multiply_by_count", true);
+ items4.addProperty("required_count", 2);
+ JsonObject items5 = new JsonObject();
+ items5.addProperty("point_amount", 5);
+ items5.addProperty("point_amount_unit", "percent");
+ items5.addProperty("product_code", "4912345678904");
+ items5.addProperty("is_multiply_by_count", true);
+ items5.addProperty("required_count", 2);
+ JsonObject items6 = new JsonObject();
+ items6.addProperty("point_amount", 5);
+ items6.addProperty("point_amount_unit", "percent");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("is_multiply_by_count", true);
+ items6.addProperty("required_count", 2);
+ JsonObject items7 = new JsonObject();
+ items7.addProperty("point_amount", 5);
+ items7.addProperty("point_amount_unit", "percent");
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("is_multiply_by_count", true);
+ items7.addProperty("required_count", 2);
+ JsonObject items8 = new JsonObject();
+ items8.addProperty("point_amount", 5);
+ items8.addProperty("point_amount_unit", "percent");
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("is_multiply_by_count", true);
+ items8.addProperty("required_count", 2);
+ JsonObject items9 = new JsonObject();
+ items9.addProperty("point_amount", 5);
+ items9.addProperty("point_amount_unit", "percent");
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("is_multiply_by_count", true);
+ items9.addProperty("required_count", 2);
+ JsonObject items10 = new JsonObject();
+ items10.addProperty("point_amount", 5);
+ items10.addProperty("point_amount_unit", "percent");
+ items10.addProperty("subject_more_than_or_equal", 1000);
+ items10.addProperty("subject_less_than", 5000);
+ JsonObject items11 = new JsonObject();
+ items11.addProperty("point_amount", 5);
+ items11.addProperty("point_amount_unit", "percent");
+ items11.addProperty("subject_more_than_or_equal", 1000);
+ items11.addProperty("subject_less_than", 5000);
+ JsonObject items12 = new JsonObject();
+ items12.addProperty("point_amount", 5);
+ items12.addProperty("point_amount_unit", "percent");
+ items12.addProperty("subject_more_than_or_equal", 1000);
+ items12.addProperty("subject_less_than", 5000);
+ Request request = new UpdateCampaign(
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
+ )
+ .applicableShopIds(new String[]{"fe85a073-55f5-4f1e-9e43-046cc6ae3694","74dbb40c-5ce1-4404-8bf8-b4b376f70cde","a1da8ac1-43e6-42fa-9b04-af56654e3411","a4a3ba61-1914-45b9-ac7f-0f623260c5ef","5b28ab51-0424-46f3-be4e-199923f5610b","3cd4b080-589e-4892-8442-882ccb5a5ec8","2aaef131-5ffe-4cf5-baa6-7d5b422913cb","fd7226cd-ee15-4502-b1dc-4f2281ff275d","bedcd4ec-595c-4945-a346-682c12435239"})
+ .existInEachProductGroups(false)
+ .minimumNumberForCombinationPurchase(4884)
+ .minimumNumberOfAmount(9781)
+ .minimumNumberOfProducts(8957)
+ .applicableTimeRanges(new Object[]{items,items2})
+ .applicableDaysOfWeek(new Integer[]{4,1,5,0,6,6,3,0,3})
+ .blacklistedProductRules(new Object[]{items3})
+ .productBasedPointRules(new Object[]{items4,items5,items6,items7,items8,items9})
+ .amountBasedPointRules(new Object[]{items10,items11,items12})
+ .subject("all")
+ .setExclusive(true)
+ .pointExpiresInDays(2099)
+ .pointExpiresAt("2022-08-22T11:32:04.000000Z")
+ .status("disabled")
+ .description("ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BX")
+ .event("payment")
+ .priority(5674)
+ .endsAt("2022-12-17T21:38:55.000000Z")
+ .startsAt("2023-07-03T03:04:43.000000Z")
+ .name("l0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8C");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test21() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
@@ -1066,8 +1194,8 @@ void test20() throws ConnectionError, ProcessingError {
items5.addProperty("from", "12:00");
items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
+ items6.addProperty("product_code", "4912345678904");
+ items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
items7.addProperty("product_code", "4912345678904");
items7.addProperty("classification_code", "c123");
@@ -1081,11 +1209,8 @@ void test20() throws ConnectionError, ProcessingError {
items10.addProperty("product_code", "4912345678904");
items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
items12.addProperty("point_amount", 5);
items12.addProperty("point_amount_unit", "percent");
@@ -1119,13 +1244,15 @@ void test20() throws ConnectionError, ProcessingError {
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
@@ -1152,29 +1279,30 @@ void test20() throws ConnectionError, ProcessingError {
items23.addProperty("subject_more_than_or_equal", 1000);
items23.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"bd452a4a-a4dc-4f4e-89ba-cf32576de231","a22149e1-feb8-47e8-915a-267408c21dfc","977b3b6d-e535-492b-8273-8f5fd2ef37ef","2ecfa17d-cbb8-404d-9aa4-ec2cae65e87a"})
- .existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(7169)
- .minimumNumberOfAmount(8480)
- .minimumNumberOfProducts(3386)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6})
- .applicableDaysOfWeek(new Integer[]{4,3,6,5,0,4,1,6})
- .blacklistedProductRules(new Object[]{items7,items8,items9,items10})
- .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16})
- .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21,items22,items23})
- .subject("all")
+ .applicableShopIds(new String[]{"6aca3b4e-2822-420e-82d4-e2fde824472d","5e1fbff1-0396-404c-835a-dd20fd2cd2b9","6429ad39-fa41-4827-aad6-2162e51ded4b","93931d29-63b3-47fc-ac33-315cea8d64b1","f2a8644e-761e-4b65-81c9-cda5e399111a"})
+ .maxPointAmount(2244)
+ .existInEachProductGroups(false)
+ .minimumNumberForCombinationPurchase(4139)
+ .minimumNumberOfAmount(5952)
+ .minimumNumberOfProducts(5597)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5})
+ .applicableDaysOfWeek(new Integer[]{3,5})
+ .blacklistedProductRules(new Object[]{items6,items7,items8,items9,items10,items11})
+ .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18})
+ .amountBasedPointRules(new Object[]{items19,items20,items21,items22,items23})
+ .subject("money")
.setExclusive(false)
- .pointExpiresInDays(933)
- .pointExpiresAt("2021-10-23T00:17:29.000000Z")
- .status("enabled")
- .description("hdalQqRPyTvG2tPeRbQcNODGa3Iheb")
- .event("payment")
- .priority(6052)
- .endsAt("2020-05-02T03:16:50.000000Z")
- .startsAt("2023-01-31T02:06:10.000000Z")
- .name("xi8kuGoSk8mm");
+ .pointExpiresInDays(9803)
+ .pointExpiresAt("2026-06-05T20:06:26.000000Z")
+ .status("disabled")
+ .description("H5I2jNmYRtpCMs9TezTj3A085y5hWQ3gdeDOWFExGORRYNLJd")
+ .event("topup")
+ .priority(90)
+ .endsAt("2021-03-03T13:20:54.000000Z")
+ .startsAt("2022-08-24T01:54:08.000000Z")
+ .name("3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggD");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1187,168 +1315,110 @@ void test20() throws ConnectionError, ProcessingError {
}
}
@Test
- void test21() throws ConnectionError, ProcessingError {
+ void test22() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
+ items4.addProperty("from", "12:00");
+ items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("point_amount", 5);
- items6.addProperty("point_amount_unit", "percent");
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("subject_more_than_or_equal", 1000);
- items8.addProperty("subject_less_than", 5000);
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
- JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("subject_more_than_or_equal", 1000);
- items10.addProperty("subject_less_than", 5000);
- JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
- Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
- )
- .applicableShopIds(new String[]{"ad657cd0-bc17-4b81-be41-31c7e1574a3a","380985b5-1e54-455b-bbe1-5f9811272b0d","201963cf-54d3-4ea9-834a-cc24eafd9672","3cad24c6-4cf7-4c0f-9554-3a361170f0c9"})
- .maxPointAmount(9678)
- .existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(2514)
- .minimumNumberOfAmount(3114)
- .minimumNumberOfProducts(8416)
- .applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{4,4})
- .blacklistedProductRules(new Object[]{items2,items3,items4,items5})
- .productBasedPointRules(new Object[]{items6,items7})
- .amountBasedPointRules(new Object[]{items8,items9,items10,items11})
- .subject("money")
- .setExclusive(false)
- .pointExpiresInDays(1367)
- .pointExpiresAt("2023-06-12T23:49:59.000000Z")
- .status("disabled")
- .description("vsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DM")
- .event("external-transaction")
- .priority(4015)
- .endsAt("2020-07-01T14:25:53.000000Z")
- .startsAt("2023-05-21T06:48:20.000000Z")
- .name("Wi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q9");
- try {
- PartnerAPITest.getClient().send(request);
- } catch (PartnerRequestError e) {
- if (e.getType().equals("invalid_parameters")) {
- System.out.println(e.getType());
- System.out.println(e.getMessage());
- System.out.println(e.getRawJson());
- }
- assertNotEquals("invalid_parameters", e.getType());
- }
- }
- @Test
- void test22() throws ConnectionError, ProcessingError {
- JsonObject items = new JsonObject();
- items.addProperty("from", "12:00");
- items.addProperty("to", "23:59");
- JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
- JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
- JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
- JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
- JsonObject items6 = new JsonObject();
- items6.addProperty("point_amount", 5);
- items6.addProperty("point_amount_unit", "percent");
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
- JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
- JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
- JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("classification_code", "c123");
+ JsonObject items12 = new JsonObject();
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("classification_code", "c123");
+ JsonObject items13 = new JsonObject();
+ items13.addProperty("point_amount", 5);
+ items13.addProperty("point_amount_unit", "percent");
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("subject_more_than_or_equal", 1000);
+ items14.addProperty("subject_less_than", 5000);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("subject_more_than_or_equal", 1000);
+ items15.addProperty("subject_less_than", 5000);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"42acff7f-c5af-4ed0-9857-8370aca60182","dc69a240-d8cc-49a1-9ebe-89bfab4db297","5066581b-f502-459e-ad0a-912d01504a0d"})
- .maxTotalPointAmount(839)
- .maxPointAmount(1358)
+ .applicableShopIds(new String[]{"4dc02195-8aa5-46a5-8fe6-87c61484318d","02521795-5f91-47f6-8f4a-03894133556b","4249c278-bc68-47ff-965c-d2a601484eaf","c43b8f25-949b-4a63-b849-72508ab04c8e","64a5ae9a-25e0-4b76-af1c-3dab93cdad7c","6d7e2ef4-e99d-41d1-8496-25b408d44487","4f1c27bc-6851-4c78-bca1-b44e472755ed"})
+ .maxTotalPointAmount(6839)
+ .maxPointAmount(9243)
.existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(8401)
- .minimumNumberOfAmount(9108)
- .minimumNumberOfProducts(7700)
- .applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{6,1,4})
- .blacklistedProductRules(new Object[]{items2,items3,items4,items5})
- .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10})
- .amountBasedPointRules(new Object[]{items11})
- .subject("all")
- .setExclusive(true)
- .pointExpiresInDays(2656)
- .pointExpiresAt("2020-03-09T16:28:30.000000Z")
+ .minimumNumberForCombinationPurchase(2582)
+ .minimumNumberOfAmount(1992)
+ .minimumNumberOfProducts(2294)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
+ .applicableDaysOfWeek(new Integer[]{3,2,6,2,4,5,6,3,5,3})
+ .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12})
+ .productBasedPointRules(new Object[]{items13})
+ .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20})
+ .subject("money")
+ .setExclusive(false)
+ .pointExpiresInDays(4943)
+ .pointExpiresAt("2021-07-25T03:47:50.000000Z")
.status("disabled")
- .description("rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQo")
+ .description("vQpElqxJKgN")
.event("payment")
- .priority(1355)
- .endsAt("2022-03-07T14:25:07.000000Z")
- .startsAt("2021-11-08T00:38:06.000000Z")
- .name("Wzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnN");
+ .priority(5694)
+ .endsAt("2021-09-12T12:40:47.000000Z")
+ .startsAt("2022-12-11T22:48:45.000000Z")
+ .name("eXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJq");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1375,17 +1445,17 @@ void test23() throws ConnectionError, ProcessingError {
items3.addProperty("from", "12:00");
items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
+ items4.addProperty("from", "12:00");
+ items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
@@ -1393,93 +1463,156 @@ void test23() throws ConnectionError, ProcessingError {
items9.addProperty("product_code", "4912345678904");
items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("is_multiply_by_count", true);
- items12.addProperty("required_count", 2);
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
+ items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
+ items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
items15.addProperty("product_code", "4912345678904");
- items15.addProperty("is_multiply_by_count", true);
- items15.addProperty("required_count", 2);
+ items15.addProperty("classification_code", "c123");
JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("classification_code", "c123");
JsonObject items17 = new JsonObject();
- items17.addProperty("point_amount", 5);
- items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("classification_code", "c123");
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("subject_more_than_or_equal", 1000);
- items20.addProperty("subject_less_than", 5000);
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("product_code", "4912345678904");
+ items22.addProperty("is_multiply_by_count", true);
+ items22.addProperty("required_count", 2);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("product_code", "4912345678904");
+ items23.addProperty("is_multiply_by_count", true);
+ items23.addProperty("required_count", 2);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("product_code", "4912345678904");
+ items24.addProperty("is_multiply_by_count", true);
+ items24.addProperty("required_count", 2);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("product_code", "4912345678904");
+ items25.addProperty("is_multiply_by_count", true);
+ items25.addProperty("required_count", 2);
+ JsonObject items26 = new JsonObject();
+ items26.addProperty("point_amount", 5);
+ items26.addProperty("point_amount_unit", "percent");
+ items26.addProperty("product_code", "4912345678904");
+ items26.addProperty("is_multiply_by_count", true);
+ items26.addProperty("required_count", 2);
+ JsonObject items27 = new JsonObject();
+ items27.addProperty("point_amount", 5);
+ items27.addProperty("point_amount_unit", "percent");
+ items27.addProperty("product_code", "4912345678904");
+ items27.addProperty("is_multiply_by_count", true);
+ items27.addProperty("required_count", 2);
+ JsonObject items28 = new JsonObject();
+ items28.addProperty("point_amount", 5);
+ items28.addProperty("point_amount_unit", "percent");
+ items28.addProperty("subject_more_than_or_equal", 1000);
+ items28.addProperty("subject_less_than", 5000);
+ JsonObject items29 = new JsonObject();
+ items29.addProperty("point_amount", 5);
+ items29.addProperty("point_amount_unit", "percent");
+ items29.addProperty("subject_more_than_or_equal", 1000);
+ items29.addProperty("subject_less_than", 5000);
+ JsonObject items30 = new JsonObject();
+ items30.addProperty("point_amount", 5);
+ items30.addProperty("point_amount_unit", "percent");
+ items30.addProperty("subject_more_than_or_equal", 1000);
+ items30.addProperty("subject_less_than", 5000);
+ JsonObject items31 = new JsonObject();
+ items31.addProperty("point_amount", 5);
+ items31.addProperty("point_amount_unit", "percent");
+ items31.addProperty("subject_more_than_or_equal", 1000);
+ items31.addProperty("subject_less_than", 5000);
+ JsonObject items32 = new JsonObject();
+ items32.addProperty("point_amount", 5);
+ items32.addProperty("point_amount_unit", "percent");
+ items32.addProperty("subject_more_than_or_equal", 1000);
+ items32.addProperty("subject_less_than", 5000);
+ JsonObject items33 = new JsonObject();
+ items33.addProperty("point_amount", 5);
+ items33.addProperty("point_amount_unit", "percent");
+ items33.addProperty("subject_more_than_or_equal", 1000);
+ items33.addProperty("subject_less_than", 5000);
+ JsonObject items34 = new JsonObject();
+ items34.addProperty("point_amount", 5);
+ items34.addProperty("point_amount_unit", "percent");
+ items34.addProperty("subject_more_than_or_equal", 1000);
+ items34.addProperty("subject_less_than", 5000);
+ JsonObject items35 = new JsonObject();
+ items35.addProperty("point_amount", 5);
+ items35.addProperty("point_amount_unit", "percent");
+ items35.addProperty("subject_more_than_or_equal", 1000);
+ items35.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"548de50d-4dd0-481b-b954-6a98ef7f3761","414931f3-20a7-4cf1-b149-cc2caa3f61c6","e94e7191-01e5-4e78-8af8-9919c1e50648","aa68976f-2da4-46cf-bd73-a7147a409559","5ab17d17-8533-4ad8-932f-a7ed13f41ce6","8b3fff53-088f-412b-834d-e0cddb9a8ddb","33cdbec0-a8c9-4d07-b0dc-35059caf39e8","6a024150-328a-49fb-bc49-f9cf0c989163"})
+ .applicableShopIds(new String[]{"67737b29-b276-4490-b5dd-0854952d290e","e8f9dc89-e083-4c03-abc7-61342f6f8baf","eca46d5d-f971-4921-ad93-ef8876dbd528","92f3571e-4394-4f41-88be-eeda52f10c03","4835c164-1dae-469f-b36f-8b1e3cc45362","fd62c1ab-b53c-4ea9-a233-5223c7708931","e338b8d2-f595-46a2-af17-92c7d371b12a","79c73317-5e1e-46c6-9563-a22c04cb6b0d","de7ed209-61d4-4b15-aa43-59fd71c798c8"})
.applicableAccountMetadata(applicable_account_metadata)
- .maxTotalPointAmount(1905)
- .maxPointAmount(6824)
+ .maxTotalPointAmount(74)
+ .maxPointAmount(9113)
.existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(1909)
- .minimumNumberOfAmount(1160)
- .minimumNumberOfProducts(8172)
- .applicableTimeRanges(new Object[]{items,items2,items3})
- .applicableDaysOfWeek(new Integer[]{5,3,6,6,6,0,6,5,1})
- .blacklistedProductRules(new Object[]{items4,items5,items6,items7,items8,items9})
- .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15})
- .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20})
+ .minimumNumberForCombinationPurchase(902)
+ .minimumNumberOfAmount(5373)
+ .minimumNumberOfProducts(1900)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
+ .applicableDaysOfWeek(new Integer[]{5,5,3,3,3,4})
+ .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17})
+ .productBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25,items26,items27})
+ .amountBasedPointRules(new Object[]{items28,items29,items30,items31,items32,items33,items34,items35})
.subject("money")
.setExclusive(true)
- .pointExpiresInDays(3296)
- .pointExpiresAt("2020-09-13T21:12:42.000000Z")
+ .pointExpiresInDays(231)
+ .pointExpiresAt("2023-10-28T10:53:23.000000Z")
.status("disabled")
- .description("epcLNjePvmbsJ6aAodX3l")
- .event("external-transaction")
- .priority(2387)
- .endsAt("2023-10-18T12:31:22.000000Z")
- .startsAt("2020-10-24T22:23:54.000000Z")
- .name("TfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiB");
+ .description("7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNn")
+ .event("topup")
+ .priority(1368)
+ .endsAt("2024-04-03T13:30:43.000000Z")
+ .startsAt("2025-12-24T22:43:28.000000Z")
+ .name("5R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPF");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1506,11 +1639,11 @@ void test24() throws ConnectionError, ProcessingError {
items2.addProperty("from", "12:00");
items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("from", "12:00");
- items3.addProperty("to", "23:59");
+ items3.addProperty("product_code", "4912345678904");
+ items3.addProperty("classification_code", "c123");
JsonObject items4 = new JsonObject();
- items4.addProperty("from", "12:00");
- items4.addProperty("to", "23:59");
+ items4.addProperty("product_code", "4912345678904");
+ items4.addProperty("classification_code", "c123");
JsonObject items5 = new JsonObject();
items5.addProperty("product_code", "4912345678904");
items5.addProperty("classification_code", "c123");
@@ -1518,29 +1651,17 @@ void test24() throws ConnectionError, ProcessingError {
items6.addProperty("product_code", "4912345678904");
items6.addProperty("classification_code", "c123");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("classification_code", "c123");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
+ items8.addProperty("classification_code", "c123");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
@@ -1574,56 +1695,91 @@ void test24() throws ConnectionError, ProcessingError {
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("subject_more_than_or_equal", 1000);
- items20.addProperty("subject_less_than", 5000);
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("subject_more_than_or_equal", 1000);
+ items23.addProperty("subject_less_than", 5000);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
+ JsonObject items26 = new JsonObject();
+ items26.addProperty("point_amount", 5);
+ items26.addProperty("point_amount_unit", "percent");
+ items26.addProperty("subject_more_than_or_equal", 1000);
+ items26.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"fe324792-ddfe-466e-95fd-8c2c05c73622","a60dbc42-604c-469d-817d-e056cf36cb2f","5a0d7700-11b9-458f-b725-fdbe5209707e","59d32859-b0e6-40f4-8b29-cf54fb00a9be","d8200119-694d-43f0-88e8-78936ced7ea8","62f9d31d-4857-43de-8dd5-fbcb5a541abc","54ca7a33-7d99-411d-bcc0-53dc97515b91","3a58a4a3-0f0f-4b5e-9bae-03d33b971019","5b5e1a3e-c79a-490a-93c3-8e0cc560226d"})
+ .applicableShopIds(new String[]{"eca47459-f663-472a-bed0-ce7076fe44ef"})
.applicableTransactionMetadata(applicable_transaction_metadata)
.applicableAccountMetadata(applicable_account_metadata)
- .maxTotalPointAmount(2112)
- .maxPointAmount(7523)
- .existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(5593)
- .minimumNumberOfAmount(2306)
- .minimumNumberOfProducts(2160)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4})
- .applicableDaysOfWeek(new Integer[]{4,2,3})
- .blacklistedProductRules(new Object[]{items5,items6})
- .productBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14,items15})
- .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20})
- .subject("money")
- .setExclusive(false)
- .pointExpiresInDays(5043)
- .pointExpiresAt("2024-04-08T07:42:21.000000Z")
+ .maxTotalPointAmount(9861)
+ .maxPointAmount(2758)
+ .existInEachProductGroups(true)
+ .minimumNumberForCombinationPurchase(626)
+ .minimumNumberOfAmount(1199)
+ .minimumNumberOfProducts(1627)
+ .applicableTimeRanges(new Object[]{items,items2})
+ .applicableDaysOfWeek(new Integer[]{1})
+ .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10})
+ .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19,items20})
+ .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26})
+ .subject("all")
+ .setExclusive(true)
+ .pointExpiresInDays(6552)
+ .pointExpiresAt("2025-06-12T09:50:21.000000Z")
.status("enabled")
- .description("HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJ")
+ .description("W3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6")
.event("payment")
- .priority(4953)
- .endsAt("2022-10-28T17:56:15.000000Z")
- .startsAt("2022-09-07T01:00:52.000000Z")
- .name("zM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gU");
+ .priority(2270)
+ .endsAt("2021-10-20T02:35:59.000000Z")
+ .startsAt("2026-03-15T08:25:29.000000Z")
+ .name("JkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIl");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1662,8 +1818,8 @@ void test25() throws ConnectionError, ProcessingError {
items6.addProperty("from", "12:00");
items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
@@ -1683,11 +1839,8 @@ void test25() throws ConnectionError, ProcessingError {
items13.addProperty("product_code", "4912345678904");
items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
+ items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
items15.addProperty("point_amount", 5);
items15.addProperty("point_amount_unit", "percent");
@@ -1727,23 +1880,27 @@ void test25() throws ConnectionError, ProcessingError {
JsonObject items21 = new JsonObject();
items21.addProperty("point_amount", 5);
items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
JsonObject items22 = new JsonObject();
items22.addProperty("point_amount", 5);
items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("subject_more_than_or_equal", 1000);
- items22.addProperty("subject_less_than", 5000);
+ items22.addProperty("product_code", "4912345678904");
+ items22.addProperty("is_multiply_by_count", true);
+ items22.addProperty("required_count", 2);
JsonObject items23 = new JsonObject();
items23.addProperty("point_amount", 5);
items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
+ items23.addProperty("product_code", "4912345678904");
+ items23.addProperty("is_multiply_by_count", true);
+ items23.addProperty("required_count", 2);
JsonObject items24 = new JsonObject();
items24.addProperty("point_amount", 5);
items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("subject_more_than_or_equal", 1000);
- items24.addProperty("subject_less_than", 5000);
+ items24.addProperty("product_code", "4912345678904");
+ items24.addProperty("is_multiply_by_count", true);
+ items24.addProperty("required_count", 2);
JsonObject items25 = new JsonObject();
items25.addProperty("point_amount", 5);
items25.addProperty("point_amount_unit", "percent");
@@ -1769,35 +1926,40 @@ void test25() throws ConnectionError, ProcessingError {
items29.addProperty("point_amount_unit", "percent");
items29.addProperty("subject_more_than_or_equal", 1000);
items29.addProperty("subject_less_than", 5000);
+ JsonObject items30 = new JsonObject();
+ items30.addProperty("point_amount", 5);
+ items30.addProperty("point_amount_unit", "percent");
+ items30.addProperty("subject_more_than_or_equal", 1000);
+ items30.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .applicableShopIds(new String[]{"515ecff8-201a-4a38-af3f-66c8f04c1cd5","29cad8a1-88df-4c22-83f7-23b9d74b818b","3067ab19-5bc9-43ae-841d-99d55cbf7e24","eee0f438-f3e0-412d-9f90-a4a8203c5b76","e395a2b5-2f81-4c9e-b489-dfe537f3b684","5d15713c-d895-4862-abb7-f7b2fcbdcee2","d0e1e5ad-2b16-415b-aef1-bc35b4203ed6","470b7b7f-bd31-4523-bfd0-aa3d1c8ddfae","6dd96f59-7c75-4a20-b913-1a40ca9b00ad"})
- .budgetCapsAmount(1384174614)
+ .applicableShopIds(new String[]{"4e91d0b0-e8f5-40a2-a775-90ad5b1fee97","348a1fba-450d-4dc4-bf6e-3a7a36895b69","d0ce02f2-1094-4cde-a18e-d1af3fcfe940","3902ae80-224e-49d9-981d-8d9fe0dc844d","e5f48237-fa56-4c9a-98b5-58d96d6ce187","59e84585-2bcc-43a4-a73a-ec2e66dc2d5f","f3fd8b6e-b22e-4b02-a1ec-4c8e12c81ac4","17cc4e38-ffc8-4340-8fcf-1643e4f69e44","4e51586c-490a-42d0-b447-5ddaef0079b7","10886b6a-b3e2-41a5-ad0c-bad82e268c4d"})
+ .budgetCapsAmount(2067724752)
.applicableTransactionMetadata(applicable_transaction_metadata)
.applicableAccountMetadata(applicable_account_metadata)
- .maxTotalPointAmount(8658)
- .maxPointAmount(8307)
- .existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(2756)
- .minimumNumberOfAmount(6332)
- .minimumNumberOfProducts(4190)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6})
- .applicableDaysOfWeek(new Integer[]{2})
- .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12,items13})
- .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20})
- .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29})
+ .maxTotalPointAmount(4762)
+ .maxPointAmount(1846)
+ .existInEachProductGroups(true)
+ .minimumNumberForCombinationPurchase(444)
+ .minimumNumberOfAmount(1687)
+ .minimumNumberOfProducts(392)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
+ .applicableDaysOfWeek(new Integer[]{6,0,0,4,2,3,1,3})
+ .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14})
+ .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19,items20,items21,items22,items23,items24})
+ .amountBasedPointRules(new Object[]{items25,items26,items27,items28,items29,items30})
.subject("all")
- .setExclusive(false)
- .pointExpiresInDays(4908)
- .pointExpiresAt("2022-10-17T13:31:06.000000Z")
- .status("enabled")
- .description("YeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6")
- .event("topup")
- .priority(4147)
- .endsAt("2020-02-27T14:07:49.000000Z")
- .startsAt("2024-08-22T02:39:45.000000Z")
- .name("adi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQ");
+ .setExclusive(true)
+ .pointExpiresInDays(1126)
+ .pointExpiresAt("2024-03-28T23:30:18.000000Z")
+ .status("disabled")
+ .description("hTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfU")
+ .event("external-transaction")
+ .priority(2884)
+ .endsAt("2021-02-08T01:59:33.000000Z")
+ .startsAt("2022-08-06T20:19:02.000000Z")
+ .name("hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsT");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1812,9 +1974,9 @@ void test25() throws ConnectionError, ProcessingError {
@Test
void test26() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"33c1f10d-7f75-4dd3-885f-3ce0dd9e03d8","08e97924-828f-43db-a054-d60169b5be6d","5c36650e-200b-4f45-9304-9e52ab9800fd"});
+ .blacklistedShopIds(new String[]{"057fa83d-cff5-4c2c-9c18-4ce7cb2eb2c4","7e6ff4bf-441c-4f28-9dbe-1f73e8cf356d","2c6a6952-c674-49a8-8710-a1fe88852203","7915473f-93ab-4edd-aea2-0746800d76bd","9fc4ea25-b51f-4ab7-a9cc-1a342f159c6b"});
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1829,10 +1991,10 @@ void test26() throws ConnectionError, ProcessingError {
@Test
void test27() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"27bedd27-eac5-4d31-9d59-071be2186919","cee2ccd6-0db9-44bd-a5e2-343ffaf5856e","2a08cbd5-e4fb-4307-adc2-c3dfedacf0f0","54fdafc0-effa-4044-b7e4-ba398d86a09d","1db3d69d-0544-4f73-87ee-0e1eeecf054f","eb8785be-dff6-4200-9074-7c5a7194334f"})
- .name("Q7wRQgMzlEQYhb78oA0LE9nGzsoBI");
+ .blacklistedShopIds(new String[]{"ba1619ac-dd06-40c6-8ec3-e35740d64dfd","89143c15-9f19-4d8f-b262-4c9a07297b5b"})
+ .name("Fqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdq");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1847,11 +2009,11 @@ void test27() throws ConnectionError, ProcessingError {
@Test
void test28() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"181b2253-cf2e-4bbe-835a-347dcc32fa82","e7c3d7c5-35ee-4726-9090-186312946d43"})
- .startsAt("2021-10-14T04:55:45.000000Z")
- .name("jIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2");
+ .blacklistedShopIds(new String[]{"22dbfff5-0d54-4bf8-8679-25c2f1a7a230","316c421f-557e-4786-949b-555f94094087"})
+ .startsAt("2021-10-21T23:34:34.000000Z")
+ .name("A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1866,12 +2028,12 @@ void test28() throws ConnectionError, ProcessingError {
@Test
void test29() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"e8a11a2f-1048-45bc-baa1-4406603cd51c","15f675e2-e918-428a-8eb0-750f38ecf587","03b5052a-7c8a-490e-828c-4af6479316b5","4c092bb1-a14a-4711-8ee5-f5bcd23e2278","df8df297-79f8-4632-b0c2-77dbc207d885","eae38c1e-ceec-452f-a328-2a23e0032aff","0153f85c-f810-426f-a264-106cdbb0282f","f623f5d4-31d9-4d9c-859f-f5365b4c03a8","eb26b65c-e06e-4eb3-8ce2-bde06152c77b","1a218acb-25b6-402a-9675-603451d0091f"})
- .endsAt("2023-04-27T05:38:53.000000Z")
- .startsAt("2022-12-12T16:20:04.000000Z")
- .name("hE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYY");
+ .blacklistedShopIds(new String[]{"82d504fb-d18c-4c8b-b392-f5c4267a8203","02cfad0a-179e-4766-8d2a-8374c4db075a","f8644ce3-b5dc-4b8c-a1be-f18eba09fb10","829b4faf-d5e4-4879-bb67-301d25be4e90","9391df05-f6ff-45a2-ac99-656d513e3a4e","c2529fa7-92d8-41be-a2a0-d8a365d08445","917d792f-36f0-4870-bb95-4b452b863ddd","96afa498-c680-4b74-8191-fef782f38e2e"})
+ .endsAt("2021-12-23T03:58:29.000000Z")
+ .startsAt("2023-09-16T13:20:37.000000Z")
+ .name("qu8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1886,13 +2048,13 @@ void test29() throws ConnectionError, ProcessingError {
@Test
void test30() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"6a20dea8-0563-44e7-90d0-6f898775279a","85b93efc-54ae-4584-8b20-59b3a6b5d8ae","9aa204c4-ada3-41a7-a386-92682567dc82","c0bedbfc-d38b-43f1-9da9-ede9cc68e11c","1b6c7a6b-fe8b-4935-8336-dd20c6a706b2","f0fb8bee-5551-41a3-9a1c-394a37da290d","d7654ca5-47c0-4137-a6c0-523d03fc655f"})
- .priority(6189)
- .endsAt("2024-08-05T02:11:22.000000Z")
- .startsAt("2020-12-12T23:58:18.000000Z")
- .name("N9nEMDfH9ZULXMKOjFu2fGiSho");
+ .blacklistedShopIds(new String[]{"f250f491-bb2b-49d0-9cd7-12d42d44da34"})
+ .priority(464)
+ .endsAt("2025-12-16T08:19:35.000000Z")
+ .startsAt("2025-03-03T08:26:12.000000Z")
+ .name("JKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2A");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1907,14 +2069,14 @@ void test30() throws ConnectionError, ProcessingError {
@Test
void test31() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"12f000d3-cfe6-437b-9bec-5c1d30c1076e","eec5345b-06d2-4dd0-9adc-1c0ee8384116","fbd063cb-0df6-46bc-9448-001c1bd72b80","eb48cd23-01b4-4ed1-af62-a61857292cb4","b8b9a108-69dd-4ac8-8e3c-cc4bea9e099e","97137b91-7708-4631-aa1b-7589945aad44","fa147445-93b5-4efa-9ea0-d27070d7115b","99a08340-d0c8-48e9-b066-b3748b646393","220bd653-1a42-469d-bbad-3c284bc1af0c","925836f5-cc75-47d5-b960-7061f3a9e9ea"})
- .event("topup")
- .priority(9851)
- .endsAt("2021-04-29T23:37:40.000000Z")
- .startsAt("2021-11-27T22:03:32.000000Z")
- .name("G1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJA");
+ .blacklistedShopIds(new String[]{"fbb3f200-227e-4838-9605-4a178d79a710","c226f45a-2be3-4d79-873d-142774b94684","d094a068-9933-45c2-9e9a-fbe3d7e8e6fa"})
+ .event("payment")
+ .priority(2513)
+ .endsAt("2022-02-07T21:44:17.000000Z")
+ .startsAt("2025-08-24T01:18:00.000000Z")
+ .name("AT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjg");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1929,15 +2091,15 @@ void test31() throws ConnectionError, ProcessingError {
@Test
void test32() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"af463a41-c3e5-43a5-9bc8-ed65ba62777f","e8966403-d3d5-4279-a711-44b7e449b1b8","64c9a465-b6c3-4bde-b071-007788120abf","1f103666-1a62-4256-a123-bf89e980c6c7","b5a11019-0a26-4d60-89ba-1b8460c38838"})
- .description("MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4")
- .event("topup")
- .priority(3174)
- .endsAt("2023-12-19T09:00:52.000000Z")
- .startsAt("2024-07-06T05:11:02.000000Z")
- .name("0jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232");
+ .blacklistedShopIds(new String[]{"72decfff-b5f9-4ac3-bbed-bae0717d0c33"})
+ .description("l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJ")
+ .event("payment")
+ .priority(1631)
+ .endsAt("2024-06-01T02:03:23.000000Z")
+ .startsAt("2020-12-20T04:59:15.000000Z")
+ .name("cSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcj");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1952,16 +2114,16 @@ void test32() throws ConnectionError, ProcessingError {
@Test
void test33() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"6e2469a4-9222-4c20-ac8b-a615be48a1f6","5a8f2544-06fb-44c4-9050-278d2ff2a6f4","862e9622-c74d-4ff5-9ff3-7a5b4d0c97e5","f35f09ed-afb1-49ff-975c-f7d3296f11a6","cce9d081-bfd0-48cf-a4c1-746bd9245108","31f635ba-07aa-4c12-8757-e6de45c790cc","54ee4f43-c789-4048-be97-14dd068f309c","a7727268-3c82-4393-90ba-fc7f99a4e137","5efda571-9837-4d04-aa0e-15aa55ae8edb","af058ff9-8add-47ea-85ef-9138c61e580b"})
- .status("disabled")
- .description("V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbD")
- .event("payment")
- .priority(374)
- .endsAt("2022-11-05T16:15:07.000000Z")
- .startsAt("2024-08-06T07:29:13.000000Z")
- .name("Sa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1");
+ .blacklistedShopIds(new String[]{"4ddab61d-18ce-4418-84d6-af78ec25a534","71c9113e-7195-4aab-81b2-636ff04334f6","129a4971-3196-4150-8d96-7dda30f7e841","fb7c08a9-0fb8-4329-a972-2817dbb7552f","5dac81ba-1458-4e4a-b995-2023d4d1b4c5","4f3dea8d-8a1f-4d36-9a3b-066335bcc99e","741c864d-0ffa-419d-ab4c-c8799a2f8a29","0ff267c1-b871-4e8e-a700-e5f73c7f7f53","37011c3e-ee60-4fef-a4e4-24e9f0c2ff7f","bf1a2c0e-4c3e-45f5-9006-b3ea97168357"})
+ .status("enabled")
+ .description("11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT")
+ .event("topup")
+ .priority(6030)
+ .endsAt("2026-02-15T23:06:41.000000Z")
+ .startsAt("2020-12-27T13:44:51.000000Z")
+ .name("c5gafw");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1976,17 +2138,17 @@ void test33() throws ConnectionError, ProcessingError {
@Test
void test34() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"171644c7-d45d-4b16-b2bf-bba97acd78ed","c5f319c7-ba05-4e55-b9a1-fd265fdaf59f","d6c398d9-90e5-4544-9902-f5c824e323b5","1f3b4a7c-76d4-45f9-bc0d-fb40a14c1b3e","9a5a2bf3-3dea-4afa-ba8e-3ce052bad5b5","25fbcb25-8a01-4ff6-88df-1d024fa5d634","3e7fd694-9848-4906-97b6-2a6575f680f1","93c8c2eb-d8d3-4c6b-8500-6c9fa201d212","a1ed030c-b2ee-4783-889b-64ea7547b52f"})
- .pointExpiresAt("2022-02-17T16:54:47.000000Z")
- .status("disabled")
- .description("aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpS")
- .event("payment")
- .priority(4689)
- .endsAt("2023-05-25T06:25:42.000000Z")
- .startsAt("2023-09-05T23:10:15.000000Z")
- .name("Lu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7Oo");
+ .blacklistedShopIds(new String[]{"12d1ddc5-a2b7-46df-8a60-d4f86ad12a3a","acc331a3-d43b-4bd4-b697-276a92d70ebc","68b656d5-6963-4931-a1fc-acd4c17a5b35","23ef8b98-9f45-4d62-8770-042fe3d72cc3","74fc4613-020a-449d-8ad1-99204418af6e","ce7b9638-7ba4-4599-8237-93a1ff4242ec"})
+ .pointExpiresAt("2022-01-12T03:10:13.000000Z")
+ .status("enabled")
+ .description("5BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc")
+ .event("topup")
+ .priority(3455)
+ .endsAt("2021-10-01T20:13:57.000000Z")
+ .startsAt("2025-12-11T16:57:40.000000Z")
+ .name("2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2001,18 +2163,18 @@ void test34() throws ConnectionError, ProcessingError {
@Test
void test35() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"7a89b61c-b83f-4d91-9c20-7ded5ae2228a","597f87e2-0316-4c3b-8f82-8957f29aaea5","0fb0b1d8-90f6-4263-9d85-f4f1c53bfaeb","1acb9a48-67c0-4b91-b64f-39436942f717","ed551fc7-0d8b-48fd-9bfc-728e1a1dfb38","f1ef6862-57fe-486a-aec6-35f3565cdbb6","71902ddf-2eae-49d7-b8a4-87619e71c767","3973e337-4740-476b-86d6-088ccefe30d4"})
- .pointExpiresInDays(9612)
- .pointExpiresAt("2021-01-12T03:12:02.000000Z")
- .status("disabled")
- .description("ZtjqA6")
+ .blacklistedShopIds(new String[]{"363171b7-3632-4371-97a1-33de1a94ea7d","5a7cb39c-ac01-43f4-bdcf-a0bdca5af52a","d973946b-5996-4513-9a0e-ee5d27505fa9","e4d5d190-2433-47ab-9155-4d5bf0615a56","ef6d0126-a6e2-48aa-8553-0ac554fe5b57","ab4fb5d0-e374-4763-863b-daf9ff4c2975"})
+ .pointExpiresInDays(1789)
+ .pointExpiresAt("2025-10-13T05:48:22.000000Z")
+ .status("enabled")
+ .description("37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVe")
.event("external-transaction")
- .priority(3221)
- .endsAt("2024-04-25T18:39:26.000000Z")
- .startsAt("2020-02-18T13:31:47.000000Z")
- .name("XCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWS");
+ .priority(8952)
+ .endsAt("2020-08-28T22:19:33.000000Z")
+ .startsAt("2026-03-10T21:24:23.000000Z")
+ .name("7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprWMfHv0Adc0Cr3QSzeJ");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2027,19 +2189,19 @@ void test35() throws ConnectionError, ProcessingError {
@Test
void test36() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"ac893094-547e-4b36-8184-1c8b91f3c8ed"})
+ .blacklistedShopIds(new String[]{"eded78db-e05a-4580-8bc8-a4aafbf47ed7","60b98fcf-1c87-4659-849a-8479b1c8709c","5b3c1b38-fed8-412e-a131-b46e9a8edd17","247064e1-204c-4362-b0ba-62900595d405","962bc6b7-3179-4a0f-afc3-8d6b720e931d","9d0fb3d5-440c-49c3-abc9-34ccf107d408","94013bc8-4fc4-423f-a30a-b96ae8321a40","b00aeac7-2d3d-4f5f-b2bb-0ddd90e5c669","fb9ed763-3d1d-48ef-9665-84c0b4a3c722"})
.setExclusive(false)
- .pointExpiresInDays(6452)
- .pointExpiresAt("2021-12-27T15:21:00.000000Z")
+ .pointExpiresInDays(7041)
+ .pointExpiresAt("2021-02-24T10:05:35.000000Z")
.status("enabled")
- .description("gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9")
+ .description("WNBFxzeu6Kj8LSmqtcTHfZNvkLrH")
.event("topup")
- .priority(5939)
- .endsAt("2024-05-05T03:29:53.000000Z")
- .startsAt("2021-06-01T02:41:12.000000Z")
- .name("RLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGE");
+ .priority(24)
+ .endsAt("2021-08-13T14:06:58.000000Z")
+ .startsAt("2025-09-21T22:33:50.000000Z")
+ .name("hPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCi");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2054,20 +2216,20 @@ void test36() throws ConnectionError, ProcessingError {
@Test
void test37() throws ConnectionError, ProcessingError {
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"8a0367ee-3e46-4264-a357-3768b1925904","a361c0d3-0f64-4a3c-9197-9b7cbc7bb824","8c379061-034a-4c5e-a6ca-fbb64fa7f90a"})
- .subject("money")
+ .blacklistedShopIds(new String[]{"860b6a7b-f2e0-48b5-9787-5be237e1d8f1","983fc45e-b0ae-4249-b351-fa2562bd8a3f","e25b4890-467e-45d9-b660-c6e42cbb4a1a","e2b0b46d-7828-4f26-809d-484887b0e263","10b7a7c5-ccbd-4433-a699-8e2cc0f13d6b","02d08be7-6b90-401f-b688-017ec309315d","52f088af-c911-4237-a04d-8b7046e15bb0","322c40aa-32bc-4443-ba89-067b5ec0d66a","0890e0cf-4988-4f7a-9be6-1c7b9381ed19","7b740727-9e91-4774-8ef5-adc5b69852d4"})
+ .subject("all")
.setExclusive(true)
- .pointExpiresInDays(305)
- .pointExpiresAt("2024-01-06T22:44:45.000000Z")
- .status("disabled")
- .description("2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67y")
+ .pointExpiresInDays(2818)
+ .pointExpiresAt("2022-07-15T02:56:38.000000Z")
+ .status("enabled")
+ .description("onmfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnI")
.event("topup")
- .priority(8998)
- .endsAt("2020-03-20T09:11:34.000000Z")
- .startsAt("2022-05-14T10:09:49.000000Z")
- .name("xWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9Tez");
+ .priority(4798)
+ .endsAt("2021-03-21T14:07:44.000000Z")
+ .startsAt("2025-04-25T01:51:16.000000Z")
+ .name("0nrMnQNFRYYqQB2LOvvxaJWdM6RyNE08AoCyr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4ZI5");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2091,32 +2253,22 @@ void test38() throws ConnectionError, ProcessingError {
items2.addProperty("point_amount_unit", "percent");
items2.addProperty("subject_more_than_or_equal", 1000);
items2.addProperty("subject_less_than", 5000);
- JsonObject items3 = new JsonObject();
- items3.addProperty("point_amount", 5);
- items3.addProperty("point_amount_unit", "percent");
- items3.addProperty("subject_more_than_or_equal", 1000);
- items3.addProperty("subject_less_than", 5000);
- JsonObject items4 = new JsonObject();
- items4.addProperty("point_amount", 5);
- items4.addProperty("point_amount_unit", "percent");
- items4.addProperty("subject_more_than_or_equal", 1000);
- items4.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"26f30113-6213-4ea7-aca1-958505591023","2659686a-b006-4e33-81be-29161e31edb0","f02ead1f-89b8-40b5-b92e-68942ebfbdc0","d598b035-aa8a-4008-a8de-f88033c0d90c","6f78321e-7303-4ad7-9105-6311fc68fba1"})
- .amountBasedPointRules(new Object[]{items,items2,items3,items4})
- .subject("all")
- .setExclusive(true)
- .pointExpiresInDays(8613)
- .pointExpiresAt("2020-06-26T07:19:03.000000Z")
- .status("enabled")
- .description("OWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIsw")
+ .blacklistedShopIds(new String[]{"dc14e889-ccb9-4a16-a2fe-05c493c809ae","24384255-03ec-4198-95ca-8fdefdfd7a0f","634deec2-d5c2-41c9-a717-6f969aabde5c","0dd900b9-891c-4d46-a42e-f5821301cd16","f2636836-acd9-4688-9337-91a68966175f","00d8917b-4be5-4ea4-800e-e1b40ce816e1","83212da6-8ed4-46ea-a25a-2c697418004c","98809b3f-ab16-498a-8f61-3f60ab244857"})
+ .amountBasedPointRules(new Object[]{items,items2})
+ .subject("money")
+ .setExclusive(false)
+ .pointExpiresInDays(803)
+ .pointExpiresAt("2021-11-26T19:22:27.000000Z")
+ .status("disabled")
+ .description("nzqZ6lGr")
.event("external-transaction")
- .priority(6296)
- .endsAt("2020-12-29T16:02:19.000000Z")
- .startsAt("2023-11-23T10:23:05.000000Z")
- .name("c2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpC");
+ .priority(5726)
+ .endsAt("2021-11-16T08:48:52.000000Z")
+ .startsAt("2021-03-21T10:06:31.000000Z")
+ .name("nP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2151,15 +2303,63 @@ void test39() throws ConnectionError, ProcessingError {
JsonObject items4 = new JsonObject();
items4.addProperty("point_amount", 5);
items4.addProperty("point_amount_unit", "percent");
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("is_multiply_by_count", true);
- items4.addProperty("required_count", 2);
+ items4.addProperty("subject_more_than_or_equal", 1000);
+ items4.addProperty("subject_less_than", 5000);
JsonObject items5 = new JsonObject();
items5.addProperty("point_amount", 5);
items5.addProperty("point_amount_unit", "percent");
+ items5.addProperty("subject_more_than_or_equal", 1000);
+ items5.addProperty("subject_less_than", 5000);
+ JsonObject items6 = new JsonObject();
+ items6.addProperty("point_amount", 5);
+ items6.addProperty("point_amount_unit", "percent");
+ items6.addProperty("subject_more_than_or_equal", 1000);
+ items6.addProperty("subject_less_than", 5000);
+ Request request = new UpdateCampaign(
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
+ )
+ .blacklistedShopIds(new String[]{"3686860f-fea9-479a-845f-8f31b989019a","795ea848-753d-4eb3-b855-72e4292b76fe","6fa8840b-9dac-40c8-bffe-233dbebae39b","3c7aa5f3-2d09-4345-93d9-8d1a993e1e2e","1bfeba2b-1050-44d7-b9dd-8856a0134279","b1880487-2445-4116-b2ce-b38e3f109d90","fa2f31e2-54cf-42a3-8b3a-415c92737995","00eeee1c-ab39-4ccf-a799-c9c84b23aeb6"})
+ .productBasedPointRules(new Object[]{items,items2,items3})
+ .amountBasedPointRules(new Object[]{items4,items5,items6})
+ .subject("all")
+ .setExclusive(false)
+ .pointExpiresInDays(4242)
+ .pointExpiresAt("2020-06-12T05:55:49.000000Z")
+ .status("enabled")
+ .description("fcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCt")
+ .event("external-transaction")
+ .priority(7000)
+ .endsAt("2022-10-25T11:00:50.000000Z")
+ .startsAt("2023-01-23T20:32:37.000000Z")
+ .name("qJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5j");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test40() throws ConnectionError, ProcessingError {
+ JsonObject items = new JsonObject();
+ items.addProperty("product_code", "4912345678904");
+ items.addProperty("classification_code", "c123");
+ JsonObject items2 = new JsonObject();
+ items2.addProperty("product_code", "4912345678904");
+ items2.addProperty("classification_code", "c123");
+ JsonObject items3 = new JsonObject();
+ items3.addProperty("product_code", "4912345678904");
+ items3.addProperty("classification_code", "c123");
+ JsonObject items4 = new JsonObject();
+ items4.addProperty("product_code", "4912345678904");
+ items4.addProperty("classification_code", "c123");
+ JsonObject items5 = new JsonObject();
items5.addProperty("product_code", "4912345678904");
- items5.addProperty("is_multiply_by_count", true);
- items5.addProperty("required_count", 2);
+ items5.addProperty("classification_code", "c123");
JsonObject items6 = new JsonObject();
items6.addProperty("point_amount", 5);
items6.addProperty("point_amount_unit", "percent");
@@ -2169,55 +2369,73 @@ void test39() throws ConnectionError, ProcessingError {
JsonObject items7 = new JsonObject();
items7.addProperty("point_amount", 5);
items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("subject_more_than_or_equal", 1000);
- items7.addProperty("subject_less_than", 5000);
+ items7.addProperty("product_code", "4912345678904");
+ items7.addProperty("is_multiply_by_count", true);
+ items7.addProperty("required_count", 2);
JsonObject items8 = new JsonObject();
items8.addProperty("point_amount", 5);
items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("subject_more_than_or_equal", 1000);
- items8.addProperty("subject_less_than", 5000);
+ items8.addProperty("product_code", "4912345678904");
+ items8.addProperty("is_multiply_by_count", true);
+ items8.addProperty("required_count", 2);
JsonObject items9 = new JsonObject();
items9.addProperty("point_amount", 5);
items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("subject_more_than_or_equal", 1000);
- items9.addProperty("subject_less_than", 5000);
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("is_multiply_by_count", true);
+ items9.addProperty("required_count", 2);
JsonObject items10 = new JsonObject();
items10.addProperty("point_amount", 5);
items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("subject_more_than_or_equal", 1000);
- items10.addProperty("subject_less_than", 5000);
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("is_multiply_by_count", true);
+ items10.addProperty("required_count", 2);
JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("is_multiply_by_count", true);
+ items11.addProperty("required_count", 2);
JsonObject items12 = new JsonObject();
items12.addProperty("point_amount", 5);
items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("is_multiply_by_count", true);
+ items12.addProperty("required_count", 2);
JsonObject items13 = new JsonObject();
items13.addProperty("point_amount", 5);
items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("is_multiply_by_count", true);
+ items13.addProperty("required_count", 2);
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
+ items14.addProperty("subject_more_than_or_equal", 1000);
+ items14.addProperty("subject_less_than", 5000);
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("subject_more_than_or_equal", 1000);
+ items15.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"4e04f3fb-8bbc-4767-8937-a79ea7e39423","759e2927-17e3-4e5f-9549-a4ed7e48e0be","2d8451a6-856a-452c-aa67-e70fb59b3163","00a2ff5c-d07b-4dbc-9008-7fed6e48a88f","f5f865eb-1607-4141-8515-f55ec0702cfd"})
- .productBasedPointRules(new Object[]{items,items2,items3,items4,items5,items6})
- .amountBasedPointRules(new Object[]{items7,items8,items9,items10,items11,items12,items13})
+ .blacklistedShopIds(new String[]{"247fbbe1-a17e-4a47-ab5d-6ee29605930a","7c3c07cc-48c5-47c0-9c94-b9aa1eab4114","eb5ba4f5-b54a-40af-ad7c-c4aebd3c3dae","81fd8788-23c3-4266-bb05-bf4244ac132c"})
+ .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5})
+ .productBasedPointRules(new Object[]{items6,items7,items8,items9,items10,items11,items12,items13})
+ .amountBasedPointRules(new Object[]{items14,items15})
.subject("all")
- .setExclusive(false)
- .pointExpiresInDays(9256)
- .pointExpiresAt("2021-07-22T23:55:17.000000Z")
- .status("disabled")
- .description("jMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwF")
- .event("external-transaction")
- .priority(5903)
- .endsAt("2021-08-01T00:18:14.000000Z")
- .startsAt("2024-03-22T21:04:38.000000Z")
- .name("cNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqK");
+ .setExclusive(true)
+ .pointExpiresInDays(9559)
+ .pointExpiresAt("2024-10-28T00:00:14.000000Z")
+ .status("enabled")
+ .description("UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9b")
+ .event("payment")
+ .priority(7865)
+ .endsAt("2025-10-14T10:50:19.000000Z")
+ .startsAt("2025-04-20T02:17:06.000000Z")
+ .name("sFBm8sMwbh1WFtpEmCrF");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2230,19 +2448,28 @@ void test39() throws ConnectionError, ProcessingError {
}
}
@Test
- void test40() throws ConnectionError, ProcessingError {
+ void test41() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("product_code", "4912345678904");
items.addProperty("classification_code", "c123");
JsonObject items2 = new JsonObject();
+ items2.addProperty("point_amount", 5);
+ items2.addProperty("point_amount_unit", "percent");
items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("is_multiply_by_count", true);
+ items2.addProperty("required_count", 2);
JsonObject items3 = new JsonObject();
+ items3.addProperty("point_amount", 5);
+ items3.addProperty("point_amount_unit", "percent");
items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("is_multiply_by_count", true);
+ items3.addProperty("required_count", 2);
JsonObject items4 = new JsonObject();
+ items4.addProperty("point_amount", 5);
+ items4.addProperty("point_amount_unit", "percent");
items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
+ items4.addProperty("is_multiply_by_count", true);
+ items4.addProperty("required_count", 2);
JsonObject items5 = new JsonObject();
items5.addProperty("point_amount", 5);
items5.addProperty("point_amount_unit", "percent");
@@ -2270,15 +2497,13 @@ void test40() throws ConnectionError, ProcessingError {
JsonObject items9 = new JsonObject();
items9.addProperty("point_amount", 5);
items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
+ items9.addProperty("subject_more_than_or_equal", 1000);
+ items9.addProperty("subject_less_than", 5000);
JsonObject items10 = new JsonObject();
items10.addProperty("point_amount", 5);
items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("subject_more_than_or_equal", 1000);
+ items10.addProperty("subject_less_than", 5000);
JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
@@ -2299,49 +2524,25 @@ void test40() throws ConnectionError, ProcessingError {
items14.addProperty("point_amount_unit", "percent");
items14.addProperty("subject_more_than_or_equal", 1000);
items14.addProperty("subject_less_than", 5000);
- JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
- JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
- JsonObject items17 = new JsonObject();
- items17.addProperty("point_amount", 5);
- items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
- JsonObject items18 = new JsonObject();
- items18.addProperty("point_amount", 5);
- items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
- JsonObject items19 = new JsonObject();
- items19.addProperty("point_amount", 5);
- items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"07c18bf7-1f95-4599-8cd2-514096c6a170","883e9605-608c-432d-95f9-89894d5ab15d","572a729f-3792-4b66-a81b-2876be285653","2e4a82bd-de3b-449e-a270-8692c0591e99"})
- .blacklistedProductRules(new Object[]{items,items2,items3,items4})
- .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10})
- .amountBasedPointRules(new Object[]{items11,items12,items13,items14,items15,items16,items17,items18,items19})
- .subject("all")
+ .blacklistedShopIds(new String[]{"9e3558ce-3392-4c77-bf28-59a927df0e64","bdc5fd4c-3cda-4087-b135-85824a1931d1"})
+ .applicableDaysOfWeek(new Integer[]{0})
+ .blacklistedProductRules(new Object[]{items})
+ .productBasedPointRules(new Object[]{items2,items3,items4,items5,items6,items7,items8})
+ .amountBasedPointRules(new Object[]{items9,items10,items11,items12,items13,items14})
+ .subject("money")
.setExclusive(false)
- .pointExpiresInDays(3319)
- .pointExpiresAt("2020-04-16T07:10:54.000000Z")
+ .pointExpiresInDays(9709)
+ .pointExpiresAt("2023-02-24T21:54:43.000000Z")
.status("disabled")
- .description("9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP")
- .event("topup")
- .priority(2707)
- .endsAt("2021-04-02T02:58:31.000000Z")
- .startsAt("2022-04-10T09:41:26.000000Z")
- .name("srDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuC");
+ .description("Naa2goLZ5E9")
+ .event("external-transaction")
+ .priority(7444)
+ .endsAt("2022-10-24T01:54:02.000000Z")
+ .startsAt("2021-01-19T15:47:15.000000Z")
+ .name("vOUIiBwbJ5GuqfgOe9nV");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2354,55 +2555,146 @@ void test40() throws ConnectionError, ProcessingError {
}
}
@Test
- void test41() throws ConnectionError, ProcessingError {
+ void test42() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
- items.addProperty("product_code", "4912345678904");
- items.addProperty("classification_code", "c123");
+ items.addProperty("from", "12:00");
+ items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
+ items4.addProperty("from", "12:00");
+ items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("subject_more_than_or_equal", 1000);
- items8.addProperty("subject_less_than", 5000);
+ items8.addProperty("from", "12:00");
+ items8.addProperty("to", "23:59");
+ JsonObject items9 = new JsonObject();
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
+ JsonObject items10 = new JsonObject();
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("classification_code", "c123");
+ JsonObject items11 = new JsonObject();
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("classification_code", "c123");
+ JsonObject items12 = new JsonObject();
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("classification_code", "c123");
+ JsonObject items13 = new JsonObject();
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("classification_code", "c123");
+ JsonObject items14 = new JsonObject();
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("classification_code", "c123");
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("classification_code", "c123");
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("classification_code", "c123");
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("classification_code", "c123");
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("classification_code", "c123");
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("product_code", "4912345678904");
+ items22.addProperty("is_multiply_by_count", true);
+ items22.addProperty("required_count", 2);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("product_code", "4912345678904");
+ items23.addProperty("is_multiply_by_count", true);
+ items23.addProperty("required_count", 2);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
+ JsonObject items26 = new JsonObject();
+ items26.addProperty("point_amount", 5);
+ items26.addProperty("point_amount_unit", "percent");
+ items26.addProperty("subject_more_than_or_equal", 1000);
+ items26.addProperty("subject_less_than", 5000);
+ JsonObject items27 = new JsonObject();
+ items27.addProperty("point_amount", 5);
+ items27.addProperty("point_amount_unit", "percent");
+ items27.addProperty("subject_more_than_or_equal", 1000);
+ items27.addProperty("subject_less_than", 5000);
+ JsonObject items28 = new JsonObject();
+ items28.addProperty("point_amount", 5);
+ items28.addProperty("point_amount_unit", "percent");
+ items28.addProperty("subject_more_than_or_equal", 1000);
+ items28.addProperty("subject_less_than", 5000);
+ JsonObject items29 = new JsonObject();
+ items29.addProperty("point_amount", 5);
+ items29.addProperty("point_amount_unit", "percent");
+ items29.addProperty("subject_more_than_or_equal", 1000);
+ items29.addProperty("subject_less_than", 5000);
+ JsonObject items30 = new JsonObject();
+ items30.addProperty("point_amount", 5);
+ items30.addProperty("point_amount_unit", "percent");
+ items30.addProperty("subject_more_than_or_equal", 1000);
+ items30.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"afa2926d-16b4-46f4-80cd-0e1afb8204b4","3050fda5-5af2-42d1-b73d-5298d71fe154","93ba6ccd-375d-48d7-8020-3d3ee2fd9216","6e700277-2e9e-4ddc-a5a3-a9adf71bff51","4be1a9d1-5f27-46be-a588-6c67f7c93741"})
- .applicableDaysOfWeek(new Integer[]{1,1,6,5,1,0,3})
- .blacklistedProductRules(new Object[]{items,items2,items3,items4,items5,items6})
- .productBasedPointRules(new Object[]{items7})
- .amountBasedPointRules(new Object[]{items8})
- .subject("all")
- .setExclusive(false)
- .pointExpiresInDays(5093)
- .pointExpiresAt("2021-04-20T22:14:33.000000Z")
+ .blacklistedShopIds(new String[]{"eef39c4f-06ae-468d-a65b-f03119fb075d","823f036d-422a-4c0e-9e1e-83dd540918e3","6b53a993-21e5-41d8-9fe2-ea3b034148a9"})
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
+ .applicableDaysOfWeek(new Integer[]{3,2,4,6,5,3,2,0,3,5})
+ .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17,items18})
+ .productBasedPointRules(new Object[]{items19,items20,items21,items22,items23})
+ .amountBasedPointRules(new Object[]{items24,items25,items26,items27,items28,items29,items30})
+ .subject("money")
+ .setExclusive(true)
+ .pointExpiresInDays(6596)
+ .pointExpiresAt("2020-01-02T07:00:59.000000Z")
.status("enabled")
- .description("koAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz")
- .event("payment")
- .priority(804)
- .endsAt("2024-07-16T14:28:33.000000Z")
- .startsAt("2024-02-13T17:21:15.000000Z")
- .name("XV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHN");
+ .description("npKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOy")
+ .event("external-transaction")
+ .priority(2046)
+ .endsAt("2026-05-23T12:02:53.000000Z")
+ .startsAt("2026-01-23T01:32:45.000000Z")
+ .name("6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2PelpywqnkqJGFUWWcs7OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9BbWGLWxTOnqHU20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6HuYWn");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2415,7 +2707,7 @@ void test41() throws ConnectionError, ProcessingError {
}
}
@Test
- void test42() throws ConnectionError, ProcessingError {
+ void test43() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
@@ -2432,11 +2724,11 @@ void test42() throws ConnectionError, ProcessingError {
items5.addProperty("from", "12:00");
items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
items8.addProperty("product_code", "4912345678904");
items8.addProperty("classification_code", "c123");
@@ -2444,11 +2736,8 @@ void test42() throws ConnectionError, ProcessingError {
items9.addProperty("product_code", "4912345678904");
items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
@@ -2470,13 +2759,15 @@ void test42() throws ConnectionError, ProcessingError {
JsonObject items14 = new JsonObject();
items14.addProperty("point_amount", 5);
items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
JsonObject items15 = new JsonObject();
items15.addProperty("point_amount", 5);
items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
@@ -2507,26 +2798,37 @@ void test42() throws ConnectionError, ProcessingError {
items21.addProperty("point_amount_unit", "percent");
items21.addProperty("subject_more_than_or_equal", 1000);
items21.addProperty("subject_less_than", 5000);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("subject_more_than_or_equal", 1000);
+ items23.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"8d6ce735-072d-4eb7-89a3-ba92972113cf","c1730050-a80f-4fe7-9a90-6af95d856227","3d07bd95-320b-46fd-9a1e-d50148a16919"})
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5})
- .applicableDaysOfWeek(new Integer[]{4,2,1,0})
- .blacklistedProductRules(new Object[]{items6,items7,items8,items9})
- .productBasedPointRules(new Object[]{items10,items11,items12,items13})
- .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19,items20,items21})
- .subject("all")
+ .blacklistedShopIds(new String[]{"40d85979-027d-4c1f-8955-ac06b75d8768","0f4ee390-5541-4f22-bb44-55349b6bfba9"})
+ .minimumNumberOfProducts(8177)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
+ .applicableDaysOfWeek(new Integer[]{2,0,3,3,1,6,1,0})
+ .blacklistedProductRules(new Object[]{items8,items9,items10})
+ .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15})
+ .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23})
+ .subject("money")
.setExclusive(true)
- .pointExpiresInDays(2895)
- .pointExpiresAt("2023-06-22T20:29:05.000000Z")
+ .pointExpiresInDays(7059)
+ .pointExpiresAt("2025-06-09T05:53:53.000000Z")
.status("enabled")
- .description("Kg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4")
+ .description("8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26k")
.event("topup")
- .priority(1391)
- .endsAt("2021-02-08T05:24:06.000000Z")
- .startsAt("2020-02-28T23:46:04.000000Z")
- .name("F1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW6");
+ .priority(3182)
+ .endsAt("2021-08-27T08:28:57.000000Z")
+ .startsAt("2025-12-24T10:15:59.000000Z")
+ .name("LEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo6CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cW");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2539,7 +2841,7 @@ void test42() throws ConnectionError, ProcessingError {
}
}
@Test
- void test43() throws ConnectionError, ProcessingError {
+ void test44() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
@@ -2580,8 +2882,11 @@ void test43() throws ConnectionError, ProcessingError {
items13.addProperty("product_code", "4912345678904");
items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
+ items14.addProperty("point_amount", 5);
+ items14.addProperty("point_amount_unit", "percent");
items14.addProperty("product_code", "4912345678904");
- items14.addProperty("classification_code", "c123");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
JsonObject items15 = new JsonObject();
items15.addProperty("point_amount", 5);
items15.addProperty("point_amount_unit", "percent");
@@ -2627,42 +2932,28 @@ void test43() throws ConnectionError, ProcessingError {
items22.addProperty("point_amount_unit", "percent");
items22.addProperty("subject_more_than_or_equal", 1000);
items22.addProperty("subject_less_than", 5000);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
- JsonObject items24 = new JsonObject();
- items24.addProperty("point_amount", 5);
- items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("subject_more_than_or_equal", 1000);
- items24.addProperty("subject_less_than", 5000);
- JsonObject items25 = new JsonObject();
- items25.addProperty("point_amount", 5);
- items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("subject_more_than_or_equal", 1000);
- items25.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"15aaff14-cd8d-4936-90b3-b8c99b619a2c"})
- .minimumNumberOfProducts(6205)
+ .blacklistedShopIds(new String[]{"2a447335-8ff3-4ec6-a630-9c41f31ef83f","2556d652-8a79-48cf-8b5b-1cd0f9637da7","13da4a0e-a2bf-4c33-abc8-3bc337b0c894","72a45dd5-e208-4f20-bd0d-c983410d3c8c","bef7f904-7310-4e68-8fc5-bd642cec4ca5","1ae9cb6a-7816-488a-b0c6-587675980385","c05e104b-a42d-4dfa-974c-91a4884b67cf"})
+ .minimumNumberOfAmount(2737)
+ .minimumNumberOfProducts(7065)
.applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
- .applicableDaysOfWeek(new Integer[]{2,0,1,3,1,0,5,3})
- .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14})
- .productBasedPointRules(new Object[]{items15,items16,items17,items18,items19})
- .amountBasedPointRules(new Object[]{items20,items21,items22,items23,items24,items25})
+ .applicableDaysOfWeek(new Integer[]{2,3})
+ .blacklistedProductRules(new Object[]{items10,items11,items12,items13})
+ .productBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19})
+ .amountBasedPointRules(new Object[]{items20,items21,items22})
.subject("money")
- .setExclusive(true)
- .pointExpiresInDays(4377)
- .pointExpiresAt("2023-12-01T19:03:03.000000Z")
+ .setExclusive(false)
+ .pointExpiresInDays(6076)
+ .pointExpiresAt("2025-03-21T23:46:55.000000Z")
.status("enabled")
- .description("smRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsM")
- .event("payment")
- .priority(6343)
- .endsAt("2022-12-02T04:36:47.000000Z")
- .startsAt("2023-08-15T16:25:46.000000Z")
- .name("bxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0Xd");
+ .description("yaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3")
+ .event("topup")
+ .priority(2626)
+ .endsAt("2020-07-23T14:17:24.000000Z")
+ .startsAt("2021-02-02T17:56:30.000000Z")
+ .name("l0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH287FkS1AdoZmrqV");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2675,13 +2966,13 @@ void test43() throws ConnectionError, ProcessingError {
}
}
@Test
- void test44() throws ConnectionError, ProcessingError {
+ void test45() throws ConnectionError, ProcessingError {
JsonObject items = new JsonObject();
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("from", "12:00");
- items2.addProperty("to", "23:59");
+ items2.addProperty("product_code", "4912345678904");
+ items2.addProperty("classification_code", "c123");
JsonObject items3 = new JsonObject();
items3.addProperty("product_code", "4912345678904");
items3.addProperty("classification_code", "c123");
@@ -2707,129 +2998,6 @@ void test44() throws ConnectionError, ProcessingError {
items10.addProperty("product_code", "4912345678904");
items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("product_code", "4912345678904");
- items11.addProperty("classification_code", "c123");
- JsonObject items12 = new JsonObject();
- items12.addProperty("product_code", "4912345678904");
- items12.addProperty("classification_code", "c123");
- JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
- JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("product_code", "4912345678904");
- items14.addProperty("is_multiply_by_count", true);
- items14.addProperty("required_count", 2);
- JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("product_code", "4912345678904");
- items15.addProperty("is_multiply_by_count", true);
- items15.addProperty("required_count", 2);
- JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("product_code", "4912345678904");
- items16.addProperty("is_multiply_by_count", true);
- items16.addProperty("required_count", 2);
- JsonObject items17 = new JsonObject();
- items17.addProperty("point_amount", 5);
- items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
- JsonObject items18 = new JsonObject();
- items18.addProperty("point_amount", 5);
- items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("subject_more_than_or_equal", 1000);
- items18.addProperty("subject_less_than", 5000);
- JsonObject items19 = new JsonObject();
- items19.addProperty("point_amount", 5);
- items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("subject_more_than_or_equal", 1000);
- items19.addProperty("subject_less_than", 5000);
- JsonObject items20 = new JsonObject();
- items20.addProperty("point_amount", 5);
- items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("subject_more_than_or_equal", 1000);
- items20.addProperty("subject_less_than", 5000);
- JsonObject items21 = new JsonObject();
- items21.addProperty("point_amount", 5);
- items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
- Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
- )
- .blacklistedShopIds(new String[]{"08f4a642-e910-4927-b10d-2d76e0797efa","a6329a32-194c-455a-b153-0e2031ef8a62","74feb294-5fb1-44c3-9872-63b91c611b47","a141be05-3992-4781-b6a8-5cca0920d1aa","c5d26084-2beb-4fb1-b518-303657000592","18dd654a-7bd6-486e-a217-73a8e6b67d30"})
- .minimumNumberOfAmount(5415)
- .minimumNumberOfProducts(821)
- .applicableTimeRanges(new Object[]{items,items2})
- .applicableDaysOfWeek(new Integer[]{3,2,6,4,3,4,6,5,0,6})
- .blacklistedProductRules(new Object[]{items3,items4,items5,items6,items7,items8,items9,items10,items11,items12})
- .productBasedPointRules(new Object[]{items13,items14,items15,items16})
- .amountBasedPointRules(new Object[]{items17,items18,items19,items20,items21})
- .subject("money")
- .setExclusive(false)
- .pointExpiresInDays(5594)
- .pointExpiresAt("2020-11-12T07:00:27.000000Z")
- .status("enabled")
- .description("JhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4P")
- .event("topup")
- .priority(1700)
- .endsAt("2021-02-26T00:46:07.000000Z")
- .startsAt("2023-01-21T04:06:34.000000Z")
- .name("IKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5Xg");
- try {
- PartnerAPITest.getClient().send(request);
- } catch (PartnerRequestError e) {
- if (e.getType().equals("invalid_parameters")) {
- System.out.println(e.getType());
- System.out.println(e.getMessage());
- System.out.println(e.getRawJson());
- }
- assertNotEquals("invalid_parameters", e.getType());
- }
- }
- @Test
- void test45() throws ConnectionError, ProcessingError {
- JsonObject items = new JsonObject();
- items.addProperty("from", "12:00");
- items.addProperty("to", "23:59");
- JsonObject items2 = new JsonObject();
- items2.addProperty("from", "12:00");
- items2.addProperty("to", "23:59");
- JsonObject items3 = new JsonObject();
- items3.addProperty("from", "12:00");
- items3.addProperty("to", "23:59");
- JsonObject items4 = new JsonObject();
- items4.addProperty("from", "12:00");
- items4.addProperty("to", "23:59");
- JsonObject items5 = new JsonObject();
- items5.addProperty("from", "12:00");
- items5.addProperty("to", "23:59");
- JsonObject items6 = new JsonObject();
- items6.addProperty("from", "12:00");
- items6.addProperty("to", "23:59");
- JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
- JsonObject items8 = new JsonObject();
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("classification_code", "c123");
- JsonObject items9 = new JsonObject();
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("classification_code", "c123");
- JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
- items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
- JsonObject items11 = new JsonObject();
items11.addProperty("point_amount", 5);
items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
@@ -2862,49 +3030,71 @@ void test45() throws ConnectionError, ProcessingError {
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("product_code", "4912345678904");
- items16.addProperty("is_multiply_by_count", true);
- items16.addProperty("required_count", 2);
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("product_code", "4912345678904");
- items17.addProperty("is_multiply_by_count", true);
- items17.addProperty("required_count", 2);
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("product_code", "4912345678904");
- items18.addProperty("is_multiply_by_count", true);
- items18.addProperty("required_count", 2);
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
items19.addProperty("subject_more_than_or_equal", 1000);
items19.addProperty("subject_less_than", 5000);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("subject_more_than_or_equal", 1000);
+ items22.addProperty("subject_less_than", 5000);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("subject_more_than_or_equal", 1000);
+ items23.addProperty("subject_less_than", 5000);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"d62ee4c4-ed98-4e2c-b5a0-335b1d5dc74a","a6439743-97b7-4744-8629-2a1c3baf3247","cac2cce0-fa58-400f-9702-b8cafc609ab1"})
- .minimumNumberForCombinationPurchase(8773)
- .minimumNumberOfAmount(9565)
- .minimumNumberOfProducts(6861)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6})
- .applicableDaysOfWeek(new Integer[]{1,4,2,2,6,0,4,1,5})
- .blacklistedProductRules(new Object[]{items7,items8,items9})
- .productBasedPointRules(new Object[]{items10,items11,items12,items13,items14,items15,items16,items17,items18})
- .amountBasedPointRules(new Object[]{items19})
- .subject("all")
+ .blacklistedShopIds(new String[]{"8259c1ab-1f51-4e1f-b0b8-f4665ceda340","473423f0-feb9-4c49-b0c4-d7c7cdbe7cce","b93e3754-9eb3-4932-8c58-f1d8f108a0bf","e0b49a6a-a6d3-499f-a541-3873f30529e6","b34685f3-51ef-4e77-ad1e-9a7e90db0a72","ef653094-180d-4f0a-ae79-e8f4da4f18ae","8154ecc6-1eee-4dc4-8ed0-b1457258f572"})
+ .minimumNumberForCombinationPurchase(2507)
+ .minimumNumberOfAmount(9990)
+ .minimumNumberOfProducts(9619)
+ .applicableTimeRanges(new Object[]{items})
+ .applicableDaysOfWeek(new Integer[]{4,1,6,3,6})
+ .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9,items10})
+ .productBasedPointRules(new Object[]{items11,items12,items13,items14,items15})
+ .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22,items23,items24})
+ .subject("money")
.setExclusive(false)
- .pointExpiresInDays(1343)
- .pointExpiresAt("2022-12-21T20:43:10.000000Z")
- .status("enabled")
- .description("st44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nS")
- .event("external-transaction")
- .priority(9651)
- .endsAt("2024-09-15T11:27:27.000000Z")
- .startsAt("2022-01-07T23:48:28.000000Z")
- .name("jzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6");
+ .pointExpiresInDays(3535)
+ .pointExpiresAt("2021-09-06T04:52:54.000000Z")
+ .status("disabled")
+ .description("RIxfJ3UGUUM2jHDzbRjTfUU5d5AtOipE6L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYU")
+ .event("payment")
+ .priority(5805)
+ .endsAt("2021-10-21T00:46:26.000000Z")
+ .startsAt("2025-02-26T09:03:32.000000Z")
+ .name("op3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEty");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -2943,68 +3133,119 @@ void test46() throws ConnectionError, ProcessingError {
items8.addProperty("from", "12:00");
items8.addProperty("to", "23:59");
JsonObject items9 = new JsonObject();
- items9.addProperty("from", "12:00");
- items9.addProperty("to", "23:59");
+ items9.addProperty("product_code", "4912345678904");
+ items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
items10.addProperty("product_code", "4912345678904");
items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
items12.addProperty("product_code", "4912345678904");
- items12.addProperty("is_multiply_by_count", true);
- items12.addProperty("required_count", 2);
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
items13.addProperty("product_code", "4912345678904");
- items13.addProperty("is_multiply_by_count", true);
- items13.addProperty("required_count", 2);
+ items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("classification_code", "c123");
JsonObject items15 = new JsonObject();
- items15.addProperty("point_amount", 5);
- items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("classification_code", "c123");
JsonObject items16 = new JsonObject();
- items16.addProperty("point_amount", 5);
- items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("classification_code", "c123");
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("classification_code", "c123");
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("classification_code", "c123");
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("product_code", "4912345678904");
+ items19.addProperty("is_multiply_by_count", true);
+ items19.addProperty("required_count", 2);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("product_code", "4912345678904");
+ items20.addProperty("is_multiply_by_count", true);
+ items20.addProperty("required_count", 2);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("product_code", "4912345678904");
+ items21.addProperty("is_multiply_by_count", true);
+ items21.addProperty("required_count", 2);
+ JsonObject items22 = new JsonObject();
+ items22.addProperty("point_amount", 5);
+ items22.addProperty("point_amount_unit", "percent");
+ items22.addProperty("product_code", "4912345678904");
+ items22.addProperty("is_multiply_by_count", true);
+ items22.addProperty("required_count", 2);
+ JsonObject items23 = new JsonObject();
+ items23.addProperty("point_amount", 5);
+ items23.addProperty("point_amount_unit", "percent");
+ items23.addProperty("product_code", "4912345678904");
+ items23.addProperty("is_multiply_by_count", true);
+ items23.addProperty("required_count", 2);
+ JsonObject items24 = new JsonObject();
+ items24.addProperty("point_amount", 5);
+ items24.addProperty("point_amount_unit", "percent");
+ items24.addProperty("subject_more_than_or_equal", 1000);
+ items24.addProperty("subject_less_than", 5000);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
+ JsonObject items26 = new JsonObject();
+ items26.addProperty("point_amount", 5);
+ items26.addProperty("point_amount_unit", "percent");
+ items26.addProperty("subject_more_than_or_equal", 1000);
+ items26.addProperty("subject_less_than", 5000);
+ JsonObject items27 = new JsonObject();
+ items27.addProperty("point_amount", 5);
+ items27.addProperty("point_amount_unit", "percent");
+ items27.addProperty("subject_more_than_or_equal", 1000);
+ items27.addProperty("subject_less_than", 5000);
+ JsonObject items28 = new JsonObject();
+ items28.addProperty("point_amount", 5);
+ items28.addProperty("point_amount_unit", "percent");
+ items28.addProperty("subject_more_than_or_equal", 1000);
+ items28.addProperty("subject_less_than", 5000);
+ JsonObject items29 = new JsonObject();
+ items29.addProperty("point_amount", 5);
+ items29.addProperty("point_amount_unit", "percent");
+ items29.addProperty("subject_more_than_or_equal", 1000);
+ items29.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"fbabc2ea-21b9-402c-8a18-aba6fc5545d8","0eccf0ef-8956-467b-9ea4-8e2bb8381357","fa0939c5-349a-464f-aa94-c89b27afc79e"})
+ .blacklistedShopIds(new String[]{"d3121cb7-ce4c-4bdc-a367-365631053645","4ab4bb8f-d5d9-4e3e-8e42-9d7ef94dd988"})
.existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(651)
- .minimumNumberOfAmount(5656)
- .minimumNumberOfProducts(9444)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
- .applicableDaysOfWeek(new Integer[]{0,5,3,1,4})
- .blacklistedProductRules(new Object[]{items10})
- .productBasedPointRules(new Object[]{items11,items12,items13})
- .amountBasedPointRules(new Object[]{items14,items15,items16})
+ .minimumNumberForCombinationPurchase(4937)
+ .minimumNumberOfAmount(3392)
+ .minimumNumberOfProducts(2684)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
+ .applicableDaysOfWeek(new Integer[]{5,2,3,3,6,5})
+ .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16,items17,items18})
+ .productBasedPointRules(new Object[]{items19,items20,items21,items22,items23})
+ .amountBasedPointRules(new Object[]{items24,items25,items26,items27,items28,items29})
.subject("money")
- .setExclusive(true)
- .pointExpiresInDays(2588)
- .pointExpiresAt("2020-10-14T16:45:05.000000Z")
+ .setExclusive(false)
+ .pointExpiresInDays(6658)
+ .pointExpiresAt("2023-03-03T05:34:42.000000Z")
.status("enabled")
- .description("Dc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME")
- .event("topup")
- .priority(5548)
- .endsAt("2022-10-17T21:35:50.000000Z")
- .startsAt("2023-02-26T01:31:03.000000Z")
- .name("RlyybO27figMsVRHKPW");
+ .description("kdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbE")
+ .event("payment")
+ .priority(2760)
+ .endsAt("2023-12-06T12:47:52.000000Z")
+ .startsAt("2022-02-20T16:27:23.000000Z")
+ .name("igyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWa");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3046,8 +3287,8 @@ void test47() throws ConnectionError, ProcessingError {
items9.addProperty("from", "12:00");
items9.addProperty("to", "23:59");
JsonObject items10 = new JsonObject();
- items10.addProperty("from", "12:00");
- items10.addProperty("to", "23:59");
+ items10.addProperty("product_code", "4912345678904");
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
items11.addProperty("product_code", "4912345678904");
items11.addProperty("classification_code", "c123");
@@ -3064,8 +3305,11 @@ void test47() throws ConnectionError, ProcessingError {
items15.addProperty("product_code", "4912345678904");
items15.addProperty("classification_code", "c123");
JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
items16.addProperty("product_code", "4912345678904");
- items16.addProperty("classification_code", "c123");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
@@ -3107,31 +3351,41 @@ void test47() throws ConnectionError, ProcessingError {
items24.addProperty("point_amount_unit", "percent");
items24.addProperty("subject_more_than_or_equal", 1000);
items24.addProperty("subject_less_than", 5000);
+ JsonObject items25 = new JsonObject();
+ items25.addProperty("point_amount", 5);
+ items25.addProperty("point_amount_unit", "percent");
+ items25.addProperty("subject_more_than_or_equal", 1000);
+ items25.addProperty("subject_less_than", 5000);
+ JsonObject items26 = new JsonObject();
+ items26.addProperty("point_amount", 5);
+ items26.addProperty("point_amount_unit", "percent");
+ items26.addProperty("subject_more_than_or_equal", 1000);
+ items26.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"a9fd01a2-26c5-4d2e-bc85-49afa92b1162","46d1d815-4464-4094-85fd-e4e619357cf5","f2289ba9-452f-45cb-a420-c6e204708cf9","ef4c18db-fa66-4015-a3ea-c3594ddab61d","6a6318ce-7418-47c4-9678-a53471c9113e","20207195-daab-4941-b26f-34f6129a4971","4dd73196-b150-464d-96da-e841fb7c08a9","0e3c0fb8-6329-4069-b217-552f5dac81ba","7be81458-be4a-4139-9523-b4c54f3dea8d"})
- .maxPointAmount(2592)
- .existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(3132)
- .minimumNumberOfAmount(1636)
- .minimumNumberOfProducts(2463)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10})
- .applicableDaysOfWeek(new Integer[]{1,1,6,0,3,6,0,4,4,1})
- .blacklistedProductRules(new Object[]{items11,items12,items13,items14,items15,items16})
- .productBasedPointRules(new Object[]{items17})
- .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24})
+ .blacklistedShopIds(new String[]{"c73381cc-7496-4799-aa8c-031cb958bcce","319cd180-8686-45e8-bd24-af8b3910a4db","470df91d-9238-4573-a21f-899c871bcf9f","c3e850fe-cd8a-4311-b1b4-8adbb65b5c63"})
+ .maxPointAmount(3008)
+ .existInEachProductGroups(false)
+ .minimumNumberForCombinationPurchase(7084)
+ .minimumNumberOfAmount(353)
+ .minimumNumberOfProducts(2084)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
+ .applicableDaysOfWeek(new Integer[]{2,5,0,5,0,4,3,5})
+ .blacklistedProductRules(new Object[]{items10,items11,items12,items13,items14,items15})
+ .productBasedPointRules(new Object[]{items16,items17})
+ .amountBasedPointRules(new Object[]{items18,items19,items20,items21,items22,items23,items24,items25,items26})
.subject("money")
- .setExclusive(false)
- .pointExpiresInDays(9941)
- .pointExpiresAt("2024-01-26T17:16:23.000000Z")
- .status("enabled")
- .description("11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1a")
- .event("topup")
- .priority(6965)
- .endsAt("2022-02-03T05:48:08.000000Z")
- .startsAt("2023-04-28T08:13:57.000000Z")
- .name("GpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxV");
+ .setExclusive(true)
+ .pointExpiresInDays(7122)
+ .pointExpiresAt("2025-07-29T20:42:33.000000Z")
+ .status("disabled")
+ .description("CUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWufJQM")
+ .event("payment")
+ .priority(2133)
+ .endsAt("2024-02-28T22:49:21.000000Z")
+ .startsAt("2026-04-24T11:25:08.000000Z")
+ .name("40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREj");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3149,32 +3403,32 @@ void test48() throws ConnectionError, ProcessingError {
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
+ items4.addProperty("from", "12:00");
+ items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("classification_code", "c123");
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("classification_code", "c123");
+ items8.addProperty("from", "12:00");
+ items8.addProperty("to", "23:59");
JsonObject items9 = new JsonObject();
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("classification_code", "c123");
+ items9.addProperty("from", "12:00");
+ items9.addProperty("to", "23:59");
JsonObject items10 = new JsonObject();
- items10.addProperty("product_code", "4912345678904");
- items10.addProperty("classification_code", "c123");
+ items10.addProperty("from", "12:00");
+ items10.addProperty("to", "23:59");
JsonObject items11 = new JsonObject();
items11.addProperty("product_code", "4912345678904");
items11.addProperty("classification_code", "c123");
@@ -3205,33 +3459,28 @@ void test48() throws ConnectionError, ProcessingError {
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("product_code", "4912345678904");
- items16.addProperty("is_multiply_by_count", true);
- items16.addProperty("required_count", 2);
+ items16.addProperty("subject_more_than_or_equal", 1000);
+ items16.addProperty("subject_less_than", 5000);
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("product_code", "4912345678904");
- items17.addProperty("is_multiply_by_count", true);
- items17.addProperty("required_count", 2);
+ items17.addProperty("subject_more_than_or_equal", 1000);
+ items17.addProperty("subject_less_than", 5000);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
- items18.addProperty("product_code", "4912345678904");
- items18.addProperty("is_multiply_by_count", true);
- items18.addProperty("required_count", 2);
+ items18.addProperty("subject_more_than_or_equal", 1000);
+ items18.addProperty("subject_less_than", 5000);
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("product_code", "4912345678904");
- items19.addProperty("is_multiply_by_count", true);
- items19.addProperty("required_count", 2);
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
JsonObject items20 = new JsonObject();
items20.addProperty("point_amount", 5);
items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("product_code", "4912345678904");
- items20.addProperty("is_multiply_by_count", true);
- items20.addProperty("required_count", 2);
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
JsonObject items21 = new JsonObject();
items21.addProperty("point_amount", 5);
items21.addProperty("point_amount_unit", "percent");
@@ -3242,57 +3491,32 @@ void test48() throws ConnectionError, ProcessingError {
items22.addProperty("point_amount_unit", "percent");
items22.addProperty("subject_more_than_or_equal", 1000);
items22.addProperty("subject_less_than", 5000);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
- JsonObject items24 = new JsonObject();
- items24.addProperty("point_amount", 5);
- items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("subject_more_than_or_equal", 1000);
- items24.addProperty("subject_less_than", 5000);
- JsonObject items25 = new JsonObject();
- items25.addProperty("point_amount", 5);
- items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("subject_more_than_or_equal", 1000);
- items25.addProperty("subject_less_than", 5000);
- JsonObject items26 = new JsonObject();
- items26.addProperty("point_amount", 5);
- items26.addProperty("point_amount_unit", "percent");
- items26.addProperty("subject_more_than_or_equal", 1000);
- items26.addProperty("subject_less_than", 5000);
- JsonObject items27 = new JsonObject();
- items27.addProperty("point_amount", 5);
- items27.addProperty("point_amount_unit", "percent");
- items27.addProperty("subject_more_than_or_equal", 1000);
- items27.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"f542e138-d461-4ed6-801a-df195e015e8c","d1efe22b-c2ad-49cf-b007-15e9de1c5aad","039c3553-9bb1-4d45-9165-16cba294d5e5","ed700b32-da1f-4f45-a7a0-c7ee2c7f2e13"})
- .maxTotalPointAmount(4215)
- .maxPointAmount(2733)
+ .blacklistedShopIds(new String[]{"e09e462f-396d-43fc-b980-679ecea45ca0","6d66d3a7-5fdf-4da0-b1ca-1c3b4341bf92"})
+ .maxTotalPointAmount(9324)
+ .maxPointAmount(4294)
.existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(5343)
- .minimumNumberOfAmount(967)
- .minimumNumberOfProducts(6330)
- .applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{4,5,2,3,2,0})
- .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9,items10,items11})
- .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17,items18,items19,items20})
- .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27})
- .subject("all")
- .setExclusive(true)
- .pointExpiresInDays(566)
- .pointExpiresAt("2022-10-10T20:59:11.000000Z")
- .status("disabled")
- .description("pEZQNOtI")
- .event("topup")
- .priority(1159)
- .endsAt("2020-02-14T18:41:22.000000Z")
- .startsAt("2023-02-14T00:23:45.000000Z")
- .name("p7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN");
+ .minimumNumberForCombinationPurchase(9703)
+ .minimumNumberOfAmount(9091)
+ .minimumNumberOfProducts(2156)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9,items10})
+ .applicableDaysOfWeek(new Integer[]{5,5})
+ .blacklistedProductRules(new Object[]{items11})
+ .productBasedPointRules(new Object[]{items12,items13,items14,items15})
+ .amountBasedPointRules(new Object[]{items16,items17,items18,items19,items20,items21,items22})
+ .subject("money")
+ .setExclusive(false)
+ .pointExpiresInDays(1399)
+ .pointExpiresAt("2025-08-14T08:17:00.000000Z")
+ .status("enabled")
+ .description("iMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKfS7zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL")
+ .event("payment")
+ .priority(4409)
+ .endsAt("2026-01-26T14:48:08.000000Z")
+ .startsAt("2024-11-30T01:31:47.000000Z")
+ .name("APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3331,8 +3555,8 @@ void test49() throws ConnectionError, ProcessingError {
items7.addProperty("from", "12:00");
items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("classification_code", "c123");
+ items8.addProperty("from", "12:00");
+ items8.addProperty("to", "23:59");
JsonObject items9 = new JsonObject();
items9.addProperty("product_code", "4912345678904");
items9.addProperty("classification_code", "c123");
@@ -3358,8 +3582,11 @@ void test49() throws ConnectionError, ProcessingError {
items16.addProperty("product_code", "4912345678904");
items16.addProperty("classification_code", "c123");
JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
items17.addProperty("product_code", "4912345678904");
- items17.addProperty("classification_code", "c123");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
@@ -3369,92 +3596,35 @@ void test49() throws ConnectionError, ProcessingError {
JsonObject items19 = new JsonObject();
items19.addProperty("point_amount", 5);
items19.addProperty("point_amount_unit", "percent");
- items19.addProperty("product_code", "4912345678904");
- items19.addProperty("is_multiply_by_count", true);
- items19.addProperty("required_count", 2);
- JsonObject items20 = new JsonObject();
- items20.addProperty("point_amount", 5);
- items20.addProperty("point_amount_unit", "percent");
- items20.addProperty("product_code", "4912345678904");
- items20.addProperty("is_multiply_by_count", true);
- items20.addProperty("required_count", 2);
- JsonObject items21 = new JsonObject();
- items21.addProperty("point_amount", 5);
- items21.addProperty("point_amount_unit", "percent");
- items21.addProperty("subject_more_than_or_equal", 1000);
- items21.addProperty("subject_less_than", 5000);
- JsonObject items22 = new JsonObject();
- items22.addProperty("point_amount", 5);
- items22.addProperty("point_amount_unit", "percent");
- items22.addProperty("subject_more_than_or_equal", 1000);
- items22.addProperty("subject_less_than", 5000);
- JsonObject items23 = new JsonObject();
- items23.addProperty("point_amount", 5);
- items23.addProperty("point_amount_unit", "percent");
- items23.addProperty("subject_more_than_or_equal", 1000);
- items23.addProperty("subject_less_than", 5000);
- JsonObject items24 = new JsonObject();
- items24.addProperty("point_amount", 5);
- items24.addProperty("point_amount_unit", "percent");
- items24.addProperty("subject_more_than_or_equal", 1000);
- items24.addProperty("subject_less_than", 5000);
- JsonObject items25 = new JsonObject();
- items25.addProperty("point_amount", 5);
- items25.addProperty("point_amount_unit", "percent");
- items25.addProperty("subject_more_than_or_equal", 1000);
- items25.addProperty("subject_less_than", 5000);
- JsonObject items26 = new JsonObject();
- items26.addProperty("point_amount", 5);
- items26.addProperty("point_amount_unit", "percent");
- items26.addProperty("subject_more_than_or_equal", 1000);
- items26.addProperty("subject_less_than", 5000);
- JsonObject items27 = new JsonObject();
- items27.addProperty("point_amount", 5);
- items27.addProperty("point_amount_unit", "percent");
- items27.addProperty("subject_more_than_or_equal", 1000);
- items27.addProperty("subject_less_than", 5000);
- JsonObject items28 = new JsonObject();
- items28.addProperty("point_amount", 5);
- items28.addProperty("point_amount_unit", "percent");
- items28.addProperty("subject_more_than_or_equal", 1000);
- items28.addProperty("subject_less_than", 5000);
- JsonObject items29 = new JsonObject();
- items29.addProperty("point_amount", 5);
- items29.addProperty("point_amount_unit", "percent");
- items29.addProperty("subject_more_than_or_equal", 1000);
- items29.addProperty("subject_less_than", 5000);
- JsonObject items30 = new JsonObject();
- items30.addProperty("point_amount", 5);
- items30.addProperty("point_amount_unit", "percent");
- items30.addProperty("subject_more_than_or_equal", 1000);
- items30.addProperty("subject_less_than", 5000);
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"1d28ddb6-9d70-4ab0-85b7-3632e40ec371","00ab16d7-cda1-43de-bd9c-ac011c6923f4","e3db6fbd-a6cf-40bd-aa6b-59963b5f9513","b599481a-8c0e-4e5d-a990-24338764b7ab","93b282d1-a955-4d5b-9626-a6e20a7ea8aa","01a7d945-7853-4ac5-97d0-e3742d4e4763","4046c146-033b-4af9-b5fc-05879ae0b1a6"})
+ .blacklistedShopIds(new String[]{"bffe940e-c951-4dad-8516-bf1c09e11d8c"})
.applicableAccountMetadata(applicable_account_metadata)
- .maxTotalPointAmount(3855)
- .maxPointAmount(5034)
+ .maxTotalPointAmount(2667)
+ .maxPointAmount(1722)
.existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(6030)
- .minimumNumberOfAmount(2596)
- .minimumNumberOfProducts(5176)
- .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7})
- .applicableDaysOfWeek(new Integer[]{2,5,4,1,1,3})
- .blacklistedProductRules(new Object[]{items8,items9,items10,items11,items12,items13,items14,items15,items16,items17})
- .productBasedPointRules(new Object[]{items18,items19,items20})
- .amountBasedPointRules(new Object[]{items21,items22,items23,items24,items25,items26,items27,items28,items29,items30})
- .subject("all")
+ .minimumNumberForCombinationPurchase(3320)
+ .minimumNumberOfAmount(9892)
+ .minimumNumberOfProducts(6525)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8})
+ .applicableDaysOfWeek(new Integer[]{1,1,3,5,0,1,4})
+ .blacklistedProductRules(new Object[]{items9,items10,items11,items12,items13,items14,items15,items16})
+ .productBasedPointRules(new Object[]{items17,items18})
+ .amountBasedPointRules(new Object[]{items19})
+ .subject("money")
.setExclusive(true)
- .pointExpiresInDays(2977)
- .pointExpiresAt("2020-03-03T08:35:28.000000Z")
+ .pointExpiresInDays(7169)
+ .pointExpiresAt("2020-02-07T06:10:02.000000Z")
.status("disabled")
- .description("tFPfUfw")
- .event("payment")
- .priority(5091)
- .endsAt("2021-07-22T02:49:01.000000Z")
- .startsAt("2022-06-30T17:18:06.000000Z")
- .name("lmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFr");
+ .description("0")
+ .event("external-transaction")
+ .priority(1310)
+ .endsAt("2020-03-19T11:32:23.000000Z")
+ .startsAt("2026-02-24T12:17:09.000000Z")
+ .name("Floz09QK5UFuC5JXRVayFf6oyQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3478,56 +3648,35 @@ void test50() throws ConnectionError, ProcessingError {
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
+ items4.addProperty("from", "12:00");
+ items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("point_amount", 5);
- items5.addProperty("point_amount_unit", "percent");
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("is_multiply_by_count", true);
- items5.addProperty("required_count", 2);
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("point_amount", 5);
- items6.addProperty("point_amount_unit", "percent");
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("is_multiply_by_count", true);
- items6.addProperty("required_count", 2);
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
- items7.addProperty("point_amount", 5);
- items7.addProperty("point_amount_unit", "percent");
- items7.addProperty("product_code", "4912345678904");
- items7.addProperty("is_multiply_by_count", true);
- items7.addProperty("required_count", 2);
+ items7.addProperty("from", "12:00");
+ items7.addProperty("to", "23:59");
JsonObject items8 = new JsonObject();
- items8.addProperty("point_amount", 5);
- items8.addProperty("point_amount_unit", "percent");
- items8.addProperty("product_code", "4912345678904");
- items8.addProperty("is_multiply_by_count", true);
- items8.addProperty("required_count", 2);
+ items8.addProperty("from", "12:00");
+ items8.addProperty("to", "23:59");
JsonObject items9 = new JsonObject();
- items9.addProperty("point_amount", 5);
- items9.addProperty("point_amount_unit", "percent");
- items9.addProperty("product_code", "4912345678904");
- items9.addProperty("is_multiply_by_count", true);
- items9.addProperty("required_count", 2);
+ items9.addProperty("from", "12:00");
+ items9.addProperty("to", "23:59");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
items11.addProperty("product_code", "4912345678904");
- items11.addProperty("is_multiply_by_count", true);
- items11.addProperty("required_count", 2);
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
items12.addProperty("point_amount", 5);
items12.addProperty("point_amount_unit", "percent");
@@ -3543,23 +3692,27 @@ void test50() throws ConnectionError, ProcessingError {
JsonObject items14 = new JsonObject();
items14.addProperty("point_amount", 5);
items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("is_multiply_by_count", true);
+ items14.addProperty("required_count", 2);
JsonObject items15 = new JsonObject();
items15.addProperty("point_amount", 5);
items15.addProperty("point_amount_unit", "percent");
- items15.addProperty("subject_more_than_or_equal", 1000);
- items15.addProperty("subject_less_than", 5000);
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
JsonObject items16 = new JsonObject();
items16.addProperty("point_amount", 5);
items16.addProperty("point_amount_unit", "percent");
- items16.addProperty("subject_more_than_or_equal", 1000);
- items16.addProperty("subject_less_than", 5000);
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
JsonObject items17 = new JsonObject();
items17.addProperty("point_amount", 5);
items17.addProperty("point_amount_unit", "percent");
- items17.addProperty("subject_more_than_or_equal", 1000);
- items17.addProperty("subject_less_than", 5000);
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
JsonObject items18 = new JsonObject();
items18.addProperty("point_amount", 5);
items18.addProperty("point_amount_unit", "percent");
@@ -3571,33 +3724,33 @@ void test50() throws ConnectionError, ProcessingError {
items19.addProperty("subject_more_than_or_equal", 1000);
items19.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"87866201-3684-460e-8bb4-d74ee3fdd4c8","612b55d0-7982-42f6-aca8-2c14971f6c34","6173b38d-34d6-4368-b111-59cf150fbc06","de14c591-8264-4071-b9cb-51c8998b527c","afd176e3-fdc9-404f-a150-3d214e133368","20a4079e-971a-4eae-a222-a3ffb7fa7cf6"})
+ .blacklistedShopIds(new String[]{"b1aceb95-607f-44d3-8d73-fc8914e49b5b","be383a1b-e8f3-41ba-a941-5a6a8cd10f18","d56572cb-0ed7-438d-858a-fff9324e4ffa","1030e231-bd82-4c16-9bc3-c82b366f28f6","2ca4280a-e9ef-4836-bfe3-2cf6ee7fb982","858d9dc5-7b3a-4447-84d1-364e934bfd73"})
.applicableTransactionMetadata(applicable_transaction_metadata)
.applicableAccountMetadata(applicable_account_metadata)
- .maxTotalPointAmount(906)
- .maxPointAmount(3467)
+ .maxTotalPointAmount(4214)
+ .maxPointAmount(1383)
.existInEachProductGroups(false)
- .minimumNumberForCombinationPurchase(3119)
- .minimumNumberOfAmount(872)
- .minimumNumberOfProducts(1504)
- .applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{5})
- .blacklistedProductRules(new Object[]{items2,items3,items4})
- .productBasedPointRules(new Object[]{items5,items6,items7,items8,items9,items10,items11,items12,items13})
- .amountBasedPointRules(new Object[]{items14,items15,items16,items17,items18,items19})
+ .minimumNumberForCombinationPurchase(3357)
+ .minimumNumberOfAmount(6612)
+ .minimumNumberOfProducts(2430)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6,items7,items8,items9})
+ .applicableDaysOfWeek(new Integer[]{0,2,1,6,6,2,1,4,1,3})
+ .blacklistedProductRules(new Object[]{items10,items11})
+ .productBasedPointRules(new Object[]{items12,items13,items14,items15,items16,items17})
+ .amountBasedPointRules(new Object[]{items18,items19})
.subject("all")
.setExclusive(false)
- .pointExpiresInDays(4508)
- .pointExpiresAt("2021-04-28T08:51:45.000000Z")
+ .pointExpiresInDays(4483)
+ .pointExpiresAt("2026-02-10T14:51:45.000000Z")
.status("enabled")
- .description("T9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbR")
- .event("payment")
- .priority(5945)
- .endsAt("2022-04-28T11:37:24.000000Z")
- .startsAt("2024-05-22T20:52:59.000000Z")
- .name("UhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGS");
+ .description("NQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLID")
+ .event("external-transaction")
+ .priority(7153)
+ .endsAt("2020-03-04T16:12:10.000000Z")
+ .startsAt("2020-05-16T21:54:47.000000Z")
+ .name("3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -3621,20 +3774,20 @@ void test51() throws ConnectionError, ProcessingError {
items.addProperty("from", "12:00");
items.addProperty("to", "23:59");
JsonObject items2 = new JsonObject();
- items2.addProperty("product_code", "4912345678904");
- items2.addProperty("classification_code", "c123");
+ items2.addProperty("from", "12:00");
+ items2.addProperty("to", "23:59");
JsonObject items3 = new JsonObject();
- items3.addProperty("product_code", "4912345678904");
- items3.addProperty("classification_code", "c123");
+ items3.addProperty("from", "12:00");
+ items3.addProperty("to", "23:59");
JsonObject items4 = new JsonObject();
- items4.addProperty("product_code", "4912345678904");
- items4.addProperty("classification_code", "c123");
+ items4.addProperty("from", "12:00");
+ items4.addProperty("to", "23:59");
JsonObject items5 = new JsonObject();
- items5.addProperty("product_code", "4912345678904");
- items5.addProperty("classification_code", "c123");
+ items5.addProperty("from", "12:00");
+ items5.addProperty("to", "23:59");
JsonObject items6 = new JsonObject();
- items6.addProperty("product_code", "4912345678904");
- items6.addProperty("classification_code", "c123");
+ items6.addProperty("from", "12:00");
+ items6.addProperty("to", "23:59");
JsonObject items7 = new JsonObject();
items7.addProperty("product_code", "4912345678904");
items7.addProperty("classification_code", "c123");
@@ -3645,60 +3798,88 @@ void test51() throws ConnectionError, ProcessingError {
items9.addProperty("product_code", "4912345678904");
items9.addProperty("classification_code", "c123");
JsonObject items10 = new JsonObject();
- items10.addProperty("point_amount", 5);
- items10.addProperty("point_amount_unit", "percent");
items10.addProperty("product_code", "4912345678904");
- items10.addProperty("is_multiply_by_count", true);
- items10.addProperty("required_count", 2);
+ items10.addProperty("classification_code", "c123");
JsonObject items11 = new JsonObject();
- items11.addProperty("point_amount", 5);
- items11.addProperty("point_amount_unit", "percent");
- items11.addProperty("subject_more_than_or_equal", 1000);
- items11.addProperty("subject_less_than", 5000);
+ items11.addProperty("product_code", "4912345678904");
+ items11.addProperty("classification_code", "c123");
JsonObject items12 = new JsonObject();
- items12.addProperty("point_amount", 5);
- items12.addProperty("point_amount_unit", "percent");
- items12.addProperty("subject_more_than_or_equal", 1000);
- items12.addProperty("subject_less_than", 5000);
+ items12.addProperty("product_code", "4912345678904");
+ items12.addProperty("classification_code", "c123");
JsonObject items13 = new JsonObject();
- items13.addProperty("point_amount", 5);
- items13.addProperty("point_amount_unit", "percent");
- items13.addProperty("subject_more_than_or_equal", 1000);
- items13.addProperty("subject_less_than", 5000);
+ items13.addProperty("product_code", "4912345678904");
+ items13.addProperty("classification_code", "c123");
JsonObject items14 = new JsonObject();
- items14.addProperty("point_amount", 5);
- items14.addProperty("point_amount_unit", "percent");
- items14.addProperty("subject_more_than_or_equal", 1000);
- items14.addProperty("subject_less_than", 5000);
+ items14.addProperty("product_code", "4912345678904");
+ items14.addProperty("classification_code", "c123");
+ JsonObject items15 = new JsonObject();
+ items15.addProperty("point_amount", 5);
+ items15.addProperty("point_amount_unit", "percent");
+ items15.addProperty("product_code", "4912345678904");
+ items15.addProperty("is_multiply_by_count", true);
+ items15.addProperty("required_count", 2);
+ JsonObject items16 = new JsonObject();
+ items16.addProperty("point_amount", 5);
+ items16.addProperty("point_amount_unit", "percent");
+ items16.addProperty("product_code", "4912345678904");
+ items16.addProperty("is_multiply_by_count", true);
+ items16.addProperty("required_count", 2);
+ JsonObject items17 = new JsonObject();
+ items17.addProperty("point_amount", 5);
+ items17.addProperty("point_amount_unit", "percent");
+ items17.addProperty("product_code", "4912345678904");
+ items17.addProperty("is_multiply_by_count", true);
+ items17.addProperty("required_count", 2);
+ JsonObject items18 = new JsonObject();
+ items18.addProperty("point_amount", 5);
+ items18.addProperty("point_amount_unit", "percent");
+ items18.addProperty("product_code", "4912345678904");
+ items18.addProperty("is_multiply_by_count", true);
+ items18.addProperty("required_count", 2);
+ JsonObject items19 = new JsonObject();
+ items19.addProperty("point_amount", 5);
+ items19.addProperty("point_amount_unit", "percent");
+ items19.addProperty("subject_more_than_or_equal", 1000);
+ items19.addProperty("subject_less_than", 5000);
+ JsonObject items20 = new JsonObject();
+ items20.addProperty("point_amount", 5);
+ items20.addProperty("point_amount_unit", "percent");
+ items20.addProperty("subject_more_than_or_equal", 1000);
+ items20.addProperty("subject_less_than", 5000);
+ JsonObject items21 = new JsonObject();
+ items21.addProperty("point_amount", 5);
+ items21.addProperty("point_amount_unit", "percent");
+ items21.addProperty("subject_more_than_or_equal", 1000);
+ items21.addProperty("subject_less_than", 5000);
Request request = new UpdateCampaign(
- "651b8291-64e3-477d-9712-e2ab96cd0d6c"
+ "0f873a24-95a4-4106-85ee-0e962fbf9269"
)
- .blacklistedShopIds(new String[]{"579d66c0-542a-4ea0-9ea4-11c26d44c7b9","7ab22c73-a2cd-4a2f-bbc3-3b16decc2dec","64aef242-d113-4316-bc93-4225add7aa61","28b2f27e-9446-4fea-9af4-8abd04056fda"})
- .budgetCapsAmount(1576527131)
+ .blacklistedShopIds(new String[]{"d7e622cb-3a09-4dbf-b558-7df9f75cdbd2","4798d367-6c98-48db-92c7-98ba0a7865e6","3915abd5-10e6-4910-8ec5-e84e334fc160"})
+ .budgetCapsAmount(1183958676)
.applicableTransactionMetadata(applicable_transaction_metadata)
.applicableAccountMetadata(applicable_account_metadata)
- .maxTotalPointAmount(3267)
- .maxPointAmount(6431)
+ .maxTotalPointAmount(2946)
+ .maxPointAmount(1981)
.existInEachProductGroups(true)
- .minimumNumberForCombinationPurchase(6991)
- .minimumNumberOfAmount(9120)
- .minimumNumberOfProducts(1817)
- .applicableTimeRanges(new Object[]{items})
- .applicableDaysOfWeek(new Integer[]{4,1,2,5})
- .blacklistedProductRules(new Object[]{items2,items3,items4,items5,items6,items7,items8,items9})
- .productBasedPointRules(new Object[]{items10})
- .amountBasedPointRules(new Object[]{items11,items12,items13,items14})
- .subject("money")
+ .minimumNumberForCombinationPurchase(2826)
+ .minimumNumberOfAmount(9598)
+ .minimumNumberOfProducts(69)
+ .applicableTimeRanges(new Object[]{items,items2,items3,items4,items5,items6})
+ .applicableDaysOfWeek(new Integer[]{4,1,2,3,3,2,1,2,2})
+ .blacklistedProductRules(new Object[]{items7,items8,items9,items10,items11,items12,items13,items14})
+ .productBasedPointRules(new Object[]{items15,items16,items17,items18})
+ .amountBasedPointRules(new Object[]{items19,items20,items21})
+ .subject("all")
.setExclusive(true)
- .pointExpiresInDays(6007)
- .pointExpiresAt("2023-02-06T09:56:17.000000Z")
- .status("enabled")
- .description("0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXon")
- .event("topup")
- .priority(3727)
- .endsAt("2020-03-14T12:41:41.000000Z")
- .startsAt("2023-10-21T08:38:31.000000Z")
- .name("mfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3");
+ .pointExpiresInDays(4931)
+ .pointExpiresAt("2021-10-05T22:54:06.000000Z")
+ .status("disabled")
+ .description("bdWS6JCIuNd5OFNrZXE")
+ .event("payment")
+ .priority(9389)
+ .endsAt("2025-03-06T15:47:18.000000Z")
+ .startsAt("2025-08-25T00:12:51.000000Z")
+ .name("2QaNrZpzYfcTDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9x");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java
index 61925332..193e904d 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateCashtrayTest.java
@@ -12,7 +12,7 @@ public class UpdateCashtrayTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateCashtray(
- "5dac37c8-967a-4962-8818-43f58aac4ee3"
+ "0a5e2085-ec15-4d41-a6a2-7dad34a69426"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateCashtray(
- "5dac37c8-967a-4962-8818-43f58aac4ee3"
+ "0a5e2085-ec15-4d41-a6a2-7dad34a69426"
)
- .expiresIn(2373);
+ .expiresIn(8400);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateCashtray(
- "5dac37c8-967a-4962-8818-43f58aac4ee3"
+ "0a5e2085-ec15-4d41-a6a2-7dad34a69426"
)
- .description("hID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5")
- .expiresIn(6071);
+ .description("BDBgRA")
+ .expiresIn(7272);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,11 +63,11 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateCashtray(
- "5dac37c8-967a-4962-8818-43f58aac4ee3"
+ "0a5e2085-ec15-4d41-a6a2-7dad34a69426"
)
- .amount(6557.0)
- .description("YJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhr")
- .expiresIn(9919);
+ .amount(5101.0)
+ .description("xZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuVzdT2")
+ .expiresIn(5777);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java
index c7bf6f8c..4a8da92b 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateCheckTest.java
@@ -12,7 +12,7 @@ public class UpdateCheckTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
.setDisabled(true);
try {
@@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .bearPointAccount("0ef62065-a6e8-4745-b01e-b4465ebf2893")
+ .bearPointAccount("58c6fc1e-aad0-4008-ab38-5edabe3ef82d")
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .pointExpiresInDays(8115)
- .bearPointAccount("50b4b7e4-86c0-4731-a6c0-d000e06e77f3")
+ .pointExpiresInDays(4917)
+ .bearPointAccount("9ec4d7b3-6797-4a91-82b0-fdf90cdc7109")
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .pointExpiresAt("2022-09-17T04:14:34.000000Z")
- .pointExpiresInDays(6114)
- .bearPointAccount("120cd1dc-82f1-40db-b4e3-d8738f704eaf")
- .setDisabled(true);
+ .pointExpiresAt("2023-02-13T17:32:32.000000Z")
+ .pointExpiresInDays(8643)
+ .bearPointAccount("c0540a40-0adc-4b7b-9bb9-59edfa1e7d66")
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,13 +102,13 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .expiresAt("2021-12-26T07:08:50.000000Z")
- .pointExpiresAt("2020-04-20T21:24:42.000000Z")
- .pointExpiresInDays(9361)
- .bearPointAccount("add2afb3-924a-4e3f-b238-e78e930de5f8")
- .setDisabled(false);
+ .expiresAt("2022-06-05T04:11:55.000000Z")
+ .pointExpiresAt("2020-12-11T01:27:46.000000Z")
+ .pointExpiresInDays(4491)
+ .bearPointAccount("b9ac68ce-2cea-490d-8793-427b16d1e03d")
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .usageLimit(5850)
- .expiresAt("2022-09-20T22:54:41.000000Z")
- .pointExpiresAt("2022-06-21T06:26:38.000000Z")
- .pointExpiresInDays(9091)
- .bearPointAccount("e6b60915-66a2-463e-b156-c43425c0e7bf")
- .setDisabled(false);
+ .usageLimit(2417)
+ .expiresAt("2026-01-18T10:29:27.000000Z")
+ .pointExpiresAt("2020-10-13T06:16:41.000000Z")
+ .pointExpiresInDays(4862)
+ .bearPointAccount("41af95e2-3d54-4991-b94f-c977e4835ef1")
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .setOnetime(false)
- .usageLimit(6690)
- .expiresAt("2021-06-13T06:42:46.000000Z")
- .pointExpiresAt("2024-02-20T12:53:17.000000Z")
- .pointExpiresInDays(3236)
- .bearPointAccount("59559e61-6e5c-4a87-8d38-dd650e4cb294")
- .setDisabled(true);
+ .setOnetime(true)
+ .usageLimit(5924)
+ .expiresAt("2023-09-25T18:35:42.000000Z")
+ .pointExpiresAt("2022-04-06T00:32:24.000000Z")
+ .pointExpiresInDays(8158)
+ .bearPointAccount("7b996ceb-e2e1-48d0-b02c-5cf7705995fd")
+ .setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -168,15 +168,15 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .description("KBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLy")
+ .description("D0eLyZpFNZ79bus52pNLLPo")
.setOnetime(false)
- .usageLimit(666)
- .expiresAt("2020-05-04T10:41:03.000000Z")
- .pointExpiresAt("2020-03-06T08:42:24.000000Z")
- .pointExpiresInDays(4807)
- .bearPointAccount("f22beb4e-a05a-4d14-b711-7187892faaa4")
+ .usageLimit(7584)
+ .expiresAt("2025-03-24T19:47:24.000000Z")
+ .pointExpiresAt("2022-08-06T09:15:36.000000Z")
+ .pointExpiresInDays(7861)
+ .bearPointAccount("70108e13-b814-4953-921d-722526c89c5d")
.setDisabled(false);
try {
PartnerAPITest.getClient().send(request);
@@ -192,16 +192,16 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .pointAmount(7166.0)
- .description("9bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPH")
- .setOnetime(true)
- .usageLimit(6288)
- .expiresAt("2023-09-02T05:02:34.000000Z")
- .pointExpiresAt("2023-01-19T14:30:30.000000Z")
- .pointExpiresInDays(7609)
- .bearPointAccount("618163de-18d6-4441-aa8e-45f8f4b0868f")
+ .pointAmount(7063.0)
+ .description("CEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27")
+ .setOnetime(false)
+ .usageLimit(2449)
+ .expiresAt("2020-08-03T06:46:10.000000Z")
+ .pointExpiresAt("2026-06-03T16:13:08.000000Z")
+ .pointExpiresInDays(2622)
+ .bearPointAccount("a69aa3f1-6679-49e2-bfd4-193394ba5d95")
.setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
@@ -217,18 +217,18 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new UpdateCheck(
- "b0957c83-aab4-424b-b998-c121e5e95f6a"
+ "42e4c570-334e-4c3e-98b1-216afe7ba057"
)
- .moneyAmount(9425.0)
- .pointAmount(1504.0)
- .description("n6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqy")
+ .moneyAmount(4647.0)
+ .pointAmount(6854.0)
+ .description("WXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtd")
.setOnetime(true)
- .usageLimit(383)
- .expiresAt("2022-04-12T23:40:04.000000Z")
- .pointExpiresAt("2021-03-06T21:54:59.000000Z")
- .pointExpiresInDays(7574)
- .bearPointAccount("eda3cfd8-5227-4ac6-939b-581886060b57")
- .setDisabled(false);
+ .usageLimit(9498)
+ .expiresAt("2022-07-24T17:11:56.000000Z")
+ .pointExpiresAt("2020-01-26T22:14:55.000000Z")
+ .pointExpiresInDays(1480)
+ .bearPointAccount("98e54544-381c-4b93-956d-36e72f84859e")
+ .setDisabled(true);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java
index dd408019..fac68820 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateCouponTest.java
@@ -12,9 +12,9 @@ public class UpdateCouponTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8569);
+ .discountAmount(7047);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -29,10 +29,10 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(6935)
- .name("8UduAdQ5IH0TK2HSa");
+ .discountAmount(7742)
+ .name("sW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMD");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -47,11 +47,11 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8052)
- .description("A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo")
- .name("CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FA");
+ .discountAmount(3187)
+ .description("qe8NITOunWJGeGMfsCgwJoSsvq0p2")
+ .name("MuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWGSp4I");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -66,12 +66,12 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8042)
- .discountUpperLimit(1963)
- .description("tbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6")
- .name("Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S");
+ .discountAmount(9422)
+ .discountUpperLimit(344)
+ .description("vAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXba")
+ .name("EKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81VvpXr3");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -86,13 +86,13 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(6201)
- .startsAt("2024-05-22T11:46:17.000000Z")
- .discountUpperLimit(7049)
- .description("Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4Lx")
- .name("Yp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtO");
+ .discountAmount(2316)
+ .startsAt("2023-01-28T09:54:45.000000Z")
+ .discountUpperLimit(7792)
+ .description("3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0Hph0EUCWBeCDLYnE6HiVXoG09ihrRj4")
+ .name("ejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCN");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -107,14 +107,14 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(2829)
- .endsAt("2021-12-12T09:02:22.000000Z")
- .startsAt("2023-03-24T23:29:09.000000Z")
- .discountUpperLimit(8481)
- .description("L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNR")
- .name("sJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAH");
+ .discountAmount(4625)
+ .endsAt("2021-06-17T18:33:16.000000Z")
+ .startsAt("2020-07-12T00:34:39.000000Z")
+ .discountUpperLimit(4025)
+ .description("9Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo4vEubGw6jVHah2jNyPqoWcQPdn")
+ .name("YsCcbQIY2");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -129,15 +129,15 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(1922)
- .displayStartsAt("2023-04-09T08:14:22.000000Z")
- .endsAt("2020-06-03T00:04:43.000000Z")
- .startsAt("2020-11-04T09:07:58.000000Z")
- .discountUpperLimit(8471)
- .description("z60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVu")
- .name("axHAAztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKF");
+ .discountAmount(8651)
+ .displayStartsAt("2020-10-06T03:13:34.000000Z")
+ .endsAt("2021-10-25T12:37:36.000000Z")
+ .startsAt("2022-12-29T18:51:50.000000Z")
+ .discountUpperLimit(7615)
+ .description("XsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuw")
+ .name("Uqi64YRTYtsOeEN9XbwlgwBy5OkIYk");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -152,16 +152,16 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8592)
- .displayEndsAt("2024-05-23T10:02:09.000000Z")
- .displayStartsAt("2024-01-20T05:34:47.000000Z")
- .endsAt("2020-05-11T15:53:17.000000Z")
- .startsAt("2021-11-24T22:53:36.000000Z")
- .discountUpperLimit(3664)
- .description("PjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3")
- .name("ijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWuf");
+ .discountAmount(4639)
+ .displayEndsAt("2020-06-17T12:30:53.000000Z")
+ .displayStartsAt("2025-09-27T12:51:13.000000Z")
+ .endsAt("2023-06-25T10:14:41.000000Z")
+ .startsAt("2021-12-31T10:33:10.000000Z")
+ .discountUpperLimit(4276)
+ .description("PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH")
+ .name("jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2R");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -176,17 +176,17 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8580)
+ .discountAmount(5114)
.setDisabled(true)
- .displayEndsAt("2022-09-29T02:55:39.000000Z")
- .displayStartsAt("2021-02-10T01:03:09.000000Z")
- .endsAt("2022-11-06T07:41:41.000000Z")
- .startsAt("2020-04-06T13:06:29.000000Z")
- .discountUpperLimit(6001)
- .description("G40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecI")
- .name("l74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUX");
+ .displayEndsAt("2024-07-30T00:44:35.000000Z")
+ .displayStartsAt("2020-03-12T16:24:09.000000Z")
+ .endsAt("2022-09-03T11:34:10.000000Z")
+ .startsAt("2020-09-23T10:03:41.000000Z")
+ .discountUpperLimit(2553)
+ .description("Iq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu08AkjC0WPKbQvYow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4")
+ .name("IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -201,18 +201,18 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8570)
- .setHidden(true)
+ .discountAmount(9454)
+ .setHidden(false)
.setDisabled(false)
- .displayEndsAt("2020-10-21T09:48:49.000000Z")
- .displayStartsAt("2023-06-28T22:41:05.000000Z")
- .endsAt("2022-06-24T14:40:49.000000Z")
- .startsAt("2021-09-05T08:59:36.000000Z")
- .discountUpperLimit(5166)
- .description("REjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKfS7zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ")
- .name("rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC");
+ .displayEndsAt("2020-06-28T01:32:12.000000Z")
+ .displayStartsAt("2024-10-03T11:32:07.000000Z")
+ .endsAt("2023-07-18T18:05:32.000000Z")
+ .startsAt("2022-04-22T17:59:46.000000Z")
+ .discountUpperLimit(7677)
+ .description("B0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJafcwBDpLTRN1a")
+ .name("0lar5cvmWk6HP3Edv56q9t5VGuIJJq");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -227,19 +227,19 @@ void test9() throws ConnectionError, ProcessingError {
@Test
void test10() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(9501)
+ .discountAmount(2626)
.setPublic(false)
- .setHidden(false)
- .setDisabled(true)
- .displayEndsAt("2021-03-27T16:01:28.000000Z")
- .displayStartsAt("2022-01-12T06:57:26.000000Z")
- .endsAt("2023-12-15T21:42:57.000000Z")
- .startsAt("2022-01-25T09:25:13.000000Z")
- .discountUpperLimit(3382)
- .description("yQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkw")
- .name("C6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbV");
+ .setHidden(true)
+ .setDisabled(false)
+ .displayEndsAt("2021-09-21T01:39:02.000000Z")
+ .displayStartsAt("2021-05-16T12:10:49.000000Z")
+ .endsAt("2020-09-26T16:36:18.000000Z")
+ .startsAt("2026-02-07T08:31:35.000000Z")
+ .discountUpperLimit(3402)
+ .description("ljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQw")
+ .name("dLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2h");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -254,20 +254,20 @@ void test10() throws ConnectionError, ProcessingError {
@Test
void test11() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(4884)
- .code("Nuqq")
+ .discountAmount(289)
+ .code("pBOt")
.setPublic(true)
.setHidden(false)
- .setDisabled(true)
- .displayEndsAt("2024-01-19T14:39:22.000000Z")
- .displayStartsAt("2020-10-29T23:27:00.000000Z")
- .endsAt("2022-03-24T20:14:37.000000Z")
- .startsAt("2022-09-21T08:59:37.000000Z")
- .discountUpperLimit(8700)
- .description("VdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCq")
- .name("bvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9");
+ .setDisabled(false)
+ .displayEndsAt("2020-05-30T06:37:58.000000Z")
+ .displayStartsAt("2022-11-13T10:49:00.000000Z")
+ .endsAt("2024-01-21T22:19:54.000000Z")
+ .startsAt("2025-06-18T05:45:20.000000Z")
+ .discountUpperLimit(8622)
+ .description("wu69vaYb020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHz")
+ .name("eXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -282,21 +282,21 @@ void test11() throws ConnectionError, ProcessingError {
@Test
void test12() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8882)
- .usageLimit(5765)
- .code("bnV3FEVOMM")
- .setPublic(true)
- .setHidden(true)
+ .discountAmount(9203)
+ .usageLimit(3799)
+ .code("FitjutUJJs")
+ .setPublic(false)
+ .setHidden(false)
.setDisabled(false)
- .displayEndsAt("2023-01-27T01:56:48.000000Z")
- .displayStartsAt("2024-07-13T16:36:59.000000Z")
- .endsAt("2023-08-13T04:41:18.000000Z")
- .startsAt("2024-08-07T10:48:03.000000Z")
- .discountUpperLimit(6304)
- .description("SgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpzYfcTDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9xJxJq4hHbOAXXY")
- .name("VgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkeP");
+ .displayEndsAt("2020-01-04T03:46:07.000000Z")
+ .displayStartsAt("2024-09-14T13:06:32.000000Z")
+ .endsAt("2022-06-11T23:14:15.000000Z")
+ .startsAt("2023-12-07T05:48:53.000000Z")
+ .discountUpperLimit(2081)
+ .description("NUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnUCUBMTsHj")
+ .name("SLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -311,22 +311,22 @@ void test12() throws ConnectionError, ProcessingError {
@Test
void test13() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(4539)
- .minAmount(4628)
- .usageLimit(8984)
- .code("prAJuqXJL")
- .setPublic(false)
+ .discountAmount(8237)
+ .minAmount(9265)
+ .usageLimit(8735)
+ .code("nws6Ne3")
+ .setPublic(true)
.setHidden(true)
.setDisabled(false)
- .displayEndsAt("2020-01-05T12:35:41.000000Z")
- .displayStartsAt("2022-11-05T08:42:48.000000Z")
- .endsAt("2021-09-27T23:52:02.000000Z")
- .startsAt("2022-03-31T21:30:07.000000Z")
- .discountUpperLimit(1625)
- .description("53kHtf9cD7bpNKlOmIqFEpEzlkbZXsHeK96R7zZjofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTB")
- .name("WthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV86");
+ .displayEndsAt("2025-02-15T14:46:15.000000Z")
+ .displayStartsAt("2024-11-20T06:08:32.000000Z")
+ .endsAt("2024-07-13T02:33:15.000000Z")
+ .startsAt("2024-03-25T23:42:28.000000Z")
+ .discountUpperLimit(6575)
+ .description("Hli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLio")
+ .name("RLUylhwp3jBXylmnz");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -341,23 +341,23 @@ void test13() throws ConnectionError, ProcessingError {
@Test
void test14() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8499)
- .setShopSpecified(false)
- .minAmount(179)
- .usageLimit(4444)
- .code("LMEPLj")
+ .discountAmount(646)
+ .setShopSpecified(true)
+ .minAmount(9945)
+ .usageLimit(2129)
+ .code("PT")
.setPublic(false)
- .setHidden(true)
+ .setHidden(false)
.setDisabled(false)
- .displayEndsAt("2024-05-19T14:02:16.000000Z")
- .displayStartsAt("2021-05-13T02:34:55.000000Z")
- .endsAt("2023-02-20T00:05:19.000000Z")
- .startsAt("2020-01-17T07:31:07.000000Z")
- .discountUpperLimit(5181)
- .description("E7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2MaByNhkorzLzXS")
- .name("7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFY");
+ .displayEndsAt("2024-07-02T12:36:12.000000Z")
+ .displayStartsAt("2026-04-25T18:39:36.000000Z")
+ .endsAt("2023-12-07T03:25:32.000000Z")
+ .startsAt("2021-07-20T16:53:31.000000Z")
+ .discountUpperLimit(2116)
+ .description("piIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cx")
+ .name("LSG8S4aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwA");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -372,24 +372,24 @@ void test14() throws ConnectionError, ProcessingError {
@Test
void test15() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(6440)
- .availableShopIds(new String[]{"8903de65-e06d-409b-ab7a-415a3bacd7f0","23dccdf6-20ad-4c86-848f-c8763e77e2ef","3d449d5c-ffe7-4c0c-b012-ec6c8d2cccbb","85d79f04-a867-4a6c-8c76-8532d645b254"})
+ .discountAmount(4250)
+ .availableShopIds(new String[]{"1c7f9dd4-435e-4c4e-9d3c-1d07b87bcc92","591461d9-24e1-4304-a513-b14c1160ad60","85e16aa7-7481-4123-b956-20b79a34bfc3","0060dd57-a2e4-4a5b-b26d-f016fb6c866b"})
.setShopSpecified(true)
- .minAmount(9057)
- .usageLimit(7685)
- .code("OF7q")
- .setPublic(true)
+ .minAmount(1975)
+ .usageLimit(1410)
+ .code("DR")
+ .setPublic(false)
.setHidden(true)
- .setDisabled(true)
- .displayEndsAt("2022-05-02T10:44:14.000000Z")
- .displayStartsAt("2023-05-05T19:51:56.000000Z")
- .endsAt("2020-12-25T09:57:39.000000Z")
- .startsAt("2020-01-10T18:15:38.000000Z")
- .discountUpperLimit(6999)
- .description("FW8mYG8iBpA9wK7FerKmMDJDN9kjnE")
- .name("AtWkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO");
+ .setDisabled(false)
+ .displayEndsAt("2023-03-29T21:30:53.000000Z")
+ .displayStartsAt("2021-08-21T20:28:40.000000Z")
+ .endsAt("2020-11-08T19:10:31.000000Z")
+ .startsAt("2025-12-21T03:03:36.000000Z")
+ .discountUpperLimit(1835)
+ .description("2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD")
+ .name("3wpFlmsW");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -404,25 +404,25 @@ void test15() throws ConnectionError, ProcessingError {
@Test
void test16() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(7859)
- .storageId("2cdaf362-15a4-432c-8e27-a8251a6cb20f")
- .availableShopIds(new String[]{"d6c31202-144d-44d3-a075-5acb4c302ebd","1128e664-2df1-4b33-86f3-f609ade1300e","61052515-5082-4f28-9eec-177d6ab7c647","d8952262-d18a-47eb-8807-51264406a515"})
+ .discountAmount(9333)
+ .storageId("7b1efe73-6a8a-45c3-b852-043e289186c7")
+ .availableShopIds(new String[]{"21907e94-d6c2-48cb-954a-c9e40cef0348","81ef2495-3b0b-4a1e-99cc-a490b2d391e6"})
.setShopSpecified(false)
- .minAmount(958)
- .usageLimit(5795)
- .code("xbbT2umOR")
- .setPublic(true)
+ .minAmount(2052)
+ .usageLimit(2745)
+ .code("axRbmzAo")
+ .setPublic(false)
.setHidden(true)
- .setDisabled(true)
- .displayEndsAt("2020-12-23T22:29:05.000000Z")
- .displayStartsAt("2021-12-10T07:01:50.000000Z")
- .endsAt("2020-01-27T09:11:32.000000Z")
- .startsAt("2022-08-29T03:00:12.000000Z")
- .discountUpperLimit(7014)
- .description("kPqeu7VG")
- .name("hCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEO");
+ .setDisabled(false)
+ .displayEndsAt("2021-03-28T19:05:30.000000Z")
+ .displayStartsAt("2020-10-12T16:02:21.000000Z")
+ .endsAt("2023-11-23T12:14:34.000000Z")
+ .startsAt("2023-12-30T07:49:05.000000Z")
+ .discountUpperLimit(9795)
+ .description("4")
+ .name("kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdv");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -437,10 +437,26 @@ void test16() throws ConnectionError, ProcessingError {
@Test
void test17() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(2060)
- .discountPercentage(8252.0);
+ .discountAmount(198)
+ .numRecipientsCap(7993)
+ .storageId("d9692cf3-b122-462e-8bf1-a4366a95d24d")
+ .availableShopIds(new String[]{"e36cbb54-9a4d-40e3-a830-cd9b16c58f5e","a967a7f4-dbff-4939-9e9f-864d107f7d4c","93304273-229c-4c84-aa58-7fbf3ed7067e","e8a77567-8f76-47c7-b845-ab9644ff9d59","e339238e-144b-408b-a2f3-98186fe992bf","f819cfd0-cd10-4822-bb1a-c6ae921d5960","684b4d70-3c3f-4801-ae42-006bc8199280","ce5365cf-261f-44fe-b0fa-65358e655ce8","ce8cd739-ac56-42c4-a004-7cfe2af7eb58"})
+ .setShopSpecified(true)
+ .minAmount(6207)
+ .usageLimit(9395)
+ .code("hsO0rj")
+ .setPublic(false)
+ .setHidden(false)
+ .setDisabled(false)
+ .displayEndsAt("2025-06-25T09:46:55.000000Z")
+ .displayStartsAt("2021-07-01T10:32:41.000000Z")
+ .endsAt("2024-03-15T01:25:55.000000Z")
+ .startsAt("2020-06-29T12:22:37.000000Z")
+ .discountUpperLimit(209)
+ .description("6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0")
+ .name("f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZg");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -455,11 +471,10 @@ void test17() throws ConnectionError, ProcessingError {
@Test
void test18() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(6260)
- .discountPercentage(6255.0)
- .name("1oTpzcZyDOIWVwoFQc");
+ .discountAmount(8275)
+ .discountPercentage(4933.0);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -474,12 +489,11 @@ void test18() throws ConnectionError, ProcessingError {
@Test
void test19() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(9817)
- .discountPercentage(9826.0)
- .description("DKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1YrzurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEK")
- .name("eHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHw");
+ .discountAmount(508)
+ .discountPercentage(6411.0)
+ .name("RTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweu");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -494,13 +508,12 @@ void test19() throws ConnectionError, ProcessingError {
@Test
void test20() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(1408)
- .discountPercentage(933.0)
- .discountUpperLimit(182)
- .description("AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOO")
- .name("DSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D");
+ .discountAmount(1962)
+ .discountPercentage(9494.0)
+ .description("GKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPBEjjxsN82R5bV7")
+ .name("h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2v");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -515,14 +528,13 @@ void test20() throws ConnectionError, ProcessingError {
@Test
void test21() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(6289)
- .discountPercentage(5503.0)
- .startsAt("2022-03-22T13:16:43.000000Z")
- .discountUpperLimit(8449)
- .description("6SGfEdpD0U")
- .name("VkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iM");
+ .discountAmount(4595)
+ .discountPercentage(8609.0)
+ .discountUpperLimit(4640)
+ .description("hFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX")
+ .name("0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9Aj");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -537,15 +549,14 @@ void test21() throws ConnectionError, ProcessingError {
@Test
void test22() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(826)
- .discountPercentage(5907.0)
- .endsAt("2020-01-10T04:04:58.000000Z")
- .startsAt("2022-11-05T13:54:18.000000Z")
- .discountUpperLimit(359)
- .description("Caf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJ")
- .name("pJRQwp9nn9cv0p2uygmHKqGnn");
+ .discountAmount(5970)
+ .discountPercentage(6188.0)
+ .startsAt("2024-08-24T02:13:39.000000Z")
+ .discountUpperLimit(1647)
+ .description("U1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEA")
+ .name("ThwDuq1zewsMIx1");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -560,16 +571,15 @@ void test22() throws ConnectionError, ProcessingError {
@Test
void test23() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(6817)
- .discountPercentage(2689.0)
- .displayStartsAt("2020-05-21T18:56:37.000000Z")
- .endsAt("2020-01-04T10:37:01.000000Z")
- .startsAt("2024-08-02T07:28:33.000000Z")
- .discountUpperLimit(7878)
- .description("to3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAX")
- .name("UrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZ");
+ .discountAmount(8329)
+ .discountPercentage(3836.0)
+ .endsAt("2025-12-25T22:39:41.000000Z")
+ .startsAt("2023-04-14T21:51:04.000000Z")
+ .discountUpperLimit(4555)
+ .description("cCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMatyDW12s5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2S")
+ .name("zg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoyWD3BHeU5bcdtREmG3PoPoUnVURoRDP0303M0EU");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -584,17 +594,16 @@ void test23() throws ConnectionError, ProcessingError {
@Test
void test24() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8544)
- .discountPercentage(1041.0)
- .displayEndsAt("2020-08-28T09:26:45.000000Z")
- .displayStartsAt("2023-08-28T18:10:27.000000Z")
- .endsAt("2022-11-29T12:21:33.000000Z")
- .startsAt("2020-03-08T19:47:16.000000Z")
- .discountUpperLimit(8307)
- .description("HuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuD")
- .name("n3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0Kto");
+ .discountAmount(4903)
+ .discountPercentage(391.0)
+ .displayStartsAt("2025-10-20T16:25:30.000000Z")
+ .endsAt("2022-05-02T06:56:10.000000Z")
+ .startsAt("2020-03-10T04:53:23.000000Z")
+ .discountUpperLimit(8197)
+ .description("R0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObO")
+ .name("MsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwy");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -609,18 +618,17 @@ void test24() throws ConnectionError, ProcessingError {
@Test
void test25() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(9376)
- .discountPercentage(4837.0)
- .setDisabled(true)
- .displayEndsAt("2024-01-04T06:44:39.000000Z")
- .displayStartsAt("2024-10-02T12:04:03.000000Z")
- .endsAt("2021-02-16T23:36:22.000000Z")
- .startsAt("2020-03-04T13:25:02.000000Z")
- .discountUpperLimit(7223)
- .description("wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4e")
- .name("yiatMI7VF3dtugJSz1Q3v");
+ .discountAmount(7695)
+ .discountPercentage(9735.0)
+ .displayEndsAt("2022-02-15T23:20:53.000000Z")
+ .displayStartsAt("2023-07-05T13:13:46.000000Z")
+ .endsAt("2024-11-09T17:40:12.000000Z")
+ .startsAt("2022-03-01T10:11:02.000000Z")
+ .discountUpperLimit(2822)
+ .description("ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkf")
+ .name("S3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQ");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -635,19 +643,18 @@ void test25() throws ConnectionError, ProcessingError {
@Test
void test26() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8030)
- .discountPercentage(5262.0)
- .setHidden(true)
- .setDisabled(true)
- .displayEndsAt("2022-09-28T21:37:20.000000Z")
- .displayStartsAt("2023-07-20T05:43:11.000000Z")
- .endsAt("2023-05-04T18:20:50.000000Z")
- .startsAt("2021-09-04T09:10:55.000000Z")
- .discountUpperLimit(9447)
- .description("FsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOun")
- .name("WJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3Y");
+ .discountAmount(8212)
+ .discountPercentage(4670.0)
+ .setDisabled(false)
+ .displayEndsAt("2026-01-21T10:12:48.000000Z")
+ .displayStartsAt("2025-03-28T14:11:22.000000Z")
+ .endsAt("2022-08-08T04:30:26.000000Z")
+ .startsAt("2024-01-01T02:48:23.000000Z")
+ .discountUpperLimit(3048)
+ .description("O9RJi")
+ .name("7mxn7kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE0P");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -662,20 +669,19 @@ void test26() throws ConnectionError, ProcessingError {
@Test
void test27() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(9044)
- .discountPercentage(5553.0)
- .setPublic(true)
- .setHidden(true)
+ .discountAmount(8764)
+ .discountPercentage(3907.0)
+ .setHidden(false)
.setDisabled(true)
- .displayEndsAt("2020-01-26T06:26:17.000000Z")
- .displayStartsAt("2022-11-02T01:42:53.000000Z")
- .endsAt("2021-06-24T12:35:58.000000Z")
- .startsAt("2023-01-22T21:35:42.000000Z")
- .discountUpperLimit(5471)
- .description("5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWG")
- .name("p4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoU");
+ .displayEndsAt("2022-08-03T01:48:16.000000Z")
+ .displayStartsAt("2021-01-31T08:50:02.000000Z")
+ .endsAt("2022-06-06T21:16:49.000000Z")
+ .startsAt("2021-03-10T16:15:19.000000Z")
+ .discountUpperLimit(3681)
+ .description("TlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8nedbEkL6V")
+ .name("CbZlYCZFu0");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -690,21 +696,20 @@ void test27() throws ConnectionError, ProcessingError {
@Test
void test28() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(5837)
- .discountPercentage(7725.0)
- .code("0CR")
- .setPublic(true)
- .setHidden(true)
- .setDisabled(true)
- .displayEndsAt("2022-05-31T19:31:33.000000Z")
- .displayStartsAt("2023-02-28T10:08:45.000000Z")
- .endsAt("2022-02-21T00:31:29.000000Z")
- .startsAt("2023-10-02T22:25:23.000000Z")
- .discountUpperLimit(2989)
- .description("DeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4")
- .name("CQY3zROLCcC3cDzGwCmJXHiF5C");
+ .discountAmount(6104)
+ .discountPercentage(8711.0)
+ .setPublic(false)
+ .setHidden(false)
+ .setDisabled(false)
+ .displayEndsAt("2024-05-20T06:32:49.000000Z")
+ .displayStartsAt("2023-11-08T14:19:34.000000Z")
+ .endsAt("2020-07-19T10:56:41.000000Z")
+ .startsAt("2025-08-16T14:19:15.000000Z")
+ .discountUpperLimit(5611)
+ .description("1kbCzvM")
+ .name("ElblaTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -719,22 +724,21 @@ void test28() throws ConnectionError, ProcessingError {
@Test
void test29() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(9717)
- .discountPercentage(9468.0)
- .usageLimit(7920)
- .code("0Hph0EUC")
+ .discountAmount(1705)
+ .discountPercentage(4507.0)
+ .code("aX5R")
.setPublic(false)
.setHidden(false)
.setDisabled(true)
- .displayEndsAt("2022-08-18T13:57:47.000000Z")
- .displayStartsAt("2023-02-22T19:34:01.000000Z")
- .endsAt("2024-08-16T08:03:14.000000Z")
- .startsAt("2023-04-06T10:00:07.000000Z")
- .discountUpperLimit(7006)
- .description("LYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5b")
- .name("KrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ");
+ .displayEndsAt("2023-08-23T06:52:39.000000Z")
+ .displayStartsAt("2020-12-01T16:17:51.000000Z")
+ .endsAt("2022-04-08T07:48:31.000000Z")
+ .startsAt("2026-05-22T16:05:37.000000Z")
+ .discountUpperLimit(77)
+ .description("Dj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZz")
+ .name("OhvmvIjVKe7aM7QiN4L");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -749,23 +753,22 @@ void test29() throws ConnectionError, ProcessingError {
@Test
void test30() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(3254)
- .discountPercentage(6072.0)
- .minAmount(8091)
- .usageLimit(8638)
- .code("JstsOcxw5")
- .setPublic(false)
+ .discountAmount(5776)
+ .discountPercentage(7690.0)
+ .usageLimit(4651)
+ .code("TtB8")
+ .setPublic(true)
.setHidden(true)
.setDisabled(true)
- .displayEndsAt("2021-03-10T22:22:52.000000Z")
- .displayStartsAt("2023-10-02T15:46:06.000000Z")
- .endsAt("2023-01-29T17:10:48.000000Z")
- .startsAt("2022-12-29T10:13:04.000000Z")
- .discountUpperLimit(2215)
- .description("omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc")
- .name("2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo");
+ .displayEndsAt("2025-10-27T12:24:41.000000Z")
+ .displayStartsAt("2020-08-09T17:30:29.000000Z")
+ .endsAt("2023-06-22T01:18:06.000000Z")
+ .startsAt("2022-02-07T10:31:34.000000Z")
+ .discountUpperLimit(3135)
+ .description("9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZ")
+ .name("dXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcs");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -780,24 +783,23 @@ void test30() throws ConnectionError, ProcessingError {
@Test
void test31() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(1678)
- .discountPercentage(2946.0)
- .setShopSpecified(false)
- .minAmount(2440)
- .usageLimit(3333)
- .code("bGw6jV")
+ .discountAmount(9704)
+ .discountPercentage(2908.0)
+ .minAmount(6894)
+ .usageLimit(4846)
+ .code("lOPQ")
.setPublic(true)
.setHidden(false)
- .setDisabled(true)
- .displayEndsAt("2022-01-02T20:53:06.000000Z")
- .displayStartsAt("2024-07-26T06:22:27.000000Z")
- .endsAt("2021-10-22T12:20:11.000000Z")
- .startsAt("2020-03-10T15:06:45.000000Z")
- .discountUpperLimit(163)
- .description("NyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCF")
- .name("nlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCis");
+ .setDisabled(false)
+ .displayEndsAt("2024-02-03T15:35:39.000000Z")
+ .displayStartsAt("2026-05-04T23:29:26.000000Z")
+ .endsAt("2024-04-27T00:39:07.000000Z")
+ .startsAt("2020-09-24T07:39:00.000000Z")
+ .discountUpperLimit(3159)
+ .description("980GqQVfPuvUPiEFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3c")
+ .name("EkuniAENmbJtM74");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -812,25 +814,24 @@ void test31() throws ConnectionError, ProcessingError {
@Test
void test32() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(3006)
- .discountPercentage(4902.0)
- .availableShopIds(new String[]{"771fe6b5-a671-4848-9798-2a7e10005920","05e9ee26-7344-43f3-8de4-1b1aa013f20a","61a3f6c7-169a-4e1c-a38d-c540d742fab7","672494f7-c7e2-4854-ad4b-17459fcc1670","89e2210d-0c14-4aa9-981a-54faa24d7779","5a6439d3-9dfe-473d-b1a1-378c95ad3002"})
+ .discountAmount(404)
+ .discountPercentage(7300.0)
.setShopSpecified(false)
- .minAmount(9253)
- .usageLimit(611)
- .code("4sXP")
+ .minAmount(5743)
+ .usageLimit(2341)
+ .code("yNao")
.setPublic(false)
.setHidden(false)
- .setDisabled(false)
- .displayEndsAt("2022-04-17T00:14:56.000000Z")
- .displayStartsAt("2021-01-02T13:59:05.000000Z")
- .endsAt("2021-11-22T18:07:25.000000Z")
- .startsAt("2022-05-31T15:32:30.000000Z")
- .discountUpperLimit(9623)
- .description("uwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZF")
- .name("tSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3r");
+ .setDisabled(true)
+ .displayEndsAt("2023-12-31T21:22:42.000000Z")
+ .displayStartsAt("2020-09-29T20:36:52.000000Z")
+ .endsAt("2025-12-09T17:35:38.000000Z")
+ .startsAt("2025-09-05T18:38:07.000000Z")
+ .discountUpperLimit(7154)
+ .description("lPondGWEfVzKMwihh3UCJATPnnGfbSA")
+ .name("t8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMaO7");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -845,26 +846,25 @@ void test32() throws ConnectionError, ProcessingError {
@Test
void test33() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountAmount(8803)
- .discountPercentage(1126.0)
- .storageId("7a404fc2-a15c-4c75-a5f3-1c154e869d05")
- .availableShopIds(new String[]{"11a110a8-b4b6-455d-9af5-b9c8ce433b13","b84e9ca3-2b91-43ef-a210-58f9c98ad1fe","799609ee-c230-4489-903d-6e8913d2e96b","451d5c3b-b059-4dac-83b9-7e12bc5b9d1d","5d351174-5b75-4081-a5b0-1bb877aeb5c1","1bff186b-16bb-41ea-84c3-d93e56c3e5b0","2fb33710-5185-4fba-97d0-1ecbdc5d18e2","4fa0b651-b4a8-43ff-9903-39a364466b98","42f8d5f6-bfad-46be-bb83-058922628a04","29110f8d-5059-4bef-b739-5f5c305bea46"})
+ .discountAmount(7787)
+ .discountPercentage(5617.0)
+ .availableShopIds(new String[]{"29c6eeaf-aeea-4aaf-a1c0-3c29fc758b16","67a00b11-bf98-48c1-9300-6c51f10046eb","d114c0f1-a7bb-40f9-b7b2-4a1486b6b751","3982f886-5434-445d-bd35-c1bc26c26b2a","22eea303-df99-4af0-a9ed-ccb189d89798","49ba8fb6-2f94-4c90-bd82-d0a9053e67a0","c34a7cfb-9f6a-4a8f-8591-24222f496457","4c4fd882-7759-4fb8-8cdd-3c9ffa2c188c"})
.setShopSpecified(false)
- .minAmount(8904)
- .usageLimit(3294)
- .code("zD7S")
+ .minAmount(422)
+ .usageLimit(4670)
+ .code("yJu")
.setPublic(false)
- .setHidden(true)
- .setDisabled(false)
- .displayEndsAt("2024-03-04T08:18:26.000000Z")
- .displayStartsAt("2024-02-20T15:40:54.000000Z")
- .endsAt("2020-04-15T08:33:57.000000Z")
- .startsAt("2023-12-12T01:24:30.000000Z")
- .discountUpperLimit(5315)
- .description("pGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4Il")
- .name("VfzKQeAZtwqv4AGYkQ5Y");
+ .setHidden(false)
+ .setDisabled(true)
+ .displayEndsAt("2023-02-07T14:38:04.000000Z")
+ .displayStartsAt("2021-03-25T03:38:21.000000Z")
+ .endsAt("2022-04-19T21:10:03.000000Z")
+ .startsAt("2024-09-14T14:28:54.000000Z")
+ .discountUpperLimit(2603)
+ .description("WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd9")
+ .name("ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9m");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -879,9 +879,26 @@ void test33() throws ConnectionError, ProcessingError {
@Test
void test34() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(9978.0);
+ .discountAmount(3386)
+ .discountPercentage(8675.0)
+ .storageId("086c696a-aed5-4244-b342-74fc3b1cdc8e")
+ .availableShopIds(new String[]{"61aa47e6-1e0a-4214-8ea9-ce33860d0868","bba83c27-af70-4f1f-8fe2-9b42698b255e","8cbc0b3d-2ee2-4e1b-a6fe-f4649d3607ba","8e349eb0-9f57-4b06-90c0-e3214e3ee58f","18176f99-ed43-458c-96f5-e5713b470790","92e55068-aeb9-4830-809f-6a269bd11d77","ed5f4a98-e827-4eee-ab55-b290ab078cc5","3668550b-8102-451f-a5e6-d221b8d30ce4"})
+ .setShopSpecified(true)
+ .minAmount(7926)
+ .usageLimit(8860)
+ .code("Gn56")
+ .setPublic(true)
+ .setHidden(false)
+ .setDisabled(false)
+ .displayEndsAt("2024-07-06T04:53:29.000000Z")
+ .displayStartsAt("2021-07-15T01:56:30.000000Z")
+ .endsAt("2020-05-04T20:08:35.000000Z")
+ .startsAt("2021-09-22T20:52:11.000000Z")
+ .discountUpperLimit(2814)
+ .description("MaOVTzOYUS4YiFzadS1dG4VhCAXdvLcusNkP92lEHAtBr5uMS")
+ .name("7mI2h9L5UgNjF9pGXPoR6V6EH9oG2E8mJwg74tJdyJ5Llab29gfUQ6hTQL306GhITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM1");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -896,10 +913,27 @@ void test34() throws ConnectionError, ProcessingError {
@Test
void test35() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(3445.0)
- .name("0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsP");
+ .discountAmount(9992)
+ .discountPercentage(781.0)
+ .numRecipientsCap(1950)
+ .storageId("6a58a09e-381a-4be9-8865-316ccebc2539")
+ .availableShopIds(new String[]{"a0c4843a-3469-47a5-8066-080826b8ba81","67f2e5fb-4591-4d45-8bd1-26a5b6d77940","7a25ac51-a0cb-4c45-bc9f-dba1bea4d87e","60b3bcde-e1ec-4990-8490-390c676678b5"})
+ .setShopSpecified(true)
+ .minAmount(2900)
+ .usageLimit(2954)
+ .code("En550ChTMJ")
+ .setPublic(false)
+ .setHidden(true)
+ .setDisabled(false)
+ .displayEndsAt("2025-05-19T16:12:14.000000Z")
+ .displayStartsAt("2022-02-07T15:27:25.000000Z")
+ .endsAt("2020-04-12T15:08:02.000000Z")
+ .startsAt("2025-06-28T11:36:20.000000Z")
+ .discountUpperLimit(7633)
+ .description("pR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6Fh")
+ .name("ORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowt");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -914,11 +948,9 @@ void test35() throws ConnectionError, ProcessingError {
@Test
void test36() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(8978.0)
- .description("ccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8")
- .name("JafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5Ps");
+ .discountPercentage(7341.0);
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -933,12 +965,10 @@ void test36() throws ConnectionError, ProcessingError {
@Test
void test37() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(9928.0)
- .discountUpperLimit(1593)
- .description("tmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8r")
- .name("kq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQk");
+ .discountPercentage(5424.0)
+ .name("F0S2aI");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -953,13 +983,11 @@ void test37() throws ConnectionError, ProcessingError {
@Test
void test38() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(4048.0)
- .startsAt("2023-02-25T20:09:17.000000Z")
- .discountUpperLimit(358)
- .description("a5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKv")
- .name("yAHQ0Cmh0GR2iNpQgbrTS2HEffP70D");
+ .discountPercentage(2255.0)
+ .description("kN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302sQl233vCftoqwC5tymvF1K23X2uYu46ypSW9PxtiaID1SUCfz9yEelMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo")
+ .name("XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpa");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -974,14 +1002,12 @@ void test38() throws ConnectionError, ProcessingError {
@Test
void test39() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(1429.0)
- .endsAt("2023-03-24T15:14:16.000000Z")
- .startsAt("2022-11-21T09:12:45.000000Z")
- .discountUpperLimit(67)
- .description("ohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmm")
- .name("XsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3H");
+ .discountPercentage(294.0)
+ .discountUpperLimit(9190)
+ .description("36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTCVmm3x115QsBZT6dCGgqZsePkl6")
+ .name("iY0bdXM6N");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -996,15 +1022,13 @@ void test39() throws ConnectionError, ProcessingError {
@Test
void test40() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(9087.0)
- .displayStartsAt("2022-02-12T00:52:45.000000Z")
- .endsAt("2023-05-13T08:40:49.000000Z")
- .startsAt("2024-08-02T17:07:25.000000Z")
- .discountUpperLimit(6290)
- .description("DSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws6Ne3S7kdpHli9FCf9")
- .name("vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn");
+ .discountPercentage(378.0)
+ .startsAt("2025-02-15T17:07:45.000000Z")
+ .discountUpperLimit(3978)
+ .description("rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G")
+ .name("cLViMByCBNzcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZd");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1019,16 +1043,14 @@ void test40() throws ConnectionError, ProcessingError {
@Test
void test41() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(1850.0)
- .displayEndsAt("2023-04-13T11:52:53.000000Z")
- .displayStartsAt("2021-07-26T11:21:57.000000Z")
- .endsAt("2024-06-30T03:27:13.000000Z")
- .startsAt("2020-02-14T18:14:30.000000Z")
- .discountUpperLimit(1447)
- .description("tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQ")
- .name("KCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z");
+ .discountPercentage(245.0)
+ .endsAt("2025-01-12T11:05:25.000000Z")
+ .startsAt("2021-12-01T05:14:23.000000Z")
+ .discountUpperLimit(6026)
+ .description("Xynvh05")
+ .name("rJdAnnKP");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1043,17 +1065,15 @@ void test41() throws ConnectionError, ProcessingError {
@Test
void test42() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(2100.0)
- .setDisabled(false)
- .displayEndsAt("2023-05-19T00:53:00.000000Z")
- .displayStartsAt("2023-12-25T17:43:44.000000Z")
- .endsAt("2022-01-27T15:06:39.000000Z")
- .startsAt("2020-04-06T00:43:01.000000Z")
- .discountUpperLimit(3633)
- .description("pGDCB7WpLioRLUylhwp3jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYl")
- .name("QVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkE");
+ .discountPercentage(8042.0)
+ .displayStartsAt("2023-11-11T22:33:46.000000Z")
+ .endsAt("2025-01-25T14:11:30.000000Z")
+ .startsAt("2022-07-05T17:19:38.000000Z")
+ .discountUpperLimit(5586)
+ .description("GyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGaMj")
+ .name("b1sugqjEeek3DeI");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1068,18 +1088,16 @@ void test42() throws ConnectionError, ProcessingError {
@Test
void test43() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(3613.0)
- .setHidden(false)
- .setDisabled(true)
- .displayEndsAt("2021-11-30T21:36:02.000000Z")
- .displayStartsAt("2021-06-16T21:49:18.000000Z")
- .endsAt("2020-07-15T13:10:21.000000Z")
- .startsAt("2021-05-03T22:35:12.000000Z")
- .discountUpperLimit(4126)
- .description("OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4a")
- .name("P0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kB");
+ .discountPercentage(2244.0)
+ .displayEndsAt("2022-09-21T07:31:14.000000Z")
+ .displayStartsAt("2021-12-15T02:56:38.000000Z")
+ .endsAt("2022-02-21T05:03:24.000000Z")
+ .startsAt("2023-06-28T01:27:15.000000Z")
+ .discountUpperLimit(3459)
+ .description("RBbYLkU2TfJXzuBqGFPReFsmxaxT8Xwuc649dznjsqwxML0aHpiMuFL917lUTrE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHafl1jNP9k7uydClg9A7a")
+ .name("n27PrVxBqiE9YW");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1094,19 +1112,17 @@ void test43() throws ConnectionError, ProcessingError {
@Test
void test44() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(9845.0)
- .setPublic(false)
- .setHidden(true)
- .setDisabled(true)
- .displayEndsAt("2020-08-14T17:00:51.000000Z")
- .displayStartsAt("2023-01-23T22:18:17.000000Z")
- .endsAt("2022-07-30T11:13:18.000000Z")
- .startsAt("2020-05-26T01:14:15.000000Z")
- .discountUpperLimit(7893)
- .description("7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5")
- .name("vGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wp");
+ .discountPercentage(5389.0)
+ .setDisabled(false)
+ .displayEndsAt("2023-12-22T04:30:39.000000Z")
+ .displayStartsAt("2021-04-29T17:43:20.000000Z")
+ .endsAt("2026-06-14T22:05:31.000000Z")
+ .startsAt("2023-12-13T07:42:48.000000Z")
+ .discountUpperLimit(8084)
+ .description("mzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05I")
+ .name("lCZ5tUdSwXVRIVCnlZj6NtOwX2FI8Wr1369uaTF42abkg");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1121,20 +1137,18 @@ void test44() throws ConnectionError, ProcessingError {
@Test
void test45() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(3782.0)
- .code("s")
- .setPublic(false)
+ .discountPercentage(9999.0)
.setHidden(true)
.setDisabled(false)
- .displayEndsAt("2021-12-28T17:38:18.000000Z")
- .displayStartsAt("2024-04-24T07:37:39.000000Z")
- .endsAt("2022-04-08T06:55:14.000000Z")
- .startsAt("2024-07-21T19:55:51.000000Z")
- .discountUpperLimit(4577)
- .description("BKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zd")
- .name("niT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kL");
+ .displayEndsAt("2023-11-28T13:24:04.000000Z")
+ .displayStartsAt("2023-02-17T02:05:50.000000Z")
+ .endsAt("2024-03-27T15:24:53.000000Z")
+ .startsAt("2025-04-14T23:23:51.000000Z")
+ .discountUpperLimit(2858)
+ .description("AWzKVmwmqN4ax1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTu")
+ .name("nowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI2");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1149,21 +1163,19 @@ void test45() throws ConnectionError, ProcessingError {
@Test
void test46() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(8962.0)
- .usageLimit(1825)
- .code("MOaPoa")
- .setPublic(false)
- .setHidden(false)
+ .discountPercentage(1485.0)
+ .setPublic(true)
+ .setHidden(true)
.setDisabled(false)
- .displayEndsAt("2023-09-10T13:28:35.000000Z")
- .displayStartsAt("2022-08-09T04:43:07.000000Z")
- .endsAt("2021-06-17T02:46:52.000000Z")
- .startsAt("2021-05-28T17:55:21.000000Z")
- .discountUpperLimit(7102)
- .description("1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnn")
- .name("beCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSM");
+ .displayEndsAt("2021-08-01T05:03:22.000000Z")
+ .displayStartsAt("2023-02-15T09:12:32.000000Z")
+ .endsAt("2025-05-15T21:40:32.000000Z")
+ .startsAt("2025-03-21T09:34:05.000000Z")
+ .discountUpperLimit(4990)
+ .description("KUqkrXtAeLmERqX5bwDROtzb2hizqeaCyQXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L46cfTNs")
+ .name("J74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjSc");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1178,22 +1190,20 @@ void test46() throws ConnectionError, ProcessingError {
@Test
void test47() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(6628.0)
- .minAmount(4459)
- .usageLimit(4224)
- .code("kKPrtzfsC")
- .setPublic(false)
- .setHidden(false)
- .setDisabled(true)
- .displayEndsAt("2023-06-29T08:12:17.000000Z")
- .displayStartsAt("2020-07-18T08:24:12.000000Z")
- .endsAt("2023-06-11T14:41:15.000000Z")
- .startsAt("2023-03-08T13:39:55.000000Z")
- .discountUpperLimit(7603)
- .description("OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPB")
- .name("jjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkh");
+ .discountPercentage(5640.0)
+ .code("SjEKEvn9")
+ .setPublic(true)
+ .setHidden(true)
+ .setDisabled(false)
+ .displayEndsAt("2020-01-16T17:51:37.000000Z")
+ .displayStartsAt("2024-03-21T20:04:27.000000Z")
+ .endsAt("2021-06-03T00:30:34.000000Z")
+ .startsAt("2024-09-15T21:19:06.000000Z")
+ .discountUpperLimit(5875)
+ .description("fEeEirDJBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywqukvEUDGTtuu5mLHhGQ9yekqoyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1")
+ .name("hEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAiqw");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1208,23 +1218,21 @@ void test47() throws ConnectionError, ProcessingError {
@Test
void test48() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(8196.0)
- .setShopSpecified(false)
- .minAmount(5806)
- .usageLimit(9152)
- .code("MP7")
+ .discountPercentage(7672.0)
+ .usageLimit(4875)
+ .code("1HL4w")
.setPublic(true)
- .setHidden(false)
+ .setHidden(true)
.setDisabled(true)
- .displayEndsAt("2023-12-29T13:03:03.000000Z")
- .displayStartsAt("2022-05-28T12:08:14.000000Z")
- .endsAt("2021-04-16T05:06:06.000000Z")
- .startsAt("2023-04-05T21:00:40.000000Z")
- .discountUpperLimit(6792)
- .description("0jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSL")
- .name("XaRbjFaOCY9HY0faJMcRsZ");
+ .displayEndsAt("2021-09-17T00:17:27.000000Z")
+ .displayStartsAt("2025-03-23T16:18:31.000000Z")
+ .endsAt("2021-08-22T17:05:32.000000Z")
+ .startsAt("2025-02-18T20:18:21.000000Z")
+ .discountUpperLimit(634)
+ .description("mkMDA4SVfWD13Zj3L9DQPYajb0tV")
+ .name("dWEdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHHw3tE");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1239,24 +1247,53 @@ void test48() throws ConnectionError, ProcessingError {
@Test
void test49() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
+ )
+ .discountPercentage(7815.0)
+ .minAmount(5631)
+ .usageLimit(996)
+ .code("BOJZocfpIF")
+ .setPublic(true)
+ .setHidden(false)
+ .setDisabled(false)
+ .displayEndsAt("2020-09-06T03:37:11.000000Z")
+ .displayStartsAt("2023-03-25T05:47:08.000000Z")
+ .endsAt("2021-07-30T03:33:19.000000Z")
+ .startsAt("2021-08-14T05:34:56.000000Z")
+ .discountUpperLimit(7586)
+ .description("EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIR")
+ .name("yB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQAL");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test50() throws ConnectionError, ProcessingError {
+ Request request = new UpdateCoupon(
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(1706.0)
- .availableShopIds(new String[]{"3cc2a17e-e514-48f4-80e6-2a7f71ff55ac","d5806b2b-bb18-476e-b108-d8a61340b199","a83fb634-3ff0-4ef1-925d-eb0f7ac099a4","b1cf6f27-ecbf-48af-8564-9805f453bdf0"})
+ .discountPercentage(1573.0)
.setShopSpecified(true)
- .minAmount(6419)
- .usageLimit(2905)
- .code("gOV")
- .setPublic(false)
+ .minAmount(8683)
+ .usageLimit(9588)
+ .code("xpQN")
+ .setPublic(true)
.setHidden(true)
- .setDisabled(true)
- .displayEndsAt("2021-09-04T11:53:12.000000Z")
- .displayStartsAt("2023-06-16T21:20:50.000000Z")
- .endsAt("2022-10-05T16:52:43.000000Z")
- .startsAt("2023-03-31T03:38:41.000000Z")
- .discountUpperLimit(7816)
- .description("FcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iE")
- .name("UUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDO");
+ .setDisabled(false)
+ .displayEndsAt("2020-12-06T22:39:29.000000Z")
+ .displayStartsAt("2025-07-10T17:53:58.000000Z")
+ .endsAt("2023-11-01T18:33:34.000000Z")
+ .startsAt("2022-03-02T02:48:01.000000Z")
+ .discountUpperLimit(1080)
+ .description("m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtEhHNUjZJEl7H6")
+ .name("HeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -1269,27 +1306,93 @@ void test49() throws ConnectionError, ProcessingError {
}
}
@Test
- void test50() throws ConnectionError, ProcessingError {
+ void test51() throws ConnectionError, ProcessingError {
Request request = new UpdateCoupon(
- "98643617-5492-4616-8d92-3e5eaa3a95f1"
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
)
- .discountPercentage(7949.0)
- .storageId("176f15a5-ab22-42c2-93d2-60e90be3adf9")
- .availableShopIds(new String[]{"372c90e5-fce1-477d-9810-1002017936ed","ecafef65-d7cd-4e61-81d9-505e92224e89"})
+ .discountPercentage(4991.0)
+ .availableShopIds(new String[]{"1377611a-3ec7-41e2-8a75-76239473583d","b1790b16-1fcb-4504-9056-87209a70efcf","8149f01f-4586-4c9b-be85-f16f138f7b90","f6e04d38-a52a-4b0e-abbd-d5b11704966f","67152ef7-6947-430f-984e-7afcd728edb6","ec97cf69-f830-4129-abfe-67d87a7ff71c","eb5c57d4-9293-401b-940c-18b3dc6340bd","6e3d15df-2c8b-409e-8f19-46b39ddda883"})
.setShopSpecified(true)
- .minAmount(4101)
- .usageLimit(4380)
- .code("b")
+ .minAmount(4721)
+ .usageLimit(5262)
+ .code("dKQ0h3ghVZ")
.setPublic(false)
.setHidden(false)
- .setDisabled(true)
- .displayEndsAt("2023-03-21T00:35:26.000000Z")
- .displayStartsAt("2023-09-13T00:28:40.000000Z")
- .endsAt("2021-04-26T03:38:10.000000Z")
- .startsAt("2021-06-30T14:15:07.000000Z")
- .discountUpperLimit(9957)
- .description("v3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMatyDW")
- .name("2s5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1AmzenaBAIYsPX5BE");
+ .setDisabled(false)
+ .displayEndsAt("2023-04-24T02:10:17.000000Z")
+ .displayStartsAt("2025-03-31T02:20:49.000000Z")
+ .endsAt("2023-05-13T03:52:51.000000Z")
+ .startsAt("2020-10-17T02:26:13.000000Z")
+ .discountUpperLimit(9634)
+ .description("9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihX")
+ .name("Wy");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test52() throws ConnectionError, ProcessingError {
+ Request request = new UpdateCoupon(
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
+ )
+ .discountPercentage(5274.0)
+ .storageId("cfc1bc3a-f4f1-480a-8fdd-1de45c747d1a")
+ .availableShopIds(new String[]{"86efb0e8-3671-4086-afbb-f34df1ba2b2c","dc60fd52-79fc-46ae-b612-d43c42ad658a","5e138b05-a22f-44ba-af41-ec6486c58abb","c92993d4-7010-4c81-b579-935d2f73080b","021d3a50-1873-45d0-92d4-db832f5b8489","1a7c3f15-90ed-4023-9295-e29da3f3cfd5","baceafd9-47a5-4b5e-a4bd-030acfe27d5a","d00b28e4-4359-4e85-84fc-4e7d2fec3544","14a8725b-9f3f-47ae-a147-745aefbe90a9"})
+ .setShopSpecified(true)
+ .minAmount(1220)
+ .usageLimit(1060)
+ .code("Zn0Xgq")
+ .setPublic(false)
+ .setHidden(false)
+ .setDisabled(false)
+ .displayEndsAt("2022-12-28T17:05:24.000000Z")
+ .displayStartsAt("2024-02-06T23:58:18.000000Z")
+ .endsAt("2024-11-14T13:16:33.000000Z")
+ .startsAt("2020-01-28T03:29:56.000000Z")
+ .discountUpperLimit(6188)
+ .description("h13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7e7CQ6mogsi4OQ6jQwMdVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzl")
+ .name("9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB9HjzBAZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJkkZMM");
+ try {
+ PartnerAPITest.getClient().send(request);
+ } catch (PartnerRequestError e) {
+ if (e.getType().equals("invalid_parameters")) {
+ System.out.println(e.getType());
+ System.out.println(e.getMessage());
+ System.out.println(e.getRawJson());
+ }
+ assertNotEquals("invalid_parameters", e.getType());
+ }
+ }
+ @Test
+ void test53() throws ConnectionError, ProcessingError {
+ Request request = new UpdateCoupon(
+ "1d3b1c76-b758-4e4e-821f-6c735a4c64e7"
+ )
+ .discountPercentage(228.0)
+ .numRecipientsCap(6525)
+ .storageId("5d3b4513-e2c5-43c1-8ee6-d95783301800")
+ .availableShopIds(new String[]{"43b926de-4584-461b-af8e-ec61c0a23df6","402d4e5c-121d-4041-aae5-e7b395c2eb99","c0fcc650-0e96-4a1f-8ae7-2eb432ca6bfa","0456fb1f-fbae-41be-93dc-526b4f0c2d9e","3119f741-3408-4c26-9f9c-29352774fea8","4d10e864-361d-4e0e-b75f-2f528bcbe951","7bbb0760-cd72-4541-8544-4b43f6ff42c5"})
+ .setShopSpecified(true)
+ .minAmount(8131)
+ .usageLimit(9044)
+ .code("p")
+ .setPublic(true)
+ .setHidden(false)
+ .setDisabled(false)
+ .displayEndsAt("2023-03-31T23:24:55.000000Z")
+ .displayStartsAt("2021-11-20T14:12:59.000000Z")
+ .endsAt("2020-05-16T11:51:07.000000Z")
+ .startsAt("2023-07-23T17:45:18.000000Z")
+ .discountUpperLimit(7226)
+ .description("xkj3y6QjLE9oTv9S3Zg4O5dK9OBTn3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcUvvHD25XYGaGoRmlkWpVKSQ")
+ .name("ACWhdJgT5oXIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDiVxdn1z0TuA7");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateCustomerAccountTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateCustomerAccountTest.java
index 52eeed6d..816a0d09 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateCustomerAccountTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateCustomerAccountTest.java
@@ -12,7 +12,7 @@ public class UpdateCustomerAccountTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateCustomerAccount(
- "86e1558d-113e-4ea6-8a48-226ea0c2dcab"
+ "2b9a8465-d8cb-48e1-87c5-c9f23ead12af"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,7 +28,7 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateCustomerAccount(
- "86e1558d-113e-4ea6-8a48-226ea0c2dcab"
+ "2b9a8465-d8cb-48e1-87c5-c9f23ead12af"
)
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}");
try {
@@ -45,9 +45,9 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateCustomerAccount(
- "86e1558d-113e-4ea6-8a48-226ea0c2dcab"
+ "2b9a8465-d8cb-48e1-87c5-c9f23ead12af"
)
- .externalId("hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq")
+ .externalId("wIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fcKm")
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}");
try {
PartnerAPITest.getClient().send(request);
@@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateCustomerAccount(
- "86e1558d-113e-4ea6-8a48-226ea0c2dcab"
+ "2b9a8465-d8cb-48e1-87c5-c9f23ead12af"
)
- .accountName("rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd")
- .externalId("KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb")
+ .accountName("GRUw7sMhCFW8ODbHkZSUPXBsmObvnHUjDTSSciw3PX7IImkvl5vCAHh7QD95u0YIcm0Sp2RluFOAxJTKKlkJp5ENq52OLTcJlnsa7zuy1tusdwen7Z1wrrgdxWfKkML")
+ .externalId("wrBpORQ9LHlnKRmCd4nadmeyKnqGyqpn3W7S36l")
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}");
try {
PartnerAPITest.getClient().send(request);
@@ -82,11 +82,11 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new UpdateCustomerAccount(
- "86e1558d-113e-4ea6-8a48-226ea0c2dcab"
+ "2b9a8465-d8cb-48e1-87c5-c9f23ead12af"
)
- .status("pre-closed")
- .accountName("nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc")
- .externalId("KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj")
+ .status("suspended")
+ .accountName("4SSSOxW72gqSjd8QPzbjt0rt7UmerReZGbvGgvAZbyLJ1Lea6an4")
+ .externalId("P1AnQALadFsAzgfKjbtuXg")
.metadata("{\"key1\":\"foo\",\"key2\":\"bar\"}");
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java
index feb6c5ba..15ec6629 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateShopTest.java
@@ -12,7 +12,7 @@ public class UpdateShopTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .status("active");
+ .status("disabled");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .canTopupPrivateMoneyIds(new String[]{"9852d914-b345-425b-93b8-dca15f403b48","1bf8aaff-f5ff-4748-8aad-f96094ec44a3","ae46d9dc-d41d-4508-be66-c4bc7a989435","b2a9a4a4-0eb0-4cd4-9582-72df747d59c3","81904a92-37b5-4b79-9c90-37b26d46d548","6d8e4e09-16a2-4e13-8e81-ae1e8e0837f2"})
- .status("active");
+ .canTopupPrivateMoneyIds(new String[]{"31776f31-0eca-4add-b08b-f29041b8ec39","a20dab63-1374-4942-8976-e05852e113f2","5143595f-d278-4eea-b370-ae6da153cdd5","22be79e7-8632-4ca4-8aca-6b6fb3b31e66","f8677082-1d94-41e2-ada5-d311492d1de6","84ffed64-0405-43b8-bc6c-719944102ec9","9abef437-11e3-4461-b32f-a9ef8b86a379","4099be51-b99f-4d51-8973-d8007b011212","d9b0ac9c-77d5-4fec-b3ba-38f2901290c3","e395c5cd-c21f-421f-84b2-131019fb3020"})
+ .status("disabled");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .privateMoneyIds(new String[]{})
- .canTopupPrivateMoneyIds(new String[]{"5728d3b3-a034-4f8b-a8a8-b744bd59d03b","ee49f0b1-f1f5-4d78-af49-cbe26410ef5f","1d6f1f75-aba0-4964-9080-53e7f02256cb","a3c1cb63-065f-48c1-8834-47ccddca635e","02d62971-ba05-4da9-b476-808e999c7787","ed6de882-f06e-4259-93e4-d9027866f90f","b002ff05-e505-4cfc-928c-07ca0164397f"})
+ .privateMoneyIds(new String[]{"d443162b-e80e-4c4d-b0c5-3a3414e4cd18","ef1f6115-3457-45c4-80a5-23130afaacdb","6e5210ef-d972-49fb-b4a2-70c9ef783041","badeb844-4e54-4048-968b-235f605e0c64","ca488454-3ed0-4073-90ea-da68ff6ad70d","e460c02d-8855-4c24-8ef3-3cbe6189c7d7","f288bfe2-9175-4b3b-9e95-ade8c3eb8f07","a97d7c6e-f4e2-4e92-bf49-a95539185746","467857bb-dc6c-40ff-a866-9bc0969d3676","b599ca6f-3de2-43a4-8f20-d5dfb7943d9b"})
+ .canTopupPrivateMoneyIds(new String[]{"919b3ce3-583a-4e5d-acc6-c3d8c04e244b","2aca5de6-9276-4aa7-915f-aee41bf640d1","57c4cc05-3369-4ef6-afbc-2273c8946e96","04e232b3-b17b-4068-aa21-9a9d3118c374"})
.status("disabled");
try {
PartnerAPITest.getClient().send(request);
@@ -82,12 +82,12 @@ void test3() throws ConnectionError, ProcessingError {
@Test
void test4() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .externalId("VxWy0PirB5ccKSjPsnaJy0xSUaUZ3K")
- .privateMoneyIds(new String[]{"67971269-72bb-4b70-ae5d-2347d45e0383","07e91f76-d9e5-4618-8ef0-d9b153d44db1","9b1e1f5f-eed7-4f27-870d-c4e9dfcb6d96","86f77bd3-6b72-4db0-9a29-9cb8c1440675","6e6cf586-7f1b-4e43-baa5-2eae1952f6c2","7d1294c0-6b30-463e-9dfc-a91e270b838f","cc70784a-2f84-49d3-9eac-60f400b15928","72200037-d68b-459a-a807-5cda45b9949c","3f345ead-5c4e-41cc-b663-1b76f0c059ff"})
- .canTopupPrivateMoneyIds(new String[]{"904eec3b-0c89-4b3a-b1c2-656e2f941c68","e86447ac-6bc7-4fee-a725-45793daf15d2","6cb8fb12-1ea2-4073-a4b1-95daf3408162"})
- .status("disabled");
+ .externalId("D1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwz")
+ .privateMoneyIds(new String[]{})
+ .canTopupPrivateMoneyIds(new String[]{"2cc4e69f-13da-47ad-9c33-e0bda2693700","3dc59b1c-85a8-4ed3-81f3-4bea1e5cc9f0","8017b203-fc41-4416-b550-1c8a166d7ead","270fddd1-ff20-4477-8f92-07cd503f3d45","23e6c378-1193-46ba-83b1-e2f7913ea2b6","fea4f569-73e6-4b6c-b9da-38555bd375a7","a293ec16-f815-4210-9073-8df4085b720a"})
+ .status("active");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -102,12 +102,12 @@ void test4() throws ConnectionError, ProcessingError {
@Test
void test5() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .email("EX46DL0EY9@Dfg2.com")
- .externalId("2KSBJ32yceHk")
- .privateMoneyIds(new String[]{})
- .canTopupPrivateMoneyIds(new String[]{"47031610-468f-480e-8a03-0701ad16ffd3","51f19c19-1d35-422e-b372-bbdffd022a2a","07488c1a-ee51-45d9-8672-84a561fc77fd","1aebc8c9-61c5-4052-b61c-25ecad8e7cb0","e5d8604b-05f2-4cfd-9be9-d4f575f3e55f"})
+ .email("qj7jJ1Xazd@0M0Q.com")
+ .externalId("E8si7WktomTSIs3sss0bSZ")
+ .privateMoneyIds(new String[]{"4948a6fc-2b63-43a0-9287-76359273ba72"})
+ .canTopupPrivateMoneyIds(new String[]{"3118bfdd-5cbd-4400-8d44-2e89208a98bd","43c75a67-9a96-4e08-85b0-c984b7bc887c","c7d458af-d907-4d18-a9c2-b8449fd44414","c6245312-6532-45e5-9874-cb119eea6e36"})
.status("active");
try {
PartnerAPITest.getClient().send(request);
@@ -123,14 +123,14 @@ void test5() throws ConnectionError, ProcessingError {
@Test
void test6() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .tel("01813768343")
- .email("nnsKFojcLO@uuur.com")
- .externalId("aaP5zVuitJAWBnMTQrqQLb4F279")
- .privateMoneyIds(new String[]{"fc9ec563-0e05-4b07-b364-b2108203d244","cf9981f4-70bc-46a6-834d-d1b3c74ccdac","c5c87499-e6f5-432c-97c0-408bc5a6a98c","9eb27d88-aa5e-4c53-a11d-87c540654e59","c1060862-d4f5-4d98-a17e-eeba284b644f","3286cee0-dff9-42a7-b1c1-12973aca16f4","3532624a-9219-4014-aa9c-16a002783062"})
- .canTopupPrivateMoneyIds(new String[]{"5ca9c410-3c7b-41da-a08c-9999113a20dc","47f4bac6-40f6-4985-988c-e63440782044","0d9d74dc-5ed4-45f2-a5db-d2807b407e6e","bd9d470d-f19b-4b59-bcac-89ea1922f35b","7d0459ff-ad9a-4710-b6bb-a3f2f35533c5","a3efa5b9-d4e0-4348-b55e-1c93e807f32b"})
- .status("disabled");
+ .tel("028-27159286")
+ .email("MfShA8D4Ev@7O7T.com")
+ .externalId("GT70LQ2epxhXvfJrqwCwz")
+ .privateMoneyIds(new String[]{"7f6b4f1f-62c7-4976-9b03-8f3532a1d374","01e94729-7ffc-4b83-8e58-fe4261edf939","9c396eb3-07fd-455f-b4b1-d3c18a5b38e4","76cf47ab-a41b-4d04-9dd1-e1a1674bcb1c","4b0eaee0-3ba6-47ba-8a53-968e80589076","2d965a72-69b2-43bd-80ea-64c4b5bb3d32"})
+ .canTopupPrivateMoneyIds(new String[]{})
+ .status("active");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -145,15 +145,15 @@ void test6() throws ConnectionError, ProcessingError {
@Test
void test7() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .address("Gm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y")
- .tel("070697-082")
- .email("EUoqg0zXsu@vc8L.com")
- .externalId("4mbP1hy")
- .privateMoneyIds(new String[]{"62f6f59d-b5d0-4582-84af-aa2ba2787ce2","2ae8bbce-0a80-4956-aae3-6b9d4ff9bbbe","9b28ea88-92ba-4c93-89e0-ed13e3122e9f","f799f274-b4af-4935-b951-2ba77e63ed01","4addd0ce-9a1c-4c00-a9e0-9da37efd6119","cd0f48ea-4356-40db-aebf-1d9c92faf87d"})
- .canTopupPrivateMoneyIds(new String[]{})
- .status("disabled");
+ .address("PBEg6qDXhSH8hafJy0sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14xB891rPV7FcdDeB61vcOZ1uNBAdr6lfzbfqKlnsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hi")
+ .tel("0384-7558-4864")
+ .email("KPvyktKcWC@yKm4.com")
+ .externalId("2FzeWXxP")
+ .privateMoneyIds(new String[]{"c5deaa52-f2e9-4ecd-9668-428641c76fda","b38969ed-8a1f-4482-906d-ff472f0abaea","293b505e-3130-4611-948d-6d4de7b17c91","bcb37a0e-c5a3-43ea-9006-7f17bf5fe426","46557a92-b7ac-41a8-86cc-6da75d9c5908","7670df18-95cd-4b2b-9eb0-d25cc722168f"})
+ .canTopupPrivateMoneyIds(new String[]{"e9a65a4c-a67c-4a88-a4f7-82c01657df15","90458d56-6fd8-4124-a231-25aa5adde624","7c3e1c1f-923f-4de0-aebf-a8668130aa50","981c845a-5b1e-4ef4-88fa-97474406f7f5"})
+ .status("active");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -168,16 +168,16 @@ void test7() throws ConnectionError, ProcessingError {
@Test
void test8() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .postalCode("3254867")
- .address("40vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEyp")
- .tel("0812-256-2716")
- .email("GgyrO7oaIP@GJ7J.com")
- .externalId("BC1o5Rc9")
- .privateMoneyIds(new String[]{"9a97ec77-edbb-4466-ad8a-60d6f4c9e8f2","3cdf80d7-22f2-4e4b-a4b8-892059fc8dda","39c4f4e3-9a6b-456e-a0e4-77968729de97","d8ab7c50-6e6e-4a1c-b09e-001fbe9d0ab3","34ecc8ee-2dbf-4128-a512-4f123e4c0adb","9e2cc413-bb91-4ffc-8c6f-56cde6c42624"})
- .canTopupPrivateMoneyIds(new String[]{"099843e5-94af-4002-ace5-e48ef262e4b3"})
- .status("active");
+ .postalCode("6884333")
+ .address("dFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XH")
+ .tel("0020254927")
+ .email("JS2N5S6EEO@5Bp0.com")
+ .externalId("aBrmndiCNxXXwjFaRAeTx")
+ .privateMoneyIds(new String[]{"2eafb8a6-e7df-4f3d-93e6-04e59790f630","2659b359-d21c-479e-9089-5351656a8993","91177a43-6b9a-48c8-bafc-9aed54d4732e","2d8e3edb-e038-4f16-a87d-1f9b8ca2cd85"})
+ .canTopupPrivateMoneyIds(new String[]{"d2153b7b-dd5d-4747-9538-01fa13b2bb5b","cecacf02-c9e3-4d9a-9f18-c271789b786b","c775e14f-d6f8-4e49-8847-84e3405b06bc","781d43d7-fe7b-4223-8684-db5a0a967c6a","ce0790ea-9a4d-4c36-bdea-6905a5ab3533","23eeb49b-73ff-43e5-87ae-a15e4a9013ad","a4007082-3a3b-4164-932c-9c44acf091e3"})
+ .status("disabled");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -192,16 +192,16 @@ void test8() throws ConnectionError, ProcessingError {
@Test
void test9() throws ConnectionError, ProcessingError {
Request request = new UpdateShop(
- "a91dc663-99e6-4380-8321-0b2523e86c7b"
+ "6ab83491-6da4-4528-ae88-4c41667502b0"
)
- .name("pOb8vOALeCaVZzJ21Wkjwh096vY0")
- .postalCode("7961126")
- .address("OxtHaQb")
- .tel("05860669461")
- .email("YgBl99xXSI@Gv3O.com")
- .externalId("n3SH7ljqEdpqCcPOpWjivoOnvdw0Y")
- .privateMoneyIds(new String[]{"cbe99a17-ac76-4c7d-ace4-4c3b5e7dbab3","b7aaa03c-b649-4565-8a17-711186b577f9","022dade8-883f-412d-92af-d454cb75da7d","7d88e26c-81d2-4022-a7a3-8b545cd4aad4","1c373fdd-b6a2-4abd-b2ba-464e6e9bd15e","32548178-5ed3-4769-b068-e614e5a677da"})
- .canTopupPrivateMoneyIds(new String[]{"9a2d9c52-141c-48ec-8c82-5f2f7a19f5dc","e8460319-2210-476f-ac22-b0ab2144bb06","e156e2cc-0722-4bfd-bf9b-d0882f60821d","38553eea-774d-4514-ad91-d2bea7a7afcc"})
+ .name("Zu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijWR")
+ .postalCode("9985853")
+ .address("V8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11")
+ .tel("01-35-678")
+ .email("NTXOxFwqhk@pZVa.com")
+ .externalId("hpFPp")
+ .privateMoneyIds(new String[]{"ea5fdab5-842f-485c-a2e6-34a79bdf9ccb","dbf85487-ccd6-4486-b439-a15ddc57b52a","438f86c4-85d0-4bd9-8a9d-3941867967ad"})
+ .canTopupPrivateMoneyIds(new String[]{"2e558825-90d6-4efa-9680-72b6f7096c9d","b1029295-ad03-4176-bc79-d9499039468a","57200225-b082-4e10-b6de-c5a41145a893"})
.status("disabled");
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java b/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java
index 3fa93354..ee79aee7 100644
--- a/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/UpdateWebhookTest.java
@@ -12,7 +12,7 @@ public class UpdateWebhookTest {
@Test
void test0() throws ConnectionError, ProcessingError {
Request request = new UpdateWebhook(
- "42571d9f-a90d-4a7f-bf30-c3ee221f1b72"
+ "3dd4aa26-8929-4a5b-99c0-71a14f787994"
);
try {
PartnerAPITest.getClient().send(request);
@@ -28,9 +28,9 @@ void test0() throws ConnectionError, ProcessingError {
@Test
void test1() throws ConnectionError, ProcessingError {
Request request = new UpdateWebhook(
- "42571d9f-a90d-4a7f-bf30-c3ee221f1b72"
+ "3dd4aa26-8929-4a5b-99c0-71a14f787994"
)
- .task("process_user_stats_operation");
+ .task("bulk_shops");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -45,10 +45,10 @@ void test1() throws ConnectionError, ProcessingError {
@Test
void test2() throws ConnectionError, ProcessingError {
Request request = new UpdateWebhook(
- "42571d9f-a90d-4a7f-bf30-c3ee221f1b72"
+ "3dd4aa26-8929-4a5b-99c0-71a14f787994"
)
.setActive(true)
- .task("process_user_stats_operation");
+ .task("bulk_shops");
try {
PartnerAPITest.getClient().send(request);
} catch (PartnerRequestError e) {
@@ -63,10 +63,10 @@ void test2() throws ConnectionError, ProcessingError {
@Test
void test3() throws ConnectionError, ProcessingError {
Request request = new UpdateWebhook(
- "42571d9f-a90d-4a7f-bf30-c3ee221f1b72"
+ "3dd4aa26-8929-4a5b-99c0-71a14f787994"
)
- .url("QNFRYY")
- .setActive(false)
+ .url("e5")
+ .setActive(true)
.task("process_user_stats_operation");
try {
PartnerAPITest.getClient().send(request);
diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/CreateNewCustomerWithAccountTest.java b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateNewCustomerWithAccountTest.java
new file mode 100644
index 00000000..5ed8e13a
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateNewCustomerWithAccountTest.java
@@ -0,0 +1,72 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.tdsl;
+
+import jp.pokepay.partnerapi.PartnerAPITest;
+import jp.pokepay.partnerapi.response.*;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class CreateNewCustomerWithAccountTest {
+ @Test
+ void testCreateNewCustomerWithAccount() throws Exception {
+ String userName = "user-name" + PartnerAPITest.randomString(6);
+ String accountName = "account-name" + PartnerAPITest.randomString(6);
+ AccountWithUser customerAccount = (AccountWithUser)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateCustomerAccount(
+ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb"
+ )
+ .userName(userName)
+ .accountName(accountName));
+ assertEquals(userName, customerAccount.getUser().getName());
+ assertEquals(accountName, customerAccount.getName());
+ String shopName = "shop-name" + PartnerAPITest.randomString(6);
+ ShopWithAccounts shop = (ShopWithAccounts)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateShopV2(
+ shopName
+ )
+ .privateMoneyIds(new String[]{
+ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb"
+ })
+ .canTopupPrivateMoneyIds(new String[]{
+ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb"
+ }));
+ TransactionDetail topupTransaction = (TransactionDetail)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateTopupTransaction(
+ shop.getId(),
+ customerAccount.getUser().getId(),
+ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb"
+ )
+ .moneyAmount(1000)
+ .pointAmount(1000));
+ assertEquals(topupTransaction.getType(), "topup");
+ TransactionDetail paymentTransaction = (TransactionDetail)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreatePaymentTransaction(
+ shop.getId(),
+ customerAccount.getUser().getId(),
+ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb",
+ 100
+ ));
+ Bill bill = (Bill)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateBill(
+ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb",
+ shop.getId()
+ ));
+ Bill billUpdated = (Bill)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.UpdateBill(
+ bill.getId()
+ )
+ .amount(200.0));
+ TransactionDetail billPayment = (TransactionDetail)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreatePaymentTransactionWithBill(
+ bill.getId(),
+ customerAccount.getUser().getId()
+ ));
+ assertEquals(paymentTransaction.getType(), "payment");
+ assertEquals(billPayment.getType(), "payment");
+ PaginatedTransactionV2 transactions = (PaginatedTransactionV2)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListTransactionsV2()
+ .privateMoneyId("4b138a4c-8944-4f98-a5c4-96d3c1c415eb")
+ .shopId(shop.getId())
+ .customerId(customerAccount.getUser().getId()));
+ PaginatedBillTransaction billTransactions = (PaginatedBillTransaction)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListBillTransactions()
+ .privateMoneyId("4b138a4c-8944-4f98-a5c4-96d3c1c415eb")
+ .shopId(shop.getId())
+ .customerId(customerAccount.getUser().getId()));
+ assertEquals(transactions.getCount(), 3);
+ assertEquals(billTransactions.getCount(), 1);
+ }
+}
diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java
index ddb65615..2ad07c94 100644
--- a/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java
+++ b/src/test/java/jp/pokepay/partnerapi/tdsl/CreateOrganizationTest.java
@@ -16,8 +16,8 @@ void testCreateOrganization() throws Exception {
String[] privateMoneyIds = new String[]{
"4b138a4c-8944-4f98-a5c4-96d3c1c415eb"
};
- String issuerAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp";
- String memberAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp";
+ String issuerAdminUserEmail = "blackhole@pokepay.jp";
+ String memberAdminUserEmail = "blackhole@pokepay.jp";
Organization response = (Organization)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateOrganization(
code,
name,
@@ -35,8 +35,8 @@ void testCreateOrganizationWithMetadata() throws Exception {
String[] privateMoneyIds = new String[]{
"4b138a4c-8944-4f98-a5c4-96d3c1c415eb"
};
- String issuerAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp";
- String memberAdminUserEmail = PartnerAPITest.randomString(6) + "@pokepay-tests.jp";
+ String issuerAdminUserEmail = "blackhole@pokepay.jp";
+ String memberAdminUserEmail = "blackhole@pokepay.jp";
String bankCode = "1234";
String bankName = PartnerAPITest.randomString(4) + "銀行";
String bankBranchCode = "123";
diff --git a/src/test/java/jp/pokepay/partnerapi/tdsl/RegisterBankAccount.java b/src/test/java/jp/pokepay/partnerapi/tdsl/RegisterBankAccount.java
new file mode 100644
index 00000000..8a47990d
--- /dev/null
+++ b/src/test/java/jp/pokepay/partnerapi/tdsl/RegisterBankAccount.java
@@ -0,0 +1,45 @@
+// DO NOT EDIT: File is generated by code generator.
+package jp.pokepay.partnerapi.tdsl;
+
+import jp.pokepay.partnerapi.PartnerAPITest;
+import jp.pokepay.partnerapi.response.*;
+import com.google.gson.JsonObject;
+import org.junit.jupiter.api.Test;
+
+import static org.junit.jupiter.api.Assertions.*;
+
+public class RegisterBankAccount {
+ @Test
+ void testRegisterBankAccount() throws Exception {
+ String customerName = "customer-name" + PartnerAPITest.randomString(6);
+ String accountName = "account-name" + PartnerAPITest.randomString(6);
+ AccountWithUser customer = (AccountWithUser)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateCustomerAccount(
+ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb"
+ )
+ .userName(customerName)
+ .accountName(accountName));
+ String userDeviceMetadata = "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}";
+ UserDevice userDevice = (UserDevice)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateUserDevice(
+ customer.getUser().getId()
+ )
+ .metadata(userDeviceMetadata));
+ UserDevice getUserDeviceResponse = (UserDevice)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.GetUserDevice(
+ userDevice.getId()
+ ));
+ assertEquals(getUserDeviceResponse.isActive(), false);
+ UserDevice userDeviceActivated = (UserDevice)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ActivateUserDevice(
+ getUserDeviceResponse.getId()
+ ));
+ assertEquals(userDeviceActivated.isActive(), true);
+ BankRegisteringInfo createBank = (BankRegisteringInfo)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.CreateBank(
+ getUserDeviceResponse.getId(),
+ "4b138a4c-8944-4f98-a5c4-96d3c1c415eb",
+ "dummy",
+ "ポケペイタロウ"
+ ));
+ Banks bankAccountsListed = (Banks)PartnerAPITest.getClient().send(new jp.pokepay.partnerapi.request.ListBanks(
+ getUserDeviceResponse.getId()
+ ));
+ assertEquals(bankAccountsListed.getCount(), 0);
+ }
+}