diff --git a/docs/index.md b/docs/index.md
index e9aca85..0fc4d9a 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -211,6 +211,8 @@ try {
- [CreateCustomerAccount](#create-customer-account): 新規エンドユーザーをウォレットと共に追加する
- [GetShopAccounts](#get-shop-accounts): 店舗ユーザーのウォレット一覧を表示する
- [ListCustomerTransactions](#list-customer-transactions): 取引履歴を取得する
+- [ListOrganizations](#list-organizations): 加盟店組織の一覧を取得する
+- [CreateOrganization](#create-organization): 新規加盟店組織を追加する
- [ListShops](#list-shops): 店舗一覧を取得する
- [CreateShop](#create-shop): 【廃止】新規店舗を追加する
- [CreateShopV2](#create-shop-v2): 新規店舗を追加する
@@ -238,13 +240,17 @@ try {
- [UpdateCoupon](#update-coupon): クーポンの更新
- [CreateUserDevice](#create-user-device): ユーザーのデバイス登録
- [GetUserDevice](#get-user-device): ユーザーのデバイスを取得
+- [ActivateUserDevice](#activate-user-device): デバイスの有効化
+- [CreateBank](#create-bank): 銀行口座の登録
+- [ListBanks](#list-banks): 登録した銀行の一覧
+- [CreateBankTopupTransaction](#create-bank-topup-transaction): 銀行からのチャージ
### Transaction
#### CPMトークンの状態取得
CPMトークンの現在の状態を取得します。CPMトークンの有効期限やCPM取引の状態を返します。
```csharp
Request.GetCpmToken request = new Request.GetCpmToken(
- "wQI05I6eJLYrFtVTc8XF6I" // CPMトークン
+ "ulFo5mDyJw8V3XaTOkFDFD" // CPMトークン
);
Response.CpmToken response = await request.Send(client);
```
@@ -267,15 +273,15 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを
取引一覧を返します。
```csharp
Request.ListTransactions request = new Request.ListTransactions() {
- From = "2015-10-30T03:07:58.000000+09:00", // 開始日時
- To = "2017-03-25T06:46:32.000000+09:00", // 終了日時
+ From = "2021-02-09T18:58:32.000000Z", // 開始日時
+ To = "2022-12-03T17:28:10.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 = "He5QYfhFsP", // 取引ID
+ TransactionId = "kJRYuzmNr", // 取引ID
OrganizationCode = "pocketchange", // 組織コード
PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
IsModified = true, // キャンセルフラグ
@@ -380,7 +386,9 @@ Response.PaginatedTransaction response = await request.Send(client);
---
`transaction_id`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
取引IDです。
@@ -414,7 +422,9 @@ Response.PaginatedTransaction response = await request.Send(client);
---
`is_modified`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
キャンセルフラグです。
@@ -428,11 +438,14 @@ Response.PaginatedTransaction response = await request.Send(client);
"type": "array",
"items": {
"type": "string",
- "enum": {
- "topup": "payment",
- "exchange_outflow": "exchange_inflow",
- "cashback": "expire"
- }
+ "enum": [
+ "topup",
+ "payment",
+ "exchange_outflow",
+ "exchange_inflow",
+ "cashback",
+ "expire"
+ ]
}
}
```
@@ -481,10 +494,10 @@ Request.CreateTransaction request = new Request.CreateTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
) {
- MoneyAmount = 2524,
- PointAmount = 4699,
- PointExpiresAt = "2021-10-16T09:20:52.000000+09:00", // ポイント有効期限
- Description = "Y5Zym6qbNd5Gezpxyuuv2alBrKWaTbSFgzh7CQVHCWblj8QDbDxzNolTpcO7N2cnroE2RpkIIvh8",
+ MoneyAmount = 713,
+ PointAmount = 7622,
+ PointExpiresAt = "2022-08-29T06:44:29.000000Z", // ポイント有効期限
+ Description = "YcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz",
};
Response.TransactionDetail response = await request.Send(client);
```
@@ -514,11 +527,11 @@ Request.ListTransactionsV2 request = new Request.ListTransactionsV2() {
CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID
CustomerName = "太郎", // エンドユーザー名
Description = "店頭QRコードによる支払い", // 取引説明文
- TransactionId = "Erjc", // 取引ID
+ TransactionId = "T8Jn6tKv84", // 取引ID
IsModified = true, // キャンセルフラグ
Types = new string[]{"topup", "payment"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment
- From = "2018-03-17T10:15:49.000000+09:00", // 開始日時
- To = "2017-03-31T05:43:42.000000+09:00", // 終了日時
+ From = "2023-12-17T00:21:30.000000Z", // 開始日時
+ To = "2020-09-12T19:25:31.000000Z", // 終了日時
NextPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransactionのID
PrevPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransactionのID
PerPage = 50, // 1ページ分の取引数
@@ -614,7 +627,9 @@ Response.PaginatedTransactionV2 response = await request.Send(client);
---
`transaction_id`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
取引IDです。
@@ -623,7 +638,9 @@ Response.PaginatedTransactionV2 response = await request.Send(client);
---
`is_modified`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
キャンセルフラグです。
@@ -637,11 +654,14 @@ Response.PaginatedTransactionV2 response = await request.Send(client);
"type": "array",
"items": {
"type": "string",
- "enum": {
- "topup": "payment",
- "exchange_outflow": "exchange_inflow",
- "cashback": "expire"
- }
+ "enum": [
+ "topup",
+ "payment",
+ "exchange_outflow",
+ "exchange_inflow",
+ "cashback",
+ "expire"
+ ]
}
}
```
@@ -749,9 +769,9 @@ Request.CreateTopupTransaction request = new Request.CreateTopupTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID
) {
BearPointShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント支払時の負担店舗ID
- MoneyAmount = 8558, // マネー額
- PointAmount = 6797, // ポイント額
- PointExpiresAt = "2017-08-03T16:25:22.000000+09:00", // ポイント有効期限
+ MoneyAmount = 4072, // マネー額
+ PointAmount = 9325, // ポイント額
+ PointExpiresAt = "2022-02-17T02:29:28.000000Z", // ポイント有効期限
Description = "初夏のチャージキャンペーン", // 取引履歴に表示する説明文
Metadata = "{\"key\":\"value\"}", // 取引メタデータ
RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID
@@ -894,11 +914,11 @@ Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- 1352 // 支払い額
+ 4299 // 支払い額
) {
Description = "たい焼き(小倉)", // 取引履歴に表示する説明文
Metadata = "{\"key\":\"value\"}", // 取引メタデータ
- Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ
+ Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ
RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID
};
Response.TransactionDetail response = await request.Send(client);
@@ -981,7 +1001,9 @@ Response.TransactionDetail response = await request.Send(client);
```json
{
"type": "array",
- "items": { "type": "object" }
+ "items": {
+ "type": "object"
+ }
}
```
一つの取引に含まれる商品情報データです。
@@ -1017,13 +1039,13 @@ CPMトークンに設定されたスコープの取引を作ることができ
```csharp
Request.CreateCpmTransaction request = new Request.CreateCpmTransaction(
- "wHlXpjEUxFP9ZbCN8RnV7Q", // CPMトークン
+ "JWGe0W2JoBVxOBG6QSEaMM", // CPMトークン
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID
- 7571.0 // 取引金額
+ 1462.0 // 取引金額
) {
Description = "たい焼き(小倉)", // 取引説明文
Metadata = "{\"key\":\"value\"}", // 店舗側メタデータ
- Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ
+ Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ
RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID
};
Response.TransactionDetail response = await request.Send(client);
@@ -1057,7 +1079,9 @@ Response.TransactionDetail response = await request.Send(client);
---
`amount`
```json
-{ "type": "number" }
+{
+ "type": "number"
+}
```
取引金額を指定します。
@@ -1092,7 +1116,9 @@ Response.TransactionDetail response = await request.Send(client);
```json
{
"type": "array",
- "items": { "type": "object" }
+ "items": {
+ "type": "object"
+ }
}
```
一つの取引に含まれる商品情報データです。
@@ -1131,7 +1157,7 @@ Request.CreateTransferTransaction request = new Request.CreateTransferTransactio
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元ユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取ユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- 3737.0 // 送金額
+ 3012.0 // 送金額
) {
Metadata = "{\"key\":\"value\"}", // 取引メタデータ
Description = "たい焼き(小倉)", // 取引履歴に表示する説明文
@@ -1235,9 +1261,9 @@ Request.CreateExchangeTransaction request = new Request.CreateExchangeTransactio
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- 5674.0
+ 7268
) {
- Description = "3f",
+ Description = "jfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCD",
RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID
};
Response.TransactionDetail response = await request.Send(client);
@@ -1297,7 +1323,7 @@ Request.RefundTransaction request = new Request.RefundTransaction(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 取引ID
) {
Description = "返品対応のため", // 取引履歴に表示する返金事由
- ReturningPointExpiresAt = "2017-02-08T20:07:31.000000+09:00", // 返却ポイントの有効期限
+ ReturningPointExpiresAt = "2023-05-11T18:52:28.000000Z", // 返却ポイントの有効期限
};
Response.TransactionDetail response = await request.Send(client);
```
@@ -1358,8 +1384,8 @@ CSVの作成は非同期で行われるため完了まで少しの間待つ必
また、指定期間より前の決済を時間をおいてキャンセルした場合などには payment_money_amount, payment_point_amount, payment_transaction_count が負の値になることもあることに留意してください。
```csharp
Request.RequestUserStats request = new Request.RequestUserStats(
- "2018-10-11T21:55:34.000000+09:00", // 集計期間の開始時刻
- "2018-01-26T01:24:10.000000+09:00" // 集計期間の終了時刻
+ "2022-05-20T17:56:49.000000+09:00", // 集計期間の開始時刻
+ "2023-12-10T01:16:11.000000+09:00" // 集計期間の終了時刻
);
Response.UserStatsOperation response = await request.Send(client);
```
@@ -1396,8 +1422,8 @@ Response.UserStatsOperation response = await request.Send(client);
Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID
) {
- From = "2020-02-20T06:54:21.000000+09:00", // 集計期間の開始時刻
- To = "2019-03-18T13:55:43.000000+09:00", // 集計期間の終了時刻
+ From = "2023-06-01T05:18:02.000000Z", // 集計期間の開始時刻
+ To = "2021-03-07T07:42:08.000000Z", // 集計期間の終了時刻
TransferTypes = new string[]{"topup", "payment"}, // 取引明細種別 (複数指定可)
};
Response.AccountTransferSummary response = await request.Send(client);
@@ -1422,14 +1448,20 @@ Response.AccountTransferSummary response = await request.Send(client);
"type": "array",
"items": {
"type": "string",
- "enum": {
- "payment": "topup",
- "campaign-topup": "use-coupon",
- "refund-payment": "refund-topup",
- "refund-campaign": "refund-coupon",
- "exchange-inflow": "exchange-outflow",
- "refund-exchange-inflow": "refund-exchange-outflow"
- }
+ "enum": [
+ "payment",
+ "topup",
+ "campaign-topup",
+ "use-coupon",
+ "refund-payment",
+ "refund-topup",
+ "refund-campaign",
+ "refund-coupon",
+ "exchange-inflow",
+ "exchange-outflow",
+ "refund-exchange-inflow",
+ "refund-exchange-outflow"
+ ]
}
}
```
@@ -1467,19 +1499,19 @@ Response.AccountTransferSummary response = await request.Send(client);
####
```csharp
Request.ListTransfers request = new Request.ListTransfers() {
- From = "2019-04-16T10:59:16.000000+09:00",
- To = "2021-01-11T01:21:36.000000+09:00",
- Page = 1119,
- PerPage = 3859,
+ From = "2020-01-25T14:29:08.000000Z",
+ To = "2024-01-19T14:59:19.000000Z",
+ Page = 7643,
+ PerPage = 422,
ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- ShopName = "zWRiioT9QYFPklAn30gj1CmaOUBeCZvfeO7Sgh2QcnuYHCBxXNgm1qjvh6lwQ5YfQRfoj2wOYmg9391o91QzyCQzu6PMATfONJfxW9vGUYm5paU0VcU72VDfrMfAvz54ATPoiAdZgkLgRvu594uUs007xOusoKdSFtNkw4qjPQJ7jTB834RHyBZkwsIjZ1p1bmTMaDirN4G2FVcRAILTPQLxfz7QY",
+ ShopName = "XMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpP",
CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- CustomerName = "zqiXv1dBYjU",
+ CustomerName = "yEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3Il",
TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
IsModified = true,
- TransactionTypes = new string[]{"transfer", "payment", "exchange", "expire", "cashback", "topup"},
- TransferTypes = new string[]{"expire", "exchange", "campaign", "transfer", "payment", "cashback"}, // 取引明細の種類でフィルターします。
+ TransactionTypes = new string[]{"transfer", "payment", "exchange", "cashback", "topup", "expire"},
+ TransferTypes = new string[]{"transfer", "campaign", "expire", "exchange", "payment"}, // 取引明細の種類でフィルターします。
Description = "店頭QRコードによる支払い", // 取引詳細説明文
};
Response.PaginatedTransfers response = await request.Send(client);
@@ -1492,12 +1524,16 @@ Response.PaginatedTransfers response = await request.Send(client);
"type": "array",
"items": {
"type": "string",
- "enum": {
- "topup": "payment",
- "exchange": "transfer",
- "coupon": "campaign",
- "cashback": "expire"
- }
+ "enum": [
+ "topup",
+ "payment",
+ "exchange",
+ "transfer",
+ "coupon",
+ "campaign",
+ "cashback",
+ "expire"
+ ]
}
}
```
@@ -1545,20 +1581,20 @@ Response.PaginatedTransfers response = await request.Send(client);
```csharp
Request.ListTransfersV2 request = new Request.ListTransfersV2() {
ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID
- ShopName = "AzTO6PEOOvujUYEjG1bsd93HwfuPWrouBgDOWBAyx1cuE", // 店舗名
+ ShopName = "gDsmRtGnF7L4kFCWrbFqt27c2", // 店舗名
CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID
- CustomerName = "pTU2CQDBEdrTGpzQaoH7roprIUCAGYbFfz98qEYs3fTBqIMEk6UFEGcRCIsN4Zfz8ZjlCqkGEh1KM2WnPd3zzJU6PO3sdcI8PDT08v74BI2VPe8qds4I2MEA4gJjHtGd0BbRBDVeSYn8uvrsJwmXqAKgViXf2eJim1RdN4XCU5aG5xcoPdJ6AA1qyCCpsvposWm2l41CxysbDiZ7jcWk9v3rFU", // エンドユーザー名
+ CustomerName = "HcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFt", // エンドユーザー名
TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID
PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- IsModified = false, // キャンセルフラグ
+ IsModified = true, // キャンセルフラグ
TransactionTypes = new string[]{"transfer"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment
NextPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransferのID
PrevPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransferのID
PerPage = 50, // 1ページ分の取引数
- TransferTypes = new string[]{"exchange", "expire", "transfer", "coupon", "payment", "campaign", "topup", "cashback"}, // 取引明細種別 (複数指定可)
+ TransferTypes = new string[]{"payment", "expire", "coupon"}, // 取引明細種別 (複数指定可)
Description = "店頭QRコードによる支払い", // 取引詳細説明文
- From = "2018-12-16T10:52:31.000000+09:00", // 開始日時
- To = "2022-04-11T23:21:51.000000+09:00", // 終了日時
+ From = "2020-06-13T02:02:54.000000Z", // 開始日時
+ To = "2021-07-01T03:33:06.000000Z", // 終了日時
};
Response.PaginatedTransfersV2 response = await request.Send(client);
```
@@ -1638,7 +1674,9 @@ Response.PaginatedTransfersV2 response = await request.Send(client);
---
`is_modified`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
キャンセルフラグです。
@@ -1652,11 +1690,14 @@ Response.PaginatedTransfersV2 response = await request.Send(client);
"type": "array",
"items": {
"type": "string",
- "enum": {
- "topup": "payment",
- "transfer": "exchange",
- "cashback": "expire"
- }
+ "enum": [
+ "topup",
+ "payment",
+ "transfer",
+ "exchange",
+ "cashback",
+ "expire"
+ ]
}
}
```
@@ -1735,12 +1776,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません
"type": "array",
"items": {
"type": "string",
- "enum": {
- "topup": "payment",
- "exchange": "transfer",
- "coupon": "campaign",
- "cashback": "expire"
- }
+ "enum": [
+ "topup",
+ "payment",
+ "exchange",
+ "transfer",
+ "coupon",
+ "campaign",
+ "cashback",
+ "expire"
+ ]
}
}
```
@@ -1822,13 +1867,13 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマ
Request.CreateCheck request = new Request.CreateCheck(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 送金元の店舗アカウントID
) {
- MoneyAmount = 5901.0, // 付与マネー額
- PointAmount = 2101.0, // 付与ポイント額
+ MoneyAmount = 1137.0, // 付与マネー額
+ PointAmount = 1857.0, // 付与ポイント額
Description = "test check", // 説明文(アプリ上で取引の説明文として表示される)
- IsOnetime = true, // ワンタイムかどうかのフラグ
- UsageLimit = 1065, // ワンタイムでない場合の最大読み取り回数
- ExpiresAt = "2022-05-20T16:23:37.000000+09:00", // チャージQRコード自体の失効日時
- PointExpiresAt = "2022-02-07T12:38:55.000000+09:00", // チャージQRコードによって付与されるポイント残高の有効期限
+ IsOnetime = false, // ワンタイムかどうかのフラグ
+ UsageLimit = 3412, // ワンタイムでない場合の最大読み取り回数
+ ExpiresAt = "2021-03-19T15:02:16.000000Z", // チャージQRコード自体の失効日時
+ PointExpiresAt = "2023-07-16T22:11:18.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限
PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)
BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID
};
@@ -1866,7 +1911,9 @@ Response.Check response = await request.Send(client);
---
`is_onetime`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。
`false`の場合、複数ユーザによって読み取り可能なQRコードになります。
@@ -1876,7 +1923,9 @@ Response.Check response = await request.Send(client);
---
`usage_limit`
```json
-{ "type": "integer" }
+{
+ "type": "integer"
+}
```
複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。
NULLに設定すると無制限に読み取り可能なチャージQRコードになります。
@@ -1941,18 +1990,18 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
#### チャージQRコード一覧の取得
```csharp
Request.ListChecks request = new Request.ListChecks() {
- Page = 2639, // ページ番号
+ Page = 3706, // ページ番号
PerPage = 50, // 1ページの表示数
PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- OrganizationCode = "htXiY", // 組織コード
- ExpiresFrom = "2021-11-08T10:21:17.000000+09:00", // 有効期限の期間によるフィルター(開始時点)
- ExpiresTo = "2023-09-13T16:38:30.000000+09:00", // 有効期限の期間によるフィルター(終了時点)
- CreatedFrom = "2023-07-08T22:23:24.000000+09:00", // 作成日時の期間によるフィルター(開始時点)
- CreatedTo = "2022-08-29T21:10:35.000000+09:00", // 作成日時の期間によるフィルター(終了時点)
+ OrganizationCode = "0A3", // 組織コード
+ ExpiresFrom = "2023-09-08T15:18:47.000000Z", // 有効期限の期間によるフィルター(開始時点)
+ ExpiresTo = "2022-08-09T10:42:18.000000Z", // 有効期限の期間によるフィルター(終了時点)
+ CreatedFrom = "2022-06-07T12:42:11.000000Z", // 作成日時の期間によるフィルター(開始時点)
+ CreatedTo = "2023-06-18T14:55:56.000000Z", // 作成日時の期間によるフィルター(終了時点)
IssuerShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID
- Description = "iZLpJ", // チャージQRコードの説明文
- IsOnetime = false, // ワンタイムのチャージQRコードかどうか
- IsDisabled = false, // 無効化されたチャージQRコードかどうか
+ Description = "2EcUb892j", // チャージQRコードの説明文
+ IsOnetime = true, // ワンタイムのチャージQRコードかどうか
+ IsDisabled = true, // 無効化されたチャージQRコードかどうか
};
Response.PaginatedChecks response = await request.Send(client);
```
@@ -2052,7 +2101,9 @@ Response.PaginatedChecks response = await request.Send(client);
---
`description`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
チャージQRコードの説明文(description)によってフィルターします。
部分一致(前方一致)したものを表示します。
@@ -2062,7 +2113,9 @@ Response.PaginatedChecks response = await request.Send(client);
---
`is_onetime`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
チャージQRコードがワンタイムに設定されているかどうかでフィルターします。
`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。
@@ -2073,7 +2126,9 @@ Response.PaginatedChecks response = await request.Send(client);
---
`is_disabled`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
チャージQRコードが無効化されているかどうかでフィルターします。
`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。
@@ -2110,16 +2165,16 @@ Response.Check response = await request.Send(client);
Request.UpdateCheck request = new Request.UpdateCheck(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // チャージQRコードのID
) {
- MoneyAmount = 6029.0, // 付与マネー額
- PointAmount = 7582.0, // 付与ポイント額
+ MoneyAmount = 691.0, // 付与マネー額
+ PointAmount = 974.0, // 付与ポイント額
Description = "test check", // チャージQRコードの説明文
- IsOnetime = false, // ワンタイムかどうかのフラグ
- UsageLimit = 2686, // ワンタイムでない場合の最大読み取り回数
- ExpiresAt = "2021-02-12T01:08:59.000000+09:00", // チャージQRコード自体の失効日時
- PointExpiresAt = "2019-05-20T20:00:25.000000+09:00", // チャージQRコードによって付与されるポイント残高の有効期限
+ IsOnetime = true, // ワンタイムかどうかのフラグ
+ UsageLimit = 787, // ワンタイムでない場合の最大読み取り回数
+ ExpiresAt = "2020-08-02T15:37:21.000000Z", // チャージQRコード自体の失効日時
+ PointExpiresAt = "2020-03-29T12:42:24.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限
PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)
BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID
- IsDisabled = false, // 無効化されているかどうかのフラグ
+ IsDisabled = true, // 無効化されているかどうかのフラグ
};
Response.Check response = await request.Send(client);
```
@@ -2175,7 +2230,9 @@ Response.Check response = await request.Send(client);
---
`is_onetime`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
チャージQRコードが一度の読み取りで失効するときに`true`にします。
`false`の場合、複数ユーザによって読み取り可能なQRコードになります。
@@ -2185,7 +2242,9 @@ Response.Check response = await request.Send(client);
---
`usage_limit`
```json
-{ "type": "integer" }
+{
+ "type": "integer"
+}
```
複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。
NULLに設定すると無制限に読み取り可能なチャージQRコードになります。
@@ -2246,7 +2305,9 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード
---
`is_disabled`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
チャージQRコードを無効化するときに`true`にします。
`false`の場合は無効化されているチャージQRコードを再有効化します。
@@ -2317,19 +2378,19 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な
支払いQRコード一覧を表示します。
```csharp
Request.ListBills request = new Request.ListBills() {
- Page = 1467, // ページ番号
- PerPage = 7202, // 1ページの表示数
- BillId = "klcH2", // 支払いQRコードのID
+ Page = 2111, // ページ番号
+ PerPage = 6570, // 1ページの表示数
+ BillId = "yFeM64i", // 支払いQRコードのID
PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- OrganizationCode = "a3z-L6A8-mG2-R--22q--", // 組織コード
+ OrganizationCode = "a-RQbg-P55SQ", // 組織コード
Description = "test bill", // 取引説明文
- CreatedFrom = "2017-09-04T12:13:20.000000+09:00", // 作成日時(起点)
- CreatedTo = "2023-05-29T15:55:52.000000+09:00", // 作成日時(終点)
+ CreatedFrom = "2022-04-08T18:46:56.000000Z", // 作成日時(起点)
+ CreatedTo = "2023-05-26T08:42:49.000000Z", // 作成日時(終点)
ShopName = "bill test shop1", // 店舗名
ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID
- LowerLimitAmount = 9389, // 金額の範囲によるフィルタ(下限)
- UpperLimitAmount = 3073, // 金額の範囲によるフィルタ(上限)
- IsDisabled = false, // 支払いQRコードが無効化されているかどうか
+ LowerLimitAmount = 8447, // 金額の範囲によるフィルタ(下限)
+ UpperLimitAmount = 5739, // 金額の範囲によるフィルタ(上限)
+ IsDisabled = true, // 支払いQRコードが無効化されているかどうか
};
Response.PaginatedBills response = await request.Send(client);
```
@@ -2357,7 +2418,9 @@ Response.PaginatedBills response = await request.Send(client);
---
`bill_id`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。
@@ -2461,7 +2524,9 @@ Response.PaginatedBills response = await request.Send(client);
---
`is_disabled`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。
@@ -2475,7 +2540,7 @@ Request.CreateBill request = new Request.CreateBill(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いマネーのマネーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払い先(受け取り人)の店舗ID
) {
- Amount = 9656.0, // 支払い額
+ Amount = 7339.0, // 支払い額
Description = "test bill", // 説明文(アプリ上で取引の説明文として表示される)
};
Response.Bill response = await request.Send(client);
@@ -2501,9 +2566,9 @@ Response.Bill response = await request.Send(client);
Request.UpdateBill request = new Request.UpdateBill(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払いQRコードのID
) {
- Amount = 9255.0, // 支払い額
+ Amount = 2784.0, // 支払い額
Description = "test bill", // 説明文
- IsDisabled = true, // 無効化されているかどうか
+ IsDisabled = false, // 無効化されているかどうか
};
Response.Bill response = await request.Send(client);
```
@@ -2542,7 +2607,9 @@ Response.Bill response = await request.Send(client);
---
`is_disabled`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。
@@ -2567,10 +2634,10 @@ Cashtrayを作成します。
Request.CreateCashtray request = new Request.CreateCashtray(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID
- 8384.0 // 金額
+ 4879.0 // 金額
) {
Description = "たい焼き(小倉)", // 取引履歴に表示する説明文
- ExpiresIn = 5209, // 失効時間(秒)
+ ExpiresIn = 4584, // 失効時間(秒)
};
Response.Cashtray response = await request.Send(client);
```
@@ -2598,7 +2665,9 @@ Response.Cashtray response = await request.Send(client);
---
`amount`
```json
-{ "type": "number" }
+{
+ "type": "number"
+}
```
マネー額です(必須項目)。
正の値を与えるとチャージになり、負の値を与えると支払いとなります。
@@ -2737,9 +2806,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可
Request.UpdateCashtray request = new Request.UpdateCashtray(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID
) {
- Amount = 6530.0, // 金額
+ Amount = 4450.0, // 金額
Description = "たい焼き(小倉)", // 取引履歴に表示する説明文
- ExpiresIn = 485, // 失効時間(秒)
+ ExpiresIn = 4918, // 失効時間(秒)
};
Response.Cashtray response = await request.Send(client);
```
@@ -2757,7 +2826,9 @@ Response.Cashtray response = await request.Send(client);
---
`amount`
```json
-{ "type": "number" }
+{
+ "type": "number"
+}
```
マネー額です(任意項目)。
正の値を与えるとチャージになり、負の値を与えると支払いとなります。
@@ -2845,7 +2916,9 @@ Response.AccountDetail response = await request.Send(client);
---
`is_suspended`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。
@@ -2854,7 +2927,11 @@ Response.AccountDetail response = await request.Send(client);
```json
{
"type": "string",
- "enum": [ "active", "suspended", "pre-closed" ]
+ "enum": [
+ "active",
+ "suspended",
+ "pre-closed"
+ ]
}
```
ウォレットの状態です。
@@ -2862,7 +2939,9 @@ Response.AccountDetail response = await request.Send(client);
---
`can_transfer_topup`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。
@@ -2875,7 +2954,7 @@ Response.AccountDetail response = await request.Send(client);
Request.DeleteAccount request = new Request.DeleteAccount(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID
) {
- Cashback = false, // 返金有無
+ Cashback = true, // 返金有無
};
Response.AccountDeleted response = await request.Send(client);
```
@@ -2895,7 +2974,9 @@ Response.AccountDeleted response = await request.Send(client);
---
`cashback`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。
@@ -2908,11 +2989,11 @@ Response.AccountDeleted response = await request.Send(client);
Request.ListAccountBalances request = new Request.ListAccountBalances(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID
) {
- Page = 4872, // ページ番号
- PerPage = 7705, // 1ページ分の取引数
- ExpiresAtFrom = "2022-01-12T04:28:33.000000+09:00", // 有効期限の期間によるフィルター(開始時点)
- ExpiresAtTo = "2024-12-13T12:43:13.000000+09:00", // 有効期限の期間によるフィルター(終了時点)
- Direction = "asc", // 有効期限によるソート順序
+ Page = 4038, // ページ番号
+ PerPage = 9332, // 1ページ分の取引数
+ ExpiresAtFrom = "2021-12-12T20:53:51.000000Z", // 有効期限の期間によるフィルター(開始時点)
+ ExpiresAtTo = "2022-03-09T21:57:33.000000Z", // 有効期限の期間によるフィルター(終了時点)
+ Direction = "desc", // 有効期限によるソート順序
};
Response.PaginatedAccountBalance response = await request.Send(client);
```
@@ -2974,7 +3055,10 @@ Response.PaginatedAccountBalance response = await request.Send(client);
```json
{
"type": "string",
- "enum": { "asc": "desc" }
+ "enum": [
+ "asc",
+ "desc"
+ ]
}
```
有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。
@@ -2988,11 +3072,11 @@ Response.PaginatedAccountBalance response = await request.Send(client);
Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID
) {
- Page = 6384, // ページ番号
- PerPage = 1455, // 1ページ分の取引数
- ExpiresAtFrom = "2020-09-15T08:55:30.000000+09:00", // 有効期限の期間によるフィルター(開始時点)
- ExpiresAtTo = "2024-02-20T00:33:11.000000+09:00", // 有効期限の期間によるフィルター(終了時点)
- Direction = "asc", // 有効期限によるソート順序
+ Page = 6344, // ページ番号
+ PerPage = 1186, // 1ページ分の取引数
+ ExpiresAtFrom = "2022-12-02T04:36:47.000000Z", // 有効期限の期間によるフィルター(開始時点)
+ ExpiresAtTo = "2023-08-15T16:25:46.000000Z", // 有効期限の期間によるフィルター(終了時点)
+ Direction = "desc", // 有効期限によるソート順序
};
Response.PaginatedAccountBalance response = await request.Send(client);
```
@@ -3054,7 +3138,10 @@ Response.PaginatedAccountBalance response = await request.Send(client);
```json
{
"type": "string",
- "enum": { "asc": "desc" }
+ "enum": [
+ "asc",
+ "desc"
+ ]
}
```
有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。
@@ -3068,9 +3155,9 @@ Response.PaginatedAccountBalance response = await request.Send(client);
Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID
) {
- Status = "pre-closed", // ウォレット状態
- AccountName = "d5HY97wwuPUMWYXfSOYkBqdKQHMj0xj5uvmLIH1QsPN0PjhwTGf2mN1F2zk6ohGQXXOWGMzSPyYX4Gz7T7Okc8H49W9k1eK7Preq8n", // アカウント名
- ExternalId = "M5cjWnymvcVzayJGxdqzoO9uXS4XBDN0o0Mu7ieKvzIZjqj6c", // 外部ID
+ Status = "active", // ウォレット状態
+ AccountName = "bxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPv", // アカウント名
+ ExternalId = "o", // 外部ID
Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", // ウォレットに付加するメタデータ
};
Response.AccountWithUser response = await request.Send(client);
@@ -3093,7 +3180,11 @@ Response.AccountWithUser response = await request.Send(client);
```json
{
"type": "string",
- "enum": [ "active", "suspended", "pre-closed" ]
+ "enum": [
+ "active",
+ "suspended",
+ "pre-closed"
+ ]
}
```
ウォレットの状態です。
@@ -3152,15 +3243,15 @@ Response.AccountWithUser response = await request.Send(client);
Request.GetCustomerAccounts request = new Request.GetCustomerAccounts(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID
) {
- Page = 1258, // ページ番号
- PerPage = 8736, // 1ページ分のウォレット数
- CreatedAtFrom = "2024-07-03T01:56:28.000000+09:00", // ウォレット作成日によるフィルター(開始時点)
- CreatedAtTo = "2022-05-08T20:17:33.000000+09:00", // ウォレット作成日によるフィルター(終了時点)
+ Page = 7158, // ページ番号
+ PerPage = 1278, // 1ページ分のウォレット数
+ CreatedAtFrom = "2023-02-19T06:09:39.000000Z", // ウォレット作成日によるフィルター(開始時点)
+ CreatedAtTo = "2022-05-26T12:04:19.000000Z", // ウォレット作成日によるフィルター(終了時点)
IsSuspended = false, // ウォレットが凍結状態かどうかでフィルターする
Status = "active", // ウォレット状態
- ExternalId = "TLqf5I0WmQs", // 外部ID
- Tel = "06-3573-366", // エンドユーザーの電話番号
- Email = "5j5hei5een@uWOL.com", // エンドユーザーのメールアドレス
+ ExternalId = "Ms9", // 外部ID
+ Tel = "0955159538", // エンドユーザーの電話番号
+ Email = "sXeAgeVmz0@XdBq.com", // エンドユーザーのメールアドレス
};
Response.PaginatedAccountWithUsers response = await request.Send(client);
```
@@ -3220,7 +3311,9 @@ Response.PaginatedAccountWithUsers response = await request.Send(client);
---
`is_suspended`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
@@ -3229,7 +3322,11 @@ Response.PaginatedAccountWithUsers response = await request.Send(client);
```json
{
"type": "string",
- "enum": [ "active", "suspended", "pre-closed" ]
+ "enum": [
+ "active",
+ "suspended",
+ "pre-closed"
+ ]
}
```
このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。
@@ -3278,7 +3375,7 @@ Request.CreateCustomerAccount request = new Request.CreateCustomerAccount(
) {
UserName = "ポケペイ太郎", // ユーザー名
AccountName = "ポケペイ太郎のアカウント", // アカウント名
- ExternalId = "qxpAqKhr1PiatJCFbxFePHe8fLp7pWtBDbGEkzsRtHz3", // 外部ID
+ ExternalId = "vz2LZqSb1Cr9Gv", // 外部ID
};
Response.AccountWithUser response = await request.Send(client);
```
@@ -3334,11 +3431,11 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで
Request.GetShopAccounts request = new Request.GetShopAccounts(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID
) {
- Page = 6570, // ページ番号
- PerPage = 3852, // 1ページ分のウォレット数
- CreatedAtFrom = "2023-07-15T07:40:37.000000+09:00", // ウォレット作成日によるフィルター(開始時点)
- CreatedAtTo = "2016-08-02T15:03:57.000000+09:00", // ウォレット作成日によるフィルター(終了時点)
- IsSuspended = true, // ウォレットが凍結状態かどうかでフィルターする
+ Page = 5289, // ページ番号
+ PerPage = 7371, // 1ページ分のウォレット数
+ CreatedAtFrom = "2020-08-07T01:47:22.000000Z", // ウォレット作成日によるフィルター(開始時点)
+ CreatedAtTo = "2023-02-04T11:29:08.000000Z", // ウォレット作成日によるフィルター(終了時点)
+ IsSuspended = false, // ウォレットが凍結状態かどうかでフィルターする
};
Response.PaginatedAccountWithUsers response = await request.Send(client);
```
@@ -3398,7 +3495,9 @@ Response.PaginatedAccountWithUsers response = await request.Send(client);
---
`is_suspended`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。
@@ -3413,10 +3512,10 @@ Request.ListCustomerTransactions request = new Request.ListCustomerTransactions(
) {
SenderCustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金エンドユーザーID
ReceiverCustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取エンドユーザーID
- Type = "exchange", // 取引種別
- IsModified = true, // キャンセル済みかどうか
- From = "2024-09-06T14:52:50.000000+09:00", // 開始日時
- To = "2017-03-27T10:37:37.000000+09:00", // 終了日時
+ Type = "payment", // 取引種別
+ IsModified = false, // キャンセル済みかどうか
+ From = "2021-12-12T20:22:48.000000Z", // 開始日時
+ To = "2022-06-05T02:13:10.000000Z", // 終了日時
Page = 1, // ページ番号
PerPage = 50, // 1ページ分の取引数
};
@@ -3463,11 +3562,14 @@ Response.PaginatedTransaction response = await request.Send(client);
```json
{
"type": "string",
- "enum": {
- "topup": "payment",
- "exchange": "transfer",
- "cashback": "expire"
- }
+ "enum": [
+ "topup",
+ "payment",
+ "exchange",
+ "transfer",
+ "cashback",
+ "expire"
+ ]
}
```
取引の種類でフィルターします。
@@ -3490,7 +3592,9 @@ Response.PaginatedTransaction response = await request.Send(client);
---
`is_modified`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
キャンセル済みかどうかを判定するフラグです。
@@ -3545,6 +3649,75 @@ falseを指定するとキャンセルされていない取引のみ一覧に表
---
成功したときは[PaginatedTransaction](#paginated-transaction)オブジェクトを返します
### Organization
+
+#### 加盟店組織の一覧を取得する
+```csharp
+Request.ListOrganizations request = new Request.ListOrganizations(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID
+) {
+ Page = 1, // ページ番号
+ PerPage = 50, // 1ページ分の取引数
+ Name = "JVn", // 組織名
+ Code = "04l", // 組織コード
+};
+Response.PaginatedOrganizations response = await request.Send(client);
+```
+
+---
+`private_money_id`
+```json
+{
+ "type": "string",
+ "format": "uuid"
+}
+```
+マネーIDです。
+このマネーに加盟している加盟組織がフィルターされます。
+
+---
+`page`
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+取得したいページ番号です。
+
+---
+`per_page`
+```json
+{
+ "type": "integer",
+ "minimum": 1
+}
+```
+1ページ分の取引数です。
+
+---
+成功したときは[PaginatedOrganizations](#paginated-organizations)オブジェクトを返します
+
+#### 新規加盟店組織を追加する
+```csharp
+Request.CreateOrganization request = new Request.CreateOrganization(
+ "ox-supermarket", // 新規組織コード
+ "oxスーパー", // 新規組織名
+ new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 加盟店組織で有効にするマネーIDの配列
+ "Qy4ktenk93@ttYP.com", // 発行体担当者メールアドレス
+ "JhOiPCYhnx@itPJ.com" // 新規組織担当者メールアドレス
+) {
+ BankName = "XYZ銀行", // 銀行名
+ BankCode = "1234", // 銀行金融機関コード
+ BankBranchName = "ABC支店", // 銀行支店名
+ BankBranchCode = "123", // 銀行支店コード
+ BankAccountType = "other", // 銀行口座種別 (普通=saving, 当座=current, その他=other)
+ BankAccount = "1234567", // 銀行口座番号
+ BankAccountHolderName = "フクザワユキチ", // 口座名義人名
+ ContactName = "佐藤清", // 担当者名
+};
+Response.Organization response = await request.Send(client);
+```
+成功したときは[Organization](#organization)オブジェクトを返します
### Shop
#### 店舗一覧を取得する
@@ -3553,12 +3726,12 @@ Request.ListShops request = new Request.ListShops() {
OrganizationCode = "pocketchange", // 組織コード
PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
Name = "oxスーパー三田店", // 店舗名
- PostalCode = "3297126", // 店舗の郵便番号
+ PostalCode = "840-0964", // 店舗の郵便番号
Address = "東京都港区芝...", // 店舗の住所
- Tel = "099-6561-973", // 店舗の電話番号
- Email = "8uJqFVIWZB@tq3j.com", // 店舗のメールアドレス
- ExternalId = "nfd5KTcWHD2AadOYe9kazoxyRuU9Z8Q2HvAD", // 店舗の外部ID
- WithDisabled = false, // 無効な店舗を含める
+ Tel = "07962-0052", // 店舗の電話番号
+ Email = "nV35pBMGKJ@EJkp.com", // 店舗のメールアドレス
+ ExternalId = "6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1", // 店舗の外部ID
+ WithDisabled = true, // 無効な店舗を含める
Page = 1, // ページ番号
PerPage = 50, // 1ページ分の取引数
};
@@ -3659,7 +3832,9 @@ Response.PaginatedShops response = await request.Send(client);
---
`with_disabled`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。
@@ -3693,11 +3868,11 @@ Response.PaginatedShops response = await request.Send(client);
Request.CreateShop request = new Request.CreateShop(
"oxスーパー三田店" // 店舗名
) {
- ShopPostalCode = "2733066", // 店舗の郵便番号
+ ShopPostalCode = "414-3353", // 店舗の郵便番号
ShopAddress = "東京都港区芝...", // 店舗の住所
- ShopTel = "08873362643", // 店舗の電話番号
- ShopEmail = "ZgOZ4yYRMk@HKY2.com", // 店舗のメールアドレス
- ShopExternalId = "yx9gLKmBFLvqK55BnlHTaFsT", // 店舗の外部ID
+ ShopTel = "01663553194", // 店舗の電話番号
+ ShopEmail = "DUp3byZcFE@PnID.com", // 店舗のメールアドレス
+ ShopExternalId = "yEjs1xIVAG7PJaXsPvnXy7J", // 店舗の外部ID
OrganizationCode = "ox-supermarket", // 組織コード
};
Response.User response = await request.Send(client);
@@ -3709,14 +3884,14 @@ Response.User response = await request.Send(client);
Request.CreateShopV2 request = new Request.CreateShopV2(
"oxスーパー三田店" // 店舗名
) {
- PostalCode = "448-1784", // 店舗の郵便番号
+ PostalCode = "0107440", // 店舗の郵便番号
Address = "東京都港区芝...", // 店舗の住所
- Tel = "06846-1154", // 店舗の電話番号
- Email = "iBFeYUr35I@7ta0.com", // 店舗のメールアドレス
- ExternalId = "w71srL0z9GEG3PXvnl3BKAcPvmXPf", // 店舗の外部ID
+ Tel = "06-5261414", // 店舗の電話番号
+ Email = "VhR8qFWp5t@CaOk.com", // 店舗のメールアドレス
+ ExternalId = "j6", // 店舗の外部ID
OrganizationCode = "ox-supermarket", // 組織コード
- PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列
- CanTopupPrivateMoneyIds = new string[]{}, // 店舗でチャージ可能にするマネーIDの配列
+ PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列
+ CanTopupPrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗でチャージ可能にするマネーIDの配列
};
Response.ShopWithAccounts response = await request.Send(client);
```
@@ -3790,13 +3965,13 @@ Request.UpdateShop request = new Request.UpdateShop(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 店舗ユーザーID
) {
Name = "oxスーパー三田店", // 店舗名
- PostalCode = "918-9935", // 店舗の郵便番号
+ PostalCode = "0784915", // 店舗の郵便番号
Address = "東京都港区芝...", // 店舗の住所
- Tel = "028585-5171", // 店舗の電話番号
- Email = "szKQRtnK9O@FQAZ.com", // 店舗のメールアドレス
- ExternalId = "k8lWFzl04cFD8UrQW71JWWTZgcCuDt4bOl52", // 店舗の外部ID
- PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "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の配列
+ Tel = "00540-5427", // 店舗の電話番号
+ Email = "mpVcy9ixDX@4fCf.com", // 店舗のメールアドレス
+ ExternalId = "AE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOn", // 店舗の外部ID
+ PrivateMoneyIds = new string[]{}, // 店舗で有効にするマネーIDの配列
+ CanTopupPrivateMoneyIds = new string[]{}, // 店舗でチャージ可能にするマネーIDの配列
Status = "disabled", // 店舗の状態
};
Response.ShopWithAccounts response = await request.Send(client);
@@ -3895,7 +4070,10 @@ Response.ShopWithAccounts response = await request.Send(client);
```json
{
"type": "string",
- "enum": { "active": "disabled" }
+ "enum": [
+ "active",
+ "disabled"
+ ]
}
```
店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。
@@ -3910,8 +4088,8 @@ Response.ShopWithAccounts response = await request.Send(client);
Request.ListUserAccounts request = new Request.ListUserAccounts(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーID
) {
- Page = 5466, // ページ番号
- PerPage = 9530, // 1ページ分の取引数
+ Page = 7454, // ページ番号
+ PerPage = 225, // 1ページ分の取引数
};
Response.PaginatedAccountDetails response = await request.Send(client);
```
@@ -3958,8 +4136,8 @@ Request.CreateUserAccount request = new Request.CreateUserAccount(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID
) {
- Name = "o2q3PiHBjRUpdSYSIHe7WRd8QgrTh5gg3jBLh2J3dK297uJriMdLcWHclyy16UsYQYNNbAndnytowLyNOYLTsHd", // ウォレット名
- ExternalId = "NmWw0EndFxs", // 外部ID
+ Name = "WPSNst44xBM1tMMoOy", // ウォレット名
+ ExternalId = "oAqWcD5ADFBSPh7o2MC5sMNA", // 外部ID
Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", // ウォレットに付加するメタデータ
};
Response.AccountDetail response = await request.Send(client);
@@ -4037,8 +4215,8 @@ Response.PaginatedPrivateMoneys response = await request.Send(client);
Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID
) {
- From = "2022-11-24T10:08:06.000000+09:00", // 開始日時(toと同時に指定する必要有)
- To = "2020-02-10T18:05:01.000000+09:00", // 終了日時(fromと同時に指定する必要有)
+ From = "2024-01-05T10:05:05.000000Z", // 開始日時(toと同時に指定する必要有)
+ To = "2023-04-20T05:34:54.000000Z", // 終了日時(fromと同時に指定する必要有)
Page = 1, // ページ番号
PerPage = 50, // 1ページ分の取引数
};
@@ -4053,8 +4231,8 @@ Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Sen
Request.GetPrivateMoneySummary request = new Request.GetPrivateMoneySummary(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID
) {
- From = "2024-11-27T23:15:28.000000+09:00", // 開始日時
- To = "2017-10-19T21:00:32.000000+09:00", // 終了日時
+ From = "2022-09-03T19:55:42.000000Z", // 開始日時
+ To = "2023-05-10T19:11:36.000000Z", // 終了日時
};
Response.PrivateMoneySummary response = await request.Send(client);
```
@@ -4065,11 +4243,11 @@ Response.PrivateMoneySummary response = await request.Send(client);
CSVファイルから一括取引をします。
```csharp
Request.BulkCreateTransaction request = new Request.BulkCreateTransaction(
- "gPufRhkZSIPkBFVSotgyldVmaPxxkTqO", // 一括取引タスク名
- "rFIeeAG", // 取引する情報のCSV
- "W6tZ8ccBHHSscpO2n832d6dquF6eiZ3Dd6WS" // リクエストID
+ "F", // 一括取引タスク名
+ "H", // 取引する情報のCSV
+ "Coj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSK" // リクエストID
) {
- Description = "yHdflPLxXMNqqALPwoGWvHelnhCvd", // 一括取引の説明
+ Description = "BR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBh", // 一括取引の説明
PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
};
Response.BulkTransaction response = await request.Send(client);
@@ -4098,7 +4276,9 @@ Response.BulkTransaction response = await request.Send(client);
---
`content`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
一括取引する情報を書いたCSVの文字列です。
1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。
@@ -4158,11 +4338,11 @@ Request.CreateExternalTransaction request = new Request.CreateExternalTransactio
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- 3643 // 取引額
+ 1610 // 取引額
) {
Description = "たい焼き(小倉)", // 取引説明文
Metadata = "{\"key\":\"value\"}", // ポケペイ外部取引メタデータ
- Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ
+ Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ
RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID
};
Response.ExternalTransactionDetail response = await request.Send(client);
@@ -4243,7 +4423,9 @@ Response.ExternalTransactionDetail response = await request.Send(client);
```json
{
"type": "array",
- "items": { "type": "object" }
+ "items": {
+ "type": "object"
+ }
}
```
一つの取引に含まれる商品情報データです。
@@ -4296,31 +4478,32 @@ Response.ExternalTransactionDetail response = await request.Send(client);
```csharp
Request.CreateCampaign request = new Request.CreateCampaign(
- "5hkKi9O2P9jiZ6u3x2WBzZJZ5a5g6qUYzSlCDa2sGdGVrQ24o4nKCzYGzzQTWE3lYOg9rxxthyfXlSvfosPd1dV4mUaevGo2T7nnwUuCJVK5LAGSeliWWE3p7BNebn72rKlC8xS0lGxuRh661U82b0yeYo5zfOAgdSLVNb11hZJnWEH9hNdPtUfATWqt0PIkhoWI2jo5XiCGDGRU", // キャンペーン名
+ "Kn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T", // キャンペーン名
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
- "2020-03-13T04:55:17.000000+09:00", // キャンペーン開始日時
- "2018-08-27T12:10:36.000000+09:00", // キャンペーン終了日時
- 5718, // キャンペーンの適用優先度
- "payment" // イベント種別
+ "2021-11-30T05:15:59.000000Z", // キャンペーン開始日時
+ "2020-10-17T00:37:07.000000Z", // キャンペーン終了日時
+ 3019, // キャンペーンの適用優先度
+ "topup" // イベント種別
) {
BearPointShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID
- Description = "us5xn7MbZoA7GyvC5m86vU4CTunlo9FHcvhpXn1f9WUvYvDDo3G7amxcKXWGa0ExI5eaGTZJemJSksAElb4iAlQjM", // キャンペーンの説明文
+ Description = "kSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCD", // キャンペーンの説明文
Status = "enabled", // キャンペーン作成時の状態
- PointExpiresAt = "2025-06-05T22:09:27.000000+09:00", // ポイント有効期限(絶対日時指定)
- PointExpiresInDays = 6703, // ポイント有効期限(相対日数指定)
- IsExclusive = true, // キャンペーンの重複設定
- Subject = "money", // ポイント付与の対象金額の種別
- AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, // 取引金額ベースのポイント付与ルール
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, // 商品情報ベースのポイント付与ルール
- ApplicableDaysOfWeek = new int[]{4, 2, 5}, // キャンペーンを適用する曜日 (複数指定)
- ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, // キャンペーンを適用する時間帯 (複数指定)
+ PointExpiresAt = "2023-11-22T03:25:23.000000Z", // ポイント有効期限(絶対日時指定)
+ PointExpiresInDays = 6773, // ポイント有効期限(相対日数指定)
+ IsExclusive = false, // キャンペーンの重複設定
+ Subject = "all", // ポイント付与の対象金額の種別
+ AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, // 取引金額ベースのポイント付与ルール
+ ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, // 商品情報ベースのポイント付与ルール
+ ApplicableDaysOfWeek = new int[]{2}, // キャンペーンを適用する曜日 (複数指定)
+ ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, // キャンペーンを適用する時間帯 (複数指定)
ApplicableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト
- MinimumNumberForCombinationPurchase = 6988, // 複数種類の商品を同時購入するときの商品種別数の下限
- ExistInEachProductGroups = true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
- MaxPointAmount = 9548, // キャンペーンによって付与されるポイントの上限
- MaxTotalPointAmount = 8933, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限
+ MinimumNumberForCombinationPurchase = 1451, // 複数種類の商品を同時購入するときの商品種別数の下限
+ ExistInEachProductGroups = false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
+ MaxPointAmount = 2770, // キャンペーンによって付与されるポイントの上限
+ MaxTotalPointAmount = 4968, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限
DestPrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
+ BudgetCapsAmount = 1494199178, // キャンペーン予算上限
};
Response.Campaign response = await request.Send(client);
```
@@ -4374,7 +4557,9 @@ Response.Campaign response = await request.Send(client);
---
`priority`
```json
-{ "type": "integer" }
+{
+ "type": "integer"
+}
```
キャンペーンの適用優先度です。
@@ -4386,7 +4571,11 @@ Response.Campaign response = await request.Send(client);
```json
{
"type": "string",
- "enum": [ "topup", "payment", "external-transaction" ]
+ "enum": [
+ "topup",
+ "payment",
+ "external-transaction"
+ ]
}
```
キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。
@@ -4426,7 +4615,10 @@ Response.Campaign response = await request.Send(client);
```json
{
"type": "string",
- "enum": { "enabled": "disabled" }
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
```
キャンペーン作成時の状態を指定します。デフォルトではenabledです。
@@ -4463,7 +4655,9 @@ Response.Campaign response = await request.Send(client);
---
`is_exclusive`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
キャンペーンの重ね掛けを行うかどうかのフラグです。
@@ -4475,7 +4669,10 @@ falseを指定すると次の優先度の重ね掛け可能なキャンペーン
```json
{
"type": "string",
- "enum": { "money": "all" }
+ "enum": [
+ "money",
+ "all"
+ ]
}
```
ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。
@@ -4495,7 +4692,9 @@ all を指定すると決済額全体を対象にします (「ポイント」
```json
{
"type": "array",
- "items": { "type": "object" }
+ "items": {
+ "type": "object"
+ }
}
```
金額をベースとしてポイント付与を行うルールを指定します。
@@ -4526,7 +4725,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し
```json
{
"type": "array",
- "items": { "type": "object" }
+ "items": {
+ "type": "object"
+ }
}
```
商品情報をベースとしてポイント付与を行うルールを指定します。
@@ -4658,7 +4859,9 @@ event が payment か external-transaction の時のみ有効です。
---
`exist_in_each_product_groups`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。
@@ -4786,7 +4989,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
---
`applicable_account_metadata`
```json
-{ "type": "object" }
+{
+ "type": "object"
+}
```
ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
@@ -4814,6 +5019,20 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+---
+`budget_caps_amount`
+```json
+{
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 10000000000
+}
+```
+キャンペーンの予算上限を指定します。デフォルトは未指定です。
+
+このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。
+一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。
+
---
成功したときは[Campaign](#campaign)オブジェクトを返します
@@ -4826,8 +5045,8 @@ Request.ListCampaigns request = new Request.ListCampaigns(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID
) {
IsOngoing = false, // 現在適用可能なキャンペーンかどうか
- AvailableFrom = "2023-01-14T09:32:12.000000+09:00", // 指定された日時以降に適用可能期間が含まれているか
- AvailableTo = "2020-05-18T07:22:56.000000+09:00", // 指定された日時以前に適用可能期間が含まれているか
+ AvailableFrom = "2021-09-12T16:32:28.000000Z", // 指定された日時以降に適用可能期間が含まれているか
+ AvailableTo = "2021-03-11T20:37:06.000000Z", // 指定された日時以前に適用可能期間が含まれているか
Page = 1, // ページ番号
PerPage = 20, // 1ページ分の取得数
};
@@ -4849,7 +5068,9 @@ Response.PaginatedCampaigns response = await request.Send(client);
---
`is_ongoing`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。
真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。
@@ -4934,27 +5155,28 @@ Response.Campaign response = await request.Send(client);
Request.UpdateCampaign request = new Request.UpdateCampaign(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // キャンペーンID
) {
- Name = "45Yd1ntlQmTFdCRQoNs8we7kw42AF3DTjcROuetQ8zFdMo0VY4tUGROiwu8g5jegd2tDc5SvOZdXc2AVLuF8gaKQ0OEhkP9BLs49M6H6epGVtu0HPhsCKuI2bJUyIR", // キャンペーン名
- StartsAt = "2016-03-11T19:57:46.000000+09:00", // キャンペーン開始日時
- EndsAt = "2023-11-29T10:01:32.000000+09:00", // キャンペーン終了日時
- Priority = 2774, // キャンペーンの適用優先度
- Event = "topup", // イベント種別
- Description = "HvQNYn4X1Qj8JOhaftsXxsjd7rD3p3viKfIPkJsUNb1al7E8GagWKQ4TM4O", // キャンペーンの説明文
- Status = "enabled", // キャンペーン作成時の状態
- PointExpiresAt = "2024-11-29T18:25:49.000000+09:00", // ポイント有効期限(絶対日時指定)
- PointExpiresInDays = 4736, // ポイント有効期限(相対日数指定)
+ Name = "CcszhfH09Y5OthVwPmvHXBFS5mnHJDaN", // キャンペーン名
+ StartsAt = "2020-12-01T03:01:47.000000Z", // キャンペーン開始日時
+ EndsAt = "2022-04-28T20:33:01.000000Z", // キャンペーン終了日時
+ Priority = 7548, // キャンペーンの適用優先度
+ Event = "payment", // イベント種別
+ Description = "qCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOp", // キャンペーンの説明文
+ Status = "disabled", // キャンペーン作成時の状態
+ PointExpiresAt = "2023-01-18T13:40:57.000000Z", // ポイント有効期限(絶対日時指定)
+ PointExpiresInDays = 6830, // ポイント有効期限(相対日数指定)
IsExclusive = false, // キャンペーンの重複設定
Subject = "all", // ポイント付与の対象金額の種別
- AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, // 取引金額ベースのポイント付与ルール
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, // 商品情報ベースのポイント付与ルール
- ApplicableDaysOfWeek = new int[]{3, 1}, // キャンペーンを適用する曜日 (複数指定)
+ AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, // 取引金額ベースのポイント付与ルール
+ ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, // 商品情報ベースのポイント付与ルール
+ ApplicableDaysOfWeek = new int[]{3, 5}, // キャンペーンを適用する曜日 (複数指定)
ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, // キャンペーンを適用する時間帯 (複数指定)
- ApplicableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト
- MinimumNumberForCombinationPurchase = 3854, // 複数種類の商品を同時購入するときの商品種別数の下限
- ExistInEachProductGroups = false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
- MaxPointAmount = 7450, // キャンペーンによって付与されるポイントの上限
- MaxTotalPointAmount = 4757, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限
+ ApplicableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト
+ MinimumNumberForCombinationPurchase = 4392, // 複数種類の商品を同時購入するときの商品種別数の下限
+ ExistInEachProductGroups = true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ
+ MaxPointAmount = 2031, // キャンペーンによって付与されるポイントの上限
+ MaxTotalPointAmount = 4215, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
+ BudgetCapsAmount = 2034420397, // キャンペーン予算上限
};
Response.Campaign response = await request.Send(client);
```
@@ -5010,7 +5232,9 @@ Response.Campaign response = await request.Send(client);
---
`priority`
```json
-{ "type": "integer" }
+{
+ "type": "integer"
+}
```
キャンペーンの適用優先度です。
@@ -5022,7 +5246,11 @@ Response.Campaign response = await request.Send(client);
```json
{
"type": "string",
- "enum": [ "topup", "payment", "external-transaction" ]
+ "enum": [
+ "topup",
+ "payment",
+ "external-transaction"
+ ]
}
```
キャンペーンのトリガーとなるイベントの種類を指定します。
@@ -5051,7 +5279,10 @@ Response.Campaign response = await request.Send(client);
```json
{
"type": "string",
- "enum": { "enabled": "disabled" }
+ "enum": [
+ "enabled",
+ "disabled"
+ ]
}
```
キャンペーン作成時の状態を指定します。デフォルトではenabledです。
@@ -5088,7 +5319,9 @@ Response.Campaign response = await request.Send(client);
---
`is_exclusive`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
キャンペーンの重ね掛けを行うかどうかのフラグです。
@@ -5100,7 +5333,10 @@ falseを指定すると次の優先度の重ね掛け可能なキャンペーン
```json
{
"type": "string",
- "enum": { "money": "all" }
+ "enum": [
+ "money",
+ "all"
+ ]
}
```
ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。
@@ -5120,7 +5356,9 @@ all を指定すると決済額全体を対象にします (「ポイント」
```json
{
"type": "array",
- "items": { "type": "object" }
+ "items": {
+ "type": "object"
+ }
}
```
金額をベースとしてポイント付与を行うルールを指定します。
@@ -5151,7 +5389,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し
```json
{
"type": "array",
- "items": { "type": "object" }
+ "items": {
+ "type": "object"
+ }
}
```
商品情報をベースとしてポイント付与を行うルールを指定します。
@@ -5283,7 +5523,9 @@ event が payment か external-transaction の時のみ有効です。
---
`exist_in_each_product_groups`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。
@@ -5393,7 +5635,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
---
`applicable_account_metadata`
```json
-{ "type": "object" }
+{
+ "type": "object"
+}
```
ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。
メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。
@@ -5421,6 +5665,22 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎
}
```
+---
+`budget_caps_amount`
+```json
+{
+ "type": "integer",
+ "minimum": 1,
+ "maximum": 10000000000
+}
+```
+キャンペーンの予算上限を指定します。
+
+キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。
+一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。
+キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。
+キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。
+
---
成功したときは[Campaign](#campaign)オブジェクトを返します
### Webhook
@@ -5435,8 +5695,8 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ
このとき、リクエストボディは `{"task": <タスク名>}` という値になります。
```csharp
Request.CreateWebhook request = new Request.CreateWebhook(
- "process_user_stats_operation", // タスク名
- "MeGwc0t" // URL
+ "bulk_shops", // タスク名
+ "9kW30yX" // URL
);
Response.OrganizationWorkerTaskWebhook response = await request.Send(client);
```
@@ -5446,7 +5706,10 @@ Response.OrganizationWorkerTaskWebhook response = await request.Send(client);
```json
{
"type": "string",
- "enum": { "bulk_shops": "process_user_stats_operation" }
+ "enum": [
+ "bulk_shops",
+ "process_user_stats_operation"
+ ]
}
```
ワーカータスク名を指定します
@@ -5454,7 +5717,9 @@ Response.OrganizationWorkerTaskWebhook response = await request.Send(client);
---
`url`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
通知先のURLを指定します
@@ -5499,7 +5764,7 @@ Response.PaginatedOrganizationWorkerTaskWebhook response = await request.Send(cl
Request.UpdateWebhook request = new Request.UpdateWebhook(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID
) {
- Url = "lVu2tN", // URL
+ Url = "j5pEZQN", // URL
IsActive = false, // 有効/無効
Task = "bulk_shops", // タスク名
};
@@ -5519,14 +5784,18 @@ Response.OrganizationWorkerTaskWebhook response = await request.Send(client);
---
`url`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
変更するURLを指定します
---
`is_active`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
trueならWebhookによる通知が有効になり、falseなら無効になります
@@ -5535,7 +5804,10 @@ trueならWebhookによる通知が有効になり、falseなら無効になり
```json
{
"type": "string",
- "enum": { "bulk_shops": "process_user_stats_operation" }
+ "enum": [
+ "bulk_shops",
+ "process_user_stats_operation"
+ ]
}
```
指定したタスクが終了したときにWebhookによる通知がされます
@@ -5575,12 +5847,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条
Request.ListCoupons request = new Request.ListCoupons(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 対象クーポンのマネーID
) {
- CouponId = "F3", // クーポンID
- CouponName = "iOujRzWy8M", // クーポン名
- IssuedShopName = "cj6", // 発行店舗名
- AvailableShopName = "HKbsKvx", // 利用可能店舗名
- AvailableFrom = "2025-03-25T17:09:39.000000+09:00", // 利用可能期間 (開始日時)
- AvailableTo = "2021-09-06T13:19:56.000000+09:00", // 利用可能期間 (終了日時)
+ CouponId = "wcrR2Tap7t", // クーポンID
+ CouponName = "zfq7vVXcZ", // クーポン名
+ IssuedShopName = "kAjYTEO65", // 発行店舗名
+ AvailableShopName = "NQtFJaRQv", // 利用可能店舗名
+ AvailableFrom = "2023-06-06T10:12:20.000000Z", // 利用可能期間 (開始日時)
+ AvailableTo = "2020-11-29T08:57:14.000000Z", // 利用可能期間 (終了日時)
Page = 1, // ページ番号
PerPage = 50, // 1ページ分の取得数
};
@@ -5602,7 +5874,9 @@ Response.PaginatedCoupons response = await request.Send(client);
---
`coupon_id`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
指定されたクーポンIDで結果をフィルターします。
部分一致(前方一致)します。
@@ -5611,7 +5885,9 @@ Response.PaginatedCoupons response = await request.Send(client);
---
`coupon_name`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
指定されたクーポン名で結果をフィルターします。
@@ -5619,7 +5895,9 @@ Response.PaginatedCoupons response = await request.Send(client);
---
`issued_shop_name`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
指定された発行店舗で結果をフィルターします。
@@ -5627,7 +5905,9 @@ Response.PaginatedCoupons response = await request.Send(client);
---
`available_shop_name`
```json
-{ "type": "string" }
+{
+ "type": "string"
+}
```
指定された利用可能店舗で結果をフィルターします。
@@ -5682,25 +5962,25 @@ Response.PaginatedCoupons response = await request.Send(client);
```csharp
Request.CreateCoupon request = new Request.CreateCoupon(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
- "bZ6K76VuMMSh2Ha6k65TkgQAHKvWLYfnKUDaFnoOELVFI",
- "2023-05-16T21:43:43.000000+09:00",
- "2017-11-27T19:21:48.000000+09:00",
+ "5yyqZjpM3EGDvxc2vHpfKAF",
+ "2023-12-27T02:00:10.000000Z",
+ "2020-12-24T15:11:19.000000Z",
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 発行元の店舗ID
) {
- Description = "iGUkzDwrtDxf0MXrCLcEeF0G6c7NAJlexFaoQwEiDJ9lfmmbEWyFjH3f4xGeNVyW1dIZm37KxJgYVY968gMj0d8XhDCiCGbEAm8DDmMv6OU8xPn5JSHVJXh8Q94B643G49hiuGz9Mf8",
- DiscountAmount = 46,
- DiscountPercentage = 3234.0,
- DiscountUpperLimit = 4850,
- DisplayStartsAt = "2016-05-05T15:23:12.000000+09:00", // クーポンの掲載期間(開始日時)
- DisplayEndsAt = "2021-05-21T00:48:16.000000+09:00", // クーポンの掲載期間(終了日時)
- IsDisabled = false, // 無効化フラグ
+ Description = "MK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AE",
+ DiscountAmount = 7493,
+ DiscountPercentage = 1817.0,
+ DiscountUpperLimit = 6246,
+ DisplayStartsAt = "2023-12-14T13:09:00.000000Z", // クーポンの掲載期間(開始日時)
+ DisplayEndsAt = "2020-10-11T12:17:29.000000Z", // クーポンの掲載期間(終了日時)
+ IsDisabled = true, // 無効化フラグ
IsHidden = false, // クーポン一覧に掲載されるかどうか
IsPublic = false, // アプリ配信なしで受け取れるかどうか
- Code = "q6vTB", // クーポン受け取りコード
- UsageLimit = 6474, // ユーザごとの利用可能回数(NULLの場合は無制限)
- MinAmount = 6367, // クーポン適用可能な最小取引額
- IsShopSpecified = true, // 特定店舗限定のクーポンかどうか
- AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト
+ Code = "Coy2", // クーポン受け取りコード
+ UsageLimit = 2811, // ユーザごとの利用可能回数(NULLの場合は無制限)
+ MinAmount = 8036, // クーポン適用可能な最小取引額
+ IsShopSpecified = false, // 特定店舗限定のクーポンかどうか
+ AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト
StorageId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID
};
Response.CouponDetail response = await request.Send(client);
@@ -5711,7 +5991,9 @@ Response.CouponDetail response = await request.Send(client);
---
`is_hidden`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
アプリに表示されるクーポン一覧に掲載されるかどうか。
主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。
@@ -5760,23 +6042,23 @@ UUIDv4フォーマットである必要があり、フォーマットが異な
Request.UpdateCoupon request = new Request.UpdateCoupon(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // クーポンID
) {
- Name = "a23qnBx2rVMtQpLPCeP9dzLx5t2lgWoJQYoOSmAcuLVq3Dp4kCeEFdr2oD1k2yoz92oXPFICS0j",
- Description = "n7hXyL2kll",
- DiscountAmount = 5907,
- DiscountPercentage = 9882.0,
- DiscountUpperLimit = 2299,
- StartsAt = "2022-01-26T00:36:34.000000+09:00",
- EndsAt = "2022-04-29T09:56:09.000000+09:00",
- DisplayStartsAt = "2015-10-29T22:30:20.000000+09:00", // クーポンの掲載期間(開始日時)
- DisplayEndsAt = "2025-04-22T14:37:08.000000+09:00", // クーポンの掲載期間(終了日時)
- IsDisabled = true, // 無効化フラグ
+ Name = "tWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR",
+ Description = "SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprWMfHv0Adc0",
+ DiscountAmount = 9517,
+ DiscountPercentage = 7738.0,
+ DiscountUpperLimit = 2558,
+ StartsAt = "2020-06-21T15:37:39.000000Z",
+ EndsAt = "2021-11-26T03:58:42.000000Z",
+ DisplayStartsAt = "2022-11-02T16:38:43.000000Z", // クーポンの掲載期間(開始日時)
+ DisplayEndsAt = "2023-02-18T02:15:15.000000Z", // クーポンの掲載期間(終了日時)
+ IsDisabled = false, // 無効化フラグ
IsHidden = false, // クーポン一覧に掲載されるかどうか
- IsPublic = true, // アプリ配信なしで受け取れるかどうか
- Code = "LO2pXiaE", // クーポン受け取りコード
- UsageLimit = 7548, // ユーザごとの利用可能回数(NULLの場合は無制限)
- MinAmount = 6246, // クーポン適用可能な最小取引額
- IsShopSpecified = true, // 特定店舗限定のクーポンかどうか
- AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト
+ IsPublic = false, // アプリ配信なしで受け取れるかどうか
+ Code = "JKZKHW", // クーポン受け取りコード
+ UsageLimit = 4047, // ユーザごとの利用可能回数(NULLの場合は無制限)
+ MinAmount = 7303, // クーポン適用可能な最小取引額
+ IsShopSpecified = false, // 特定店舗限定のクーポンかどうか
+ AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト
StorageId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID
};
Response.CouponDetail response = await request.Send(client);
@@ -5787,7 +6069,9 @@ Response.CouponDetail response = await request.Send(client);
---
`is_hidden`
```json
-{ "type": "boolean" }
+{
+ "type": "boolean"
+}
```
アプリに表示されるクーポン一覧に掲載されるかどうか。
主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。
@@ -5817,7 +6101,7 @@ UserDeviceはユーザー毎のデバイスを管理します。
Request.CreateUserDevice request = new Request.CreateUserDevice(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーID
) {
- Metadata = "6c9g0DX8Wq", // ユーザーデバイスのメタデータ
+ Metadata = "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}", // ユーザーデバイスのメタデータ
};
Response.UserDevice response = await request.Send(client);
```
@@ -5846,6 +6130,66 @@ Request.GetUserDevice request = new Request.GetUserDevice(
Response.UserDevice response = await request.Send(client);
```
成功したときは[UserDevice](#user-device)オブジェクトを返します
+
+#### デバイスの有効化
+指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。
+
+```csharp
+Request.ActivateUserDevice request = new Request.ActivateUserDevice(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID
+);
+Response.UserDevice response = await request.Send(client);
+```
+成功したときは[UserDevice](#user-device)オブジェクトを返します
+### BankPay
+BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。
+
+
+#### 銀行口座の登録
+銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。
+
+ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。
+アプリの場合はDeep Linkを使うことを想定しています。
+
+```csharp
+Request.CreateBank request = new Request.CreateBank(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
+ "", // コールバックURL
+ "ポケペイタロウ" // ユーザーの氏名 (片仮名で指定)
+) {
+ Email = "y8Xa1naLbp@7yoC.com", // ユーザーのメールアドレス
+ Birthdate = "19901142", // 生年月日
+};
+Response.BankRegisteringInfo response = await request.Send(client);
+```
+成功したときは[BankRegisteringInfo](#bank-registering-info)オブジェクトを返します
+
+#### 登録した銀行の一覧
+登録した銀行を一覧します
+```csharp
+Request.ListBanks request = new Request.ListBanks(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // デバイスID
+) {
+ PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
+};
+Response.Banks response = await request.Send(client);
+```
+成功したときは[Banks](#banks)オブジェクトを返します
+
+#### 銀行からのチャージ
+指定のマネーのアカウントにbank_idの口座を用いてチャージを行います。
+```csharp
+Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction(
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID
+ 3436, // チャージ金額
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 銀行ID
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID
+);
+Response.TransactionDetail response = await request.Send(client);
+```
+成功したときは[TransactionDetail](#transaction-detail)オブジェクトを返します
## Responses
@@ -5908,6 +6252,7 @@ Response.UserDevice response = await request.Send(client);
* `IsOnetime (bool)`: 使用回数が一回限りかどうか
* `IsDisabled (bool)`: 無効化されているかどうか
* `ExpiresAt (string)`: チャージQRコード自体の失効日時
+* `LastUsedAt (string)`:
* `PrivateMoney (PrivateMoney)`: 対象マネー情報
* `UsageLimit (int)`: 一回限りでない場合の最大読み取り回数
* `UsageCount (double)`: 一回限りでない場合の現在までに読み取られた回数
@@ -5981,6 +6326,11 @@ Response.UserDevice response = await request.Send(client);
* `Name (string)`: ユーザー (または店舗) 名
* `IsMerchant (bool)`: 店舗ユーザーかどうか
+
+## Organization
+* `Code (string)`: 組織コード
+* `Name (string)`: 組織名
+
## TransactionDetail
* `Id (string)`: 取引ID
@@ -6068,6 +6418,8 @@ Response.UserDevice response = await request.Send(client);
* `PaymentAmount (double)`:
* `RefundedPaymentAmount (double)`:
* `AddedPointAmount (double)`:
+* `TopupPointAmount (double)`:
+* `CampaignPointAmount (double)`:
* `RefundedAddedPointAmount (double)`:
* `ExchangeInflowAmount (double)`:
* `ExchangeOutflowAmount (double)`:
@@ -6088,10 +6440,23 @@ Response.UserDevice response = await request.Send(client);
## UserDevice
* `Id (string)`: デバイスID
* `User (User)`: デバイスを使用するユーザ
+* `IsActive (bool)`: デバイスが有効か
* `Metadata (string)`: デバイスのメタデータ
`user`は [User](#user) オブジェクトを返します。
+
+## BankRegisteringInfo
+* `RedirectUrl (string)`:
+* `PaytreeCustomerNumber (string)`:
+
+
+## Banks
+* `Rows (Bank[])`:
+* `Count (int)`:
+
+`rows`は [Bank](#bank) オブジェクトの配列を返します。
+
## PaginatedTransaction
* `Rows (Transaction[])`:
@@ -6211,6 +6576,9 @@ Response.UserDevice response = await request.Send(client);
* `PointCalculationRule (string)`: ポイント計算ルール (banklisp表記)
* `PointCalculationRuleObject (string)`: ポイント計算ルール (JSON文字列による表記)
* `Status (string)`: キャンペーンの現在の状態
+* `BudgetCapsAmount (int)`: キャンペーンの予算上限額
+* `BudgetCurrentAmount (int)`: キャンペーンの付与合計額
+* `BudgetCurrentTime (string)`: キャンペーンの付与集計日時
`applicable-shops`は [User](#user) オブジェクトの配列を返します。
@@ -6294,6 +6662,16 @@ Response.UserDevice response = await request.Send(client);
`pagination`は [Pagination](#pagination) オブジェクトを返します。
+
+## PaginatedOrganizations
+* `Rows (Organization[])`:
+* `Count (int)`:
+* `Pagination (Pagination)`:
+
+`rows`は [Organization](#organization) オブジェクトの配列を返します。
+
+`pagination`は [Pagination](#pagination) オブジェクトを返します。
+
## PrivateMoney
* `Id (string)`: マネーID
@@ -6411,6 +6789,20 @@ Response.UserDevice response = await request.Send(client);
`payment`と`topup`は [OrganizationSummary](#organization-summary) オブジェクトを返します。
+
+## Bank
+* `Id (string)`:
+* `PrivateMoney (PrivateMoney)`:
+* `BankName (string)`:
+* `BankCode (string)`:
+* `BranchNumber (string)`:
+* `BranchName (string)`:
+* `DepositType (string)`:
+* `MaskedAccountNumber (string)`:
+* `AccountName (string)`:
+
+`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。
+
## AccountBalance
* `ExpiresAt (string)`:
@@ -6460,11 +6852,6 @@ Response.UserDevice response = await request.Send(client);
`issued_shop`は [User](#user) オブジェクトを返します。
-
-## Organization
-* `Code (string)`: 組織コード
-* `Name (string)`: 組織名
-
## AccountWithoutPrivateMoneyDetail
* `Id (string)`:
@@ -6482,4 +6869,6 @@ Response.UserDevice response = await request.Send(client);
* `MoneyAmount (double)`:
* `MoneyCount (int)`:
* `PointAmount (double)`:
+* `RawPointAmount (double)`:
+* `CampaignPointAmount (double)`:
* `PointCount (int)`:
diff --git a/partner.yaml b/partner.yaml
index 6ab4017..12f622d 100644
--- a/partner.yaml
+++ b/partner.yaml
@@ -53,6 +53,9 @@ tags:
UserDeviceはユーザー毎のデバイスを管理します。
あるユーザーが使っている端末を区別する必要がある場合に用いられます。
これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。
+ - name: BankPay
+ description: |
+ BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。
components:
schemas:
@@ -293,6 +296,10 @@ components:
type: string
format: date-time
title: チャージQRコード自体の失効日時
+ last_used_at:
+ type: string
+ format: date-time
+ nullable: true
private_money:
$ref: '#/components/schemas/PrivateMoney'
title: 対象マネー情報
@@ -603,9 +610,11 @@ components:
description: |
取引のポイント額です。
キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。
+ nullable: true
campaign_point_amount:
type: number
title: 'キャンペーンによるポイント付与額'
+ nullable: true
done_at:
type: string
format: date-time
@@ -1047,6 +1056,14 @@ components:
type: number
format: decimal
minimum: 0
+ raw_point_amount:
+ type: number
+ format: decimal
+ minimum: 0
+ campaign_point_amount:
+ type: number
+ format: decimal
+ minimum: 0
point_count:
type: integer
PrivateMoneyOrganizationSummary:
@@ -1090,6 +1107,12 @@ components:
added_point_amount:
type: number
format: decimal
+ topup_point_amount:
+ type: number
+ format: decimal
+ campaign_point_amount:
+ type: number
+ format: decimal
refunded_added_point_amount:
type: number
format: decimal
@@ -1151,11 +1174,57 @@ components:
user:
$ref: '#/components/schemas/User'
title: 'デバイスを使用するユーザ'
+ is_active:
+ type: boolean
+ title: 'デバイスが有効か'
metadata:
type: string
format: json
title: 'デバイスのメタデータ'
+ BankRegisteringInfo:
+ x-pokepay-schema-type: "response"
+ properties:
+ redirect_url:
+ type: string
+ paytree_customer_number:
+ type: string
+ nullable: true
+
+ Bank:
+ x-pokepay-schema-type: "response"
+ properties:
+ id:
+ type: string
+ format: uuid
+ private_money:
+ $ref: '#/components/schemas/PrivateMoney'
+ bank_name:
+ type: string
+ bank_code:
+ type: string
+ branch_number:
+ type: string
+ branch_name:
+ type: string
+ deposit_type:
+ type: string
+ masked_account_number:
+ type: string
+ account_name:
+ type: string
+
+ Banks:
+ x-pokepay-schema-type: "response"
+ properties:
+ rows:
+ type: array
+ items:
+ $ref: '#/components/schemas/Bank'
+ count:
+ type: integer
+ minimum: 0
+
PaginatedTransaction:
x-pokepay-schema-type: "response"
properties:
@@ -1390,6 +1459,20 @@ components:
type: string
enum: [enabled, disabled]
title: 'キャンペーンの現在の状態'
+ budget_caps_amount:
+ title: 'キャンペーンの予算上限額'
+ type: integer
+ nullable: true
+ budget_current_amount:
+ title: 'キャンペーンの付与合計額'
+ type: integer
+ nullable: true
+ budget_current_time:
+ title: 'キャンペーンの付与集計日時'
+ type: string
+ format: date-time
+ nullable: true
+
PaginatedCampaigns:
x-pokepay-schema-type: "response"
properties:
@@ -1624,6 +1707,18 @@ components:
minimum: 0
pagination:
$ref: '#/components/schemas/Pagination'
+ PaginatedOrganizations:
+ x-pokepay-schema-type: "response"
+ properties:
+ rows:
+ type: array
+ items:
+ $ref: '#/components/schemas/Organization'
+ count:
+ type: integer
+ minimum: 0
+ pagination:
+ $ref: '#/components/schemas/Pagination'
BadRequest:
x-pokepay-schema-type: "response"
@@ -4153,6 +4248,7 @@ paths:
tags:
- Transaction
x-pokepay-allow-server-side: true
+ x-pokepay-operator-name: "CreateExchangeTransaction"
requestBody:
required: true
content:
@@ -4170,7 +4266,7 @@ paths:
type: string
format: uuid
amount:
- type: number
+ type: integer
minimum: 1
description:
type: string
@@ -4876,6 +4972,66 @@ paths:
$ref: '#/components/responses/UnprocessableEntity'
/organizations:
+ get:
+ tags:
+ - Organization
+ summary: '加盟店組織の一覧を取得する'
+ x-pokepay-allow-server-side: true
+ x-pokepay-operator-name: "ListOrganizations"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ required: ["private_money_id"]
+ properties:
+ private_money_id:
+ type: string
+ format: uuid
+ title: 'マネーID'
+ description: |-
+ マネーIDです。
+ このマネーに加盟している加盟組織がフィルターされます。
+ page:
+ type: integer
+ minimum: 1
+ title: 'ページ番号'
+ description: 取得したいページ番号です。
+ example: 1
+ per_page:
+ type: integer
+ minimum: 1
+ title: '1ページ分の取引数'
+ description: 1ページ分の取引数です。
+ example: 50
+ name:
+ type: string
+ title: '組織名'
+ code:
+ type: string
+ title: '組織コード'
+ #これらのパラメータは管理画面のユースケースに特化してそうなので一旦コメントアウトしておく
+ #with_issuer_org:
+ # type: boolean
+ #with_details:
+ # type: boolean
+ #with_disabled_member_orgs:
+ # type: boolean
+ #with_all_members:
+ # type: boolean
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/PaginatedOrganizations'
+ '400':
+ $ref: '#/components/responses/BadRequest'
+ '403':
+ $ref: '#/components/responses/Forbidden'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
post:
tags:
- Organization
@@ -6598,6 +6754,17 @@ paths:
"value": "male"
}
+ budget_caps_amount:
+ title: 'キャンペーン予算上限'
+ type: integer
+ minimum: 1
+ maximum: 10000000000
+ description: |-
+ キャンペーンの予算上限を指定します。デフォルトは未指定です。
+
+ このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。
+ 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。
+
responses:
'200':
description: OK
@@ -7362,6 +7529,20 @@ paths:
"value": "male"
}
+ budget_caps_amount:
+ title: 'キャンペーン予算上限'
+ type: integer
+ minimum: 1
+ maximum: 10000000000
+ nullable: true
+ description: |-
+ キャンペーンの予算上限を指定します。
+
+ キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。
+ 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。
+ キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。
+ キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。
+
responses:
'200':
description: OK
@@ -7416,6 +7597,7 @@ paths:
description: |-
集計する期間の開始時刻をISO8601形式で指定します。
時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。
+ example: '2022-05-20T17:56:49.000000+09:00'
to:
title: '集計期間の終了時刻'
type: string
@@ -7423,6 +7605,7 @@ paths:
description: |-
集計する期間の終了時刻をISO8601形式で指定します。
時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。
+ example: '2023-12-10T01:16:11.000000+09:00'
responses:
'200':
description: OK
@@ -7625,6 +7808,7 @@ paths:
description: |
ユーザーのデバイス用の情報をメタデータを保持するために用います。
例: 端末の固有情報やブラウザのUser-Agent
+ example: '{"user_agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"}'
responses:
'200':
description: OK
@@ -7671,6 +7855,204 @@ paths:
'422':
$ref: '#/components/responses/UnprocessableEntity'
+ /user-devices/{user_device_id}/activate:
+ post:
+ x-pokepay-operator-name: "ActivateUserDevice"
+ x-pokepay-allow-server-side: true
+ tags:
+ - UserDevice
+ summary: デバイスの有効化
+ description: |
+ 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。
+ parameters:
+ - in: path
+ name: user_device_id
+ required: true
+ schema:
+ type: string
+ format: uuid
+ title: "ユーザーデバイスID"
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/UserDevice'
+ '400':
+ $ref: '#/components/responses/InvalidParameters'
+ '403':
+ $ref: '#/components/responses/UnpermittedAdminUser'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '503':
+ $ref: '#/components/responses/UserStatsOperationServiceUnavailable'
+
+ /user-devices/{user_device_id}/banks:
+ post:
+ x-pokepay-operator-name: "CreateBank"
+ x-pokepay-allow-server-side: true
+ tags:
+ - BankPay
+ summary: 銀行口座の登録
+ description: |
+ 銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。
+
+ ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。
+ アプリの場合はDeep Linkを使うことを想定しています。
+ parameters:
+ - in: path
+ name: user_device_id
+ required: true
+ schema:
+ type: string
+ format: uuid
+ title: "デバイスID"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ required: ["private_money_id", "callback_url", "kana"]
+ properties:
+ private_money_id:
+ type: string
+ format: uuid
+ title: 'マネーID'
+ callback_url:
+ type: string
+ maxLength: 256
+ example: ''
+ title: 'コールバックURL'
+ kana:
+ type: string
+ maxLength: 30
+ example: 'ポケペイタロウ'
+ title: 'ユーザーの氏名 (片仮名で指定)'
+ email:
+ type: string
+ format: email
+ maxLength: 300
+ title: 'ユーザーのメールアドレス'
+ birthdate:
+ type: string
+ maxLength: 8
+ title: '生年月日'
+ example: '19901142'
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/BankRegisteringInfo'
+ '400':
+ $ref: '#/components/responses/InvalidParameters'
+ '403':
+ $ref: '#/components/responses/UnpermittedAdminUser'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+ '503':
+ $ref: '#/components/responses/UserStatsOperationServiceUnavailable'
+ get:
+ x-pokepay-operator-name: "ListBanks"
+ 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:
+ properties:
+ private_money_id:
+ type: string
+ format: uuid
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/Banks'
+ '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:
+ x-pokepay-operator-name: "CreateBankTopupTransaction"
+ x-pokepay-allow-server-side: true
+ tags:
+ - BankPay
+ summary: 銀行からのチャージ
+ description: 指定のマネーのアカウントにbank_idの口座を用いてチャージを行います。
+ parameters:
+ - in: path
+ name: user_device_id
+ required: true
+ schema:
+ type: string
+ format: uuid
+ title: "デバイスID"
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ required: ["private_money_id", "amount", "bank_id", "request_id"]
+ properties:
+ private_money_id:
+ type: string
+ format: uuid
+ title: 'マネーID'
+ amount:
+ type: integer
+ minimum: 1
+ title: 'チャージ金額'
+ bank_id:
+ type: string
+ format: uuid
+ title: '銀行ID'
+ request_id:
+ type: string
+ format: uuid
+ title: 'リクエストID'
+ responses:
+ '200':
+ description: OK
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/TransactionDetail'
+ '400':
+ $ref: '#/components/responses/InvalidParameters'
+ '403':
+ $ref: '#/components/responses/UnpermittedAdminUser'
+ '404':
+ $ref: '#/components/responses/NotFound'
+ '422':
+ $ref: '#/components/responses/UnprocessableEntity'
+
/coupons:
get:
x-pokepay-operator-name: "ListCoupons"
diff --git a/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs b/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs
new file mode 100644
index 0000000..7b3a4e5
--- /dev/null
+++ b/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs
@@ -0,0 +1,39 @@
+// DO NOT EDIT: File is generated by code generator.
+using System;
+using System.Net;
+using System.Net.Http;
+using NUnit.Framework;
+using System.Threading.Tasks;
+using System.Collections.Generic;
+
+using PokepayPartnerCsharpSdk;
+
+namespace PokepayPartnerCsharpSdk.Test
+{
+ public class TestActivateUserDevice
+ {
+ private Client client;
+
+ [OneTimeSetUp]
+ public void OneTimeSetup()
+ {
+ client = new Client("~/.pokepay/test-config.ini");
+ }
+
+ [Test]
+ public async Task ActivateUserDevice0()
+ {
+ try {
+ Request.ActivateUserDevice request = new Request.ActivateUserDevice(
+ "011a7372-0000-449b-ba7c-775f7235b236"
+ );
+ Response.UserDevice response = await request.Send(client);
+ Assert.NotNull(response, "Shouldn't be null at least");
+ } catch (HttpRequestException e) {
+ Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
+ Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
+ }
+ }
+
+ }
+}
diff --git a/src/PokepayPartnerCsharpSdk.Test/TestBulkCreateTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestBulkCreateTransaction.cs
index 0eb6fdc..8c6c510 100644
--- a/src/PokepayPartnerCsharpSdk.Test/TestBulkCreateTransaction.cs
+++ b/src/PokepayPartnerCsharpSdk.Test/TestBulkCreateTransaction.cs
@@ -25,9 +25,9 @@ public async Task BulkCreateTransaction0()
{
try {
Request.BulkCreateTransaction request = new Request.BulkCreateTransaction(
- "PsLAa0LofoeILq2j",
- "Jb",
- "okM11iel9SifEKQQKEl5jTOYEn550ChTMJy5"
+ "XKPSRM",
+ "YMVxniA",
+ "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH"
);
Response.BulkTransaction response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -42,11 +42,11 @@ public async Task BulkCreateTransaction1()
{
try {
Request.BulkCreateTransaction request = new Request.BulkCreateTransaction(
- "PsLAa0LofoeILq2j",
- "Jb",
- "okM11iel9SifEKQQKEl5jTOYEn550ChTMJy5"
+ "XKPSRM",
+ "YMVxniA",
+ "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH"
) {
- PrivateMoneyId = "2f45c65d-775e-495d-92e9-f2b4ed81287a",
+ PrivateMoneyId = "19a91c59-b734-4147-80d0-a82a1224a44d",
};
Response.BulkTransaction response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -61,12 +61,12 @@ public async Task BulkCreateTransaction2()
{
try {
Request.BulkCreateTransaction request = new Request.BulkCreateTransaction(
- "PsLAa0LofoeILq2j",
- "Jb",
- "okM11iel9SifEKQQKEl5jTOYEn550ChTMJy5"
+ "XKPSRM",
+ "YMVxniA",
+ "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH"
) {
- Description = "ipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKV",
- PrivateMoneyId = "7064fed3-a423-4c16-af3a-3843c1fdb73c",
+ Description = "gqa4p3NBV6jnDEmNin",
+ PrivateMoneyId = "2eb7b49f-ffed-4618-99fc-e4e0ce656897",
};
Response.BulkTransaction response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCancelCashtray.cs b/src/PokepayPartnerCsharpSdk.Test/TestCancelCashtray.cs
index 2e78288..06d8559 100644
--- a/src/PokepayPartnerCsharpSdk.Test/TestCancelCashtray.cs
+++ b/src/PokepayPartnerCsharpSdk.Test/TestCancelCashtray.cs
@@ -25,7 +25,7 @@ public async Task CancelCashtray0()
{
try {
Request.CancelCashtray request = new Request.CancelCashtray(
- "079ae389-cf16-4d78-89b9-77b5ecaf671b"
+ "2adffaf5-1a32-40e6-bf0b-34a5f5f586b4"
);
Response.Cashtray response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateBank.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateBank.cs
new file mode 100644
index 0000000..6a4c6c9
--- /dev/null
+++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateBank.cs
@@ -0,0 +1,83 @@
+// DO NOT EDIT: File is generated by code generator.
+using System;
+using System.Net;
+using System.Net.Http;
+using NUnit.Framework;
+using System.Threading.Tasks;
+using System.Collections.Generic;
+
+using PokepayPartnerCsharpSdk;
+
+namespace PokepayPartnerCsharpSdk.Test
+{
+ public class TestCreateBank
+ {
+ private Client client;
+
+ [OneTimeSetUp]
+ public void OneTimeSetup()
+ {
+ client = new Client("~/.pokepay/test-config.ini");
+ }
+
+ [Test]
+ public async Task CreateBank0()
+ {
+ try {
+ Request.CreateBank request = new Request.CreateBank(
+ "e313491a-dd0b-41fe-acbc-31ffc78608e6",
+ "1d24ee19-477a-4162-a6f1-389da60ac0cb",
+ "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP",
+ "WVf0nkI2cpiZrwht02dhTsSxNXBuh"
+ );
+ Response.BankRegisteringInfo response = await request.Send(client);
+ Assert.NotNull(response, "Shouldn't be null at least");
+ } catch (HttpRequestException e) {
+ Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
+ Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
+ }
+ }
+
+ [Test]
+ public async Task CreateBank1()
+ {
+ try {
+ Request.CreateBank request = new Request.CreateBank(
+ "e313491a-dd0b-41fe-acbc-31ffc78608e6",
+ "1d24ee19-477a-4162-a6f1-389da60ac0cb",
+ "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP",
+ "WVf0nkI2cpiZrwht02dhTsSxNXBuh"
+ ) {
+ Birthdate = "AxPxL",
+ };
+ Response.BankRegisteringInfo response = await request.Send(client);
+ Assert.NotNull(response, "Shouldn't be null at least");
+ } catch (HttpRequestException e) {
+ Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
+ Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
+ }
+ }
+
+ [Test]
+ public async Task CreateBank2()
+ {
+ try {
+ Request.CreateBank request = new Request.CreateBank(
+ "e313491a-dd0b-41fe-acbc-31ffc78608e6",
+ "1d24ee19-477a-4162-a6f1-389da60ac0cb",
+ "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP",
+ "WVf0nkI2cpiZrwht02dhTsSxNXBuh"
+ ) {
+ Email = "gPF7PH9jsP@o3qR.com",
+ Birthdate = "XC0",
+ };
+ Response.BankRegisteringInfo response = await request.Send(client);
+ Assert.NotNull(response, "Shouldn't be null at least");
+ } catch (HttpRequestException e) {
+ Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
+ Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
+ }
+ }
+
+ }
+}
diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs
new file mode 100644
index 0000000..04a9663
--- /dev/null
+++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs
@@ -0,0 +1,43 @@
+// DO NOT EDIT: File is generated by code generator.
+using System;
+using System.Net;
+using System.Net.Http;
+using NUnit.Framework;
+using System.Threading.Tasks;
+using System.Collections.Generic;
+
+using PokepayPartnerCsharpSdk;
+
+namespace PokepayPartnerCsharpSdk.Test
+{
+ public class TestCreateBankTopupTransaction
+ {
+ private Client client;
+
+ [OneTimeSetUp]
+ public void OneTimeSetup()
+ {
+ client = new Client("~/.pokepay/test-config.ini");
+ }
+
+ [Test]
+ public async Task CreateBankTopupTransaction0()
+ {
+ try {
+ Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction(
+ "ee2bc702-0f1f-4fce-b60a-aeacea985e3d",
+ "074b32f2-5c20-461f-9c53-d4149d475e71",
+ 1544,
+ "60df8aaf-23fd-4fec-90db-d611c05931e8",
+ "fb148318-6fe3-47bc-81a7-c36c55ce455d"
+ );
+ Response.TransactionDetail response = await request.Send(client);
+ Assert.NotNull(response, "Shouldn't be null at least");
+ } catch (HttpRequestException e) {
+ Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest");
+ Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300");
+ }
+ }
+
+ }
+}
diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs
index c5fb8a0..f0f5888 100644
--- a/src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs
+++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs
@@ -25,8 +25,8 @@ public async Task CreateBill0()
{
try {
Request.CreateBill request = new Request.CreateBill(
- "db50ee22-0432-4bcd-a1c2-830f02f96792",
- "e3f2d294-339a-4bf9-8ee0-6168cda191a3"
+ "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5",
+ "460688ba-b35d-4d0f-af63-7640929518b5"
);
Response.Bill response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -41,10 +41,10 @@ public async Task CreateBill1()
{
try {
Request.CreateBill request = new Request.CreateBill(
- "db50ee22-0432-4bcd-a1c2-830f02f96792",
- "e3f2d294-339a-4bf9-8ee0-6168cda191a3"
+ "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5",
+ "460688ba-b35d-4d0f-af63-7640929518b5"
) {
- Description = "orzLzXS7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerKmMDJDN9kjnE",
+ Description = "HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgS",
};
Response.Bill response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -59,11 +59,11 @@ public async Task CreateBill2()
{
try {
Request.CreateBill request = new Request.CreateBill(
- "db50ee22-0432-4bcd-a1c2-830f02f96792",
- "e3f2d294-339a-4bf9-8ee0-6168cda191a3"
+ "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5",
+ "460688ba-b35d-4d0f-af63-7640929518b5"
) {
- Amount = 65.0,
- Description = "WkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo",
+ Amount = 8640.0,
+ Description = "pyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55W",
};
Response.Bill response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateCampaign.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateCampaign.cs
index 6165ec1..341f59b 100644
--- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCampaign.cs
+++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCampaign.cs
@@ -25,12 +25,12 @@ public async Task CreateCampaign0()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
);
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -45,14 +45,14 @@ public async Task CreateCampaign1()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 997496788,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -67,15 +67,15 @@ public async Task CreateCampaign2()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- DestPrivateMoneyId = "1aeb5522-4329-467b-a7d7-76569ec2d08b",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 517336317,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -90,16 +90,16 @@ public async Task CreateCampaign3()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- MaxTotalPointAmount = 9036,
- DestPrivateMoneyId = "89bdaf69-ddc2-4cde-82a9-2ac01eb30cbd",
+ DestPrivateMoneyId = "0f960c70-0f8a-42c4-afe5-32c718d50ec0",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 256536435,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -114,17 +114,17 @@ public async Task CreateCampaign4()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- MaxPointAmount = 9436,
- MaxTotalPointAmount = 2431,
- DestPrivateMoneyId = "4d37b316-33cd-4e58-9ea9-36c1c77f9bc2",
+ MaxTotalPointAmount = 9860,
+ DestPrivateMoneyId = "f77d6349-4909-4519-9ebd-d035b2b78d5d",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 1024891600,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -139,18 +139,18 @@ public async Task CreateCampaign5()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- ExistInEachProductGroups = true,
- MaxPointAmount = 2372,
- MaxTotalPointAmount = 2595,
- DestPrivateMoneyId = "cdb48e7a-aa6e-4aac-ab6f-f0e0443c7eec",
+ MaxPointAmount = 9115,
+ MaxTotalPointAmount = 9682,
+ DestPrivateMoneyId = "73aa2839-2c25-4fc7-826f-fa85c994ba9f",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 906820179,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -165,19 +165,19 @@ public async Task CreateCampaign6()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- MinimumNumberForCombinationPurchase = 2189,
- ExistInEachProductGroups = true,
- MaxPointAmount = 7003,
- MaxTotalPointAmount = 8337,
- DestPrivateMoneyId = "544562bc-4fc6-41a5-b058-043c2ba88cd6",
+ ExistInEachProductGroups = false,
+ MaxPointAmount = 7529,
+ MaxTotalPointAmount = 9233,
+ DestPrivateMoneyId = "7fd2d2e1-9b1d-4900-8999-f9d312b6fb2b",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 651192846,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -192,20 +192,20 @@ public async Task CreateCampaign7()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- ApplicableShopIds = new string[]{"ab23b23b-7923-4fad-bc68-1844f6f538f3", "bf7c2375-dd6d-48e3-8333-5538a8d17b08", "bd7fbc17-60b3-41ad-894c-af24bc8c8643", "9877e9d9-5b20-4edd-89aa-ce80753d160a", "c4db647c-1906-44f6-b761-886530614ab0"},
- MinimumNumberForCombinationPurchase = 8031,
+ MinimumNumberForCombinationPurchase = 2896,
ExistInEachProductGroups = true,
- MaxPointAmount = 5573,
- MaxTotalPointAmount = 6357,
- DestPrivateMoneyId = "ad5e6bda-ca21-41d6-994d-4739a93a9527",
+ MaxPointAmount = 1437,
+ MaxTotalPointAmount = 5405,
+ DestPrivateMoneyId = "0efa2b2f-9401-4e21-8809-96a6b2ba4994",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 1415330254,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -220,21 +220,21 @@ public async Task CreateCampaign8()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
- ApplicableShopIds = new string[]{"d7be396e-cf3f-43b0-9fce-2ac869f82404", "43cd88fd-c8d7-4091-9a62-4bb8c4c88b89", "d859bf26-4c3b-4b09-9ad3-3e20726f58b9", "71841ff4-a117-46ea-a363-2ffab1b90c5a", "667938b4-be47-4677-9d1c-8de27f107830", "ebca62d0-a068-451e-9659-810fa1bc4ff1"},
- MinimumNumberForCombinationPurchase = 1393,
+ ApplicableShopIds = new string[]{"608581e6-b873-4ddb-abe0-e18a66505671", "0fd11a58-03b8-42d7-973e-33e24d0606eb", "466b4978-315f-475d-8a62-70d757e2bf54", "d811acf0-4786-42b6-b6af-94694604075b"},
+ MinimumNumberForCombinationPurchase = 3400,
ExistInEachProductGroups = true,
- MaxPointAmount = 3358,
- MaxTotalPointAmount = 9489,
- DestPrivateMoneyId = "58bd33c2-4d4a-42db-806e-f5a6438bf1c7",
+ MaxPointAmount = 7346,
+ MaxTotalPointAmount = 2968,
+ DestPrivateMoneyId = "ded3fe86-756c-48d2-927c-702fb445fa90",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 735107258,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -249,22 +249,22 @@ public async Task CreateCampaign9()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- ApplicableDaysOfWeek = new int[]{4, 0, 2, 4, 2, 3, 3},
- ApplicableTimeRanges = new object[]{},
- ApplicableShopIds = new string[]{"35cc04a2-ccea-4c16-b43d-c8e56122a16a", "a036e67b-6a4f-40a5-941f-6d08e7259468", "f96140fe-038a-4879-a035-5c0abacc06d4", "24932d84-e7c5-46e3-904d-3f5cb76ddd3c"},
- MinimumNumberForCombinationPurchase = 7613,
- ExistInEachProductGroups = true,
- MaxPointAmount = 8710,
- MaxTotalPointAmount = 4672,
- DestPrivateMoneyId = "cf73a8ef-08f7-410a-9d23-e5bf1e93dde0",
+ ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
+ ApplicableShopIds = new string[]{"ce2d24a8-c4f5-407b-8d56-502cdec1c4fb"},
+ MinimumNumberForCombinationPurchase = 9060,
+ ExistInEachProductGroups = false,
+ MaxPointAmount = 3475,
+ MaxTotalPointAmount = 5299,
+ DestPrivateMoneyId = "f67f27bf-977a-458b-a585-48d1448d6705",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 980505426,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -279,23 +279,23 @@ public async Task CreateCampaign10()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
- ApplicableDaysOfWeek = new int[]{4, 2, 0, 3, 6, 4},
- ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
- ApplicableShopIds = new string[]{"b06d8cdc-54b4-4bed-9248-b320dcf58d8a", "44f16b97-6024-45d4-a18a-8486c0c4423a", "f8ea204f-6e42-427b-bc02-9c4d6f58b8cd", "953c8c6f-18ff-426c-b6e2-3344ceeeb77d", "69725970-5681-4f33-bd3c-218869948f87", "1e97a5be-4e36-4fda-9392-4e9ff273cc39", "8ccc589c-bc56-4d65-b1c0-bef1363158db", "ac52506f-702e-45b3-a2f6-546dab2b5258", "600a5375-8689-43fd-bf63-822fbc6b149d"},
- MinimumNumberForCombinationPurchase = 2500,
+ ApplicableDaysOfWeek = new int[]{1, 4, 2},
+ ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
+ ApplicableShopIds = new string[]{"0749b4bb-df35-45b1-a5ba-651bcda6d07a", "76c31155-8544-4cea-8166-48f9ae7c1721", "41c3ee2a-0ec7-4f02-b09f-13801c897513"},
+ MinimumNumberForCombinationPurchase = 2511,
ExistInEachProductGroups = true,
- MaxPointAmount = 7301,
- MaxTotalPointAmount = 264,
- DestPrivateMoneyId = "57740f61-0d46-4eda-a960-f85180869a0d",
+ MaxPointAmount = 3807,
+ MaxTotalPointAmount = 9324,
+ DestPrivateMoneyId = "c0796849-742b-47e9-8255-d0445ca8f75b",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 1009515673,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -310,24 +310,24 @@ public async Task CreateCampaign11()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}},
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
- ApplicableDaysOfWeek = new int[]{},
+ ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
+ ApplicableDaysOfWeek = new int[]{3, 2, 3, 4},
ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
- ApplicableShopIds = new string[]{"07785a0c-723a-4eea-b3cd-2bf25b689819", "01909838-de15-467f-be1b-0180c882726f"},
- MinimumNumberForCombinationPurchase = 7820,
- ExistInEachProductGroups = false,
- MaxPointAmount = 4775,
- MaxTotalPointAmount = 1418,
- DestPrivateMoneyId = "e492fb10-96a3-4a48-abde-ad42da816757",
+ ApplicableShopIds = new string[]{"39ca6037-abbd-454c-a982-fb338e158dc7"},
+ MinimumNumberForCombinationPurchase = 6650,
+ ExistInEachProductGroups = true,
+ MaxPointAmount = 2478,
+ MaxTotalPointAmount = 6791,
+ DestPrivateMoneyId = "bddc371e-a492-47a2-9245-5de40a36cb74",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 1280522020,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -342,25 +342,25 @@ public async Task CreateCampaign12()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- Subject = "money",
- AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}},
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
- ApplicableDaysOfWeek = new int[]{0, 2, 2},
- ApplicableTimeRanges = new object[]{},
- ApplicableShopIds = new string[]{"ece6287e-7e11-49ae-967f-d3516b3c4901", "75b1a610-3196-4bbe-9fde-bfa62139f287", "12290d4b-ac0d-4a3a-9a43-06848da50c33", "01a984c2-95ba-4b53-8d53-73237ff12833", "79352b3c-d52b-4ce8-b367-062caae2f970", "a8b2cc14-963b-4f08-9d19-f24ab09b8403"},
- MinimumNumberForCombinationPurchase = 1872,
- ExistInEachProductGroups = true,
- MaxPointAmount = 9794,
- MaxTotalPointAmount = 4325,
- DestPrivateMoneyId = "fa7375b6-c295-428c-affc-1b86539a7de3",
+ AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}},
+ ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
+ ApplicableDaysOfWeek = new int[]{1, 2, 1, 2, 0, 5, 0, 6},
+ ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
+ ApplicableShopIds = new string[]{"e3e99e50-f684-4da2-adab-009fe5c47a00", "4236f606-6a10-4c26-a9c6-cf2d1294d7ca", "65fc13aa-45f5-451a-be53-b4e3d7272172", "de9ae145-20c7-41e3-99b5-f049f608d7b6", "4d44599d-1176-4923-bebb-27593510b3a1", "2a143e7c-e44a-48aa-9428-3e7ff069bf7c"},
+ MinimumNumberForCombinationPurchase = 3398,
+ ExistInEachProductGroups = false,
+ MaxPointAmount = 8802,
+ MaxTotalPointAmount = 2676,
+ DestPrivateMoneyId = "55c88853-db73-4fd0-b263-2aa3e9cf0887",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 216425752,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -375,26 +375,26 @@ public async Task CreateCampaign13()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- IsExclusive = true,
- Subject = "money",
- AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}},
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
- ApplicableDaysOfWeek = new int[]{4, 1, 5, 5, 2},
- ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
- ApplicableShopIds = new string[]{"86920ea3-411a-45a9-977d-a1cb73657058", "6c4b67df-6b63-4924-8e50-4b053e4fc502", "0244397e-0575-4bbd-b087-9faa9874eee9", "048c791a-7809-407f-a42c-a87b7ccca0b7", "41874cb7-2503-4172-a78c-8513dde0682a", "b1ad4835-8dae-4291-8db6-556f38adb48f", "dbeb7aa0-2f29-4c58-834e-21130ebed363", "938ce183-ef25-4333-a4f7-3c6c988e52b2", "7e2d12c6-0dcb-477e-a5d4-fa5c2e1d0998"},
- MinimumNumberForCombinationPurchase = 6619,
+ Subject = "all",
+ AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}},
+ ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
+ ApplicableDaysOfWeek = new int[]{3, 3, 5, 0, 1, 3, 2},
+ ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
+ ApplicableShopIds = new string[]{"2845dee1-e5ae-4111-ae0f-01514eafcce2", "aaea48d6-893a-4494-91cd-07398f70a35a", "2b95aab6-6c86-4dd2-87b0-49ebf6138ebc", "0cd7e98f-d043-4418-9873-3f1470955c26", "cbebc1d0-9be4-4922-baf7-0c90e3471f45", "912395f2-bc1d-4e7d-acb5-da116b009b6d", "29590a58-3988-4708-abbe-68296e105dc7", "3333f13f-cbfa-46f5-8c02-e58553d9c527", "4530dad7-5833-4546-abd7-807f3added3e", "83e6959a-1469-448d-b9da-4468386e4949"},
+ MinimumNumberForCombinationPurchase = 6652,
ExistInEachProductGroups = true,
- MaxPointAmount = 817,
- MaxTotalPointAmount = 6859,
- DestPrivateMoneyId = "248bc83d-9c4d-4219-a20e-ab01705c8e12",
+ MaxPointAmount = 9776,
+ MaxTotalPointAmount = 112,
+ DestPrivateMoneyId = "0e45d18f-75ea-4cd6-8f5a-0defac9e50c1",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 1753818353,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -409,27 +409,27 @@ public async Task CreateCampaign14()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- PointExpiresInDays = 1565,
- IsExclusive = true,
- Subject = "all",
- AmountBasedPointRules = new object[]{},
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
- ApplicableDaysOfWeek = new int[]{5, 2, 5, 3, 5, 2},
- ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
- ApplicableShopIds = new string[]{"840b0bca-3cce-408a-a1b6-7da5571436e3", "3b163c0d-6bae-45e4-a2a4-4adbf4d1be26", "417450f6-bf67-43b5-b0d1-92484935099b", "a89c0aec-0a6e-4544-ad79-4b073e4413ae", "6f5ae3e4-4052-4bee-9e36-df3831e0d44b", "97fb80a3-bbe2-49ef-9585-189586b7d113"},
- MinimumNumberForCombinationPurchase = 4010,
+ IsExclusive = false,
+ Subject = "money",
+ AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}},
+ ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
+ ApplicableDaysOfWeek = new int[]{6, 1, 0, 2, 2, 6, 2},
+ ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
+ ApplicableShopIds = new string[]{"429113fd-da05-438a-9b04-db9c2bcb1895", "7b87f493-5001-49ce-9020-12b83332cf27", "60a4fcb1-c009-4ccc-87c9-aefb536ecf8b", "37e0b234-92af-4cb4-b8a4-c68d0b751e27", "c2cc8abb-c67f-424c-b36d-782dda1c5723", "ace724a1-1ce6-4b28-b2c0-1bc63082dc0a", "609b06d0-549c-4110-b582-e0c5058bd53c", "ba2d2f9f-ddcf-4fd6-94fd-f74b8be2cbfe"},
+ MinimumNumberForCombinationPurchase = 6641,
ExistInEachProductGroups = true,
- MaxPointAmount = 4727,
- MaxTotalPointAmount = 1153,
- DestPrivateMoneyId = "277950a8-dddb-4abe-8bc4-712abda3af73",
+ MaxPointAmount = 2860,
+ MaxTotalPointAmount = 3579,
+ DestPrivateMoneyId = "3fa00044-f543-407e-9979-7afb342178d5",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 523938115,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -444,28 +444,28 @@ public async Task CreateCampaign15()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- PointExpiresAt = "2023-07-07T07:11:29.000000+09:00",
- PointExpiresInDays = 4080,
+ PointExpiresInDays = 1573,
IsExclusive = true,
Subject = "all",
- AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}},
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
- ApplicableDaysOfWeek = new int[]{0, 4, 2, 2, 5, 1, 5, 3},
- ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
- ApplicableShopIds = new string[]{"8fe165f2-e4d2-4c1b-b5b9-3710d9bdf15c", "117c44c5-fdba-4d95-9c18-6aa06383e969", "6fc8f62d-f7df-4fd6-858a-51f6e313396c", "a4270cf7-1006-4ac1-82ec-bcc0b803c98b", "59adb6ea-f743-4755-8c1c-4805d491107e", "852a46e6-c78e-4b3d-89e5-1b8932720158", "d5f97d9d-3158-49ab-8ba2-0186b6c35011", "79c849b8-a28a-4b48-8c61-97411920ff41"},
- MinimumNumberForCombinationPurchase = 9105,
- ExistInEachProductGroups = true,
- MaxPointAmount = 3128,
- MaxTotalPointAmount = 8784,
- DestPrivateMoneyId = "5fbcfb7b-5837-432e-aa5f-039d65f93904",
+ AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}},
+ ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
+ ApplicableDaysOfWeek = new int[]{6, 1, 2},
+ ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}},
+ ApplicableShopIds = new string[]{"8791d856-4a85-4d67-a9b5-75ec73e71291", "d63abb80-ac13-4051-a64b-2e7f61ed6d13", "471e978d-1f13-439d-bee9-e83b7c940772", "eb44a8a4-3268-4ef2-bec2-349f7f1711a0"},
+ MinimumNumberForCombinationPurchase = 8510,
+ ExistInEachProductGroups = false,
+ MaxPointAmount = 1006,
+ MaxTotalPointAmount = 6339,
+ DestPrivateMoneyId = "91a6ede2-3981-4326-bda9-e91e4e9c0bc6",
ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}},
+ BudgetCapsAmount = 1215529429,
};
Response.Campaign response = await request.Send(client);
Assert.NotNull(response, "Shouldn't be null at least");
@@ -480,29 +480,29 @@ public async Task CreateCampaign16()
{
try {
Request.CreateCampaign request = new Request.CreateCampaign(
- "R9buGPpBiWlh4drGbWvDfmVaNvPs9iu3XzENeNNhWBP",
- "fbac926a-9d18-4ab9-90b6-4022fdb5ef72",
- "2018-04-10T23:46:16.000000+09:00",
- "2024-01-30T09:03:28.000000+09:00",
- 9473,
- "payment"
+ "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu",
+ "291366db-519c-429e-bf63-0e23dc6061b5",
+ "2022-10-05T11:24:43.000000Z",
+ "2021-06-19T15:02:13.000000Z",
+ 5525,
+ "external-transaction"
) {
- Status = "disabled",
- PointExpiresAt = "2021-08-06T21:31:47.000000+09:00",
- PointExpiresInDays = 7005,
- IsExclusive = true,
- Subject = "all",
- AmountBasedPointRules = new object[]{},
- ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}},
- ApplicableDaysOfWeek = new int[]{1, 0, 1},
- ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary