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(){{"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[]{"0f5fc823-658b-4033-9cce-a0ae3591c606", "6df40827-e634-4f48-abfb-5834df3d886d", "3e14ea40-fa44-4d18-a40c-61ca833e2a3b", "74da6095-09dd-435b-a900-a1240476fa4b", "b00b0e71-26f3-4f29-ade0-3148bd004009"}, - MinimumNumberForCombinationPurchase = 1987, + PointExpiresAt = "2021-01-03T09:38:27.000000Z", + PointExpiresInDays = 5805, + 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}}}, + 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[]{4, 6, 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(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"072bd62c-3552-435b-ae5e-c230546d8d21", "920f1f56-382f-4ffb-b1cb-0ded173cc53f", "8cb6134b-bc16-4dbc-b1dd-0989392e23bb", "aad4bb4e-eee8-47f0-a00b-2df582587e44", "96ee0c86-85b1-4741-9334-3e90515aa6c9", "9206b282-f318-4e78-b670-805bbb1a2822", "ebe5c546-5801-439b-907c-e5a87c0f9847", "a78ce3ae-6082-4a61-a4e0-73546428d187", "10b3e8a0-661a-49c6-983d-55366b330ba7"}, + MinimumNumberForCombinationPurchase = 4200, ExistInEachProductGroups = false, - MaxPointAmount = 6865, - MaxTotalPointAmount = 7598, - DestPrivateMoneyId = "04e0857d-b81a-41ca-b0ec-50f1b9b9631f", + MaxPointAmount = 89, + MaxTotalPointAmount = 3292, + DestPrivateMoneyId = "bf9b3264-1533-4398-920b-d2ee2e26dfbd", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1439450059, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -517,30 +517,30 @@ public async Task CreateCampaign17() { 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" ) { - Description = "hMYaIBcQj7mL59HnlNHLuA0aOdVgj6K", Status = "disabled", - PointExpiresAt = "2017-02-08T23:29:05.000000+09:00", - PointExpiresInDays = 3467, + PointExpiresAt = "2021-12-19T02:03:37.000000Z", + PointExpiresInDays = 2321, 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}}}, - 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, 6, 0, 6, 6, 2, 6, 6, 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"}}}, - ApplicableShopIds = new string[]{}, - MinimumNumberForCombinationPurchase = 4627, + 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}}}, + 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[]{4, 5}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"5b4da297-9c18-4afb-9000-51e2c8b08476", "5f4ac0a3-dcba-4785-a6de-e946919ea774", "99eed397-6ee0-4fc4-af81-bd6bc48a3601"}, + MinimumNumberForCombinationPurchase = 9647, ExistInEachProductGroups = false, - MaxPointAmount = 7456, - MaxTotalPointAmount = 7885, - DestPrivateMoneyId = "32eb9e4a-4387-4e9e-9490-60d437d20825", + MaxPointAmount = 3878, + MaxTotalPointAmount = 8549, + DestPrivateMoneyId = "eac7ba0c-adfa-4994-9007-c85f7a46f6d3", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1397504130, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -555,31 +555,71 @@ public async Task CreateCampaign18() { 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" ) { - BearPointShopId = "3dcd2631-0d2b-45e2-b60e-47bbf3d44907", - Description = "igwFwXc9Xw81AcLgJ7HUPLZ2JY3PzdziozZN0eUlnWAmEdaqY8pJTyG58WWoVkTIofZ63ZHIa2ZaoOg0V0uaqelttkE7ehROL4XrOdkUWUyHCGGZhBjhjuTKoJ3qmoFsOI4faRjWQ8gKOhK9uTt59dHqyzQZgDiWvj8etzcFhDXwcbaPJF", - Status = "enabled", - PointExpiresAt = "2018-01-19T04:03:59.000000+09:00", - PointExpiresInDays = 8575, - IsExclusive = true, + Description = "PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2EkkP2VIPy7HW7Ee7skB9BB1YNClE0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11", + Status = "disabled", + PointExpiresAt = "2022-01-26T18:07:39.000000Z", + PointExpiresInDays = 5544, + 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}}}, + 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[]{2, 1, 6, 2, 6, 3, 3, 0}, + 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"}}}, + ApplicableShopIds = new string[]{"b68a9639-b5d8-42be-923c-7460a3d67d9b", "602b3e58-dfd3-4a06-8f60-d6ebbf04e0bd", "0d36dcfd-ad8b-499b-9bd7-f284721f8614", "d9a7709f-86ab-4810-8da2-0f0bb30c8576", "8933d367-45f7-424d-a4fd-7f43eff5a336", "6b5fd159-daf3-441a-a585-941b989bba51", "90841a56-382a-4506-8206-964dff036406", "6f11e2b6-6a82-4331-85b5-b842aa70dd53", "35a63682-cacc-4e52-9442-2fb41a57449c", "4beb9ef0-e49c-4d68-b06a-ff626ca0b6de"}, + MinimumNumberForCombinationPurchase = 5749, + ExistInEachProductGroups = true, + MaxPointAmount = 9986, + MaxTotalPointAmount = 4535, + DestPrivateMoneyId = "6cbe9517-329d-4dab-9dd1-3afdea31d584", + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 531149341, + }; + Response.Campaign 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 CreateCampaign19() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", + "291366db-519c-429e-bf63-0e23dc6061b5", + "2022-10-05T11:24:43.000000Z", + "2021-06-19T15:02:13.000000Z", + 5525, + "external-transaction" + ) { + BearPointShopId = "440b88ff-2ba0-4dc8-970e-6365cf4ab4af", + Description = "KxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8c", + Status = "disabled", + PointExpiresAt = "2020-11-20T21:21:50.000000Z", + PointExpiresInDays = 5811, + 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}}}, - 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, 4, 5, 5, 3, 2, 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(){{"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[]{"0a03e40a-8cca-48a8-a4fd-2eacb3e84dd2", "3ee446f1-b20b-4552-ae50-c71f4765811b", "d3026694-2a47-4c40-876d-37f8dd71c583", "3e685ce3-d0f6-479e-8ecc-2f89d0f9cfae", "a41f9969-e35c-4df2-b510-580ae9846f1f", "0eec0711-c0e8-4da6-af9a-6c6eb5aa9ba1"}, - MinimumNumberForCombinationPurchase = 7070, + 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[]{6, 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"}}}, + ApplicableShopIds = new string[]{"a51d3260-0821-456a-9967-c3788176e191", "f93312b3-a62d-4823-93e7-ab548bb88620", "b0dd32ca-35cb-462c-88f9-9a0daf1b7736", "d6883e8c-9b19-4664-908b-1dfef0b7e49c", "421d07c2-5abf-4e0e-87fc-e721a064a981", "c6b446e2-0f33-4df9-ab9e-9b075b5dda7b", "b0caef1d-d9ad-4659-89d9-8356833c55d2", "d3b8cc5a-9194-43b4-aa87-4d646e25439c"}, + MinimumNumberForCombinationPurchase = 3244, ExistInEachProductGroups = false, - MaxPointAmount = 6494, - MaxTotalPointAmount = 478, - DestPrivateMoneyId = "e4dae641-5e32-4815-88a1-d6238d59fe65", + MaxPointAmount = 4231, + MaxTotalPointAmount = 2580, + DestPrivateMoneyId = "c881f9fd-d447-4459-9161-c9a1f6dc1a3d", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 749440476, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateCashtray.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateCashtray.cs index f527634..4109df3 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCashtray.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCashtray.cs @@ -25,9 +25,9 @@ public async Task CreateCashtray0() { try { Request.CreateCashtray request = new Request.CreateCashtray( - "d3af882b-5fe7-403e-8265-3f715347688e", - "fd06dcd6-a974-4c41-b651-103039aed4f2", - 4036.0 + "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", + "7737c810-8958-4792-8583-c0078d66fb8b", + 3669.0 ); Response.Cashtray response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -42,11 +42,11 @@ public async Task CreateCashtray1() { try { Request.CreateCashtray request = new Request.CreateCashtray( - "d3af882b-5fe7-403e-8265-3f715347688e", - "fd06dcd6-a974-4c41-b651-103039aed4f2", - 4036.0 + "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", + "7737c810-8958-4792-8583-c0078d66fb8b", + 3669.0 ) { - ExpiresIn = 1498, + ExpiresIn = 3075, }; Response.Cashtray response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -61,12 +61,12 @@ public async Task CreateCashtray2() { try { Request.CreateCashtray request = new Request.CreateCashtray( - "d3af882b-5fe7-403e-8265-3f715347688e", - "fd06dcd6-a974-4c41-b651-103039aed4f2", - 4036.0 + "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", + "7737c810-8958-4792-8583-c0078d66fb8b", + 3669.0 ) { - Description = "OMHbm3FgLktaUhgEFTnEcwpkpUTSKxUsOoZPlM9KHj0LscW1P81Qy90jmz1sBL", - ExpiresIn = 6323, + Description = "qg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQr", + ExpiresIn = 4950, }; Response.Cashtray response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateCheck.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateCheck.cs index 594a9fe..f909b1e 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCheck.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCheck.cs @@ -25,9 +25,9 @@ public async Task CreateCheck0() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 9202.0, + MoneyAmount = 8380.0, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -42,10 +42,10 @@ public async Task CreateCheck1() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 5626.0, - Description = "rkqIAwcJ63x2Wplkq", + MoneyAmount = 6406.0, + Description = "36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBDQiRCyVT", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -60,11 +60,11 @@ public async Task CreateCheck2() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 2479.0, - IsOnetime = false, - Description = "djX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArik", + MoneyAmount = 8734.0, + IsOnetime = true, + Description = "3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -79,12 +79,12 @@ public async Task CreateCheck3() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 1686.0, - UsageLimit = 5847, - IsOnetime = false, - Description = "ZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEKeHr4636l", + MoneyAmount = 7574.0, + UsageLimit = 138, + IsOnetime = true, + Description = "jZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -99,13 +99,13 @@ public async Task CreateCheck4() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 5842.0, - ExpiresAt = "2023-12-06T19:07:12.000000+09:00", - UsageLimit = 6612, + MoneyAmount = 7859.0, + ExpiresAt = "2023-05-07T23:01:35.000000Z", + UsageLimit = 3057, IsOnetime = true, - Description = "iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHwiW6AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA", + Description = "SQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJf", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -120,14 +120,14 @@ public async Task CreateCheck5() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 1559.0, - PointExpiresAt = "2021-08-24T03:58:49.000000+09:00", - ExpiresAt = "2015-10-17T04:47:34.000000+09:00", - UsageLimit = 4342, + MoneyAmount = 7124.0, + PointExpiresAt = "2023-05-07T19:04:42.000000Z", + ExpiresAt = "2021-04-03T08:49:41.000000Z", + UsageLimit = 5919, IsOnetime = true, - Description = "Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8uakcEIyxQz7D46SGfEdpD0URVkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHF", + Description = "v94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -142,15 +142,15 @@ public async Task CreateCheck6() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 6520.0, - PointExpiresInDays = 18, - PointExpiresAt = "2023-04-27T06:24:37.000000+09:00", - ExpiresAt = "2025-07-17T19:09:20.000000+09:00", - UsageLimit = 5880, - IsOnetime = true, - Description = "taKpu1qdmiKn22F3ctIs", + MoneyAmount = 5070.0, + PointExpiresInDays = 6716, + PointExpiresAt = "2023-03-31T08:24:20.000000Z", + ExpiresAt = "2020-11-28T02:54:40.000000Z", + UsageLimit = 2977, + IsOnetime = false, + Description = "ZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6By", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -165,16 +165,16 @@ public async Task CreateCheck7() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 7207.0, - BearPointAccount = "970b7df8-2bad-43bb-9054-36d475fed3d6", - PointExpiresInDays = 8844, - PointExpiresAt = "2022-10-16T08:32:58.000000+09:00", - ExpiresAt = "2019-03-14T13:59:13.000000+09:00", - UsageLimit = 4139, - IsOnetime = false, - Description = "jgCaf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJpJRQwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD", + MoneyAmount = 2132.0, + BearPointAccount = "564f0633-c088-426c-bfdf-b12916570056", + PointExpiresInDays = 4947, + PointExpiresAt = "2024-01-16T03:09:56.000000Z", + ExpiresAt = "2022-08-04T04:38:22.000000Z", + UsageLimit = 8911, + IsOnetime = true, + Description = "23WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6X", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -189,10 +189,10 @@ public async Task CreateCheck8() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 2080.0, - PointAmount = 7579.0, + MoneyAmount = 2943.0, + PointAmount = 6616.0, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -207,11 +207,11 @@ public async Task CreateCheck9() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 7088.0, - PointAmount = 7313.0, - Description = "ldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eo", + MoneyAmount = 4440.0, + PointAmount = 2094.0, + Description = "3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNC", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -226,12 +226,12 @@ public async Task CreateCheck10() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 880.0, - PointAmount = 8800.0, + MoneyAmount = 1341.0, + PointAmount = 3944.0, IsOnetime = false, - Description = "lmvqzqnGOYbg6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVB", + Description = "ERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOE", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -246,13 +246,13 @@ public async Task CreateCheck11() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 3212.0, - PointAmount = 6028.0, - UsageLimit = 7482, + MoneyAmount = 1020.0, + PointAmount = 7368.0, + UsageLimit = 6710, IsOnetime = false, - Description = "QlsA8T5nZUMuDqspHuPmGiUoPtez", + Description = "NdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzN", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -267,14 +267,14 @@ public async Task CreateCheck12() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 280.0, - PointAmount = 1209.0, - ExpiresAt = "2019-01-06T00:28:50.000000+09:00", - UsageLimit = 2936, + MoneyAmount = 5196.0, + PointAmount = 8782.0, + ExpiresAt = "2023-04-24T17:55:07.000000Z", + UsageLimit = 3819, IsOnetime = true, - Description = "3G", + Description = "oAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZ", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -289,15 +289,15 @@ public async Task CreateCheck13() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 1283.0, - PointAmount = 9300.0, - PointExpiresAt = "2016-12-28T17:22:06.000000+09:00", - ExpiresAt = "2016-11-22T17:36:40.000000+09:00", - UsageLimit = 7967, + MoneyAmount = 5465.0, + PointAmount = 9473.0, + PointExpiresAt = "2023-01-06T00:46:39.000000Z", + ExpiresAt = "2023-12-11T07:46:43.000000Z", + UsageLimit = 1602, IsOnetime = true, - Description = "NM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZullt", + Description = "tgwRL", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -312,16 +312,16 @@ public async Task CreateCheck14() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 1185.0, - PointAmount = 2522.0, - PointExpiresInDays = 2421, - PointExpiresAt = "2019-04-21T20:22:54.000000+09:00", - ExpiresAt = "2018-07-23T12:28:50.000000+09:00", - UsageLimit = 2978, + MoneyAmount = 778.0, + PointAmount = 5777.0, + PointExpiresInDays = 5743, + PointExpiresAt = "2020-09-11T08:09:37.000000Z", + ExpiresAt = "2020-06-24T07:15:37.000000Z", + UsageLimit = 6025, IsOnetime = true, - Description = "n3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0Kto", + Description = "1", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -336,17 +336,17 @@ public async Task CreateCheck15() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - MoneyAmount = 9376.0, - PointAmount = 4837.0, - BearPointAccount = "93d19ffe-84e1-42d7-b3f6-cb2eb1c79c37", - PointExpiresInDays = 1434, - PointExpiresAt = "2018-10-28T21:45:49.000000+09:00", - ExpiresAt = "2020-04-19T05:36:09.000000+09:00", - UsageLimit = 8575, + MoneyAmount = 3271.0, + PointAmount = 1239.0, + BearPointAccount = "d98f9df1-5a7b-4001-a67e-7d325bfa80fc", + PointExpiresInDays = 1933, + PointExpiresAt = "2022-10-06T14:18:40.000000Z", + ExpiresAt = "2021-10-09T18:26:18.000000Z", + UsageLimit = 2848, IsOnetime = true, - Description = "Ye7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3Httl", + Description = "amqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHs", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -361,9 +361,9 @@ public async Task CreateCheck16() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - PointAmount = 8341.0, + PointAmount = 4728.0, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -378,10 +378,10 @@ public async Task CreateCheck17() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - PointAmount = 6307.0, - Description = "yiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ", + PointAmount = 4232.0, + Description = "1kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvR", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -396,11 +396,11 @@ public async Task CreateCheck18() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - PointAmount = 8121.0, + PointAmount = 5863.0, IsOnetime = true, - Description = "TSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqThl0v0Ll", + Description = "fjTir1eeHpnGAvFN5uVHKI7mM3plgJR5", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -415,12 +415,12 @@ public async Task CreateCheck19() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - PointAmount = 4289.0, - UsageLimit = 4524, + PointAmount = 8844.0, + UsageLimit = 6043, IsOnetime = false, - Description = "sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9Yoph", + Description = "wzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -435,13 +435,13 @@ public async Task CreateCheck20() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - PointAmount = 2422.0, - ExpiresAt = "2018-04-24T13:32:37.000000+09:00", - UsageLimit = 4940, + PointAmount = 5779.0, + ExpiresAt = "2021-08-19T06:24:40.000000Z", + UsageLimit = 6812, IsOnetime = false, - Description = "EzRt6XTR3oDpLSuhWGSp4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse", + Description = "KDvZ2PuoFKU33PYYZTEIyRn", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -456,14 +456,14 @@ public async Task CreateCheck21() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - PointAmount = 8451.0, - PointExpiresAt = "2022-12-01T23:30:23.000000+09:00", - ExpiresAt = "2024-01-06T14:40:00.000000+09:00", - UsageLimit = 3743, + PointAmount = 7103.0, + PointExpiresAt = "2022-04-14T03:54:12.000000Z", + ExpiresAt = "2023-11-18T08:53:29.000000Z", + UsageLimit = 8965, IsOnetime = false, - Description = "VvpXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDz", + Description = "mm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLm", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -478,15 +478,15 @@ public async Task CreateCheck22() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - PointAmount = 8214.0, - PointExpiresInDays = 2808, - PointExpiresAt = "2015-10-22T23:06:23.000000+09:00", - ExpiresAt = "2017-11-30T09:17:57.000000+09:00", - UsageLimit = 6162, + PointAmount = 9717.0, + PointExpiresInDays = 8378, + PointExpiresAt = "2022-01-29T08:19:17.000000Z", + ExpiresAt = "2020-01-09T22:54:37.000000Z", + UsageLimit = 2484, IsOnetime = false, - Description = "XHiF5C2aKJupg0Hph0EUCWBeCDLYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQ", + Description = "TQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvg", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -501,16 +501,16 @@ public async Task CreateCheck23() { try { Request.CreateCheck request = new Request.CreateCheck( - "e79cf556-c5f1-4fa2-b031-0a1cb1224fd9" + "daf2d002-f16e-4d5c-81f5-532f11a3f3f2" ) { - PointAmount = 2813.0, - BearPointAccount = "c9ee3763-f406-4861-bc88-03fb02e807ff", - PointExpiresInDays = 8168, - PointExpiresAt = "2019-03-15T04:53:23.000000+09:00", - ExpiresAt = "2020-06-17T13:20:31.000000+09:00", - UsageLimit = 9916, - IsOnetime = true, - Description = "8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZIC", + PointAmount = 5112.0, + BearPointAccount = "3b5cf612-fb24-4648-ba09-81a28c59f07a", + PointExpiresInDays = 2879, + PointExpiresAt = "2020-05-16T22:29:02.000000Z", + ExpiresAt = "2020-03-08T04:01:31.000000Z", + UsageLimit = 8140, + IsOnetime = false, + Description = "gPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnf", }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateCoupon.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateCoupon.cs index d5cfdb5..502cafe 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCoupon.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCoupon.cs @@ -25,13 +25,13 @@ public async Task CreateCoupon0() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 2602, + DiscountAmount = 5887, }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -46,14 +46,14 @@ public async Task CreateCoupon1() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 8787, - StorageId = "66b2a4d9-5fb4-41ae-b23d-f04009640174", + DiscountAmount = 2355, + StorageId = "be475e1f-f3f9-44b8-9749-b7f478fe0ac3", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -68,15 +68,15 @@ public async Task CreateCoupon2() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 7372, - MinAmount = 4681, - StorageId = "6a5a0468-d8dd-45d4-b3d1-47f491c2f222", + DiscountAmount = 5177, + MinAmount = 8066, + StorageId = "8e954ed6-a859-4b94-a280-5310e78a1060", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -91,16 +91,16 @@ public async Task CreateCoupon3() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 1638, - UsageLimit = 2336, - MinAmount = 590, - StorageId = "27092927-0e6c-4948-bcce-72d522c5656c", + DiscountAmount = 615, + UsageLimit = 6537, + MinAmount = 1811, + StorageId = "ad351f28-6079-42e4-85e1-256c69d8c247", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -115,17 +115,17 @@ public async Task CreateCoupon4() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 9737, - Code = "xPCHvPH", - UsageLimit = 3173, - MinAmount = 180, - StorageId = "7333752f-c767-4e90-8600-3e016b0aba2c", + DiscountAmount = 8507, + Code = "6qE4T1vO", + UsageLimit = 6603, + MinAmount = 6541, + StorageId = "5854cf41-fa1e-4834-8977-7aa5242f0104", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -140,18 +140,18 @@ public async Task CreateCoupon5() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 6026, - IsPublic = true, - Code = "CJRD8", - UsageLimit = 3255, - MinAmount = 4806, - StorageId = "a399c7b5-773a-4d9a-9a1d-c8cf478f835b", + DiscountAmount = 8787, + IsPublic = false, + Code = "gi", + UsageLimit = 2057, + MinAmount = 2858, + StorageId = "d6c4b46a-25d7-4d08-9279-2ca9b40588f8", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -166,19 +166,19 @@ public async Task CreateCoupon6() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 7027, + DiscountAmount = 3608, IsHidden = false, - IsPublic = true, - Code = "m", - UsageLimit = 5119, - MinAmount = 838, - StorageId = "6a8914d5-839c-4762-9e09-5576594e774e", + IsPublic = false, + Code = "ekV8cI", + UsageLimit = 477, + MinAmount = 5316, + StorageId = "e2cb1bdb-265b-452f-9430-c9a029af4c5e", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -193,20 +193,20 @@ public async Task CreateCoupon7() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 1624, - IsDisabled = false, - IsHidden = false, - IsPublic = true, - Code = "S", - UsageLimit = 920, - MinAmount = 7953, - StorageId = "c08c5b69-5ac4-44de-99a6-24a1559bf6ae", + DiscountAmount = 4762, + IsDisabled = true, + IsHidden = true, + IsPublic = false, + Code = "8h8evW68NK", + UsageLimit = 1776, + MinAmount = 3221, + StorageId = "a2ee087f-c55e-4c64-ab0b-9471fa211a30", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -221,21 +221,21 @@ public async Task CreateCoupon8() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 6877, - DisplayEndsAt = "2023-12-09T12:15:34.000000+09:00", + DiscountAmount = 6224, + DisplayEndsAt = "2021-09-15T04:42:53.000000Z", IsDisabled = false, - IsHidden = true, + IsHidden = false, IsPublic = true, - Code = "AP", - UsageLimit = 1133, - MinAmount = 3527, - StorageId = "a1635e73-7548-4898-b038-e8c544404790", + Code = "o6iR", + UsageLimit = 6922, + MinAmount = 8020, + StorageId = "634603de-a741-450b-88f0-e1237598b70b", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -250,22 +250,22 @@ public async Task CreateCoupon9() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 2626, - DisplayStartsAt = "2025-01-07T11:29:04.000000+09:00", - DisplayEndsAt = "2021-01-19T15:13:40.000000+09:00", - IsDisabled = false, - IsHidden = true, + DiscountAmount = 1797, + DisplayStartsAt = "2021-04-05T13:18:21.000000Z", + DisplayEndsAt = "2022-04-02T23:15:26.000000Z", + IsDisabled = true, + IsHidden = false, IsPublic = true, - Code = "J", - UsageLimit = 4857, - MinAmount = 4484, - StorageId = "3e07b270-aec9-4a10-84b4-42b29be9395e", + Code = "TXOxFwqhkp", + UsageLimit = 7770, + MinAmount = 6358, + StorageId = "194600a2-bb96-4c61-8468-100a21e1c3f0", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -280,23 +280,23 @@ public async Task CreateCoupon10() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 1865, - DiscountUpperLimit = 4078, - DisplayStartsAt = "2015-10-22T04:44:03.000000+09:00", - DisplayEndsAt = "2024-03-05T11:46:30.000000+09:00", - IsDisabled = false, - IsHidden = true, - IsPublic = false, - Code = "56VL", - UsageLimit = 3947, - MinAmount = 2455, - StorageId = "99aa0dce-cdf9-46c5-899d-b685c33ea991", + DiscountAmount = 7750, + DiscountUpperLimit = 3100, + DisplayStartsAt = "2020-07-12T09:55:31.000000Z", + DisplayEndsAt = "2020-06-18T03:03:23.000000Z", + IsDisabled = true, + IsHidden = false, + IsPublic = true, + Code = "p5bfKVt9D", + UsageLimit = 1488, + MinAmount = 2085, + StorageId = "9ad990d6-defa-4f56-80b6-6c9db1029295", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -311,24 +311,24 @@ public async Task CreateCoupon11() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 9813, - Description = "lWSa6lZGo7PhTYTGs3X1TO4wzYkyXyy6lwP0N21ySbpkemDM3awKQy2zT4JKnzi5L8cpHHMwXcAIRcjNLk0u", - DiscountUpperLimit = 4746, - DisplayStartsAt = "2020-01-01T09:03:32.000000+09:00", - DisplayEndsAt = "2018-02-17T09:21:53.000000+09:00", + DiscountAmount = 374, + Description = "yI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYu", + DiscountUpperLimit = 3253, + DisplayStartsAt = "2022-01-17T11:30:12.000000Z", + DisplayEndsAt = "2020-02-02T19:16:06.000000Z", IsDisabled = true, - IsHidden = true, - IsPublic = false, - Code = "NHUqo", - UsageLimit = 6963, - MinAmount = 7000, - StorageId = "5c6290d5-3792-4c5e-8e1c-f363689a6993", + IsHidden = false, + IsPublic = true, + Code = "n8lh", + UsageLimit = 1339, + MinAmount = 1865, + StorageId = "ab264084-1055-49a0-a30d-307e9ab05a67", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -343,15 +343,15 @@ public async Task CreateCoupon12() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 8367, - IsShopSpecified = false, - AvailableShopIds = new string[]{"215390d3-8bb2-4eae-9602-3c3adf181573", "7400f35a-22d3-44b4-8c6a-589bde5482b4", "0c86d047-0deb-4244-89be-331807578cb0"}, + DiscountAmount = 7369, + IsShopSpecified = true, + AvailableShopIds = new string[]{"aeb859b0-cfae-446f-8e60-a0885720cc84", "b6f0068a-70a8-4555-9234-0e082de60bfd", "4797d3bb-6924-4512-80a4-b11bfffb57da", "054c1ef4-990e-48da-91da-d6cf389cc0e2", "657156c8-059d-43a6-ad64-a97275646730", "ce24fd00-247b-4fce-8207-2836adcfaf94", "5b631576-4ff9-41ec-a009-7e1c53d3927d", "28cb5c94-0c0c-4aee-ac5e-fada8c446052", "398df768-72c7-43a1-a4c4-014d8dabcd02", "f3c9e73b-74f8-4703-82aa-86f54c8abfea"}, }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -366,16 +366,16 @@ public async Task CreateCoupon13() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 8943, - IsShopSpecified = true, - AvailableShopIds = new string[]{"e0688552-48c4-42f4-a8c2-b48c9372caca", "40ce3c78-b792-4888-a0f6-5062a4a09831", "bf09d5b1-fa66-4e6d-a5fe-b3c0a48826fc", "f18bfe14-7c58-4bae-a117-a4c1c7a0f4ce", "db172a59-f74d-4866-a634-f01ac58dab1f", "192c386c-1166-4452-9d90-faf21b211a9c", "3ad19606-9ce0-4c05-9e7e-e1c67276b2a1", "50c40623-138f-4d53-87c4-fc32c48f82ae"}, - StorageId = "c2cff447-3255-4bad-afbe-4e30b03cb5d5", + DiscountAmount = 9231, + IsShopSpecified = false, + AvailableShopIds = new string[]{"14352341-1522-45b7-ad65-32a2a431bd92", "4311e0a5-8cc4-452b-9b2a-09a65d3eac3d", "af629f84-ffcf-4403-81ab-d003c5759a98", "f25ab157-7cab-4a11-a5af-7aef734c8015", "ccbbf4c4-eaf0-4465-93c6-3bdf84ce1ee0", "2152fa0b-1036-4803-b6e3-f453400bb3f9", "319ef67b-b41b-40e7-9c31-4cce8fac1e39", "146e7b91-e870-4d94-ac78-ca37bd64587c", "7f97ce2f-3dea-4019-9c6a-6cc8f65646cb"}, + StorageId = "40b2b7a0-1531-4545-96fb-2631261b8750", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -390,17 +390,17 @@ public async Task CreateCoupon14() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 1456, + DiscountAmount = 8533, IsShopSpecified = false, - AvailableShopIds = new string[]{"96f07bd3-61ac-4a41-98a3-9488bce03c7b", "4ffd23b1-5bd1-4b0e-8bbf-30bf43a1ae97", "93d4bd22-dd1b-4738-b9f3-610fa77b0af3", "c9bc240f-8c43-4db5-8062-7770af073b58", "6b1122f7-495e-4c8f-8181-0a6fa539aa2c", "3f2341ea-9831-43b3-b6b0-e5116b3b29aa", "942fef54-edcc-4697-aeb4-adf8fcb3d096", "65b16bfe-5386-40e6-bc04-e96b122cd7da", "0720f074-3197-431b-87cb-aa6dd12c46e3"}, - MinAmount = 1384, - StorageId = "74bb9a3f-b296-46dd-89a6-ef108c5f07b1", + AvailableShopIds = new string[]{"6a264609-5e2b-4175-967f-0ffab378b03a", "8d34de8f-67fc-4792-a40d-62542ca59b80", "03573026-6816-445b-a0a1-15b2ee307e06", "15eb5690-31be-4a59-9656-7c3b8047dbce", "1613d2a1-d667-420b-9d5d-a96b141ed168", "7843dec7-5c5b-423e-897e-f8e9b28173cf", "221091e1-d024-494a-966b-b5b8597d6512", "69be73a4-3023-4d27-8857-255713274b9f", "66188be2-f3d8-4c4f-9e92-5c4df788de73", "a4e113f9-bc1a-44cd-8cde-f2d6d2fa8a90"}, + MinAmount = 5122, + StorageId = "e2a1890b-32a3-4a91-a81b-e89171f35dcc", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -415,18 +415,18 @@ public async Task CreateCoupon15() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 2885, - IsShopSpecified = false, - AvailableShopIds = new string[]{"ba6a0534-8f4d-430f-9a35-3ffb65fb79b1", "dc1b4a72-6ce2-400e-8d3c-de9dfc8f5846", "a94664d5-2bd5-4b31-8d60-7feaab24e5d6", "84c89d6c-fa47-4561-b852-e2e3209f5e19", "03090fe0-d38e-49cf-9b87-62361714f97d", "4f78871e-a5ae-452d-9081-793f21f689f7"}, - UsageLimit = 1061, - MinAmount = 299, - StorageId = "10941edc-4921-4343-8dbc-9f1a473593ba", + DiscountAmount = 4401, + IsShopSpecified = true, + AvailableShopIds = new string[]{"e8daf159-ac0f-4830-a85f-639b908a2646", "83f0ff3e-8f13-4a26-897a-b78d46c24eaa", "4f431e0b-782f-4ed6-87e0-1504196c1490", "dc60e31b-0eab-4af1-8fcb-e5c657e5156f", "d7a3fe55-3833-4217-b893-84ca3202aace", "b7533690-eb4b-4360-ad75-4d7fae2206e1", "19b6bf44-f4f2-43a2-9e34-cd3f8836d5e3", "7b41a313-9d80-4b2a-bd7e-222c471f01a0", "d8b394cd-8153-40ab-8108-a400d7d95667", "c7be4dc8-42c4-4a14-8140-586cec7d39cc"}, + UsageLimit = 6034, + MinAmount = 2830, + StorageId = "1d001a50-ea36-42cc-af1a-6b11f68f5d07", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -441,19 +441,19 @@ public async Task CreateCoupon16() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 6272, - IsShopSpecified = false, - AvailableShopIds = new string[]{"c2b8b1b9-4f20-43bd-856a-d561614be59f", "68eafeb3-3785-427c-9c63-2d8170eab18d", "7fd6401c-3704-405c-858f-c50cd55cbdd6", "14deab1a-7ee8-4302-b75c-23aad209d6e3", "cd62f353-7744-4736-a424-1869697b5011", "65831091-db89-4bc4-897e-7d5191fe7777", "c2d7ff2f-8b70-461b-a8db-e79a79e09db5", "a203ef54-6555-4f19-9dd4-d62d4793facd"}, - Code = "16YqrHAO8r", - UsageLimit = 2671, - MinAmount = 1751, - StorageId = "a6de629a-773c-4d35-8712-969f5b542a99", + DiscountAmount = 7861, + IsShopSpecified = true, + AvailableShopIds = new string[]{"a93a3179-012f-4b53-832a-f7b12d940d94", "30d98b10-d7f6-4237-8804-414c71377bb6", "3ef65e3d-e46c-4a43-8d34-5ef996b2c940", "1a5a5186-589a-4812-b271-00bbeb417ab4"}, + Code = "3mHyvfAo1Z", + UsageLimit = 7065, + MinAmount = 631, + StorageId = "e96c086b-5918-4064-a4b2-3001a1f872c1", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -468,20 +468,20 @@ public async Task CreateCoupon17() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 6117, + DiscountAmount = 6167, IsShopSpecified = true, - AvailableShopIds = new string[]{"90be62c0-0a0e-4b7d-a481-483b1cccaed9", "f4430ff2-d628-4c47-84c3-2b026d4185e6", "9fb0f630-26e9-420b-b478-a314bcdc2a16", "af932118-a53c-4780-9e52-17b152587920", "1eda6159-8ae5-4af5-9ce1-767230188523"}, - IsPublic = true, - Code = "VLqKYaajZ4", - UsageLimit = 2412, - MinAmount = 2482, - StorageId = "adbaba45-1de4-482a-b0f8-b7dd38a61591", + AvailableShopIds = new string[]{"f732fd8b-ff79-444e-b132-85a0883470bc", "d101cbd0-8ad7-439d-b9e5-aed0364c695a", "988b178f-7c48-4687-9f5c-3eb192de26d6"}, + IsPublic = false, + Code = "DlcE5mr", + UsageLimit = 9908, + MinAmount = 8344, + StorageId = "edd9e114-4d49-4aad-bbb9-532d06880809", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -496,21 +496,21 @@ public async Task CreateCoupon18() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 505, + DiscountAmount = 3582, IsShopSpecified = false, - AvailableShopIds = new string[]{"c680015a-7ed7-46e2-8f63-8995e1a9ce0f", "11d8d5d3-dd65-4651-9cd3-5f7f6fce1c53", "db2e8343-2fbd-488a-a506-0208f1851afc", "17753938-6039-40d8-b602-012cf8f97139", "d8a930e3-8d43-41bb-b804-edeb970b20b1", "e6f6ee6c-245c-4a98-adea-65728a02f625"}, - IsHidden = false, - IsPublic = false, - Code = "2", - UsageLimit = 4770, - MinAmount = 2001, - StorageId = "983d8c6e-7880-4938-9e93-80579b8cf456", + AvailableShopIds = new string[]{"e175cad0-74dd-45f1-bf86-e0317118449a", "72ac22eb-356c-4bfe-a58e-987dc5facb29", "e970cad0-7a1a-480f-86d9-e1c9a735bb85", "03a74be9-f7b4-4d7e-a61c-1367a873a25a"}, + IsHidden = true, + IsPublic = true, + Code = "F", + UsageLimit = 9607, + MinAmount = 4994, + StorageId = "0e275e39-db99-4f76-bb5d-ac844cb86720", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -525,22 +525,22 @@ public async Task CreateCoupon19() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 1495, - IsShopSpecified = false, - AvailableShopIds = new string[]{"7df81d3a-29ba-47b4-a570-ff638a7a2ab5", "7fa3984f-fa3b-464a-975b-653acd5a789d", "a7b9424c-a306-4a80-bbed-ec5409ae8d9b", "9a168672-c1b6-4e32-b66f-3c00f29c6134"}, - IsDisabled = true, + DiscountAmount = 6226, + IsShopSpecified = true, + AvailableShopIds = new string[]{"e3e4242c-9d8d-4c94-84a5-c75584cdb638", "a3dcb9ca-3bb5-4539-9e4f-305bb01b001c", "f84498f4-d4e3-41ef-9feb-243c4bc11f86", "9feb237f-4e1d-4b2b-bea8-b5c5a6cda5df", "27d27a84-f216-42a8-8d4d-38d601024e5e", "23140d9b-985d-4389-a86d-cacb6a3ee0db", "4cef74fa-54b2-4a8b-a97b-6cdb22b0c82c"}, + IsDisabled = false, IsHidden = false, IsPublic = true, - Code = "2rICXA", - UsageLimit = 9668, - MinAmount = 1360, - StorageId = "d7711884-1c5e-4548-b863-18a0bc5b11b5", + Code = "oGU", + UsageLimit = 5553, + MinAmount = 4303, + StorageId = "f4657b8d-1103-44f8-9f81-4a55e26667c0", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -555,23 +555,23 @@ public async Task CreateCoupon20() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 3822, - IsShopSpecified = true, - AvailableShopIds = new string[]{"2b5ba260-4ff8-4745-9c7e-be846dafb3b6", "ac0cd164-1c12-494f-939d-0da5185933fd", "0f4da337-b751-4e62-851e-585c7f035e6b", "c756b10d-cdf2-4c73-b881-ece5a6e5ad46", "dbf4e9dc-8a93-4f93-9c1a-a1aa5afbcf52", "b41796f2-59e4-4f56-b1e7-39acbca6b3d1", "3861f7f8-ac3c-4a0b-a40f-bff590b7973b", "7c2a908c-8579-42c2-b301-36a8cc362524"}, - DisplayEndsAt = "2025-07-20T21:17:22.000000+09:00", + DiscountAmount = 2849, + IsShopSpecified = false, + AvailableShopIds = new string[]{"0357376c-163a-4406-81b7-6a094660d76a", "08f6d53d-1502-456c-9cd7-6e787359ddc0", "9b1fbd99-d9f2-4c66-8394-6a10c8674f45", "5d77d74b-d84d-475f-9182-6738bf14bec6", "7c0274a7-d99e-4643-b3b0-cba871f0518f", "1e17f736-87b2-4b50-8c62-083500584439", "3096f979-ad2d-4366-ba6e-e769b9f4e0f7", "a6286e1a-a71a-4a38-ae5a-0b60ac43cdae", "ba336eaa-c8b7-4c54-b2af-81eafd716822", "3e4557d7-d900-4d68-935e-8fb0ff54fc91"}, + DisplayEndsAt = "2020-06-20T00:24:34.000000Z", IsDisabled = true, IsHidden = false, IsPublic = false, - Code = "Kn8CB", - UsageLimit = 118, - MinAmount = 5749, - StorageId = "23a581d2-7b6f-4227-a140-5adfbe8b7bb1", + Code = "rr7bO", + UsageLimit = 1572, + MinAmount = 6485, + StorageId = "86034266-1a4a-4417-9bee-f97d70258996", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -586,24 +586,24 @@ public async Task CreateCoupon21() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 1935, - IsShopSpecified = false, - AvailableShopIds = new string[]{"3544aef2-5cc0-4e99-92fc-4b04e5cbf95e", "29f5ccd0-d53a-4152-9e1a-26f3e0177203", "a7fc386e-218f-4b66-8e80-fd5098bc751d", "2b0958f3-ced9-44ff-b50d-1f53f111bdb9", "93947bee-b68f-4705-a842-41acc3f6f49b", "6486a74e-8d6f-4bec-ab8a-00195b27c08a", "eb76c2b3-fa9b-4ffc-9c04-ff2f479e8a1e", "8c6a7376-55a3-4d06-beb7-8c604a686bec", "b30278ac-2fd6-491b-bb79-2a743c3a461e"}, - DisplayStartsAt = "2016-01-10T22:10:24.000000+09:00", - DisplayEndsAt = "2021-07-06T21:35:52.000000+09:00", - IsDisabled = false, - IsHidden = true, - IsPublic = false, - Code = "hEuqcV", - UsageLimit = 3438, - MinAmount = 2061, - StorageId = "3b88d4b5-98bb-4d32-b351-624032f2f1b4", + DiscountAmount = 730, + IsShopSpecified = true, + AvailableShopIds = new string[]{"2e16e56f-0267-4878-9365-c143ee94cb9e", "b408127e-a90e-4357-b81f-ad8e80ccf0e2", "d1c4b363-53b4-48a8-b75d-f8eccac7f85d", "92bc7786-5c3d-4fbd-b050-e7b2b796cbc4"}, + DisplayStartsAt = "2020-05-21T00:45:30.000000Z", + DisplayEndsAt = "2023-09-27T14:09:03.000000Z", + IsDisabled = true, + IsHidden = false, + IsPublic = true, + Code = "DSK2", + UsageLimit = 1971, + MinAmount = 6605, + StorageId = "a4e76683-6980-4edd-ab3f-2b38ff753a16", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -618,25 +618,25 @@ public async Task CreateCoupon22() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 1440, - IsShopSpecified = true, - AvailableShopIds = new string[]{"878d93af-efa8-4429-9d84-d5cecda82796"}, - DiscountUpperLimit = 432, - DisplayStartsAt = "2017-06-30T00:15:20.000000+09:00", - DisplayEndsAt = "2017-12-19T12:06:16.000000+09:00", - IsDisabled = true, + DiscountAmount = 9092, + IsShopSpecified = false, + AvailableShopIds = new string[]{"757b9ac3-4bec-4dee-9d28-c030ff79b96e", "4d4efb8a-00e5-4293-b878-50352b484c8d", "caa77ac3-8045-49f7-b57e-a404750c1c12", "9e3df9b8-7633-403c-8a32-72d770a2385f", "ce5efc45-1f42-4069-a9dc-dacf175cd196", "7f542ac6-327b-4c10-b577-7d6e034b0e80", "7c52413f-4187-461b-ad65-ee3b097df35b"}, + DiscountUpperLimit = 1288, + DisplayStartsAt = "2024-02-01T23:55:52.000000Z", + DisplayEndsAt = "2022-06-16T23:20:52.000000Z", + IsDisabled = false, IsHidden = false, IsPublic = true, - Code = "GvFKD", - UsageLimit = 739, - MinAmount = 9101, - StorageId = "59b41081-19fb-4f17-afdd-35be8b92a638", + Code = "H1pqqlIh", + UsageLimit = 7688, + MinAmount = 2304, + StorageId = "eff9f69d-34cb-4beb-924f-b6ee68c7b650", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -651,26 +651,26 @@ public async Task CreateCoupon23() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountAmount = 8711, + DiscountAmount = 3739, IsShopSpecified = true, - AvailableShopIds = new string[]{"49db4160-6ba6-4ac9-8ad3-a3db76ce7f8a", "8ab4f061-9739-42af-9045-0792e890c865", "a04f13e2-e5eb-4a93-a857-1b31a429868d", "7809e19b-2460-44c4-9b40-55144cc63beb"}, - Description = "2wmIfJ50Imwzo4spi93QyENqmwOx8YnV9T8kaR9yxVki0Ybh350uvTmXJ3taiP6zrMBCvrTp2KPzJXVVtSjH7KpG4W7WMlwVoyitMfaSwwyI0wlFPTcSqX1OcJJCpH4abwAvDfIYbVEzwXEzeX76CubBULZ7mvZavHGIwQGFD3y3WQcOQ77GqTbykQNeXwfkirPrCHC", - DiscountUpperLimit = 1462, - DisplayStartsAt = "2016-09-03T16:15:21.000000+09:00", - DisplayEndsAt = "2016-08-31T22:20:32.000000+09:00", + AvailableShopIds = new string[]{"a21ed365-d0b3-4967-88b3-5c4f5a1751f1", "44314f59-c120-4fcd-bc86-367fbd47aa44", "77a55c36-d540-40d9-a737-f91ccd8b502f", "49b3b702-c566-4f1d-aa10-e189b772e76c", "d3e3cbba-506f-4770-8a70-96dcdc5c834c", "68b87730-ef03-4d9f-b684-a8f73e0c8d52", "a71836cf-e7d1-4496-bf5a-1d2b6acfd233", "d8e3a817-4d8e-4e33-a41c-5453a0a2a88a"}, + Description = "51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magR", + DiscountUpperLimit = 4440, + DisplayStartsAt = "2021-11-29T02:34:42.000000Z", + DisplayEndsAt = "2022-05-31T06:28:06.000000Z", IsDisabled = true, IsHidden = false, IsPublic = true, - Code = "WlOvBKR", - UsageLimit = 5291, - MinAmount = 3703, - StorageId = "bfcb5d02-2d4a-4331-9203-e413b143b9c2", + Code = "N1", + UsageLimit = 2481, + MinAmount = 421, + StorageId = "6e51bde4-f77f-4069-a454-254921597d50", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -685,13 +685,13 @@ public async Task CreateCoupon24() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 4909.0, + DiscountPercentage = 7961.0, }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -706,14 +706,14 @@ public async Task CreateCoupon25() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 177.0, - StorageId = "ccb45d58-9ee6-4b30-98f3-02ca1090be3b", + DiscountPercentage = 9549.0, + StorageId = "fda064a7-5e79-4bfc-a326-231c5edf658a", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -728,15 +728,15 @@ public async Task CreateCoupon26() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 3517.0, - MinAmount = 5165, - StorageId = "c399e855-e23e-411a-89ad-328f60a29479", + DiscountPercentage = 2284.0, + MinAmount = 2735, + StorageId = "af42ed24-b7d0-4937-b8d8-214a5287d249", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -751,16 +751,16 @@ public async Task CreateCoupon27() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 4783.0, - UsageLimit = 3029, - MinAmount = 6433, - StorageId = "59645a4e-021f-4580-9084-b3788edb3f03", + DiscountPercentage = 3890.0, + UsageLimit = 9952, + MinAmount = 4966, + StorageId = "35149deb-f3ef-418b-998d-7611adbaff07", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -775,17 +775,17 @@ public async Task CreateCoupon28() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 3781.0, - Code = "n8d7", - UsageLimit = 8784, - MinAmount = 2078, - StorageId = "e6a4f7cf-8adc-465c-b7e6-deb29dfec583", + DiscountPercentage = 7060.0, + Code = "uaeWPZ9", + UsageLimit = 5663, + MinAmount = 5409, + StorageId = "eb89a999-202d-4332-9d12-27cb488fccb6", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -800,18 +800,18 @@ public async Task CreateCoupon29() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 925.0, - IsPublic = false, - Code = "YZgpwkatf", - UsageLimit = 2756, - MinAmount = 4568, - StorageId = "4f4cb108-238d-4068-b685-81f768a0d56a", + DiscountPercentage = 8794.0, + IsPublic = true, + Code = "1zTkBm", + UsageLimit = 8190, + MinAmount = 3281, + StorageId = "b0d3005b-4ffb-4409-bff3-e055d340694a", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -826,19 +826,19 @@ public async Task CreateCoupon30() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 7779.0, - IsHidden = true, + DiscountPercentage = 3167.0, + IsHidden = false, IsPublic = true, - Code = "gPgh", - UsageLimit = 5903, - MinAmount = 7020, - StorageId = "5fceab59-8843-4fa6-b173-326f80bdbdf4", + Code = "79pUjuQLW", + UsageLimit = 6154, + MinAmount = 4554, + StorageId = "0fa512d1-9515-4ac1-88ec-fce3225aea29", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -853,20 +853,20 @@ public async Task CreateCoupon31() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 4107.0, - IsDisabled = true, - IsHidden = false, + DiscountPercentage = 2224.0, + IsDisabled = false, + IsHidden = true, IsPublic = false, - Code = "hNzacM", - UsageLimit = 2579, - MinAmount = 7760, - StorageId = "a28fc747-208e-4852-9724-9a39180072bb", + Code = "fIBEGWMOe", + UsageLimit = 6539, + MinAmount = 8342, + StorageId = "5bde6687-5f8c-4efb-96fe-907a56916a8a", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -881,21 +881,21 @@ public async Task CreateCoupon32() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 984.0, - DisplayEndsAt = "2024-05-05T04:46:32.000000+09:00", + DiscountPercentage = 7542.0, + DisplayEndsAt = "2021-11-04T16:20:23.000000Z", IsDisabled = false, - IsHidden = true, + IsHidden = false, IsPublic = false, - Code = "LKH2dLAX", - UsageLimit = 2698, - MinAmount = 4976, - StorageId = "b9293d7d-06a4-4d6c-9916-d4fb5999a5c1", + Code = "f46VZC1gRO", + UsageLimit = 8119, + MinAmount = 7551, + StorageId = "b431fa85-9887-43f9-bcdb-8bc4de099877", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -910,22 +910,22 @@ public async Task CreateCoupon33() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 2220.0, - DisplayStartsAt = "2019-11-25T03:07:34.000000+09:00", - DisplayEndsAt = "2017-03-28T20:52:41.000000+09:00", + DiscountPercentage = 6135.0, + DisplayStartsAt = "2022-02-14T00:49:50.000000Z", + DisplayEndsAt = "2021-05-19T14:59:28.000000Z", IsDisabled = false, - IsHidden = true, - IsPublic = true, - Code = "KjPvdUw", - UsageLimit = 5469, - MinAmount = 3543, - StorageId = "64b1d664-49da-46e8-b0cc-5a387eb0aff1", + IsHidden = false, + IsPublic = false, + Code = "r", + UsageLimit = 326, + MinAmount = 2796, + StorageId = "3e5abddd-282f-4612-9b28-1bb05661efbe", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -940,23 +940,23 @@ public async Task CreateCoupon34() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 9518.0, - DiscountUpperLimit = 1995, - DisplayStartsAt = "2015-12-15T21:54:19.000000+09:00", - DisplayEndsAt = "2022-07-23T03:32:20.000000+09:00", + DiscountPercentage = 4408.0, + DiscountUpperLimit = 7777, + DisplayStartsAt = "2022-12-18T11:53:07.000000Z", + DisplayEndsAt = "2023-12-27T21:12:28.000000Z", IsDisabled = true, IsHidden = true, IsPublic = true, - Code = "4Tq0PqVhzC", - UsageLimit = 2336, - MinAmount = 3295, - StorageId = "e4ef59bd-19fe-4921-bb26-6beb9e8fb0bf", + Code = "qydMn", + UsageLimit = 3684, + MinAmount = 3115, + StorageId = "c761280a-09a5-4489-a7a8-ae3cee2dc6e0", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -971,24 +971,24 @@ public async Task CreateCoupon35() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 2732.0, - Description = "OCStDoZvAY3OKa5oCE4xLFobA9UOrBeN520IjUnvAonmJrl0Qqm11RMoDMOSwDGwLJ7XtGOGgKQwzAg5IknDwgdQyyCPmcszk1DSduCpdgUz5UizzupfDUVzOTa3MaAaf4kTfREjRbk7TIk1gephK43IsijpvrzedeO1cdtY9cqUS5AzQzHdKGL1guEaRrfiOPX45f7SdsQcMHW7he8", - DiscountUpperLimit = 8358, - DisplayStartsAt = "2021-02-12T11:21:44.000000+09:00", - DisplayEndsAt = "2019-07-08T00:48:28.000000+09:00", - IsDisabled = true, + DiscountPercentage = 2106.0, + Description = "sD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEe", + DiscountUpperLimit = 1336, + DisplayStartsAt = "2020-09-14T07:21:18.000000Z", + DisplayEndsAt = "2023-06-01T20:38:59.000000Z", + IsDisabled = false, IsHidden = true, IsPublic = false, - Code = "u", - UsageLimit = 8953, - MinAmount = 2297, - StorageId = "76da6545-0b03-4209-8ab0-1b32ff199b4d", + Code = "oSB", + UsageLimit = 5890, + MinAmount = 7047, + StorageId = "49dab42c-3348-492d-bc93-adbcdd2caee5", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1003,15 +1003,15 @@ public async Task CreateCoupon36() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 6584.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"620fef84-444e-45f4-95cb-a50b00101c98", "e370e4e6-fef0-4472-88f0-bdc7a373e7e1", "a846f2d6-c3e3-4043-9689-d1fbf4334d4f", "7ddd07c5-2e1a-4d8d-aee5-2592ff2093d7", "fe0d0085-d59f-458f-a221-89b72576dd11"}, + DiscountPercentage = 8998.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"e926cede-9074-4e3d-be47-88e831f7ba96", "1ec55f27-dcc6-4b67-bb85-ff4a3a5d3c22", "76bb3bad-e5e4-49f8-88dd-c26c12486a73", "c22019eb-c167-4967-b64c-b3a645c3184d", "1969a8b7-d089-4b7f-8489-ae4833196868", "8880ff57-fd49-47d1-b286-b261e8e8645c"}, }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1026,16 +1026,16 @@ public async Task CreateCoupon37() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 1552.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"bb29de88-d104-4b25-9bd1-caa5260888c9", "a1d65433-b271-4538-969b-b7f1ac31d573", "1d50aa8e-31ec-4575-aa78-83462daea39f", "8f0061b3-23ba-48af-ae09-ede047564bdf"}, - StorageId = "09f4500e-c398-4fb4-8a85-b11536d74b5b", + DiscountPercentage = 2070.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"a6c160b7-4515-4070-97bc-4d9e04b70235", "5b3b93a6-0bf4-4f88-8cbd-84c43d001682", "21b46bd3-82cc-4733-9c3e-20fe32359a98", "32829cae-a545-477c-907f-dd59b53c32fb", "1e68af05-3a58-4376-98dc-e84d0fc9be2b", "ec37eb8f-15d8-4364-acfc-b74970ad2558", "33814ddc-7d06-4ff8-9fc7-14c1e72f9b7b", "011c5838-a93c-4c65-bb4f-dd11b8312089"}, + StorageId = "49b22993-7d74-43be-9d64-f5c436dbbe67", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1050,17 +1050,17 @@ public async Task CreateCoupon38() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 2871.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"2b472792-33d6-4f2c-9b90-04ab43e300ac", "c2181766-f470-4819-b3f6-4b52532a54a4", "ae5e1f4a-c20d-43cc-8cee-e2d3581da220", "eb498fe7-087e-49e9-8cd0-9d6a7cf7b50e", "851c72ee-4a63-4a91-b481-f7001228c46b", "e66d519e-d5d1-4860-bc30-ba01bc82c5c8", "c65df381-e8e4-447b-b92a-69541d715eef", "6b19799c-9bf2-452f-b50b-f5840a618ebb"}, - MinAmount = 5212, - StorageId = "e52874ad-90ac-432e-b336-d01654054b58", + DiscountPercentage = 2824.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"69ac7627-42dd-48de-9a3d-3c143aa0ec1c"}, + MinAmount = 6518, + StorageId = "6ea37fbe-d076-400e-b360-fc5525a9ae7a", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1075,18 +1075,18 @@ public async Task CreateCoupon39() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 1999.0, + DiscountPercentage = 8057.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"98be3356-86cd-43b3-9c58-2ca9a7c69fa0", "5108f958-72a4-429d-8fd1-a63372411374", "66b57047-9be9-4db0-a9c3-e74a9fb1af48", "9c87e4b7-1617-4656-8d67-19dc39211c6b", "20e5e35a-9d56-496b-864d-0be1aafcca8d", "a4430e97-e6cf-4008-b813-932b63649e43"}, - UsageLimit = 5634, - MinAmount = 1549, - StorageId = "4371e396-84d1-46b0-8aad-75c9affbc53a", + AvailableShopIds = new string[]{"f2619f98-688a-447d-aaeb-325027b300d0", "9dbdfee5-7bcc-4a33-91df-e25386354a22", "44ff5ae5-4248-42a2-ac73-b43eda88e901", "10bb385e-0b3d-4c0b-a0fa-2d4b7a84ce61", "d2d55b9c-dbec-45b8-954a-b32bfc8c4337", "6704b400-a16d-4e5f-b6ea-9b89404b4554", "d44effc6-43bb-4755-b077-6ad72abb12fc", "ace5ccc1-8dcd-4505-bff5-66a86e5b1db8", "8be34139-750a-496d-84b0-acbfd026f388"}, + UsageLimit = 7764, + MinAmount = 8458, + StorageId = "754736bd-c6f8-4e5c-ae25-d3d7a05bbfa2", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1101,19 +1101,19 @@ public async Task CreateCoupon40() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 9748.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{}, - Code = "1H9R", - UsageLimit = 4747, - MinAmount = 1645, - StorageId = "eebf9268-6fb1-4dfe-9d5c-53211658b53a", + DiscountPercentage = 1795.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"9be7f5d1-fc80-4d55-9379-6c98cb700fd7", "f9549461-e256-4ae7-820b-f0612d119b4c"}, + Code = "MWptjgf0", + UsageLimit = 966, + MinAmount = 8041, + StorageId = "d9aea15a-31da-4b03-8493-0c601fa20991", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1128,20 +1128,20 @@ public async Task CreateCoupon41() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 7193.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"59aca549-a005-4826-9795-5a38b20a19aa", "c522a38c-25ba-4d3e-bf9e-d214eaf3b3ce", "b6f42991-95c6-4b20-adec-292368703b7c", "7995ba7f-80dd-4e8a-b6f2-1c114fa42bec", "8161c08e-c64d-48f6-8e0b-0404e8f87a9a", "1935254c-f09a-4677-92c5-4d12db528cf3", "9c06d36e-c062-47ce-8b54-e0535f7d5db2", "a5eec468-90b7-4703-b547-e7466727fa99"}, + DiscountPercentage = 1243.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"73f83ac5-c04f-45b2-bcfb-7050cc7526da", "0bdca3ad-03dc-40c1-a0b9-68e29a6de9e9", "18d9c289-baef-4484-912b-6e5fc1e4d7cd", "22906b88-0350-4247-9331-9f2b24ffac94", "450483c5-83b8-4bb1-ae6a-ce96e9939a2c", "1b9d918b-cac3-41c1-a0d2-29fd77437129", "45ab5b60-a95c-46d8-bce2-716b36a133b7"}, IsPublic = false, - Code = "UpjoAlQvJ", - UsageLimit = 4382, - MinAmount = 5123, - StorageId = "465a72c3-373c-4255-bc38-f3c947363dfc", + Code = "17C", + UsageLimit = 5458, + MinAmount = 1500, + StorageId = "b28af5af-9a46-42b6-8c79-980cc6cd1f4d", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1156,21 +1156,21 @@ public async Task CreateCoupon42() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 6759.0, + DiscountPercentage = 4600.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"ae236389-055e-4c51-bee6-73ee824f2bd0", "1f9090a3-83be-4e95-a7e2-c1349c951e02", "b12618aa-a47f-4854-b4e0-dd80cf0bb8c4", "1a21622f-2a1e-4445-946b-7be771307850", "9c662e84-df4c-45ac-9d3e-d1c406238ab0", "d5945f98-d418-4cf8-98da-d424c343bca8", "8600a1cd-6e64-4d35-b98a-70981de2c7ea", "a6d60d27-21de-40a2-ae48-7174e80caae9", "4ede8226-5550-4c7a-9b86-48cbce3c3881"}, + AvailableShopIds = new string[]{"606192c2-c841-470f-9aa6-fff8ece17406", "c7a869af-9010-442c-8e3b-1d83cdaea6f2", "992a2241-8d9e-49d3-846a-2ddbfd0255b9", "41531856-02c7-4d7b-b2b6-d9f28a0ac851", "4f216c15-1ebe-4ed7-852b-a766361f40ac", "2150c145-bd28-42d0-bb01-eb37dc2a7773", "2afcef97-e396-47b2-a619-e9b75626559d", "fe828b66-42b5-45f2-8a54-91a03c604534"}, IsHidden = false, - IsPublic = true, - Code = "9uB", - UsageLimit = 958, - MinAmount = 9261, - StorageId = "0669b56b-d749-480c-a80e-26dcd73a9a38", + IsPublic = false, + Code = "2Cz81XNouc", + UsageLimit = 1665, + MinAmount = 9615, + StorageId = "939209e2-1c45-48a9-88f0-db8fd62e7f87", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1185,22 +1185,22 @@ public async Task CreateCoupon43() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 5401.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"7873f0ff-5371-4a73-9401-2777fed2bad5", "b6fb04f1-0639-45fb-8e2b-1e854298d44d", "e1b9dcc9-218d-424d-a464-ee7c94bf00b1", "97987ef6-477b-42b5-b0f4-d403175441fb", "1c5fdd13-6712-452f-85e9-324b8a0dba35", "39f5c456-22fd-4d2d-8055-ddb88c867d8c"}, + DiscountPercentage = 3832.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"1c3722c6-fa2f-4a5c-afd8-5f23c60a500f", "4c56c0b7-012d-44d0-88af-dd440b482109", "82a7e1e7-4d98-4b2d-a772-eafa695c876e", "72cc23ce-0757-4f8a-8256-02097379a4b0"}, IsDisabled = false, - IsHidden = true, + IsHidden = false, IsPublic = true, - Code = "Z", - UsageLimit = 2790, - MinAmount = 8436, - StorageId = "305e81c4-dc8c-4d5d-8058-8affa399d2d9", + Code = "BBTTp6AGpM", + UsageLimit = 4878, + MinAmount = 5581, + StorageId = "35039622-eaa3-4ae0-8f9d-0e3e8a4c09cf", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1215,23 +1215,23 @@ public async Task CreateCoupon44() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 3129.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"b8ffb88f-03ac-4432-9ab1-f1aca5cc40af", "496fa7ba-56ba-489e-bfa5-9d4c7c935239", "5d7baae9-40c3-498a-975b-9d9981895803", "1822d01c-55da-483f-9b97-ffc41175de3b", "4dbf7ae7-dc1f-4bcf-8818-38f62f2b24ad"}, - DisplayEndsAt = "2021-05-29T11:55:24.000000+09:00", - IsDisabled = false, - IsHidden = false, + DiscountPercentage = 4254.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"b0fe2133-5ce2-4774-8048-daad4fb5bf59", "eb4bfca3-6f9c-4617-87e9-f5aa038b2dc2"}, + DisplayEndsAt = "2021-08-10T20:48:40.000000Z", + IsDisabled = true, + IsHidden = true, IsPublic = true, - Code = "bKA9", - UsageLimit = 8620, - MinAmount = 7707, - StorageId = "6e87947a-87c0-4b08-8e3d-6907a6e8c9e1", + Code = "al", + UsageLimit = 8194, + MinAmount = 7029, + StorageId = "1662b1b6-af03-429c-8012-789e3c0c4263", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1246,24 +1246,24 @@ public async Task CreateCoupon45() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 1600.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"cdb499ee-62f2-4650-9ded-fbe763943618", "880ba8bf-f3e3-4869-b147-84c0fd97e378", "2f68b968-7047-4b04-957f-3025e3c3e82d", "40bc3ef3-229e-4cb6-9a9b-c725664944da", "d91d4c93-52de-4dde-a0dd-5f8792c2dfee", "746d29a9-2181-45cd-b99d-5d1dff269704", "804fad4d-bee0-4151-afde-7cc39f40646c", "4e8b9c88-04c0-4182-84e0-fa5320aa354b", "e79d79b7-3c2d-4215-8b52-2eaec224b89e"}, - DisplayStartsAt = "2016-07-09T07:18:16.000000+09:00", - DisplayEndsAt = "2024-10-14T01:58:31.000000+09:00", - IsDisabled = false, - IsHidden = false, - IsPublic = true, - Code = "MYtB6E", - UsageLimit = 4080, - MinAmount = 3890, - StorageId = "b813b7a2-b5dd-45c7-aec4-d910aae616a3", + DiscountPercentage = 360.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"a369adc4-0317-4bd6-b220-18d0eb4a55e3", "08abf01a-b1ea-4a0d-940c-8bdca1423ca4", "bdc0f29e-7601-43b2-a3f4-76913c8e20f6"}, + DisplayStartsAt = "2022-05-03T00:48:45.000000Z", + DisplayEndsAt = "2022-07-29T04:38:50.000000Z", + IsDisabled = true, + IsHidden = true, + IsPublic = false, + Code = "uG53qZW", + UsageLimit = 3328, + MinAmount = 1658, + StorageId = "8d68c302-5210-4ea0-8721-b113b98f6eef", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1278,25 +1278,25 @@ public async Task CreateCoupon46() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 9885.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{}, - DiscountUpperLimit = 868, - DisplayStartsAt = "2025-03-22T05:11:04.000000+09:00", - DisplayEndsAt = "2024-05-04T05:47:30.000000+09:00", - IsDisabled = false, - IsHidden = true, + DiscountPercentage = 6944.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"36a6f82a-b023-4175-8075-f54278575cdd", "e63fda58-b3b6-41a1-8cfd-e2dc465eedd5", "7d744ad5-4b5f-4f8c-a0d5-b3c2f4507fc5", "fdd6f8ce-d1fa-48bf-b952-caa6838cc431", "c997380a-2538-409c-b2ce-b60f3f1618d1", "d1727302-c76a-4c54-81bb-fbd259de9f78", "c4714663-ddcb-475f-89bf-acd7c943f0e3", "c3451d24-92e2-4208-8920-4a31932f18ee", "811b8379-4fcc-4dcc-9688-30c9160693ad"}, + DiscountUpperLimit = 5799, + DisplayStartsAt = "2020-08-15T06:31:23.000000Z", + DisplayEndsAt = "2023-05-22T07:07:16.000000Z", + IsDisabled = true, + IsHidden = false, IsPublic = true, - Code = "h5V", - UsageLimit = 4692, - MinAmount = 9746, - StorageId = "3a47883b-ecd6-443c-b587-a7cd8b1fbdca", + Code = "PKIYR", + UsageLimit = 7361, + MinAmount = 4972, + StorageId = "c4afa331-685d-4955-8375-0ddc9ccdf993", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1311,26 +1311,26 @@ public async Task CreateCoupon47() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "34632f7b-877a-4850-9a6c-07a40e8922c3", - "r68wDPzP1uu5pUlr0e255", - "2017-10-17T19:24:27.000000+09:00", - "2019-03-03T14:08:18.000000+09:00", - "7e222f82-d1fb-48b7-9c59-a7fdbe7ed696" + "901ca15e-13ad-4082-bb64-8a93ee34f22c", + "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", + "2021-01-02T06:39:44.000000Z", + "2021-06-09T15:15:05.000000Z", + "a2034002-634b-4989-9a5b-9213447539bd" ) { - DiscountPercentage = 6481.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"aec429d2-6108-4d92-bec2-a74df22f9c37", "b12af5a8-c81e-44c7-b86a-12b047c5089e"}, - Description = "0YInJitv9WP6kwxoiXMMFgIG6MJKNbnVL", - DiscountUpperLimit = 6127, - DisplayStartsAt = "2024-08-23T19:41:41.000000+09:00", - DisplayEndsAt = "2023-05-08T14:11:49.000000+09:00", - IsDisabled = false, - IsHidden = true, + DiscountPercentage = 9681.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"700af5e3-ddd7-4b67-9846-2f6ca99c995b", "ee279551-dcf2-4b94-9ec7-8a2f3e83bc2d", "23746f5b-a15c-4de4-9bd2-6e8f6939c371", "ee21a37f-b22d-4856-a433-42c386afe982", "c7c944fd-9649-4996-acc5-f8b359a968a0", "9127d928-3be0-46ab-a4a5-c24ffbe3d5ac", "55a1cbb8-c8c8-4e92-a47d-eae9453d1f81", "be39fdaf-5840-482f-a8b7-7c2b4efba1d0", "87c07719-7129-4f83-8ae1-27ff5b05fb28", "c642fe5d-b701-4579-82d4-8ab567c9ee3e"}, + Description = "IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokX", + DiscountUpperLimit = 4816, + DisplayStartsAt = "2022-03-02T22:41:12.000000Z", + DisplayEndsAt = "2022-06-01T20:56:17.000000Z", + IsDisabled = true, + IsHidden = false, IsPublic = true, - Code = "QI4ykecPi", - UsageLimit = 7773, - MinAmount = 7140, - StorageId = "85cd1eb8-6a7e-41b6-8b31-49c2c2d3cf60", + Code = "coqfiAU", + UsageLimit = 3590, + MinAmount = 6951, + StorageId = "f10f2ad8-6c78-4e91-a346-d59dc58fd3df", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateCpmTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateCpmTransaction.cs index 15d64f5..5059038 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCpmTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCpmTransaction.cs @@ -25,9 +25,9 @@ public async Task CreateCpmTransaction0() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "Bp21GVpuNthlN8cTNxtClP", - "bf8c8cd0-c941-435c-a833-a5f9d553af14", - 9060.0 + "jMgk8QSZwJ1udEIb7zDJ6K", + "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + 4884.0 ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -42,11 +42,11 @@ public async Task CreateCpmTransaction1() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "Bp21GVpuNthlN8cTNxtClP", - "bf8c8cd0-c941-435c-a833-a5f9d553af14", - 9060.0 + "jMgk8QSZwJ1udEIb7zDJ6K", + "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + 4884.0 ) { - RequestId = "9e966899-7014-41f5-b708-0fa3a0cc95ea", + RequestId = "fb9e0f30-8d3a-4e08-ad27-35c422d3be7f", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -61,12 +61,12 @@ public async Task CreateCpmTransaction2() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "Bp21GVpuNthlN8cTNxtClP", - "bf8c8cd0-c941-435c-a833-a5f9d553af14", - 9060.0 + "jMgk8QSZwJ1udEIb7zDJ6K", + "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + 4884.0 ) { - 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","{}"}}, 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 = "11008505-0488-4316-8dac-8ccd5072d961", + 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 = "23667b47-a8f1-46bf-a438-206a38759b97", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -81,13 +81,13 @@ public async Task CreateCpmTransaction3() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "Bp21GVpuNthlN8cTNxtClP", - "bf8c8cd0-c941-435c-a833-a5f9d553af14", - 9060.0 + "jMgk8QSZwJ1udEIb7zDJ6K", + "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + 4884.0 ) { 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","{}"}}, 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","{}"}}, 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 = "9436d115-d18b-4812-8f89-9da211e515b7", + Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, + RequestId = "d06e9347-04e9-4b68-8632-23298ca3f192", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -102,14 +102,14 @@ public async Task CreateCpmTransaction4() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "Bp21GVpuNthlN8cTNxtClP", - "bf8c8cd0-c941-435c-a833-a5f9d553af14", - 9060.0 + "jMgk8QSZwJ1udEIb7zDJ6K", + "18bed4da-27d4-4c23-91db-b3c5b1944e6b", + 4884.0 ) { - Description = "qGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM", + Description = "zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pP", 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","{}"}}, 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","{}"}}, 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 = "fce3e65a-70d9-4339-a52a-d58d016f05c5", + 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","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, + RequestId = "338ac73d-0ec8-4345-b5b7-80b49109483c", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateCustomerAccount.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateCustomerAccount.cs index bbecd05..fea1476 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCustomerAccount.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCustomerAccount.cs @@ -25,7 +25,7 @@ public async Task CreateCustomerAccount0() { try { Request.CreateCustomerAccount request = new Request.CreateCustomerAccount( - "a7f9e724-20b6-40ff-adde-4d0d9569213a" + "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" ); Response.AccountWithUser response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task CreateCustomerAccount1() { try { Request.CreateCustomerAccount request = new Request.CreateCustomerAccount( - "a7f9e724-20b6-40ff-adde-4d0d9569213a" + "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" ) { - ExternalId = "50n0RmhPNf1QdSFaslICN4xIeeSgc", + ExternalId = "umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e", }; Response.AccountWithUser response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task CreateCustomerAccount2() { try { Request.CreateCustomerAccount request = new Request.CreateCustomerAccount( - "a7f9e724-20b6-40ff-adde-4d0d9569213a" + "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" ) { - AccountName = "GsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWufJQM5UqG40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6d", - ExternalId = "59eFWe", + AccountName = "e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7Mi", + ExternalId = "Gr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBC", }; Response.AccountWithUser response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task CreateCustomerAccount3() { try { Request.CreateCustomerAccount request = new Request.CreateCustomerAccount( - "a7f9e724-20b6-40ff-adde-4d0d9569213a" + "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" ) { - UserName = "4PxHJhHM6PRObQxj3f4w", - AccountName = "8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a", - ExternalId = "ENj", + UserName = "Ym4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH9e", + AccountName = "mhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Z", + ExternalId = "po5LBba7yo5q8iS", }; Response.AccountWithUser response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateExchangeTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateExchangeTransaction.cs index 2c33766..aecdeed 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateExchangeTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateExchangeTransaction.cs @@ -25,10 +25,10 @@ public async Task CreateExchangeTransaction0() { try { Request.CreateExchangeTransaction request = new Request.CreateExchangeTransaction( - "3b1cdc8e-46d7-47e6-8a14-b7ce29273ba9", - "2921ce33-0868-4c27-b01f-d6cfefd976e2", - "51329b42-255e-4b3d-a21b-3e2653c52bfe", - 1979.0 + "20b64fab-07cb-4869-b736-77309ace2f45", + "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", + "1581d02e-d446-49dd-9ccc-47304c371c1c", + 4278 ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +43,12 @@ public async Task CreateExchangeTransaction1() { try { Request.CreateExchangeTransaction request = new Request.CreateExchangeTransaction( - "3b1cdc8e-46d7-47e6-8a14-b7ce29273ba9", - "2921ce33-0868-4c27-b01f-d6cfefd976e2", - "51329b42-255e-4b3d-a21b-3e2653c52bfe", - 1979.0 + "20b64fab-07cb-4869-b736-77309ace2f45", + "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", + "1581d02e-d446-49dd-9ccc-47304c371c1c", + 4278 ) { - RequestId = "8e349eb0-9f57-4b06-90c0-e3214e3ee58f", + RequestId = "2d65e7db-21c1-49d2-9916-3e538fbebde9", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,13 +63,13 @@ public async Task CreateExchangeTransaction2() { try { Request.CreateExchangeTransaction request = new Request.CreateExchangeTransaction( - "3b1cdc8e-46d7-47e6-8a14-b7ce29273ba9", - "2921ce33-0868-4c27-b01f-d6cfefd976e2", - "51329b42-255e-4b3d-a21b-3e2653c52bfe", - 1979.0 + "20b64fab-07cb-4869-b736-77309ace2f45", + "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", + "1581d02e-d446-49dd-9ccc-47304c371c1c", + 4278 ) { - Description = "Cuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9oG2E8mJwg74tJdyJ5Llab29gfUQ6hTQL306GhITMLHDmfb2965K", - RequestId = "0ee648aa-389d-4016-a357-9e96076f54ef", + Description = "G2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJ", + RequestId = "21073e70-f299-4d1a-ba1e-51d357a1b62e", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateExternalTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateExternalTransaction.cs index 2d77ee5..c39731a 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateExternalTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateExternalTransaction.cs @@ -25,10 +25,10 @@ public async Task CreateExternalTransaction0() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "7733838f-0df6-4146-a4b1-4e4b26911932", - "e0cc292f-680e-4afc-b3d8-fb32cb811595", - "d8d7b775-fd1c-435c-993f-b82c4c9b4b16", - 382 + "82bbdb9d-8356-4e38-9c97-731155d767e4", + "c161298b-00af-49d2-88d9-03531d9fc0c6", + "4d772685-d144-4ae9-a7e7-6873865779e1", + 7886 ); Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +43,12 @@ public async Task CreateExternalTransaction1() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "7733838f-0df6-4146-a4b1-4e4b26911932", - "e0cc292f-680e-4afc-b3d8-fb32cb811595", - "d8d7b775-fd1c-435c-993f-b82c4c9b4b16", - 382 + "82bbdb9d-8356-4e38-9c97-731155d767e4", + "c161298b-00af-49d2-88d9-03531d9fc0c6", + "4d772685-d144-4ae9-a7e7-6873865779e1", + 7886 ) { - RequestId = "aca999f5-731b-470b-b436-622315341611", + RequestId = "7cbf90a1-a822-4b22-adc0-bc343a43ad50", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,13 +63,13 @@ public async Task CreateExternalTransaction2() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "7733838f-0df6-4146-a4b1-4e4b26911932", - "e0cc292f-680e-4afc-b3d8-fb32cb811595", - "d8d7b775-fd1c-435c-993f-b82c4c9b4b16", - 382 + "82bbdb9d-8356-4e38-9c97-731155d767e4", + "c161298b-00af-49d2-88d9-03531d9fc0c6", + "4d772685-d144-4ae9-a7e7-6873865779e1", + 7886 ) { - 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","{}"}}, 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","{}"}}, 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 = "0d37a03e-dcf0-47d3-972b-6e9c77ce5a19", + 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 = "ce67ec62-5417-4af1-9aee-5c30fdbb3e95", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -84,14 +84,14 @@ public async Task CreateExternalTransaction3() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "7733838f-0df6-4146-a4b1-4e4b26911932", - "e0cc292f-680e-4afc-b3d8-fb32cb811595", - "d8d7b775-fd1c-435c-993f-b82c4c9b4b16", - 382 + "82bbdb9d-8356-4e38-9c97-731155d767e4", + "c161298b-00af-49d2-88d9-03531d9fc0c6", + "4d772685-d144-4ae9-a7e7-6873865779e1", + 7886 ) { 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","{}"}}}, - RequestId = "4aee7d57-5c5d-405b-b98f-bf265a3b2e7f", + 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","{}"}}, 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","{}"}}, 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","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, + RequestId = "e8a6fd63-0375-4a18-818a-9fc9e853672a", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -106,15 +106,15 @@ public async Task CreateExternalTransaction4() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "7733838f-0df6-4146-a4b1-4e4b26911932", - "e0cc292f-680e-4afc-b3d8-fb32cb811595", - "d8d7b775-fd1c-435c-993f-b82c4c9b4b16", - 382 + "82bbdb9d-8356-4e38-9c97-731155d767e4", + "c161298b-00af-49d2-88d9-03531d9fc0c6", + "4d772685-d144-4ae9-a7e7-6873865779e1", + 7886 ) { - Description = "tiaID1SUCfz9yEelMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdED", + Description = "8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJ", 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","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, - RequestId = "dd9a1993-04c2-408b-abe5-cdf92585a37c", + 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","{}"}}, 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","{}"}}, 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 = "750722eb-dd49-47f6-949b-24da4059d2ee", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateOrganization.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateOrganization.cs index e7e1955..baa4288 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateOrganization.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateOrganization.cs @@ -25,11 +25,11 @@ public async Task CreateOrganization0() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ); Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -44,13 +44,13 @@ public async Task CreateOrganization1() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ) { - ContactName = "Ambz3OlMcIwPiDhPvFVPSC9IO8VxniaFu09a6CuuEqXlxnf5GR396SeNDqXXKEJV0JkE3TjLaqeZOsjEI7E22Wl6YSAD7vVGJBWjZfkSD8toOPMhnrU8KE3wpUrjUs8sizjd1z2FtADy5Q3C5jNeYsU9MpL2cFyrblmxyYFjVJ1ksDCEql83astJ4f63IhsEWYCV1aJM8EwjAmRBWR0j6oBZVp6NIn0X9ZNmVTX8mLedIikedmC30", + ContactName = "GJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -65,14 +65,14 @@ public async Task CreateOrganization2() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ) { - BankAccountHolderName = "E", - ContactName = "hoI72w", + BankAccountHolderName = "\\", + ContactName = "lAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeK", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -87,15 +87,15 @@ public async Task CreateOrganization3() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ) { - BankAccount = "1024663", - BankAccountHolderName = "D", - ContactName = "42KbdvTX1CfA4ud9qfvPOSoxFI1UweO2XRdO2hY0pCC8FQpyDiFdYn6ST7vY9DrqkrzPV8", + BankAccount = "15538", + BankAccountHolderName = ")", + ContactName = "22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5pa", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -110,16 +110,16 @@ public async Task CreateOrganization4() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ) { BankAccountType = "saving", - BankAccount = "", - BankAccountHolderName = " ", - ContactName = "kJOO2v1m3AEScwYzlsFCHOKfiqVfddqZXHyl9FtM3BiAbJG4RFalUDm4QOG36z0pAjeCTeiy225IXwhDEUvB4npxY9ubMTI7cGyilStc03UjxERdVoe6HFhJgKELPhJZ4V6jG807jn", + BankAccount = "843", + BankAccountHolderName = ".", + ContactName = "yMo26iqol80j1t4n3lpn", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -134,17 +134,17 @@ public async Task CreateOrganization5() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ) { BankBranchCode = "", BankAccountType = "current", - BankAccount = "5", - BankAccountHolderName = " ", - ContactName = "SZTliY3BcoO0R3ofHxO79PyMPuNxlOm9TssUDzbSN9easDT5qaXE9oVV6dzFzoMTL1nMwdKXWkN1V7WK5N3KEyrv8oYx3uFnGQ6ZUjk", + BankAccount = "843486", + BankAccountHolderName = ".", + ContactName = "eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperY", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -159,18 +159,18 @@ public async Task CreateOrganization6() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ) { - BankBranchName = "uDzL1kINhlYHLw7eGbmo6z2mwFW2G7CePrEb6qc1vzC0TUXZ7gJxmZb", - BankBranchCode = "343", - BankAccountType = "other", - BankAccount = "6346", - BankAccountHolderName = "/", - ContactName = "44SiHUuKLea6KXKMTxnuRpjgiK", + BankBranchName = "hU5vbLxW8", + BankBranchCode = "", + BankAccountType = "current", + BankAccount = "580", + BankAccountHolderName = "ヲ", + ContactName = "u89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMl", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -185,19 +185,19 @@ public async Task CreateOrganization7() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ) { - BankCode = "9454", - BankBranchName = "hsCVHvt0FegcXhZNGhoP3dbXW7", - BankBranchCode = "569", + BankCode = "9677", + BankBranchName = "oPmNQWU6zl3h", + BankBranchCode = "", BankAccountType = "saving", - BankAccount = "9", - BankAccountHolderName = "\\", - ContactName = "12cWukEiPRDcMrsI69et7tZGcxsWh3x4WMFG9JtXGOrRTCDsNsdOxykdQVM02fdP8dPWgv17gnjksnVKZ2Yg2XW7z7bqKh4VDMi81vkZfIvFF2aVGBrt4d4BQcmvC7IyShbMWHW8OrxkYJbese", + BankAccount = "37", + BankAccountHolderName = ")", + ContactName = "IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KR", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -212,20 +212,20 @@ public async Task CreateOrganization8() { try { Request.CreateOrganization request = new Request.CreateOrganization( - "aOPh40uyY7zI", - "a1dLLxrHG11vw1vq47MweLd7PEXecikrpiqy8sfzPeC95z6SUSQpi9Wzm3lpy1cb2RHdUOA0t8u9bgfw5lRkS6OP4v7xcpJRU1gAPOZCWBu1LN9FJ0cnlAGNGxl68QC9Lc8mXM6C7FzYciEIbzm3gXQmkrBpe2Ig2RcyGTEKbRkheq6QL08QyyZhWxWZXOgJUUSaNEWIfPAbzyBHOj", - new string[]{"b9001153-7f3a-4163-9e12-01bb96e53acd"}, - "2HIOB9HTAl@ispE.com", - "bZ0nm2AG9f@UVip.com" + "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", + "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", + new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, + "WoqdLq3QmH@RbZp.com", + "wbPRidVG7B@6haj.com" ) { - BankName = "fuwz6QVslbgmox4sylqaj0m4NHRO5Zx", + BankName = "DxSSppVORQLy6PO73cHGKqjz0v27dHE8", BankCode = "", - BankBranchName = "4O3NjLEysHxuDJHz", - BankBranchCode = "863", + BankBranchName = "eh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2F", + BankBranchCode = "", BankAccountType = "other", - BankAccount = "7714", - BankAccountHolderName = "\\", - ContactName = "bVQMVNIv43CsGJ1N1Ty1LpoGWtPPIzjjzRC7Vh9LObliCnClJEf5Qg177zO5rbJQyEp", + BankAccount = "9652717", + BankAccountHolderName = "ム", + ContactName = "RCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VU", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransaction.cs index d0e7148..343a491 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransaction.cs @@ -25,10 +25,10 @@ public async Task CreatePaymentTransaction0() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "69be84ce-f1ad-4fa2-8571-585e10431af1", - "6768cea9-e904-48e9-b13e-db0ea7e3a2dc", - "94bba52b-23a0-4c0f-b1d0-ac5e06da85fc", - 2100 + "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", + "18784388-b8a1-407c-bad5-2a6c5339a77a", + "bdf3cc73-c818-4ef8-a203-60ff592792fe", + 7737 ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +43,12 @@ public async Task CreatePaymentTransaction1() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "69be84ce-f1ad-4fa2-8571-585e10431af1", - "6768cea9-e904-48e9-b13e-db0ea7e3a2dc", - "94bba52b-23a0-4c0f-b1d0-ac5e06da85fc", - 2100 + "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", + "18784388-b8a1-407c-bad5-2a6c5339a77a", + "bdf3cc73-c818-4ef8-a203-60ff592792fe", + 7737 ) { - RequestId = "0e8d5329-8396-4fdf-87ce-87b28ecc1cb3", + RequestId = "f3cbd8f4-fd23-4591-91cb-a58906a761d3", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,13 +63,13 @@ public async Task CreatePaymentTransaction2() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "69be84ce-f1ad-4fa2-8571-585e10431af1", - "6768cea9-e904-48e9-b13e-db0ea7e3a2dc", - "94bba52b-23a0-4c0f-b1d0-ac5e06da85fc", - 2100 + "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", + "18784388-b8a1-407c-bad5-2a6c5339a77a", + "bdf3cc73-c818-4ef8-a203-60ff592792fe", + 7737 ) { 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","{}"}}, 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 = "2379c9e2-9fb6-4ba8-9e8f-1c4ecfc7313d", + RequestId = "7d67f75a-5c8b-4264-ba4d-a220bf88c88e", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -84,14 +84,14 @@ public async Task CreatePaymentTransaction3() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "69be84ce-f1ad-4fa2-8571-585e10431af1", - "6768cea9-e904-48e9-b13e-db0ea7e3a2dc", - "94bba52b-23a0-4c0f-b1d0-ac5e06da85fc", - 2100 + "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", + "18784388-b8a1-407c-bad5-2a6c5339a77a", + "bdf3cc73-c818-4ef8-a203-60ff592792fe", + 7737 ) { Metadata = "{\"key\":\"value\"}", - Products = new object[]{}, - RequestId = "0890f614-44bf-40ec-8114-8286af85c41d", + 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","{}"}}, 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 = "42165fc1-ad2b-422c-9ad4-7a2b06f5a10f", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -106,15 +106,15 @@ public async Task CreatePaymentTransaction4() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "69be84ce-f1ad-4fa2-8571-585e10431af1", - "6768cea9-e904-48e9-b13e-db0ea7e3a2dc", - "94bba52b-23a0-4c0f-b1d0-ac5e06da85fc", - 2100 + "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", + "18784388-b8a1-407c-bad5-2a6c5339a77a", + "bdf3cc73-c818-4ef8-a203-60ff592792fe", + 7737 ) { - Description = "d7BTwpYu4Valw5xiIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdP", + Description = "HlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9", Metadata = "{\"key\":\"value\"}", - Products = new object[]{}, - RequestId = "a11344f3-1f3c-43de-a746-a55488dad012", + 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","{}"}}, 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","{}"}}, 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","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, + RequestId = "6ad79f33-4be6-4e00-99b9-eca699fa8e64", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateShop.cs index aa1b855..7fe2ca3 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateShop.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateShop.cs @@ -25,7 +25,7 @@ public async Task CreateShop0() { try { Request.CreateShop request = new Request.CreateShop( - "cbsYxt96gmv0VcOEBgxJasez0E3N0w4tVAdgt1xX1dSRHXsAmJyubVIv51Dnx9WEjtPQ" + "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" ); Response.User response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task CreateShop1() { try { Request.CreateShop request = new Request.CreateShop( - "cbsYxt96gmv0VcOEBgxJasez0E3N0w4tVAdgt1xX1dSRHXsAmJyubVIv51Dnx9WEjtPQ" + "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" ) { - OrganizationCode = "--3yY", + OrganizationCode = "8GKA8B--Yx--7Lw-HR09g---0--6", }; Response.User response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task CreateShop2() { try { Request.CreateShop request = new Request.CreateShop( - "cbsYxt96gmv0VcOEBgxJasez0E3N0w4tVAdgt1xX1dSRHXsAmJyubVIv51Dnx9WEjtPQ" + "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" ) { - ShopExternalId = "ca", - OrganizationCode = "GhNb3Yud-009---p--uD", + ShopExternalId = "DH6cAdyVZn4o55A5DS", + OrganizationCode = "M---aZN9aTZ-MACo-8Dz", }; Response.User response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task CreateShop3() { try { Request.CreateShop request = new Request.CreateShop( - "cbsYxt96gmv0VcOEBgxJasez0E3N0w4tVAdgt1xX1dSRHXsAmJyubVIv51Dnx9WEjtPQ" + "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" ) { - ShopEmail = "0163kByMdg@32LG.com", - ShopExternalId = "1oWyluqXLUpztzpGIdluCdFeopAnKzAxtAm", - OrganizationCode = "0uB--6-1aX-2-", + ShopEmail = "R94JgHtiXr@fi45.com", + ShopExternalId = "gdORj3Jla3Pfb8OgNhhqnfBQjV", + OrganizationCode = "-l4", }; Response.User response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task CreateShop4() { try { Request.CreateShop request = new Request.CreateShop( - "cbsYxt96gmv0VcOEBgxJasez0E3N0w4tVAdgt1xX1dSRHXsAmJyubVIv51Dnx9WEjtPQ" + "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" ) { - ShopTel = "0414336", - ShopEmail = "J6w5HZkze2@3Hne.com", - ShopExternalId = "pUMEHxZW0Tc6eMEIuVp5eKpdv", - OrganizationCode = "8kJX--QpMQ--7z7m--n", + ShopTel = "03069596-8709", + ShopEmail = "eVkLQLhc7h@buv3.com", + ShopExternalId = "B8S8pH3eqOx8cOR3TFR9a8hM", + OrganizationCode = "-8l--M2-R-1f--Bayj6cu", }; Response.User response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task CreateShop5() { try { Request.CreateShop request = new Request.CreateShop( - "cbsYxt96gmv0VcOEBgxJasez0E3N0w4tVAdgt1xX1dSRHXsAmJyubVIv51Dnx9WEjtPQ" + "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" ) { - ShopAddress = "hqF2iDJgp3ZW8SpDn16YEfYX3JUUHHD0kbha6rpojFdIy8Lev3F8En8XgQCp5V2i4zKRrop8yq1iTaMXh9J32aBIrleFDh2AVDnVQPI4cS2rMsWBfreB", - ShopTel = "010-650563", - ShopEmail = "8fde96uK1q@pkeD.com", - ShopExternalId = "gc6Hbo3o2wSmfRoo", - OrganizationCode = "l-y0-M-fT9--rXh", + ShopAddress = "ryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4L", + ShopTel = "090991535", + ShopEmail = "GHUnCvc4A5@HlCo.com", + ShopExternalId = "2a7OllUlOCGYapVIyu0", + OrganizationCode = "-J-7--VX-Vq-xE", }; Response.User response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +135,14 @@ public async Task CreateShop6() { try { Request.CreateShop request = new Request.CreateShop( - "cbsYxt96gmv0VcOEBgxJasez0E3N0w4tVAdgt1xX1dSRHXsAmJyubVIv51Dnx9WEjtPQ" + "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" ) { - ShopPostalCode = "382-9014", - ShopAddress = "mrLQy1efJIm6p2nFeDatBkmxJUfJ8iWJ5x76ilzTFGw7NqxtlVIVfYnX2Qn7EnOChsUwktnh8VjRFve7MdNMBgFvJyEEmkecVySQ3ucJUKFqVhyrEcw3WNc5IXHiI2Hhl1OjgN6fFukYqihBSq8D0896GNWlaYQ8akcWxDZkhOozkzesx2mnek2LIVGGp8Vx16M91diHUGfol8Mhj42rW4z5Wjzvhmx48Q4mMZZBBU", - ShopTel = "073-4852510", - ShopEmail = "NTSqEGwk1D@yPJJ.com", - ShopExternalId = "hetNR8hTecHZnx73cRhZIXd", - OrganizationCode = "la7-u7tu4Wik45W2", + ShopPostalCode = "640-8980", + ShopAddress = "VYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2g", + ShopTel = "07-3343-3491", + ShopEmail = "gSjd1Lu4N1@G4Dl.com", + ShopExternalId = "fWLsx2", + OrganizationCode = "-RiV-tm-7-0-", }; Response.User response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateShopV2.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateShopV2.cs index e86242b..fa8e499 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateShopV2.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateShopV2.cs @@ -25,7 +25,7 @@ public async Task CreateShopV20() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ); Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task CreateShopV21() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ) { - CanTopupPrivateMoneyIds = new string[]{"a7f28eca-028b-43dc-b984-54ffee4912ee", "c0e8005b-0131-42c9-9696-665756129d53", "839fa4c6-6149-4347-9efc-73d51800feac", "86f4faa9-e0f1-49ca-b407-dc0b6240edce", "c7a2a4ae-ea36-4ffa-b688-ddf3618c221d", "565fb399-5e94-40da-a8dc-669f9d216544"}, + CanTopupPrivateMoneyIds = new string[]{}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task CreateShopV22() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ) { - PrivateMoneyIds = new string[]{"0ad34525-b13c-4160-aeae-f397d604ca9f", "ca4ab405-9d44-427c-ba3d-7387387edd47", "04ce2571-f3e5-431f-82ed-b7eba702d8cf", "19c928d2-f40c-4744-8f9c-c708da68251d", "14ca9fc4-677a-4c3d-8afe-817c958d2647", "5bb1c4da-1b88-4bbf-b954-bd4d3989d0b0", "1f445d54-56f9-4653-be0d-338c296aae97", "8be5636a-04c1-4eec-9657-48c4e51d0972", "4d16846a-94f3-4378-a330-82d5bbfaa117"}, - CanTopupPrivateMoneyIds = new string[]{"1135cfa4-8c4e-483c-a488-c54f574a10a5", "47702bc3-ce08-478e-9665-6679738bffff", "3fce89eb-af46-4979-aae6-08d0fc62fceb", "26e689f1-7114-44df-b85b-f2c95aa8b759", "84ec8d2b-ce2b-4a2b-ac43-0bee8dea6b01", "c8f7522b-6b17-4549-852a-4c0c13106022", "9beb1566-af3b-4f99-bed6-526aefacabdc", "2b8d7679-9083-49e8-9549-377ab8a2f803", "725ae484-e12b-4ff6-b3f7-6321dce2e8dd"}, + PrivateMoneyIds = new string[]{"021a463d-0616-440a-b26d-2fbeb9ac8b3d", "aa2644fd-d013-4976-8f4f-3611110f19ed", "14a00056-65f1-47c0-b9b7-d0e0a5c529cc", "9cb66f3a-45a3-4ac8-8c49-52ad2c40b85b", "e21b0a54-be90-47f0-aa43-c3538d100963", "57ac104d-1d3c-4335-b084-42db48ed679e", "d2f1506f-ed1c-4c8a-b69e-3e26cd9b2b7a", "03a015d1-99f2-4f5b-a0d5-3fbac3180492"}, + CanTopupPrivateMoneyIds = new string[]{"34fbea0b-c607-47b5-8df9-4a89a9816cbf", "e27477c8-cdf4-4e6f-80fc-d9df74d46d47"}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task CreateShopV23() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ) { - OrganizationCode = "-zf-Joy0-qd03y5ug-G-F-9i--8aG", - PrivateMoneyIds = new string[]{"10014421-2a2c-418d-960a-5d578855b799", "e431dda1-00d0-47b7-9faf-87a9a140c29b", "396ed696-d8e1-4936-b724-d215a107cf33", "1e8bcee0-8321-4e36-b626-5d09acd234e3", "c8dfc5c8-13d7-4c08-a83f-f26b107fef01", "9c080817-aad9-43eb-8183-91364cb3e5f4", "13ae9a3c-5bf2-4619-a19e-8b68a4e9cd62", "987e07d3-cf39-4c74-ad0a-992ca5e99d8b"}, - CanTopupPrivateMoneyIds = new string[]{"0d99ef26-fcfe-449e-9069-2225d7f9497f", "be4477ee-dda6-49ea-894e-e27ab7163cbc"}, + OrganizationCode = "l----D-ctVbMJ61W9htR-3Va0Ay", + PrivateMoneyIds = new string[]{"05596275-2289-4aa4-af88-88a7b98cd11f", "2d8d01fe-4087-48f8-9e61-57abac7207a3", "e334e339-321f-4163-a6a6-962c429b088c", "a3219471-ab64-44c2-ba8a-7cdab8b6dc5e", "ceca6d8d-4f42-457e-933b-435370383001", "aeeeb279-bda5-4df5-bb15-88d055e6c840", "85284173-8d4c-4867-a3b1-b9b48004810a", "472b45ea-322f-4852-a9c8-e43148ba70dd", "e19cf3e4-f461-4e83-81ca-9757b16f2c6b"}, + CanTopupPrivateMoneyIds = new string[]{"a97e4d57-f3f0-40db-bc7b-690dac7645e5", "dc252447-0dd6-4ba1-95f4-41ad2f0d6d37", "0fffc042-3507-4d1a-a3d4-ba3a7d64a460", "93d3b47f-349f-4e74-a7cb-933395ef0809", "aa7b09ad-7f5d-42ac-a116-923b71619f9c", "f28dcdd6-c177-49be-bb24-810bc594df8b", "136d8162-a009-4755-9367-dc5f76c294d8", "2d640bc9-d190-4e47-a6c4-003b3b7d2250"}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task CreateShopV24() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ) { - ExternalId = "WZdpxUSeeatx", - OrganizationCode = "Uzsz-b----K6-lPLRR6l4--jJ-64", - PrivateMoneyIds = new string[]{"278fd604-0695-4596-863d-5e9c14a9f426", "c8bd9ea3-2969-45d3-a07e-206f23024e2b", "9de1aa6c-5eec-4f23-85f5-ba7e473c9e70", "ccbe9105-7ce7-4b4c-9a29-76bd8d819f7c", "b75e3e9f-3294-4c10-b44a-2b1a57f62c69"}, - CanTopupPrivateMoneyIds = new string[]{"95c84b40-9503-4a9a-bdf4-ff2d34fc2643", "971c0765-fb95-44dc-84d3-86483b49e313", "a62cacc4-9c33-4f12-83b2-c99296d1ed2c"}, + ExternalId = "PwHED0", + OrganizationCode = "I-LjBmQNU-8", + PrivateMoneyIds = new string[]{"54a3bfb3-4c30-4334-b1e3-77e03818377a", "2abe7376-5b55-4937-b47c-2a69ec5e4ad4", "b56f1029-3e14-4e47-abce-7895c7242b83", "13a9ed59-c901-4484-977e-24eceb302044", "bb113279-533b-4152-ab33-4761d6ff3a7e", "0475f147-e14d-409e-b0f3-6205b5da1331", "10689348-129e-41ce-b2cf-12acaa1d6e3b", "44b4a686-1c17-4169-b828-c70092b5ceae", "3e86457b-340c-4ec7-9d16-dc7a7e2e6b82"}, + CanTopupPrivateMoneyIds = new string[]{"949746a3-a10f-43c0-977b-787e78f7cc17", "76f38c14-3c57-4812-b2e5-2ab6dcabbb26", "c0344cf9-5b49-4f93-9fc8-abc3e700300a"}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task CreateShopV25() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ) { - Email = "YnEIi9qrFh@HU4U.com", - ExternalId = "hBkt", - OrganizationCode = "--Pk9K--30l--4Gechy-69V---A--g-f", - PrivateMoneyIds = new string[]{"7a193dfa-ea29-48b8-9c6f-2a5c125a2fa7", "7643b853-7f46-4625-91e5-5a471c2005a4", "012d146f-7894-4a53-9cc7-a09e71fd3afe", "fbbbfe18-6a82-4233-89eb-aa7dcf8a2da1", "7eb8478a-08b8-4e12-beb1-02794502eb34", "8691124c-9937-42fe-ab0c-a66fb88774b3"}, - CanTopupPrivateMoneyIds = new string[]{"bd062dc7-b2cd-4592-b355-aa4b05062cc2", "a76b459c-1558-4714-8d06-fcaf3eeb6384", "c8cdbc4a-411e-40dc-89ef-b1403cad4be0", "d0be6079-aa63-42f0-b397-b9107e0317c0", "a42a0379-1ddb-45b4-8cf9-fdcce7b9a25a", "56f24c3b-be46-4978-9275-dbf50335ccc6", "8040264c-59df-49c1-be02-c6a3b1075f8c"}, + Email = "ge3KvTMWtv@AOdq.com", + ExternalId = "c6t46b4EgFIpDVk2sqQhlA", + OrganizationCode = "56zJw7T--EY-869YkBq--", + PrivateMoneyIds = new string[]{"788b6c4f-1ceb-4986-8c59-0c89644070e2", "3b67865d-784a-40cd-b49c-04b630ebe918", "179039d9-8a47-4eae-92a0-58ddc0c20b4b", "50fd0944-b7ca-4021-a517-511a538cf11e", "6fbd232a-fe56-4151-819d-87ce091c0808", "876d1ef4-8d66-4926-9bd5-3a64cacfacc8", "be42bfa8-f5d6-4c63-b36f-807563e177fc", "fef022f8-5a96-4258-b386-07781431df49", "de6731b9-ba12-40c3-a6c8-981305bcf564", "4e91d35a-f95f-4747-bd6b-7f45ee2eed17"}, + CanTopupPrivateMoneyIds = new string[]{"6107883f-9012-4fc4-81d3-35eb718836a4", "b776e952-f479-4466-9799-9b60f974f14b", "033eae41-2378-406a-8c24-46fc52cf11d1", "b5934c88-afd7-43ea-8e43-2842315ab0b8", "0c506492-f39a-461f-80ee-22c688b2e63f", "3f574c2f-d090-4c7c-a382-50f1c5915912", "622c28ed-d045-4886-a698-564eda5c0c05", "37f0b966-7ec4-486f-bb95-5cbf014cddf2", "1bef7931-a6fa-45ac-a721-c0f74887ae3f"}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +135,14 @@ public async Task CreateShopV26() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ) { - Tel = "054912941", - Email = "pnJ8Uw7M1C@vtXb.com", - ExternalId = "cAQ9ViIsv", - OrganizationCode = "K-9-7-50", - PrivateMoneyIds = new string[]{"7ff643ce-2433-43bc-8c83-a2a12571c404", "a20bb6d6-00e9-484a-8c53-9a87e367a1ba", "77213390-28b1-4b64-a6ad-f220774e8a11", "9656ac8b-25f0-4fe9-9c75-fe754e6c3436", "064fec23-2f4a-4fad-a381-c6a28816bea4"}, - CanTopupPrivateMoneyIds = new string[]{"10c940e5-769e-4979-b324-c4ca780ddf83", "2f2b553f-6e35-4dfd-8105-1bd507a545d2", "1df8198a-5d20-47b2-9e23-6aa7e2b38c37", "9522ee61-8a9d-46fc-a33f-9000548d7c85", "95e29fef-16ec-4f73-b84f-f4a6e5d20dcc", "7d93758a-3340-4101-a6de-8e81bdef7846", "a9cf22ce-d568-4397-991d-2522674a54f6"}, + Tel = "09833002-082", + Email = "hH3FEHzbfU@4cD6.com", + ExternalId = "smAeqngifjNikqD", + OrganizationCode = "1-CO7", + PrivateMoneyIds = new string[]{"83f7244d-b0af-4356-9311-78e427eca4e2"}, + CanTopupPrivateMoneyIds = new string[]{"79717c39-c511-4680-8e3a-e9477cc25c35", "2b09a25d-1b61-4bc5-9b2a-dd33bd04f271", "fc8dcc34-a8a4-47e7-94ce-213913029686", "e1c79326-2633-4023-a748-32cacb75dca2", "f0654427-e741-40aa-bc3b-bf31e5ede99a", "0b3b8099-3dc6-422c-a6ab-be063fd4446e", "b3fd0b21-3582-452b-a558-901f38a834fe", "eefa4c86-9ed9-45d2-968d-20a2e96d2bb1", "65148f46-26a5-4bc2-b539-7bdbaaf636d6"}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -157,15 +157,15 @@ public async Task CreateShopV27() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ) { - Address = "qrdgeoTKVw3QKHsut3xFubILPZVISKCKpUoBc7VjLNhPbQNBNhem8RljnuLcC94xG8sb1tOVm7p5XAwHfSXk3eOR6TecHTnhwvZsEsT85OfQ8lzdmqxGSg8e3RhOb5BMcQPLOIjmc8VMDMHWqGdZh4akYykFCJxLZHGXI2AIAE56GVf0Gw7kmQ3kNPt7OvjdgkL3FTfLMcm3icBM39ZlgHnODxDuH", - Tel = "0266-1510749", - Email = "oSer58JP7C@ddvY.com", - ExternalId = "G2P4sGsjZKQxe7fKpax0Uc45ft1", - OrganizationCode = "--K-td-5c-10", - PrivateMoneyIds = new string[]{"db90af9f-6e3e-4355-8d6e-40e6176c6b1a", "2ffaad79-6d64-45aa-8a44-be69bf94ef44", "1be47e08-700d-4578-b5e7-7b0627c92659", "eed45f95-84c4-4015-be39-0a2815d2640b", "dd659ae5-f904-4676-9ee6-1fc474a1cb7c", "40ff6db1-83ab-4b0a-900b-344ad1452091", "cf11a7f4-f2e4-4019-8fb3-9bd358d47364"}, - CanTopupPrivateMoneyIds = new string[]{"d2bee54d-3224-44f5-a90b-4b03f9291a2e", "cf7fba49-62ae-4550-b8af-ac87ef9412d8", "c9029991-20cc-4686-9850-b617e2a798af", "c3150647-00a6-4b7c-9d11-e1d8d0d06a22", "ed2a6d65-8593-433a-80ba-d28ae46b2261", "320aa770-cf3b-439f-9a34-13344c05fb29", "363c9919-e1b7-4960-aae5-9adf6d65ee06", "911b6109-4b20-434c-9e65-dfe70b25bedf", "d0e86188-9d12-47b5-bd26-e0e4aaf58b58"}, + Address = "wmK2QWEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJx", + Tel = "00557643485", + Email = "b1QYmVCtk7@8Jxd.com", + ExternalId = "gtNZkgpDcQrvPvYu9rBG", + OrganizationCode = "RSvLJo", + PrivateMoneyIds = new string[]{"5eafa213-c341-428b-9f0d-e57be53ebae0", "3586a578-aa08-48d5-b87e-889150ee8278", "f1a4cbab-596f-454a-b3ed-4fb2f361cc63", "fe57dc18-4d00-497e-9c4f-e4d92b48fe46", "af610609-147c-43a3-8eb3-e86622b1d44a", "3272d559-2305-4b5d-b75d-db16ef1990a6", "56d06feb-4f8f-484c-82db-45695f2d360e"}, + CanTopupPrivateMoneyIds = new string[]{"70ea7ac0-0661-4f96-9e04-510fe3e1533f", "b309dec0-6ca8-4b0b-810b-fcf30660fa4e", "e9468349-c018-4733-94d1-df347268d855", "70783ee2-e5e2-4424-9f14-493813bdfb9c", "3cab1f40-b123-49d5-bf34-5e4cc80b38ef"}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,16 +180,16 @@ public async Task CreateShopV28() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "UPoxQ" + "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" ) { - PostalCode = "6871901", - Address = "MdbxSiedHtUdWqjwNZ6SqXcjRYXWjjppT0r9xvCuvBOfsidrDI9VlsfxLxW5axZvNGABU1Kq4dKF1bCFldqrEeXCX83UsZSPbix6b1Za3ly7V1xEBLXcDk2ABcz8aQVQ46LRceMuSvImdDq9y3aEus7kZPbP6pY7uTyJAbvra0dcpr2XBaxBtLUqtpR4s1JU0lVQ2", - Tel = "0930-3076-929", - Email = "oiJUtnz4tP@DjzG.com", - ExternalId = "1vMI9teS2", - OrganizationCode = "-322", - PrivateMoneyIds = new string[]{"82f45bad-1717-455c-a8f3-edf9d4f55639", "17684739-fce5-4359-83d5-acd87e194477"}, - CanTopupPrivateMoneyIds = new string[]{"7240c943-e845-4029-ad05-5d2b62393526", "abdd92df-c10d-4b67-b207-5478a5428b0e", "6d17a47b-0833-4a9f-8ae2-bd242d824d8e", "ff1525b6-8f29-4f66-a7da-55c2084180c7", "ddb8b7ec-0385-4335-a94e-083b6abe6c40", "f9436f22-9e8f-4167-9762-c49089d25cdf", "cd3b914f-e629-4776-a069-05024f7d3704", "25967165-4327-4cb5-9c3e-a4bfced431b1", "a9001a39-2ef3-46c0-82b5-8b90625ddaab", "fdf223c1-74d4-4192-9faf-d0e6d4b83caf"}, + PostalCode = "5755698", + Address = "VQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFM", + Tel = "055048-196", + Email = "yxvlj5Kalq@xA7H.com", + ExternalId = "qvdSNveWz", + OrganizationCode = "24-hS-Xw8u0Ph2Nc97g-LP-", + PrivateMoneyIds = new string[]{"1ce90ba7-0bb7-4ab6-add4-f66f8482615c", "544ea624-91c8-4c2e-a3e3-5f7cda8dcba1", "5e046b89-5708-498d-ac00-36b877ee30e4", "94dfeef4-9522-4a2a-ba3f-e615a2685b63", "3449b0f1-882d-4fc4-b6f2-9a713770462e", "e37dbe40-107f-45f7-8726-29448a57f2fd", "f7623a88-6a56-46d2-a46f-c5a019ca9cea"}, + CanTopupPrivateMoneyIds = new string[]{"34361b47-5a6a-447b-a967-6648a560cc70", "dd98a114-451f-46da-bb04-a36cbf8a121b", "99048d9d-8392-4838-896e-c315c506f9a5", "7c3481a6-a82d-46c8-a213-c6d1731a8542", "b9625ee8-fecd-403b-897b-428eea6f2172"}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateTopupTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateTopupTransaction.cs index 35c0898..5ade20b 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateTopupTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateTopupTransaction.cs @@ -25,9 +25,9 @@ public async Task CreateTopupTransaction0() { try { Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( - "40be3508-3676-430f-ae0f-46fdce2fff8c", - "4c63d76d-8476-40c9-8c8b-f307ad7f556a", - "f7917703-6b0b-4c56-8b15-3a29318bcfe5" + "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + "bd51d245-8c4b-4321-be4d-9459c0099b05", + "6d4ad3a8-07fb-4773-aad2-cc8044238a66" ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -42,11 +42,11 @@ public async Task CreateTopupTransaction1() { try { Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( - "40be3508-3676-430f-ae0f-46fdce2fff8c", - "4c63d76d-8476-40c9-8c8b-f307ad7f556a", - "f7917703-6b0b-4c56-8b15-3a29318bcfe5" + "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + "bd51d245-8c4b-4321-be4d-9459c0099b05", + "6d4ad3a8-07fb-4773-aad2-cc8044238a66" ) { - RequestId = "1cb02637-82bb-455b-8e61-6a4d73c45c37", + RequestId = "590665db-07b9-4f76-8072-72e918278a87", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -61,12 +61,12 @@ public async Task CreateTopupTransaction2() { try { Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( - "40be3508-3676-430f-ae0f-46fdce2fff8c", - "4c63d76d-8476-40c9-8c8b-f307ad7f556a", - "f7917703-6b0b-4c56-8b15-3a29318bcfe5" + "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + "bd51d245-8c4b-4321-be4d-9459c0099b05", + "6d4ad3a8-07fb-4773-aad2-cc8044238a66" ) { Metadata = "{\"key\":\"value\"}", - RequestId = "2ca637d1-838e-4322-a9de-be19692702e9", + RequestId = "030cd959-7ae9-433d-907b-8d0018d356a9", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -81,13 +81,13 @@ public async Task CreateTopupTransaction3() { try { Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( - "40be3508-3676-430f-ae0f-46fdce2fff8c", - "4c63d76d-8476-40c9-8c8b-f307ad7f556a", - "f7917703-6b0b-4c56-8b15-3a29318bcfe5" + "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + "bd51d245-8c4b-4321-be4d-9459c0099b05", + "6d4ad3a8-07fb-4773-aad2-cc8044238a66" ) { - Description = "N4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoip", + Description = "8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01c", Metadata = "{\"key\":\"value\"}", - RequestId = "dc7d9a67-4ac6-433b-8e16-9ad36a2fe20d", + RequestId = "7061914c-07b7-4315-a564-a305d539bee8", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -102,14 +102,14 @@ public async Task CreateTopupTransaction4() { try { Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( - "40be3508-3676-430f-ae0f-46fdce2fff8c", - "4c63d76d-8476-40c9-8c8b-f307ad7f556a", - "f7917703-6b0b-4c56-8b15-3a29318bcfe5" + "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + "bd51d245-8c4b-4321-be4d-9459c0099b05", + "6d4ad3a8-07fb-4773-aad2-cc8044238a66" ) { - PointExpiresAt = "2024-11-12T07:47:52.000000+09:00", - Description = "jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GK", + PointExpiresAt = "2020-09-15T01:10:05.000000Z", + Description = "i5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8J", Metadata = "{\"key\":\"value\"}", - RequestId = "59299bf8-7296-4dc0-943d-a8b83d21394d", + RequestId = "3859c46b-1a83-4a4c-b64b-2e24d6c94e1d", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -124,15 +124,15 @@ public async Task CreateTopupTransaction5() { try { Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( - "40be3508-3676-430f-ae0f-46fdce2fff8c", - "4c63d76d-8476-40c9-8c8b-f307ad7f556a", - "f7917703-6b0b-4c56-8b15-3a29318bcfe5" + "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + "bd51d245-8c4b-4321-be4d-9459c0099b05", + "6d4ad3a8-07fb-4773-aad2-cc8044238a66" ) { - PointAmount = 3174, - PointExpiresAt = "2017-11-09T17:01:49.000000+09:00", - Description = "veV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOP", + PointAmount = 5478, + PointExpiresAt = "2021-01-21T20:23:24.000000Z", + Description = "UtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQ", Metadata = "{\"key\":\"value\"}", - RequestId = "6d7803d1-0080-4fd3-bd21-7c4babed4ad6", + RequestId = "b17cfe53-f624-4d0a-a77d-66734f88b581", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -147,16 +147,16 @@ public async Task CreateTopupTransaction6() { try { Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( - "40be3508-3676-430f-ae0f-46fdce2fff8c", - "4c63d76d-8476-40c9-8c8b-f307ad7f556a", - "f7917703-6b0b-4c56-8b15-3a29318bcfe5" + "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + "bd51d245-8c4b-4321-be4d-9459c0099b05", + "6d4ad3a8-07fb-4773-aad2-cc8044238a66" ) { - MoneyAmount = 3159, - PointAmount = 682, - PointExpiresAt = "2016-09-02T05:46:56.000000+09:00", - Description = "GqQVfPuvUPiEFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV", + MoneyAmount = 4875, + PointAmount = 5757, + PointExpiresAt = "2022-07-23T01:40:42.000000Z", + Description = "cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLh", Metadata = "{\"key\":\"value\"}", - RequestId = "f08e36aa-83aa-4e14-8638-ff7118968e3a", + RequestId = "8c138815-f8eb-46c2-8330-e7b84bbc97ed", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -171,17 +171,17 @@ public async Task CreateTopupTransaction7() { try { Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( - "40be3508-3676-430f-ae0f-46fdce2fff8c", - "4c63d76d-8476-40c9-8c8b-f307ad7f556a", - "f7917703-6b0b-4c56-8b15-3a29318bcfe5" + "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + "bd51d245-8c4b-4321-be4d-9459c0099b05", + "6d4ad3a8-07fb-4773-aad2-cc8044238a66" ) { - BearPointShopId = "a03025b0-0e20-44b2-8872-cd609535477b", - MoneyAmount = 1852, - PointAmount = 4, - PointExpiresAt = "2016-11-20T10:17:53.000000+09:00", - Description = "7ePIgPu4dPH7I", + BearPointShopId = "10405a8e-bc57-4118-816f-fc5d8281775d", + MoneyAmount = 339, + PointAmount = 7237, + PointExpiresAt = "2022-04-12T16:41:10.000000Z", + Description = "4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNm", Metadata = "{\"key\":\"value\"}", - RequestId = "eb28d93c-596d-427e-9efe-8ad32f6c2428", + RequestId = "51ebc46a-bd9a-49dd-8bd7-5914be8dc5d0", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateTopupTransactionWithCheck.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateTopupTransactionWithCheck.cs index ff0bd0e..3600959 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateTopupTransactionWithCheck.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateTopupTransactionWithCheck.cs @@ -25,8 +25,8 @@ public async Task CreateTopupTransactionWithCheck0() { try { Request.CreateTopupTransactionWithCheck request = new Request.CreateTopupTransactionWithCheck( - "b3e7f346-b1b7-4462-8649-ec5b8a5ecbd1", - "572bbee0-76b9-48a8-9d9b-b32139586c37" + "868e5c11-4cc4-49bc-85fa-63810b85da65", + "3918ac9a-e7ee-40b9-9e25-c17d02968c56" ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -41,10 +41,10 @@ public async Task CreateTopupTransactionWithCheck1() { try { Request.CreateTopupTransactionWithCheck request = new Request.CreateTopupTransactionWithCheck( - "b3e7f346-b1b7-4462-8649-ec5b8a5ecbd1", - "572bbee0-76b9-48a8-9d9b-b32139586c37" + "868e5c11-4cc4-49bc-85fa-63810b85da65", + "3918ac9a-e7ee-40b9-9e25-c17d02968c56" ) { - RequestId = "c476b96c-8a26-4984-8e9c-8fbe679b90ef", + RequestId = "d58acfa1-dd8e-4945-8d68-d739993bb8bc", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateTransaction.cs index 743f99b..04d63ca 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateTransaction.cs @@ -25,9 +25,9 @@ public async Task CreateTransaction0() { try { Request.CreateTransaction request = new Request.CreateTransaction( - "3d478e43-b38c-4559-b9c8-88596a03828e", - "3f472a9d-e07d-498f-b0a7-149a95f4c399", - "9c857966-1d17-42e1-8acd-9aa120952c0f" + "8a480fc1-4577-4907-9d6a-c87cf26f7afa", + "a387e891-8847-4c38-9559-5e87acab0e1d", + "d044b25e-2b03-4761-acdb-0b70e9a91604" ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -42,11 +42,11 @@ public async Task CreateTransaction1() { try { Request.CreateTransaction request = new Request.CreateTransaction( - "3d478e43-b38c-4559-b9c8-88596a03828e", - "3f472a9d-e07d-498f-b0a7-149a95f4c399", - "9c857966-1d17-42e1-8acd-9aa120952c0f" + "8a480fc1-4577-4907-9d6a-c87cf26f7afa", + "a387e891-8847-4c38-9559-5e87acab0e1d", + "d044b25e-2b03-4761-acdb-0b70e9a91604" ) { - Description = "c", + Description = "gA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2J", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -61,12 +61,12 @@ public async Task CreateTransaction2() { try { Request.CreateTransaction request = new Request.CreateTransaction( - "3d478e43-b38c-4559-b9c8-88596a03828e", - "3f472a9d-e07d-498f-b0a7-149a95f4c399", - "9c857966-1d17-42e1-8acd-9aa120952c0f" + "8a480fc1-4577-4907-9d6a-c87cf26f7afa", + "a387e891-8847-4c38-9559-5e87acab0e1d", + "d044b25e-2b03-4761-acdb-0b70e9a91604" ) { - PointExpiresAt = "2016-05-29T14:03:34.000000+09:00", - Description = "sZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42", + PointExpiresAt = "2023-11-18T10:39:42.000000Z", + Description = "K33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQd", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -81,13 +81,13 @@ public async Task CreateTransaction3() { try { Request.CreateTransaction request = new Request.CreateTransaction( - "3d478e43-b38c-4559-b9c8-88596a03828e", - "3f472a9d-e07d-498f-b0a7-149a95f4c399", - "9c857966-1d17-42e1-8acd-9aa120952c0f" + "8a480fc1-4577-4907-9d6a-c87cf26f7afa", + "a387e891-8847-4c38-9559-5e87acab0e1d", + "d044b25e-2b03-4761-acdb-0b70e9a91604" ) { - PointAmount = 281, - PointExpiresAt = "2023-05-25T06:55:28.000000+09:00", - Description = "KSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOl", + PointAmount = 676, + PointExpiresAt = "2020-08-14T23:35:01.000000Z", + Description = "ofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kb", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -102,14 +102,14 @@ public async Task CreateTransaction4() { try { Request.CreateTransaction request = new Request.CreateTransaction( - "3d478e43-b38c-4559-b9c8-88596a03828e", - "3f472a9d-e07d-498f-b0a7-149a95f4c399", - "9c857966-1d17-42e1-8acd-9aa120952c0f" + "8a480fc1-4577-4907-9d6a-c87cf26f7afa", + "a387e891-8847-4c38-9559-5e87acab0e1d", + "d044b25e-2b03-4761-acdb-0b70e9a91604" ) { - MoneyAmount = 5124, - PointAmount = 9503, - PointExpiresAt = "2023-03-19T19:18:51.000000+09:00", - Description = "DOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEA", + MoneyAmount = 7778, + PointAmount = 5824, + PointExpiresAt = "2024-01-26T18:25:24.000000Z", + Description = "i1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFD", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateTransferTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateTransferTransaction.cs index fe1e8d0..3049849 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateTransferTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateTransferTransaction.cs @@ -25,10 +25,10 @@ public async Task CreateTransferTransaction0() { try { Request.CreateTransferTransaction request = new Request.CreateTransferTransaction( - "6dbac2a1-8e0f-4e42-8406-c45eecd93fd4", - "60960fbd-eda1-4a5f-bcde-d59dca28166a", - "0f36e4c6-a6c9-4884-b1b8-9bef8c8a21bf", - 786.0 + "3a769fe5-ee23-42bf-947c-a065feae4e58", + "25fadf3a-fb31-4d02-ab0e-d173863896c8", + "01bf5cb4-a152-4eb2-8d09-9367e182b608", + 9687.0 ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +43,12 @@ public async Task CreateTransferTransaction1() { try { Request.CreateTransferTransaction request = new Request.CreateTransferTransaction( - "6dbac2a1-8e0f-4e42-8406-c45eecd93fd4", - "60960fbd-eda1-4a5f-bcde-d59dca28166a", - "0f36e4c6-a6c9-4884-b1b8-9bef8c8a21bf", - 786.0 + "3a769fe5-ee23-42bf-947c-a065feae4e58", + "25fadf3a-fb31-4d02-ab0e-d173863896c8", + "01bf5cb4-a152-4eb2-8d09-9367e182b608", + 9687.0 ) { - RequestId = "34dddcc0-5e52-4112-b0e7-95c3488afbc0", + RequestId = "37d4c4a4-dabf-4ab6-ba31-5fb48e82ab0b", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,13 +63,13 @@ public async Task CreateTransferTransaction2() { try { Request.CreateTransferTransaction request = new Request.CreateTransferTransaction( - "6dbac2a1-8e0f-4e42-8406-c45eecd93fd4", - "60960fbd-eda1-4a5f-bcde-d59dca28166a", - "0f36e4c6-a6c9-4884-b1b8-9bef8c8a21bf", - 786.0 + "3a769fe5-ee23-42bf-947c-a065feae4e58", + "25fadf3a-fb31-4d02-ab0e-d173863896c8", + "01bf5cb4-a152-4eb2-8d09-9367e182b608", + 9687.0 ) { - Description = "oDiEOfsuO3LMtzPm5pmHiztzTLcjSe", - RequestId = "1d81264e-f7f9-4cf6-a5ef-3c0f69ef4bdd", + Description = "JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1", + RequestId = "832b55cb-dc90-46d1-ac8d-0fb44328a863", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -84,14 +84,14 @@ public async Task CreateTransferTransaction3() { try { Request.CreateTransferTransaction request = new Request.CreateTransferTransaction( - "6dbac2a1-8e0f-4e42-8406-c45eecd93fd4", - "60960fbd-eda1-4a5f-bcde-d59dca28166a", - "0f36e4c6-a6c9-4884-b1b8-9bef8c8a21bf", - 786.0 + "3a769fe5-ee23-42bf-947c-a065feae4e58", + "25fadf3a-fb31-4d02-ab0e-d173863896c8", + "01bf5cb4-a152-4eb2-8d09-9367e182b608", + 9687.0 ) { Metadata = "{\"key\":\"value\"}", - Description = "r1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mY", - RequestId = "15a4e1e3-696a-4ed5-8433-fc42d90374fc", + Description = "6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdz", + RequestId = "d7a5de29-8fda-47c0-ba8e-5e36d9e5fbff", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateUserAccount.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateUserAccount.cs index fd88348..fc63f9b 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateUserAccount.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateUserAccount.cs @@ -25,8 +25,8 @@ public async Task CreateUserAccount0() { try { Request.CreateUserAccount request = new Request.CreateUserAccount( - "4acc35e5-af39-4bbc-8c4f-614f0bbce16f", - "1d713f11-c798-4865-b0b5-572b3b69c74c" + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" ); Response.AccountDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -41,8 +41,8 @@ public async Task CreateUserAccount1() { try { Request.CreateUserAccount request = new Request.CreateUserAccount( - "4acc35e5-af39-4bbc-8c4f-614f0bbce16f", - "1d713f11-c798-4865-b0b5-572b3b69c74c" + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" ) { Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; @@ -59,10 +59,10 @@ public async Task CreateUserAccount2() { try { Request.CreateUserAccount request = new Request.CreateUserAccount( - "4acc35e5-af39-4bbc-8c4f-614f0bbce16f", - "1d713f11-c798-4865-b0b5-572b3b69c74c" + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" ) { - ExternalId = "QDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BRb4", + ExternalId = "FBMnn24Y00BddIYIaGsnHTfyj3vGhpYs6lE3PVx", Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; Response.AccountDetail response = await request.Send(client); @@ -78,11 +78,11 @@ public async Task CreateUserAccount3() { try { Request.CreateUserAccount request = new Request.CreateUserAccount( - "4acc35e5-af39-4bbc-8c4f-614f0bbce16f", - "1d713f11-c798-4865-b0b5-572b3b69c74c" + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" ) { - Name = "LxjYp1VFXi65IWH287FkS1AdoZmr", - ExternalId = "qVFQp8fp9IpDGNT32XXjSeAsfsowmrnyt", + Name = "hCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiNymBaUIu6lQIyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa", + ExternalId = "h6AAgB9jXehhbgs", Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; Response.AccountDetail response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateUserDevice.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateUserDevice.cs index a774382..43f6f97 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateUserDevice.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateUserDevice.cs @@ -25,7 +25,7 @@ public async Task CreateUserDevice0() { try { Request.CreateUserDevice request = new Request.CreateUserDevice( - "cc87dd35-c107-49bf-8998-988ab03d913e" + "1ab73dbc-530a-4a75-bfce-3f20a4f4f41c" ); Response.UserDevice response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task CreateUserDevice1() { try { Request.CreateUserDevice request = new Request.CreateUserDevice( - "cc87dd35-c107-49bf-8998-988ab03d913e" + "1ab73dbc-530a-4a75-bfce-3f20a4f4f41c" ) { - Metadata = "zLVIyr3tV", + 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); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs index 39c395d..fcac755 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs @@ -26,7 +26,7 @@ public async Task CreateWebhook0() try { Request.CreateWebhook request = new Request.CreateWebhook( "process_user_stats_operation", - "i" + "B891rPV7F" ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestDeleteAccount.cs b/src/PokepayPartnerCsharpSdk.Test/TestDeleteAccount.cs index 8303915..9b439e8 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestDeleteAccount.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestDeleteAccount.cs @@ -25,7 +25,7 @@ public async Task DeleteAccount0() { try { Request.DeleteAccount request = new Request.DeleteAccount( - "37e2e7ea-fab8-4154-a81c-afd3740b2a42" + "78993f7e-a95e-4e84-8ce0-7a7b0adcc451" ); Response.AccountDeleted response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task DeleteAccount1() { try { Request.DeleteAccount request = new Request.DeleteAccount( - "37e2e7ea-fab8-4154-a81c-afd3740b2a42" + "78993f7e-a95e-4e84-8ce0-7a7b0adcc451" ) { - Cashback = true, + Cashback = false, }; Response.AccountDeleted response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestDeleteWebhook.cs b/src/PokepayPartnerCsharpSdk.Test/TestDeleteWebhook.cs index 1061dd2..1605ca2 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestDeleteWebhook.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestDeleteWebhook.cs @@ -25,7 +25,7 @@ public async Task DeleteWebhook0() { try { Request.DeleteWebhook request = new Request.DeleteWebhook( - "8667a5bc-0e64-4cbe-acf7-db89e2f093d2" + "f09ba024-80a2-44cf-9a60-7e9d56f684b1" ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetAccount.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetAccount.cs index 5e01ad0..cfe0971 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetAccount.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetAccount.cs @@ -25,7 +25,7 @@ public async Task GetAccount0() { try { Request.GetAccount request = new Request.GetAccount( - "da4f18ae-ecc6-4eee-844e-7cd0c295b145" + "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" ); Response.AccountDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetAccountTransferSummary.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetAccountTransferSummary.cs index 119acc0..26c12c9 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetAccountTransferSummary.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetAccountTransferSummary.cs @@ -25,7 +25,7 @@ public async Task GetAccountTransferSummary0() { try { Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( - "fe360029-78de-4f21-a0c5-35c854cac2b7" + "d79ada44-2554-41d3-a753-5725590e9c63" ); Response.AccountTransferSummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task GetAccountTransferSummary1() { try { Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( - "fe360029-78de-4f21-a0c5-35c854cac2b7" + "d79ada44-2554-41d3-a753-5725590e9c63" ) { - TransferTypes = new string[]{"refund-exchange-inflow", "exchange-inflow", "refund-exchange-outflow", "refund-payment", "refund-campaign", "exchange-outflow", "refund-topup", "payment", "topup", "use-coupon", "campaign-topup", "refund-coupon"}, + TransferTypes = new string[]{"exchange-outflow", "exchange-inflow", "refund-topup", "use-coupon", "refund-coupon", "payment", "refund-campaign", "campaign-topup", "refund-exchange-outflow"}, }; Response.AccountTransferSummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task GetAccountTransferSummary2() { try { Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( - "fe360029-78de-4f21-a0c5-35c854cac2b7" + "d79ada44-2554-41d3-a753-5725590e9c63" ) { - To = "2023-07-19T23:56:24.000000+09:00", - TransferTypes = new string[]{"refund-topup", "exchange-outflow", "refund-exchange-inflow", "use-coupon", "payment", "refund-exchange-outflow", "refund-campaign", "exchange-inflow", "campaign-topup", "refund-coupon", "refund-payment", "topup"}, + To = "2022-08-23T05:52:55.000000Z", + TransferTypes = new string[]{"exchange-outflow", "use-coupon", "refund-payment", "topup", "payment", "exchange-inflow", "refund-exchange-outflow"}, }; Response.AccountTransferSummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task GetAccountTransferSummary3() { try { Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( - "fe360029-78de-4f21-a0c5-35c854cac2b7" + "d79ada44-2554-41d3-a753-5725590e9c63" ) { - From = "2020-10-02T11:16:23.000000+09:00", - To = "2020-12-10T17:11:51.000000+09:00", - TransferTypes = new string[]{"campaign-topup", "refund-exchange-inflow", "refund-coupon", "payment", "refund-topup", "refund-payment", "exchange-inflow", "refund-exchange-outflow", "use-coupon", "topup", "exchange-outflow", "refund-campaign"}, + From = "2022-12-23T00:17:08.000000Z", + To = "2023-06-07T07:45:11.000000Z", + TransferTypes = new string[]{"exchange-outflow", "refund-campaign", "exchange-inflow", "topup", "refund-topup", "refund-payment", "refund-exchange-inflow", "refund-coupon", "refund-exchange-outflow", "use-coupon"}, }; Response.AccountTransferSummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetBulkTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetBulkTransaction.cs index ffe8d26..6e75495 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetBulkTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetBulkTransaction.cs @@ -25,7 +25,7 @@ public async Task GetBulkTransaction0() { try { Request.GetBulkTransaction request = new Request.GetBulkTransaction( - "3fdbd454-943d-484c-89fe-cab90913ffde" + "3ed176a1-e054-42ad-80a1-789f9f6323fd" ); Response.BulkTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetCampaign.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetCampaign.cs index a3bdb96..2fce4c4 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetCampaign.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetCampaign.cs @@ -25,7 +25,7 @@ public async Task GetCampaign0() { try { Request.GetCampaign request = new Request.GetCampaign( - "0b6dd98b-5c69-499d-8db4-9062cd87fc4f" + "271b4b7b-4908-4820-81af-8b927793bea2" ); Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetCashtray.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetCashtray.cs index 286c31e..0c8d17b 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetCashtray.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetCashtray.cs @@ -25,7 +25,7 @@ public async Task GetCashtray0() { try { Request.GetCashtray request = new Request.GetCashtray( - "fde1abf2-84e4-48ab-903f-5449cda55b0a" + "930b0fbd-881e-47e9-8e12-d168522fcd4e" ); Response.CashtrayWithResult response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetCheck.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetCheck.cs index a18f7bd..8e1dc27 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetCheck.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetCheck.cs @@ -25,7 +25,7 @@ public async Task GetCheck0() { try { Request.GetCheck request = new Request.GetCheck( - "33052792-b709-4b48-b250-16b76b647681" + "8893f8dc-e441-4a3d-bdc9-d19c00308720" ); Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetCoupon.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetCoupon.cs index 76e58a5..cf3cc68 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetCoupon.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetCoupon.cs @@ -25,7 +25,7 @@ public async Task GetCoupon0() { try { Request.GetCoupon request = new Request.GetCoupon( - "824993fe-707b-4afc-97cf-50a6e24209b2" + "b8a9e22b-b9d2-427a-a40f-9b3c5ce58991" ); Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetCpmToken.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetCpmToken.cs index 3982c09..5ccb056 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetCpmToken.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetCpmToken.cs @@ -25,7 +25,7 @@ public async Task GetCpmToken0() { try { Request.GetCpmToken request = new Request.GetCpmToken( - "CBY3rucfBues6uHoyn0kY9" + "jRtKJ3Y50yRgOZb7LyYKRM" ); Response.CpmToken response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetCustomerAccounts.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetCustomerAccounts.cs index 3a4dfd6..21b06c0 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetCustomerAccounts.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetCustomerAccounts.cs @@ -25,7 +25,7 @@ public async Task GetCustomerAccounts0() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ); Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task GetCustomerAccounts1() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - Email = "8ciCbZWnzc@DnK4.com", + Email = "Icm0Sp2Rlu@FOAx.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task GetCustomerAccounts2() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - Tel = "05014-3682", - Email = "EWGQmIqwq8@0GWY.com", + Tel = "047-0551-2657", + Email = "TcJlnsa7zu@y1tu.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task GetCustomerAccounts3() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - ExternalId = "Cdqp3aMw45RftnlC", - Tel = "088180521115", - Email = "dtFEN83UK6@KJ48.com", + ExternalId = "dw", + Tel = "071-69745487", + Email = "fKkMLwrBpO@RQ9L.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task GetCustomerAccounts4() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - Status = "active", - ExternalId = "qLWZU1lTgJBoEtylA7LcgVEYNBH5KGkiTeGr", - Tel = "0416-246", - Email = "PcxbP00J7Q@mpOV.com", + Status = "suspended", + ExternalId = "lnKRmCd4n", + Tel = "045-981479", + Email = "qpn3W7S36l@34SS.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task GetCustomerAccounts5() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - IsSuspended = true, - Status = "suspended", - ExternalId = "7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJx", - Tel = "043-72-8897", - Email = "yccRVuXaxH@AAzt.com", + IsSuspended = false, + Status = "active", + ExternalId = "W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA", + Tel = "09215911045", + Email = "P1AnQALadF@sAzg.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +135,14 @@ public async Task GetCustomerAccounts6() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - CreatedAtTo = "2022-12-13T00:29:39.000000+09:00", + CreatedAtTo = "2022-07-27T22:59:50.000000Z", IsSuspended = true, - Status = "active", - ExternalId = "rbX507aitxdTcYjjC", - Tel = "054148-3831", - Email = "bWjjaocKJS@9JHl.com", + Status = "pre-closed", + ExternalId = "tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc", + Tel = "0129-664-818", + Email = "3sP8V6IT9V@FC5b.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -157,15 +157,15 @@ public async Task GetCustomerAccounts7() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - CreatedAtFrom = "2017-10-01T13:26:52.000000+09:00", - CreatedAtTo = "2018-08-22T20:48:06.000000+09:00", + CreatedAtFrom = "2021-03-24T19:42:09.000000Z", + CreatedAtTo = "2023-05-02T07:02:07.000000Z", IsSuspended = true, - Status = "suspended", - ExternalId = "ltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkP", - Tel = "0725-3782545", - Email = "FSpI6jwJUU@xrUc.com", + Status = "pre-closed", + ExternalId = "XfPASw8jPQ0h", + Tel = "062-07305693", + Email = "xkUSOX0vTg@yFK1.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,16 +180,16 @@ public async Task GetCustomerAccounts8() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - PerPage = 7205, - CreatedAtFrom = "2017-04-22T17:37:23.000000+09:00", - CreatedAtTo = "2025-05-12T16:44:37.000000+09:00", + PerPage = 6034, + CreatedAtFrom = "2022-02-08T11:59:01.000000Z", + CreatedAtTo = "2021-10-26T00:50:23.000000Z", IsSuspended = true, - Status = "suspended", - ExternalId = "2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxM", - Tel = "0829-60503660", - Email = "W2y8KrZ8xM@lNal.com", + Status = "pre-closed", + ExternalId = "7pl9MWii2exAarzlUllr", + Tel = "01-1105-7098", + Email = "bZQuPYAKNL@vTyM.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -204,17 +204,17 @@ public async Task GetCustomerAccounts9() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "a28d009c-c959-4752-8d6f-334e4cb4e0ff" + "55543535-882b-44f5-9f30-80a440a9c1d9" ) { - Page = 7768, - PerPage = 461, - CreatedAtFrom = "2023-06-28T00:01:54.000000+09:00", - CreatedAtTo = "2023-05-08T22:24:36.000000+09:00", - IsSuspended = true, - Status = "pre-closed", - ExternalId = "8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRd", - Tel = "08-9962435", - Email = "8WCqGZQWNe@d5BL.com", + Page = 7048, + PerPage = 7330, + CreatedAtFrom = "2022-02-14T10:49:45.000000Z", + CreatedAtTo = "2023-05-04T06:41:23.000000Z", + IsSuspended = false, + Status = "suspended", + ExternalId = "LoYSz5jRHNPv9LO3MtPyt1wTnktL8AYkBvD7caRgncONv", + Tel = "085-5471-045", + Email = "87oiAkJDB6@ZsUU.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneyOrganizationSummaries.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneyOrganizationSummaries.cs index aa3fe7b..fb668b8 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneyOrganizationSummaries.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneyOrganizationSummaries.cs @@ -25,7 +25,7 @@ public async Task GetPrivateMoneyOrganizationSummaries0() { try { Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( - "fb035e4a-b836-4149-89c4-2b9478754102" + "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" ); Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task GetPrivateMoneyOrganizationSummaries1() { try { Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( - "fb035e4a-b836-4149-89c4-2b9478754102" + "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" ) { - Page = 9978, + Page = 3171, }; Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task GetPrivateMoneyOrganizationSummaries2() { try { Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( - "fb035e4a-b836-4149-89c4-2b9478754102" + "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" ) { - PerPage = 7609, - Page = 9047, + PerPage = 3815, + Page = 8720, }; Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,10 +75,10 @@ public async Task GetPrivateMoneyOrganizationSummaries3() { try { Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( - "fb035e4a-b836-4149-89c4-2b9478754102" + "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" ) { - From = "2018-02-10T02:38:59.000000+09:00", - To = "2022-04-22T13:51:27.000000+09:00", + From = "2022-05-07T10:50:17.000000Z", + To = "2020-06-21T04:11:02.000000Z", }; Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -93,11 +93,11 @@ public async Task GetPrivateMoneyOrganizationSummaries4() { try { Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( - "fb035e4a-b836-4149-89c4-2b9478754102" + "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" ) { - From = "2019-05-11T23:53:20.000000+09:00", - To = "2023-10-25T04:50:27.000000+09:00", - Page = 4265, + From = "2021-11-09T07:50:51.000000Z", + To = "2020-02-07T11:49:14.000000Z", + Page = 9542, }; Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -112,12 +112,12 @@ public async Task GetPrivateMoneyOrganizationSummaries5() { try { Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( - "fb035e4a-b836-4149-89c4-2b9478754102" + "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" ) { - From = "2023-03-01T14:00:27.000000+09:00", - To = "2024-04-19T17:57:17.000000+09:00", - PerPage = 6018, - Page = 9368, + From = "2023-03-29T21:09:55.000000Z", + To = "2023-12-24T11:05:04.000000Z", + PerPage = 8558, + Page = 4876, }; Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneySummary.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneySummary.cs index 2e43127..ba2d9d3 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneySummary.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneySummary.cs @@ -25,7 +25,7 @@ public async Task GetPrivateMoneySummary0() { try { Request.GetPrivateMoneySummary request = new Request.GetPrivateMoneySummary( - "9d20ff68-af5e-45cd-b517-4702a3cf7f6f" + "f3db3178-c932-44fa-939a-ee7eab246f13" ); Response.PrivateMoneySummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task GetPrivateMoneySummary1() { try { Request.GetPrivateMoneySummary request = new Request.GetPrivateMoneySummary( - "9d20ff68-af5e-45cd-b517-4702a3cf7f6f" + "f3db3178-c932-44fa-939a-ee7eab246f13" ) { - To = "2022-02-26T16:02:35.000000+09:00", + To = "2023-03-31T23:23:39.000000Z", }; Response.PrivateMoneySummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task GetPrivateMoneySummary2() { try { Request.GetPrivateMoneySummary request = new Request.GetPrivateMoneySummary( - "9d20ff68-af5e-45cd-b517-4702a3cf7f6f" + "f3db3178-c932-44fa-939a-ee7eab246f13" ) { - From = "2019-05-10T02:51:30.000000+09:00", - To = "2016-10-28T20:13:10.000000+09:00", + From = "2020-05-17T23:35:35.000000Z", + To = "2021-05-12T16:59:00.000000Z", }; Response.PrivateMoneySummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneys.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneys.cs index 090be2f..94219fd 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneys.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneys.cs @@ -38,7 +38,7 @@ public async Task GetPrivateMoneys1() { try { Request.GetPrivateMoneys request = new Request.GetPrivateMoneys() { - PerPage = 4581, + PerPage = 8186, }; Response.PaginatedPrivateMoneys response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -53,8 +53,8 @@ public async Task GetPrivateMoneys2() { try { Request.GetPrivateMoneys request = new Request.GetPrivateMoneys() { - Page = 4271, - PerPage = 5548, + Page = 5810, + PerPage = 4290, }; Response.PaginatedPrivateMoneys response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -69,9 +69,9 @@ public async Task GetPrivateMoneys3() { try { Request.GetPrivateMoneys request = new Request.GetPrivateMoneys() { - OrganizationCode = "-1Q-8EYG1O77FEB3qUK", - Page = 6184, - PerPage = 4217, + OrganizationCode = "3----MH-9o-yfn-lICQwSF6", + Page = 1459, + PerPage = 8245, }; Response.PaginatedPrivateMoneys response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetShop.cs index 5150788..f1283e4 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetShop.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetShop.cs @@ -25,7 +25,7 @@ public async Task GetShop0() { try { Request.GetShop request = new Request.GetShop( - "e12ecc60-1b85-4244-b725-ea9be0d099e0" + "638ae364-4dda-474a-8c54-0198b0d9e027" ); Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetShopAccounts.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetShopAccounts.cs index 44bff11..c5178a8 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetShopAccounts.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetShopAccounts.cs @@ -25,7 +25,7 @@ public async Task GetShopAccounts0() { try { Request.GetShopAccounts request = new Request.GetShopAccounts( - "d69cd625-3627-410f-b180-c02c0149ea34" + "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" ); Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task GetShopAccounts1() { try { Request.GetShopAccounts request = new Request.GetShopAccounts( - "d69cd625-3627-410f-b180-c02c0149ea34" + "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" ) { IsSuspended = false, }; @@ -57,10 +57,10 @@ public async Task GetShopAccounts2() { try { Request.GetShopAccounts request = new Request.GetShopAccounts( - "d69cd625-3627-410f-b180-c02c0149ea34" + "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" ) { - CreatedAtTo = "2019-02-16T09:15:16.000000+09:00", - IsSuspended = true, + CreatedAtTo = "2023-10-10T07:01:36.000000Z", + IsSuspended = false, }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,10 +75,10 @@ public async Task GetShopAccounts3() { try { Request.GetShopAccounts request = new Request.GetShopAccounts( - "d69cd625-3627-410f-b180-c02c0149ea34" + "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" ) { - CreatedAtFrom = "2016-09-07T15:07:29.000000+09:00", - CreatedAtTo = "2024-06-09T09:09:34.000000+09:00", + CreatedAtFrom = "2022-03-15T18:57:12.000000Z", + CreatedAtTo = "2022-11-02T09:39:16.000000Z", IsSuspended = false, }; Response.PaginatedAccountWithUsers response = await request.Send(client); @@ -94,11 +94,11 @@ public async Task GetShopAccounts4() { try { Request.GetShopAccounts request = new Request.GetShopAccounts( - "d69cd625-3627-410f-b180-c02c0149ea34" + "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" ) { - PerPage = 2470, - CreatedAtFrom = "2023-09-03T21:40:52.000000+09:00", - CreatedAtTo = "2018-02-26T14:34:24.000000+09:00", + PerPage = 2047, + CreatedAtFrom = "2020-10-29T13:03:08.000000Z", + CreatedAtTo = "2022-09-06T09:13:55.000000Z", IsSuspended = false, }; Response.PaginatedAccountWithUsers response = await request.Send(client); @@ -114,12 +114,12 @@ public async Task GetShopAccounts5() { try { Request.GetShopAccounts request = new Request.GetShopAccounts( - "d69cd625-3627-410f-b180-c02c0149ea34" + "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" ) { - Page = 469, - PerPage = 9926, - CreatedAtFrom = "2017-05-09T22:16:31.000000+09:00", - CreatedAtTo = "2019-06-21T03:04:39.000000+09:00", + Page = 9914, + PerPage = 9044, + CreatedAtFrom = "2023-03-04T08:24:04.000000Z", + CreatedAtTo = "2021-01-14T14:41:40.000000Z", IsSuspended = false, }; Response.PaginatedAccountWithUsers response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetTransaction.cs index 817db8b..e7a4a86 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetTransaction.cs @@ -25,7 +25,7 @@ public async Task GetTransaction0() { try { Request.GetTransaction request = new Request.GetTransaction( - "21befb66-327d-4250-b0e0-e901fce7b361" + "3c306e03-fc9f-4742-819e-76eb7dc7271d" ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetTransactionByRequestId.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetTransactionByRequestId.cs index 1b6cd52..f2afe6d 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetTransactionByRequestId.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetTransactionByRequestId.cs @@ -25,7 +25,7 @@ public async Task GetTransactionByRequestId0() { try { Request.GetTransactionByRequestId request = new Request.GetTransactionByRequestId( - "1a9e5f17-2af4-4322-b9a8-a36d20dbb401" + "0ed68ecd-85d3-4714-bcd1-033669dd0e2b" ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetUserDevice.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetUserDevice.cs index 92ce35d..560797c 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetUserDevice.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetUserDevice.cs @@ -25,7 +25,7 @@ public async Task GetUserDevice0() { try { Request.GetUserDevice request = new Request.GetUserDevice( - "699615db-243d-4ea1-a8bd-fa1ecea74574" + "c7d6be88-e502-4c42-94a1-cd410a9c1064" ); Response.UserDevice response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListAccountBalances.cs b/src/PokepayPartnerCsharpSdk.Test/TestListAccountBalances.cs index cca2a40..c27802f 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListAccountBalances.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListAccountBalances.cs @@ -25,7 +25,7 @@ public async Task ListAccountBalances0() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "d329bda6-cfb1-4ec7-89d2-a0498b0a1478" + "124a3fe8-1e88-4803-9195-15bbd1722f1a" ); Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListAccountBalances1() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "d329bda6-cfb1-4ec7-89d2-a0498b0a1478" + "124a3fe8-1e88-4803-9195-15bbd1722f1a" ) { - Direction = "asc", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task ListAccountBalances2() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "d329bda6-cfb1-4ec7-89d2-a0498b0a1478" + "124a3fe8-1e88-4803-9195-15bbd1722f1a" ) { - ExpiresAtTo = "2016-02-17T20:15:17.000000+09:00", - Direction = "desc", + ExpiresAtTo = "2020-09-07T21:25:03.000000Z", + Direction = "asc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task ListAccountBalances3() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "d329bda6-cfb1-4ec7-89d2-a0498b0a1478" + "124a3fe8-1e88-4803-9195-15bbd1722f1a" ) { - ExpiresAtFrom = "2018-02-18T13:33:39.000000+09:00", - ExpiresAtTo = "2018-10-23T00:10:20.000000+09:00", - Direction = "asc", + ExpiresAtFrom = "2020-07-02T09:51:09.000000Z", + ExpiresAtTo = "2022-05-06T04:41:55.000000Z", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,11 +94,11 @@ public async Task ListAccountBalances4() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "d329bda6-cfb1-4ec7-89d2-a0498b0a1478" + "124a3fe8-1e88-4803-9195-15bbd1722f1a" ) { - PerPage = 1922, - ExpiresAtFrom = "2016-07-22T14:52:25.000000+09:00", - ExpiresAtTo = "2020-09-23T06:16:17.000000+09:00", + PerPage = 3844, + ExpiresAtFrom = "2020-06-15T18:58:37.000000Z", + ExpiresAtTo = "2022-03-04T19:01:47.000000Z", Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -114,12 +114,12 @@ public async Task ListAccountBalances5() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "d329bda6-cfb1-4ec7-89d2-a0498b0a1478" + "124a3fe8-1e88-4803-9195-15bbd1722f1a" ) { - Page = 5299, - PerPage = 3913, - ExpiresAtFrom = "2022-10-26T06:44:05.000000+09:00", - ExpiresAtTo = "2021-05-06T03:48:18.000000+09:00", + Page = 3584, + PerPage = 7257, + ExpiresAtFrom = "2022-05-05T20:55:29.000000Z", + ExpiresAtTo = "2023-04-07T14:57:44.000000Z", Direction = "asc", }; Response.PaginatedAccountBalance response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListAccountExpiredBalances.cs b/src/PokepayPartnerCsharpSdk.Test/TestListAccountExpiredBalances.cs index aa070a6..68ea410 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListAccountExpiredBalances.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListAccountExpiredBalances.cs @@ -25,7 +25,7 @@ public async Task ListAccountExpiredBalances0() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "fe9c645c-8ad2-4e99-82ea-cdd47e3ca2e6" + "cce276f9-f936-4628-91b6-bb60d347c3df" ); Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListAccountExpiredBalances1() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "fe9c645c-8ad2-4e99-82ea-cdd47e3ca2e6" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) { - Direction = "desc", + Direction = "asc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,9 +57,9 @@ public async Task ListAccountExpiredBalances2() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "fe9c645c-8ad2-4e99-82ea-cdd47e3ca2e6" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) { - ExpiresAtTo = "2016-09-23T13:25:47.000000+09:00", + ExpiresAtTo = "2022-11-08T09:57:39.000000Z", Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -75,11 +75,11 @@ public async Task ListAccountExpiredBalances3() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "fe9c645c-8ad2-4e99-82ea-cdd47e3ca2e6" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) { - ExpiresAtFrom = "2022-02-12T01:00:45.000000+09:00", - ExpiresAtTo = "2018-11-27T01:58:43.000000+09:00", - Direction = "asc", + ExpiresAtFrom = "2021-02-10T04:23:33.000000Z", + ExpiresAtTo = "2021-11-27T03:23:28.000000Z", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task ListAccountExpiredBalances4() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "fe9c645c-8ad2-4e99-82ea-cdd47e3ca2e6" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) { - PerPage = 1360, - ExpiresAtFrom = "2022-08-23T03:44:38.000000+09:00", - ExpiresAtTo = "2017-06-19T19:13:07.000000+09:00", - Direction = "asc", + PerPage = 9269, + ExpiresAtFrom = "2022-07-27T12:24:37.000000Z", + ExpiresAtTo = "2020-03-19T18:01:03.000000Z", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,12 +114,12 @@ public async Task ListAccountExpiredBalances5() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "fe9c645c-8ad2-4e99-82ea-cdd47e3ca2e6" + "cce276f9-f936-4628-91b6-bb60d347c3df" ) { - Page = 945, - PerPage = 1133, - ExpiresAtFrom = "2016-02-18T13:35:31.000000+09:00", - ExpiresAtTo = "2023-09-25T12:13:15.000000+09:00", + Page = 6531, + PerPage = 2579, + ExpiresAtFrom = "2023-10-07T04:30:21.000000Z", + ExpiresAtTo = "2023-04-20T20:38:29.000000Z", Direction = "asc", }; Response.PaginatedAccountBalance response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs new file mode 100644 index 0000000..4700cab --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs @@ -0,0 +1,56 @@ +// 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 TestListBanks + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task ListBanks0() + { + try { + Request.ListBanks request = new Request.ListBanks( + "0399760e-177b-4721-abb6-9da85b2a76e8" + ); + Response.Banks 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 ListBanks1() + { + try { + Request.ListBanks request = new Request.ListBanks( + "0399760e-177b-4721-abb6-9da85b2a76e8" + ) { + PrivateMoneyId = "602e3bc8-a0b5-4ff1-abb5-6710ad5b63db", + }; + Response.Banks 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/TestListBills.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs index 22805fc..b52d41a 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs @@ -53,8 +53,8 @@ public async Task ListBills2() { try { Request.ListBills request = new Request.ListBills() { - UpperLimitAmount = 5799, - IsDisabled = false, + UpperLimitAmount = 8374, + IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -69,9 +69,9 @@ public async Task ListBills3() { try { Request.ListBills request = new Request.ListBills() { - LowerLimitAmount = 5990, - UpperLimitAmount = 2221, - IsDisabled = true, + LowerLimitAmount = 414, + UpperLimitAmount = 3796, + IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -86,9 +86,9 @@ public async Task ListBills4() { try { Request.ListBills request = new Request.ListBills() { - ShopId = "728adb16-2c48-4667-a58c-8c81f79c1663", - LowerLimitAmount = 1865, - UpperLimitAmount = 391, + ShopId = "db454cdb-2563-4ac8-b0e7-d118290fa6e1", + LowerLimitAmount = 937, + UpperLimitAmount = 3109, IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); @@ -104,11 +104,11 @@ public async Task ListBills5() { try { Request.ListBills request = new Request.ListBills() { - ShopName = "4FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyq", - ShopId = "5fb260ca-1c3b-4f92-abdb-d0c5febeff64", - LowerLimitAmount = 9702, - UpperLimitAmount = 9090, - IsDisabled = false, + ShopName = "j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYY", + ShopId = "94cc5713-2995-4c41-89a2-4575114060c5", + LowerLimitAmount = 3553, + UpperLimitAmount = 5130, + IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -123,12 +123,12 @@ public async Task ListBills6() { try { Request.ListBills request = new Request.ListBills() { - CreatedTo = "2020-04-23T07:33:03.000000+09:00", - ShopName = "viMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKfS7zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088F", - ShopId = "244dd304-b210-4e0f-86e0-d425423cfde6", - LowerLimitAmount = 7374, - UpperLimitAmount = 3418, - IsDisabled = false, + CreatedTo = "2023-10-09T22:21:55.000000Z", + ShopName = "yo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4", + ShopId = "874fa5ed-b7f0-49db-8954-3ad99a1b5897", + LowerLimitAmount = 9824, + UpperLimitAmount = 8975, + IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -143,13 +143,13 @@ public async Task ListBills7() { try { Request.ListBills request = new Request.ListBills() { - CreatedFrom = "2023-06-09T19:33:55.000000+09:00", - CreatedTo = "2025-06-05T18:37:46.000000+09:00", - ShopName = "L9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu5", - ShopId = "67c97b81-30e0-4ab6-83c1-2b3138d95277", - LowerLimitAmount = 5463, - UpperLimitAmount = 1046, - IsDisabled = true, + CreatedFrom = "2020-04-02T18:45:34.000000Z", + CreatedTo = "2021-04-23T15:02:20.000000Z", + ShopName = "PcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCX", + ShopId = "fdbe7b8b-788f-4c00-a578-5635ad054457", + LowerLimitAmount = 2310, + UpperLimitAmount = 5672, + IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -164,13 +164,13 @@ public async Task ListBills8() { try { Request.ListBills request = new Request.ListBills() { - Description = "TTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi", - CreatedFrom = "2016-10-04T02:10:18.000000+09:00", - CreatedTo = "2023-08-18T23:44:38.000000+09:00", - ShopName = "5yyQTl9w", - ShopId = "3114ffd4-e807-43ad-97bc-d78ca07ef95c", - LowerLimitAmount = 4189, - UpperLimitAmount = 7018, + Description = "s7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cp", + CreatedFrom = "2020-08-28T22:18:38.000000Z", + CreatedTo = "2022-11-20T18:31:07.000000Z", + ShopName = "GDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f", + ShopId = "f11af890-deb6-4b64-a11b-8551a0684435", + LowerLimitAmount = 7259, + UpperLimitAmount = 2726, IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); @@ -186,15 +186,15 @@ public async Task ListBills9() { try { Request.ListBills request = new Request.ListBills() { - OrganizationCode = "be5-55I-Gv-F-0B-ni-l3-4", - Description = "sNuqqVdUDyaVdHFVHz0uI", - CreatedFrom = "2023-06-17T06:20:36.000000+09:00", - CreatedTo = "2023-11-17T21:44:37.000000+09:00", - ShopName = "FKJoDWeoZQYdDyUkA8", - ShopId = "5212260b-9706-402c-884d-6aeaa5ef9300", - LowerLimitAmount = 1965, - UpperLimitAmount = 1501, - IsDisabled = false, + OrganizationCode = "9-7z-8w3g4i0s-qc68-o8Z-X1I", + Description = "0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKy", + CreatedFrom = "2022-08-08T09:36:18.000000Z", + CreatedTo = "2021-09-29T13:05:19.000000Z", + ShopName = "jnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8Ler", + ShopId = "cdeffdd8-4f1b-4bd1-9f2d-70233a2b1ca4", + LowerLimitAmount = 3165, + UpperLimitAmount = 4670, + IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,15 +209,15 @@ public async Task ListBills10() { try { Request.ListBills request = new Request.ListBills() { - PrivateMoneyId = "c1ee567c-fff8-4ca8-9459-82e3234370f5", - OrganizationCode = "t17--34--63--8tg2L", - Description = "GfIfeAIGZfO7", - CreatedFrom = "2023-02-13T20:05:14.000000+09:00", - CreatedTo = "2017-11-22T15:13:57.000000+09:00", - ShopName = "r8B2QPQ9Y2Rpsj0heI1pcWBx1T31cQtfbPCATbfETgM8KooCtS8z1fc4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5t", - ShopId = "22465104-4fc6-41e4-9e3e-26b5cb4612e6", - LowerLimitAmount = 9153, - UpperLimitAmount = 7839, + PrivateMoneyId = "eac43b3c-974c-496a-8638-e118119cc1d1", + OrganizationCode = "r---Y8Go7-", + Description = "CMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB", + CreatedFrom = "2023-06-27T03:44:29.000000Z", + CreatedTo = "2023-09-25T17:59:46.000000Z", + ShopName = "2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSI", + ShopId = "08ce28e1-09fb-46f8-9d2f-f55ae957baa9", + LowerLimitAmount = 2816, + UpperLimitAmount = 5711, IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); @@ -233,16 +233,16 @@ public async Task ListBills11() { try { Request.ListBills request = new Request.ListBills() { - BillId = "xEmA", - PrivateMoneyId = "c5125058-0dc3-4475-a3e1-74440e2eaf2d", - OrganizationCode = "T5Wbp-nA-l3--c-", - Description = "fpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpzYfcTDxwidoKxhgH4IlA44068ievlutMBS788", - CreatedFrom = "2019-10-30T01:13:03.000000+09:00", - CreatedTo = "2023-03-26T08:01:44.000000+09:00", - ShopName = "7UEqSzLy9xJxJq4hHbOAXXYVgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkePprAJ", - ShopId = "6f3f7075-6687-4b71-855f-960c1be02d86", - LowerLimitAmount = 7182, - UpperLimitAmount = 7107, + BillId = "SLz", + PrivateMoneyId = "db39cdc7-1a93-4896-b321-119f13b4e6aa", + OrganizationCode = "r1--l0PC2-YF-u9-1n-N-hH17XZ7e", + Description = "C9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN5", + CreatedFrom = "2023-11-11T11:34:52.000000Z", + CreatedTo = "2020-04-08T02:23:53.000000Z", + ShopName = "s59xI", + ShopId = "fcb6a957-11c7-4b2c-87bf-1702d83dcc75", + LowerLimitAmount = 4067, + UpperLimitAmount = 7962, IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); @@ -258,17 +258,17 @@ public async Task ListBills12() { try { Request.ListBills request = new Request.ListBills() { - PerPage = 4666, - BillId = "lGjqY", - PrivateMoneyId = "c0b49263-445b-41b5-b35b-825cd260ec6b", - OrganizationCode = "5C", - Description = "sHeK96R7zZjofXop8q4Bfps6VchHwOSBaSP", - CreatedFrom = "2018-02-11T04:05:59.000000+09:00", - CreatedTo = "2022-01-30T00:15:19.000000+09:00", - ShopName = "NKxM4bPYPan8UYIR", - ShopId = "0f47b898-66bc-47c1-89bf-8d93ca299ed3", - LowerLimitAmount = 3847, - UpperLimitAmount = 9618, + PerPage = 7637, + BillId = "FFrrXyLyM", + PrivateMoneyId = "967b698e-4ccf-4173-a274-e440aeed4465", + OrganizationCode = "e-rUFv-xFCvH54G51-", + Description = "t7Q5BMcC1v73v60y8DMLWrlnr061xWZsz", + CreatedFrom = "2020-09-12T06:07:45.000000Z", + CreatedTo = "2022-03-16T12:50:50.000000Z", + ShopName = "ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7", + ShopId = "851944d1-637b-4de0-a2cd-9d8271642a8f", + LowerLimitAmount = 5132, + UpperLimitAmount = 1439, IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); @@ -284,19 +284,19 @@ public async Task ListBills13() { try { Request.ListBills request = new Request.ListBills() { - Page = 263, - PerPage = 7988, - BillId = "nbw", - PrivateMoneyId = "f44aecd0-06ff-4839-b577-cc91c1596caf", - OrganizationCode = "0-0--u7G85n-9X4JF--w87--", - Description = "3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87", - CreatedFrom = "2016-09-27T20:35:04.000000+09:00", - CreatedTo = "2017-03-29T03:20:33.000000+09:00", - ShopName = "zBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUt", - ShopId = "6e75eadc-8406-4c3e-98c2-633b4d8e8b16", - LowerLimitAmount = 3001, - UpperLimitAmount = 2790, - IsDisabled = true, + Page = 7626, + PerPage = 7612, + BillId = "bzCAj1GsSv", + PrivateMoneyId = "c24c2166-3189-461c-987e-f204c0bb4a9f", + OrganizationCode = "T1--v-G724-7qs-0fqD1J46-L", + Description = "z7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yot", + CreatedFrom = "2020-03-03T04:15:12.000000Z", + CreatedTo = "2022-02-09T13:42:21.000000Z", + ShopName = "hlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9", + ShopId = "028de0f4-4a0b-499c-9550-af757adb9f62", + LowerLimitAmount = 6879, + UpperLimitAmount = 3373, + IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListBulkTransactionJobs.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBulkTransactionJobs.cs index 8a89613..01977a4 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListBulkTransactionJobs.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListBulkTransactionJobs.cs @@ -25,7 +25,7 @@ public async Task ListBulkTransactionJobs0() { try { Request.ListBulkTransactionJobs request = new Request.ListBulkTransactionJobs( - "92f4036b-a022-4258-9bed-b683700b42b3" + "396b57b8-9918-46a2-9917-1332bb970e27" ); Response.PaginatedBulkTransactionJob response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListBulkTransactionJobs1() { try { Request.ListBulkTransactionJobs request = new Request.ListBulkTransactionJobs( - "92f4036b-a022-4258-9bed-b683700b42b3" + "396b57b8-9918-46a2-9917-1332bb970e27" ) { - PerPage = 7235, + PerPage = 9248, }; Response.PaginatedBulkTransactionJob response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task ListBulkTransactionJobs2() { try { Request.ListBulkTransactionJobs request = new Request.ListBulkTransactionJobs( - "92f4036b-a022-4258-9bed-b683700b42b3" + "396b57b8-9918-46a2-9917-1332bb970e27" ) { - Page = 7257, - PerPage = 2797, + Page = 8273, + PerPage = 8353, }; Response.PaginatedBulkTransactionJob response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListCampaigns.cs b/src/PokepayPartnerCsharpSdk.Test/TestListCampaigns.cs index 46afad8..d2f8b5f 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListCampaigns.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListCampaigns.cs @@ -25,7 +25,7 @@ public async Task ListCampaigns0() { try { Request.ListCampaigns request = new Request.ListCampaigns( - "a32debf6-81d0-4e5e-a810-5d022933cf02" + "1029f3a2-29b0-4851-9740-e009da5deadf" ); Response.PaginatedCampaigns response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListCampaigns1() { try { Request.ListCampaigns request = new Request.ListCampaigns( - "a32debf6-81d0-4e5e-a810-5d022933cf02" + "1029f3a2-29b0-4851-9740-e009da5deadf" ) { - PerPage = 30, + PerPage = 17, }; Response.PaginatedCampaigns response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task ListCampaigns2() { try { Request.ListCampaigns request = new Request.ListCampaigns( - "a32debf6-81d0-4e5e-a810-5d022933cf02" + "1029f3a2-29b0-4851-9740-e009da5deadf" ) { - Page = 3919, - PerPage = 28, + Page = 6468, + PerPage = 35, }; Response.PaginatedCampaigns response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task ListCampaigns3() { try { Request.ListCampaigns request = new Request.ListCampaigns( - "a32debf6-81d0-4e5e-a810-5d022933cf02" + "1029f3a2-29b0-4851-9740-e009da5deadf" ) { - AvailableTo = "2022-07-16T17:31:27.000000+09:00", - Page = 8006, - PerPage = 38, + AvailableTo = "2023-10-26T19:25:16.000000Z", + Page = 3633, + PerPage = 37, }; Response.PaginatedCampaigns response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task ListCampaigns4() { try { Request.ListCampaigns request = new Request.ListCampaigns( - "a32debf6-81d0-4e5e-a810-5d022933cf02" + "1029f3a2-29b0-4851-9740-e009da5deadf" ) { - AvailableFrom = "2021-12-01T14:45:16.000000+09:00", - AvailableTo = "2019-04-24T13:05:14.000000+09:00", - Page = 3671, - PerPage = 48, + AvailableFrom = "2023-02-14T10:16:52.000000Z", + AvailableTo = "2020-06-07T11:35:32.000000Z", + Page = 6089, + PerPage = 21, }; Response.PaginatedCampaigns response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task ListCampaigns5() { try { Request.ListCampaigns request = new Request.ListCampaigns( - "a32debf6-81d0-4e5e-a810-5d022933cf02" + "1029f3a2-29b0-4851-9740-e009da5deadf" ) { - IsOngoing = false, - AvailableFrom = "2016-02-23T16:49:52.000000+09:00", - AvailableTo = "2023-02-11T03:49:02.000000+09:00", - Page = 3035, - PerPage = 35, + IsOngoing = true, + AvailableFrom = "2022-03-30T07:03:15.000000Z", + AvailableTo = "2023-05-29T03:53:29.000000Z", + Page = 2268, + PerPage = 1, }; Response.PaginatedCampaigns response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListChecks.cs b/src/PokepayPartnerCsharpSdk.Test/TestListChecks.cs index 1d3447f..9807dc8 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListChecks.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListChecks.cs @@ -38,7 +38,7 @@ public async Task ListChecks1() { try { Request.ListChecks request = new Request.ListChecks() { - IsDisabled = true, + IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -69,9 +69,9 @@ public async Task ListChecks3() { try { Request.ListChecks request = new Request.ListChecks() { - Description = "UsFd5", + Description = "HR", IsOnetime = false, - IsDisabled = true, + IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -86,9 +86,9 @@ public async Task ListChecks4() { try { Request.ListChecks request = new Request.ListChecks() { - IssuerShopId = "5b61a890-dc9c-4a18-a3f9-d8f3352def4b", - Description = "z", - IsOnetime = false, + IssuerShopId = "c09173a9-38c4-47ae-a6cd-1dbf767be412", + Description = "3LCAS", + IsOnetime = true, IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); @@ -104,9 +104,9 @@ public async Task ListChecks5() { try { Request.ListChecks request = new Request.ListChecks() { - CreatedTo = "2017-03-19T16:56:24.000000+09:00", - IssuerShopId = "9e1d0a30-ebb6-47e2-b5ba-2f9a943a973a", - Description = "TF", + CreatedTo = "2020-11-29T18:13:57.000000Z", + IssuerShopId = "a95626e0-cc96-42e5-98b9-08e292a990d9", + Description = "sHOG", IsOnetime = true, IsDisabled = true, }; @@ -123,10 +123,10 @@ public async Task ListChecks6() { try { Request.ListChecks request = new Request.ListChecks() { - CreatedFrom = "2022-07-03T10:57:19.000000+09:00", - CreatedTo = "2020-12-28T10:28:54.000000+09:00", - IssuerShopId = "83ca3240-63d9-4dde-af8e-beb45465f916", - Description = "EubGw6j", + CreatedFrom = "2021-09-30T14:14:20.000000Z", + CreatedTo = "2023-01-10T03:03:49.000000Z", + IssuerShopId = "3ff659a5-a0b3-4a2a-8d85-c516ed220bfc", + Description = "i4", IsOnetime = true, IsDisabled = false, }; @@ -143,11 +143,11 @@ public async Task ListChecks7() { try { Request.ListChecks request = new Request.ListChecks() { - ExpiresTo = "2020-01-07T03:04:44.000000+09:00", - CreatedFrom = "2024-05-18T14:13:04.000000+09:00", - CreatedTo = "2016-02-16T12:19:49.000000+09:00", - IssuerShopId = "905bcc05-b66a-40a3-83ce-467966a039d0", - Description = "oW", + ExpiresTo = "2023-04-26T10:51:35.000000Z", + CreatedFrom = "2023-09-27T03:56:30.000000Z", + CreatedTo = "2022-05-30T20:39:11.000000Z", + IssuerShopId = "a83d2837-4b37-41aa-8abd-0b9bf6620f26", + Description = "RN8AasC", IsOnetime = false, IsDisabled = true, }; @@ -164,12 +164,12 @@ public async Task ListChecks8() { try { Request.ListChecks request = new Request.ListChecks() { - ExpiresFrom = "2018-02-20T04:06:03.000000+09:00", - ExpiresTo = "2022-09-03T19:18:04.000000+09:00", - CreatedFrom = "2022-06-18T17:00:00.000000+09:00", - CreatedTo = "2021-02-18T17:17:54.000000+09:00", - IssuerShopId = "4834c23e-0a59-4f73-8363-6d9cebd3ad05", - Description = "QIY", + ExpiresFrom = "2020-07-04T15:44:08.000000Z", + ExpiresTo = "2023-04-23T18:30:13.000000Z", + CreatedFrom = "2020-12-04T19:50:30.000000Z", + CreatedTo = "2022-06-14T21:14:35.000000Z", + IssuerShopId = "c09b2bad-6cb6-49e7-addd-0a6e4351aa9f", + Description = "uHFpFsNPJm", IsOnetime = true, IsDisabled = false, }; @@ -186,15 +186,15 @@ public async Task ListChecks9() { try { Request.ListChecks request = new Request.ListChecks() { - OrganizationCode = "FXsspdkpVkTBJa3OTrsXs88kJNoIZaz", - ExpiresFrom = "2019-02-04T21:36:33.000000+09:00", - ExpiresTo = "2018-09-29T16:15:24.000000+09:00", - CreatedFrom = "2024-08-25T11:07:04.000000+09:00", - CreatedTo = "2025-07-10T10:40:20.000000+09:00", - IssuerShopId = "53bbc7db-7b18-465a-841c-138130a02537", - Description = "efHVp4Du", - IsOnetime = false, - IsDisabled = true, + OrganizationCode = "uH1GHYOOmiUvKwy", + ExpiresFrom = "2023-09-04T23:43:12.000000Z", + ExpiresTo = "2022-06-02T14:38:33.000000Z", + CreatedFrom = "2023-01-01T15:46:03.000000Z", + CreatedTo = "2020-06-18T01:18:09.000000Z", + IssuerShopId = "6f04fcd9-d253-4bac-9253-25ef4e15462b", + Description = "K", + IsOnetime = true, + IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,16 +209,16 @@ public async Task ListChecks10() { try { Request.ListChecks request = new Request.ListChecks() { - PrivateMoneyId = "70719c62-b871-4b02-9607-b98bac5b48e0", - OrganizationCode = "zq0H9hNDIpWOGR", - ExpiresFrom = "2016-01-19T16:21:48.000000+09:00", - ExpiresTo = "2023-08-23T11:48:29.000000+09:00", - CreatedFrom = "2022-07-15T10:26:04.000000+09:00", - CreatedTo = "2024-03-10T08:46:17.000000+09:00", - IssuerShopId = "3cfb1a43-4749-40d7-b28f-66cc6a8b4efe", - Description = "zYwdZH6RY", + PrivateMoneyId = "055fb6ce-ce08-4e0a-b55a-3c9826318e47", + OrganizationCode = "mU0unMptspEioBBqGcJ", + ExpiresFrom = "2023-12-14T08:42:56.000000Z", + ExpiresTo = "2022-11-30T14:16:44.000000Z", + CreatedFrom = "2021-08-24T14:05:27.000000Z", + CreatedTo = "2021-03-13T03:07:07.000000Z", + IssuerShopId = "0f38b0e1-af01-4fd8-a3e0-a8928df81f84", + Description = "pDTPRH", IsOnetime = true, - IsDisabled = true, + IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -233,16 +233,16 @@ public async Task ListChecks11() { try { Request.ListChecks request = new Request.ListChecks() { - PerPage = 9706, - PrivateMoneyId = "69158873-5d4c-4eee-9ee7-ae8240b2456d", - OrganizationCode = "ui2yyfAvCUPPfC6gPSyCFjnlF5wS89", - ExpiresFrom = "2020-12-05T16:47:27.000000+09:00", - ExpiresTo = "2019-05-19T11:38:42.000000+09:00", - CreatedFrom = "2023-06-09T09:12:00.000000+09:00", - CreatedTo = "2022-02-10T12:40:00.000000+09:00", - IssuerShopId = "86f08a53-0d0c-4cbe-b447-30eb8bc182a6", - Description = "uJSc", - IsOnetime = false, + PerPage = 3853, + PrivateMoneyId = "899befc5-fe6c-4be0-ac9b-ccde0397b840", + OrganizationCode = "NQrvWUnk17KWA", + ExpiresFrom = "2022-08-12T19:43:37.000000Z", + ExpiresTo = "2021-07-13T02:37:35.000000Z", + CreatedFrom = "2020-04-20T01:38:22.000000Z", + CreatedTo = "2021-07-31T11:29:45.000000Z", + IssuerShopId = "f33264e9-eec6-4bc9-8e47-e2e01c125c48", + Description = "shpxz5S2", + IsOnetime = true, IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); @@ -258,17 +258,17 @@ public async Task ListChecks12() { try { Request.ListChecks request = new Request.ListChecks() { - Page = 5393, - PerPage = 4788, - PrivateMoneyId = "e84744f5-ddc9-4836-99e2-954ef4e1e1cd", - OrganizationCode = "4YS", - ExpiresFrom = "2020-03-01T01:30:32.000000+09:00", - ExpiresTo = "2019-05-06T03:25:49.000000+09:00", - CreatedFrom = "2018-10-28T11:05:52.000000+09:00", - CreatedTo = "2025-01-30T10:19:36.000000+09:00", - IssuerShopId = "5a8d9a91-96eb-4587-ad7f-d5615ef4f4f6", - Description = "UABs7zcSSc", - IsOnetime = false, + Page = 2202, + PerPage = 4497, + PrivateMoneyId = "03afc5f2-3a5d-44a1-b485-0daea0b50c43", + OrganizationCode = "ar2DsC6IO", + ExpiresFrom = "2022-05-13T22:07:21.000000Z", + ExpiresTo = "2021-11-23T07:06:20.000000Z", + CreatedFrom = "2023-05-22T07:06:37.000000Z", + CreatedTo = "2021-05-19T00:39:45.000000Z", + IssuerShopId = "deb706e0-5aaf-4db3-98da-7543ffb37461", + Description = "lZmMT5mAF", + IsOnetime = true, IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListCoupons.cs b/src/PokepayPartnerCsharpSdk.Test/TestListCoupons.cs index ad9f964..ec7dffc 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListCoupons.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListCoupons.cs @@ -25,7 +25,7 @@ public async Task ListCoupons0() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ); Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListCoupons1() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ) { - PerPage = 3351, + PerPage = 8608, }; Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task ListCoupons2() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ) { - Page = 7812, - PerPage = 1825, + Page = 8394, + PerPage = 9522, }; Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task ListCoupons3() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ) { - AvailableTo = "2018-09-02T00:21:19.000000+09:00", - Page = 9032, - PerPage = 908, + AvailableTo = "2023-12-24T18:42:20.000000Z", + Page = 369, + PerPage = 1597, }; Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task ListCoupons4() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ) { - AvailableFrom = "2023-04-18T18:23:16.000000+09:00", - AvailableTo = "2016-05-17T17:33:03.000000+09:00", - Page = 137, - PerPage = 373, + AvailableFrom = "2023-12-02T09:22:37.000000Z", + AvailableTo = "2021-07-05T19:20:23.000000Z", + Page = 804, + PerPage = 537, }; Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task ListCoupons5() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ) { - AvailableShopName = "D9cO", - AvailableFrom = "2022-08-30T13:21:43.000000+09:00", - AvailableTo = "2025-06-10T18:56:11.000000+09:00", - Page = 7592, - PerPage = 9522, + AvailableShopName = "NkX1wbt", + AvailableFrom = "2020-05-03T12:17:12.000000Z", + AvailableTo = "2021-09-16T20:37:30.000000Z", + Page = 7209, + PerPage = 8097, }; Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +135,14 @@ public async Task ListCoupons6() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ) { - IssuedShopName = "21", - AvailableShopName = "Vkj", - AvailableFrom = "2025-04-25T04:48:36.000000+09:00", - AvailableTo = "2020-09-13T23:32:42.000000+09:00", - Page = 4802, - PerPage = 2183, + IssuedShopName = "h4XHkBbx", + AvailableShopName = "0Rn", + AvailableFrom = "2021-05-10T03:01:31.000000Z", + AvailableTo = "2020-05-26T09:28:44.000000Z", + Page = 117, + PerPage = 1374, }; Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -157,15 +157,15 @@ public async Task ListCoupons7() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ) { - CouponName = "AursWmY", - IssuedShopName = "lUcPFFH8O", - AvailableShopName = "O0g", - AvailableFrom = "2018-03-07T11:25:40.000000+09:00", - AvailableTo = "2016-06-18T04:21:00.000000+09:00", - Page = 3748, - PerPage = 8567, + CouponName = "rGJS2N5S6E", + IssuedShopName = "EO5Bp0T", + AvailableShopName = "aBrmndiCNx", + AvailableFrom = "2023-10-31T02:15:52.000000Z", + AvailableTo = "2022-11-25T09:52:24.000000Z", + Page = 5377, + PerPage = 9080, }; Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,16 +180,16 @@ public async Task ListCoupons8() { try { Request.ListCoupons request = new Request.ListCoupons( - "bc44764c-1bf1-4f1b-9a7d-20a757c827bf" + "ce18681e-5c83-427d-b862-0de280711893" ) { - CouponId = "Lk", - CouponName = "MJawdwCa", - IssuedShopName = "Z0f5A4WuoS", - AvailableShopName = "1IAZg", - AvailableFrom = "2020-03-24T06:57:19.000000+09:00", - AvailableTo = "2022-11-06T08:52:30.000000+09:00", - Page = 6727, - PerPage = 9471, + CouponId = "aRAeTxf", + CouponName = "0YQCHz", + IssuedShopName = "OG8zcqkOx", + AvailableShopName = "GcWZjjM6j3", + AvailableFrom = "2022-02-02T14:30:51.000000Z", + AvailableTo = "2022-08-14T20:03:11.000000Z", + Page = 5094, + PerPage = 2991, }; Response.PaginatedCoupons response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListCustomerTransactions.cs b/src/PokepayPartnerCsharpSdk.Test/TestListCustomerTransactions.cs index d8f14b6..99cf081 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListCustomerTransactions.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListCustomerTransactions.cs @@ -25,7 +25,7 @@ public async Task ListCustomerTransactions0() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ); Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListCustomerTransactions1() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ) { - PerPage = 7983, + PerPage = 1705, }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task ListCustomerTransactions2() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ) { - Page = 8594, - PerPage = 8708, + Page = 3943, + PerPage = 2309, }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task ListCustomerTransactions3() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ) { - To = "2022-12-05T01:41:12.000000+09:00", - Page = 6163, - PerPage = 3678, + To = "2022-02-22T06:42:36.000000Z", + Page = 4910, + PerPage = 3622, }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task ListCustomerTransactions4() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ) { - From = "2020-05-15T00:30:46.000000+09:00", - To = "2022-02-05T18:21:10.000000+09:00", - Page = 2169, - PerPage = 2639, + From = "2020-09-17T07:45:03.000000Z", + To = "2021-02-15T21:51:48.000000Z", + Page = 5516, + PerPage = 2876, }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task ListCustomerTransactions5() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ) { - IsModified = true, - From = "2022-07-28T15:43:02.000000+09:00", - To = "2024-03-12T12:19:08.000000+09:00", - Page = 969, - PerPage = 7259, + IsModified = false, + From = "2021-05-27T16:30:20.000000Z", + To = "2022-05-15T11:26:21.000000Z", + Page = 5666, + PerPage = 5023, }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +135,14 @@ public async Task ListCustomerTransactions6() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ) { - Type = "exchange", - IsModified = false, - From = "2022-01-23T09:43:17.000000+09:00", - To = "2021-11-23T13:02:33.000000+09:00", - Page = 5418, - PerPage = 3260, + Type = "transfer", + IsModified = true, + From = "2022-07-15T16:04:22.000000Z", + To = "2020-10-11T01:56:26.000000Z", + Page = 1575, + PerPage = 5242, }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -157,15 +157,15 @@ public async Task ListCustomerTransactions7() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ) { - ReceiverCustomerId = "b2c95c4c-96ff-4238-b66c-ed794dd261d4", - Type = "expire", - IsModified = true, - From = "2020-04-07T20:45:17.000000+09:00", - To = "2021-08-08T03:59:32.000000+09:00", - Page = 7512, - PerPage = 6169, + ReceiverCustomerId = "5ff1fa3b-b242-4f49-9085-9d71f75a9164", + Type = "transfer", + IsModified = false, + From = "2021-06-14T09:43:26.000000Z", + To = "2021-11-27T10:53:29.000000Z", + Page = 5317, + PerPage = 119, }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,16 +180,16 @@ public async Task ListCustomerTransactions8() { try { Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( - "b4615a78-056c-4f65-911a-40efce3d4819" + "fbf34e5c-b131-4778-8208-3d289e0d477c" ) { - SenderCustomerId = "4abdf29a-af69-4c3b-8e5f-67b7c4256e2a", - ReceiverCustomerId = "d876c1af-f54c-4a8e-aa11-14c86131e96a", + SenderCustomerId = "18859557-4c3d-4189-a76e-8cd4f6340d52", + ReceiverCustomerId = "93051b76-fff2-4c8b-a9be-caa0c3ca72cd", Type = "cashback", IsModified = false, - From = "2023-07-23T07:36:47.000000+09:00", - To = "2019-02-09T18:47:33.000000+09:00", - Page = 8939, - PerPage = 8361, + From = "2020-01-13T01:47:09.000000Z", + To = "2020-01-16T02:05:37.000000Z", + Page = 7306, + PerPage = 7712, }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListOrganizations.cs b/src/PokepayPartnerCsharpSdk.Test/TestListOrganizations.cs new file mode 100644 index 0000000..fe0d1b4 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestListOrganizations.cs @@ -0,0 +1,113 @@ +// 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 TestListOrganizations + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task ListOrganizations0() + { + try { + Request.ListOrganizations request = new Request.ListOrganizations( + "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + ); + Response.PaginatedOrganizations 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 ListOrganizations1() + { + try { + Request.ListOrganizations request = new Request.ListOrganizations( + "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + ) { + Code = "jwDm", + }; + Response.PaginatedOrganizations 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 ListOrganizations2() + { + try { + Request.ListOrganizations request = new Request.ListOrganizations( + "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + ) { + Name = "dL", + Code = "IlDiaOh78", + }; + Response.PaginatedOrganizations 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 ListOrganizations3() + { + try { + Request.ListOrganizations request = new Request.ListOrganizations( + "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + ) { + PerPage = 1885, + Name = "fh", + Code = "bZ3YfG", + }; + Response.PaginatedOrganizations 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 ListOrganizations4() + { + try { + Request.ListOrganizations request = new Request.ListOrganizations( + "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + ) { + Page = 6140, + PerPage = 6311, + Name = "hlbqaOE", + Code = "lvScjtjkG1", + }; + Response.PaginatedOrganizations 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/TestListShops.cs b/src/PokepayPartnerCsharpSdk.Test/TestListShops.cs index f8a2747..ae9485a 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListShops.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListShops.cs @@ -38,7 +38,7 @@ public async Task ListShops1() { try { Request.ListShops request = new Request.ListShops() { - PerPage = 9588, + PerPage = 2642, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -53,8 +53,8 @@ public async Task ListShops2() { try { Request.ListShops request = new Request.ListShops() { - Page = 6595, - PerPage = 5135, + Page = 7164, + PerPage = 807, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -69,9 +69,9 @@ public async Task ListShops3() { try { Request.ListShops request = new Request.ListShops() { - WithDisabled = false, - Page = 1967, - PerPage = 1202, + WithDisabled = true, + Page = 659, + PerPage = 3135, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -86,10 +86,10 @@ public async Task ListShops4() { try { Request.ListShops request = new Request.ListShops() { - ExternalId = "k6p1M3AaDCD", + ExternalId = "r7fsBnFuG56tOVY8vi9Z9lrbTG", WithDisabled = false, - Page = 5945, - PerPage = 6486, + Page = 2467, + PerPage = 1897, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -104,11 +104,11 @@ public async Task ListShops5() { try { Request.ListShops request = new Request.ListShops() { - Email = "2M3hy0vfxt@wSmq.com", - ExternalId = "p6yKARh5ZRW", - WithDisabled = false, - Page = 76, - PerPage = 8797, + Email = "4QbdPS2DfL@ew9j.com", + ExternalId = "cXjFRqAsdyU0E", + WithDisabled = true, + Page = 6790, + PerPage = 8997, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -123,12 +123,12 @@ public async Task ListShops6() { try { Request.ListShops request = new Request.ListShops() { - Tel = "09-4445-451", - Email = "uVlFabCqRi@kwgb.com", - ExternalId = "JfM", - WithDisabled = true, - Page = 8297, - PerPage = 1267, + Tel = "0896-96-5661", + Email = "09yrlyTlHc@xkp2.com", + ExternalId = "d", + WithDisabled = false, + Page = 3659, + PerPage = 5040, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -143,13 +143,13 @@ public async Task ListShops7() { try { Request.ListShops request = new Request.ListShops() { - Address = "TPQaRFRzLrLpSH0GqkthOAKJR8VBFpRQxxKQexm5F4TlRS3PsnDMFQKcrRJGtyzouTG0fNi1S", - Tel = "006707-6799", - Email = "ebwBbgsjlu@VjYr.com", - ExternalId = "ryI60OsM6yKVZ", + Address = "s83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM", + Tel = "091-03463", + Email = "yAShBlCJPj@tVj6.com", + ExternalId = "A58jW2j8noWbhryHKQA", WithDisabled = true, - Page = 1030, - PerPage = 7805, + Page = 9827, + PerPage = 1799, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -164,14 +164,14 @@ public async Task ListShops8() { try { Request.ListShops request = new Request.ListShops() { - PostalCode = "956-0096", - Address = "npNVd9AFxrpWfPQQvIa1xbdNYJvyCZXCjbARIpuKvOzHCuCdyUUls75UdwXdZijuTLMB27QQHuatNtp6PKSLh839k28z03zy6Qc9GYSlX2n5lak1n33o382bj7JojzlN4lU5sMlhBuyia62bkzzlqIc0ydT6mqiA8RNdj3UyTqHUrIwecp", - Tel = "0480793-1558", - Email = "aMJL6dBoxy@3dS4.com", - ExternalId = "GnuDl1WGraodKKbLrRBG", + PostalCode = "362-6999", + Address = "h2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtix", + Tel = "006203-8111", + Email = "0tz4EzkuhU@CHWp.com", + ExternalId = "5qyAYWUJWst1yIlHOt0", WithDisabled = false, - Page = 5475, - PerPage = 390, + Page = 4700, + PerPage = 6417, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,15 +186,15 @@ public async Task ListShops9() { try { Request.ListShops request = new Request.ListShops() { - Name = "LtxgB5z5qrK2mXuD0UWST9ldTa29xEBfE4j", - PostalCode = "1790355", - Address = "aw81ksIPXpJoHnKZwzgtMuSjmXprQOJIDMtkxUA3CwMowYwsohy6o54EyGXhKAybq9is4L00eclCf6ygQgmzcLUKbT5feGtXeOgCjHXo", - Tel = "0848-490885", - Email = "DdYfk0Kl5l@QobW.com", - ExternalId = "MeUrTL0yrW2IFnoVrabBtuZMnnkajdA", - WithDisabled = false, - Page = 4398, - PerPage = 3243, + Name = "XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxG", + PostalCode = "0488969", + Address = "0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB", + Tel = "089081-725", + Email = "VYsbDyysRi@sRQ9.com", + ExternalId = "ectqoj4yKOsEPCrpQPvSjUDltH57", + WithDisabled = true, + Page = 4251, + PerPage = 1967, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,16 +209,16 @@ public async Task ListShops10() { try { Request.ListShops request = new Request.ListShops() { - PrivateMoneyId = "4cad4c9f-2077-47da-8b61-d97ae4e4a08a", - Name = "ac8bckasxqrpu0M7pIUsW64iTD7nd9oi4jTu3F0HRYKCBEMlkDUnah6fkhvDARp5vX7MupP6FVnb6JjAKYX8HzepSQlFXs1g1p8h9cEw94TVm3QEXbRfQ4MBKBqC3S2iDFnRE3SwskPWs7mGvsLBFz2", - PostalCode = "490-3318", - Address = "5QIcpZb2q5YnZ6axCoTTIbjOEPBaRli2lUAMJ7CyG5TMfzsA0CzHGei6FNa5iNHS8ae3s1VgKjc7Q8j7Z0SWMLPnzw7xhc", - Tel = "027012483", - Email = "tgDKKsPg1t@K8tF.com", - ExternalId = "jwQnBp1nMIeAnY6Xeri5tCJDZsGcVm", + PrivateMoneyId = "0f619cdb-6882-4a79-b39c-6ac4d59ea4bf", + Name = "pO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI", + PostalCode = "470-8763", + Address = "tIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJ", + Tel = "0962274594", + Email = "rH7Ml90Eeu@ZgaP.com", + ExternalId = "20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq", WithDisabled = false, - Page = 1818, - PerPage = 5249, + Page = 3137, + PerPage = 6059, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -233,17 +233,17 @@ public async Task ListShops11() { try { Request.ListShops request = new Request.ListShops() { - OrganizationCode = "lqS25G-", - PrivateMoneyId = "bb79b4b8-f0ca-4fd8-bd5f-e0c1bcd4ee9b", - Name = "kOFKSHaiDX11U4V4mzkiQ9KgdufJCOqQoqEQic9b7rjANNhMIW5uX0nomeRn6xi8YDAJH7HJXNF3Oy8VhKyGvyermibojKhVPIv", - PostalCode = "019-8636", - Address = "olySSXeAcLtwR11xDAJrx0pv2XvsLcCeEcDmfq2CKw2F1KvbCjTFkaD9SEmE89oiZ9sjCAHNKHbkDV7xD9UgYkUYCn38T5jddntLP9wvyYD1qoSVwF6tpYAPGi6YnBQDM8MlLw6WNmhQ1XbNNNiRTERN1SPoqCbHjtLPWoEeyLYkaItEzRnlzKYkySdT2Gi04uqdwqTzZvD1PwMG5sUToLzAoDfdSJfprAX", - Tel = "094034-106", - Email = "GjNfTvZeWl@NcmF.com", - ExternalId = "OSukrPpaSteC", + OrganizationCode = "-325e-", + PrivateMoneyId = "1246ac4e-2bb0-4a00-9438-e8822439b330", + Name = "aLvrKoRyTXgPVT4AzeoZEOYu", + PostalCode = "5179201", + Address = "lWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90", + Tel = "092612595", + Email = "yLgJllatyS@0exo.com", + ExternalId = "ZwnX2Y3MjJVkSKFu78PD8Ns", WithDisabled = true, - Page = 7737, - PerPage = 5402, + Page = 177, + PerPage = 5901, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListTransactions.cs b/src/PokepayPartnerCsharpSdk.Test/TestListTransactions.cs index 25c4d90..b36c982 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListTransactions.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListTransactions.cs @@ -38,7 +38,7 @@ public async Task ListTransactions1() { try { Request.ListTransactions request = new Request.ListTransactions() { - Description = "tu08AkjC0WPKbQvYow9", + Description = "PV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7Ry", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -53,8 +53,8 @@ public async Task ListTransactions2() { try { Request.ListTransactions request = new Request.ListTransactions() { - Types = new string[]{"cashback", "exchange_outflow", "expire", "payment", "topup", "exchange_inflow"}, - Description = "zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikm", + Types = new string[]{"payment", "exchange_outflow", "cashback", "exchange_inflow"}, + Description = "IVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -69,9 +69,9 @@ public async Task ListTransactions3() { try { Request.ListTransactions request = new Request.ListTransactions() { - IsModified = false, - Types = new string[]{"exchange_outflow", "exchange_inflow", "topup", "payment"}, - Description = "rL5tEVsPccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5", + IsModified = true, + Types = new string[]{"expire", "exchange_outflow", "topup", "exchange_inflow", "cashback", "payment"}, + Description = "ZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qL", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -86,10 +86,10 @@ public async Task ListTransactions4() { try { Request.ListTransactions request = new Request.ListTransactions() { - PrivateMoneyId = "0cdcfa47-a319-4d37-a3e0-9f996e79988f", - IsModified = true, - Types = new string[]{"cashback", "exchange_outflow", "payment", "topup", "exchange_inflow", "expire"}, - Description = "URH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4Xv", + PrivateMoneyId = "62c302d4-35f1-4e7e-87c4-3215645cc062", + IsModified = false, + Types = new string[]{"exchange_outflow", "topup"}, + Description = "v4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPy", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -104,11 +104,11 @@ public async Task ListTransactions5() { try { Request.ListTransactions request = new Request.ListTransactions() { - OrganizationCode = "amu1Qb", - PrivateMoneyId = "10cdcd72-743b-4c21-b523-f6636c69665f", - IsModified = true, - Types = new string[]{"expire", "cashback", "payment"}, - Description = "6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9Yt", + OrganizationCode = "k1SSX-r", + PrivateMoneyId = "311bd1b2-821b-4fe2-94e0-f5a4694a8a3d", + IsModified = false, + Types = new string[]{"payment", "exchange_inflow", "expire", "topup", "exchange_outflow", "cashback"}, + Description = "FSWXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhY", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -123,12 +123,12 @@ public async Task ListTransactions6() { try { Request.ListTransactions request = new Request.ListTransactions() { - TransactionId = "nNi", - OrganizationCode = "-Y-d-4ozKC-meZh", - PrivateMoneyId = "312b45e7-0344-465f-808e-b9eefdd31bdc", - IsModified = false, - Types = new string[]{"payment", "expire", "exchange_inflow"}, - Description = "eIh1PycrJFKeRKa", + TransactionId = "IeaGt", + OrganizationCode = "D9A--UB-y5Wn--5I--9u393gS--s3", + PrivateMoneyId = "fe6213e7-e07d-4a7e-adfe-2cf43ac6f070", + IsModified = true, + Types = new string[]{"expire", "topup", "cashback", "payment", "exchange_outflow", "exchange_inflow"}, + Description = "BR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8S", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -143,13 +143,13 @@ public async Task ListTransactions7() { try { Request.ListTransactions request = new Request.ListTransactions() { - TerminalId = "e526330b-4f10-4611-8415-21107623cb2b", - TransactionId = "6OogwkyZ", - OrganizationCode = "-8-gzwp54Cp61-z---0z-m-8-", - PrivateMoneyId = "51051155-841b-4179-9618-41eadd75c975", + TerminalId = "9b31a3e7-fc60-4e5d-9839-b6718f656803", + TransactionId = "O6", + OrganizationCode = "3iJ-9dD---7-YolA58m-Vc-996y5l", + PrivateMoneyId = "1750ab2f-d7c2-480d-842e-9bc53e6fa6aa", IsModified = true, - Types = new string[]{"payment", "exchange_outflow", "topup", "expire", "cashback"}, - Description = "aiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hs", + Types = new string[]{"cashback"}, + Description = "S5KI84n4B4JwtxMbsrynF", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -164,14 +164,14 @@ public async Task ListTransactions8() { try { Request.ListTransactions request = new Request.ListTransactions() { - CustomerName = "BOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEf", - TerminalId = "89e41d66-51d0-47de-b78c-4a30a57e7a88", - TransactionId = "HCUoh", - OrganizationCode = "Mc8-b69es4rdU1V85719", - PrivateMoneyId = "aa77fa8d-811f-4d68-a643-531199e66e63", + CustomerName = "zleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2L", + TerminalId = "0cdc7118-47d0-4396-a2a9-9f8c6a148ab0", + TransactionId = "vCf", + OrganizationCode = "U8m-EI8MS8hII-tI", + PrivateMoneyId = "26687349-3c16-4178-b708-abe5d4699ac8", IsModified = true, - Types = new string[]{"expire", "exchange_outflow", "topup", "payment"}, - Description = "KBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9Fit", + Types = new string[]{"expire"}, + Description = "VFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVj", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,15 +186,15 @@ public async Task ListTransactions9() { try { Request.ListTransactions request = new Request.ListTransactions() { - CustomerId = "132e1b6a-2886-4075-b495-bf5542cede4a", - CustomerName = "sIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCS", - TerminalId = "bc4e0fcd-6322-4d5d-8598-8023fcf8b05a", - TransactionId = "WLR3IYMZq", - OrganizationCode = "I-0p--c-ke-", - PrivateMoneyId = "51b1acc2-3c61-4e54-aa36-52c36869090a", - IsModified = false, - Types = new string[]{"exchange_outflow", "expire", "exchange_inflow"}, - Description = "MrDSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMx", + CustomerId = "05b57152-289f-42cc-99c3-c34692786d8b", + CustomerName = "S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixL", + TerminalId = "8df7af26-c41d-4788-b003-3d76867b583d", + TransactionId = "lY8MFYZ", + OrganizationCode = "Y03-2UWgF9", + PrivateMoneyId = "0e260079-0ae0-4332-921a-f0180b856949", + IsModified = true, + Types = new string[]{"exchange_outflow", "topup", "expire", "payment", "cashback", "exchange_inflow"}, + Description = "CUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6f", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,16 +209,16 @@ public async Task ListTransactions10() { try { Request.ListTransactions request = new Request.ListTransactions() { - ShopId = "1625350c-099f-4275-8da5-f2766daeb39d", - CustomerId = "67ba2e4d-cb4f-45d6-bf24-6caa8fd747dc", - CustomerName = "5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws6Ne3S7kdpHli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7i", - TerminalId = "fa3db2ee-5d54-47c3-9304-c49ec529804b", - TransactionId = "JlAlkDX0z9", - OrganizationCode = "skmZmz-6-t2-zOM7Nh6geRQq", - PrivateMoneyId = "386e97bb-3cfc-4b82-aed4-0ad1ad9fb213", + ShopId = "977e2b08-a061-4a79-8a06-64febe0d9c5a", + CustomerId = "1bff689c-8cfb-475b-a32a-95326e526f27", + CustomerName = "E32vm3RMvvWttu1PJb3d04IfskzbRh2", + TerminalId = "f52d39cb-6a2d-48aa-9358-6123c140ac44", + TransactionId = "Jqy1UyPaGH", + OrganizationCode = "v39jFTlu-XkApk--324-FW3m--8", + PrivateMoneyId = "d897650b-e0a6-4c4f-b61c-e2d8149b3754", IsModified = false, - Types = new string[]{"cashback", "payment", "exchange_inflow", "exchange_outflow"}, - Description = "piIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cx", + Types = new string[]{"topup", "cashback", "expire"}, + Description = "PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -233,17 +233,17 @@ public async Task ListTransactions11() { try { Request.ListTransactions request = new Request.ListTransactions() { - PerPage = 114, - ShopId = "85574ecc-2ca0-4753-8738-f7938b7bbea6", - CustomerId = "39a50153-c8df-4134-aa16-f42145881782", - CustomerName = "P0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomW", - TerminalId = "941f5da3-f206-4782-87bd-8c0f56ec376c", - TransactionId = "A8y2vwAsT", - OrganizationCode = "YHl-S1Os-uSHO6-js2-7lM-e-yj---", - PrivateMoneyId = "de011e95-9a90-4745-a9f8-0f0bba2bf206", + PerPage = 2395, + ShopId = "7b52361c-ab20-4604-aea4-95c333415836", + CustomerId = "cd4922a1-cbf2-4319-84f9-005989664ef5", + CustomerName = "uG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYM", + TerminalId = "2743e2fa-a1c8-49fc-8065-9650cee5841f", + TransactionId = "RHJLPebY", + OrganizationCode = "-Cq10S-E8gQ----jDNN98mfGHwMEIBk", + PrivateMoneyId = "34e88dfc-36bd-404c-9bb5-d4e327efddb4", IsModified = true, - Types = new string[]{"exchange_inflow", "topup", "payment", "exchange_outflow"}, - Description = "FOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vz", + Types = new string[]{"exchange_outflow", "cashback", "topup", "exchange_inflow"}, + Description = "Pi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -258,18 +258,18 @@ public async Task ListTransactions12() { try { Request.ListTransactions request = new Request.ListTransactions() { - Page = 8179, - PerPage = 7438, - ShopId = "3753612a-ea71-4643-80b4-413315717728", - CustomerId = "69f02507-246b-42f6-9235-32d62d4b787a", - CustomerName = "4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9", - TerminalId = "a2dcac56-b2c4-4de0-84fe-eb58ff4ef53c", - TransactionId = "3NEhs", - OrganizationCode = "vo8p3E-9D4-0L-0", - PrivateMoneyId = "cc969fb4-db01-4b0d-aba8-c61d56943552", + Page = 7539, + PerPage = 8246, + ShopId = "7261d6a9-1fb2-463f-8e20-eb786615d1ed", + CustomerId = "66eb1f15-3d9c-431d-9b12-329d5a93ed89", + CustomerName = "So3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oa", + TerminalId = "bf1043fa-ff9c-4b4f-a0a9-5aeedb4aaf53", + TransactionId = "RVBAD", + OrganizationCode = "-i2w-XaN03-R-7n", + PrivateMoneyId = "b5e91b2f-b889-4b22-a38e-7bc7310df541", IsModified = false, - Types = new string[]{}, - Description = "zLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopC", + Types = new string[]{"exchange_outflow", "exchange_inflow", "payment", "expire", "cashback"}, + Description = "AIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4A", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -284,19 +284,19 @@ public async Task ListTransactions13() { try { Request.ListTransactions request = new Request.ListTransactions() { - To = "2019-11-15T11:08:19.000000+09:00", - Page = 8051, - PerPage = 4509, - ShopId = "f044ec1e-0e36-4061-add5-79aeb7a5c6f1", - CustomerId = "b75f285b-c057-49e9-8d69-767ff8b935b2", - CustomerName = "uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaB", - TerminalId = "11d539fb-32ae-4c58-93d3-60b34b1173c5", - TransactionId = "srMpj", - OrganizationCode = "j4V0-7rLZw--m-s-11y--S4k", - PrivateMoneyId = "29fb7fb0-5794-4c04-bfd6-cfc1f4122396", - IsModified = false, - Types = new string[]{}, - Description = "L", + To = "2020-07-26T10:55:21.000000Z", + Page = 2784, + PerPage = 4219, + ShopId = "f98b4df5-c995-408a-bb6b-47a2f3349e71", + CustomerId = "7bdf35a9-2b58-4e69-a9b0-1b92641220af", + CustomerName = "wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrG", + TerminalId = "f8b5d8eb-2220-422d-88af-8fc79f2630a0", + TransactionId = "nz7dW1L", + OrganizationCode = "e--Pwgc9HmVBlTce5-o-6v-Mx23q", + PrivateMoneyId = "87fcfd6b-5fb5-49b5-9cdb-6529a6653d70", + IsModified = true, + Types = new string[]{"expire"}, + Description = "BmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YX", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -311,20 +311,20 @@ public async Task ListTransactions14() { try { Request.ListTransactions request = new Request.ListTransactions() { - From = "2015-10-20T14:29:57.000000+09:00", - To = "2023-11-11T04:41:23.000000+09:00", - Page = 5786, - PerPage = 1681, - ShopId = "020a413f-94d8-4484-8d42-d9a49776a7fe", - CustomerId = "ea46d57d-f0d6-47d8-9e8b-ba9a72e971d6", - CustomerName = "IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0u", - TerminalId = "6e908ed5-8685-45d4-bc6a-3f4524e6bb27", - TransactionId = "W5F", - OrganizationCode = "V4t8s", - PrivateMoneyId = "3cc48352-cbb5-4de2-965e-7637792ce134", - IsModified = true, - Types = new string[]{"exchange_inflow", "payment"}, - Description = "MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSLXaRbjFaO", + From = "2024-02-05T13:13:38.000000Z", + To = "2023-03-16T23:25:29.000000Z", + Page = 3546, + PerPage = 3920, + ShopId = "9b3545d7-4db0-4b06-8d6f-09019542ff11", + CustomerId = "4423a488-860a-46e1-85ac-dc3b1dddcc1f", + CustomerName = "SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK7", + TerminalId = "f1c2eeb7-2535-44a0-8655-b1ea851422ca", + TransactionId = "wWsCFU", + OrganizationCode = "LYQf-X-6--oZ", + PrivateMoneyId = "4591de5a-0210-4461-a6c3-1e458e9de94d", + IsModified = false, + Types = new string[]{"exchange_outflow", "payment", "expire"}, + Description = "u8UbXHSU9E0Qlg3gebv", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListTransactionsV2.cs b/src/PokepayPartnerCsharpSdk.Test/TestListTransactionsV2.cs index 66258cb..f6dcc4f 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListTransactionsV2.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListTransactionsV2.cs @@ -38,7 +38,7 @@ public async Task ListTransactionsV21() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - PerPage = 399, + PerPage = 136, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -53,8 +53,8 @@ public async Task ListTransactionsV22() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - PrevPageCursorId = "38601e09-f983-4154-a8a7-9ffcefcef7f7", - PerPage = 709, + PrevPageCursorId = "fc527984-a5e8-44f2-a31f-4c7f0cdfdd95", + PerPage = 313, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -69,9 +69,9 @@ public async Task ListTransactionsV23() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - NextPageCursorId = "67dfb275-c8f1-4428-b1fa-60afec38ac65", - PrevPageCursorId = "d047e4f7-82ba-468c-bff3-1ba901d5f406", - PerPage = 334, + NextPageCursorId = "fb22ffa1-f122-40d1-a829-257fab34ceea", + PrevPageCursorId = "3ccd8c04-5759-4eec-bb42-5cb460baa4a3", + PerPage = 307, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -86,10 +86,10 @@ public async Task ListTransactionsV24() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - To = "2020-08-03T05:37:09.000000+09:00", - NextPageCursorId = "0f1d2049-7a02-4878-9f7e-9d92d09e5294", - PrevPageCursorId = "e68bc994-01b1-4468-b012-297dbf94367a", - PerPage = 138, + To = "2022-06-12T16:45:46.000000Z", + NextPageCursorId = "b59dafbc-912c-4bef-bb8d-474796f0ec41", + PrevPageCursorId = "61cefb16-141f-40a0-a8bf-97792c4e46ec", + PerPage = 369, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -104,11 +104,11 @@ public async Task ListTransactionsV25() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - From = "2017-05-29T20:51:12.000000+09:00", - To = "2024-01-11T02:50:40.000000+09:00", - NextPageCursorId = "dbaf5b17-3b63-4199-bfc3-10ba6e27d265", - PrevPageCursorId = "b8dfa52b-f778-4413-85a1-dc9f68776122", - PerPage = 209, + From = "2022-05-13T22:51:50.000000Z", + To = "2021-03-13T23:51:09.000000Z", + NextPageCursorId = "fece7a94-33ac-43dd-8b1b-1ec60b163d4f", + PrevPageCursorId = "4caa26ae-5ef7-4ec3-a49f-d4a4805d1b3f", + PerPage = 831, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -123,12 +123,12 @@ public async Task ListTransactionsV26() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - Types = new string[]{}, - From = "2022-05-23T21:38:51.000000+09:00", - To = "2018-01-30T18:10:16.000000+09:00", - NextPageCursorId = "feb30142-3595-4e2b-830f-72883845314a", - PrevPageCursorId = "6ed73a32-9fd1-460b-b741-773ceb0d7033", - PerPage = 905, + Types = new string[]{"exchange_outflow", "expire"}, + From = "2023-05-12T04:41:04.000000Z", + To = "2021-06-07T00:06:19.000000Z", + NextPageCursorId = "8cf2e07e-679f-4d8f-821f-65dac7d4c4e4", + PrevPageCursorId = "f2538a72-d81e-4e67-9198-2d9d4a0aa3e8", + PerPage = 442, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -144,12 +144,12 @@ public async Task ListTransactionsV27() try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { IsModified = true, - Types = new string[]{"expire", "cashback", "exchange_inflow", "topup", "payment"}, - From = "2022-03-29T21:09:21.000000+09:00", - To = "2016-12-26T04:16:23.000000+09:00", - NextPageCursorId = "05ffea7c-7ed5-4e5b-9316-f00fdee16baf", - PrevPageCursorId = "2e9e95ee-fbfd-48ed-9713-9a1aded27c66", - PerPage = 44, + Types = new string[]{"topup", "cashback", "exchange_inflow", "payment"}, + From = "2022-10-11T10:49:34.000000Z", + To = "2021-12-28T16:25:23.000000Z", + NextPageCursorId = "cb3e846c-d7c4-41bb-a404-c55fc895efc2", + PrevPageCursorId = "27a88a14-4475-4cbe-af24-ad0171a19d4a", + PerPage = 645, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -164,14 +164,14 @@ public async Task ListTransactionsV28() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - TransactionId = "Mf158jbodx", + TransactionId = "IFUr", IsModified = false, - Types = new string[]{}, - From = "2019-09-29T05:18:29.000000+09:00", - To = "2019-04-05T02:30:13.000000+09:00", - NextPageCursorId = "a4f6ed14-46aa-4ab6-84dc-16d11c68c7fc", - PrevPageCursorId = "e8ef4b77-6fbb-4c05-a4bf-afc9d8709fba", - PerPage = 967, + Types = new string[]{"cashback", "exchange_inflow", "topup"}, + From = "2021-09-05T06:44:01.000000Z", + To = "2020-10-14T01:18:45.000000Z", + NextPageCursorId = "6dd14e7e-5638-4902-81cb-a0185959ff6d", + PrevPageCursorId = "e93949cf-e08a-46ce-bbd9-55031442dcd8", + PerPage = 281, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,15 +186,15 @@ public async Task ListTransactionsV29() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - Description = "vA", - TransactionId = "WCZ", + Description = "ce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzry", + TransactionId = "GRNkAeSH", IsModified = false, - Types = new string[]{"exchange_outflow", "expire"}, - From = "2017-11-17T08:07:31.000000+09:00", - To = "2016-08-16T03:34:17.000000+09:00", - NextPageCursorId = "1ff17578-7bf5-4e4e-981f-2973ace14362", - PrevPageCursorId = "b4518284-4ab8-4fcb-b49d-5308630a6058", - PerPage = 250, + Types = new string[]{"expire", "topup", "payment"}, + From = "2020-05-01T18:04:20.000000Z", + To = "2021-09-07T23:55:30.000000Z", + NextPageCursorId = "5fcd5437-265b-46d8-8081-5f3706143e05", + PrevPageCursorId = "1a0a7af2-ad93-4e89-9e39-0928d69b0d5c", + PerPage = 423, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,16 +209,16 @@ public async Task ListTransactionsV210() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - CustomerName = "Q60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQrrg", - Description = "eXzyNXNrNkeWa9hWsLSo6RhlRrNdmMatyDW12s5SKsd", - TransactionId = "6", - IsModified = true, - Types = new string[]{"payment", "topup", "expire", "cashback", "exchange_outflow", "exchange_inflow"}, - From = "2024-09-04T04:24:24.000000+09:00", - To = "2024-02-12T22:55:12.000000+09:00", - NextPageCursorId = "7f4a29fb-6264-4bd5-a2ca-617f8c00bcb2", - PrevPageCursorId = "a558e74e-1e3e-496b-b090-4022ccefa593", - PerPage = 387, + CustomerName = "8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98", + Description = "f3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRt", + TransactionId = "mknLVk7hQO", + IsModified = false, + Types = new string[]{"exchange_outflow", "exchange_inflow", "cashback", "expire", "payment"}, + From = "2020-12-02T05:29:29.000000Z", + To = "2022-02-09T17:20:58.000000Z", + NextPageCursorId = "e5b630a8-6881-4a04-8d83-81465bf9cfa5", + PrevPageCursorId = "bdbe4cff-86e8-422a-a0a9-f10b73fdd11b", + PerPage = 827, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -233,17 +233,17 @@ public async Task ListTransactionsV211() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - CustomerId = "0cb5257e-06c4-4f39-aca8-3084552820d8", - CustomerName = "Rln1g4q1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoyWD", - Description = "3BHeU5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsi", - TransactionId = "l1b", + CustomerId = "9d99c341-5555-4bb2-894c-ad6eb8ec2dca", + CustomerName = "GL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpK", + Description = "eG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG", + TransactionId = "9bLFf", IsModified = true, - Types = new string[]{"exchange_outflow"}, - From = "2020-12-13T17:11:14.000000+09:00", - To = "2017-01-03T15:50:21.000000+09:00", - NextPageCursorId = "e35dea43-f02e-4644-882a-8c066fb50996", - PrevPageCursorId = "75781691-1e86-4405-98ab-af438b1c72bc", - PerPage = 727, + Types = new string[]{"payment", "cashback", "topup", "exchange_inflow"}, + From = "2022-09-13T20:18:07.000000Z", + To = "2023-09-26T20:31:25.000000Z", + NextPageCursorId = "6abc9db9-7c38-4cdd-9601-a9f053d20a4f", + PrevPageCursorId = "ab3f5867-04a3-49bb-ad88-c58f0213e999", + PerPage = 868, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -258,18 +258,18 @@ public async Task ListTransactionsV212() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - TerminalId = "48c165a2-5d8d-49e1-899e-149a652a7026", - CustomerId = "7a2313ea-1d76-4096-8358-cd59c0a594b9", - CustomerName = "buv1P", - Description = "GDaqpxNAcB7XJ2PMH0HA7mMCxlziaJ", - TransactionId = "np", + TerminalId = "15cbab96-7008-4b38-b0fc-29ae27c00c53", + CustomerId = "98d4869b-13b7-42d7-955d-8695dbb97e9d", + CustomerName = "iumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3", + Description = "9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf", + TransactionId = "ESdF", IsModified = true, - Types = new string[]{"payment"}, - From = "2023-11-06T02:07:59.000000+09:00", - To = "2015-12-31T19:26:51.000000+09:00", - NextPageCursorId = "c1016f8a-80b6-4770-a4f9-4b8d34ec7872", - PrevPageCursorId = "44f3e66a-4837-4e59-ac8e-02456a5f329b", - PerPage = 355, + Types = new string[]{"exchange_inflow", "payment", "expire", "exchange_outflow", "topup"}, + From = "2022-06-06T10:38:03.000000Z", + To = "2022-11-23T05:39:52.000000Z", + NextPageCursorId = "5d685570-9b2e-403c-850a-60b143b8297c", + PrevPageCursorId = "bd2b7e86-c9fd-459e-b9e7-5db8278cb9b9", + PerPage = 627, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -284,19 +284,19 @@ public async Task ListTransactionsV213() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - ShopId = "9ad53da0-9335-432d-89a3-b100c69ddefd", - TerminalId = "81ee872d-0442-48c9-a2d0-8a7e3e902777", - CustomerId = "e273e881-ba5a-4a57-a21b-a2f050c5d9ae", - CustomerName = "tKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiyd", - Description = "wYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1", - TransactionId = "Kexb2ZIYN0", - IsModified = false, - Types = new string[]{"expire", "payment", "exchange_outflow", "cashback"}, - From = "2016-10-28T02:52:27.000000+09:00", - To = "2018-09-27T04:45:54.000000+09:00", - NextPageCursorId = "7c2f279c-8f5e-4ea3-8444-8e805b506c51", - PrevPageCursorId = "66af633c-a0d9-4df0-956b-13821993f6b9", - PerPage = 255, + ShopId = "006d11ab-04d5-4f0b-bf1d-902772835f67", + TerminalId = "55325684-d1fd-4d11-96b8-2131a83d9ba4", + CustomerId = "95901060-912a-477d-9314-936851642711", + CustomerName = "6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un", + Description = "nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHG", + TransactionId = "ImjW3", + IsModified = true, + Types = new string[]{"exchange_outflow", "expire", "exchange_inflow"}, + From = "2022-04-02T04:19:54.000000Z", + To = "2022-09-02T08:24:37.000000Z", + NextPageCursorId = "63e5715b-e038-487b-9715-19b9ff9442aa", + PrevPageCursorId = "9a3946e8-cfe8-49eb-b09f-c5596e9aa017", + PerPage = 728, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -311,20 +311,20 @@ public async Task ListTransactionsV214() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - OrganizationCode = "8--3tn45---3w33v-", - ShopId = "83231620-d1f9-4379-b584-12daee5db26e", - TerminalId = "dbaf36b4-5131-4b2e-bcd6-56fa68c4f08b", - CustomerId = "1bbff35f-9fcc-4a5b-8b0d-c1913ac4c00c", - CustomerName = "g3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61", - Description = "u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ", - TransactionId = "nedbEkL6V", + OrganizationCode = "1sxp-", + ShopId = "5afd0db1-785d-48fb-85d4-5797d56626da", + TerminalId = "713d02df-bad6-45fd-b269-b22386f4452e", + CustomerId = "4ac97787-846d-4758-99bc-153beaf7ae51", + CustomerName = "2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4Uw", + Description = "xtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5", + TransactionId = "UqQsbMF", IsModified = false, - Types = new string[]{"exchange_inflow", "expire", "cashback", "payment"}, - From = "2025-06-25T14:19:14.000000+09:00", - To = "2022-10-08T22:47:58.000000+09:00", - NextPageCursorId = "32342add-60ff-48af-993e-73911594d243", - PrevPageCursorId = "9739c57d-1a3b-499d-9afd-b1c6fff44c5b", - PerPage = 652, + Types = new string[]{"topup", "expire", "exchange_inflow", "exchange_outflow", "cashback", "payment"}, + From = "2020-02-03T08:11:05.000000Z", + To = "2023-06-29T18:25:12.000000Z", + NextPageCursorId = "30f1ff9d-ef59-4f88-953a-1d6e057e9d65", + PrevPageCursorId = "4860306d-5194-4efa-9c52-df967e6670e4", + PerPage = 861, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -339,21 +339,21 @@ public async Task ListTransactionsV215() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - PrivateMoneyId = "2e148e30-fc59-47ea-9872-2207f18fbb19", - OrganizationCode = "1-t-e--04Ot94OKjz8d6h-qC-6-286-", - ShopId = "d60cebfe-0d6a-4e00-9b99-55b59bf59b5b", - TerminalId = "4bdc0dcb-300d-4bd0-b7a9-919b7ba6d043", - CustomerId = "7baf8881-af29-4361-9ad8-292a917c9de0", - CustomerName = "5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq", - Description = "k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1z", - TransactionId = "eU", + PrivateMoneyId = "037875d2-a2cf-48cb-a21d-4c4705c5bba4", + OrganizationCode = "-X2-C07GVrnb4d-B4--", + ShopId = "34dc55ac-a31b-4d3e-ad69-82ee07a1bdec", + TerminalId = "301a1fbb-1b9e-48be-938a-00ff3831334a", + CustomerId = "41652a06-e107-4103-a2df-97e77f4ab73e", + CustomerName = "COpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXf", + Description = "zIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTq", + TransactionId = "NfSRiXL", IsModified = false, - Types = new string[]{"topup", "exchange_inflow", "cashback", "expire"}, - From = "2025-05-30T19:30:32.000000+09:00", - To = "2022-05-21T06:00:03.000000+09:00", - NextPageCursorId = "5afb7b67-e2da-40fa-924f-b15d9d1f50de", - PrevPageCursorId = "f67ec3a2-30de-4429-8668-de0637c40a05", - PerPage = 942, + Types = new string[]{"exchange_outflow", "payment", "cashback", "topup", "exchange_inflow", "expire"}, + From = "2020-03-21T03:35:25.000000Z", + To = "2021-01-28T09:27:41.000000Z", + NextPageCursorId = "eb184385-8def-41e0-a634-4d0f5c103d4e", + PrevPageCursorId = "1c990833-aae0-4762-985c-e437b7a43332", + PerPage = 122, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListTransfers.cs b/src/PokepayPartnerCsharpSdk.Test/TestListTransfers.cs index 8639319..ff0feaa 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListTransfers.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListTransfers.cs @@ -38,7 +38,7 @@ public async Task ListTransfers1() { try { Request.ListTransfers request = new Request.ListTransfers() { - Description = "MByCBNzcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclk", + Description = "G6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -53,8 +53,8 @@ public async Task ListTransfers2() { try { Request.ListTransfers request = new Request.ListTransfers() { - TransferTypes = new string[]{"transfer", "topup"}, - Description = "GdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGaMjb1sugqjEeek3DeIDBfKsRBbYLkU2TfJXzuBqGFPReFsmxaxT8Xwuc649dznjsqwx", + TransferTypes = new string[]{"campaign", "transfer", "coupon", "cashback", "payment"}, + Description = "z14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A8", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -69,9 +69,9 @@ public async Task ListTransfers3() { try { Request.ListTransfers request = new Request.ListTransfers() { - TransactionTypes = new string[]{"topup"}, - TransferTypes = new string[]{"topup", "payment", "transfer", "expire", "cashback", "campaign", "coupon", "exchange"}, - Description = "7lUTrE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7", + TransactionTypes = new string[]{"cashback", "transfer", "expire", "topup"}, + TransferTypes = new string[]{"payment", "campaign", "exchange", "topup", "expire", "coupon", "cashback", "transfer"}, + Description = "I5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -87,9 +87,9 @@ public async Task ListTransfers4() try { Request.ListTransfers request = new Request.ListTransfers() { IsModified = true, - TransactionTypes = new string[]{}, - TransferTypes = new string[]{"expire", "cashback", "payment", "coupon", "exchange", "topup", "campaign"}, - Description = "EHafl1jNP9k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wT", + TransactionTypes = new string[]{"cashback", "transfer", "payment", "topup"}, + TransferTypes = new string[]{"topup", "payment", "cashback"}, + Description = "hZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -104,11 +104,11 @@ public async Task ListTransfers5() { try { Request.ListTransfers request = new Request.ListTransfers() { - PrivateMoneyId = "0f33e66f-b147-4f38-9e06-4dec221eb2d4", - IsModified = false, - TransactionTypes = new string[]{"expire", "cashback"}, - TransferTypes = new string[]{}, - Description = "3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnlZj6NtOwX2F", + PrivateMoneyId = "756e8b6f-d54a-4a6e-8836-7b9aa432b39e", + IsModified = true, + TransactionTypes = new string[]{"cashback", "payment"}, + TransferTypes = new string[]{"expire", "topup", "exchange", "coupon", "cashback", "payment", "campaign", "transfer"}, + Description = "mDSuxOmphkziTG6p4H", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -123,12 +123,12 @@ public async Task ListTransfers6() { try { Request.ListTransfers request = new Request.ListTransfers() { - TransactionId = "78077849-9638-4957-b2b1-9233645b802d", - PrivateMoneyId = "dd10ed5b-bb0d-4db6-a239-e1016769233c", - IsModified = false, - TransactionTypes = new string[]{"cashback"}, - TransferTypes = new string[]{"campaign", "expire"}, - Description = "kgSmtEHAWzKVmwmq", + TransactionId = "6c924988-2fac-4d73-be4c-ba65f1e586c9", + PrivateMoneyId = "f563105d-0b63-433c-8e19-9089b8670c72", + IsModified = true, + TransactionTypes = new string[]{"topup", "cashback"}, + TransferTypes = new string[]{"exchange", "expire"}, + Description = "JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9Yu", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -143,13 +143,13 @@ public async Task ListTransfers7() { try { Request.ListTransfers request = new Request.ListTransfers() { - CustomerName = "4ax1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI21M9POKUqkrXtAeLmERqX5bwDROtzb2hizqeaCyQXA4kt1s5Izg", - TransactionId = "41894be6-ab1c-4ff4-aa4e-dc29ad9f99cf", - PrivateMoneyId = "90fb40c3-2181-4d17-a5ac-b8e53b832669", - IsModified = true, - TransactionTypes = new string[]{"transfer", "payment", "expire", "cashback"}, - TransferTypes = new string[]{"transfer", "payment", "exchange", "campaign", "coupon"}, - Description = "YSYsKX6oU3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn9tkKJsfEeEirDJBvMOLUpWvpkfaB", + CustomerName = "KsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXH", + TransactionId = "fcbcc1a5-4a92-4a8d-870a-23d365c8b97d", + PrivateMoneyId = "1b07a123-ec2d-4656-9767-ecd67903e927", + IsModified = false, + TransactionTypes = new string[]{"exchange", "expire", "payment", "cashback", "transfer"}, + TransferTypes = new string[]{"topup", "exchange", "coupon", "expire", "cashback", "campaign", "payment"}, + Description = "1wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Ho", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -164,14 +164,14 @@ public async Task ListTransfers8() { try { Request.ListTransfers request = new Request.ListTransfers() { - CustomerId = "6f051cf7-6341-421b-8841-1b059b50e50e", - CustomerName = "ugbJ1KgmPIm", - TransactionId = "a4290564-61f7-4861-9054-ea42e5d8f963", - PrivateMoneyId = "8081632b-6313-49ce-9c23-13c01ea6c6db", - IsModified = false, - TransactionTypes = new string[]{"topup", "transfer", "exchange", "cashback", "expire"}, - TransferTypes = new string[]{"coupon", "transfer", "expire", "cashback", "topup", "payment", "campaign"}, - Description = "6a6zzUqrHdosHdbmLywqukvEUDGTtuu5mLHhGQ9yekqoyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMg", + CustomerId = "78bb4967-bd05-4214-a6b0-e86b4f1fab38", + CustomerName = "xuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8", + TransactionId = "9e59eb11-cf66-4d10-9b6d-c40f4e141921", + PrivateMoneyId = "a7d8b2b3-88bd-41e0-8651-e9feedc2402f", + IsModified = true, + TransactionTypes = new string[]{"transfer", "expire", "cashback", "exchange"}, + TransferTypes = new string[]{"expire", "exchange", "transfer", "payment", "topup"}, + Description = "bGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsird", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,15 +186,15 @@ public async Task ListTransfers9() { try { Request.ListTransfers request = new Request.ListTransfers() { - ShopName = "qN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHb", - CustomerId = "1ed972a8-3141-4d37-88b7-fb81cf4ce2a9", - CustomerName = "c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZocfpIFBg2EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQALktsxpQNr6y6a28m0nRuldHpSu", - TransactionId = "78d7cfbc-3145-4c55-80f0-c0db8db53c64", - PrivateMoneyId = "2110b750-36e9-471a-87e5-d182a7e1bb14", - IsModified = false, - TransactionTypes = new string[]{"payment", "transfer", "expire", "topup", "cashback"}, - TransferTypes = new string[]{"expire"}, - Description = "8DwInc5YWbNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtE", + ShopName = "b8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe", + CustomerId = "293c3c2c-1733-429b-b035-fcc211734ff2", + CustomerName = "uF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLv", + TransactionId = "a76fc7ae-3bca-4b02-8064-e3b10a1d36b8", + PrivateMoneyId = "d3fa4246-66b7-4ced-a773-de567fb84543", + IsModified = true, + TransactionTypes = new string[]{"payment", "transfer"}, + TransferTypes = new string[]{"exchange", "topup", "cashback", "campaign"}, + Description = "3pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,16 +209,16 @@ public async Task ListTransfers10() { try { Request.ListTransfers request = new Request.ListTransfers() { - ShopId = "99d8bfa6-cdbc-4cfb-bf9d-99682ad2b310", - ShopName = "NUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2", - CustomerId = "109bcb65-21a0-4a80-9592-07d98f0852cc", - CustomerName = "a0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoM", - TransactionId = "f1ba2b2c-fd52-49fc-ae36-9c12371dd43c", - PrivateMoneyId = "42ad658a-8b05-422f-ba6f-ea415772ec64", + ShopId = "96063097-7148-4834-bcc2-2b542745e7b2", + ShopName = "dLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eH", + CustomerId = "98d160ee-3bce-4079-9cb5-1a0601a109b4", + CustomerName = "9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnl", + TransactionId = "0834f167-d21f-4e27-8704-a0188cb3bb01", + PrivateMoneyId = "e5797c89-913d-4d0e-a2b8-40a6168f505d", IsModified = false, - TransactionTypes = new string[]{"cashback", "payment", "exchange", "topup", "expire"}, - TransferTypes = new string[]{"transfer", "payment", "campaign", "topup", "cashback"}, - Description = "UYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYd", + TransactionTypes = new string[]{"topup", "payment", "exchange", "expire", "transfer", "cashback"}, + TransferTypes = new string[]{"exchange", "topup", "coupon", "cashback"}, + Description = "eP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNH", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -233,17 +233,17 @@ public async Task ListTransfers11() { try { Request.ListTransfers request = new Request.ListTransfers() { - PerPage = 515, - ShopId = "6a3ec452-18dd-421b-9554-bbd7177b8922", - ShopName = "bMgZiB4q5yXIKvcyeytZUeCOzn479", - CustomerId = "3a3308d1-c8b7-4ee5-88ab-ef37193f4c02", - CustomerName = "CQ6mogsi4OQ6jQwMdVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa5", - TransactionId = "3b1a15b1-9b42-4a36-bd96-a9fe1d2f57be", - PrivateMoneyId = "55dca8d2-adfb-40f5-a8ce-52c854013e57", - IsModified = false, - TransactionTypes = new string[]{"exchange", "topup", "expire", "cashback", "transfer", "payment"}, - TransferTypes = new string[]{"coupon", "exchange"}, - Description = "7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB9HjzBAZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDv", + PerPage = 9411, + ShopId = "e38a02c1-943f-4a12-956e-343d0dab3e81", + ShopName = "qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015U", + CustomerId = "4ee9c33e-9bc4-4039-b171-0fe0c2f5e900", + CustomerName = "TdX", + TransactionId = "b90d6aa9-883e-4480-84ee-d9ebc868e291", + PrivateMoneyId = "d5469691-3f11-44c0-8c1e-e05bc3c7b948", + IsModified = true, + TransactionTypes = new string[]{"expire", "payment", "exchange", "transfer", "topup"}, + TransferTypes = new string[]{"payment", "cashback", "coupon", "transfer", "expire", "campaign", "topup", "exchange"}, + Description = "28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -258,18 +258,18 @@ public async Task ListTransfers12() { try { Request.ListTransfers request = new Request.ListTransfers() { - Page = 8525, - PerPage = 5484, - ShopId = "f5f1477e-936b-465a-adcd-9acdc0a980e4", - ShopName = "EANfWVavAje3PJg4zkA5", - CustomerId = "2774fea8-e864-461d-8ef7-c85f74dd2f52", - CustomerName = "rAEDCEBzCTk0pNAGkxkj3y6QjLE9oTv9S3Zg4O5dK9OBTn3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT", - TransactionId = "d51214b2-f1e4-4413-bfdf-1c6a0783a521", - PrivateMoneyId = "e59b8422-1cbe-4137-bb26-9fc05796d9cf", - IsModified = true, - TransactionTypes = new string[]{"expire", "topup", "cashback", "exchange", "transfer", "payment"}, - TransferTypes = new string[]{"exchange", "transfer", "coupon", "cashback", "topup", "campaign", "expire"}, - Description = "92da7QYy7V605lzcBixerwgOsZo2yFQXi", + Page = 3297, + PerPage = 441, + ShopId = "955006fc-2f46-4207-9653-5e4434697ccd", + ShopName = "5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5r", + CustomerId = "7eb27e58-03c0-4fb0-9b72-e8561aec20a1", + CustomerName = "mpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDf", + TransactionId = "1f3e21d5-f316-4cf4-807d-2fb459bdb925", + PrivateMoneyId = "982f1d5e-d2d9-4167-8979-01da54ab9d00", + IsModified = false, + TransactionTypes = new string[]{"cashback", "payment", "expire", "topup", "transfer"}, + TransferTypes = new string[]{"exchange", "payment", "expire", "campaign"}, + Description = "ShoExxXDz", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -284,19 +284,19 @@ public async Task ListTransfers13() { try { Request.ListTransfers request = new Request.ListTransfers() { - To = "2017-03-25T19:51:58.000000+09:00", - Page = 743, - PerPage = 1404, - ShopId = "bc8b9977-a824-4af9-8550-7d6b6d7cd0cd", - ShopName = "jwK5UmBamQcUvvHD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDiVxdn1z0TuA7dLQ8GnuuGnm3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVCDKp", - CustomerId = "accd0114-0c80-4788-a939-888e90ba54d4", - CustomerName = "vCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8SDS6L7O6ohLm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFslSf8NaBTyV6GBT8tDHI0zWcr0sMpkdiHOOwl5xIQiAP4UplfuFUQK5yc0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE", - TransactionId = "8b5e7d34-c5dd-4e6c-9181-4e70f8b495b3", - PrivateMoneyId = "dffc31a9-312d-41d3-beb7-c95476e42ecd", - IsModified = false, - TransactionTypes = new string[]{"transfer", "exchange", "expire"}, - TransferTypes = new string[]{"topup", "exchange"}, - Description = "wce18e7Eq5OqWuTabdRaaHOyfGqVUncX", + To = "2022-04-04T13:09:11.000000Z", + Page = 622, + PerPage = 5213, + ShopId = "84ad7475-84bd-4aaa-9f30-bd4020d89d8a", + ShopName = "mtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq", + CustomerId = "b20ca7b2-a03e-49c3-90a5-b390f50ba945", + CustomerName = "ph5LyiHrKKZ", + TransactionId = "3fedc792-2f3a-46c8-8090-5459edb3ce95", + PrivateMoneyId = "46ffd7a7-b5e5-4add-acc1-a3090d5b7b9d", + IsModified = true, + TransactionTypes = new string[]{"cashback", "topup", "transfer", "payment"}, + TransferTypes = new string[]{"exchange", "coupon", "payment"}, + Description = "fNhFwjSSUkqouGV2ULftf3KLiOm0u6Od", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -311,20 +311,20 @@ public async Task ListTransfers14() { try { Request.ListTransfers request = new Request.ListTransfers() { - From = "2025-02-20T11:29:06.000000+09:00", - To = "2024-11-22T04:02:16.000000+09:00", - Page = 6159, - PerPage = 5803, - ShopId = "140be565-e1c7-498f-b95c-3a5ab1c7b7f8", - ShopName = "bEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39ScasZnA58jo0hnztlMdM7BVfn4iFYyJJXfrDUn2Z5d", - CustomerId = "3bf5ee54-37c2-4a3d-8de8-b1d96c82b74d", - CustomerName = "OaLFSQqsldJHk3l4cpZ7fJl29A3O6y0fQnXOgwkIth5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrPufrwL5Z4qM5cyeftMbZhJuNsCdqVbAgLZQKQXblhvdQVC38rMOaKHSf5htPpycWdWsbduWB", - TransactionId = "45cb87ba-4103-493f-b874-eba442a390e6", - PrivateMoneyId = "591dba67-4531-42cb-ace9-1b755c257583", - IsModified = true, - TransactionTypes = new string[]{}, - TransferTypes = new string[]{"coupon", "payment", "expire", "exchange", "topup", "transfer", "cashback"}, - Description = "o61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNiX5kIXisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM5mH", + From = "2021-06-05T17:48:04.000000Z", + To = "2020-12-26T02:42:27.000000Z", + Page = 218, + PerPage = 6793, + ShopId = "66729419-18d7-478c-8d83-149b011f45e1", + ShopName = "6BMdHbor9Bi8VjYj", + CustomerId = "ed0ac265-39c1-40c6-9eb8-7fe0ee0b134e", + CustomerName = "8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU", + TransactionId = "d59e9431-15a1-4f54-944e-4e02a1dc8d30", + PrivateMoneyId = "d8651879-e2d8-4d24-b687-def752387178", + IsModified = false, + TransactionTypes = new string[]{"cashback"}, + TransferTypes = new string[]{"expire", "payment", "topup"}, + Description = "klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCId", }; Response.PaginatedTransfers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListTransfersV2.cs b/src/PokepayPartnerCsharpSdk.Test/TestListTransfersV2.cs index f4cbcd6..bdd3032 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListTransfersV2.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListTransfersV2.cs @@ -38,7 +38,7 @@ public async Task ListTransfersV21() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - To = "2018-05-11T05:19:09.000000+09:00", + To = "2021-08-19T09:40:54.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -53,8 +53,8 @@ public async Task ListTransfersV22() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - From = "2017-07-31T16:13:57.000000+09:00", - To = "2016-03-19T16:27:03.000000+09:00", + From = "2021-06-29T12:37:03.000000Z", + To = "2021-12-08T00:35:28.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -69,9 +69,9 @@ public async Task ListTransfersV23() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - Description = "M3xNEFCgQheyCbSnP7P0SqnjQ", - From = "2023-11-29T02:11:22.000000+09:00", - To = "2025-07-27T19:27:02.000000+09:00", + Description = "yGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1Uy", + From = "2023-05-04T18:11:47.000000Z", + To = "2021-03-13T04:02:07.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -86,10 +86,10 @@ public async Task ListTransfersV24() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - TransferTypes = new string[]{}, - Description = "aBHzjlAdXU9fbl4BElEfYJcTmiRof0lbldCRsSSTgoxqh3aCnDQum7xlHp8mSoN73gaH3XPjunt8NgffostplBJ13qPcXVXQ9E7OqefuC0zsB8aQbgel1VX", - From = "2025-01-18T15:07:34.000000+09:00", - To = "2021-03-22T14:00:02.000000+09:00", + TransferTypes = new string[]{"exchange"}, + Description = "e7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4", + From = "2020-06-04T08:56:37.000000Z", + To = "2020-09-02T23:21:56.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -104,11 +104,11 @@ public async Task ListTransfersV25() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - PerPage = 37, - TransferTypes = new string[]{"topup", "transfer", "exchange", "payment", "campaign", "cashback", "expire"}, - Description = "CGfzH0EqAidHGV4baZPNRUSJ9iQNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVaS0Zi07XrJykFEWCqS7fIGsgSUetvz", - From = "2020-09-09T02:03:39.000000+09:00", - To = "2016-04-05T23:50:38.000000+09:00", + PerPage = 297, + TransferTypes = new string[]{"payment", "topup", "transfer", "exchange"}, + Description = "jBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSs", + From = "2022-06-21T00:34:38.000000Z", + To = "2023-01-26T05:28:13.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -123,12 +123,12 @@ public async Task ListTransfersV26() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - PrevPageCursorId = "0cc5caad-c5df-42ff-a39a-abf9f061bb59", - PerPage = 778, - TransferTypes = new string[]{"exchange", "payment", "expire", "cashback", "campaign", "transfer"}, - Description = "aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gveWK49xDzlQxtC3xLL1ERUl6NhqKkDSvghab5bsImY7PcHPZH7mHIXsOqC2xcKBYhL1xCfnaEpDLcNgoBzsuiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVHFftM1EZPsd7jOCTvYgQY", - From = "2017-10-20T17:12:18.000000+09:00", - To = "2025-08-04T05:32:07.000000+09:00", + PrevPageCursorId = "65886f64-2c16-4b5e-99fb-6b8d8458ed96", + PerPage = 177, + TransferTypes = new string[]{"campaign", "coupon"}, + Description = "UMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3", + From = "2022-01-05T07:30:06.000000Z", + To = "2022-09-20T11:11:38.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -143,13 +143,13 @@ public async Task ListTransfersV27() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - NextPageCursorId = "ffcc2619-eace-4b54-9800-845bed88840a", - PrevPageCursorId = "72dca3b3-3afb-4159-9533-0a06b76c73f1", - PerPage = 550, - TransferTypes = new string[]{"expire", "exchange", "coupon", "campaign", "payment", "transfer"}, - Description = "b1wlkuiN7kKWKF", - From = "2024-02-23T19:10:44.000000+09:00", - To = "2017-10-30T02:54:59.000000+09:00", + NextPageCursorId = "672d3cd6-b0a8-4d1c-99e8-a6e2786c5ce8", + PrevPageCursorId = "d2e01834-8f52-4a8d-ac00-450c88ec6fd7", + PerPage = 677, + TransferTypes = new string[]{"coupon", "topup", "payment", "campaign"}, + Description = "Hu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBp", + From = "2021-12-11T01:14:52.000000Z", + To = "2023-07-19T13:57:18.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -164,14 +164,14 @@ public async Task ListTransfersV28() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - TransactionTypes = new string[]{"payment", "expire", "exchange", "transfer", "topup"}, - NextPageCursorId = "cc5793a9-9740-4acc-b5cc-d7c83fb2979c", - PrevPageCursorId = "1fa89fb4-6c04-4825-8548-5503cb38f593", - PerPage = 666, - TransferTypes = new string[]{"topup", "cashback", "expire", "campaign", "exchange", "payment", "coupon", "transfer"}, - Description = "ZSoJ1krFHQyhzGXerHPOPDvrwRgeSOaGF6stofVWAQmmxPEjbZK4rVxAUW7FWHk", - From = "2019-11-12T16:18:05.000000+09:00", - To = "2024-08-22T15:04:57.000000+09:00", + TransactionTypes = new string[]{"cashback", "transfer", "topup"}, + NextPageCursorId = "71a10e9c-187a-4707-b33a-b446ff587ac8", + PrevPageCursorId = "627187ae-eb4c-4e7b-b9d0-62683691a03d", + PerPage = 496, + TransferTypes = new string[]{"transfer", "exchange", "coupon", "cashback", "expire", "payment"}, + Description = "kH0DrThI9ndCARX9iZh", + From = "2023-04-15T01:18:56.000000Z", + To = "2020-06-27T04:09:49.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,15 +186,15 @@ public async Task ListTransfersV29() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - IsModified = true, - TransactionTypes = new string[]{"cashback", "expire", "topup", "transfer"}, - NextPageCursorId = "421fe718-1a23-43bd-b946-4ea756a0a87f", - PrevPageCursorId = "7df66bce-4fba-4261-99a4-e72c7eb00710", - PerPage = 597, - TransferTypes = new string[]{"campaign", "cashback", "transfer", "exchange", "coupon", "expire"}, - Description = "xMPy8uYVQrlAwBlTLDHylYVoU0Lud9b5MHdM8UnuwQ7jNoaulXZjgrVDfW2ufNp0gAs9phyFh2aSmdruAKFNN9YCEWSULZdpylXeF6qvGwUl7ATMaf3NqLOcKmTPNREiEdfOxleM", - From = "2019-02-19T07:53:50.000000+09:00", - To = "2020-12-07T15:19:29.000000+09:00", + IsModified = false, + TransactionTypes = new string[]{"payment"}, + NextPageCursorId = "edffb40e-1a9b-43bb-9db8-cf55d7d5c222", + PrevPageCursorId = "c89b84e9-ec6a-4f1f-850f-3693c4fe4126", + PerPage = 351, + TransferTypes = new string[]{"expire", "cashback"}, + Description = "iBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUA", + From = "2022-06-10T13:23:32.000000Z", + To = "2022-04-23T08:03:19.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,16 +209,16 @@ public async Task ListTransfersV210() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - PrivateMoneyId = "a7ab0171-ace2-4c31-bc3a-2385a67c8119", - IsModified = true, - TransactionTypes = new string[]{"exchange", "expire", "cashback", "transfer", "topup", "payment"}, - NextPageCursorId = "a3779551-4e6f-4159-b267-b9338c890ba2", - PrevPageCursorId = "cd9a9f7e-4a90-4557-8b2d-b7081e607630", - PerPage = 29, - TransferTypes = new string[]{"expire", "campaign", "exchange", "topup", "transfer", "payment", "cashback"}, - Description = "D8anN0lX3R6Ngh2OAi1BcnwfTRLJa4uoIhpR40nORwuCknsFuOeDw3ETEoYbDEhr0AwKkiQOHCQCIIRDiJ5EWSp", - From = "2016-08-07T15:07:23.000000+09:00", - To = "2017-04-07T08:10:39.000000+09:00", + PrivateMoneyId = "e56cdcc7-1bfc-447a-bb2c-7e9111b2eb35", + IsModified = false, + TransactionTypes = new string[]{"topup", "expire", "transfer", "exchange", "cashback"}, + NextPageCursorId = "5d38423f-2fe8-46a4-b5e3-6fa2e3178dbd", + PrevPageCursorId = "cc78835a-29a4-4328-a4b4-2aa7de9c2765", + PerPage = 957, + TransferTypes = new string[]{"topup", "expire"}, + Description = "0f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJ", + From = "2023-02-21T18:00:02.000000Z", + To = "2020-05-02T07:51:01.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -233,17 +233,17 @@ public async Task ListTransfersV211() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - TransactionId = "3e79df5b-2543-493c-a3d0-166d6f2a2534", - PrivateMoneyId = "df043dae-95c3-42f5-bc82-052e3f1e4bea", - IsModified = true, - TransactionTypes = new string[]{"expire"}, - NextPageCursorId = "47390fe9-c2be-4279-a1d2-fa888658b8ff", - PrevPageCursorId = "1bc74e0f-49d0-4190-9f8e-9b3c23b4deba", - PerPage = 867, - TransferTypes = new string[]{}, - Description = "2CSzS35RxVGrM7sDhsRor5EZrBgBnWdBpXW3vXZAsIGmxl3OdV3odlFFoKvu4lobeulXI7c3F9nyrjjRiAP0nDGe4yWdLtrR0H47hbbDvB2dkQWYC4RWqJwsq2yT7AWpCDkyLBkYzAxe", - From = "2022-06-02T20:11:33.000000+09:00", - To = "2024-03-06T17:07:18.000000+09:00", + TransactionId = "9c7e72ce-9e99-46ce-8094-8676f95241d5", + PrivateMoneyId = "7e366dc3-7d1e-4b30-a271-44099d6dc000", + IsModified = false, + TransactionTypes = new string[]{"exchange"}, + NextPageCursorId = "16cc8c94-13f6-42df-9219-346dde3ce47e", + PrevPageCursorId = "0f6eaf64-0989-4e35-80c9-d304590cdca9", + PerPage = 185, + TransferTypes = new string[]{"coupon", "cashback"}, + Description = "GpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwi", + From = "2021-12-13T09:20:57.000000Z", + To = "2022-07-11T16:53:15.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -258,18 +258,18 @@ public async Task ListTransfersV212() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - CustomerName = "aKowuUfekyaJIsuHhxZpopNYyv6dLAyty2EMgPVlahlWYdbEevpLkzdUFCwG4QGOnpUXmwhMFkO9ufFPOzF9Lvv7JJIkMwpNGlwPY7w3AePumXzLvyF75pQlwzsKLA3j0RsOTGgnfI7tlICoQDpnLAiZiYSVIBpBUCCSgk4gnk7sP6E17lkMgQrA88yuG2X4KRlpHewo2CgFQkdXPF4V9XHbL6z", - TransactionId = "ac8402d9-d4be-42a2-9836-36fda0e2681f", - PrivateMoneyId = "ae9c68f6-ac88-4403-b177-a00ea980a824", - IsModified = false, - TransactionTypes = new string[]{}, - NextPageCursorId = "54095ac5-2b5b-4850-885c-80674df51347", - PrevPageCursorId = "0cf9d1ee-3d7c-4c45-a4dc-58818680db7a", - PerPage = 873, - TransferTypes = new string[]{"expire", "exchange", "topup"}, - Description = "vJwcetItJxO93cN0lVNG0lwTGLR8ci2cIIE66fhj2n6iiZ64HpvFGkJr1uo4NLstnS7EAbDgQaYkUrDsQyk3kwOisNW9XsMHBVPsrs", - From = "2020-04-28T07:40:36.000000+09:00", - To = "2021-05-10T11:39:15.000000+09:00", + CustomerName = "v4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRW", + TransactionId = "bc1e782c-abc3-4059-ad73-53f73a4ea6df", + PrivateMoneyId = "da553f85-d736-4a56-92c2-0f95e9bc6266", + IsModified = true, + TransactionTypes = new string[]{"topup"}, + NextPageCursorId = "28058465-86ae-48ef-a0d4-aca810e6a992", + PrevPageCursorId = "75d6bb30-4079-4e2f-ad0f-4bb6f0b251ae", + PerPage = 109, + TransferTypes = new string[]{"cashback", "topup", "payment", "expire", "exchange", "campaign"}, + Description = "yMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vUL", + From = "2020-04-15T05:25:39.000000Z", + To = "2023-08-01T18:44:38.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -284,19 +284,19 @@ public async Task ListTransfersV213() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - CustomerId = "94842fa3-bd3d-4cee-8cc7-f3bac2e3b387", - CustomerName = "RYzu4noxPXNWpdUvBBp2JsuVIINCRpxja7me48LNXqpqJtjZwJILsuUBm8J0tu2v6zDKp9iO7Ari3UHmo6XPE5Oqy1DljVh9nsqgzongKg5SFSpcaiWqMVEyXiabD2fPkrS1NvYbmwucdTPjBOMyHVeFGY5vB7gjE0J3rzoZQgeuXW4rw3Ob3VUIWbzDljJ6klDtciJUcw1wir4yYsQVBNqeX", - TransactionId = "b90ba9ec-b9ef-4b44-9d40-f22925676de2", - PrivateMoneyId = "e391a7fa-c31f-4ca8-8912-f47a98f537c7", - IsModified = true, - TransactionTypes = new string[]{"cashback", "transfer", "expire", "exchange", "topup", "payment"}, - NextPageCursorId = "de09912b-d2c4-4501-ab4f-8366da047e2c", - PrevPageCursorId = "493c338e-9a8a-4b4d-a2bc-18c1aef25ecb", - PerPage = 64, - TransferTypes = new string[]{"campaign"}, - Description = "aiYXr4rnNnjCoeQHMuXiGNUysmU86lvAOTbcLzXO1sbMRuBNUlL6K0ReLv75kg6qcs3cEpI1m3wABqtL3bdaVTKdkTjUxGpAh3awQssfAXqJYYr4ARYbJcmLujs894lRg4qB30GRMkbzDn742v8m6fDAksXCcjSnMwkyUVD7C", - From = "2023-03-19T11:45:26.000000+09:00", - To = "2016-01-31T10:08:28.000000+09:00", + CustomerId = "f9e3f1bf-b679-4331-8689-01cb37ded2e4", + CustomerName = "Ttu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6Amswd", + TransactionId = "7c9090c0-2b41-4ecd-a81c-611f42162e33", + PrivateMoneyId = "8d8c83c9-134a-42f2-af77-70d6ac0fd2e2", + IsModified = false, + TransactionTypes = new string[]{"payment", "topup"}, + NextPageCursorId = "886f57cd-b8c3-4574-bf68-1c8c6d131169", + PrevPageCursorId = "b3d7d3fd-6bf6-44bb-b124-78e1020de332", + PerPage = 838, + TransferTypes = new string[]{"cashback", "topup", "exchange", "payment", "campaign"}, + Description = "mJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5o", + From = "2023-02-06T21:30:34.000000Z", + To = "2021-07-10T19:40:56.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -311,20 +311,20 @@ public async Task ListTransfersV214() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - ShopName = "SrG8bUcu2404OwW2YlKo3D8R7F9uqtTYDUe0c6WMBb0vMyrrNo2CtAij6bFWlBc9nMouBhD3xaVyDbF9dQAdVbIjdKodnIqsg2hwfCC3ynrJLnPSb5d8avvWNGGZpHcQub7jyKGPEze4eDg0kaj205Q9Vfs0xg", - CustomerId = "729bdee4-7557-499a-a36c-2245e0eaa60c", - CustomerName = "jRqPOb8BVVabHLEG4agkq2G8IRGQBS0nchLLndRaY2NqmWOdlkOhTjC67yWAbgIrPt858HfVRa8DX5UPvkC2RO0Ka4", - TransactionId = "a322c46c-e859-4f0e-9819-b202f428fdd8", - PrivateMoneyId = "acb9f39f-4c79-4a5e-b68d-aef6fe24aaa4", + ShopName = "n0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THno", + CustomerId = "e39440a4-a963-49e9-baeb-a2423dd79910", + CustomerName = "JOk", + TransactionId = "852fd018-fd23-481b-9cc4-a333ad15e046", + PrivateMoneyId = "1589b225-610f-4e5b-b677-e4abeeaa079e", IsModified = true, - TransactionTypes = new string[]{"expire", "transfer", "exchange", "cashback"}, - NextPageCursorId = "1aa9fcaa-f274-4dec-9c33-8bf9bba73084", - PrevPageCursorId = "e60a1778-d12d-48e3-8c6c-d9d714a99e92", - PerPage = 468, - TransferTypes = new string[]{"payment", "transfer", "exchange"}, - Description = "oZ5q4f3l3OfQm9YtxuJKrDFgfnOa5xAhF9FsFDzTIAFGDPhpBgKNmzEARJ1rvmqI1bSsRkkjQVB7WPQBN4OQef6", - From = "2020-12-03T00:53:05.000000+09:00", - To = "2021-01-12T06:05:52.000000+09:00", + TransactionTypes = new string[]{"payment", "transfer", "topup", "cashback", "expire"}, + NextPageCursorId = "39868594-5690-4157-a312-0714d16fcf5b", + PrevPageCursorId = "523ae08d-4892-443c-8a10-e7edffe29c6d", + PerPage = 681, + TransferTypes = new string[]{"coupon", "cashback"}, + Description = "he3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNa", + From = "2021-09-22T02:26:26.000000Z", + To = "2023-06-20T15:39:02.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -339,21 +339,21 @@ public async Task ListTransfersV215() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - ShopId = "b36f0050-1d9d-4c84-8b4a-aa2c6e02eb9a", - ShopName = "eX4akuWpKD9afhWN8gpYbk1UQRVGeT6q9QlLL4St0RhV6KdSsO2fKUxMoBriyYb61zvPjBcIHUY8RekKTAhSuM7Lo0VuZ1eCkX9fHokIFlVQAOjB0XTIEf02Fg3NvwAf7hOlSBfFEUcOQMXEYHzF8m9cIjwUyTMaVMoVAP5OP1CjryzsDN5Z0UkOPXKep1jFsPNeua1jB7iZEF7xhaxWIxTjjuPniB6yr4Okg2Udv9iXSqMQb8J", - CustomerId = "da2527b3-0369-451c-91d3-264ab7f167a2", - CustomerName = "eJic2mGuJKmsKLeWViwh5Xh0Ohe1EHst26OluNAixs6BC1rh1DjTMJERyJtkUyg63OuNEg3mOoFwMhlx1RPa6KYFReAbXhU3xeAmdgIIk86pUwNP4PXVypEGcP3yMzT6mxM4uuK6GdmBVGY71PucWuEB8iBjiFIbSubHrvAi7K4jy", - TransactionId = "f2b91d0b-d0e6-48bf-93b9-5c649e892ee7", - PrivateMoneyId = "e8344131-4f9d-47fc-b57e-6c5342a14181", - IsModified = false, - TransactionTypes = new string[]{"payment", "cashback", "topup", "transfer", "expire", "exchange"}, - NextPageCursorId = "8c0f7836-23a0-46af-aabc-9e1f54a4f048", - PrevPageCursorId = "156e173b-31b3-4d0d-b48d-b5d508ccab2d", - PerPage = 607, - TransferTypes = new string[]{"cashback", "topup", "payment", "expire", "exchange", "coupon", "transfer"}, - Description = "iuk2Hs0mRi4FH4wAH9Jfj7o054MsL4b1CJFFK6iXZLbDkWhxmVZQrN7vHF2MDKVtEIQupvmKHRwHKhrE1cew1CNfgi7sglFQ4wI7YctoKArmPX6ICAqae4Gsnk7CCks4Hk5SfM8qCg753Xc8s", - From = "2025-01-05T20:39:41.000000+09:00", - To = "2020-12-02T18:50:37.000000+09:00", + ShopId = "9e72d8c4-4848-4989-b378-16e1c362db35", + ShopName = "ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyK", + CustomerId = "03721c8e-3199-4ccc-9e08-7f5b43c17edf", + CustomerName = "nZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU", + TransactionId = "1adae630-42ec-4a6e-8a93-fabd82af7659", + PrivateMoneyId = "5b332c25-6f7f-43d7-b7db-2bcd67e65e57", + IsModified = true, + TransactionTypes = new string[]{"expire", "topup"}, + NextPageCursorId = "8b5b9e65-d196-4f6a-bc45-6407db70a31d", + PrevPageCursorId = "f7242d6f-92ad-43ac-98e9-548625533f65", + PerPage = 921, + TransferTypes = new string[]{"campaign", "cashback", "coupon"}, + Description = "TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6K", + From = "2023-04-01T18:42:52.000000Z", + To = "2022-12-31T00:33:54.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListUserAccounts.cs b/src/PokepayPartnerCsharpSdk.Test/TestListUserAccounts.cs index c2475c9..2784fa5 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListUserAccounts.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListUserAccounts.cs @@ -25,7 +25,7 @@ public async Task ListUserAccounts0() { try { Request.ListUserAccounts request = new Request.ListUserAccounts( - "9d33d9f7-9445-4a64-8f50-7e4757d26b58" + "f7badafa-54a1-4511-b337-e4aa1c1fe652" ); Response.PaginatedAccountDetails response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListUserAccounts1() { try { Request.ListUserAccounts request = new Request.ListUserAccounts( - "9d33d9f7-9445-4a64-8f50-7e4757d26b58" + "f7badafa-54a1-4511-b337-e4aa1c1fe652" ) { - PerPage = 2445, + PerPage = 5145, }; Response.PaginatedAccountDetails response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task ListUserAccounts2() { try { Request.ListUserAccounts request = new Request.ListUserAccounts( - "9d33d9f7-9445-4a64-8f50-7e4757d26b58" + "f7badafa-54a1-4511-b337-e4aa1c1fe652" ) { - Page = 6688, - PerPage = 5523, + Page = 7996, + PerPage = 3122, }; Response.PaginatedAccountDetails response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListWebhooks.cs b/src/PokepayPartnerCsharpSdk.Test/TestListWebhooks.cs index 9962b7e..a47f575 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListWebhooks.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListWebhooks.cs @@ -38,7 +38,7 @@ public async Task ListWebhooks1() { try { Request.ListWebhooks request = new Request.ListWebhooks() { - PerPage = 9727, + PerPage = 1599, }; Response.PaginatedOrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -53,8 +53,8 @@ public async Task ListWebhooks2() { try { Request.ListWebhooks request = new Request.ListWebhooks() { - Page = 51, - PerPage = 1133, + Page = 8293, + PerPage = 6946, }; Response.PaginatedOrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestRefundExternalTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestRefundExternalTransaction.cs index 9ab9f11..861a9a9 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestRefundExternalTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestRefundExternalTransaction.cs @@ -25,7 +25,7 @@ public async Task RefundExternalTransaction0() { try { Request.RefundExternalTransaction request = new Request.RefundExternalTransaction( - "10291337-f3f0-49f2-b464-2005f27706b2" + "7141b1d2-93ce-4ba0-8ec1-1cf697f2e9b7" ); Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task RefundExternalTransaction1() { try { Request.RefundExternalTransaction request = new Request.RefundExternalTransaction( - "10291337-f3f0-49f2-b464-2005f27706b2" + "7141b1d2-93ce-4ba0-8ec1-1cf697f2e9b7" ) { - Description = "jpaf36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTCVmm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G7cLV", + Description = "oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4h", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestRefundTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestRefundTransaction.cs index 0cf1f0e..4e2ba78 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestRefundTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestRefundTransaction.cs @@ -25,7 +25,7 @@ public async Task RefundTransaction0() { try { Request.RefundTransaction request = new Request.RefundTransaction( - "9100076f-67d0-4dc9-87b5-a5ced7d6c5bf" + "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1" ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task RefundTransaction1() { try { Request.RefundTransaction request = new Request.RefundTransaction( - "9100076f-67d0-4dc9-87b5-a5ced7d6c5bf" + "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1" ) { - ReturningPointExpiresAt = "2018-09-05T19:46:12.000000+09:00", + ReturningPointExpiresAt = "2021-05-18T00:32:02.000000Z", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task RefundTransaction2() { try { Request.RefundTransaction request = new Request.RefundTransaction( - "9100076f-67d0-4dc9-87b5-a5ced7d6c5bf" + "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1" ) { - Description = "MU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302sQl233vCfto", - ReturningPointExpiresAt = "2024-06-12T00:56:29.000000+09:00", + Description = "4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2Jl", + ReturningPointExpiresAt = "2021-08-12T02:32:59.000000Z", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestRequestUserStats.cs b/src/PokepayPartnerCsharpSdk.Test/TestRequestUserStats.cs index 3931142..3f1b6b5 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestRequestUserStats.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestRequestUserStats.cs @@ -25,8 +25,8 @@ public async Task RequestUserStats0() { try { Request.RequestUserStats request = new Request.RequestUserStats( - "2016-01-19T17:34:09.000000+09:00", - "2016-11-27T20:09:42.000000+09:00" + "2023-11-17T15:01:05.000000Z", + "2024-01-10T09:29:09.000000Z" ); Response.UserStatsOperation response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestSendEcho.cs b/src/PokepayPartnerCsharpSdk.Test/TestSendEcho.cs index 5a8f9ed..6db076b 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestSendEcho.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestSendEcho.cs @@ -25,7 +25,7 @@ public async Task SendEcho0() { try { Request.SendEcho request = new Request.SendEcho( - "b7Vd" + "DgdY" ); Response.Echo response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateAccount.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateAccount.cs index ef272f3..50c42e1 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateAccount.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateAccount.cs @@ -25,7 +25,7 @@ public async Task UpdateAccount0() { try { Request.UpdateAccount request = new Request.UpdateAccount( - "7258f572-09ca-4705-87c3-65929d895a30" + "553fd4da-7231-4218-aeb3-2d714f66622b" ); Response.AccountDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task UpdateAccount1() { try { Request.UpdateAccount request = new Request.UpdateAccount( - "7258f572-09ca-4705-87c3-65929d895a30" + "553fd4da-7231-4218-aeb3-2d714f66622b" ) { - CanTransferTopup = true, + CanTransferTopup = false, }; Response.AccountDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task UpdateAccount2() { try { Request.UpdateAccount request = new Request.UpdateAccount( - "7258f572-09ca-4705-87c3-65929d895a30" + "553fd4da-7231-4218-aeb3-2d714f66622b" ) { - Status = "active", - CanTransferTopup = false, + Status = "pre-closed", + CanTransferTopup = true, }; Response.AccountDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task UpdateAccount3() { try { Request.UpdateAccount request = new Request.UpdateAccount( - "7258f572-09ca-4705-87c3-65929d895a30" + "553fd4da-7231-4218-aeb3-2d714f66622b" ) { - IsSuspended = true, - Status = "pre-closed", - CanTransferTopup = true, + IsSuspended = false, + Status = "active", + CanTransferTopup = false, }; Response.AccountDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateBill.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateBill.cs index 284f11f..279d400 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateBill.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateBill.cs @@ -25,7 +25,7 @@ public async Task UpdateBill0() { try { Request.UpdateBill request = new Request.UpdateBill( - "7e557ab1-b846-48de-961d-a85370af08e4" + "7b13563f-52a4-4ad9-a683-55c84cee1a90" ); Response.Bill response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task UpdateBill1() { try { Request.UpdateBill request = new Request.UpdateBill( - "7e557ab1-b846-48de-961d-a85370af08e4" + "7b13563f-52a4-4ad9-a683-55c84cee1a90" ) { IsDisabled = true, }; @@ -57,9 +57,9 @@ public async Task UpdateBill2() { try { Request.UpdateBill request = new Request.UpdateBill( - "7e557ab1-b846-48de-961d-a85370af08e4" + "7b13563f-52a4-4ad9-a683-55c84cee1a90" ) { - Description = "DE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQ", + Description = "vN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFW", IsDisabled = true, }; Response.Bill response = await request.Send(client); @@ -75,10 +75,10 @@ public async Task UpdateBill3() { try { Request.UpdateBill request = new Request.UpdateBill( - "7e557ab1-b846-48de-961d-a85370af08e4" + "7b13563f-52a4-4ad9-a683-55c84cee1a90" ) { - Amount = 2320.0, - Description = "hRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeyb", + Amount = 4820.0, + Description = "1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2p", IsDisabled = true, }; Response.Bill response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs index d83b4e4..6773478 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs @@ -25,7 +25,7 @@ public async Task UpdateCampaign0() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ); Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task UpdateCampaign1() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1827247006, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task UpdateCampaign2() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - MaxTotalPointAmount = 6697, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1019556332, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task UpdateCampaign3() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - MaxPointAmount = 8893, - MaxTotalPointAmount = 9184, + MaxTotalPointAmount = 8352, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 712591019, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task UpdateCampaign4() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - ExistInEachProductGroups = false, - MaxPointAmount = 1564, - MaxTotalPointAmount = 8279, + MaxPointAmount = 5025, + MaxTotalPointAmount = 3969, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 981138288, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task UpdateCampaign5() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - MinimumNumberForCombinationPurchase = 4965, - ExistInEachProductGroups = false, - MaxPointAmount = 1408, - MaxTotalPointAmount = 8792, + ExistInEachProductGroups = true, + MaxPointAmount = 9684, + MaxTotalPointAmount = 9375, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1031147602, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +135,14 @@ public async Task UpdateCampaign6() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - ApplicableShopIds = new string[]{"7bd4c3f4-285f-4ec6-b92d-e4963b1408b5", "ec965208-976d-4f50-a78f-d259cd7c463b", "a4e846b7-749a-47ad-81b1-b871175e12f2", "dd25521a-9a53-421e-acb8-52e43e9cd148", "50b232ba-258a-4129-8df3-10743abc7da1", "ca661cdd-4e6c-409f-91f2-f05a131d3b7b", "42ac9d64-fe7e-47c7-8cda-160cfe3c7307", "48d57dac-436e-49f4-a554-8f97db55811d"}, - MinimumNumberForCombinationPurchase = 6668, - ExistInEachProductGroups = false, - MaxPointAmount = 2155, - MaxTotalPointAmount = 5048, + MinimumNumberForCombinationPurchase = 2340, + ExistInEachProductGroups = true, + MaxPointAmount = 1626, + MaxTotalPointAmount = 5953, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 384433878, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -157,15 +157,15 @@ public async Task UpdateCampaign7() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - 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"}}}, - ApplicableShopIds = new string[]{"996f0dfa-21a4-4e3b-b44d-5825ae85e714", "8213b0c4-700c-4d79-9351-53adf4f13e70", "bdc3c976-ca0e-4ceb-ae86-13d5f257297e", "30ee5a5e-5f66-4b87-a20c-c3a9ab45ade6"}, - MinimumNumberForCombinationPurchase = 8140, + ApplicableShopIds = new string[]{"f934281f-712c-470b-8810-edf5defae4c7"}, + MinimumNumberForCombinationPurchase = 1075, ExistInEachProductGroups = false, - MaxPointAmount = 3606, - MaxTotalPointAmount = 9261, + MaxPointAmount = 1754, + MaxTotalPointAmount = 997, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 586908290, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,16 +180,16 @@ public async Task UpdateCampaign8() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - ApplicableDaysOfWeek = new int[]{5, 1, 3, 1, 1, 4, 2, 2, 6, 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"}}}, - ApplicableShopIds = new string[]{"3b8281ba-94c7-4ff1-b699-e4174af5727f", "6bed9e34-01f1-4dd6-95ed-da16d5bb831e", "0fdbf6f2-7a9c-4f18-ae5a-a4ca4a2b4c00", "0f2db663-e75f-42e0-b01d-8cc68d93e369"}, - MinimumNumberForCombinationPurchase = 6872, - ExistInEachProductGroups = false, - MaxPointAmount = 7854, - MaxTotalPointAmount = 3913, + 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[]{"c07475ff-69d1-4d9f-a59a-b4c3fb061e0f", "8287ffb3-d8dd-40b9-8160-fda2aedeae97", "dfd8438c-4abb-4f6e-9a84-c942c72bd255", "0a12ce76-c634-4e15-8746-702cf4e47138", "8aa40edf-eede-4003-8bca-0ddd6539b922", "85395937-f655-46af-97fa-ccf96ccd7806"}, + MinimumNumberForCombinationPurchase = 4499, + ExistInEachProductGroups = true, + MaxPointAmount = 3600, + MaxTotalPointAmount = 7071, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 2667324, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -204,17 +204,17 @@ public async Task UpdateCampaign9() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - 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[]{5, 2, 6, 1, 0, 4, 4, 6, 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"}}}, - ApplicableShopIds = new string[]{"c8b82964-667e-4efc-b673-38b4ffb5898e", "a15ba08a-8d76-4632-a155-140c91c64e3e", "a71c3a69-09a2-42a3-89f4-71d02b00ecc7", "f73d8265-8135-4a4a-adbe-1b8e8cadcb33", "5ca30eed-b403-4a84-b084-801e96fd41af", "85cb5cf2-4d79-43e3-8eba-7eb27b726996", "f64f184f-3345-4006-b646-6c58deb31d38", "36fab59d-85d7-49fa-907a-047774c2bbc8"}, - MinimumNumberForCombinationPurchase = 3609, - ExistInEachProductGroups = false, - MaxPointAmount = 4728, - MaxTotalPointAmount = 2110, + ApplicableDaysOfWeek = new int[]{3, 1, 5, 6, 4, 1, 2, 3}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"dddd63af-fde3-486d-90c9-4571c3cdcfe4", "c95b2ba7-3998-43ed-8076-001fc0eaa9a0", "67fa75ba-82d4-473c-9638-899ef669e4d2", "ffbbc042-f8fa-4aa3-991a-425ffa6bdd70", "25556a15-a6de-4e08-b080-46e7eb6c87aa"}, + MinimumNumberForCombinationPurchase = 618, + ExistInEachProductGroups = true, + MaxPointAmount = 8579, + MaxTotalPointAmount = 2970, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 945599052, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -229,18 +229,18 @@ public async Task UpdateCampaign10() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - 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}}, 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, 4, 1, 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(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"0ef9b57a-665a-4123-8ebc-7ec9af7982e2", "beaf75a8-e557-4df7-9348-57a685bc251d", "c65e3e84-cff7-4d10-bd4b-4a7bf73c10db", "81eb9f43-9b8d-4fe7-98c3-a0534f5cc32a"}, - MinimumNumberForCombinationPurchase = 7211, + 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[]{5, 3, 3, 5, 2, 2, 4, 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"}}}, + ApplicableShopIds = new string[]{"b51020a3-76ad-44d1-9f3e-7d4426219476", "67d3e939-405b-4e54-8ed7-95b3ed4fd8df", "002e5c04-762f-46f4-af97-f56eecab59f2", "0c10f216-bbf5-44b5-843d-ac0159bd5f2e", "0cd2aef8-9e78-4f9b-92a7-f78d8c1b9d97", "d973c19d-9522-4edc-8731-d22eff86566b", "95479d96-ef22-497d-88e9-aa5200c399b4", "cd651564-4b61-44d4-9304-ed5456fd4db4", "75d3759f-b13f-4830-b1fb-a893c52a265e"}, + MinimumNumberForCombinationPurchase = 641, ExistInEachProductGroups = true, - MaxPointAmount = 8943, - MaxTotalPointAmount = 9846, + MaxPointAmount = 8666, + MaxTotalPointAmount = 3771, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1970190781, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -255,19 +255,19 @@ public async Task UpdateCampaign11() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - 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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + 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[]{5, 6, 3, 5, 0}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"3ca8903f-8fef-40f4-b1f1-f0ef0ab34959", "66859c9a-69e9-4786-8f02-00eb2ed71101", "d8090cb2-15e3-4c2a-8647-b01e562205bf", "9c3c66c0-3edb-49c7-9fee-5330f1b82939", "8a200df5-a0be-4bd4-a29e-678151cb44ae", "f2cf3baa-75a6-4296-be61-0cb1643d9e33", "15fdc838-de50-4810-8633-76323034208d", "6fa247e2-e217-4b5e-bcf4-79c1891bf727"}, - MinimumNumberForCombinationPurchase = 5988, - ExistInEachProductGroups = true, - MaxPointAmount = 3868, - MaxTotalPointAmount = 980, + ApplicableDaysOfWeek = new int[]{5, 3, 1, 2, 5, 0}, + 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[]{"9472aaef-7889-4004-b503-169ce226f420", "442ccffc-fa52-4cb8-a594-2c92aef5f4c8", "bded2d5b-1c2b-49c4-a521-1549582c3172", "09208be7-cd33-4a08-b83b-df143b10c829", "a7cbdf55-307b-4944-9c69-60f828163ca1", "2011ccde-7f52-47fb-825e-7ed14b48fd20", "98228a9f-6d1f-4f95-93a1-d14fb04b8819"}, + MinimumNumberForCombinationPurchase = 6753, + ExistInEachProductGroups = false, + MaxPointAmount = 3616, + MaxTotalPointAmount = 8953, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 2007692491, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -282,20 +282,20 @@ public async Task UpdateCampaign12() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - 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}}, 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[]{2, 6, 6, 2}, + 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}}}, + 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[]{2, 1, 1, 6, 4, 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"}}}, - ApplicableShopIds = new string[]{"a1f6cea0-8085-4fc0-96be-6259a43ef94c", "f5149d6d-6239-47b9-bc88-3b777929912c", "8eac2c27-01c5-45d6-add2-6a51fa17ea3f", "97db70b8-26f3-4dca-811e-fb111515e524", "bc28de15-8978-4573-9002-0149384c91a4", "2541df6e-c5c8-4cba-bdcf-3de5728a0c67", "d39e6c3a-f21a-4575-aa82-99b4c833e68f", "3aceeead-1975-40a2-ad97-443c19cdfb65", "c62c3841-fa2f-4823-9617-b16617c768ff"}, - MinimumNumberForCombinationPurchase = 609, + ApplicableShopIds = new string[]{"3ca2b36f-445f-4388-9206-17a809bf05f3"}, + MinimumNumberForCombinationPurchase = 4360, ExistInEachProductGroups = false, - MaxPointAmount = 3129, - MaxTotalPointAmount = 9368, + MaxPointAmount = 205, + MaxTotalPointAmount = 1554, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1273944928, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -310,21 +310,21 @@ public async Task UpdateCampaign13() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - PointExpiresInDays = 9711, 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}}, 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[]{6, 0}, - 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[]{"098579e1-a632-407a-928e-e1802de36c00", "5c72b81b-f693-49a0-8926-fafdb4d37e90", "98d8049f-d95e-4d26-aed2-5d9107e01ffd", "3baae479-a551-40ec-aab7-6f73f0733b1f", "f1af70fe-41aa-4937-8971-85589e834c2a", "417da6e3-ef86-479c-86bb-373ecf8c5508", "59db8bad-2a1e-4c9f-a443-6630e7bc2475", "e3a0f95d-2766-45e7-8ea5-321e74944b3c"}, - MinimumNumberForCombinationPurchase = 3481, - ExistInEachProductGroups = false, - MaxPointAmount = 6677, - MaxTotalPointAmount = 2094, + 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}}}, + 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[]{2, 6, 6, 4, 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(){{"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[]{"944f2b9a-63a3-4bce-af22-1b7f000d4946", "79e8a56c-c102-4cfd-8d84-85a9dc1fcc47", "ffd9c668-871b-4acf-8037-b0cdc78f776a", "57527f0a-d005-4fef-8d9f-45ae768bb684", "cc5754a9-a046-48e9-884c-6ca252efadf4", "0a61a44e-620d-4739-99bb-43f1a5f9db79", "fbc3dfb7-0fa0-418d-92de-2ab5ad53f953"}, + MinimumNumberForCombinationPurchase = 7142, + ExistInEachProductGroups = true, + MaxPointAmount = 1583, + MaxTotalPointAmount = 380, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 758756205, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -339,22 +339,22 @@ public async Task UpdateCampaign14() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - PointExpiresAt = "2018-02-25T16:27:46.000000+09:00", - PointExpiresInDays = 2412, - 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}}, 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, 3}, + PointExpiresInDays = 4021, + 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, 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"}}}, - ApplicableShopIds = new string[]{"47944fac-1065-4c41-bb3d-f7b2a8b19e6e", "5b8ac232-006c-46e0-9efe-39ff0de5e2c2", "ec4988a6-6ccf-453d-ba89-f54530812b39", "e25f24c8-ecb5-45d6-87fb-8c56275712d2", "b72a021b-7fb8-49ff-91d5-24b77696b5ae", "087154d1-74ea-4bba-a5bb-1228e8bd7f27"}, - MinimumNumberForCombinationPurchase = 9075, + ApplicableShopIds = new string[]{"9d8eff32-0a67-46be-aba9-107ac7504cab", "61133e28-ac19-4e28-b046-45c994583ee4", "fa490dce-6453-4da9-80e2-f47c7ebc6e9d"}, + MinimumNumberForCombinationPurchase = 2461, ExistInEachProductGroups = false, - MaxPointAmount = 6296, - MaxTotalPointAmount = 4966, + MaxPointAmount = 2718, + MaxTotalPointAmount = 6131, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1008028717, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -369,23 +369,23 @@ public async Task UpdateCampaign15() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - Status = "disabled", - PointExpiresAt = "2024-01-12T10:35:32.000000+09:00", - PointExpiresInDays = 9827, - IsExclusive = false, + PointExpiresAt = "2023-04-13T09:18:16.000000Z", + PointExpiresInDays = 7711, + 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}}}, - 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[]{1, 1, 1, 0, 0, 4, 3, 0, 0}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"0e02cfbc-9209-492d-afc6-53d765942e01", "2be0ad54-5308-4e2f-9100-66d8a88c6580", "ca0b8fc2-4545-4b88-b911-3508a484319a", "3ed39338-e04b-459d-a35c-23f3197d7d40", "22702930-9f0a-4180-a7b4-17d233754caf"}, - MinimumNumberForCombinationPurchase = 8963, - ExistInEachProductGroups = false, - MaxPointAmount = 8907, - MaxTotalPointAmount = 8292, + 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, 0, 0, 0, 2, 2, 6, 4, 4, 0}, + 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[]{"bfc5f093-73b5-4d99-b675-3f55f4a83851", "a630f16c-daff-46c8-88d7-61bde20bf32c", "a181a801-e19d-4c28-88e4-ef8b901c577b", "66bc007e-3ce6-44ca-877c-e54ba04921ca", "8b280d0c-f61f-4247-8acf-e45bf951b312"}, + MinimumNumberForCombinationPurchase = 4454, + ExistInEachProductGroups = true, + MaxPointAmount = 1008, + MaxTotalPointAmount = 948, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1535860290, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -400,24 +400,57 @@ public async Task UpdateCampaign16() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - Description = "kJnkv8b3lOd0jZSZisKJGtLxfbPFfa", Status = "disabled", - PointExpiresAt = "2024-08-16T02:43:38.000000+09:00", - PointExpiresInDays = 7041, + PointExpiresAt = "2021-07-26T18:15:19.000000Z", + PointExpiresInDays = 1584, 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}}, 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}}}, - ApplicableDaysOfWeek = new int[]{6, 5, 2, 5, 5, 4, 4, 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}}, 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[]{6, 6, 2, 0, 3, 3, 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"}}}, + ApplicableShopIds = new string[]{"a9d5b496-d67c-46f7-8a7d-122105f13f99", "9eec184d-c5d1-4662-9ef0-4903b4deb376", "cc61a1d7-3f64-4b8c-9218-e0db50c9a915", "109928c9-01be-4ee6-b0ea-619488a621b2", "c6ff9025-3d2d-414e-a347-9789832241f0", "74610764-1bb9-4e3a-abd4-6b3c53261b99"}, + MinimumNumberForCombinationPurchase = 9576, + ExistInEachProductGroups = false, + MaxPointAmount = 8807, + MaxTotalPointAmount = 5129, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1983410747, + }; + Response.Campaign 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 UpdateCampaign17() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + ) { + Description = "bzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEW", + Status = "enabled", + PointExpiresAt = "2024-01-15T11:19:12.000000Z", + PointExpiresInDays = 8185, + 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}}}, + 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, 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"}}}, - ApplicableShopIds = new string[]{}, - MinimumNumberForCombinationPurchase = 4263, + ApplicableShopIds = new string[]{"be4482f2-19a8-4bbf-b4d8-21e429fa81df", "ff911128-3feb-456a-830b-3c5a614a3ab6", "29cb2e06-054b-46de-8f94-8e15e0a7ed10", "03f1cb58-9114-46ad-abe9-3e4db23386f8", "db6524b1-25eb-437f-bd48-f496da81ff14"}, + MinimumNumberForCombinationPurchase = 2005, ExistInEachProductGroups = true, - MaxPointAmount = 1977, - MaxTotalPointAmount = 9561, + MaxPointAmount = 3646, + MaxTotalPointAmount = 7047, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1013151459, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -428,29 +461,30 @@ public async Task UpdateCampaign16() } [Test] - public async Task UpdateCampaign17() + public async Task UpdateCampaign18() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { Event = "topup", - Description = "Wqvm0QmTuUJdqTxvEdTrlIkQG", - Status = "disabled", - PointExpiresAt = "2017-08-20T16:30:57.000000+09:00", - PointExpiresInDays = 241, - IsExclusive = true, + Description = "Rx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A", + Status = "enabled", + PointExpiresAt = "2023-07-09T08:30:48.000000Z", + PointExpiresInDays = 9175, + IsExclusive = false, Subject = "money", - AmountBasedPointRules = new object[]{}, - ProductBasedPointRules = new object[]{}, - ApplicableDaysOfWeek = new int[]{4, 0, 1, 3, 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"}}}, - ApplicableShopIds = new string[]{"60565090-654f-46a2-a604-2ad8cefd3785"}, - MinimumNumberForCombinationPurchase = 2630, + 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}}, 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, 5, 4, 6, 4, 0, 0, 6, 3, 6}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"4209664d-71f4-4131-8e17-970797eeb9ce", "b4debd2e-9988-44de-bca4-ebfbdf4dde86", "366f3ad4-f330-4692-97cc-595bfb320709", "65140396-a9d3-45ee-979b-28f984eaa320", "b57a6fcc-cc43-4549-a9e1-10531e325c6d", "e449f5f8-c302-4da1-8f19-28e959b4c261", "86f68ee2-d2f9-4f81-832c-b146b6aec9bd"}, + MinimumNumberForCombinationPurchase = 8359, ExistInEachProductGroups = false, - MaxPointAmount = 8997, - MaxTotalPointAmount = 109, + MaxPointAmount = 1987, + MaxTotalPointAmount = 7704, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1377059414, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -461,30 +495,31 @@ public async Task UpdateCampaign17() } [Test] - public async Task UpdateCampaign18() + public async Task UpdateCampaign19() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - Priority = 3125, - Event = "topup", - Description = "v6PzPZ7WYdNdFH0K2AD1TKPyYWlsuXOaIHvkZ0hBxHL8", + Priority = 3198, + Event = "payment", + Description = "wMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z", Status = "enabled", - PointExpiresAt = "2017-07-01T12:07:26.000000+09:00", - PointExpiresInDays = 7463, + PointExpiresAt = "2021-09-09T22:47:13.000000Z", + PointExpiresInDays = 8459, 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}}, 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[]{5, 6}, + 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}}, 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[]{2, 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(){{"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[]{"75bbb86f-7ad4-45ee-9fc4-4ccace99aad6", "0dcfab19-9a46-4d4d-b308-872060dc9bf2", "33e207f6-4e66-466f-8060-c272a0cfc001", "d679d925-fe77-4354-8578-14d3f5458096", "da5e2038-cbc3-4a5d-927c-06dc4830b310", "71122891-6c8d-4ed5-8225-9537136e4cc0", "128dd1bb-d327-450e-ac7f-6d0cf6d01a25"}, - MinimumNumberForCombinationPurchase = 8441, + ApplicableShopIds = new string[]{"5b0a0651-0022-4737-b75b-702fbcc88cc2", "167e148a-f60d-4028-b971-afe9e382d27b", "ac0c702a-f3fa-4bab-8656-cfd1e7757485", "c6ef7a6f-5b16-4007-a53e-d10e90a9d33a", "f1fdb986-0a32-4cdc-a006-f6d824e8e2bd"}, + MinimumNumberForCombinationPurchase = 8762, ExistInEachProductGroups = true, - MaxPointAmount = 7911, - MaxTotalPointAmount = 8249, + MaxPointAmount = 3842, + MaxTotalPointAmount = 2335, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1928834827, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -495,31 +530,32 @@ public async Task UpdateCampaign18() } [Test] - public async Task UpdateCampaign19() + public async Task UpdateCampaign20() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - EndsAt = "2022-05-22T03:11:30.000000+09:00", - Priority = 145, - Event = "topup", - Description = "0xTZqtjlnCMFHx8TKGI2xE1BuKUao6Z6xonfMjSwz5WZMumkxzfJ30tPK0gRaUMP2gDk6hqbkZIVaXAnNHVk2JXX3zMOLBJZia176ashqVZt", + EndsAt = "2023-09-01T15:24:58.000000Z", + Priority = 105, + Event = "payment", + Description = "LVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTH", Status = "enabled", - PointExpiresAt = "2021-10-24T12:38:47.000000+09:00", - PointExpiresInDays = 6332, + PointExpiresAt = "2023-07-17T21:45:47.000000Z", + PointExpiresInDays = 9056, 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}}}, - 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}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"400d9271-27b9-4df4-807b-c687477b6cbe"}, - MinimumNumberForCombinationPurchase = 1596, + Subject = "money", + 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}}, 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"}}, 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[]{"98824c24-130e-49f3-bed7-bfe264b39175", "1aac2b3b-f01e-4795-a807-7c6e8a28f4e2", "fe882e92-953f-4649-9546-57bbd3e5dc6c", "784790ff-bb28-4966-8076-ca6ffc993de2", "f10e83a4-adcf-4220-9f9b-0b94919b3ce3", "0321583a-4e5d-44ec-86d8-244b2aca5de6"}, + MinimumNumberForCombinationPurchase = 4727, ExistInEachProductGroups = false, - MaxPointAmount = 2637, - MaxTotalPointAmount = 1816, + MaxPointAmount = 4370, + MaxTotalPointAmount = 6752, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 853454565, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -530,32 +566,33 @@ public async Task UpdateCampaign19() } [Test] - public async Task UpdateCampaign20() + public async Task UpdateCampaign21() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - StartsAt = "2018-06-28T14:08:42.000000+09:00", - EndsAt = "2019-02-27T01:49:21.000000+09:00", - Priority = 2614, + StartsAt = "2022-02-08T07:54:57.000000Z", + EndsAt = "2020-09-07T11:07:21.000000Z", + Priority = 6831, Event = "topup", - Description = "prLRU7zHjv8AVBjeNyLKs5OWxHdcCIY8xfr6CL909VJsJvEEnV3jRZx4bL3mKFhR8vX2cSSl7ObxLVY39aP4hWiGuhuMVGxVPfacjrslMZj02ZSvIS4FqKIGpu", + Description = "3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1cR5rMDg0iBD", Status = "enabled", - PointExpiresAt = "2018-12-29T06:22:51.000000+09:00", - PointExpiresInDays = 3013, - 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[]{0, 4, 2, 5, 6, 2, 2, 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"}}}, - ApplicableShopIds = new string[]{"98007463-c030-49ff-90bd-15f9714ae401", "c456749e-c37f-40c8-8a36-49c5893847ec", "6dcd5cc6-83bb-4da0-b38d-8f1d327b9d03", "a3d3c99b-8158-47a3-9f58-f6c1539ad975", "4d7883b1-22ba-4e67-9167-09a5e672cdf2", "6d7711a0-03c4-4955-8361-58f51a38be5d"}, - MinimumNumberForCombinationPurchase = 274, - ExistInEachProductGroups = true, - MaxPointAmount = 2543, - MaxTotalPointAmount = 1156, + PointExpiresAt = "2023-04-07T15:17:38.000000Z", + PointExpiresInDays = 9523, + 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}}}, + 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, 5, 1, 2, 0, 1, 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"}}}, + ApplicableShopIds = new string[]{"3d504807-f481-4765-a859-1e493ffa0d5a", "11327ae2-dcbf-427c-8d68-ee363a41cf25", "1e3e25cd-b710-462f-a6bf-f1a5becf2803"}, + MinimumNumberForCombinationPurchase = 956, + ExistInEachProductGroups = false, + MaxPointAmount = 1195, + MaxTotalPointAmount = 5716, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1065507945, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -566,33 +603,34 @@ public async Task UpdateCampaign20() } [Test] - public async Task UpdateCampaign21() + public async Task UpdateCampaign22() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "5b125eb3-76e1-4d13-96f2-b2c270d002c4" + "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" ) { - Name = "uJ4JjDHOBMd26S3mihK7G", - StartsAt = "2020-08-25T02:06:32.000000+09:00", - EndsAt = "2016-11-28T03:19:01.000000+09:00", - Priority = 2454, + Name = "8D4Ev7O7TGT70LQ2epxhXvfJrqwCwzvGv5tXB9341AdQSvr2jD2CPBEg6qDXhSH8ha", + StartsAt = "2020-08-30T01:31:18.000000Z", + EndsAt = "2023-01-24T22:16:42.000000Z", + Priority = 132, Event = "payment", - Description = "ouBdfj9baUMO0QAZUEFS2B", + Description = "0sDTnM", Status = "enabled", - PointExpiresAt = "2021-06-22T00:54:50.000000+09:00", - PointExpiresInDays = 9525, + PointExpiresAt = "2023-09-05T03:26:52.000000Z", + PointExpiresInDays = 5501, 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}}}, - 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[]{6, 2, 5, 5, 2, 1}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{}, - MinimumNumberForCombinationPurchase = 7183, - ExistInEachProductGroups = true, - MaxPointAmount = 8459, - MaxTotalPointAmount = 3442, + 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, 0, 2, 5, 3, 4, 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[]{"038ae224-1e11-4ec3-a480-679b5f9bb9b8", "3ff61aca-7aa0-405a-a31b-9df1690d0316", "87a1b3c9-e163-4b19-b15a-d62993f765c2", "fe70eb32-1f6e-4c7b-ab3e-941e87943882", "4492bd68-41ad-4777-b5d6-c2f5a680676e", "91621e6e-e6a4-4ee8-b239-6b1ac96133ac"}, + MinimumNumberForCombinationPurchase = 6654, + ExistInEachProductGroups = false, + MaxPointAmount = 7890, + MaxTotalPointAmount = 3579, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 286258961, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCashtray.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCashtray.cs index 4955439..06cfb0d 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCashtray.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCashtray.cs @@ -25,7 +25,7 @@ public async Task UpdateCashtray0() { try { Request.UpdateCashtray request = new Request.UpdateCashtray( - "c0d8a9a6-97df-4a41-aa40-a917e9db4704" + "a93d4ebb-a68b-4428-bc36-21b0137be536" ); Response.Cashtray response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task UpdateCashtray1() { try { Request.UpdateCashtray request = new Request.UpdateCashtray( - "c0d8a9a6-97df-4a41-aa40-a917e9db4704" + "a93d4ebb-a68b-4428-bc36-21b0137be536" ) { - ExpiresIn = 2674, + ExpiresIn = 4781, }; Response.Cashtray response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task UpdateCashtray2() { try { Request.UpdateCashtray request = new Request.UpdateCashtray( - "c0d8a9a6-97df-4a41-aa40-a917e9db4704" + "a93d4ebb-a68b-4428-bc36-21b0137be536" ) { - Description = "016ZjJCH7wtIwkByOxgZ1CmhlD7BVFzYE678HYgrDW8XfB04cuHe8uQqeJWnp68s54oON3JT7TlfvcjHRgsbjroXcf1fxLB1yf5dH6gwvhweVkrWRctnJ2TSLmfSkWFb6oLKvNkr7xERwVYEzuAqPS2Yq5Zx", - ExpiresIn = 819, + Description = "w3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o5Rc96wfmVrWrKd8ZckndPnp3nLoMele3p", + ExpiresIn = 4465, }; Response.Cashtray response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task UpdateCashtray3() { try { Request.UpdateCashtray request = new Request.UpdateCashtray( - "c0d8a9a6-97df-4a41-aa40-a917e9db4704" + "a93d4ebb-a68b-4428-bc36-21b0137be536" ) { - Amount = 5688.0, - Description = "wb6djbQEnxEVuuBukUKWopaaFtoO5CUO2HA5dwLtiNF6M5qahAMFoXb9rmaZQXIsaxB2CgIcPvFHqcQFB1Jdew", - ExpiresIn = 8998, + Amount = 4047.0, + Description = "b8vOALeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zqICt7BPEIsHw9i", + ExpiresIn = 2530, }; Response.Cashtray response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCheck.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCheck.cs index 3b0ac1e..b0d1ba4 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCheck.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCheck.cs @@ -25,7 +25,7 @@ public async Task UpdateCheck0() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ); Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task UpdateCheck1() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { IsDisabled = false, }; @@ -57,10 +57,10 @@ public async Task UpdateCheck2() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - BearPointAccount = "6c581b40-d716-4cb6-bb2d-a53fb4dc66c4", - IsDisabled = true, + BearPointAccount = "877b6ac5-dc4f-457a-9802-506ec699da52", + IsDisabled = false, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,10 +75,10 @@ public async Task UpdateCheck3() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - PointExpiresInDays = 7451, - BearPointAccount = "792bdbf5-cf7b-4ba7-b29d-010ce39e2734", + PointExpiresInDays = 8804, + BearPointAccount = "783b74e2-59cc-40cf-b329-934d2f2b98e9", IsDisabled = true, }; Response.Check response = await request.Send(client); @@ -94,11 +94,11 @@ public async Task UpdateCheck4() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - PointExpiresAt = "2019-10-20T16:52:25.000000+09:00", - PointExpiresInDays = 2498, - BearPointAccount = "d85ed61e-d41b-4fe2-9300-5387206512db", + PointExpiresAt = "2021-05-12T14:03:42.000000Z", + PointExpiresInDays = 6709, + BearPointAccount = "dcab8474-6c03-4cad-a76a-bf096ff41614", IsDisabled = false, }; Response.Check response = await request.Send(client); @@ -114,13 +114,13 @@ public async Task UpdateCheck5() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - ExpiresAt = "2016-05-03T06:58:13.000000+09:00", - PointExpiresAt = "2022-04-18T14:59:34.000000+09:00", - PointExpiresInDays = 8893, - BearPointAccount = "b909a660-f070-46bb-b6b2-446df95e6ed2", - IsDisabled = false, + ExpiresAt = "2022-07-26T06:58:09.000000Z", + PointExpiresAt = "2021-02-21T06:43:04.000000Z", + PointExpiresInDays = 9667, + BearPointAccount = "260816a3-b8c1-4552-9cae-d24f7d536370", + IsDisabled = true, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,13 +135,13 @@ public async Task UpdateCheck6() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - UsageLimit = 7732, - ExpiresAt = "2017-12-30T17:50:33.000000+09:00", - PointExpiresAt = "2020-03-31T18:46:08.000000+09:00", - PointExpiresInDays = 3172, - BearPointAccount = "84b1be46-1796-48e2-8f92-feda0b98c960", + UsageLimit = 2172, + ExpiresAt = "2022-12-08T17:40:49.000000Z", + PointExpiresAt = "2022-10-26T23:49:24.000000Z", + PointExpiresInDays = 2345, + BearPointAccount = "462b5b24-ccd2-465f-a5e3-3830ca957fea", IsDisabled = false, }; Response.Check response = await request.Send(client); @@ -157,14 +157,14 @@ public async Task UpdateCheck7() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - IsOnetime = true, - UsageLimit = 7833, - ExpiresAt = "2018-05-08T02:01:57.000000+09:00", - PointExpiresAt = "2019-01-03T16:09:37.000000+09:00", - PointExpiresInDays = 6396, - BearPointAccount = "4cfd3ec0-22a0-46a3-99cc-787138351fbb", + IsOnetime = false, + UsageLimit = 1372, + ExpiresAt = "2021-09-09T13:14:33.000000Z", + PointExpiresAt = "2021-12-26T21:39:57.000000Z", + PointExpiresInDays = 3119, + BearPointAccount = "861533ef-cd50-464e-a8eb-a55d2caf6f01", IsDisabled = true, }; Response.Check response = await request.Send(client); @@ -180,16 +180,16 @@ public async Task UpdateCheck8() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - Description = "J", + Description = "FwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ", IsOnetime = false, - UsageLimit = 1298, - ExpiresAt = "2022-03-01T10:57:19.000000+09:00", - PointExpiresAt = "2019-12-12T23:42:43.000000+09:00", - PointExpiresInDays = 1288, - BearPointAccount = "129bb347-e395-46ab-9fe6-a4c4fc12eb9f", - IsDisabled = false, + UsageLimit = 9059, + ExpiresAt = "2021-10-07T02:28:08.000000Z", + PointExpiresAt = "2021-04-24T12:53:16.000000Z", + PointExpiresInDays = 3008, + BearPointAccount = "0e137a4b-5f86-48b9-9f04-9d3aaee341d6", + IsDisabled = true, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -204,16 +204,16 @@ public async Task UpdateCheck9() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - PointAmount = 2921.0, - Description = "e5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y", + PointAmount = 3447.0, + Description = "N6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51", IsOnetime = true, - UsageLimit = 3336, - ExpiresAt = "2023-05-08T18:44:19.000000+09:00", - PointExpiresAt = "2019-03-27T11:00:52.000000+09:00", - PointExpiresInDays = 6, - BearPointAccount = "57940b40-7b35-4996-ba60-369098d386dc", + UsageLimit = 1057, + ExpiresAt = "2020-12-19T17:53:33.000000Z", + PointExpiresAt = "2023-07-04T09:11:48.000000Z", + PointExpiresInDays = 3649, + BearPointAccount = "591280a7-f0a7-40d5-b028-aa35a4710bd6", IsDisabled = true, }; Response.Check response = await request.Send(client); @@ -229,18 +229,18 @@ public async Task UpdateCheck10() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "1eb7e23c-75fa-4a72-8b61-5f24670c0887" + "7d79a965-78ad-4583-8e8a-7d887f966b29" ) { - MoneyAmount = 3746.0, - PointAmount = 1859.0, - Description = "5Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT", + MoneyAmount = 7176.0, + PointAmount = 3177.0, + Description = "AQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeu", IsOnetime = false, - UsageLimit = 3941, - ExpiresAt = "2022-08-18T09:14:23.000000+09:00", - PointExpiresAt = "2025-04-13T11:25:29.000000+09:00", - PointExpiresInDays = 7438, - BearPointAccount = "1a1d5c13-02b2-42a7-8b0b-91058ae50315", - IsDisabled = true, + UsageLimit = 3852, + ExpiresAt = "2021-06-20T12:42:25.000000Z", + PointExpiresAt = "2023-11-26T07:29:58.000000Z", + PointExpiresInDays = 720, + BearPointAccount = "a503d874-d430-4934-9da8-bd9696e081ca", + IsDisabled = false, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs index f9e1b46..9cdfd89 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs @@ -25,9 +25,9 @@ public async Task UpdateCoupon0() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 6442, + DiscountAmount = 4008, }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -42,10 +42,10 @@ public async Task UpdateCoupon1() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 1091, - Name = "VCcIXTPlbcMZgCJ9BjKA9LvljTLcW71b8cClVacDr5l3x4FVfYiLUL8Bb8dzaB45kELqQHfqMF0cAfS47CSQO", + DiscountAmount = 1135, + Name = "uqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzm", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -60,11 +60,11 @@ public async Task UpdateCoupon2() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 2422, - Description = "8c1i3feNO1qJBnpp3tyKjZPjTs65qzNTqIMvOUP7lDJ32SCMXHu4UsQsifzmvmEGKnmcQWOqm2b", - Name = "ZSUNMN2LXvZ3UB0bY6L3973iqLKkGFIZmfuXhD9mm06njf2aXb7PnD9gNpMDYfCPceKjPow2YL1adnoZFEUP94ii4uT2NJ6DSRSGMdhjjWzKEnHt1GlWmv2y5", + DiscountAmount = 7874, + Description = "IXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROF", + Name = "3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57ns", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -79,12 +79,12 @@ public async Task UpdateCoupon3() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 5994, - DiscountUpperLimit = 9907, - Description = "pGt0e4jNi92dahlnnkKHVszpYHPkZF0J60lUnUwRinT2la9EMVbGBQcWz4E8fUZnWcjAk0kMso3CQzadAG14rJr7OIiIwKYtNBzp8nODkJL8EIU81Vy5zPsQOGlQlr06Jl9JLWCZ8neyUVmWBR3xve7r3YSLXQYTyvYaaI2qvRlrSNIrRDPa1eyCiQOxDTwWc9gws9XAUrux74v2ITxjA0PgzICgqeJVlSY26G92wNF5", - Name = "9aZcAMQT3BxPWw78yOKfPR1NUJQvD2rVGC84JJKMYYu6jp9XJncsuSh46krybNv1zjGCQgXpBAn6vYjVqpA4IONiLV0kr6A1DgXWodpkxho8rBfuxAgk4G7K3E", + DiscountAmount = 6739, + DiscountUpperLimit = 3768, + Description = "T7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRsc", + Name = "SaTD", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -99,13 +99,13 @@ public async Task UpdateCoupon4() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 6626, - StartsAt = "2021-08-22T09:07:36.000000+09:00", - DiscountUpperLimit = 5214, - Description = "YbjyxowsbeNA1qdSnOGMCPl7IMBQKQv86A", - Name = "JZpBpvSAXbobD9Ki30vC5rrnazdVnK3PrJ5SiaT9q7d0MByh1", + DiscountAmount = 7708, + StartsAt = "2022-08-05T00:50:13.000000Z", + DiscountUpperLimit = 895, + Description = "UxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc", + Name = "wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPS", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -120,14 +120,14 @@ public async Task UpdateCoupon5() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 4146, - EndsAt = "2022-11-29T10:30:20.000000+09:00", - StartsAt = "2025-04-04T23:53:00.000000+09:00", - DiscountUpperLimit = 9276, - Description = "jie07UHeDFjaRvAps3KfAZfCcJF6TIEeRcrhiMDEAjwsoqC0B7Kcw0qagkhJ7wfZWTULKa8VECsBZr3IToxXjdyKGc7ZzHUV5fOm8mtNakhvcdUzoLcA59nUhEAXqtCyQcPmsvpgfmd8PIAhkngoJScrC1WRAvXHA", - Name = "TbSrzSbRU1v2KZFFhdMjCCzsHpBmrvRb2UjrX", + DiscountAmount = 9379, + EndsAt = "2021-12-12T06:52:59.000000Z", + StartsAt = "2023-05-03T02:56:24.000000Z", + DiscountUpperLimit = 207, + Description = "z8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHd", + Name = "hvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHL", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -142,15 +142,15 @@ public async Task UpdateCoupon6() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 2157, - DisplayStartsAt = "2017-04-25T12:23:12.000000+09:00", - EndsAt = "2016-07-13T05:33:26.000000+09:00", - StartsAt = "2025-05-29T02:46:42.000000+09:00", - DiscountUpperLimit = 7828, - Description = "g0KQCQJco6Fst7K2jJcCqUZTewzuJ3F92QKd3C9M0vBcKWIUBdcBNwq9T0OG7VRzcPfWGO1YJqrl83WexbWjPBIcMUJ3obVqULs7PsxGAUAdxQTQ69L5ufP3C8GoKbqWo6okozRxG7O1lnWZInpqxewkSnO8G8BVdp2SnU56fm1ftu8Rn", - Name = "deIRkNWykpBgBjKxJ1kVUP7sJk9W7sPqDCWwYS94nlMA9QMeCafNqHwyMdjdwcWi3JTYLChkb6TlitzWaW4uPhPny3cB55XyFtx17QBRLdwgp38D246Y", + DiscountAmount = 7503, + DisplayStartsAt = "2023-03-18T23:40:54.000000Z", + EndsAt = "2023-05-25T04:41:06.000000Z", + StartsAt = "2023-01-02T01:11:18.000000Z", + DiscountUpperLimit = 5761, + Description = "c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxl", + Name = "E1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLm", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -165,16 +165,16 @@ public async Task UpdateCoupon7() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 160, - DisplayEndsAt = "2017-01-03T22:43:55.000000+09:00", - DisplayStartsAt = "2021-01-11T10:54:42.000000+09:00", - EndsAt = "2022-02-09T06:02:03.000000+09:00", - StartsAt = "2024-08-25T11:42:33.000000+09:00", - DiscountUpperLimit = 6028, - Description = "evahES9poV0ViKFLpI4REDYgLWo2Q8cwkpiTfx0K3NI9FJ11nkGfRQlGszH71XXMwwageqdiCUtiam5OCYCyW06FKS14FS73G8a3ijeaDjTIJss0bIT0ZqOXGSTVH9BRjr8phyPclxsBq9XBmkTSfhHrb5sDnsI3ZWUf9QMTgobmXveIIZc15XikWWDvoW8CZvliqF7CSsjWcuOJS4Eh", - Name = "u4LwcLHvZh25xxfXebiI3VayaI3kTnTLIkpOXuMZobSfeWKzoEFQ5pyI5j9pCzj3hQwJJCjzGKx9aFgv0XlTl34KeRysjITa2wXz1O8xVGeOGcFlOxiVn", + DiscountAmount = 958, + DisplayEndsAt = "2023-02-24T03:06:35.000000Z", + DisplayStartsAt = "2020-05-07T20:47:00.000000Z", + EndsAt = "2022-09-30T23:08:11.000000Z", + StartsAt = "2020-12-27T04:31:53.000000Z", + DiscountUpperLimit = 8069, + Description = "cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6", + Name = "zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZr", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -189,17 +189,17 @@ public async Task UpdateCoupon8() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 6667, - IsDisabled = true, - DisplayEndsAt = "2025-03-17T16:58:48.000000+09:00", - DisplayStartsAt = "2019-06-02T15:45:22.000000+09:00", - EndsAt = "2018-01-13T13:03:43.000000+09:00", - StartsAt = "2019-08-18T21:59:16.000000+09:00", - DiscountUpperLimit = 6281, - Description = "0yLoByCmHUuVyH3cfcF8Pf92JXudRmeZmjiokTl117bHBnYglbQt4QBFDEJKi3AHyd9yQ5W9RMhIq1dhsWztxTud1TnBQZsbkdzCXTKKWD0fiDnREQQDwR5XEyIFeG77xZhQ031Bv0fXxSyFQJeZ6rdQ8b", - Name = "Bb1f9slLRuiYJe4XyJvTb23aa3twUxtKvikbKV7hqTJveoI19ynJs1QCqTRlC3W1MGePxsBFCAyv0dcBt87MHAdufVNZM7qsWa8JyqZo0jQRpDPE6rh6Ex", + DiscountAmount = 1595, + IsDisabled = false, + DisplayEndsAt = "2022-07-31T04:45:49.000000Z", + DisplayStartsAt = "2021-06-01T04:13:09.000000Z", + EndsAt = "2023-11-16T22:56:36.000000Z", + StartsAt = "2022-09-30T10:26:58.000000Z", + DiscountUpperLimit = 5229, + Description = "NU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN", + Name = "AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZn", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -214,18 +214,18 @@ public async Task UpdateCoupon9() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 1775, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2018-02-26T23:00:42.000000+09:00", - DisplayStartsAt = "2019-01-27T22:25:28.000000+09:00", - EndsAt = "2022-10-15T19:55:40.000000+09:00", - StartsAt = "2021-07-02T00:03:07.000000+09:00", - DiscountUpperLimit = 6670, - Description = "EW5yWSswalnNSPl4nKgIh67Gkz5WkqpvEXvT4G0zj9vSzfdqnwxVoVRAJZtMnbN2adZxWSJweQkjDaZNU8iBur4dbIER6acqYlwD", - Name = "KQEp9D3oXWbniSWqI7xTzrPkAXyiXMztQxtJ4M2WJmA50gKlydbRXM1sy2g1Pf0MqzXeXqK5rRD", + DiscountAmount = 4441, + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2021-10-13T10:15:58.000000Z", + DisplayStartsAt = "2023-10-05T04:37:14.000000Z", + EndsAt = "2020-06-23T13:16:45.000000Z", + StartsAt = "2022-10-30T00:24:12.000000Z", + DiscountUpperLimit = 6683, + Description = "zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5L", + Name = "wfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -240,19 +240,19 @@ public async Task UpdateCoupon10() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 4546, - IsPublic = true, - IsHidden = true, + DiscountAmount = 6583, + IsPublic = false, + IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2016-08-17T11:03:55.000000+09:00", - DisplayStartsAt = "2016-02-29T23:40:42.000000+09:00", - EndsAt = "2015-12-15T03:54:14.000000+09:00", - StartsAt = "2016-02-24T05:00:04.000000+09:00", - DiscountUpperLimit = 1793, - Description = "smVWyjay9TthXSYCbva0t32yWLYVWM4QhXAPz9W0Mxm5OYGh3N4Z6M9NXBY9oPVgI76tvDyB2DnUym9pFRmUved6upvYmgnlSSsYDRmoQAbzux2YVPLs6mqcLQO6KAfySYCh0uqCGrCwLPsZTQHaYj8b8oAQjqHWHEUSfBXgsFSQ", - Name = "YVjyMJi1osniwzvMM5724wrvJulOUj4A8M3jM0z", + DisplayEndsAt = "2021-05-26T05:29:54.000000Z", + DisplayStartsAt = "2021-04-09T21:59:10.000000Z", + EndsAt = "2024-01-28T22:17:32.000000Z", + StartsAt = "2022-06-04T00:21:11.000000Z", + DiscountUpperLimit = 8981, + Description = "RgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs", + Name = "5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uS", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -267,20 +267,20 @@ public async Task UpdateCoupon11() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 9559, - Code = "te9qDk", - IsPublic = false, - IsHidden = false, + DiscountAmount = 1259, + Code = "6uS", + IsPublic = true, + IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2019-05-13T02:10:08.000000+09:00", - DisplayStartsAt = "2015-10-28T22:28:37.000000+09:00", - EndsAt = "2017-04-04T03:41:13.000000+09:00", - StartsAt = "2025-01-06T07:43:26.000000+09:00", - DiscountUpperLimit = 1185, - Description = "Z2M4DgCUcWaYN25M17e8QItVUDPdnGbbjUMIkwxnSAoHyUqS2WrdyexDJw4m5W5NSAarqtGtlcKJp9gTWhEWSlBiVnl9lORTBFy0IWWO4H8KmbVB2M5EGOlNZgq", - Name = "vSi38sr7tIAdAm2GfCQqu6PVWox7elCTfrAqAyLdOvPV5cpp3AIIQZmW74G7CnN", + DisplayEndsAt = "2021-12-07T18:56:24.000000Z", + DisplayStartsAt = "2022-12-01T12:21:10.000000Z", + EndsAt = "2021-04-13T17:22:08.000000Z", + StartsAt = "2023-12-10T04:38:42.000000Z", + DiscountUpperLimit = 4190, + Description = "x7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12", + Name = "UeT7ThuLLgJ9PT2", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -295,21 +295,21 @@ public async Task UpdateCoupon12() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 7815, - UsageLimit = 8438, - Code = "PpYINeb", - IsPublic = false, + DiscountAmount = 8843, + UsageLimit = 6677, + Code = "kxOOzhTp", + IsPublic = true, IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2019-07-05T19:23:57.000000+09:00", - DisplayStartsAt = "2015-11-07T13:24:33.000000+09:00", - EndsAt = "2025-08-06T07:03:50.000000+09:00", - StartsAt = "2021-09-18T04:58:58.000000+09:00", - DiscountUpperLimit = 6091, - Description = "M9QJifASeEjt7rgfB4dUvUA5MkBayzjLixvqernP2ia0JTvsqFBudbGeZdEPGzzDd2lyZr3fyGm4G1h2gpnMz4EtR2vopXxSWiIg6gduAWVf9XkDSsioG64sbfbtlCMIRDD7seSSxbRy6UJ2yU6TRb2QsyUYaFBg0rLG7ixw8rumX9lPF6p8o2y11Yrgt4LCmHaJMs2PMcoeItTVcWkxXihexQXo31", - Name = "p3Wls1sE7BHULcZQtWWfaD4rWZB2GIm3dWvJq3fHzlHa1nO6pf4", + IsDisabled = true, + DisplayEndsAt = "2021-08-11T18:49:09.000000Z", + DisplayStartsAt = "2022-05-10T06:49:18.000000Z", + EndsAt = "2023-07-24T01:52:21.000000Z", + StartsAt = "2020-02-14T14:38:53.000000Z", + DiscountUpperLimit = 4031, + Description = "QXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26", + Name = "LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWm", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -324,22 +324,22 @@ public async Task UpdateCoupon13() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 3688, - MinAmount = 2653, - UsageLimit = 8482, - Code = "s9kLnk6c", - IsPublic = false, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2025-01-15T22:27:54.000000+09:00", - DisplayStartsAt = "2025-08-07T01:53:47.000000+09:00", - EndsAt = "2020-12-11T03:07:47.000000+09:00", - StartsAt = "2025-07-13T08:38:36.000000+09:00", - DiscountUpperLimit = 9290, - Description = "rPLyLIGGlYxmDF5NDmHAR3RBnK72f11paMW4hGPanWOZJLbDfcebA2uxdCspznoi6atFNTbrEABXoODKwUOy71jHzimbjyuBcqQnQ9Lj9uq1rjYyblkDRghHjQDZezbRZC9FxfNOIHrbpOq6mcQRKL5CG2GPSQQB1U6IjRsZr2eFWgbnzGrBQcbaSK3iX1ZFYsGd1YMLCaCs0F5pkoUcbMvLHGSU2L", - Name = "TCLPQ5GJELxIJ85m7pWO5Oq5s", + DiscountAmount = 6224, + MinAmount = 6137, + UsageLimit = 9527, + Code = "E", + IsPublic = true, + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2020-10-22T16:12:16.000000Z", + DisplayStartsAt = "2022-03-14T00:38:05.000000Z", + EndsAt = "2020-03-22T09:11:10.000000Z", + StartsAt = "2020-05-06T07:45:07.000000Z", + DiscountUpperLimit = 138, + Description = "WruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz3", + Name = "7PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oN", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -354,23 +354,23 @@ public async Task UpdateCoupon14() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 3413, + DiscountAmount = 6126, IsShopSpecified = true, - MinAmount = 8586, - UsageLimit = 126, - Code = "iwo", - IsPublic = true, - IsHidden = true, + MinAmount = 4663, + UsageLimit = 1724, + Code = "uTKN6", + IsPublic = false, + IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2022-11-30T17:49:20.000000+09:00", - DisplayStartsAt = "2024-06-03T01:23:17.000000+09:00", - EndsAt = "2018-05-26T21:25:37.000000+09:00", - StartsAt = "2017-10-07T15:38:19.000000+09:00", - DiscountUpperLimit = 5823, - Description = "Qje9VnUZQt0pzes3TegY2AoCAsHwCP", - Name = "A6Scunsmt5agjEkUDn1nh1J0PoLY33AeuLX1vt0Xc0DOPIsjoZ1AHy", + DisplayEndsAt = "2022-07-06T08:44:01.000000Z", + DisplayStartsAt = "2022-03-18T15:54:29.000000Z", + EndsAt = "2021-11-19T12:04:56.000000Z", + StartsAt = "2022-11-23T13:55:03.000000Z", + DiscountUpperLimit = 9195, + Description = "N0paU2HC64wcGrUcdcRO2Sa3zE9qA6Jl", + Name = "qvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyh", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -385,24 +385,24 @@ public async Task UpdateCoupon15() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 5450, - AvailableShopIds = new string[]{"9aa8c186-87a4-4efa-8ed2-13a7c5da8bdd", "de51c295-2e2c-4b06-a35b-92ca5541202c", "30863e85-8667-44dd-8b6c-02dbc471b04c", "18a59725-abcb-4712-90a0-4d54c2eb8ef2", "fc3a942b-c873-4e60-8a3b-6c9a700b8ea6", "ada923ab-41da-48b4-8c12-2eadf90afede", "05683ffd-0b22-4873-a47f-21499a732ee6", "be96f2c3-d9c3-4916-b8be-0d9f64839e75", "73535e51-947d-4e2a-884c-e3b5f7f3698a", "601abb6d-f7c3-40ef-9fab-4b2bee52a792"}, + DiscountAmount = 768, + AvailableShopIds = new string[]{"8cbd798b-b6f2-4acb-897a-fa8c6e0d0b0c", "1790102e-90e7-456c-8a8f-158ba23481c5"}, IsShopSpecified = false, - MinAmount = 9825, - UsageLimit = 743, - Code = "EM3GfsC9", - IsPublic = true, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2023-08-08T23:41:44.000000+09:00", - DisplayStartsAt = "2019-03-09T20:36:25.000000+09:00", - EndsAt = "2017-06-10T01:44:46.000000+09:00", - StartsAt = "2016-07-06T18:27:14.000000+09:00", - DiscountUpperLimit = 9460, - Description = "6bQig1LgqOPtR6wzZdUh56Q0WZf8IPC", - Name = "7BRlPxu7", + MinAmount = 6717, + UsageLimit = 676, + Code = "hNrgMO", + IsPublic = false, + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2021-10-28T22:30:43.000000Z", + DisplayStartsAt = "2021-11-09T17:41:59.000000Z", + EndsAt = "2023-09-27T15:53:22.000000Z", + StartsAt = "2023-11-14T18:53:05.000000Z", + DiscountUpperLimit = 8247, + Description = "ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqq", + Name = "ow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -417,25 +417,25 @@ public async Task UpdateCoupon16() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 518, - StorageId = "60bbbad0-22ca-408f-81bf-bb25be18278b", - AvailableShopIds = new string[]{"f079c1cc-64ab-4332-9389-fd5374f4252d", "4eeee272-05e4-4549-ae6b-633be0a82b90", "8135f343-371a-417c-a80a-507856e354b2", "5bb1c18c-a1f7-4333-9b55-6beefcd68581", "0dce97e9-dd2e-48af-bb9e-d6f94564fec5", "a9404652-6b61-4459-aac3-2501f4502ad6", "c0106a1d-68ad-4438-ab0d-43ca8fdd5ce5", "06d3bc66-71c8-4ced-a99f-2667b9b6428d", "a23b1ed8-aaf7-4c6c-966f-05bfd929de6d", "87d29305-9296-4b4b-900d-66e3bf434016"}, + DiscountAmount = 8248, + StorageId = "be758937-d390-446b-a45e-77c961c6259b", + AvailableShopIds = new string[]{"9179cf1e-5003-489d-adcf-a8cc361157d7", "47cc4ce0-7110-4a3a-b96e-291bd9d094da", "4f9fd637-e62e-4c20-b39c-d354a19fdf27", "77a2b0a4-331b-467f-80f1-6c9c9cecbaa3", "af4389fb-eb3b-4753-8ca0-486b2476e04f", "d460c0d7-7701-4d8f-97c4-824cb158285f", "5b6cfd1f-1eda-4f6d-a9a4-060511452d79", "bc7eed84-2fd9-493b-9934-0497211073f1", "85263c2a-4d53-4344-8363-64e5de6c85b1"}, IsShopSpecified = true, - MinAmount = 3438, - UsageLimit = 2544, - Code = "Z68uiR", - IsPublic = true, - IsHidden = false, + MinAmount = 1448, + UsageLimit = 7713, + Code = "GC4wPtL", + IsPublic = false, + IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2024-09-27T02:19:33.000000+09:00", - DisplayStartsAt = "2018-12-18T21:46:58.000000+09:00", - EndsAt = "2019-10-22T21:07:06.000000+09:00", - StartsAt = "2019-12-18T17:01:50.000000+09:00", - DiscountUpperLimit = 6816, - Description = "Vq6CAE1cykbPfFVTBynTVWrp1vTM1qsdO4ANmXuI4pjaa3jMjNf8XzKneiyaJFmKrTqfSFemIMfA7XBmcoIx81EXrZTOXzCYdtNcSc50TRhvcOBTaYtXxGHr5BD4DZSX0CKWqFPB7cXogK3lXTpk1ACQL5MC28qIm", - Name = "U81piDFRyBs61QA64ubFmiSNGPB6PWeR4fjojaItl7qDDnWfDz83II3SsVbGfWZSjJAztxkiC6dodh0lsF", + DisplayEndsAt = "2022-12-14T09:31:57.000000Z", + DisplayStartsAt = "2021-04-01T23:30:59.000000Z", + EndsAt = "2020-04-05T00:04:54.000000Z", + StartsAt = "2023-06-17T02:45:47.000000Z", + DiscountUpperLimit = 9583, + Description = "4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4X", + Name = "u22Okprhq", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -450,10 +450,10 @@ public async Task UpdateCoupon17() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 1973, - DiscountPercentage = 8986.0, + DiscountAmount = 1256, + DiscountPercentage = 8182.0, }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -468,11 +468,11 @@ public async Task UpdateCoupon18() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 8337, - DiscountPercentage = 8976.0, - Name = "alo907TQSGuwj68ad9K1XBWVYxIt1hLKB6GROESgi9KMGw", + DiscountAmount = 2447, + DiscountPercentage = 3329.0, + Name = "MEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -487,12 +487,12 @@ public async Task UpdateCoupon19() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 5185, - DiscountPercentage = 6644.0, - Description = "XDFLhsltsxjHevXAeaqJQdiPE4BeJCcIbjYCJA60910zNdhVnyX38KqA1fvkyrtqclFU9jljopVrQrbVbWUr1E2HhlclCQRWx8FEGzWXdbWzamEGXFO5PHpjsIS4SoPDOBVrOHFo8xzE1tgCZyMtCfVQXKeHEaCm6v4bOQPdSecOojChLhu", - Name = "aRbGgSXO57u6cTOWbPpHzT8SBHVxA4uTsQXNQLVTsa7Enw9cnxOrtkyrYkFM2fsUIFcBc3", + DiscountAmount = 941, + DiscountPercentage = 9649.0, + Description = "m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99", + Name = "ROsTZK65zQOhilbvDcAlCpIpPo9knGn", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -507,13 +507,13 @@ public async Task UpdateCoupon20() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 3451, - DiscountPercentage = 9215.0, - DiscountUpperLimit = 2821, - Description = "UhfvCQABU9yhdPlghv2VJu1lljCVVYSCGNIDxlSztThgX67n2PgbzVLVHAuqNRKSFbkQwzExi4cSpvsggIAlYenv9bZPRWKzkKRFsQ10G0TlaGn12vl36ewyK", - Name = "B6SHyKZZn5jR7G8GZiBnTaUgy7N3mTLemMZeIt74bhbcXSO6mPwoW10WefOcGtzUdCSHPXTvrjAoBOkNuRh5LysIScuFPNL3Gz", + DiscountAmount = 3169, + DiscountPercentage = 4018.0, + DiscountUpperLimit = 497, + Description = "U0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2", + Name = "YA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDW", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -528,14 +528,14 @@ public async Task UpdateCoupon21() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 7537, - DiscountPercentage = 4106.0, - StartsAt = "2020-07-23T21:35:36.000000+09:00", - DiscountUpperLimit = 828, - Description = "nMP5NZDif", - Name = "qWbMDg", + DiscountAmount = 1258, + DiscountPercentage = 9313.0, + StartsAt = "2023-09-18T08:13:54.000000Z", + DiscountUpperLimit = 2543, + Description = "z7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4Af", + Name = "uwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -550,15 +550,15 @@ public async Task UpdateCoupon22() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 5956, - DiscountPercentage = 1429.0, - EndsAt = "2023-10-24T23:24:27.000000+09:00", - StartsAt = "2024-01-09T00:25:40.000000+09:00", - DiscountUpperLimit = 630, - Description = "QECUSjutOosOC5LZHJPKApv7OfARAe3RnFd9nT02p1eaStaJkR7kpHzHVrWIJ1LETykZPKAQBgMPUGbEnOIPDq2CLAbjX1Djn2XWSwjThwDAcCZY6YtawxId266BZVwZVmHyD1UpI6d83jiZ9uTzP4YjXFZyT5vOgrOJYvJ3LNaiOIeknn7RYaYRsrRINAXrIL7Vokdd5FDSOlHXvP", - Name = "m6smgX4oL5ObnN7xsSw29hgwVKZ3q7f2G5Csbw765Up6rDPAvgZ3Lft7QdtUV0xBtYCY2peqF3OIROYkI2OmNuQfBQjabCuZA7I27", + DiscountAmount = 5867, + DiscountPercentage = 8761.0, + EndsAt = "2023-03-09T03:28:35.000000Z", + StartsAt = "2023-07-12T16:09:38.000000Z", + DiscountUpperLimit = 1992, + Description = "dXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9D", + Name = "PsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMra", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -573,16 +573,16 @@ public async Task UpdateCoupon23() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 8400, - DiscountPercentage = 6702.0, - DisplayStartsAt = "2019-12-01T21:28:17.000000+09:00", - EndsAt = "2016-05-28T11:32:01.000000+09:00", - StartsAt = "2017-08-06T21:46:02.000000+09:00", - DiscountUpperLimit = 7318, - Description = "F0PAVPIqlw5xHvbneEVFJO1vUShUNViyLhmVZrKtrf8f", - Name = "O", + DiscountAmount = 258, + DiscountPercentage = 8455.0, + DisplayStartsAt = "2021-05-03T01:55:17.000000Z", + EndsAt = "2021-12-05T03:40:10.000000Z", + StartsAt = "2020-03-07T23:33:30.000000Z", + DiscountUpperLimit = 736, + Description = "iLHRNzuSt", + Name = "ZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biu", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -597,17 +597,17 @@ public async Task UpdateCoupon24() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 344, - DiscountPercentage = 1885.0, - DisplayEndsAt = "2018-04-09T03:29:24.000000+09:00", - DisplayStartsAt = "2017-03-27T02:40:33.000000+09:00", - EndsAt = "2022-07-04T00:26:10.000000+09:00", - StartsAt = "2022-11-27T03:28:53.000000+09:00", - DiscountUpperLimit = 8358, - Description = "xN2mKWhxAVox0bSxOCeaMv9sV8PCVe8gGULXYHHQVItPbBIgVhkWUs64kjPOvg7oSgfBaWrA04virOZrFH9lNvZWQOhHbcPsVzudSsho4D4Vucvtqjo5TxhMxHQM1DHEyhnb", - Name = "8ZtFdCq3PjvYo6pCNI1mfIpJ9f4NksvlPiC4Vu3XtdH9FsNEZ86HjJPe4Lp6lJfyvAGgrUXXkhfXnecRVysjqOC6xGnpm1kxDBXzRf1f9JiZj", + DiscountAmount = 2927, + DiscountPercentage = 3704.0, + DisplayEndsAt = "2022-07-20T19:37:37.000000Z", + DisplayStartsAt = "2021-07-14T19:17:22.000000Z", + EndsAt = "2022-01-11T20:44:45.000000Z", + StartsAt = "2020-08-06T01:38:14.000000Z", + DiscountUpperLimit = 1499, + Description = "aoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a", + Name = "rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcU", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -622,18 +622,18 @@ public async Task UpdateCoupon25() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 3372, - DiscountPercentage = 7828.0, - IsDisabled = true, - DisplayEndsAt = "2020-07-03T13:26:11.000000+09:00", - DisplayStartsAt = "2021-08-03T05:02:03.000000+09:00", - EndsAt = "2018-01-18T12:59:50.000000+09:00", - StartsAt = "2024-01-11T07:44:58.000000+09:00", - DiscountUpperLimit = 6644, - Description = "kCWz5zMWjynyv6KSgRW4BSGACMY5nowhDUZD5IZKMp0STmYDwTtHP0EcP6hogkn6nAjgTjLkVtsanieCAlqrCK8PwmGod9YcEsgY2DC2Vj8cKXwgERagqKSGsUKboeeiIHlMnCdyvxKvSOqTvlYodFyg21jiUhByaB66BNcapTyLZWxad9qMqf", - Name = "UCaVImVTzD7ogGgbbuuhXvkkv63jx716j9qYeQTBsHYxIvY8A2kLLFzDvGgwT6RWA89QL9Vp03GIkTp5cuONNVFc9v9gdz5hWfe1J2XdVSi", + DiscountAmount = 8821, + DiscountPercentage = 1990.0, + IsDisabled = false, + DisplayEndsAt = "2020-02-28T03:47:20.000000Z", + DisplayStartsAt = "2023-08-07T02:47:43.000000Z", + EndsAt = "2021-01-22T02:10:35.000000Z", + StartsAt = "2022-09-22T22:47:56.000000Z", + DiscountUpperLimit = 8028, + Description = "gIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9Qotexnhe", + Name = "cBro7jHBJHSTWFK0aJRYTf", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -648,19 +648,19 @@ public async Task UpdateCoupon26() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 9126, - DiscountPercentage = 3451.0, + DiscountAmount = 3205, + DiscountPercentage = 3175.0, IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2021-09-02T20:03:40.000000+09:00", - DisplayStartsAt = "2021-06-01T15:12:54.000000+09:00", - EndsAt = "2023-03-12T07:28:30.000000+09:00", - StartsAt = "2017-09-01T13:24:12.000000+09:00", - DiscountUpperLimit = 8705, - Description = "14JqvayOvsUjS1TQRpGXwusKVKoDVo20K4pvhym0ixofoZrqcO9xmrGI7Yq8b7zKf4Zjq1K3jlOjYQfsbEScihoRIGPs251h35D6RqOUv7GYFIehbCx0by4HajPsFnZyP", - Name = "kDxfEbj7EZcJNWpppH7JtG7uLWNnv9bkjUCUVfq92V", + DisplayEndsAt = "2022-03-04T23:59:14.000000Z", + DisplayStartsAt = "2020-07-29T22:26:48.000000Z", + EndsAt = "2020-07-31T21:06:41.000000Z", + StartsAt = "2020-11-29T09:17:03.000000Z", + DiscountUpperLimit = 2026, + Description = "M6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdN", + Name = "Gv9QaNMmxX2S2fPh6fy135I5", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -675,20 +675,20 @@ public async Task UpdateCoupon27() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 8273, - DiscountPercentage = 515.0, + DiscountAmount = 452, + DiscountPercentage = 5642.0, IsPublic = false, IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2023-06-24T04:22:30.000000+09:00", - DisplayStartsAt = "2023-06-22T11:56:08.000000+09:00", - EndsAt = "2016-05-31T05:55:14.000000+09:00", - StartsAt = "2023-09-16T01:17:18.000000+09:00", - DiscountUpperLimit = 2765, - Description = "eHm2Gc8mWOktzQrw5GjJ8uGQSasHDUHsEK1qalHwNsBFFvhBAfKd9pYjNXINvRo8XrSFeFKEUniweS0acjh4qrH7klovo9x1qmkFFjd91zhnaGMzUdCsP1zaX0YECE0zSsUS9uGcWpU50I9EOF1CbY7DQvPyLth6tJk3Z9fxM6O", - Name = "ljXWNCah5Q3Axy3FHS7HHlL9hetKrZtdVOY5mSWLpoOzWuTFDp0xZJMmmZyM3o", + DisplayEndsAt = "2024-01-12T08:43:51.000000Z", + DisplayStartsAt = "2022-04-28T20:20:36.000000Z", + EndsAt = "2023-10-08T03:05:33.000000Z", + StartsAt = "2021-05-12T19:30:15.000000Z", + DiscountUpperLimit = 4327, + Description = "nvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00I", + Name = "CXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HA", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -703,21 +703,21 @@ public async Task UpdateCoupon28() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 1424, - DiscountPercentage = 1633.0, - Code = "Yo", + DiscountAmount = 8954, + DiscountPercentage = 8168.0, + Code = "t", IsPublic = true, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2024-02-29T20:56:04.000000+09:00", - DisplayStartsAt = "2024-04-29T19:48:39.000000+09:00", - EndsAt = "2024-02-07T05:45:48.000000+09:00", - StartsAt = "2015-12-10T00:59:57.000000+09:00", - DiscountUpperLimit = 2910, - Description = "WxRzzc4S4bskUY0GUghtLrKd", - Name = "mw4Mj2vrs21Q3QscjDt5dNl9IacbccU5Qd92Q", + IsDisabled = false, + DisplayEndsAt = "2023-03-04T05:42:16.000000Z", + DisplayStartsAt = "2023-10-11T08:06:13.000000Z", + EndsAt = "2020-01-07T12:18:39.000000Z", + StartsAt = "2020-10-10T16:37:18.000000Z", + DiscountUpperLimit = 9006, + Description = "7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFh", + Name = "LPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5i", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -732,22 +732,22 @@ public async Task UpdateCoupon29() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 1026, - DiscountPercentage = 2691.0, - UsageLimit = 5736, - Code = "ef", + DiscountAmount = 7953, + DiscountPercentage = 7721.0, + UsageLimit = 1600, + Code = "t4HXxpMz5", IsPublic = true, IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2021-02-12T08:19:41.000000+09:00", - DisplayStartsAt = "2018-01-31T10:47:24.000000+09:00", - EndsAt = "2022-09-03T12:03:42.000000+09:00", - StartsAt = "2021-04-18T14:59:44.000000+09:00", - DiscountUpperLimit = 4355, - Description = "rVMDsZV4dkyP5lnQdeGG2WwubsLa4vnCWV1QVssD1Im12VLZ8F0u3SxrrH1vjl84VkWU20DVNhF1QRXrkYNIOtHHG8yHnSu7dDAUDz3Ba7wXTCzgYCbLTAWi1ohae", - Name = "tMA7WNeaonbTVS", + DisplayEndsAt = "2020-08-30T01:35:35.000000Z", + DisplayStartsAt = "2020-07-06T20:29:39.000000Z", + EndsAt = "2021-09-28T07:48:36.000000Z", + StartsAt = "2021-02-26T04:02:14.000000Z", + DiscountUpperLimit = 3530, + Description = "OMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF", + Name = "6RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YL", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -762,23 +762,23 @@ public async Task UpdateCoupon30() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 7877, - DiscountPercentage = 88.0, - MinAmount = 5427, - UsageLimit = 4219, - Code = "4CEzJmLX", - IsPublic = false, + DiscountAmount = 2430, + DiscountPercentage = 8124.0, + MinAmount = 3838, + UsageLimit = 1877, + Code = "ZY6", + IsPublic = true, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2017-10-01T08:14:50.000000+09:00", - DisplayStartsAt = "2020-07-21T10:44:01.000000+09:00", - EndsAt = "2021-06-12T08:21:48.000000+09:00", - StartsAt = "2017-10-23T08:22:56.000000+09:00", - DiscountUpperLimit = 5084, - Description = "9jpxZmBe1IVqn", - Name = "l0xvjbPmp4eCBlLWO5LUEEnWeZcSGLtIalNYra2M0CMIf3qWb7LuUMW", + IsDisabled = false, + DisplayEndsAt = "2021-05-02T06:05:58.000000Z", + DisplayStartsAt = "2020-11-14T02:18:02.000000Z", + EndsAt = "2020-09-02T12:17:39.000000Z", + StartsAt = "2023-11-15T17:09:17.000000Z", + DiscountUpperLimit = 8317, + Description = "6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNOD", + Name = "a3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXg", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -793,24 +793,24 @@ public async Task UpdateCoupon31() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 7138, - DiscountPercentage = 4642.0, + DiscountAmount = 5165, + DiscountPercentage = 8219.0, IsShopSpecified = false, - MinAmount = 2147, - UsageLimit = 3058, - Code = "AOjAg46Wx", + MinAmount = 5037, + UsageLimit = 3520, + Code = "g4CYuzS", IsPublic = false, - IsHidden = false, + IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2017-03-10T20:38:53.000000+09:00", - DisplayStartsAt = "2023-03-14T02:07:52.000000+09:00", - EndsAt = "2021-10-28T22:48:32.000000+09:00", - StartsAt = "2021-07-17T02:36:23.000000+09:00", - DiscountUpperLimit = 3459, - Description = "CoyrEsYCM3co0m5f7Zf0Wz840Yp6krkF1YbRmwvxymb30gk8", - Name = "4pQwTzmFQFV2uDFFIi8EFMWMycoOxYLCK5275yaFTfZztXuQw4RaWF", + DisplayEndsAt = "2021-09-18T18:13:43.000000Z", + DisplayStartsAt = "2022-03-01T00:57:56.000000Z", + EndsAt = "2020-03-04T07:03:16.000000Z", + StartsAt = "2022-10-12T08:21:07.000000Z", + DiscountUpperLimit = 8846, + Description = "tkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0", + Name = "TvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1Prn", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -825,25 +825,25 @@ public async Task UpdateCoupon32() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 5286, - DiscountPercentage = 2525.0, - AvailableShopIds = new string[]{"7bde5bd1-1071-4c9d-ba33-a3aa5bc7b048", "33e140fd-7a03-4878-9345-2531b866dce3", "ccdf9474-bcf4-4b53-a510-2b9dc634aec7", "70d52175-23c1-484a-9c79-8d99903a59d8", "211cf607-cfa2-42f4-832a-3979ceb8ac66", "093cc4be-115c-44bb-831a-8b18781b9350", "9e8c4a13-01ab-470f-a094-51f0e4caa815", "bf6786ba-7480-4f28-8316-3e8b169a736f"}, - IsShopSpecified = false, - MinAmount = 2794, - UsageLimit = 4702, - Code = "r8cro", + DiscountAmount = 8295, + DiscountPercentage = 7425.0, + AvailableShopIds = new string[]{"9f5df334-20c0-4725-9a5f-8daeb737ecf1", "780583b6-fef2-46ea-a160-9046d15644cb", "5e3cd67e-178b-4ace-94c8-ae933b155491", "dd704355-efd0-446a-9f38-61cfe7e5c261"}, + IsShopSpecified = true, + MinAmount = 2605, + UsageLimit = 9676, + Code = "D3inc4", IsPublic = true, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2019-02-23T13:25:44.000000+09:00", - DisplayStartsAt = "2024-02-20T21:46:31.000000+09:00", - EndsAt = "2023-09-04T01:54:40.000000+09:00", - StartsAt = "2024-03-18T02:36:25.000000+09:00", - DiscountUpperLimit = 4645, - Description = "sthEoZOk8UXfYg8fdpzyB6W0dkeo5uEqZaCFDcbEj9ISDmaB2afkehiCZS1KVArQKeygi1aTs9dwArWQhOtANq", - Name = "qTESOlpuGW5FhrbDgJ77XFXl4NKb3zycQebaty6OYZVBO6i7OrH9y83QqXgWF2opiV", + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2021-08-18T05:01:39.000000Z", + DisplayStartsAt = "2020-06-19T09:03:27.000000Z", + EndsAt = "2020-02-11T14:16:51.000000Z", + StartsAt = "2023-08-09T09:22:31.000000Z", + DiscountUpperLimit = 508, + Description = "p4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5Ml", + Name = "LDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjA", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -858,26 +858,26 @@ public async Task UpdateCoupon33() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountAmount = 9749, - DiscountPercentage = 8074.0, - StorageId = "66f85b3f-ff64-4327-8643-2e194d2d2024", - AvailableShopIds = new string[]{"efc077ff-5f5b-4331-96a0-84028a527635", "1dd125cb-cd43-4826-91b1-db0ca1f5aadb", "062db4de-e333-43a6-aa0c-7d7b20a44c29"}, + DiscountAmount = 1664, + DiscountPercentage = 7168.0, + StorageId = "41377912-9f99-4b83-aea8-dedcb4645ace", + AvailableShopIds = new string[]{"548de50d-4dd0-481b-b954-6a98ef7f3761", "414931f3-20a7-4cf1-b149-cc2caa3f61c6", "e94e7191-01e5-4e78-8af8-9919c1e50648", "aa68976f-2da4-46cf-bd73-a7147a409559", "5ab17d17-8533-4ad8-932f-a7ed13f41ce6", "8b3fff53-088f-412b-834d-e0cddb9a8ddb", "33cdbec0-a8c9-4d07-b0dc-35059caf39e8", "6a024150-328a-49fb-bc49-f9cf0c989163"}, IsShopSpecified = true, - MinAmount = 345, - UsageLimit = 6459, - Code = "xvJw", + MinAmount = 1904, + UsageLimit = 6823, + Code = "kBjff", IsPublic = true, - IsHidden = false, + IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2024-02-16T03:26:00.000000+09:00", - DisplayStartsAt = "2020-04-25T23:18:21.000000+09:00", - EndsAt = "2024-08-27T18:15:43.000000+09:00", - StartsAt = "2025-03-23T01:32:27.000000+09:00", - DiscountUpperLimit = 8543, - Description = "hx51AwtpZIv6uv80k2eZHBR50sHyhGa26QKgCzW91ijqwGz4iwxLvGQu8AItYv5ALjIimTwKA5k60bA481CWCvSZBvCgqCd3bRt5kX2boQlLinyfuc6vmm92pmKFDO4dzrTnN2hnl6jClpe10uHCcbxZraKIE5JV72jwXeLc5ziCQv", - Name = "gnEPrwn8MGASAuLD3W", + DisplayEndsAt = "2021-01-16T23:01:45.000000Z", + DisplayStartsAt = "2023-09-13T23:58:06.000000Z", + EndsAt = "2021-08-22T22:44:37.000000Z", + StartsAt = "2022-02-13T19:16:31.000000Z", + DiscountUpperLimit = 7621, + Description = "4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE", + Name = "8r", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -892,9 +892,9 @@ public async Task UpdateCoupon34() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 332.0, + DiscountPercentage = 6177.0, }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -909,10 +909,10 @@ public async Task UpdateCoupon35() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 8927.0, - Name = "Jqm2LErGcclueraXSCDv", + DiscountPercentage = 4453.0, + Name = "7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -927,11 +927,11 @@ public async Task UpdateCoupon36() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 648.0, - Description = "DuhvkKIoa3xl900hkmeYLn1AjsWrIn7wWX9Rc7bgZ9BG44UnK5kugEbv8t3i1UGnc40madwkN30KxIK4R69fUEBg5VG6fY3BMw3LzyuQr74JtjTjvnySfqw4U7H9TvwAB8eScBfn1Rj6bF7qwsumEcO5tiAsHMCj6rQ8znpAP2C", - Name = "t8CHPFNDEoS5JXEhny5IMhsG4v0CQldqzxJ6XAxrUg5QJ", + DiscountPercentage = 7286.0, + Description = "iglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4n", + Name = "16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJp", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -946,12 +946,12 @@ public async Task UpdateCoupon37() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 5482.0, - DiscountUpperLimit = 1481, - Description = "dY8iZkaSG", - Name = "kcJKeradqBxAYjByUEnM", + DiscountPercentage = 2261.0, + DiscountUpperLimit = 5314, + Description = "S7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzso", + Name = "IqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -966,13 +966,13 @@ public async Task UpdateCoupon38() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 8562.0, - StartsAt = "2016-12-13T17:54:37.000000+09:00", - DiscountUpperLimit = 4772, - Description = "xLZOgOaoYWcJG86z8KVqUt2uzqsseXYFYKRp5jWej4Zir7EPOVCpM4N6VpPYojnLWN99oUAp27dRdHXT0bu9kBbfQDVxrOePjXnEEoR26VQKj59HY9GxwaIDAEfbXDBB3FNIL8Usakbi9ZrjBPmCyriSuUZrqYwqtbArFxY0nh8lQ2iQavwvhDr8TNB4vIcRTpSaCV5lZtxsN8hQh23jWL68GyttBaIaA6bT2oimSP8aDw1fwYQ", - Name = "1a8Jvio1NlXmWokT3fCZ0aqdulZZGglvs1mmHvcGJdXuMvjofsG8E4KIFxs3y0EBuTM1S0iPJraQIMtAPJ1JN9CtWW30Uo4UAg9arJ4XCMrwN15c", + DiscountPercentage = 3822.0, + StartsAt = "2023-10-27T14:23:58.000000Z", + DiscountUpperLimit = 9568, + Description = "DnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4", + Name = "hE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0uj", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -987,14 +987,14 @@ public async Task UpdateCoupon39() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 7881.0, - EndsAt = "2024-02-12T16:34:08.000000+09:00", - StartsAt = "2021-03-06T16:03:24.000000+09:00", - DiscountUpperLimit = 1862, - Description = "fUC0OQCualYkGbJ73b3nYCrV9uDJehyXJGfZSkx4G3NTiGEBvJP8jVk", - Name = "cC85nZnpCpVaAaHx1iEs8vFtOGvU65Sy7b4", + DiscountPercentage = 4838.0, + EndsAt = "2021-10-29T01:08:59.000000Z", + StartsAt = "2022-05-26T05:56:27.000000Z", + DiscountUpperLimit = 7508, + Description = "EebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBE", + Name = "aWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoY", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1009,15 +1009,15 @@ public async Task UpdateCoupon40() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 8117.0, - DisplayStartsAt = "2022-11-21T19:19:42.000000+09:00", - EndsAt = "2017-01-15T18:33:22.000000+09:00", - StartsAt = "2019-09-29T03:35:49.000000+09:00", - DiscountUpperLimit = 5585, - Description = "banmxI5u8gze9wV9utYjWSxV0PYaS2m3w11YOcIRgqxweZ1D5GDujWwLCtS0wYAR5oiTurYC7yg59bUqlzl8RTsqHpDWU8ApGdTbLUnpU1baTn5DB15m1nGHAyRImJ6G1", - Name = "b1LBudJBaCIrObUZ5", + DiscountPercentage = 6233.0, + DisplayStartsAt = "2021-08-19T13:32:54.000000Z", + EndsAt = "2021-02-17T07:03:04.000000Z", + StartsAt = "2022-04-21T23:18:59.000000Z", + DiscountUpperLimit = 5351, + Description = "PK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWml", + Name = "55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRi", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1032,16 +1032,16 @@ public async Task UpdateCoupon41() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 3546.0, - DisplayEndsAt = "2023-11-02T06:07:52.000000+09:00", - DisplayStartsAt = "2020-09-02T21:14:54.000000+09:00", - EndsAt = "2025-07-23T09:41:03.000000+09:00", - StartsAt = "2023-05-27T01:13:30.000000+09:00", - DiscountUpperLimit = 5354, - Description = "rMS4IVkYp7d5uCmZcCGsDsYW6iBTOJJItmv4ZbMGqyaKdWN8wtUzEEJzkH6S98QQghHEuISiLlQ9W3XgJB2NaMYnzVdH4lBEl49jCEcrfCIMQObL3OoO8rAUeI", - Name = "JBL5bUAsdaXhLa6D", + DiscountPercentage = 2204.0, + DisplayEndsAt = "2022-02-20T22:32:39.000000Z", + DisplayStartsAt = "2021-10-01T23:48:24.000000Z", + EndsAt = "2023-06-06T08:40:02.000000Z", + StartsAt = "2023-07-15T08:29:26.000000Z", + DiscountUpperLimit = 924, + Description = "tN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP", + Name = "7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzw", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1056,17 +1056,17 @@ public async Task UpdateCoupon42() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 5213.0, - IsDisabled = false, - DisplayEndsAt = "2017-06-16T18:46:59.000000+09:00", - DisplayStartsAt = "2018-03-26T22:46:37.000000+09:00", - EndsAt = "2017-11-24T03:54:27.000000+09:00", - StartsAt = "2024-01-07T06:41:10.000000+09:00", - DiscountUpperLimit = 4786, - Description = "LUfdk8XuchSqSbTRRUD8SLFRBVzctWtyXmcrdg7VkR4X33FNwVK3ZsilsWVKactBtuAItB6ycarokv", - Name = "OGbxOtjjILQMz1SYbigi3uq", + DiscountPercentage = 9497.0, + IsDisabled = true, + DisplayEndsAt = "2022-05-26T11:53:50.000000Z", + DisplayStartsAt = "2023-03-05T10:35:52.000000Z", + EndsAt = "2021-10-31T13:19:42.000000Z", + StartsAt = "2021-05-09T08:15:36.000000Z", + DiscountUpperLimit = 3285, + Description = "Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mG", + Name = "U9YeDH", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1081,18 +1081,18 @@ public async Task UpdateCoupon43() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 9437.0, - IsHidden = false, + DiscountPercentage = 9141.0, + IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2015-12-03T11:22:55.000000+09:00", - DisplayStartsAt = "2020-10-07T23:02:46.000000+09:00", - EndsAt = "2019-11-24T00:47:35.000000+09:00", - StartsAt = "2019-02-19T12:01:56.000000+09:00", - DiscountUpperLimit = 5157, - Description = "7yaI77xfyzjZfk3Eg446tN2eZbvNHRDlrWw9qEb2szCXBkkHRCtXprtOEGF7FA7qtYAU5XoCNIUER98LHSRVry41mwGLHNUS9ycac0Neld0xGYOxpvYgvz5c96ZecqU3V", - Name = "5SiDh8XYp2Sb6qswUL8UZ6V9wGI85BEYoVTObCbAWlB9ZTLlBVIhK6pPNqnVaACzTnU4fw", + DisplayEndsAt = "2022-02-08T23:04:25.000000Z", + DisplayStartsAt = "2023-07-04T15:47:08.000000Z", + EndsAt = "2021-05-02T16:53:33.000000Z", + StartsAt = "2021-10-30T23:58:56.000000Z", + DiscountUpperLimit = 6974, + Description = "jz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtj", + Name = "qA6blCNXCxB23NKDv", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1107,19 +1107,19 @@ public async Task UpdateCoupon44() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 9198.0, + DiscountPercentage = 8485.0, IsPublic = false, - IsHidden = true, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2020-11-12T19:14:26.000000+09:00", - DisplayStartsAt = "2021-07-05T03:27:55.000000+09:00", - EndsAt = "2018-08-07T06:12:32.000000+09:00", - StartsAt = "2022-12-02T23:07:40.000000+09:00", - DiscountUpperLimit = 7042, - Description = "IcuvP4sfykROqGA2kGIKWn7WmxLFKf1vULaBahAeJdLNgTdHrnXru0CK861yZBwzeoylnePV0HOJ5Mg4Lqjra9od5pOMZG0Q1", - Name = "pC2P9o6ZPNLGB22OwLCnaLili3chmVxHdB9QfCurmIpiTiNJmdhSFJZDo3oq9jSUkc9PdtCnJGKBJDfwGwTHxDL2bOdXfkEBpMjbpC", + DisplayEndsAt = "2021-12-01T04:54:19.000000Z", + DisplayStartsAt = "2023-08-26T06:04:20.000000Z", + EndsAt = "2023-11-01T17:05:06.000000Z", + StartsAt = "2021-12-03T18:52:53.000000Z", + DiscountUpperLimit = 4843, + Description = "6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFm", + Name = "4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1134,20 +1134,20 @@ public async Task UpdateCoupon45() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 4290.0, - Code = "ioaY", - IsPublic = false, + DiscountPercentage = 9898.0, + Code = "DF85U", + IsPublic = true, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2022-09-23T22:53:21.000000+09:00", - DisplayStartsAt = "2019-05-20T10:46:19.000000+09:00", - EndsAt = "2024-02-07T08:35:08.000000+09:00", - StartsAt = "2024-04-18T16:16:34.000000+09:00", - DiscountUpperLimit = 552, - Description = "4xdPTFTA02UZKecENyKp2Io7TZBqCIqL4rp2EFrfcK15LTb24Ur3nzPNHJH0", - Name = "K2HZRZXaO0yBwCPt9KlGpQkqx0Eg2tYlbUkqmQv60CMZa5pywmhrY89J06nrffjpXgwax0yxzxVt1fgZx65", + IsDisabled = false, + DisplayEndsAt = "2020-10-30T12:50:32.000000Z", + DisplayStartsAt = "2022-07-04T05:18:43.000000Z", + EndsAt = "2020-02-02T16:47:45.000000Z", + StartsAt = "2022-01-04T12:45:48.000000Z", + DiscountUpperLimit = 1671, + Description = "RLtjhMxgRT9FEddBtVan5HyW6Uan9MoY", + Name = "beeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lg", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1162,21 +1162,21 @@ public async Task UpdateCoupon46() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 8825.0, - UsageLimit = 5902, - Code = "RA", - IsPublic = false, - IsHidden = true, + DiscountPercentage = 1949.0, + UsageLimit = 3853, + Code = "ERnFdcWh", + IsPublic = true, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2016-12-08T14:43:16.000000+09:00", - DisplayStartsAt = "2021-12-15T11:05:30.000000+09:00", - EndsAt = "2017-01-21T17:45:15.000000+09:00", - StartsAt = "2024-11-28T23:00:34.000000+09:00", - DiscountUpperLimit = 4244, - Description = "GG3NtnfgRNPusLiOWBNvfaPU20jqHqD7fumjHr0s87ojVjQllJBsdX8PqB5vj6KZvk9I14B0wJjv5PZV8", - Name = "zD6xxeVZJr6fOg9zsFZTThoFxkwxW9hiLZrgw5GsDKhgqi6fonQRpg8o6w595UPezcg", + DisplayEndsAt = "2021-03-14T08:37:16.000000Z", + DisplayStartsAt = "2022-07-02T22:09:21.000000Z", + EndsAt = "2022-08-04T10:08:23.000000Z", + StartsAt = "2023-01-15T22:21:48.000000Z", + DiscountUpperLimit = 4193, + Description = "fJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtU", + Name = "oiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FL", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1191,22 +1191,22 @@ public async Task UpdateCoupon47() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 5722.0, - MinAmount = 1925, - UsageLimit = 7691, - Code = "4PiUt", + DiscountPercentage = 6047.0, + MinAmount = 1601, + UsageLimit = 7881, + Code = "iGK", IsPublic = true, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2019-01-01T08:19:56.000000+09:00", - DisplayStartsAt = "2018-05-27T13:38:56.000000+09:00", - EndsAt = "2022-08-07T11:33:50.000000+09:00", - StartsAt = "2025-04-03T17:32:25.000000+09:00", - DiscountUpperLimit = 6332, - Description = "iiOwd8iyY6Z0zhmmU4qjfXM0iaeCNkqwEBU16Jq12CxO1vOYhEe55St2TiyraOemZRjiAchwL6b1jB1Cg1nBSU78", - Name = "Sxgo6Taagdxx1mLakIn0CpIISvuAWSZZfn8k", + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2021-09-03T11:23:53.000000Z", + DisplayStartsAt = "2021-10-05T09:36:56.000000Z", + EndsAt = "2022-12-25T05:12:59.000000Z", + StartsAt = "2020-09-24T20:30:53.000000Z", + DiscountUpperLimit = 419, + Description = "NBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ3gd", + Name = "DOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1221,23 +1221,23 @@ public async Task UpdateCoupon48() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 4412.0, - IsShopSpecified = false, - MinAmount = 1327, - UsageLimit = 5703, - Code = "RTJu", + DiscountPercentage = 1021.0, + IsShopSpecified = true, + MinAmount = 2838, + UsageLimit = 5561, + Code = "4bPM", IsPublic = true, - IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2023-02-15T18:06:48.000000+09:00", - DisplayStartsAt = "2019-07-05T00:20:39.000000+09:00", - EndsAt = "2019-04-26T12:41:38.000000+09:00", - StartsAt = "2024-06-22T14:39:56.000000+09:00", - DiscountUpperLimit = 9584, - Description = "Hb3xaMjpGa8gaJHdl18J3d41BsVgtiwJjEQgl2khqccOMjuNbV7gJFoloels8545DuKxo1Vi0yj9LZ0SyJWAaPdTI8GQRoTVVLo6s0iJqu2Tp6qxM61gVY0GH358hWkV2Uf2KtDFhJ8HG79vPf61T8wOYbBgjhnixJKbSXHCrQ2sJdGjdCNpP7vZgP6", - Name = "ri", + IsHidden = false, + IsDisabled = true, + DisplayEndsAt = "2020-12-20T15:37:32.000000Z", + DisplayStartsAt = "2022-08-15T22:41:05.000000Z", + EndsAt = "2020-06-18T05:25:37.000000Z", + StartsAt = "2020-05-03T09:41:11.000000Z", + DiscountUpperLimit = 9668, + Description = "wFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rU", + Name = "oCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cG", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1252,24 +1252,24 @@ public async Task UpdateCoupon49() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 8133.0, - AvailableShopIds = new string[]{"67a553c4-e3ad-445e-9c8d-d1b60bde7bbb", "6cdf1dc4-b8f4-4b13-aed2-42aa37f1c51b", "bdde57b7-0bb3-4c1c-a10f-fc920fa39769", "2a0e5253-b9ae-4deb-8117-6967638696db", "0f70af43-d7ff-4a31-a26c-6b5900046136", "944f2520-d50a-4c5b-b9df-165e3b1b36a5"}, - IsShopSpecified = false, - MinAmount = 3231, - UsageLimit = 5704, - Code = "dfLL0D", - IsPublic = false, - IsHidden = true, + DiscountPercentage = 4130.0, + AvailableShopIds = new string[]{"1a89a5c9-2ce8-49bc-be06-50fde05e2fec", "83bb16d0-bd89-4c74-88b5-253b718fe387", "8006550f-e0b2-417a-9037-2c59101d3453", "bfb8ba32-12c4-4e28-91a1-12d71c5c5f14", "24b4821a-fd75-4ff3-a4d7-3acc8085c863", "e2b6cfbc-efcb-4d7b-a5f0-63e43c32a532", "044b272d-318f-4ca5-9d50-b8332afa748c", "547fc533-38b5-4ace-b6b6-ae923d41adea"}, + IsShopSpecified = true, + MinAmount = 9456, + UsageLimit = 1827, + Code = "C", + IsPublic = true, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2018-03-05T16:35:47.000000+09:00", - DisplayStartsAt = "2018-05-17T04:46:36.000000+09:00", - EndsAt = "2021-12-23T01:14:15.000000+09:00", - StartsAt = "2024-06-15T21:24:50.000000+09:00", - DiscountUpperLimit = 1037, - Description = "nmrgoUZ8HPuG9MGiaGFzsfWWWy9Im8UxT025mhbVLEYZVZOefO3wRMVsdsI7UYvxBYHMaYiviU38jqbyVWH5DFcnmWcaw5XgZyYFJIldgknhDa91EmSrsQOnBNxdurOw7gkjQ3wpef72Il4E5ZWsSecpIqr43pcjq1LwdcVMUb7XEBzGNuyNwO31ThKXaIyaVVhfSd3BmnZxBBpR9nx", - Name = "MbDW2Wv9nIAuvJ07T9KHTjKX9sc30nVHddo9MOLvGZ61a", + DisplayEndsAt = "2022-10-26T23:25:08.000000Z", + DisplayStartsAt = "2023-03-14T20:11:39.000000Z", + EndsAt = "2021-04-24T00:56:28.000000Z", + StartsAt = "2022-06-27T03:47:51.000000Z", + DiscountUpperLimit = 6153, + Description = "cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2y", + Name = "eAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -1284,25 +1284,25 @@ public async Task UpdateCoupon50() { try { Request.UpdateCoupon request = new Request.UpdateCoupon( - "69c5dcbf-1bf5-43f4-ad59-cab64ef7c1f9" + "0141503f-c0ce-43b5-953d-d98d85dd6745" ) { - DiscountPercentage = 2404.0, - StorageId = "d4088ec8-fec9-4a90-b477-df584c247f8f", - AvailableShopIds = new string[]{"a0b5d13c-a344-4487-aab8-86c62026a0f6", "b86d5bd4-f513-4301-bd12-7cba296ad686", "6bc93c7a-702d-47b5-89e0-7ad158ee4f16", "2c539342-ad47-4fe1-9191-5364c4f0067d", "1bc73fc9-fc83-431c-bedc-6fff86228973"}, - IsShopSpecified = false, - MinAmount = 5079, - UsageLimit = 1368, - Code = "M5", - IsPublic = false, - IsHidden = true, + DiscountPercentage = 4510.0, + StorageId = "52c58453-1db1-43ba-b19c-e2df93cfb180", + AvailableShopIds = new string[]{"d1134c1b-6a00-4792-af17-1a44a9e3192e", "78c7af69-c6ce-4a91-83b2-975f1be5b054", "7fa396b6-4725-41da-b1fb-f303582c5208", "4a666b85-f7ce-4fd2-9ec6-2f261f6a5bbe", "62360857-9d69-45b9-b8ce-f5caf1e8f6fc", "0bd2112d-fff1-4ac8-a976-44908cec9b35", "56bd44dd-0854-490e-8983-1c0388d6bc2b", "b17913c7-6134-4baf-9d71-1921a14b472d", "e21b8593-ef88-4528-9e94-4f41783cef48"}, + IsShopSpecified = true, + MinAmount = 3075, + UsageLimit = 356, + Code = "ob31", + IsPublic = true, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2017-06-22T14:55:19.000000+09:00", - DisplayStartsAt = "2023-02-09T16:08:00.000000+09:00", - EndsAt = "2023-02-12T13:47:09.000000+09:00", - StartsAt = "2019-02-19T00:17:28.000000+09:00", - DiscountUpperLimit = 770, - Description = "2cjgTiUn5rz1pVqBgYfePziyv4mtwf363wthBO4FjlbNSGHxbjuEMAeQokaUOBkEJMomGEE3qtgKMvjDsKXEFhYl0BRpqUDYmqwBJzhV6dtnsmaJHCLyhHLjUCzekHgQwDCfsWS6JXTLuG14K", - Name = "HQGpPICoaRhYRcaR59QCffGIaaiPRXQUB9KSDwnfHx9gXjCberbb7S8DAR", + DisplayEndsAt = "2021-05-02T11:04:15.000000Z", + DisplayStartsAt = "2020-06-01T05:11:51.000000Z", + EndsAt = "2020-06-12T12:23:35.000000Z", + StartsAt = "2021-10-30T18:42:50.000000Z", + DiscountUpperLimit = 7710, + Description = "cTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LW", + Name = "lkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDyk", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCustomerAccount.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCustomerAccount.cs index 5afc512..02fec43 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCustomerAccount.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCustomerAccount.cs @@ -25,7 +25,7 @@ public async Task UpdateCustomerAccount0() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "c200528e-961a-4696-84e7-06a25068c9ad" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ); Response.AccountWithUser response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task UpdateCustomerAccount1() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "c200528e-961a-4696-84e7-06a25068c9ad" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) { Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; @@ -57,9 +57,9 @@ public async Task UpdateCustomerAccount2() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "c200528e-961a-4696-84e7-06a25068c9ad" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) { - ExternalId = "V1GwAOqdc8z", + ExternalId = "hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq", Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; Response.AccountWithUser response = await request.Send(client); @@ -75,10 +75,10 @@ public async Task UpdateCustomerAccount3() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "c200528e-961a-4696-84e7-06a25068c9ad" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) { - AccountName = "zTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQ", - ExternalId = "n5Txe", + AccountName = "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd", + ExternalId = "KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb", Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; Response.AccountWithUser response = await request.Send(client); @@ -94,11 +94,11 @@ public async Task UpdateCustomerAccount4() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "c200528e-961a-4696-84e7-06a25068c9ad" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) { Status = "pre-closed", - AccountName = "PGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1T", - ExternalId = "G2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60O", + AccountName = "nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc", + ExternalId = "KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj", Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; Response.AccountWithUser response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateShop.cs index 8d2d30a..74472dc 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateShop.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateShop.cs @@ -25,7 +25,7 @@ public async Task UpdateShop0() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ); Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task UpdateShop1() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { Status = "disabled", }; @@ -57,9 +57,9 @@ public async Task UpdateShop2() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { - CanTopupPrivateMoneyIds = new string[]{"1181f229-8a30-4559-8763-c2de3b8e8320", "6ab739f9-c959-471f-82ad-22f5b865aa90"}, + CanTopupPrivateMoneyIds = new string[]{"5fa90a67-3047-4dfe-878a-eee672a5e923"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -75,10 +75,10 @@ public async Task UpdateShop3() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { - PrivateMoneyIds = new string[]{"ca4b054d-9b1a-42c7-993b-c3f6e823dab3", "ed7227f6-c799-467a-b4d9-6a6631f9deaa"}, - CanTopupPrivateMoneyIds = new string[]{"8f5de22a-34ec-4aa6-b87c-0511f40949f3"}, + PrivateMoneyIds = new string[]{"29fb46c5-b0ec-48aa-abd3-7c63c52755f4", "3d0263b5-85ab-4040-b6f4-d34283f789b3", "3eb85d40-a0d1-4c76-9b40-60d90f7262ea", "69c91f11-9ef9-4138-adfb-1f556ce4fe92"}, + CanTopupPrivateMoneyIds = new string[]{"5051c900-a3e7-4fc4-b995-18d8133f5e2e", "2aa5f88e-fc51-4f3a-a314-3c59ffd68307", "2484e9cf-4d8e-45aa-9801-0fd37fd97073", "bca5ddae-a968-4818-99f0-8bbddafef847", "b75cabcd-3a43-4e6b-a5b1-d8b082e4543c", "95fb439b-4fe6-47c1-a0f0-760b37469215", "d15d3b23-df99-41a0-8b8b-f9a98e80cf6a", "74f519ad-bc22-4f14-82a5-4dc81236f1fc", "1ab9e96e-582c-4dc1-ad64-546c230b35cb", "c071107f-4991-4a69-9c8b-51d59157551d"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -94,11 +94,11 @@ public async Task UpdateShop4() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { - ExternalId = "OENjEAJX3lDTAofzZK4Rxx8sLYfBb6BjvrB", - PrivateMoneyIds = new string[]{"f3a016e0-2e5c-4b72-9ece-ec4ef3201e12", "92e4969f-e1fd-43cd-b086-7d72641aa645", "a1392f2d-699f-443d-a244-54bc26e99b68", "cf3bc204-3a4b-4028-873e-1bb4de611b35"}, - CanTopupPrivateMoneyIds = new string[]{"62f4818d-3199-477a-927e-837a7bd51298", "93d424fc-f867-4860-8323-acbc8075e3fb", "bdd40098-8e92-4d58-959a-0cf23a3b7dbe", "1a2d39f8-babd-4172-bdef-9dac7ed2afba"}, + ExternalId = "9Jq", + PrivateMoneyIds = new string[]{"c68e4efb-1f16-49fc-8222-1f61bb680fa0", "c74a61ee-3a0c-4cc9-94aa-775ca1bc5a7e", "1c5cc500-ba0c-43bc-85b8-ce255910bbc6", "7b24ba89-06f1-4dc9-98f1-dafa999c5565", "cb769e89-7619-47a1-ac82-5bc7d0a85d7e", "aafdc9be-a129-40da-bbc4-3c4f5d81e904", "7492fb87-0ace-4855-9f25-3f2c6bb56041", "a230f8bd-092d-45a6-8a20-31e6d3d9be5e", "ce8674ec-f832-47c8-8df4-b5dbffb072a0"}, + CanTopupPrivateMoneyIds = new string[]{"777ab079-f261-418c-9301-5a57e5916930", "1ea06047-daeb-46f4-86b1-3970ddcfbe8f", "7e85e68f-01cf-4593-8cc2-9da4168c7a5a", "399d3c81-38fb-4d17-9efb-70bae03a6f81", "7785ce08-d1ef-4bfe-b3f8-b96381658f55", "e308a894-e9df-4eb6-bbd7-bf311836ad5e", "2563113d-6f76-4128-bbc6-b89be1307722"}, Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); @@ -114,13 +114,13 @@ public async Task UpdateShop5() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { - Email = "uPH3hhI04A@O4rg.com", - ExternalId = "AhQAt0OqjGLP0DBUnGxEl", - PrivateMoneyIds = new string[]{"8812ad9c-eb0a-475e-9376-ac45df1436c7", "1e839f0a-a9e6-436b-95ef-1b636df7d87a", "ab80e970-ac56-4aa0-9617-aae652cae188", "1598cdb2-c4d8-407f-a691-d4a9d0a99c68", "d3db4807-96df-4443-8d65-2df3c0510844", "e2d98d15-2393-4c82-ba62-47cc31fe2218"}, - CanTopupPrivateMoneyIds = new string[]{"557099ac-0db0-458e-839e-da75a2ea616d", "f373b617-4390-4b3f-b359-0caf4af540d8", "a519303d-e6ab-4c2a-990d-ba3484d3d765", "d3a9227f-47e5-491b-ad36-cd2c55984f53", "1f108010-2e1c-456b-9390-9e537b1fefaa", "67b9b10d-a9d3-4aa4-8983-a730a3edeb18", "5648cbd2-959d-4643-837c-f1a9464325f3"}, - Status = "disabled", + Email = "KN952VUdQ3@t63W.com", + ExternalId = "20fNhPhFK8mUwq4sfxVOVqIgogobrlT", + PrivateMoneyIds = new string[]{"9823cf2b-f381-44ae-b60b-d5f20e5219cb", "55a1f4f2-b119-4bf5-a9fb-b769884cf7fc"}, + CanTopupPrivateMoneyIds = new string[]{"636c1820-9a26-4773-907b-90477b34d0e3", "007be46a-5552-4278-a4bb-e5914e4db0cb", "5493bc2b-50fc-485f-ba23-a77a6d468db0", "019d7afd-7968-4dee-8821-680672124bf4", "4813a6d0-78bb-4722-853d-0c6ddd1fa49f", "cff5a1a7-2a10-45cf-951a-700da84524c6", "38ad6c7b-5b7a-4e79-a565-9231bd0531bd", "12ff47b0-6b84-44f3-8dee-3f8ccf24f131"}, + Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,13 +135,13 @@ public async Task UpdateShop6() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { - Tel = "086606592", - Email = "sVi251R9OV@M6dJ.com", - ExternalId = "XfTSVkQAgLF", - PrivateMoneyIds = new string[]{}, - CanTopupPrivateMoneyIds = new string[]{"9e6c9043-9647-4808-9beb-8b8cc8678f0d", "b7f6323a-56ba-48df-a6ab-387a095d0fd7", "f1441566-e0f6-43c8-914c-11bbfe66384e", "c4d5d870-a36c-4e30-bd19-c195022707b8", "6b37ce7a-6b0b-4faf-98c0-13ebe0583a69"}, + Tel = "00-745-336", + Email = "lk2JdjznjO@ojFz.com", + ExternalId = "yYyUwwyS9B5htgNIDpUpzK", + PrivateMoneyIds = new string[]{"3bc1ff09-4879-44ea-bb33-454222aabdc5", "370e4c3f-9576-4059-be3e-40f0c8aff2bf", "202a04bf-151e-4b31-ada7-673efe94eadc", "1ac3a6d4-78e2-401e-b5f9-e1531fd257c9", "81047840-cfa6-4018-b901-717decbe0290", "935a3139-1bf6-424d-a8e0-a3bd759a830f", "0bd62426-11e6-416a-9201-127dd63638f3", "407b3139-7a52-4d53-9b56-c01791224d49", "eff36d7c-af75-4621-92db-74cca06ff8ca"}, + CanTopupPrivateMoneyIds = new string[]{"06c38321-09ed-49d5-a76f-19e4592a9639"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -157,14 +157,14 @@ public async Task UpdateShop7() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { - Address = "PvpqWe6LFMxqHgshQQxZyXH54xcjjzE4jf3bC1uhrBdvXqhm8jwzIEhcNYML2OSzpp2xgjGNFVHJxj8ajHmdLScmLSMjxtIdUuX8NpagwVisjQjWa0Ga7Mr0dbte93IwLTuppNmEhXnyUDrs0YSyLNNnFCcwr1avxToYBT4VEV6evoILJv7tTWIqRKgT", - Tel = "0357-4236", - Email = "Ttxk7d6FPi@A0ls.com", - ExternalId = "Pm9uy3bOLitkN0KHj5fbn2v2B0", - PrivateMoneyIds = new string[]{"d3af940d-194a-4b2e-b54e-a65c74ac9aa6", "e568af1b-643b-4b72-bd28-63d883bbf5c3", "270aac78-8f2b-40bd-a783-725e845ef611", "3da96aea-cb64-4f6b-bfb6-3298498e5843", "cfbc8c9b-a77f-4c57-bacf-89ebc7c13141"}, - CanTopupPrivateMoneyIds = new string[]{"ccca7581-7568-4420-a0ca-34ba6559e0b0", "67cc7981-8c91-4f7b-bccc-0ddc18768a12", "bc2abb6f-ddf4-4eb3-88f4-01ef53c06546", "046ff7f3-f384-423d-acc1-c36c8ab41db3", "3f5de62e-6187-4cb8-8a66-6663f6f12169", "2d450ae2-7a72-492d-a450-ebd264f06c0b", "7339f9ea-8b06-49ea-b9b3-c8879e97f283"}, + Address = "RMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6p", + Tel = "08746216-4489", + Email = "oBOihdHvej@Lf7H.com", + ExternalId = "UNUhMpEnczy", + PrivateMoneyIds = new string[]{"7588d1e0-d04d-4d0a-97c1-9f7e33de2401", "719dfe50-f1af-4ee2-88d8-e003f62f85f9", "67b7fd3a-8ef4-4613-a483-feea17e06d5b", "826a47d5-8154-42b8-8619-e66be8fb3345", "bc3ff43d-ba36-4857-985c-934454f230e5", "9eaeeded-d2b2-4606-b267-afd321cbf6fa", "8b51258a-8c1d-4883-befc-3bfaa98cd7b3", "884f68b5-bbe1-48dd-bb22-24252c015f51"}, + CanTopupPrivateMoneyIds = new string[]{"4a941bb4-f044-498e-b912-e3b4e1884c6b", "1aa98052-8615-42b9-9330-a4d8e967e62f", "0d630554-b82e-4de4-a4ed-a54817458563", "80181943-76b0-4263-87fe-0c4612f3d73c", "98aeea40-c484-481e-9541-c88fe92b5693"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -180,16 +180,16 @@ public async Task UpdateShop8() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { - PostalCode = "405-9559", - Address = "5ECx1SgJEpSlopBJNy3qmiwYmDuOlcchHpAG2gwwi3nOK6tJxpePLFHBs9kILByZGqDqm9YAgnobRajraam0rBpkfu82GZDo8PtRb5vVt3TqmZrxia2ui6VWr3guQRAw5Cq4lwbs5G5iUu21d4ST7CuEydnlBtSyriuS9M5GXcqFt6wV9qfsP61uEwZUrs1XMhNzPArurgTCGgpfTuJZDkeCAQBkolLroUrTRKy1", - Tel = "029-504-723", - Email = "xjxtGbA05z@cwQ8.com", - ExternalId = "nH7AYfIcNt7NKHB", - PrivateMoneyIds = new string[]{"dd27c1a5-0d9d-4ac4-bc26-ad3c581c8907", "14b20488-8a54-42b4-baaa-1393151451fd", "273826c9-19f4-4b6c-b38c-a6dabdf39ec1", "92f89864-75b6-4749-86e8-182b0b3126eb", "c04dcfe3-f67e-439f-ba38-2414fc85d35f"}, - CanTopupPrivateMoneyIds = new string[]{"9bab6d6a-1a16-4ba5-8a52-417ab3dd209c", "29fd21cf-5ca4-499e-8a94-04152424ee4e", "32097f28-f2ad-4bd9-8e7d-00d443c1eafc", "629424ed-0c5f-45c1-8ca2-3b786f506230", "dd04cc9f-649d-427d-a310-080ac1269c83", "420990d2-1ff9-4ce7-bd72-862dbbdc66c6", "2759aa5a-96b6-4ddd-9bb6-911f8920e281"}, - Status = "active", + PostalCode = "2576971", + Address = "FofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBW", + Tel = "01-6918789", + Email = "KNgsodWT1k@P64c.com", + ExternalId = "hZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5", + PrivateMoneyIds = new string[]{"ab36d9f0-1794-4c21-99e9-521cc876a0ab", "adda7660-557a-491a-a56c-9888103f5578", "fe3a9b7f-aa36-418e-bdda-d6f780992ab3", "ead5fdc1-eace-405d-ab24-f9a7ec283ddf"}, + CanTopupPrivateMoneyIds = new string[]{"c8dd41ae-0a04-4ce5-8e4d-d25356c9c581", "1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599"}, + Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -204,16 +204,16 @@ public async Task UpdateShop9() { try { Request.UpdateShop request = new Request.UpdateShop( - "ac81c497-dd4a-43f7-b233-ece500c07020" + "f955ad39-a505-4cae-bcab-3898474d3cff" ) { - Name = "y9EQQUqakXyxFnuW2T4m1VyTa1OoANMT3g8KQuzrvKESksiTJQTVnHiOfPR4wy7f2LYwmiQU5GGwM55OvuPRHuaWsubCugQ2sjreB3py6MReMgsNKNI6WrDerxdbupVy8ATO6lTexkb25xKe3io9ZDBIqGu38r7vCoqpH5QhZu1k2tSxqrr7YJPVhda0ziWsQtZgRc6cmsvPcY7yThlkSXuhO9OLfbw29j7FyeDINdaRXM95lPwMwz9IKIn6w", - PostalCode = "5102479", - Address = "ErXa70KC1ZDBuFoL3t7T5TQkGNyZe8GBabvL25GC", - Tel = "06-5722-5249", - Email = "aPOXkEpypH@4Jrg.com", - ExternalId = "f6", - PrivateMoneyIds = new string[]{"f27be220-9d55-4347-bae4-9adc0307bcde", "239bd792-c69b-41f4-9a06-2a672cc8d724", "0af45b62-8def-4b0f-be8b-0659447e8071", "a00f3eb9-b8b9-41ad-83fd-98be48e3e97a", "3fc470ad-360f-4dc3-8d3a-7351e0c00b15", "89824d39-1d20-479a-b7ce-967a41e41169", "15a2cd82-7b41-4eb5-aa11-2f4ce9ed71f9"}, - CanTopupPrivateMoneyIds = new string[]{}, + Name = "igb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3hyN", + PostalCode = "0717105", + Address = "fSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9Dfg2K2KSBJ32yceHkpeJS53", + Tel = "0196952029", + Email = "uNlhP5RwfR@sdmS.com", + ExternalId = "nsKFojcLOuuurZaaP5z", + PrivateMoneyIds = new string[]{"f79d17f5-c6e9-4074-8ac1-0c57e8a7a542", "923d5e6e-f9cd-4954-9108-2183bf1ddb07", "da32a409-5072-49f1-914c-fd6240e5be18", "964449b4-4a0a-4186-a786-a54641f375b2", "5b20ebff-7414-4925-b75f-ab9215b0fa39", "50788947-c563-4e05-8773-ef64881eb210"}, + CanTopupPrivateMoneyIds = new string[]{"cf9981f4-70bc-46a6-834d-d1b3c74ccdac", "c5c87499-e6f5-432c-97c0-408bc5a6a98c", "9eb27d88-aa5e-4c53-a11d-87c540654e59", "c1060862-d4f5-4d98-a17e-eeba284b644f"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateWebhook.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateWebhook.cs index 694b6a9..525f560 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateWebhook.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateWebhook.cs @@ -25,7 +25,7 @@ public async Task UpdateWebhook0() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "7ae9614c-8c80-47d2-a7bc-e3a39130aeb5" + "1357dd08-2644-4a80-a512-1e10d9b922de" ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task UpdateWebhook1() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "7ae9614c-8c80-47d2-a7bc-e3a39130aeb5" + "1357dd08-2644-4a80-a512-1e10d9b922de" ) { - Task = "bulk_shops", + Task = "process_user_stats_operation", }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,7 +57,7 @@ public async Task UpdateWebhook2() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "7ae9614c-8c80-47d2-a7bc-e3a39130aeb5" + "1357dd08-2644-4a80-a512-1e10d9b922de" ) { IsActive = true, Task = "bulk_shops", @@ -75,11 +75,11 @@ public async Task UpdateWebhook3() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "7ae9614c-8c80-47d2-a7bc-e3a39130aeb5" + "1357dd08-2644-4a80-a512-1e10d9b922de" ) { - Url = "sTWRshd", + Url = "vc", IsActive = false, - Task = "process_user_stats_operation", + Task = "bulk_shops", }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/tdsl/TestCreateOrganizationTest.cs b/src/PokepayPartnerCsharpSdk.Test/tdsl/TestCreateOrganizationTest.cs new file mode 100644 index 0000000..ddaaa63 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/tdsl/TestCreateOrganizationTest.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 CreateOrganizationTest + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task testCreateOrganization() + { + string code = "test-org" + Util.RandomString(6); + string name = "テスト組織" + Util.RandomString(4); + string[] private_money_ids = new string[]{ + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + }; + string issuer_admin_user_email = Util.RandomString(6) + "@pokepay-tests.jp"; + string member_admin_user_email = Util.RandomString(6) + "@pokepay-tests.jp"; + Response.Organization response = await new Request.CreateOrganization( + code, + name, + private_money_ids, + issuer_admin_user_email, + member_admin_user_email + ).Send(client); + Assert.AreEqual(code, response.Code); + Assert.AreEqual(name, response.Name); + } + + [Test] + public async Task testCreateOrganizationWithMetadata() + { + string code = "test-org" + Util.RandomString(6); + string name = "テスト組織" + Util.RandomString(4); + string[] private_money_ids = new string[]{ + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + }; + string issuer_admin_user_email = Util.RandomString(6) + "@pokepay-tests.jp"; + string member_admin_user_email = Util.RandomString(6) + "@pokepay-tests.jp"; + string bank_code = "1234"; + string bank_name = Util.RandomString(4) + "銀行"; + string bank_branch_code = "123"; + string bank_branch_name = Util.RandomString(4) + "支店"; + string bank_account_type = "saving"; + string bank_account = "1234567"; + string bank_account_holder_name = "フクザワユキチ"; + string contact_name = "佐藤清"; + Response.Organization response = await new Request.CreateOrganization( + code, + name, + private_money_ids, + issuer_admin_user_email, + member_admin_user_email + ) { + + BankCode = bank_code, + BankName = bank_name, + BankBranchCode = bank_branch_code, + BankBranchName = bank_branch_name, + BankAccountType = bank_account_type, + BankAccount = bank_account, + BankAccountHolderName = bank_account_holder_name, + ContactName = contact_name,} + .Send(client); + Assert.AreEqual(code, response.Code); + Assert.AreEqual(name, response.Name); + } + } +} diff --git a/src/PokepayPartnerCsharpSdk.Test/tdsl/TestListOrganizations.cs b/src/PokepayPartnerCsharpSdk.Test/tdsl/TestListOrganizations.cs new file mode 100644 index 0000000..7c6260a --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/tdsl/TestListOrganizations.cs @@ -0,0 +1,44 @@ +// 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 ListOrganizations + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task simple() + { + Response.PaginatedOrganizations response = await new Request.ListOrganizations( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + ).Send(client); + Debug.Print(response); + } + + [Test] + public async Task paging() + { + Response.PaginatedOrganizations response = await new Request.ListOrganizations( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb" + ) { + + PerPage = 3,} + .Send(client); + Assert.AreEqual(3, response.Pagination.PerPage); + } + } +} diff --git a/src/PokepayPartnerCsharpSdk.Test/tdsl/TestSendEchoTest.cs b/src/PokepayPartnerCsharpSdk.Test/tdsl/TestSendEchoTest.cs new file mode 100644 index 0000000..a5a0336 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/tdsl/TestSendEchoTest.cs @@ -0,0 +1,33 @@ +// 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 SendEchoTest + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task simpleTest() + { + Response.Echo response = await new Request.SendEcho( + "Hello" + ).Send(client); + Assert.AreEqual("ok", response.Status); + Assert.AreEqual("Hello", response.Message); + } + } +} diff --git a/src/PokepayPartnerCsharpSdk.Test/tdsl/TestWebhookTests.cs b/src/PokepayPartnerCsharpSdk.Test/tdsl/TestWebhookTests.cs new file mode 100644 index 0000000..72e4e0d --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/tdsl/TestWebhookTests.cs @@ -0,0 +1,69 @@ +// 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 WebhookTests + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task test0() + { + Response.PaginatedOrganizationWorkerTaskWebhook list = await new Request.ListWebhooks().Send(client); + foreach (Response.OrganizationWorkerTaskWebhook row in list.Rows) + { + await new Request.DeleteWebhook( + row.Id + ).Send(client); + } + Response.OrganizationWorkerTaskWebhook webhook1 = await new Request.CreateWebhook( + "bulk_shops", + "http://localhost/bulk_shops" + ).Send(client); + Assert.AreEqual("coilinc", webhook1.OrganizationCode); + Assert.AreEqual("bulk_shops", webhook1.Task); + Assert.AreEqual("http://localhost/bulk_shops", webhook1.Url); + Assert.AreEqual(true, webhook1.IsActive); + Assert.AreEqual("application/json", webhook1.ContentType); + Response.OrganizationWorkerTaskWebhook webhook2 = await new Request.CreateWebhook( + "process_user_stats_operation", + "http://localhost/process_user_stats_operation" + ).Send(client); + Assert.AreEqual("coilinc", webhook2.OrganizationCode); + Assert.AreEqual("process_user_stats_operation", webhook2.Task); + Assert.AreEqual("http://localhost/process_user_stats_operation", webhook2.Url); + Assert.AreEqual(true, webhook2.IsActive); + Assert.AreEqual("application/json", webhook2.ContentType); + Response.PaginatedOrganizationWorkerTaskWebhook list2 = await new Request.ListWebhooks().Send(client); + Assert.AreEqual(2, list2.Count); + Assert.AreEqual(webhook2.Id, list2.Rows[0].Id); + Assert.AreEqual(webhook1.Id, list2.Rows[1].Id); + Response.OrganizationWorkerTaskWebhook update_response = await new Request.UpdateWebhook( + webhook1.Id + ) { + + IsActive = false,} + .Send(client); + Assert.AreEqual(webhook1.Id, update_response.Id); + Assert.AreEqual(webhook1.OrganizationCode, update_response.OrganizationCode); + Assert.AreEqual(webhook1.Task, update_response.Task); + Assert.AreEqual(webhook1.Url, update_response.Url); + Assert.AreEqual(webhook1.ContentType, update_response.ContentType); + Assert.AreEqual(false, update_response.IsActive); + } + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/ActivateUserDevice.cs b/src/PokepayPartnerCsharpSdk/Request/ActivateUserDevice.cs new file mode 100644 index 0000000..7d40e98 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/ActivateUserDevice.cs @@ -0,0 +1,38 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; + +using PokepayPartnerCsharpSdk; +using PokepayPartnerCsharpSdk.Response; + +namespace PokepayPartnerCsharpSdk.Request +{ + public class ActivateUserDevice + { + private string UserDeviceId { get; set; } +#if NETFRAMEWORK +#else +#endif + + public ActivateUserDevice(string userDeviceId) => + (UserDeviceId) = (userDeviceId); + + private string path { get { return "/user-devices" + "/" + UserDeviceId + "/activate"; } } + + private static readonly HttpMethod method = new HttpMethod("POST"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, ActivateUserDevice.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, ActivateUserDevice.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateBank.cs b/src/PokepayPartnerCsharpSdk/Request/CreateBank.cs new file mode 100644 index 0000000..febce36 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/CreateBank.cs @@ -0,0 +1,50 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; + +using PokepayPartnerCsharpSdk; +using PokepayPartnerCsharpSdk.Response; + +namespace PokepayPartnerCsharpSdk.Request +{ + public class CreateBank + { + private string UserDeviceId { get; set; } +#if NETFRAMEWORK + public string PrivateMoneyId { get; set; } + public string CallbackUrl { get; set; } + public string Kana { get; set; } + public string Email { get; set; } + public string Birthdate { get; set; } +#else + public string PrivateMoneyId { get; set; } + public string CallbackUrl { get; set; } + public string Kana { get; set; } + #nullable enable + public string? Email { get; set; } + #nullable enable + public string? Birthdate { get; set; } +#endif + + public CreateBank(string userDeviceId, string privateMoneyId, string callbackUrl, string kana) => + (UserDeviceId, PrivateMoneyId, CallbackUrl, Kana) = (userDeviceId, privateMoneyId, callbackUrl, kana); + + private string path { get { return "/user-devices" + "/" + UserDeviceId + "/banks"; } } + + private static readonly HttpMethod method = new HttpMethod("POST"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, CreateBank.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, CreateBank.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateBankTopupTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateBankTopupTransaction.cs new file mode 100644 index 0000000..d16ec8e --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/CreateBankTopupTransaction.cs @@ -0,0 +1,46 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; + +using PokepayPartnerCsharpSdk; +using PokepayPartnerCsharpSdk.Response; + +namespace PokepayPartnerCsharpSdk.Request +{ + public class CreateBankTopupTransaction + { + private string UserDeviceId { get; set; } +#if NETFRAMEWORK + public string PrivateMoneyId { get; set; } + public int Amount { get; set; } + public string BankId { get; set; } + public string RequestId { get; set; } +#else + public string PrivateMoneyId { get; set; } + public int Amount { get; set; } + public string BankId { get; set; } + public string RequestId { get; set; } +#endif + + public CreateBankTopupTransaction(string userDeviceId, string privateMoneyId, int amount, string bankId, string requestId) => + (UserDeviceId, PrivateMoneyId, Amount, BankId, RequestId) = (userDeviceId, privateMoneyId, amount, bankId, requestId); + + private string path { get { return "/user-devices" + "/" + UserDeviceId + "/banks" + "/topup"; } } + + private static readonly HttpMethod method = new HttpMethod("POST"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, CreateBankTopupTransaction.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, CreateBankTopupTransaction.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateBill.cs b/src/PokepayPartnerCsharpSdk/Request/CreateBill.cs index ffd1fbf..710b61f 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateBill.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateBill.cs @@ -11,7 +11,7 @@ namespace PokepayPartnerCsharpSdk.Request public class CreateBill { #if NETFRAMEWORK - public double Amount { get; set; } + public System.Nullable Amount { get; set; } public string PrivateMoneyId { get; set; } public string ShopId { get; set; } public string Description { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs index e61e6df..7ed492e 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs @@ -21,20 +21,21 @@ public class CreateCampaign public string Description { get; set; } public string Status { get; set; } public string PointExpiresAt { get; set; } - public int PointExpiresInDays { get; set; } - public bool IsExclusive { get; set; } + public System.Nullable PointExpiresInDays { get; set; } + public System.Nullable IsExclusive { get; set; } public string Subject { get; set; } public object[] AmountBasedPointRules { get; set; } public object[] ProductBasedPointRules { get; set; } public int[] ApplicableDaysOfWeek { get; set; } public object[] ApplicableTimeRanges { get; set; } public string[] ApplicableShopIds { get; set; } - public int MinimumNumberForCombinationPurchase { get; set; } - public bool ExistInEachProductGroups { get; set; } - public int MaxPointAmount { get; set; } - public int MaxTotalPointAmount { get; set; } + public System.Nullable MinimumNumberForCombinationPurchase { get; set; } + public System.Nullable ExistInEachProductGroups { get; set; } + public System.Nullable MaxPointAmount { get; set; } + public System.Nullable MaxTotalPointAmount { get; set; } public string DestPrivateMoneyId { get; set; } public object ApplicableAccountMetadata { get; set; } + public System.Nullable BudgetCapsAmount { get; set; } #else public string Name { get; set; } public string PrivateMoneyId { get; set; } @@ -78,6 +79,8 @@ public class CreateCampaign public string? DestPrivateMoneyId { get; set; } #nullable enable public object? ApplicableAccountMetadata { get; set; } + #nullable enable + public int? BudgetCapsAmount { get; set; } #endif public CreateCampaign(string name, string privateMoneyId, string startsAt, string endsAt, int priority, string eventType) => diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCashtray.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCashtray.cs index d58c805..354e5b7 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCashtray.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCashtray.cs @@ -15,7 +15,7 @@ public class CreateCashtray public string ShopId { get; set; } public double Amount { get; set; } public string Description { get; set; } - public int ExpiresIn { get; set; } + public System.Nullable ExpiresIn { get; set; } #else public string PrivateMoneyId { get; set; } public string ShopId { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCheck.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCheck.cs index 69bf93f..9969abd 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCheck.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCheck.cs @@ -11,15 +11,15 @@ namespace PokepayPartnerCsharpSdk.Request public class CreateCheck { #if NETFRAMEWORK - public double MoneyAmount { get; set; } - public double PointAmount { get; set; } + public System.Nullable MoneyAmount { get; set; } + public System.Nullable PointAmount { get; set; } public string AccountId { get; set; } public string Description { get; set; } - public bool IsOnetime { get; set; } - public int UsageLimit { get; set; } + public System.Nullable IsOnetime { get; set; } + public System.Nullable UsageLimit { get; set; } public string ExpiresAt { get; set; } public string PointExpiresAt { get; set; } - public int PointExpiresInDays { get; set; } + public System.Nullable PointExpiresInDays { get; set; } public string BearPointAccount { get; set; } #else #nullable enable diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCoupon.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCoupon.cs index d06aa80..f0e3485 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCoupon.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCoupon.cs @@ -14,21 +14,21 @@ public class CreateCoupon public string PrivateMoneyId { get; set; } public string Name { get; set; } public string Description { get; set; } - public int DiscountAmount { get; set; } - public double DiscountPercentage { get; set; } - public int DiscountUpperLimit { get; set; } + public System.Nullable DiscountAmount { get; set; } + public System.Nullable DiscountPercentage { get; set; } + public System.Nullable DiscountUpperLimit { get; set; } public string StartsAt { get; set; } public string EndsAt { get; set; } public string DisplayStartsAt { get; set; } public string DisplayEndsAt { get; set; } - public bool IsDisabled { get; set; } - public bool IsHidden { get; set; } - public bool IsPublic { get; set; } + public System.Nullable IsDisabled { get; set; } + public System.Nullable IsHidden { get; set; } + public System.Nullable IsPublic { get; set; } public string Code { get; set; } - public int UsageLimit { get; set; } - public int MinAmount { get; set; } + public System.Nullable UsageLimit { get; set; } + public System.Nullable MinAmount { get; set; } public string IssuedShopId { get; set; } - public bool IsShopSpecified { get; set; } + public System.Nullable IsShopSpecified { get; set; } public string[] AvailableShopIds { get; set; } public string StorageId { get; set; } #else diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateExchangeTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateExchangeTransaction.cs index cff35bf..1bc1d87 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateExchangeTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateExchangeTransaction.cs @@ -14,21 +14,21 @@ public class CreateExchangeTransaction public string UserId { get; set; } public string SenderPrivateMoneyId { get; set; } public string ReceiverPrivateMoneyId { get; set; } - public double Amount { get; set; } + public int Amount { get; set; } public string Description { get; set; } public string RequestId { get; set; } #else public string UserId { get; set; } public string SenderPrivateMoneyId { get; set; } public string ReceiverPrivateMoneyId { get; set; } - public double Amount { get; set; } + public int Amount { get; set; } #nullable enable public string? Description { get; set; } #nullable enable public string? RequestId { get; set; } #endif - public CreateExchangeTransaction(string userId, string senderPrivateMoneyId, string receiverPrivateMoneyId, double amount) => + public CreateExchangeTransaction(string userId, string senderPrivateMoneyId, string receiverPrivateMoneyId, int amount) => (UserId, SenderPrivateMoneyId, ReceiverPrivateMoneyId, Amount) = (userId, senderPrivateMoneyId, receiverPrivateMoneyId, amount); private string path { get { return "/transactions" + "/exchange"; } } diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateTopupTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateTopupTransaction.cs index f376224..1545051 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateTopupTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateTopupTransaction.cs @@ -15,8 +15,8 @@ public class CreateTopupTransaction public string CustomerId { get; set; } public string PrivateMoneyId { get; set; } public string BearPointShopId { get; set; } - public int MoneyAmount { get; set; } - public int PointAmount { get; set; } + public System.Nullable MoneyAmount { get; set; } + public System.Nullable PointAmount { get; set; } public string PointExpiresAt { get; set; } public string Description { get; set; } public string Metadata { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateTransaction.cs index 77b8eb7..a4a80a5 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateTransaction.cs @@ -14,8 +14,8 @@ public class CreateTransaction public string ShopId { get; set; } public string CustomerId { get; set; } public string PrivateMoneyId { get; set; } - public int MoneyAmount { get; set; } - public int PointAmount { get; set; } + public System.Nullable MoneyAmount { get; set; } + public System.Nullable PointAmount { get; set; } public string PointExpiresAt { get; set; } public string Description { get; set; } #else diff --git a/src/PokepayPartnerCsharpSdk/Request/DeleteAccount.cs b/src/PokepayPartnerCsharpSdk/Request/DeleteAccount.cs index 1ef87cd..0b76eff 100644 --- a/src/PokepayPartnerCsharpSdk/Request/DeleteAccount.cs +++ b/src/PokepayPartnerCsharpSdk/Request/DeleteAccount.cs @@ -12,7 +12,7 @@ public class DeleteAccount { private string AccountId { get; set; } #if NETFRAMEWORK - public bool Cashback { get; set; } + public System.Nullable Cashback { get; set; } #else #nullable enable public bool? Cashback { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/GetCustomerAccounts.cs b/src/PokepayPartnerCsharpSdk/Request/GetCustomerAccounts.cs index 05a3390..c1fab5a 100644 --- a/src/PokepayPartnerCsharpSdk/Request/GetCustomerAccounts.cs +++ b/src/PokepayPartnerCsharpSdk/Request/GetCustomerAccounts.cs @@ -12,11 +12,11 @@ public class GetCustomerAccounts { #if NETFRAMEWORK public string PrivateMoneyId { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } public string CreatedAtFrom { get; set; } public string CreatedAtTo { get; set; } - public bool IsSuspended { get; set; } + public System.Nullable IsSuspended { get; set; } public string Status { get; set; } public string ExternalId { get; set; } public string Tel { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/GetPrivateMoneyOrganizationSummaries.cs b/src/PokepayPartnerCsharpSdk/Request/GetPrivateMoneyOrganizationSummaries.cs index ae77098..6b43df9 100644 --- a/src/PokepayPartnerCsharpSdk/Request/GetPrivateMoneyOrganizationSummaries.cs +++ b/src/PokepayPartnerCsharpSdk/Request/GetPrivateMoneyOrganizationSummaries.cs @@ -14,8 +14,8 @@ public class GetPrivateMoneyOrganizationSummaries #if NETFRAMEWORK public string From { get; set; } public string To { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else #nullable enable public string? From { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/GetPrivateMoneys.cs b/src/PokepayPartnerCsharpSdk/Request/GetPrivateMoneys.cs index 4e42e40..b4cfc90 100644 --- a/src/PokepayPartnerCsharpSdk/Request/GetPrivateMoneys.cs +++ b/src/PokepayPartnerCsharpSdk/Request/GetPrivateMoneys.cs @@ -12,8 +12,8 @@ public class GetPrivateMoneys { #if NETFRAMEWORK public string OrganizationCode { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else #nullable enable public string? OrganizationCode { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/GetShopAccounts.cs b/src/PokepayPartnerCsharpSdk/Request/GetShopAccounts.cs index de28a9a..bff4978 100644 --- a/src/PokepayPartnerCsharpSdk/Request/GetShopAccounts.cs +++ b/src/PokepayPartnerCsharpSdk/Request/GetShopAccounts.cs @@ -12,11 +12,11 @@ public class GetShopAccounts { #if NETFRAMEWORK public string PrivateMoneyId { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } public string CreatedAtFrom { get; set; } public string CreatedAtTo { get; set; } - public bool IsSuspended { get; set; } + public System.Nullable IsSuspended { get; set; } #else public string PrivateMoneyId { get; set; } #nullable enable diff --git a/src/PokepayPartnerCsharpSdk/Request/ListAccountBalances.cs b/src/PokepayPartnerCsharpSdk/Request/ListAccountBalances.cs index 82b16a2..0808f19 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListAccountBalances.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListAccountBalances.cs @@ -12,8 +12,8 @@ public class ListAccountBalances { private string AccountId { get; set; } #if NETFRAMEWORK - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } public string ExpiresAtFrom { get; set; } public string ExpiresAtTo { get; set; } public string Direction { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListAccountExpiredBalances.cs b/src/PokepayPartnerCsharpSdk/Request/ListAccountExpiredBalances.cs index 46e65c8..288fc47 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListAccountExpiredBalances.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListAccountExpiredBalances.cs @@ -12,8 +12,8 @@ public class ListAccountExpiredBalances { private string AccountId { get; set; } #if NETFRAMEWORK - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } public string ExpiresAtFrom { get; set; } public string ExpiresAtTo { get; set; } public string Direction { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListBanks.cs b/src/PokepayPartnerCsharpSdk/Request/ListBanks.cs new file mode 100644 index 0000000..9fae0e4 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/ListBanks.cs @@ -0,0 +1,41 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; + +using PokepayPartnerCsharpSdk; +using PokepayPartnerCsharpSdk.Response; + +namespace PokepayPartnerCsharpSdk.Request +{ + public class ListBanks + { + private string UserDeviceId { get; set; } +#if NETFRAMEWORK + public string PrivateMoneyId { get; set; } +#else + #nullable enable + public string? PrivateMoneyId { get; set; } +#endif + + public ListBanks(string userDeviceId) => + (UserDeviceId) = (userDeviceId); + + private string path { get { return "/user-devices" + "/" + UserDeviceId + "/banks"; } } + + private static readonly HttpMethod method = new HttpMethod("GET"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, ListBanks.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, ListBanks.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/ListBills.cs b/src/PokepayPartnerCsharpSdk/Request/ListBills.cs index 62b60f3..c1720a2 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListBills.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListBills.cs @@ -11,8 +11,8 @@ namespace PokepayPartnerCsharpSdk.Request public class ListBills { #if NETFRAMEWORK - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } public string BillId { get; set; } public string PrivateMoneyId { get; set; } public string OrganizationCode { get; set; } @@ -21,9 +21,9 @@ public class ListBills public string CreatedTo { get; set; } public string ShopName { get; set; } public string ShopId { get; set; } - public int LowerLimitAmount { get; set; } - public int UpperLimitAmount { get; set; } - public bool IsDisabled { get; set; } + public System.Nullable LowerLimitAmount { get; set; } + public System.Nullable UpperLimitAmount { get; set; } + public System.Nullable IsDisabled { get; set; } #else #nullable enable public int? Page { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListBulkTransactionJobs.cs b/src/PokepayPartnerCsharpSdk/Request/ListBulkTransactionJobs.cs index 25fe1c0..bc5f3a7 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListBulkTransactionJobs.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListBulkTransactionJobs.cs @@ -12,8 +12,8 @@ public class ListBulkTransactionJobs { private string BulkTransactionId { get; set; } #if NETFRAMEWORK - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else #nullable enable public int? Page { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListCampaigns.cs b/src/PokepayPartnerCsharpSdk/Request/ListCampaigns.cs index bb1263f..acb6dd8 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListCampaigns.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListCampaigns.cs @@ -12,11 +12,11 @@ public class ListCampaigns { #if NETFRAMEWORK public string PrivateMoneyId { get; set; } - public bool IsOngoing { get; set; } + public System.Nullable IsOngoing { get; set; } public string AvailableFrom { get; set; } public string AvailableTo { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else public string PrivateMoneyId { get; set; } #nullable enable diff --git a/src/PokepayPartnerCsharpSdk/Request/ListChecks.cs b/src/PokepayPartnerCsharpSdk/Request/ListChecks.cs index bf1a7d5..36fc6ec 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListChecks.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListChecks.cs @@ -11,8 +11,8 @@ namespace PokepayPartnerCsharpSdk.Request public class ListChecks { #if NETFRAMEWORK - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } public string PrivateMoneyId { get; set; } public string OrganizationCode { get; set; } public string ExpiresFrom { get; set; } @@ -21,8 +21,8 @@ public class ListChecks public string CreatedTo { get; set; } public string IssuerShopId { get; set; } public string Description { get; set; } - public bool IsOnetime { get; set; } - public bool IsDisabled { get; set; } + public System.Nullable IsOnetime { get; set; } + public System.Nullable IsDisabled { get; set; } #else #nullable enable public int? Page { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListCoupons.cs b/src/PokepayPartnerCsharpSdk/Request/ListCoupons.cs index 8aab871..d8a2f0b 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListCoupons.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListCoupons.cs @@ -18,8 +18,8 @@ public class ListCoupons public string AvailableShopName { get; set; } public string AvailableFrom { get; set; } public string AvailableTo { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else public string PrivateMoneyId { get; set; } #nullable enable diff --git a/src/PokepayPartnerCsharpSdk/Request/ListCustomerTransactions.cs b/src/PokepayPartnerCsharpSdk/Request/ListCustomerTransactions.cs index 94c0604..b5299ad 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListCustomerTransactions.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListCustomerTransactions.cs @@ -15,11 +15,11 @@ public class ListCustomerTransactions public string SenderCustomerId { get; set; } public string ReceiverCustomerId { get; set; } public string Type { get; set; } - public bool IsModified { get; set; } + public System.Nullable IsModified { get; set; } public string From { get; set; } public string To { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else public string PrivateMoneyId { get; set; } #nullable enable diff --git a/src/PokepayPartnerCsharpSdk/Request/ListOrganizations.cs b/src/PokepayPartnerCsharpSdk/Request/ListOrganizations.cs new file mode 100644 index 0000000..4c6495a --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/ListOrganizations.cs @@ -0,0 +1,51 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; + +using PokepayPartnerCsharpSdk; +using PokepayPartnerCsharpSdk.Response; + +namespace PokepayPartnerCsharpSdk.Request +{ + public class ListOrganizations + { +#if NETFRAMEWORK + public string PrivateMoneyId { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } + public string Name { get; set; } + public string Code { get; set; } +#else + public string PrivateMoneyId { get; set; } + #nullable enable + public int? Page { get; set; } + #nullable enable + public int? PerPage { get; set; } + #nullable enable + public string? Name { get; set; } + #nullable enable + public string? Code { get; set; } +#endif + + public ListOrganizations(string privateMoneyId) => + (PrivateMoneyId) = (privateMoneyId); + + private string path { get { return "/organizations"; } } + + private static readonly HttpMethod method = new HttpMethod("GET"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, ListOrganizations.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, ListOrganizations.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/ListShops.cs b/src/PokepayPartnerCsharpSdk/Request/ListShops.cs index c3a72b9..d2837e4 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListShops.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListShops.cs @@ -19,9 +19,9 @@ public class ListShops public string Tel { get; set; } public string Email { get; set; } public string ExternalId { get; set; } - public bool WithDisabled { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable WithDisabled { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else #nullable enable public string? OrganizationCode { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListTransactions.cs b/src/PokepayPartnerCsharpSdk/Request/ListTransactions.cs index 547bbb3..6bbaed4 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListTransactions.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListTransactions.cs @@ -13,8 +13,8 @@ public class ListTransactions #if NETFRAMEWORK public string From { get; set; } public string To { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } public string ShopId { get; set; } public string CustomerId { get; set; } public string CustomerName { get; set; } @@ -22,7 +22,7 @@ public class ListTransactions public string TransactionId { get; set; } public string OrganizationCode { get; set; } public string PrivateMoneyId { get; set; } - public bool IsModified { get; set; } + public System.Nullable IsModified { get; set; } public string[] Types { get; set; } public string Description { get; set; } #else diff --git a/src/PokepayPartnerCsharpSdk/Request/ListTransactionsV2.cs b/src/PokepayPartnerCsharpSdk/Request/ListTransactionsV2.cs index acb9c0c..1aa9e01 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListTransactionsV2.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListTransactionsV2.cs @@ -19,13 +19,13 @@ public class ListTransactionsV2 public string CustomerName { get; set; } public string Description { get; set; } public string TransactionId { get; set; } - public bool IsModified { get; set; } + public System.Nullable IsModified { get; set; } public string[] Types { get; set; } public string From { get; set; } public string To { get; set; } public string NextPageCursorId { get; set; } public string PrevPageCursorId { get; set; } - public int PerPage { get; set; } + public System.Nullable PerPage { get; set; } #else #nullable enable public string? PrivateMoneyId { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListTransfers.cs b/src/PokepayPartnerCsharpSdk/Request/ListTransfers.cs index a223e81..457543f 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListTransfers.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListTransfers.cs @@ -13,15 +13,15 @@ public class ListTransfers #if NETFRAMEWORK public string From { get; set; } public string To { get; set; } - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } public string ShopId { get; set; } public string ShopName { get; set; } public string CustomerId { get; set; } public string CustomerName { get; set; } public string TransactionId { get; set; } public string PrivateMoneyId { get; set; } - public bool IsModified { get; set; } + public System.Nullable IsModified { get; set; } public string[] TransactionTypes { get; set; } public string[] TransferTypes { get; set; } public string Description { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListTransfersV2.cs b/src/PokepayPartnerCsharpSdk/Request/ListTransfersV2.cs index 78e3feb..89a9269 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListTransfersV2.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListTransfersV2.cs @@ -17,11 +17,11 @@ public class ListTransfersV2 public string CustomerName { get; set; } public string TransactionId { get; set; } public string PrivateMoneyId { get; set; } - public bool IsModified { get; set; } + public System.Nullable IsModified { get; set; } public string[] TransactionTypes { get; set; } public string NextPageCursorId { get; set; } public string PrevPageCursorId { get; set; } - public int PerPage { get; set; } + public System.Nullable PerPage { get; set; } public string[] TransferTypes { get; set; } public string Description { get; set; } public string From { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListUserAccounts.cs b/src/PokepayPartnerCsharpSdk/Request/ListUserAccounts.cs index 7129a6d..18f0b63 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListUserAccounts.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListUserAccounts.cs @@ -12,8 +12,8 @@ public class ListUserAccounts { private string UserId { get; set; } #if NETFRAMEWORK - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else #nullable enable public int? Page { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/ListWebhooks.cs b/src/PokepayPartnerCsharpSdk/Request/ListWebhooks.cs index e220c84..51efb06 100644 --- a/src/PokepayPartnerCsharpSdk/Request/ListWebhooks.cs +++ b/src/PokepayPartnerCsharpSdk/Request/ListWebhooks.cs @@ -11,8 +11,8 @@ namespace PokepayPartnerCsharpSdk.Request public class ListWebhooks { #if NETFRAMEWORK - public int Page { get; set; } - public int PerPage { get; set; } + public System.Nullable Page { get; set; } + public System.Nullable PerPage { get; set; } #else #nullable enable public int? Page { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateAccount.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateAccount.cs index e8ee22b..4e69711 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateAccount.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateAccount.cs @@ -12,9 +12,9 @@ public class UpdateAccount { private string AccountId { get; set; } #if NETFRAMEWORK - public bool IsSuspended { get; set; } + public System.Nullable IsSuspended { get; set; } public string Status { get; set; } - public bool CanTransferTopup { get; set; } + public System.Nullable CanTransferTopup { get; set; } #else #nullable enable public bool? IsSuspended { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateBill.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateBill.cs index d23284f..8a2ece7 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateBill.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateBill.cs @@ -12,9 +12,9 @@ public class UpdateBill { private string BillId { get; set; } #if NETFRAMEWORK - public double Amount { get; set; } + public System.Nullable Amount { get; set; } public string Description { get; set; } - public bool IsDisabled { get; set; } + public System.Nullable IsDisabled { get; set; } #else #nullable enable public double? Amount { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs index 0c449b0..5bbdc73 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs @@ -15,24 +15,25 @@ public class UpdateCampaign public string Name { get; set; } public string StartsAt { get; set; } public string EndsAt { get; set; } - public int Priority { get; set; } + public System.Nullable Priority { get; set; } public string Event { get; set; } public string Description { get; set; } public string Status { get; set; } public string PointExpiresAt { get; set; } - public int PointExpiresInDays { get; set; } - public bool IsExclusive { get; set; } + public System.Nullable PointExpiresInDays { get; set; } + public System.Nullable IsExclusive { get; set; } public string Subject { get; set; } public object[] AmountBasedPointRules { get; set; } public object[] ProductBasedPointRules { get; set; } public int[] ApplicableDaysOfWeek { get; set; } public object[] ApplicableTimeRanges { get; set; } public string[] ApplicableShopIds { get; set; } - public int MinimumNumberForCombinationPurchase { get; set; } - public bool ExistInEachProductGroups { get; set; } - public int MaxPointAmount { get; set; } - public int MaxTotalPointAmount { get; set; } + public System.Nullable MinimumNumberForCombinationPurchase { get; set; } + public System.Nullable ExistInEachProductGroups { get; set; } + public System.Nullable MaxPointAmount { get; set; } + public System.Nullable MaxTotalPointAmount { get; set; } public object ApplicableAccountMetadata { get; set; } + public System.Nullable BudgetCapsAmount { get; set; } #else #nullable enable public string? Name { get; set; } @@ -76,6 +77,8 @@ public class UpdateCampaign public int? MaxTotalPointAmount { get; set; } #nullable enable public object? ApplicableAccountMetadata { get; set; } + #nullable enable + public int? BudgetCapsAmount { get; set; } #endif public UpdateCampaign(string campaignId) => diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateCashtray.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateCashtray.cs index 11d748d..f43f98f 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateCashtray.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateCashtray.cs @@ -12,9 +12,9 @@ public class UpdateCashtray { private string CashtrayId { get; set; } #if NETFRAMEWORK - public double Amount { get; set; } + public System.Nullable Amount { get; set; } public string Description { get; set; } - public int ExpiresIn { get; set; } + public System.Nullable ExpiresIn { get; set; } #else #nullable enable public double? Amount { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateCheck.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateCheck.cs index 9a9cf68..49e7caa 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateCheck.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateCheck.cs @@ -12,16 +12,16 @@ public class UpdateCheck { private string CheckId { get; set; } #if NETFRAMEWORK - public double MoneyAmount { get; set; } - public double PointAmount { get; set; } + public System.Nullable MoneyAmount { get; set; } + public System.Nullable PointAmount { get; set; } public string Description { get; set; } - public bool IsOnetime { get; set; } - public int UsageLimit { get; set; } + public System.Nullable IsOnetime { get; set; } + public System.Nullable UsageLimit { get; set; } public string ExpiresAt { get; set; } public string PointExpiresAt { get; set; } - public int PointExpiresInDays { get; set; } + public System.Nullable PointExpiresInDays { get; set; } public string BearPointAccount { get; set; } - public bool IsDisabled { get; set; } + public System.Nullable IsDisabled { get; set; } #else #nullable enable public double? MoneyAmount { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateCoupon.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateCoupon.cs index da3540b..2bb3986 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateCoupon.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateCoupon.cs @@ -14,20 +14,20 @@ public class UpdateCoupon #if NETFRAMEWORK public string Name { get; set; } public string Description { get; set; } - public int DiscountAmount { get; set; } - public double DiscountPercentage { get; set; } - public int DiscountUpperLimit { get; set; } + public System.Nullable DiscountAmount { get; set; } + public System.Nullable DiscountPercentage { get; set; } + public System.Nullable DiscountUpperLimit { get; set; } public string StartsAt { get; set; } public string EndsAt { get; set; } public string DisplayStartsAt { get; set; } public string DisplayEndsAt { get; set; } - public bool IsDisabled { get; set; } - public bool IsHidden { get; set; } - public bool IsPublic { get; set; } + public System.Nullable IsDisabled { get; set; } + public System.Nullable IsHidden { get; set; } + public System.Nullable IsPublic { get; set; } public string Code { get; set; } - public int UsageLimit { get; set; } - public int MinAmount { get; set; } - public bool IsShopSpecified { get; set; } + public System.Nullable UsageLimit { get; set; } + public System.Nullable MinAmount { get; set; } + public System.Nullable IsShopSpecified { get; set; } public string[] AvailableShopIds { get; set; } public string StorageId { get; set; } #else diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateWebhook.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateWebhook.cs index da1be9c..d54b3c3 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateWebhook.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateWebhook.cs @@ -13,7 +13,7 @@ public class UpdateWebhook private string WebhookId { get; set; } #if NETFRAMEWORK public string Url { get; set; } - public bool IsActive { get; set; } + public System.Nullable IsActive { get; set; } public string Task { get; set; } #else #nullable enable diff --git a/src/PokepayPartnerCsharpSdk/Response/Bank.cs b/src/PokepayPartnerCsharpSdk/Response/Bank.cs new file mode 100644 index 0000000..397e8fa --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Response/Bank.cs @@ -0,0 +1,22 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Text.Json.Serialization; + +namespace PokepayPartnerCsharpSdk.Response +{ + public class Bank + { + public string Id { get; } + public PrivateMoney PrivateMoney { get; } + public string BankName { get; } + public string BankCode { get; } + public string BranchNumber { get; } + public string BranchName { get; } + public string DepositType { get; } + public string MaskedAccountNumber { get; } + public string AccountName { get; } + + [JsonConstructor] + public Bank(string id, PrivateMoney privateMoney, string bankName, string bankCode, string branchNumber, string branchName, string depositType, string maskedAccountNumber, string accountName) => + (Id, PrivateMoney, BankName, BankCode, BranchNumber, BranchName, DepositType, MaskedAccountNumber, AccountName) = (id, privateMoney, bankName, bankCode, branchNumber, branchName, depositType, maskedAccountNumber, accountName); + } +} diff --git a/src/PokepayPartnerCsharpSdk/Response/BankRegisteringInfo.cs b/src/PokepayPartnerCsharpSdk/Response/BankRegisteringInfo.cs new file mode 100644 index 0000000..f6866dd --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Response/BankRegisteringInfo.cs @@ -0,0 +1,15 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Text.Json.Serialization; + +namespace PokepayPartnerCsharpSdk.Response +{ + public class BankRegisteringInfo + { + public string RedirectUrl { get; } + public string PaytreeCustomerNumber { get; } + + [JsonConstructor] + public BankRegisteringInfo(string redirectUrl) => + (RedirectUrl) = (redirectUrl); + } +} diff --git a/src/PokepayPartnerCsharpSdk/Response/Banks.cs b/src/PokepayPartnerCsharpSdk/Response/Banks.cs new file mode 100644 index 0000000..3a46fb1 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Response/Banks.cs @@ -0,0 +1,15 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Text.Json.Serialization; + +namespace PokepayPartnerCsharpSdk.Response +{ + public class Banks + { + public Bank[] Rows { get; } + public int Count { get; } + + [JsonConstructor] + public Banks(Bank[] rows, int count) => + (Rows, Count) = (rows, count); + } +} diff --git a/src/PokepayPartnerCsharpSdk/Response/Campaign.cs b/src/PokepayPartnerCsharpSdk/Response/Campaign.cs index 4498d31..6ed2c82 100644 --- a/src/PokepayPartnerCsharpSdk/Response/Campaign.cs +++ b/src/PokepayPartnerCsharpSdk/Response/Campaign.cs @@ -22,6 +22,9 @@ public class Campaign public string PointCalculationRule { get; } public string PointCalculationRuleObject { get; } public string Status { get; } + public int BudgetCapsAmount { get; } + public int BudgetCurrentAmount { get; } + public string BudgetCurrentTime { get; } [JsonConstructor] public Campaign(string id, string name, bool isExclusive, string startsAt, string endsAt, int priority, string description, User bearPointShop, PrivateMoney privateMoney, PrivateMoney destPrivateMoney, string pointCalculationRule, string pointCalculationRuleObject, string status) => diff --git a/src/PokepayPartnerCsharpSdk/Response/Check.cs b/src/PokepayPartnerCsharpSdk/Response/Check.cs index c29e9cf..a08234d 100644 --- a/src/PokepayPartnerCsharpSdk/Response/Check.cs +++ b/src/PokepayPartnerCsharpSdk/Response/Check.cs @@ -15,6 +15,7 @@ public class Check public bool IsOnetime { get; } public bool IsDisabled { get; } public string ExpiresAt { get; } + public string LastUsedAt { get; } public PrivateMoney PrivateMoney { get; } public int UsageLimit { get; } public double UsageCount { get; } diff --git a/src/PokepayPartnerCsharpSdk/Response/OrganizationSummary.cs b/src/PokepayPartnerCsharpSdk/Response/OrganizationSummary.cs index cae70b9..8325063 100644 --- a/src/PokepayPartnerCsharpSdk/Response/OrganizationSummary.cs +++ b/src/PokepayPartnerCsharpSdk/Response/OrganizationSummary.cs @@ -9,10 +9,12 @@ public class OrganizationSummary public double MoneyAmount { get; } public int MoneyCount { get; } public double PointAmount { get; } + public double RawPointAmount { get; } + public double CampaignPointAmount { get; } public int PointCount { get; } [JsonConstructor] - public OrganizationSummary(int count, double moneyAmount, int moneyCount, double pointAmount, int pointCount) => - (Count, MoneyAmount, MoneyCount, PointAmount, PointCount) = (count, moneyAmount, moneyCount, pointAmount, pointCount); + public OrganizationSummary(int count, double moneyAmount, int moneyCount, double pointAmount, double rawPointAmount, double campaignPointAmount, int pointCount) => + (Count, MoneyAmount, MoneyCount, PointAmount, RawPointAmount, CampaignPointAmount, PointCount) = (count, moneyAmount, moneyCount, pointAmount, rawPointAmount, campaignPointAmount, pointCount); } } diff --git a/src/PokepayPartnerCsharpSdk/Response/PaginatedOrganizations.cs b/src/PokepayPartnerCsharpSdk/Response/PaginatedOrganizations.cs new file mode 100644 index 0000000..e3a2fc6 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Response/PaginatedOrganizations.cs @@ -0,0 +1,16 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Text.Json.Serialization; + +namespace PokepayPartnerCsharpSdk.Response +{ + public class PaginatedOrganizations + { + public Organization[] Rows { get; } + public int Count { get; } + public Pagination Pagination { get; } + + [JsonConstructor] + public PaginatedOrganizations(Organization[] rows, int count, Pagination pagination) => + (Rows, Count, Pagination) = (rows, count, pagination); + } +} diff --git a/src/PokepayPartnerCsharpSdk/Response/PrivateMoneySummary.cs b/src/PokepayPartnerCsharpSdk/Response/PrivateMoneySummary.cs index 413968e..ebe734a 100644 --- a/src/PokepayPartnerCsharpSdk/Response/PrivateMoneySummary.cs +++ b/src/PokepayPartnerCsharpSdk/Response/PrivateMoneySummary.cs @@ -10,13 +10,15 @@ public class PrivateMoneySummary public double PaymentAmount { get; } public double RefundedPaymentAmount { get; } public double AddedPointAmount { get; } + public double TopupPointAmount { get; } + public double CampaignPointAmount { get; } public double RefundedAddedPointAmount { get; } public double ExchangeInflowAmount { get; } public double ExchangeOutflowAmount { get; } public int TransactionCount { get; } [JsonConstructor] - public PrivateMoneySummary(double topupAmount, double refundedTopupAmount, double paymentAmount, double refundedPaymentAmount, double addedPointAmount, double refundedAddedPointAmount, double exchangeInflowAmount, double exchangeOutflowAmount, int transactionCount) => - (TopupAmount, RefundedTopupAmount, PaymentAmount, RefundedPaymentAmount, AddedPointAmount, RefundedAddedPointAmount, ExchangeInflowAmount, ExchangeOutflowAmount, TransactionCount) = (topupAmount, refundedTopupAmount, paymentAmount, refundedPaymentAmount, addedPointAmount, refundedAddedPointAmount, exchangeInflowAmount, exchangeOutflowAmount, transactionCount); + public PrivateMoneySummary(double topupAmount, double refundedTopupAmount, double paymentAmount, double refundedPaymentAmount, double addedPointAmount, double topupPointAmount, double campaignPointAmount, double refundedAddedPointAmount, double exchangeInflowAmount, double exchangeOutflowAmount, int transactionCount) => + (TopupAmount, RefundedTopupAmount, PaymentAmount, RefundedPaymentAmount, AddedPointAmount, TopupPointAmount, CampaignPointAmount, RefundedAddedPointAmount, ExchangeInflowAmount, ExchangeOutflowAmount, TransactionCount) = (topupAmount, refundedTopupAmount, paymentAmount, refundedPaymentAmount, addedPointAmount, topupPointAmount, campaignPointAmount, refundedAddedPointAmount, exchangeInflowAmount, exchangeOutflowAmount, transactionCount); } } diff --git a/src/PokepayPartnerCsharpSdk/Response/Transaction.cs b/src/PokepayPartnerCsharpSdk/Response/Transaction.cs index 9835942..e9417a3 100644 --- a/src/PokepayPartnerCsharpSdk/Response/Transaction.cs +++ b/src/PokepayPartnerCsharpSdk/Response/Transaction.cs @@ -21,7 +21,7 @@ public class Transaction public string Description { get; } [JsonConstructor] - public Transaction(string id, string type, bool isModified, User sender, Account senderAccount, User receiver, Account receiverAccount, double amount, double moneyAmount, double pointAmount, double rawPointAmount, double campaignPointAmount, string doneAt, string description) => - (Id, Type, IsModified, Sender, SenderAccount, Receiver, ReceiverAccount, Amount, MoneyAmount, PointAmount, RawPointAmount, CampaignPointAmount, DoneAt, Description) = (id, type, isModified, sender, senderAccount, receiver, receiverAccount, amount, moneyAmount, pointAmount, rawPointAmount, campaignPointAmount, doneAt, description); + public Transaction(string id, string type, bool isModified, User sender, Account senderAccount, User receiver, Account receiverAccount, double amount, double moneyAmount, double pointAmount, string doneAt, string description) => + (Id, Type, IsModified, Sender, SenderAccount, Receiver, ReceiverAccount, Amount, MoneyAmount, PointAmount, DoneAt, Description) = (id, type, isModified, sender, senderAccount, receiver, receiverAccount, amount, moneyAmount, pointAmount, doneAt, description); } } diff --git a/src/PokepayPartnerCsharpSdk/Response/UserDevice.cs b/src/PokepayPartnerCsharpSdk/Response/UserDevice.cs index 5b33f88..ae1e717 100644 --- a/src/PokepayPartnerCsharpSdk/Response/UserDevice.cs +++ b/src/PokepayPartnerCsharpSdk/Response/UserDevice.cs @@ -7,10 +7,11 @@ public class UserDevice { public string Id { get; } public User User { get; } + public bool IsActive { get; } public string Metadata { get; } [JsonConstructor] - public UserDevice(string id, User user, string metadata) => - (Id, User, Metadata) = (id, user, metadata); + public UserDevice(string id, User user, bool isActive, string metadata) => + (Id, User, IsActive, Metadata) = (id, user, isActive, metadata); } }