diff --git a/docs/README.md b/docs/README.md index 171060d..9abf217 100644 --- a/docs/README.md +++ b/docs/README.md @@ -196,8 +196,8 @@ try { - [ListTransfersV2](./transfer.md#list-transfers-v2): ### Check -- [CreateCheck](./check.md#create-check): チャージQRコードの発行 - [ListChecks](./check.md#list-checks): チャージQRコード一覧の取得 +- [CreateCheck](./check.md#create-check): チャージQRコードの発行 - [GetCheck](./check.md#get-check): チャージQRコードの表示 - [UpdateCheck](./check.md#update-check): チャージQRコードの更新 - [CreateTopupTransactionWithCheck](./check.md#create-topup-transaction-with-check): チャージQRコードを読み取ることでチャージする @@ -209,14 +209,14 @@ try { ### Cashtray - [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayを作る -- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する - [CancelCashtray](./cashtray.md#cancel-cashtray): Cashtrayを無効化する +- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する - [UpdateCashtray](./cashtray.md#update-cashtray): Cashtrayの情報を更新する ### Customer +- [DeleteAccount](./customer.md#delete-account): ウォレットを退会する - [GetAccount](./customer.md#get-account): ウォレット情報を表示する - [UpdateAccount](./customer.md#update-account): ウォレット情報を更新する -- [DeleteAccount](./customer.md#delete-account): ウォレットを退会する - [ListAccountBalances](./customer.md#list-account-balances): エンドユーザーの残高内訳を表示する - [ListAccountExpiredBalances](./customer.md#list-account-expired-balances): エンドユーザーの失効済みの残高内訳を表示する - [UpdateCustomerAccount](./customer.md#update-customer-account): エンドユーザーのウォレット情報を更新する @@ -254,18 +254,19 @@ try { ### Event - [CreateExternalTransaction](./event.md#create-external-transaction): ポケペイ外部取引を作成する - [RefundExternalTransaction](./event.md#refund-external-transaction): ポケペイ外部取引をキャンセルする +- [GetExternalTransactionByRequestId](./event.md#get-external-transaction-by-request-id): リクエストIDからポケペイ外部取引を取得する ### Campaign -- [CreateCampaign](./campaign.md#create-campaign): ポイント付与キャンペーンを作る - [ListCampaigns](./campaign.md#list-campaigns): キャンペーン一覧を取得する +- [CreateCampaign](./campaign.md#create-campaign): ポイント付与キャンペーンを作る - [GetCampaign](./campaign.md#get-campaign): キャンペーンを取得する - [UpdateCampaign](./campaign.md#update-campaign): ポイント付与キャンペーンを更新する ### Webhook -- [CreateWebhook](./webhook.md#create-webhook): webhookの作成 - [ListWebhooks](./webhook.md#list-webhooks): 作成したWebhookの一覧を返す -- [UpdateWebhook](./webhook.md#update-webhook): Webhookの更新 +- [CreateWebhook](./webhook.md#create-webhook): webhookの作成 - [DeleteWebhook](./webhook.md#delete-webhook): Webhookの削除 +- [UpdateWebhook](./webhook.md#update-webhook): Webhookの更新 ### Coupon - [ListCoupons](./coupon.md#list-coupons): クーポン一覧の取得 @@ -279,7 +280,7 @@ try { - [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 ### BankPay -- [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 +- [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ diff --git a/docs/account.md b/docs/account.md index 74459ef..978404a 100644 --- a/docs/account.md +++ b/docs/account.md @@ -8,8 +8,8 @@ Request.ListUserAccounts request = new Request.ListUserAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーID ) { - Page = 5690, // ページ番号 - PerPage = 3320, // 1ページ分の取引数 + Page = 4737, // ページ番号 + PerPage = 7029, // 1ページ分の取引数 }; Response.PaginatedAccountDetails response = await request.Send(client); ``` @@ -62,6 +62,7 @@ Response.PaginatedAccountDetails response = await request.Send(client); を返します + --- @@ -74,8 +75,8 @@ Request.CreateUserAccount request = new Request.CreateUserAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - Name = "BiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9", // ウォレット名 - ExternalId = "GwSB8bfxMId7hFKERGvYa7vbD1", // 外部ID + Name = "RhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOX", // ウォレット名 + ExternalId = "KD9o8Kba3zToGBU", // 外部ID Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", // ウォレットに付加するメタデータ }; Response.AccountDetail response = await request.Send(client); @@ -155,6 +156,7 @@ Response.AccountDetail response = await request.Send(client); を返します + --- diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 72989e0..069ee3b 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -2,6 +2,55 @@ BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + +## ListBanks: 登録した銀行の一覧 +登録した銀行を一覧します + +```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); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Banks](./responses.md#banks) +を返します + + + +--- + + ## CreateBank: 銀行口座の登録 銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 @@ -17,7 +66,7 @@ Request.CreateBank request = new Request.CreateBank( "", // コールバックURL "ポケペイタロウ" // ユーザーの氏名 (片仮名で指定) ) { - Email = "HNb57OPgys@rQCI.com", // ユーザーのメールアドレス + Email = "x2jnlKrw0L@dNS4.com", // ユーザーのメールアドレス Birthdate = "19901142", // 生年月日 }; Response.BankRegisteringInfo response = await request.Send(client); @@ -100,53 +149,6 @@ Response.BankRegisteringInfo response = await request.Send(client); を返します ---- - - - -## ListBanks: 登録した銀行の一覧 -登録した銀行を一覧します - -```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); -``` - - - -### Parameters -**`user_device_id`** - - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`private_money_id`** - - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[Banks](./responses.md#banks) -を返します - --- @@ -159,7 +161,7 @@ Response.Banks response = await request.Send(client); Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 2895, // チャージ金額 + 8102, // チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID ); @@ -231,6 +233,7 @@ Response.TransactionDetail response = await request.Send(client); を返します + --- diff --git a/docs/bill.md b/docs/bill.md index 62d5d02..862c78b 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -7,19 +7,19 @@ ```csharp Request.ListBills request = new Request.ListBills() { - Page = 3989, // ページ番号 - PerPage = 3402, // 1ページの表示数 - BillId = "atpE7508L", // 支払いQRコードのID + Page = 231, // ページ番号 + PerPage = 1828, // 1ページの表示数 + BillId = "h7IyYB", // 支払いQRコードのID PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - OrganizationCode = "-1-XK--g-", // 組織コード + OrganizationCode = "-k-----Yq2hrn5-RcDh", // 組織コード Description = "test bill", // 取引説明文 - CreatedFrom = "2020-02-22T21:37:01.000000+09:00", // 作成日時(起点) - CreatedTo = "2021-08-12T03:19:42.000000+09:00", // 作成日時(終点) + CreatedFrom = "2021-08-04T01:59:13.000000Z", // 作成日時(起点) + CreatedTo = "2023-02-25T23:26:35.000000Z", // 作成日時(終点) ShopName = "bill test shop1", // 店舗名 ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - LowerLimitAmount = 2989, // 金額の範囲によるフィルタ(下限) - UpperLimitAmount = 3813, // 金額の範囲によるフィルタ(上限) - IsDisabled = false, // 支払いQRコードが無効化されているかどうか + LowerLimitAmount = 5821, // 金額の範囲によるフィルタ(下限) + UpperLimitAmount = 4653, // 金額の範囲によるフィルタ(上限) + IsDisabled = true, // 支払いQRコードが無効化されているかどうか }; Response.PaginatedBills response = await request.Send(client); ``` @@ -194,6 +194,12 @@ Response.PaginatedBills response = await request.Send(client); [PaginatedBills](./responses.md#paginated-bills) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- @@ -207,7 +213,7 @@ Request.CreateBill request = new Request.CreateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払い先(受け取り人)の店舗ID ) { - Amount = 3055.0, // 支払い額 + Amount = 2631.0, // 支払い額 Description = "test bill", // 説明文(アプリ上で取引の説明文として表示される) }; Response.Bill response = await request.Send(client); @@ -268,6 +274,18 @@ Response.Bill response = await request.Send(client); [Bill](./responses.md#bill) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_suspended|アカウントは停止されています|The account is suspended| + + --- @@ -280,7 +298,7 @@ Response.Bill response = await request.Send(client); Request.UpdateBill request = new Request.UpdateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払いQRコードのID ) { - Amount = 9988.0, // 支払い額 + Amount = 1596.0, // 支払い額 Description = "test bill", // 説明文 IsDisabled = true, // 無効化されているかどうか }; @@ -345,6 +363,7 @@ Response.Bill response = await request.Send(client); を返します + --- diff --git a/docs/bulk.md b/docs/bulk.md index a5c96f8..6678739 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -6,11 +6,11 @@ CSVファイルから一括取引をします。 ```csharp Request.BulkCreateTransaction request = new Request.BulkCreateTransaction( - "pXocQ5N98CAVKuKRC5FLAIR", // 一括取引タスク名 - "iGKuI", // 取引する情報のCSV - "8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB" // リクエストID + "P9DvE8UV0j2YqC15yVJZpc8KVpHARBD", // 一括取引タスク名 + "gg1Gn2X", // 取引する情報のCSV + "cmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFA" // リクエストID ) { - Description = "0H", // 一括取引の説明 + Description = "UD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJ", // 一括取引の説明 PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID }; Response.BulkTransaction response = await request.Send(client); @@ -106,6 +106,16 @@ Response.BulkTransaction response = await request.Send(client); [BulkTransaction](./responses.md#bulk-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.| +|409|NULL|NULL|NULL| +|422|private_money_not_found||Private money not found| +|422|bulk_transaction_invalid_csv_format|入力されたCSVデータに誤りがあります|Invalid csv format| + + --- diff --git a/docs/campaign.md b/docs/campaign.md index d87b731..3db1f84 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -1,5 +1,121 @@ # Campaign + +## ListCampaigns: キャンペーン一覧を取得する +マネーIDを指定してキャンペーンを取得します。 +発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 +閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 + +```csharp +Request.ListCampaigns request = new Request.ListCampaigns( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + IsOngoing = false, // 現在適用可能なキャンペーンかどうか + AvailableFrom = "2023-06-12T02:18:30.000000Z", // 指定された日時以降に適用可能期間が含まれているか + AvailableTo = "2023-03-14T19:36:47.000000Z", // 指定された日時以前に適用可能期間が含まれているか + Page = 1, // ページ番号 + PerPage = 20, // 1ページ分の取得数 +}; +Response.PaginatedCampaigns response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_ongoing`** + + +有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 +真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "boolean" +} +``` + +**`available_from`** + + +キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`available_to`** + + +キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 20 になっています。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 50 +} +``` + + + +成功したときは +[PaginatedCampaigns](./responses.md#paginated-campaigns) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + + +--- + + ## CreateCampaign: ポイント付与キャンペーンを作る ポイント付与キャンペーンを作成します。 @@ -7,35 +123,36 @@ ```csharp Request.CreateCampaign request = new Request.CreateCampaign( - "jNmYRtpCMs9TezTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4Q", // キャンペーン名 + "8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdugDsmRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2Ec", // キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - "2021-06-14T22:51:36.000000+09:00", // キャンペーン開始日時 - "2022-03-23T15:56:44.000000+09:00", // キャンペーン終了日時 - 5537, // キャンペーンの適用優先度 - "external-transaction" // イベント種別 + "2024-01-28T22:34:10.000000Z", // キャンペーン開始日時 + "2020-07-08T19:55:58.000000Z", // キャンペーン終了日時 + 2422, // キャンペーンの適用優先度 + "payment" // イベント種別 ) { BearPointShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID - Description = "tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190X", // キャンペーンの説明文 + Description = "xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAweq", // キャンペーンの説明文 Status = "enabled", // キャンペーン作成時の状態 - PointExpiresAt = "2023-02-17T04:45:19.000000+09:00", // ポイント有効期限(絶対日時指定) - PointExpiresInDays = 1020, // ポイント有効期限(相対日数指定) + PointExpiresAt = "2020-11-09T20:33:41.000000Z", // ポイント有効期限(絶対日時指定) + PointExpiresInDays = 6073, // ポイント有効期限(相対日数指定) 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}}}, // 商品情報ベースのポイント付与ルール - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト - ApplicableDaysOfWeek = new int[]{5, 2, 1}, // キャンペーンを適用する曜日 (複数指定) + 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}}}, // 商品情報ベースのポイント付与ルール + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト + ApplicableDaysOfWeek = new int[]{1, 6}, // キャンペーンを適用する曜日 (複数指定) 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のリスト - MinimumNumberOfProducts = 2330, // キャンペーンを適用する1会計内の商品個数の下限 - MinimumNumberOfAmount = 579, // キャンペーンを適用する1会計内の商品総額の下限 - MinimumNumberForCombinationPurchase = 2304, // 複数種類の商品を同時購入するときの商品種別数の下限 + ApplicableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト + MinimumNumberOfProducts = 6050, // キャンペーンを適用する1会計内の商品個数の下限 + MinimumNumberOfAmount = 5681, // キャンペーンを適用する1会計内の商品総額の下限 + MinimumNumberForCombinationPurchase = 318, // 複数種類の商品を同時購入するときの商品種別数の下限 ExistInEachProductGroups = true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - MaxPointAmount = 7935, // キャンペーンによって付与されるポイントの上限 - MaxTotalPointAmount = 4502, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + MaxPointAmount = 797, // キャンペーンによって付与されるポイントの上限 + MaxTotalPointAmount = 4271, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 DestPrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - BudgetCapsAmount = 651534322, // キャンペーン予算上限 + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + BudgetCapsAmount = 1893504508, // キャンペーン予算上限 }; Response.Campaign response = await request.Send(client); ``` @@ -360,6 +477,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_days_of_week`** +キャンペーンを適用する曜日を指定します (複数指定)。 +曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 +指定しなかった場合は全日を対象にします (曜日による適用条件なし) ```json { @@ -375,6 +495,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_time_ranges`** +キャンペーンを適用する時間帯を指定します (複数指定可)。 +時間帯はfromとtoからなるオブジェクトで指定します。 +fromとtoは両方必要です。 ```json { @@ -388,6 +511,8 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_shop_ids`** +キャンペーンを適用する店舗IDを指定します (複数指定)。 +指定しなかった場合は全店舗が対象になります。 ```json { @@ -678,138 +803,76 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`budget_caps_amount`** - - -キャンペーンの予算上限を指定します。デフォルトは未指定です。 - -このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 -一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 - -```json -{ - "type": "integer", - "minimum": 1, - "maximum": 10000000000 -} -``` - - - -成功したときは -[Campaign](./responses.md#campaign) -を返します - - ---- - - - -## ListCampaigns: キャンペーン一覧を取得する -マネーIDを指定してキャンペーンを取得します。 -発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 -閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 - -```csharp -Request.ListCampaigns request = new Request.ListCampaigns( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID -) { - IsOngoing = false, // 現在適用可能なキャンペーンかどうか - AvailableFrom = "2021-07-11T21:31:03.000000+09:00", // 指定された日時以降に適用可能期間が含まれているか - AvailableTo = "2020-03-20T02:19:26.000000+09:00", // 指定された日時以前に適用可能期間が含まれているか - Page = 1, // ページ番号 - PerPage = 20, // 1ページ分の取得数 -}; -Response.PaginatedCampaigns response = await request.Send(client); -``` - - - -### Parameters -**`private_money_id`** +**`applicable_transaction_metadata`** -マネーIDです。 - -フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` +取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 -**`is_ongoing`** - +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 -有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 -真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 -デフォルトでは未指定(フィルターなし)です。 +例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 -```json +```javascript { - "type": "boolean" + "key": "rank", + "value": "bronze" } ``` -**`available_from`** - - -キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 -デフォルトでは未指定(フィルターなし)です。 +例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 -```json +```javascript { - "type": "string", - "format": "date-time" + "key": "rank", + "value": "bronze", + "test": "not-equal" } ``` -**`available_to`** - - -キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 -デフォルトでは未指定(フィルターなし)です。 - ```json { - "type": "string", - "format": "date-time" + "type": "object" } ``` -**`page`** +**`budget_caps_amount`** -取得したいページ番号です。 - -```json -{ - "type": "integer", - "minimum": 1 -} -``` - -**`per_page`** - +キャンペーンの予算上限を指定します。デフォルトは未指定です。 -1ページ分の取得数です。デフォルトでは 20 になっています。 +このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 ```json { "type": "integer", "minimum": 1, - "maximum": 50 + "maximum": 10000000000 } ``` 成功したときは -[PaginatedCampaigns](./responses.md#paginated-campaigns) +[Campaign](./responses.md#campaign) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|campaign_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| +|422|shop_account_not_found||The shop account is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|campaign_period_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| +|422|campaign_invalid_period||Invalid campaign period starts_at later than ends_at| + + --- @@ -851,6 +914,7 @@ Response.Campaign response = await request.Send(client); を返します + --- @@ -863,31 +927,32 @@ Response.Campaign response = await request.Send(client); Request.UpdateCampaign request = new Request.UpdateCampaign( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // キャンペーンID ) { - Name = "ySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n", // キャンペーン名 - StartsAt = "2020-03-14T11:23:10.000000+09:00", // キャンペーン開始日時 - EndsAt = "2021-11-16T02:43:02.000000+09:00", // キャンペーン終了日時 - Priority = 7348, // キャンペーンの適用優先度 - Event = "payment", // イベント種別 - Description = "544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiV", // キャンペーンの説明文 - Status = "enabled", // キャンペーン作成時の状態 - PointExpiresAt = "2021-07-14T23:28:53.000000+09:00", // ポイント有効期限(絶対日時指定) - PointExpiresInDays = 3247, // ポイント有効期限(相対日数指定) + Name = "LeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSj", // キャンペーン名 + StartsAt = "2022-11-18T02:27:13.000000Z", // キャンペーン開始日時 + EndsAt = "2020-08-12T06:11:00.000000Z", // キャンペーン終了日時 + Priority = 6665, // キャンペーンの適用優先度 + Event = "external-transaction", // イベント種別 + Description = "3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFF", // キャンペーンの説明文 + Status = "disabled", // キャンペーン作成時の状態 + PointExpiresAt = "2023-12-14T09:27:35.000000Z", // ポイント有効期限(絶対日時指定) + PointExpiresInDays = 4933, // ポイント有効期限(相対日数指定) 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}}}, // 商品情報ベースのポイント付与ルール - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト - ApplicableDaysOfWeek = new int[]{3, 1}, // キャンペーンを適用する曜日 (複数指定) + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト + 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", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト - MinimumNumberOfProducts = 3071, // キャンペーンを適用する1会計内の商品個数の下限 - MinimumNumberOfAmount = 1966, // キャンペーンを適用する1会計内の商品総額の下限 - MinimumNumberForCombinationPurchase = 2704, // 複数種類の商品を同時購入するときの商品種別数の下限 - ExistInEachProductGroups = false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - MaxPointAmount = 1241, // キャンペーンによって付与されるポイントの上限 - MaxTotalPointAmount = 5837, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + ApplicableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト + MinimumNumberOfProducts = 1867, // キャンペーンを適用する1会計内の商品個数の下限 + MinimumNumberOfAmount = 5956, // キャンペーンを適用する1会計内の商品総額の下限 + MinimumNumberForCombinationPurchase = 6072, // 複数種類の商品を同時購入するときの商品種別数の下限 + ExistInEachProductGroups = true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + MaxPointAmount = 3297, // キャンペーンによって付与されるポイントの上限 + MaxTotalPointAmount = 4112, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - BudgetCapsAmount = 1650449672, // キャンペーン予算上限 + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + BudgetCapsAmount = 52894808, // キャンペーン予算上限 }; Response.Campaign response = await request.Send(client); ``` @@ -1201,6 +1266,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_days_of_week`** +キャンペーンを適用する曜日を指定します (複数指定)。 +曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 +指定しなかった場合は全日を対象にします (曜日による適用条件なし) ```json { @@ -1216,6 +1284,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_time_ranges`** +キャンペーンを適用する時間帯を指定します (複数指定可)。 +時間帯はfromとtoからなるオブジェクトで指定します。 +fromとtoは両方必要です。 ```json { @@ -1229,6 +1300,8 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_shop_ids`** +キャンペーンを適用する店舗IDを指定します (複数指定)。 +指定しなかった場合は全店舗が対象になります。 ```json { @@ -1499,6 +1572,41 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +**`applicable_transaction_metadata`** + + +取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 + +例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + +```javascript +{ + "key": "rank", + "value": "bronze" +} +``` + +例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + +```javascript +{ + "key": "rank", + "value": "bronze", + "test": "not-equal" +} +``` + +```json +{ + "type": "object" +} +``` + **`budget_caps_amount`** @@ -1524,6 +1632,7 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 を返します + --- diff --git a/docs/cashtray.md b/docs/cashtray.md index 717d245..7402034 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -19,10 +19,10 @@ Cashtrayを作成します。 Request.CreateCashtray request = new Request.CreateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID - 1381.0 // 金額 + 9997.0 // 金額 ) { Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 - ExpiresIn = 6443, // 失効時間(秒) + ExpiresIn = 2427, // 失効時間(秒) }; Response.Cashtray response = await request.Send(client); ``` @@ -97,6 +97,54 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項 [Cashtray](./responses.md#cashtray) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| + + + +--- + + + +## CancelCashtray: Cashtrayを無効化する +Cashtrayを無効化します。 + +これにより、 `GetCashtray` のレスポンス中の `canceled_at` に無効化時点での現在時刻が入るようになります。 +エンドユーザーが無効化されたQRコードを読み取ると `cashtray_already_canceled` エラーとなり、取引は失敗します。 + +```csharp +Request.CancelCashtray request = new Request.CancelCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID +); +Response.Cashtray response = await request.Send(client); +``` + + + +### Parameters +**`cashtray_id`** + + +無効化するCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + --- @@ -191,44 +239,6 @@ Response.CashtrayWithResult response = await request.Send(client); を返します ---- - - - -## CancelCashtray: Cashtrayを無効化する -Cashtrayを無効化します。 - -これにより、 `GetCashtray` のレスポンス中の `canceled_at` に無効化時点での現在時刻が入るようになります。 -エンドユーザーが無効化されたQRコードを読み取ると `cashtray_already_canceled` エラーとなり、取引は失敗します。 - -```csharp -Request.CancelCashtray request = new Request.CancelCashtray( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID -); -Response.Cashtray response = await request.Send(client); -``` - - - -### Parameters -**`cashtray_id`** - - -無効化するCashtrayのIDです。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[Cashtray](./responses.md#cashtray) -を返します - --- @@ -241,9 +251,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 Request.UpdateCashtray request = new Request.UpdateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID ) { - Amount = 5934.0, // 金額 + Amount = 9018.0, // 金額 Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 - ExpiresIn = 7614, // 失効時間(秒) + ExpiresIn = 3002, // 失効時間(秒) }; Response.Cashtray response = await request.Send(client); ``` @@ -307,6 +317,7 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、 を返します + --- diff --git a/docs/check.md b/docs/check.md index 98359f3..c496d94 100644 --- a/docs/check.md +++ b/docs/check.md @@ -8,65 +8,58 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - -## CreateCheck: チャージQRコードの発行 + +## ListChecks: チャージQRコード一覧の取得 ```csharp -Request.CreateCheck request = new Request.CreateCheck( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 送金元の店舗アカウントID -) { - MoneyAmount = 4917.0, // 付与マネー額 - PointAmount = 9509.0, // 付与ポイント額 - Description = "test check", // 説明文(アプリ上で取引の説明文として表示される) - IsOnetime = false, // ワンタイムかどうかのフラグ - UsageLimit = 8921, // ワンタイムでない場合の最大読み取り回数 - ExpiresAt = "2023-03-25T06:19:47.000000+09:00", // チャージQRコード自体の失効日時 - PointExpiresAt = "2024-01-06T06:20:51.000000+09:00", // チャージQRコードによって付与されるポイント残高の有効期限 - PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) - BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID +Request.ListChecks request = new Request.ListChecks() { + Page = 3076, // ページ番号 + PerPage = 50, // 1ページの表示数 + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + OrganizationCode = "sob31", // 組織コード + ExpiresFrom = "2021-09-17T13:36:18.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresTo = "2020-06-01T05:11:51.000000Z", // 有効期限の期間によるフィルター(終了時点) + CreatedFrom = "2020-06-12T12:23:35.000000Z", // 作成日時の期間によるフィルター(開始時点) + CreatedTo = "2021-10-30T18:42:50.000000Z", // 作成日時の期間によるフィルター(終了時点) + IssuerShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID + Description = "FcTjCHIR", // チャージQRコードの説明文 + IsOnetime = false, // ワンタイムのチャージQRコードかどうか + IsDisabled = true, // 無効化されたチャージQRコードかどうか }; -Response.Check response = await request.Send(client); +Response.PaginatedChecks response = await request.Send(client); ``` -`money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 - - ### Parameters -**`money_amount`** +**`page`** -チャージQRコードによって付与されるマネー額です。 -`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 - ```json { - "type": "number", - "format": "decimal", - "minimum": 0 + "type": "integer", + "minimum": 1 } ``` -**`point_amount`** +**`per_page`** -チャージQRコードによって付与されるポイント額です。 -`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 - +1ページ当たり表示数です。デフォルト値は50です。 ```json { - "type": "number", - "format": "decimal", - "minimum": 0 + "type": "integer", + "minimum": 1 } ``` -**`account_id`** +**`private_money_id`** +チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 + ```json { @@ -75,52 +68,52 @@ Response.Check response = await request.Send(client); } ``` -**`description`** +**`organization_code`** +チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 +デフォルトでは未指定です。 ```json { "type": "string", - "maxLength": 200 + "maxLength": 32 } ``` -**`is_onetime`** +**`expires_from`** -チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 -`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 -ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +有効期限の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json { - "type": "boolean" + "type": "string", + "format": "date-time" } ``` -**`usage_limit`** +**`expires_to`** -複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 -NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 -デフォルト値はNULLです。 -ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +有効期限の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json { - "type": "integer" + "type": "string", + "format": "date-time" } ``` -**`expires_at`** +**`created_from`** -チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 - -チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +作成日時の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json @@ -130,12 +123,11 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_at`** +**`created_to`** -チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 - -チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +作成日時の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json @@ -145,165 +137,195 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_in_days`** +**`issuer_shop_id`** -チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 -1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 -`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +チャージQRコードを発行した店舗IDによってフィルターします。 +デフォルトでは未指定です。 ```json { - "type": "integer", - "minimum": 1 + "type": "string", + "format": "uuid" } ``` -**`bear_point_account`** +**`description`** -ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 -デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 +チャージQRコードの説明文(description)によってフィルターします。 +部分一致(前方一致)したものを表示します。 +デフォルトでは未指定です。 ```json { - "type": "string", - "format": "uuid" + "type": "string" +} +``` + +**`is_onetime`** + + +チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 +`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_disabled`** + + +チャージQRコードが無効化されているかどうかでフィルターします。 +`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" } ``` 成功したときは -[Check](./responses.md#check) +[PaginatedChecks](./responses.md#paginated-checks) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|organization_not_found||Organization not found| +|422|private_money_not_found||Private money not found| + + --- - -## ListChecks: チャージQRコード一覧の取得 + +## CreateCheck: チャージQRコードの発行 ```csharp -Request.ListChecks request = new Request.ListChecks() { - Page = 7994, // ページ番号 - PerPage = 50, // 1ページの表示数 - PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - OrganizationCode = "TXEMx6", // 組織コード - ExpiresFrom = "2024-02-11T07:45:43.000000+09:00", // 有効期限の期間によるフィルター(開始時点) - ExpiresTo = "2022-09-02T02:26:25.000000+09:00", // 有効期限の期間によるフィルター(終了時点) - CreatedFrom = "2022-05-29T15:37:23.000000+09:00", // 作成日時の期間によるフィルター(開始時点) - CreatedTo = "2021-02-21T22:54:32.000000+09:00", // 作成日時の期間によるフィルター(終了時点) - IssuerShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID - Description = "lydCp", // チャージQRコードの説明文 - IsOnetime = true, // ワンタイムのチャージQRコードかどうか - IsDisabled = false, // 無効化されたチャージQRコードかどうか +Request.CreateCheck request = new Request.CreateCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 送金元の店舗アカウントID +) { + MoneyAmount = 7052.0, // 付与マネー額 + PointAmount = 2501.0, // 付与ポイント額 + Description = "test check", // 説明文(アプリ上で取引の説明文として表示される) + IsOnetime = false, // ワンタイムかどうかのフラグ + UsageLimit = 5853, // ワンタイムでない場合の最大読み取り回数 + ExpiresAt = "2022-09-06T14:41:07.000000Z", // チャージQRコード自体の失効日時 + PointExpiresAt = "2020-09-18T12:05:39.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID }; -Response.PaginatedChecks response = await request.Send(client); +Response.Check response = await request.Send(client); ``` - -### Parameters -**`page`** - +`money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 -```json -{ - "type": "integer", - "minimum": 1 -} -``` -**`per_page`** +### Parameters +**`money_amount`** -1ページ当たり表示数です。デフォルト値は50です。 +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + ```json { - "type": "integer", - "minimum": 1 + "type": "number", + "format": "decimal", + "minimum": 0 } ``` -**`private_money_id`** +**`point_amount`** -チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 ```json { - "type": "string", - "format": "uuid" + "type": "number", + "format": "decimal", + "minimum": 0 } ``` -**`organization_code`** +**`account_id`** -チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 -デフォルトでは未指定です。 ```json { "type": "string", - "maxLength": 32 + "format": "uuid" } ``` -**`expires_from`** +**`description`** -有効期限の期間によるフィルターの開始時点のタイムスタンプです。 -デフォルトでは未指定です。 - ```json { "type": "string", - "format": "date-time" + "maxLength": 200 } ``` -**`expires_to`** +**`is_onetime`** -有効期限の期間によるフィルターの終了時点のタイムスタンプです。 -デフォルトでは未指定です。 +チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 ```json { - "type": "string", - "format": "date-time" + "type": "boolean" } ``` -**`created_from`** +**`usage_limit`** -作成日時の期間によるフィルターの開始時点のタイムスタンプです。 -デフォルトでは未指定です。 +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +デフォルト値はNULLです。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 ```json { - "type": "string", - "format": "date-time" + "type": "integer" } ``` -**`created_to`** +**`expires_at`** -作成日時の期間によるフィルターの終了時点のタイムスタンプです。 -デフォルトでは未指定です。 +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 ```json @@ -313,70 +335,73 @@ Response.PaginatedChecks response = await request.Send(client); } ``` -**`issuer_shop_id`** +**`point_expires_at`** -チャージQRコードを発行した店舗IDによってフィルターします。 -デフォルトでは未指定です。 - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`description`** - +チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 -チャージQRコードの説明文(description)によってフィルターします。 -部分一致(前方一致)したものを表示します。 -デフォルトでは未指定です。 +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 ```json { - "type": "string" + "type": "string", + "format": "date-time" } ``` -**`is_onetime`** +**`point_expires_in_days`** -チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 -`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 -未指定の場合はフィルターしません。 -デフォルトでは未指定です。 +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 ```json { - "type": "boolean" + "type": "integer", + "minimum": 1 } ``` -**`is_disabled`** +**`bear_point_account`** -チャージQRコードが無効化されているかどうかでフィルターします。 -`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 -未指定の場合はフィルターしません。 -デフォルトでは未指定です。 +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 ```json { - "type": "boolean" + "type": "string", + "format": "uuid" } ``` 成功したときは -[PaginatedChecks](./responses.md#paginated-checks) +[Check](./responses.md#check) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| +|400|invalid_parameter_only_merchants_can_attach_points_to_check||Only merchants can attach points to check| +|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| +|400|invalid_parameter_combination_usage_limit_and_is_onetime||'usage_limit' can not be specified if 'is_onetime' is true.| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|400|invalid_parameter_expires_at||'expires_at' must be in the future| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_private_money_is_not_issued_by_organization||The account's private money is not issued by this organization| +|422|shop_account_not_found||The shop account is not found| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|bear_point_account_not_found|ポイントを負担する店舗アカウントが見つかりません|Bear point account not found.| + + --- @@ -413,6 +438,7 @@ Response.Check response = await request.Send(client); を返します + --- @@ -423,16 +449,16 @@ Response.Check response = await request.Send(client); Request.UpdateCheck request = new Request.UpdateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // チャージQRコードのID ) { - MoneyAmount = 2298.0, // 付与マネー額 - PointAmount = 5767.0, // 付与ポイント額 + MoneyAmount = 7719.0, // 付与マネー額 + PointAmount = 5023.0, // 付与ポイント額 Description = "test check", // チャージQRコードの説明文 IsOnetime = true, // ワンタイムかどうかのフラグ - UsageLimit = 7144, // ワンタイムでない場合の最大読み取り回数 - ExpiresAt = "2021-06-15T21:21:49.000000+09:00", // チャージQRコード自体の失効日時 - PointExpiresAt = "2022-09-07T06:29:59.000000+09:00", // チャージQRコードによって付与されるポイント残高の有効期限 + UsageLimit = 3929, // ワンタイムでない場合の最大読み取り回数 + ExpiresAt = "2020-08-02T23:28:09.000000Z", // チャージQRコード自体の失効日時 + PointExpiresAt = "2020-10-22T18:15:03.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID - IsDisabled = false, // 無効化されているかどうかのフラグ + IsDisabled = true, // 無効化されているかどうかのフラグ }; Response.Check response = await request.Send(client); ``` @@ -603,6 +629,7 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード を返します + --- @@ -676,6 +703,48 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|check_already_received|このチャージQRコードは既に受取済みの為、チャージ出来ませんでした|Check is already received| +|422|check_unavailable|このチャージQRコードは利用できません|The topup QR code is not available| +|503|temporarily_unavailable||Service Unavailable| + + --- diff --git a/docs/coupon.md b/docs/coupon.md index 4779b74..219e431 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -11,12 +11,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 Request.ListCoupons request = new Request.ListCoupons( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 対象クーポンのマネーID ) { - CouponId = "R5ZNIi", // クーポンID - CouponName = "ikdp8w", // クーポン名 - IssuedShopName = "9", // 発行店舗名 - AvailableShopName = "Wl", // 利用可能店舗名 - AvailableFrom = "2021-09-27T15:32:49.000000+09:00", // 利用可能期間 (開始日時) - AvailableTo = "2023-02-15T11:18:54.000000+09:00", // 利用可能期間 (終了日時) + CouponId = "XWP", // クーポンID + CouponName = "Nst4", // クーポン名 + IssuedShopName = "4xBM1t", // 発行店舗名 + AvailableShopName = "MMoOy", // 利用可能店舗名 + AvailableFrom = "2023-03-30T16:00:42.000000Z", // 利用可能期間 (開始日時) + AvailableTo = "2023-12-05T20:58:25.000000Z", // 利用可能期間 (終了日時) Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取得数 }; @@ -145,6 +145,14 @@ Response.PaginatedCoupons response = await request.Send(client); [PaginatedCoupons](./responses.md#paginated-coupons) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| + + --- @@ -156,25 +164,25 @@ Response.PaginatedCoupons response = await request.Send(client); ```csharp Request.CreateCoupon request = new Request.CreateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "krqUcz43dBm26", - "2021-05-07T16:08:38.000000+09:00", - "2021-03-24T06:30:38.000000+09:00", + "WcD5ADFBSPh7o2MC5sMNAQhF0HC", + "2022-11-04T16:57:14.000000Z", + "2023-02-19T10:51:37.000000Z", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 発行元の店舗ID ) { - Description = "r7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3E", - DiscountAmount = 1694, - DiscountPercentage = 3744.0, - DiscountUpperLimit = 1253, - DisplayStartsAt = "2021-03-24T15:38:39.000000+09:00", // クーポンの掲載期間(開始日時) - DisplayEndsAt = "2020-11-23T22:17:08.000000+09:00", // クーポンの掲載期間(終了日時) + Description = "Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pq", + DiscountAmount = 7919, + DiscountPercentage = 8256.0, + DiscountUpperLimit = 4638, + DisplayStartsAt = "2020-04-05T02:04:40.000000Z", // クーポンの掲載期間(開始日時) + DisplayEndsAt = "2020-10-01T23:49:47.000000Z", // クーポンの掲載期間(終了日時) IsDisabled = false, // 無効化フラグ IsHidden = true, // クーポン一覧に掲載されるかどうか - IsPublic = false, // アプリ配信なしで受け取れるかどうか - Code = "N4", // クーポン受け取りコード - UsageLimit = 3497, // ユーザごとの利用可能回数(NULLの場合は無制限) - MinAmount = 6454, // クーポン適用可能な最小取引額 + IsPublic = true, // アプリ配信なしで受け取れるかどうか + Code = "Dc", // クーポン受け取りコード + UsageLimit = 3660, // ユーザごとの利用可能回数(NULLの場合は無制限) + MinAmount = 8009, // クーポン適用可能な最小取引額 IsShopSpecified = false, // 特定店舗限定のクーポンかどうか - AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト + AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト StorageId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID }; Response.CouponDetail response = await request.Send(client); @@ -410,6 +418,17 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 [CouponDetail](./responses.md#coupon-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|404|partner_storage_not_found|指定したIDのデータは保存されていません|Not found by storage_id| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|coupon_image_storage_conflict|クーポン画像のストレージIDは既に存在します|The coupon image storage_id is already exists| + + --- @@ -449,6 +468,7 @@ UUIDv4フォーマットである必要があり、フォーマットが異な を返します + --- @@ -460,22 +480,22 @@ UUIDv4フォーマットである必要があり、フォーマットが異な Request.UpdateCoupon request = new Request.UpdateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // クーポンID ) { - Name = "Bgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfc", - Description = "nvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXM", - DiscountAmount = 4761, - DiscountPercentage = 1845.0, - DiscountUpperLimit = 4360, - StartsAt = "2023-03-19T19:18:18.000000+09:00", - EndsAt = "2022-04-02T23:56:43.000000+09:00", - DisplayStartsAt = "2022-08-15T11:01:42.000000+09:00", // クーポンの掲載期間(開始日時) - DisplayEndsAt = "2020-10-06T06:10:06.000000+09:00", // クーポンの掲載期間(終了日時) + Name = "AJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaY", + Description = "QQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHK", + DiscountAmount = 1536, + DiscountPercentage = 6647.0, + DiscountUpperLimit = 1791, + StartsAt = "2020-04-21T20:54:59.000000Z", + EndsAt = "2020-07-25T08:18:17.000000Z", + DisplayStartsAt = "2021-03-25T04:58:14.000000Z", // クーポンの掲載期間(開始日時) + DisplayEndsAt = "2024-01-05T15:52:32.000000Z", // クーポンの掲載期間(終了日時) IsDisabled = false, // 無効化フラグ - IsHidden = true, // クーポン一覧に掲載されるかどうか + IsHidden = false, // クーポン一覧に掲載されるかどうか IsPublic = false, // アプリ配信なしで受け取れるかどうか - Code = "fk3fyCeh", // クーポン受け取りコード - UsageLimit = 1955, // ユーザごとの利用可能回数(NULLの場合は無制限) - MinAmount = 2132, // クーポン適用可能な最小取引額 - IsShopSpecified = true, // 特定店舗限定のクーポンかどうか + Code = "FE45d3P2", // クーポン受け取りコード + UsageLimit = 5840, // ユーザごとの利用可能回数(NULLの場合は無制限) + MinAmount = 3578, // クーポン適用可能な最小取引額 + IsShopSpecified = false, // 特定店舗限定のクーポンかどうか AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト StorageId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID }; @@ -704,6 +724,7 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 を返します + --- diff --git a/docs/customer.md b/docs/customer.md index a27695b..4292d3d 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -1,5 +1,57 @@ # Customer + +## DeleteAccount: ウォレットを退会する +ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 + +```csharp +Request.DeleteAccount request = new Request.DeleteAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +) { + Cashback = true, // 返金有無 +}; +Response.AccountDeleted response = await request.Send(client); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットを退会します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`cashback`** + + +退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[AccountDeleted](./responses.md#account-deleted) +を返します + + + +--- + + ## GetAccount: ウォレット情報を表示する ウォレットを取得します。 @@ -35,6 +87,7 @@ Response.AccountDetail response = await request.Send(client); を返します + --- @@ -54,7 +107,7 @@ Request.UpdateAccount request = new Request.UpdateAccount( ) { IsSuspended = false, // ウォレットが凍結されているかどうか Status = "pre-closed", // ウォレット状態 - CanTransferTopup = false, // チャージ可能かどうか + CanTransferTopup = true, // チャージ可能かどうか }; Response.AccountDetail response = await request.Send(client); ``` @@ -121,56 +174,6 @@ Response.AccountDetail response = await request.Send(client); を返します ---- - - - -## DeleteAccount: ウォレットを退会する -ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 - -```csharp -Request.DeleteAccount request = new Request.DeleteAccount( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID -) { - Cashback = true, // 返金有無 -}; -Response.AccountDeleted response = await request.Send(client); -``` - - - -### Parameters -**`account_id`** - - -ウォレットIDです。 - -指定したウォレットIDのウォレットを退会します。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`cashback`** - - -退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 - -```json -{ - "type": "boolean" -} -``` - - - -成功したときは -[AccountDeleted](./responses.md#account-deleted) -を返します - --- @@ -183,10 +186,10 @@ Response.AccountDeleted response = await request.Send(client); Request.ListAccountBalances request = new Request.ListAccountBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID ) { - Page = 5982, // ページ番号 - PerPage = 6381, // 1ページ分の取引数 - ExpiresAtFrom = "2021-02-16T00:28:45.000000+09:00", // 有効期限の期間によるフィルター(開始時点) - ExpiresAtTo = "2020-01-30T06:56:35.000000+09:00", // 有効期限の期間によるフィルター(終了時点) + Page = 7120, // ページ番号 + PerPage = 8183, // 1ページ分の取引数 + ExpiresAtFrom = "2023-04-19T21:58:01.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresAtTo = "2021-07-18T16:39:27.000000Z", // 有効期限の期間によるフィルター(終了時点) Direction = "asc", // 有効期限によるソート順序 }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -279,6 +282,7 @@ Response.PaginatedAccountBalance response = await request.Send(client); を返します + --- @@ -290,10 +294,10 @@ Response.PaginatedAccountBalance response = await request.Send(client); Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID ) { - Page = 7729, // ページ番号 - PerPage = 8229, // 1ページ分の取引数 - ExpiresAtFrom = "2020-10-28T09:31:32.000000+09:00", // 有効期限の期間によるフィルター(開始時点) - ExpiresAtTo = "2020-02-06T18:50:52.000000+09:00", // 有効期限の期間によるフィルター(終了時点) + Page = 8897, // ページ番号 + PerPage = 5085, // 1ページ分の取引数 + ExpiresAtFrom = "2022-12-10T19:44:05.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresAtTo = "2023-10-05T14:46:25.000000Z", // 有効期限の期間によるフィルター(終了時点) Direction = "desc", // 有効期限によるソート順序 }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -386,6 +390,7 @@ Response.PaginatedAccountBalance response = await request.Send(client); を返します + --- @@ -397,9 +402,9 @@ Response.PaginatedAccountBalance response = await request.Send(client); Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID ) { - Status = "pre-closed", // ウォレット状態 - AccountName = "J93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8TH", // アカウント名 - ExternalId = "D4dpuhxNvhxjPfdLCMpGSOhV764tK", // 外部ID + Status = "active", // ウォレット状態 + AccountName = "tZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9I", // アカウント名 + ExternalId = "SZ1V5b6lHxDKXrcl2EVG", // 外部ID Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", // ウォレットに付加するメタデータ }; Response.AccountWithUser response = await request.Send(client); @@ -496,6 +501,7 @@ Response.AccountWithUser response = await request.Send(client); を返します + --- @@ -507,15 +513,15 @@ Response.AccountWithUser response = await request.Send(client); Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - Page = 5205, // ページ番号 - PerPage = 7228, // 1ページ分のウォレット数 - CreatedAtFrom = "2020-09-02T21:57:13.000000+09:00", // ウォレット作成日によるフィルター(開始時点) - CreatedAtTo = "2023-05-21T21:09:03.000000+09:00", // ウォレット作成日によるフィルター(終了時点) + Page = 6645, // ページ番号 + PerPage = 5963, // 1ページ分のウォレット数 + CreatedAtFrom = "2020-10-15T16:52:47.000000Z", // ウォレット作成日によるフィルター(開始時点) + CreatedAtTo = "2023-04-17T14:35:15.000000Z", // ウォレット作成日によるフィルター(終了時点) IsSuspended = true, // ウォレットが凍結状態かどうかでフィルターする Status = "suspended", // ウォレット状態 - ExternalId = "gjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTs", // 外部ID - Tel = "05735160-4023", // エンドユーザーの電話番号 - Email = "TaTlLaqlkU@49OX.com", // エンドユーザーのメールアドレス + ExternalId = "9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikd", // 外部ID + Tel = "08-91-312", // エンドユーザーの電話番号 + Email = "qUcz43dBm2@6Or7.com", // エンドユーザーのメールアドレス }; Response.PaginatedAccountWithUsers response = await request.Send(client); ``` @@ -654,6 +660,13 @@ Response.PaginatedAccountWithUsers response = await request.Send(client); [PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -671,7 +684,7 @@ Request.CreateCustomerAccount request = new Request.CreateCustomerAccount( ) { UserName = "ポケペイ太郎", // ユーザー名 AccountName = "ポケペイ太郎のアカウント", // アカウント名 - ExternalId = "mcM1eYLCIv", // 外部ID + ExternalId = "FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJm", // 外部ID }; Response.AccountWithUser response = await request.Send(client); ``` @@ -735,6 +748,19 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで [AccountWithUser](./responses.md#account-with-user) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_not_found||The user is not found| +|422|private_money_not_found||Private money not found| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|user_attributes_external_id_not_match|ユーザー属性情報の外部IDが一致しません|Not match external id of user attributes| +|422|user_attributes_not_found|ユーザー属性情報が存在しません|Not found the user attrubtes| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_can_not_create|このマネーに新規アカウントを作る事は出来ません|Can not create an account with this money| + + --- @@ -747,10 +773,10 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで Request.GetShopAccounts request = new Request.GetShopAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - Page = 6034, // ページ番号 - PerPage = 5759, // 1ページ分のウォレット数 - CreatedAtFrom = "2020-03-19T11:40:52.000000+09:00", // ウォレット作成日によるフィルター(開始時点) - CreatedAtTo = "2021-04-16T05:15:38.000000+09:00", // ウォレット作成日によるフィルター(終了時点) + Page = 4175, // ページ番号 + PerPage = 8163, // 1ページ分のウォレット数 + CreatedAtFrom = "2020-12-13T15:33:06.000000Z", // ウォレット作成日によるフィルター(開始時点) + CreatedAtTo = "2022-08-19T17:52:52.000000Z", // ウォレット作成日によるフィルター(終了時点) IsSuspended = false, // ウォレットが凍結状態かどうかでフィルターする }; Response.PaginatedAccountWithUsers response = await request.Send(client); @@ -838,6 +864,13 @@ Response.PaginatedAccountWithUsers response = await request.Send(client); [PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -852,10 +885,10 @@ Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( ) { SenderCustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金エンドユーザーID ReceiverCustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取エンドユーザーID - Type = "payment", // 取引種別 + Type = "transfer", // 取引種別 IsModified = false, // キャンセル済みかどうか - From = "2020-08-01T13:51:54.000000+09:00", // 開始日時 - To = "2020-01-02T20:37:11.000000+09:00", // 終了日時 + From = "2024-02-06T12:42:13.000000Z", // 開始日時 + To = "2021-11-01T15:59:39.000000Z", // 終了日時 Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取引数 }; @@ -1013,6 +1046,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 [PaginatedTransaction](./responses.md#paginated-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|customer_user_not_found||The customer user is not found| +|422|private_money_not_found||Private money not found| + + --- diff --git a/docs/error-response.csv b/docs/error-response.csv index 6cb1bc5..990a441 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -369,6 +369,8 @@ POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK toke ,,422,not_refundable_transaction_type,"キャンセルできるのは取引種別が支払いかチャージのときのみです。",The transaction can refund when its type is payment or topup only ,,503,veritrans_api_error,"カード決済サービスが一時的にご利用になれません。時間を置いて再度お試しください",Credit card service is temporarily unavailable. Please wait a moment and try again ,,503,temporarily_unavailable,,Service Unavailable +GET,/external-transactions/requests/:request-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,event_not_found,"イベントが見つかりません",Event not found GET,/bulk-transactions/:uuid,404,notfound,,Not found GET,/bulk-transactions/:uuid/jobs,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,bulk_transaction_not_found,"Bulk取引が見つかりません",Bulk transaction not found @@ -445,8 +447,8 @@ DELETE,/users/:uuid,403,,, ,,503,temporarily_unavailable,,Service Unavailable GET,/private-moneys,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found -GET,/private-moneys/:uuid,403,,, -,,404,,, +GET,/private-moneys/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_not_found,,Private money not found GET,/private-moneys/:uuid/summary,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,,, ,,422,private_money_not_found,,Private money not found @@ -794,3 +796,7 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,temporarily_unavailable,,Service Unavailable ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." +POST,/paytree/charge-entry-result,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data. +,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. +POST,/paytree/reconcile,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission diff --git a/docs/event.md b/docs/event.md index b16bab4..2fcd14a 100644 --- a/docs/event.md +++ b/docs/event.md @@ -12,11 +12,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 - 7956 // 取引額 + 1864, // 取引額 + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} // 商品情報データ ) { 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","{}"}}}, // 商品情報データ RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID }; Response.ExternalTransactionDetail response = await request.Send(client); @@ -117,6 +117,7 @@ Response.ExternalTransactionDetail response = await request.Send(client); - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -151,6 +152,47 @@ Response.ExternalTransactionDetail response = await request.Send(client); [ExternalTransactionDetail](./responses.md#external-transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -205,6 +247,45 @@ Response.ExternalTransactionDetail response = await request.Send(client); を返します + +--- + + + +## GetExternalTransactionByRequestId: リクエストIDからポケペイ外部取引を取得する +リクエストIDを指定してポケペイ外部取引を取得します。 + +発行体の管理者は自組織発行のマネーに紐付くポケペイ外部取引を取得できます。 + +```csharp +Request.GetExternalTransactionByRequestId request = new Request.GetExternalTransactionByRequestId( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +); +Response.ExternalTransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`request_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[ExternalTransactionDetail](./responses.md#external-transaction-detail) +を返します + + + --- diff --git a/docs/organization.md b/docs/organization.md index e142490..3dbac1d 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -9,8 +9,8 @@ Request.ListOrganizations request = new Request.ListOrganizations( ) { Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取引数 - Name = "AtEksQW", // 組織名 - Code = "l6Am", // 組織コード + Name = "MgTz", // 組織名 + Code = "xm", // 組織コード }; Response.PaginatedOrganizations response = await request.Send(client); ``` @@ -81,6 +81,14 @@ Response.PaginatedOrganizations response = await request.Send(client); [PaginatedOrganizations](./responses.md#paginated-organizations) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -92,15 +100,15 @@ Response.PaginatedOrganizations response = await request.Send(client); Request.CreateOrganization request = new Request.CreateOrganization( "ox-supermarket", // 新規組織コード "oxスーパー", // 新規組織名 - new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 加盟店組織で有効にするマネーIDの配列 - "3gCBrhM35E@fmrt.com", // 発行体担当者メールアドレス - "OFWMml5EKR@iDsW.com" // 新規組織担当者メールアドレス + new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 加盟店組織で有効にするマネーIDの配列 + "uCtm4tM4rQ@7TMW.com", // 発行体担当者メールアドレス + "wQQegAiqW5@Gh3E.com" // 新規組織担当者メールアドレス ) { BankName = "XYZ銀行", // 銀行名 BankCode = "1234", // 銀行金融機関コード BankBranchName = "ABC支店", // 銀行支店名 BankBranchCode = "123", // 銀行支店コード - BankAccountType = "current", // 銀行口座種別 (普通=saving, 当座=current, その他=other) + BankAccountType = "other", // 銀行口座種別 (普通=saving, 当座=current, その他=other) BankAccount = "1234567", // 銀行口座番号 BankAccountHolderName = "フクザワユキチ", // 口座名義人名 ContactName = "佐藤清", // 担当者名 @@ -270,6 +278,17 @@ Response.Organization response = await request.Send(client); [Organization](./responses.md#organization) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| +|409|organization_conflict||The organization code is already used| +|409|shop_name_conflict||The shop name is already used| +|422|organization_private_money_not_found||Issuer organization does not have private-money| +|422|unavailable_private_money||Given private money(s) is/are not available| +|503|failed_to_send_email||Failed to send an E-mail.| + + --- diff --git a/docs/private_money.md b/docs/private_money.md index be58132..b1135d6 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -59,6 +59,13 @@ Response.PaginatedPrivateMoneys response = await request.Send(client); [PaginatedPrivateMoneys](./responses.md#paginated-private-moneys) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|organization_not_found||Organization not found| + + --- @@ -70,8 +77,8 @@ Response.PaginatedPrivateMoneys response = await request.Send(client); Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - From = "2023-06-12T09:52:35.000000+09:00", // 開始日時(toと同時に指定する必要有) - To = "2020-08-23T22:38:01.000000+09:00", // 終了日時(fromと同時に指定する必要有) + From = "2023-11-17T02:30:57.000000Z", // 開始日時(toと同時に指定する必要有) + To = "2024-03-18T16:09:15.000000Z", // 終了日時(fromと同時に指定する必要有) Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取引数 }; @@ -144,6 +151,7 @@ Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Sen を返します + --- @@ -154,8 +162,8 @@ Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Sen Request.GetPrivateMoneySummary request = new Request.GetPrivateMoneySummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - From = "2023-07-23T18:46:17.000000+09:00", // 開始日時 - To = "2023-09-04T17:42:15.000000+09:00", // 終了日時 + From = "2022-06-21T16:03:01.000000Z", // 開始日時 + To = "2023-09-16T21:12:29.000000Z", // 終了日時 }; Response.PrivateMoneySummary response = await request.Send(client); ``` @@ -203,6 +211,7 @@ Response.PrivateMoneySummary response = await request.Send(client); を返します + --- diff --git a/docs/shop.md b/docs/shop.md index 2a54335..dbe8c48 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -8,11 +8,11 @@ Request.ListShops request = new Request.ListShops() { OrganizationCode = "pocketchange", // 組織コード PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID Name = "oxスーパー三田店", // 店舗名 - PostalCode = "716-3551", // 店舗の郵便番号 + PostalCode = "005-4961", // 店舗の郵便番号 Address = "東京都港区芝...", // 店舗の住所 - Tel = "0136-6261-581", // 店舗の電話番号 - Email = "m8wdK6sB9H@suCl.com", // 店舗のメールアドレス - ExternalId = "aKx3AfzVa9lboQsNDBH1u", // 店舗の外部ID + Tel = "0229320-7100", // 店舗の電話番号 + Email = "bgbkQVRY8M@uhwD.com", // 店舗のメールアドレス + ExternalId = "ykulFo5mD", // 店舗の外部ID WithDisabled = true, // 無効な店舗を含める Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取引数 @@ -172,6 +172,14 @@ Response.PaginatedShops response = await request.Send(client); [PaginatedShops](./responses.md#paginated-shops) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| +|422|organization_not_found||Organization not found| + + --- @@ -184,11 +192,11 @@ Response.PaginatedShops response = await request.Send(client); Request.CreateShop request = new Request.CreateShop( "oxスーパー三田店" // 店舗名 ) { - ShopPostalCode = "652-2536", // 店舗の郵便番号 + ShopPostalCode = "9774638", // 店舗の郵便番号 ShopAddress = "東京都港区芝...", // 店舗の住所 - ShopTel = "03184-0638", // 店舗の電話番号 - ShopEmail = "PURq2Q4ZM2@ZH2d.com", // 店舗のメールアドレス - ShopExternalId = "8EggWOOiiO67HWQCePWkLnY7y5P2vTc", // 店舗の外部ID + ShopTel = "04-639488", // 店舗の電話番号 + ShopEmail = "kJRYuzmNrD@0IPF.com", // 店舗のメールアドレス + ShopExternalId = "YcPpoEqcZqYNWK", // 店舗の外部ID OrganizationCode = "ox-supermarket", // 組織コード }; Response.User response = await request.Send(client); @@ -283,6 +291,17 @@ Response.User response = await request.Send(client); [User](./responses.md#user) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| +|409|email_conflict|このメールアドレスは既に使われています|The E-mail address is already registered| +|409|shop_name_conflict||The shop name is already used| +|422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API| +|422|organization_not_found||Organization not found| +|422|unavailable_private_money||Given private money(s) is/are not available| + + --- @@ -294,14 +313,14 @@ Response.User response = await request.Send(client); Request.CreateShopV2 request = new Request.CreateShopV2( "oxスーパー三田店" // 店舗名 ) { - PostalCode = "2445685", // 店舗の郵便番号 + PostalCode = "950-8736", // 店舗の郵便番号 Address = "東京都港区芝...", // 店舗の住所 - Tel = "097807-493", // 店舗の電話番号 - Email = "tjhMxgRT9F@EddB.com", // 店舗のメールアドレス - ExternalId = "an5HyW6Uan9MoYMbeeBKUXD", // 店舗の外部ID + Tel = "0253-070-949", // 店舗の電話番号 + Email = "fcnvR24ekn@dSEu.com", // 店舗のメールアドレス + ExternalId = "ijqL", // 店舗の外部ID OrganizationCode = "ox-supermarket", // 組織コード - PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列 - CanTopupPrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗でチャージ可能にするマネー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", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗でチャージ可能にするマネーIDの配列 }; Response.ShopWithAccounts response = await request.Send(client); ``` @@ -436,6 +455,18 @@ Response.ShopWithAccounts response = await request.Send(client); [ShopWithAccounts](./responses.md#shop-with-accounts) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|409|shop_name_conflict||The shop name is already used| +|422|organization_not_found||Organization not found| +|422|unpermitted_private_money|このマネーは使えません|This money is not available| +|422|unavailable_private_money||Given private money(s) is/are not available| +|422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API| + + --- @@ -474,6 +505,7 @@ Response.ShopWithAccounts response = await request.Send(client); を返します + --- @@ -486,14 +518,14 @@ Request.UpdateShop request = new Request.UpdateShop( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 店舗ユーザーID ) { Name = "oxスーパー三田店", // 店舗名 - PostalCode = "012-4307", // 店舗の郵便番号 + PostalCode = "4349417", // 店舗の郵便番号 Address = "東京都港区芝...", // 店舗の住所 - Tel = "0793587-854", // 店舗の電話番号 - Email = "L0vlIdvdIM@bz7w.com", // 店舗のメールアドレス - ExternalId = "Ui6BXoKUl0tR073", // 店舗の外部ID - PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列 + Tel = "0383-697190", // 店舗の電話番号 + Email = "nDEjnPuGDO@Lqsy.com", // 店舗のメールアドレス + ExternalId = "43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJ", // 店舗の外部ID + PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列 CanTopupPrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗でチャージ可能にするマネーIDの配列 - Status = "active", // 店舗の状態 + Status = "disabled", // 店舗の状態 }; Response.ShopWithAccounts response = await request.Send(client); ``` @@ -647,6 +679,7 @@ Response.ShopWithAccounts response = await request.Send(client); を返します + --- diff --git a/docs/transaction.md b/docs/transaction.md index b612fd2..846b72b 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -6,7 +6,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```csharp Request.GetCpmToken request = new Request.GetCpmToken( - "PKvTH4Qb4HK1DE5zpHipft" // CPMトークン + "07369wBiPR32MXZafz3jff" // CPMトークン ); Response.CpmToken response = await request.Send(client); ``` @@ -34,6 +34,7 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを を返します + --- @@ -43,15 +44,15 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```csharp Request.ListTransactions request = new Request.ListTransactions() { - From = "2021-10-20T16:32:19.000000+09:00", // 開始日時 - To = "2021-02-01T08:09:55.000000+09:00", // 終了日時 + From = "2021-04-02T07:32:00.000000Z", // 開始日時 + To = "2022-07-30T13:45:34.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 = "uuU", // 取引ID + TransactionId = "8l", // 取引ID OrganizationCode = "pocketchange", // 組織コード PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID IsModified = false, // キャンセルフラグ @@ -290,6 +291,12 @@ Response.PaginatedTransaction response = await request.Send(client); [PaginatedTransaction](./responses.md#paginated-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| + + --- @@ -304,10 +311,10 @@ Request.CreateTransaction request = new Request.CreateTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ) { - MoneyAmount = 3168, - PointAmount = 7952, - PointExpiresAt = "2022-10-25T15:57:47.000000+09:00", // ポイント有効期限 - Description = "4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7", + MoneyAmount = 1949, + PointAmount = 3853, + PointExpiresAt = "2020-04-12T08:23:54.000000Z", // ポイント有効期限 + Description = "RnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l3", }; Response.TransactionDetail response = await request.Send(client); ``` @@ -402,6 +409,47 @@ Response.TransactionDetail response = await request.Send(client); [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|NULL|NULL|NULL| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -419,11 +467,11 @@ Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID CustomerName = "太郎", // エンドユーザー名 Description = "店頭QRコードによる支払い", // 取引説明文 - TransactionId = "fQZGPMXFo", // 取引ID - IsModified = true, // キャンセルフラグ + TransactionId = "Ne", // 取引ID + IsModified = false, // キャンセルフラグ Types = new string[]{"topup", "payment"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - From = "2021-02-27T22:52:38.000000+09:00", // 開始日時 - To = "2022-10-05T17:16:15.000000+09:00", // 終了日時 + From = "2021-11-10T11:36:05.000000Z", // 開始日時 + To = "2021-11-29T15:30:34.000000Z", // 終了日時 NextPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransactionのID PrevPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransactionのID PerPage = 50, // 1ページ分の取引数 @@ -688,6 +736,12 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ [PaginatedTransactionV2](./responses.md#paginated-transaction-v2) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- @@ -703,9 +757,9 @@ Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { BearPointShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント支払時の負担店舗ID - MoneyAmount = 3976, // マネー額 - PointAmount = 3055, // ポイント額 - PointExpiresAt = "2020-06-16T08:58:49.000000+09:00", // ポイント有効期限 + MoneyAmount = 2243, // マネー額 + PointAmount = 9043, // ポイント額 + PointExpiresAt = "2021-06-23T16:01:51.000000Z", // ポイント有効期限 Description = "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 Metadata = "{\"key\":\"value\"}", // 取引メタデータ RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID @@ -865,6 +919,46 @@ Response.TransactionDetail response = await request.Send(client); [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -880,11 +974,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 - 8478 // 支払い額 + 4138, // 支払い額 + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} // 商品情報データ ) { 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","{}"}}}, // 商品情報データ RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID }; Response.TransactionDetail response = await request.Send(client); @@ -987,6 +1081,7 @@ Response.TransactionDetail response = await request.Send(client); - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -1021,6 +1116,45 @@ Response.TransactionDetail response = await request.Send(client); [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1033,13 +1167,13 @@ CPMトークンに設定されたスコープの取引を作ることができ ```csharp Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "ZGxUJAAeHeUyg78eCpqwfb", // CPMトークン + "LJdEVZoJB0H5I2jNmYRtpC", // CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - 4899.0 // 取引金額 + 9240.0, // 取引金額 + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} // 商品情報データ ) { 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","{}"}}}, // 商品情報データ RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID }; Response.TransactionDetail response = await request.Send(client); @@ -1128,6 +1262,7 @@ Response.TransactionDetail response = await request.Send(client); - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -1162,6 +1297,50 @@ Response.TransactionDetail response = await request.Send(client); [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|cpm_unacceptable_amount|このCPMトークンに対して許可されていない金額です。|The amount is unacceptable for the CPM token| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|cpm_token_already_proceed|このCPMトークンは既に処理されています。|The CPM token is already proceed| +|422|cpm_token_already_expired|このCPMトークンは既に失効しています。|The CPM token is already expired| +|422|cpm_token_not_found|CPMトークンが見つかりませんでした。|The CPM token is not found.| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1177,7 +1356,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 - 1735.0 // 送金額 + 9279.0 // 送金額 ) { Metadata = "{\"key\":\"value\"}", // 取引メタデータ Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 @@ -1295,6 +1474,46 @@ Response.TransactionDetail response = await request.Send(client); [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|private_money_not_found||Private money not found| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1307,9 +1526,9 @@ Request.CreateExchangeTransaction request = new Request.CreateExchangeTransactio "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 4122 + 7381 ) { - Description = "I8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP", + Description = "zTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwF", RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID }; Response.TransactionDetail response = await request.Send(client); @@ -1395,6 +1614,44 @@ Response.TransactionDetail response = await request.Send(client); [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|transaction_restricted||Transaction is not allowed| +|422|can_not_exchange_between_same_private_money|同じマネーとの交換はできません|| +|422|can_not_exchange_between_users|異なるユーザー間での交換は出来ません|| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_closed|アカウントは退会しています|The account is closed| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1434,6 +1691,7 @@ Response.TransactionDetail response = await request.Send(client); を返します + --- @@ -1452,7 +1710,7 @@ Request.RefundTransaction request = new Request.RefundTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 取引ID ) { Description = "返品対応のため", // 取引履歴に表示する返金事由 - ReturningPointExpiresAt = "2023-04-10T10:02:04.000000+09:00", // 返却ポイントの有効期限 + ReturningPointExpiresAt = "2023-05-11T10:56:00.000000Z", // 返却ポイントの有効期限 }; Response.TransactionDetail response = await request.Send(client); ``` @@ -1501,6 +1759,7 @@ Response.TransactionDetail response = await request.Send(client); を返します + --- @@ -1539,6 +1798,7 @@ Response.TransactionDetail response = await request.Send(client); を返します + --- @@ -1575,6 +1835,7 @@ Response.BulkTransaction response = await request.Send(client); を返します + --- @@ -1638,6 +1899,7 @@ Response.PaginatedBulkTransactionJob response = await request.Send(client); を返します + --- @@ -1703,6 +1965,16 @@ Response.UserStatsOperation response = await request.Send(client); [UserStatsOperation](./responses.md#user-stats-operation) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|invalid_promotional_operation_user|ユーザーの指定に不正な値が含まれています|Invalid user data is specified| +|422|invalid_promotional_operation_status|不正な処理ステータスです|Invalid operation status is specified| +|503|user_stats_operation_service_unavailable|一時的にユーザー統計サービスが利用不能です|User stats service is temporarily unavailable| + + --- diff --git a/docs/transfer.md b/docs/transfer.md index f9a4142..174e6f3 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -8,8 +8,8 @@ Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID ) { - From = "2020-11-21T12:14:48.000000+09:00", // 集計期間の開始時刻 - To = "2024-01-29T03:18:51.000000+09:00", // 集計期間の終了時刻 + From = "2021-05-27T23:29:35.000000Z", // 集計期間の開始時刻 + To = "2020-08-03T23:00:14.000000Z", // 集計期間の終了時刻 TransferTypes = new string[]{"topup", "payment"}, // 取引明細種別 (複数指定可) }; Response.AccountTransferSummary response = await request.Send(client); @@ -115,6 +115,7 @@ Response.AccountTransferSummary response = await request.Send(client); を返します + --- @@ -123,19 +124,19 @@ Response.AccountTransferSummary response = await request.Send(client); ```csharp Request.ListTransfers request = new Request.ListTransfers() { - From = "2023-12-31T07:01:20.000000+09:00", - To = "2020-06-29T02:08:48.000000+09:00", - Page = 6859, - PerPage = 4421, + From = "2023-05-01T22:11:57.000000Z", + To = "2022-07-24T22:57:17.000000Z", + Page = 9433, + PerPage = 2504, ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - ShopName = "4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K", + ShopName = "uPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jp", CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - CustomerName = "7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbm", + CustomerName = "CTg7cImjgcPmkAEumRe3ajMg8VGC0KZ", TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - IsModified = false, - TransactionTypes = new string[]{"payment", "transfer", "topup"}, - TransferTypes = new string[]{"transfer", "exchange", "cashback", "payment", "coupon", "campaign"}, // 取引明細の種類でフィルターします。 + IsModified = true, + TransactionTypes = new string[]{"cashback", "expire", "payment"}, + TransferTypes = new string[]{"topup", "exchange", "expire", "transfer", "campaign", "payment"}, // 取引明細の種類でフィルターします。 Description = "店頭QRコードによる支払い", // 取引詳細説明文 }; Response.PaginatedTransfers response = await request.Send(client); @@ -352,6 +353,12 @@ Response.PaginatedTransfers response = await request.Send(client); [PaginatedTransfers](./responses.md#paginated-transfers) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| + + --- @@ -362,20 +369,20 @@ Response.PaginatedTransfers response = await request.Send(client); ```csharp Request.ListTransfersV2 request = new Request.ListTransfersV2() { ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - ShopName = "FzroFJfg0zCih9q", // 店舗名 + ShopName = "Gv2NsNRGCHkqW6b190X", // 店舗名 CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID - CustomerName = "Hu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjW", // エンドユーザー名 + CustomerName = "2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5T", // エンドユーザー名 TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - IsModified = false, // キャンセルフラグ - TransactionTypes = new string[]{"cashback", "expire", "exchange", "topup", "transfer"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + IsModified = true, // キャンセルフラグ + TransactionTypes = new string[]{"payment", "cashback", "expire", "exchange", "transfer", "topup"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment NextPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransferのID PrevPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransferのID PerPage = 50, // 1ページ分の取引数 - TransferTypes = new string[]{"expire", "coupon", "exchange", "campaign", "payment", "transfer"}, // 取引明細種別 (複数指定可) + TransferTypes = new string[]{"payment", "exchange", "expire", "cashback", "coupon"}, // 取引明細種別 (複数指定可) Description = "店頭QRコードによる支払い", // 取引詳細説明文 - From = "2021-10-04T05:26:43.000000+09:00", // 開始日時 - To = "2021-11-17T01:08:00.000000+09:00", // 終了日時 + From = "2020-05-16T00:13:53.000000Z", // 開始日時 + To = "2023-01-28T02:51:42.000000Z", // 終了日時 }; Response.PaginatedTransfersV2 response = await request.Send(client); ``` @@ -670,6 +677,12 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません [PaginatedTransfersV2](./responses.md#paginated-transfers-v2) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- diff --git a/docs/user.md b/docs/user.md index 47d5c51..98384e9 100644 --- a/docs/user.md +++ b/docs/user.md @@ -17,6 +17,12 @@ Response.AdminUserWithShopsAndPrivateMoneys response = await request.Send(client [AdminUserWithShopsAndPrivateMoneys](./responses.md#admin-user-with-shops-and-private-moneys) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- diff --git a/docs/user_device.md b/docs/user_device.md index 813f1b0..f1bcf28 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -51,6 +51,13 @@ Response.UserDevice response = await request.Send(client); [UserDevice](./responses.md#user-device) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_not_found||The user is not found| + + --- @@ -87,6 +94,7 @@ Response.UserDevice response = await request.Send(client); を返します + --- @@ -123,6 +131,7 @@ Response.UserDevice response = await request.Send(client); を返します + --- diff --git a/docs/webhook.md b/docs/webhook.md index cc420ef..39c5e89 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -4,6 +4,60 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 + +## ListWebhooks: 作成したWebhookの一覧を返す + +```csharp +Request.ListWebhooks request = new Request.ListWebhooks() { + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取得数 +}; +Response.PaginatedOrganizationWorkerTaskWebhook response = await request.Send(client); +``` + + + +### Parameters +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + + +--- + + ## CreateWebhook: webhookの作成 ワーカータスクの処理が終了したことを通知するためのWebhookを登録します @@ -12,8 +66,8 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ ```csharp Request.CreateWebhook request = new Request.CreateWebhook( - "process_user_stats_operation", // タスク名 - "tBu" // URL + "bulk_shops", // タスク名 + "Ds" // URL ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); ``` @@ -53,55 +107,51 @@ Response.OrganizationWorkerTaskWebhook response = await request.Send(client); [OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|409|organization_worker_task_finish_webhook_conflict|そのwebhookは既に登録されています|The webhook is already registered| + + --- - -## ListWebhooks: 作成したWebhookの一覧を返す + +## DeleteWebhook: Webhookの削除 +指定したWebhookを削除します ```csharp -Request.ListWebhooks request = new Request.ListWebhooks() { - Page = 1, // ページ番号 - PerPage = 50, // 1ページ分の取得数 -}; -Response.PaginatedOrganizationWorkerTaskWebhook response = await request.Send(client); +Request.DeleteWebhook request = new Request.DeleteWebhook( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID +); +Response.OrganizationWorkerTaskWebhook response = await request.Send(client); ``` ### Parameters -**`page`** - - -取得したいページ番号です。 - -```json -{ - "type": "integer", - "minimum": 1 -} -``` - -**`per_page`** +**`webhook_id`** -1ページ分の取得数です。デフォルトでは 50 になっています。 +削除するWebhookのIDです。 ```json { - "type": "integer", - "minimum": 1 + "type": "string", + "format": "uuid" } ``` 成功したときは -[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook) +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) を返します + --- @@ -113,9 +163,9 @@ Response.PaginatedOrganizationWorkerTaskWebhook response = await request.Send(cl Request.UpdateWebhook request = new Request.UpdateWebhook( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID ) { - Url = "ImxNnX4", // URL + Url = "yOnXTq", // URL IsActive = false, // 有効/無効 - Task = "bulk_shops", // タスク名 + Task = "process_user_stats_operation", // タスク名 }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); ``` @@ -179,41 +229,6 @@ trueならWebhookによる通知が有効になり、falseなら無効になり を返します ---- - - - -## DeleteWebhook: Webhookの削除 -指定したWebhookを削除します - -```csharp -Request.DeleteWebhook request = new Request.DeleteWebhook( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID -); -Response.OrganizationWorkerTaskWebhook response = await request.Send(client); -``` - - - -### Parameters -**`webhook_id`** - - -削除するWebhookのIDです。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) -を返します - --- diff --git a/partner.yaml b/partner.yaml index 57c0821..3ecb963 100644 --- a/partner.yaml +++ b/partner.yaml @@ -1021,6 +1021,55 @@ components: 例えば、キャンペーンによるポイント付与取引やキャンセル状況などの情報が含まれます。 ポケペイ取引が存在しない場合はnullが設定されます。 + Products: + type: array + items: + type: object + properties: + jan_code: + type: string + maxLength: 64 + classification_code: + type: string + maxLength: 64 + name: + type: string + maxLength: 256 + unit_price: + type: number + minimum: 0 + price: + type: number + minimum: 0 + quantity: + type: integer + minimum: 1 + is_discounted: + type: boolean + other: + type: string + format: json + example: |- + {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"} + title: '商品情報データ' + description: |- + 一つの取引に含まれる商品情報データです。 + 以下の内容からなるJSONオブジェクトの配列で指定します。 + + - `jan_code`: JANコード。64字以下の文字列 + - `name`: 商品名。256字以下の文字列 + - `unit_price`: 商品単価。0以上の数値 + - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 + - `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 + - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean + - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + Product: x-pokepay-schema-type: "response" properties: @@ -1036,6 +1085,10 @@ components: price: type: number minimum: 0 + quantity: + type: integer + minimum: 1 + nullable: true is_discounted: type: boolean other: @@ -3904,48 +3957,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: '商品情報データ' - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -4031,48 +4043,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: 商品情報データ - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -4566,48 +4537,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: '商品情報データ' - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -4676,6 +4606,37 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /external-transactions/requests/{request_id}: + get: + tags: + - Event + summary: 'リクエストIDからポケペイ外部取引を取得する' + description: |- + リクエストIDを指定してポケペイ外部取引を取得します。 + + 発行体の管理者は自組織発行のマネーに紐付くポケペイ外部取引を取得できます。 + + x-pokepay-operator-name: GetExternalTransactionByRequestId + x-pokepay-allow-server-side: true + parameters: + - in: path + name: request_id + required: true + schema: + type: string + format: uuid + title: 'リクエストID' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ExternalTransactionDetail' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' /transfers: get: tags: @@ -6522,7 +6483,7 @@ paths: minimum: 0 maximum: 6 title: 'キャンペーンを適用する曜日 (複数指定)' - describe: |- + description: |- キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) @@ -6546,7 +6507,7 @@ paths: } title: 'キャンペーンを適用する時間帯 (複数指定)' - describe: |- + description: |- キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 @@ -6556,7 +6517,7 @@ paths: type: string format: uuid title: 'キャンペーン適用対象となる店舗IDのリスト' - describe: |- + description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 minimum_number_of_products: @@ -6761,6 +6722,7 @@ paths: デフォルトではポイント付与先はキャンペーンを駆動するイベントのマネー(private_money_idで指定したマネー)になります。 別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 + applicable_account_metadata: description: |- ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 @@ -6810,6 +6772,55 @@ paths: "value": "male" } + applicable_transaction_metadata: + description: |- + 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 + 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + + オプショナルパラメータtestによって比較方法を指定することができます。 + デフォルトは equal で、その他に not-equalを指定可能です。 + + 例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze" + } + ``` + + 例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze", + "test": "not-equal" + } + ``` + + type: object + properties: + key: + type: string + description: |- + メタデータの属性名 + value: + type: string + description: |- + メタデータの値 + test: + type: string + enum: [equal, not-equal] + description: |- + メタデータの値の比較方法。デフォルトはequal + example: |- + { + "key": "rank", + "value": "bronze" + } + budget_caps_amount: title: 'キャンペーン予算上限' type: integer @@ -7354,7 +7365,7 @@ paths: maximum: 6 nullable: true title: 'キャンペーンを適用する曜日 (複数指定)' - describe: |- + description: |- キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) @@ -7379,7 +7390,7 @@ paths: nullable: true title: 'キャンペーンを適用する時間帯 (複数指定)' - describe: |- + description: |- キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 @@ -7390,7 +7401,7 @@ paths: format: uuid nullable: true title: 'キャンペーン適用対象となる店舗IDのリスト' - describe: |- + description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 minimum_number_of_products: @@ -7586,6 +7597,7 @@ paths: このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 + applicable_account_metadata: description: |- ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 @@ -7636,6 +7648,56 @@ paths: "value": "male" } + applicable_transaction_metadata: + description: |- + 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 + 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + + オプショナルパラメータtestによって比較方法を指定することができます。 + デフォルトは equal で、その他に not-equalを指定可能です。 + + 例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze" + } + ``` + + 例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze", + "test": "not-equal" + } + ``` + + type: object + nullable: true + properties: + key: + type: string + description: |- + メタデータの属性名 + value: + type: string + description: |- + メタデータの値 + test: + type: string + enum: [equal, not-equal] + description: |- + メタデータの値の比較方法。デフォルトはequal + example: |- + { + "key": "rank", + "value": "bronze" + } + budget_caps_amount: title: 'キャンペーン予算上限' type: integer diff --git a/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs b/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs index c34fcaf..577162f 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs @@ -25,7 +25,7 @@ public async Task ActivateUserDevice0() { try { Request.ActivateUserDevice request = new Request.ActivateUserDevice( - "ddc19920-12b8-4f27-b109-5ccc97edf707" + "544a0698-8c7c-4f0c-9c95-6070b7a99193" ); Response.UserDevice response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestBulkCreateTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestBulkCreateTransaction.cs index f53d12e..5e224b3 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( - "3OQSs9cvMVMzYpfEHHq4AVCPhpF", - "l2NE9Oo", - "hrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw4" + "uu2d72PSR", + "B", + "NNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bw" ); 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( - "3OQSs9cvMVMzYpfEHHq4AVCPhpF", - "l2NE9Oo", - "hrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw4" + "uu2d72PSR", + "B", + "NNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bw" ) { - PrivateMoneyId = "764583b8-f1b2-4f53-9f0c-29a381545536", + PrivateMoneyId = "df0a8443-3500-4c60-861c-9f7507533df2", }; 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( - "3OQSs9cvMVMzYpfEHHq4AVCPhpF", - "l2NE9Oo", - "hrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw4" + "uu2d72PSR", + "B", + "NNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bw" ) { - Description = "HFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2", - PrivateMoneyId = "be50ce8a-2b92-4dbc-a9a4-88af0586c65c", + Description = "maLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnot", + PrivateMoneyId = "99040124-561b-4aca-8b4e-b4a5256b8f4d", }; 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 f23aeb7..e1d0a68 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( - "b3773803-92d6-4480-8386-dd0bb7f66b74" + "aaf6a586-88af-4705-b315-e668c4144e0c" ); 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 index 34264ec..9320773 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateBank.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateBank.cs @@ -25,10 +25,10 @@ public async Task CreateBank0() { try { Request.CreateBank request = new Request.CreateBank( - "fdbcc7c9-aefb-4f8b-b4af-3cb45eb58378", - "88d770a4-c68d-4e27-bb7f-e24cfe9835b3", - "frFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6", - "CVlMKFHkTHEGRWUBVUZa1" + "438f86c4-85d0-4bd9-8a9d-3941867967ad", + "2212ed03-8825-40d6-ba56-a08028c272b6", + "vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOM", + "P2U7IkYygmkkDxd3MzpkzvPsPo2v" ); Response.BankRegisteringInfo response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +43,12 @@ public async Task CreateBank1() { try { Request.CreateBank request = new Request.CreateBank( - "fdbcc7c9-aefb-4f8b-b4af-3cb45eb58378", - "88d770a4-c68d-4e27-bb7f-e24cfe9835b3", - "frFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6", - "CVlMKFHkTHEGRWUBVUZa1" + "438f86c4-85d0-4bd9-8a9d-3941867967ad", + "2212ed03-8825-40d6-ba56-a08028c272b6", + "vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOM", + "P2U7IkYygmkkDxd3MzpkzvPsPo2v" ) { - Birthdate = "rmAx", + Birthdate = "cZvK", }; Response.BankRegisteringInfo response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,13 +63,13 @@ public async Task CreateBank2() { try { Request.CreateBank request = new Request.CreateBank( - "fdbcc7c9-aefb-4f8b-b4af-3cb45eb58378", - "88d770a4-c68d-4e27-bb7f-e24cfe9835b3", - "frFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6", - "CVlMKFHkTHEGRWUBVUZa1" + "438f86c4-85d0-4bd9-8a9d-3941867967ad", + "2212ed03-8825-40d6-ba56-a08028c272b6", + "vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOM", + "P2U7IkYygmkkDxd3MzpkzvPsPo2v" ) { - Email = "zFUF6ihvlI@4uoO.com", - Birthdate = "nKraNj", + Email = "af470Dw5YI@6SeA.com", + Birthdate = "OBDBgRA", }; Response.BankRegisteringInfo response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs index 5c0b9a4..578a05c 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateBankTopupTransaction.cs @@ -25,11 +25,11 @@ public async Task CreateBankTopupTransaction0() { try { Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction( - "8c7d46d3-3f18-467f-a96a-4b8a600daa44", - "ed8a4f16-96f8-4f74-b8f2-4267e97de3f3", - 3128, - "c785bc2d-80e5-4408-be30-535e90b4bce4", - "1df65312-5e1c-4b6b-a9db-54c169ed5fc1" + "bd69dc67-93ed-4eea-85de-e7f86a483e90", + "24e6d640-54bf-425a-8709-1efe509dbefb", + 8451, + "dc71cfa6-e4c7-4b43-8193-5623dabd3806", + "97a71771-7861-4942-9cf7-1aca19f711b9" ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs index 05864ca..b46152a 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( - "67de50c6-261a-4ed4-82a8-b7eb5f78bd1b", - "93385457-bf39-40f4-8b9c-35159bdadd50" + "9a5387ae-5073-455d-b2b6-f5c50f9210c4", + "f41d19fb-7d26-4d80-abfa-9dc49d937f4c" ); 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( - "67de50c6-261a-4ed4-82a8-b7eb5f78bd1b", - "93385457-bf39-40f4-8b9c-35159bdadd50" + "9a5387ae-5073-455d-b2b6-f5c50f9210c4", + "f41d19fb-7d26-4d80-abfa-9dc49d937f4c" ) { - Description = "byeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGU", + Description = "nAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtY", }; 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( - "67de50c6-261a-4ed4-82a8-b7eb5f78bd1b", - "93385457-bf39-40f4-8b9c-35159bdadd50" + "9a5387ae-5073-455d-b2b6-f5c50f9210c4", + "f41d19fb-7d26-4d80-abfa-9dc49d937f4c" ) { - Amount = 2348.0, - Description = "PugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5", + Amount = 1581.0, + Description = "6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VG", }; 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 a7b71b5..21aa174 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ); 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - BudgetCapsAmount = 417391773, + BudgetCapsAmount = 1009088247, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1058382380, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 784220269, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - DestPrivateMoneyId = "6fb99657-5581-42ed-a69c-b2059f4d1c40", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1004494496, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1554964878, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - MaxTotalPointAmount = 3883, - DestPrivateMoneyId = "60d6d2bf-d0e2-4f13-8154-a830571d2c20", + DestPrivateMoneyId = "558d6d5d-6d7d-43c9-bf7b-311bb4aa8634", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1925568641, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1833154823, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - MaxPointAmount = 6206, - MaxTotalPointAmount = 3422, - DestPrivateMoneyId = "f2f50c36-94b6-4235-ab72-6e9c59ab94e7", + MaxTotalPointAmount = 9503, + DestPrivateMoneyId = "d0acb405-ad1a-46dc-b5af-db6f42754a4f", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 54119804, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 333829830, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - ExistInEachProductGroups = true, - MaxPointAmount = 6040, - MaxTotalPointAmount = 7772, - DestPrivateMoneyId = "85a19e95-3605-4464-b784-d6e58f3de2fc", + MaxPointAmount = 6161, + MaxTotalPointAmount = 1120, + DestPrivateMoneyId = "c629c6c0-0429-45bf-8bf2-89615559e2ce", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1805137598, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1233458079, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - MinimumNumberForCombinationPurchase = 3504, ExistInEachProductGroups = false, - MaxPointAmount = 3146, - MaxTotalPointAmount = 6282, - DestPrivateMoneyId = "2e5644c9-ba6b-47ec-8e10-31a1774f8ceb", + MaxPointAmount = 747, + MaxTotalPointAmount = 1030, + DestPrivateMoneyId = "67f6463f-333a-4e92-a12d-667043eef62a", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 144191962, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1496436754, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - MinimumNumberOfAmount = 5288, - MinimumNumberForCombinationPurchase = 3029, + MinimumNumberForCombinationPurchase = 1840, ExistInEachProductGroups = false, - MaxPointAmount = 1834, - MaxTotalPointAmount = 3235, - DestPrivateMoneyId = "dbbc8024-67ca-4309-9ee5-6bb96b8ec292", + MaxPointAmount = 2127, + MaxTotalPointAmount = 7738, + DestPrivateMoneyId = "8c7d46d3-3f18-467f-a96a-4b8a600daa44", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1899582053, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1837780759, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - MinimumNumberOfProducts = 6086, - MinimumNumberOfAmount = 2384, - MinimumNumberForCombinationPurchase = 3784, + MinimumNumberOfAmount = 5881, + MinimumNumberForCombinationPurchase = 3957, ExistInEachProductGroups = true, - MaxPointAmount = 9599, - MaxTotalPointAmount = 7501, - DestPrivateMoneyId = "744139ce-d391-4db8-937c-8add2959692e", + MaxPointAmount = 9971, + MaxTotalPointAmount = 616, + DestPrivateMoneyId = "e97de3f3-4c37-4c2d-a508-8cfea6540930", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1221568410, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 2109625183, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - ApplicableShopIds = new string[]{"45b9027a-76aa-41a8-b1cb-72a13591d246", "6be1b482-0e22-4c3f-aff2-fedbc756fcc9", "b130be09-e551-4567-9df7-0cf8c21a7113", "483cfe23-8bb8-4c6f-af5d-c491d484d7fc", "84b0bcf3-2a4a-49cc-8bb5-66523bad8971", "476345b6-b0a8-4dbe-b72a-a5a970984756", "f98199ac-dc18-4cd8-8d05-54f0fc39bb18", "e091ffda-7647-4128-8d53-a692375fa126"}, - MinimumNumberOfProducts = 1915, - MinimumNumberOfAmount = 5879, - MinimumNumberForCombinationPurchase = 2640, + MinimumNumberOfProducts = 4883, + MinimumNumberOfAmount = 7709, + MinimumNumberForCombinationPurchase = 1770, ExistInEachProductGroups = false, - MaxPointAmount = 1920, - MaxTotalPointAmount = 6236, - DestPrivateMoneyId = "d8763ca4-c710-4fc8-99d2-d16a2f93d07a", + MaxPointAmount = 5314, + MaxTotalPointAmount = 8130, + DestPrivateMoneyId = "95bdf2e1-f71a-4438-aa77-f1d87095212f", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 153171498, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1604707511, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"ea713bda-738c-40de-99f7-363059939505", "2efa0c7c-5b35-4bd4-91f9-4c30bdeb5740", "12f7131f-52fe-4707-82ee-0ee579a3baee"}, - MinimumNumberOfProducts = 7204, - MinimumNumberOfAmount = 3963, - MinimumNumberForCombinationPurchase = 6345, + ApplicableShopIds = new string[]{"a49fcbdd-a2a6-4929-86cc-b543cf5ea942", "bd03b1df-cfdf-405b-b13e-ad18fec38858", "df324786-3dde-44dd-ac76-217ac2ccd605", "9d1e1b42-cd11-4461-babe-2e53af301fc3", "46fbbc45-b028-423d-bbba-fb9f27fbb731", "7661bbe8-a8bd-4360-850c-24479f5b5086", "340bfda0-a3bc-4bb2-a7c5-7c0633462791", "c59cf76b-5deb-42dd-9e0c-ebd05bd30532", "5678ba0d-93ae-4f56-a508-f31dad866a49", "78367916-efd0-41f9-823e-8b372ff08d7b"}, + MinimumNumberOfProducts = 7497, + MinimumNumberOfAmount = 8326, + MinimumNumberForCombinationPurchase = 9560, ExistInEachProductGroups = false, - MaxPointAmount = 7370, - MaxTotalPointAmount = 9431, - DestPrivateMoneyId = "49d982f7-b824-4a0d-a88e-420b3abcc14d", + MaxPointAmount = 6949, + MaxTotalPointAmount = 7775, + DestPrivateMoneyId = "3b7a5ae5-91a7-4d5c-b7a8-a9a9b52a70fe", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1946180367, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1553487604, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - ApplicableDaysOfWeek = new int[]{2, 1, 0, 2, 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[]{"d6761e94-d49f-4c4d-8447-aa1a670891e5", "35160376-2ca7-4913-b7d6-abcdb1fcc59f", "e4b67365-19c0-44da-9ddf-20fb5a70f7ab", "fa24790a-e58f-41f4-b8c5-6aa832991f71", "8505b09b-665f-48af-bec9-ac9be07e1e76", "b544a53e-6589-438e-8992-4679695a3ff8", "3d03327c-08f6-4f01-beec-126a3a30c4b5"}, - MinimumNumberOfProducts = 588, - MinimumNumberOfAmount = 5101, - MinimumNumberForCombinationPurchase = 4594, - ExistInEachProductGroups = true, - MaxPointAmount = 9261, - MaxTotalPointAmount = 2829, - DestPrivateMoneyId = "456e9024-b718-4a03-8119-2a29124f29fe", + 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[]{"bfaec73a-3edd-4e20-88bc-621f345c0d12", "6017b142-1029-4642-a8b1-389ef1c39d18", "bd988fd9-4983-4d4e-af43-66ecacabce7f", "9754d593-6e3a-4bc5-b028-f16edc1ca33b", "de898838-9237-44c1-b38a-7d92016c2f06", "32d42e89-1830-460c-acb6-e3c0d183e10b", "6c8ee176-225c-46db-b390-55f024f5d85c", "0515f6be-3d1b-4d3f-8e2a-7014622fe43b", "776be15b-03ac-4fdd-9708-d6bfd58366c8", "5d0641b9-cf88-4f75-b8ae-39f823e6d8b4"}, + MinimumNumberOfProducts = 4826, + MinimumNumberOfAmount = 1959, + MinimumNumberForCombinationPurchase = 736, + ExistInEachProductGroups = false, + MaxPointAmount = 13, + MaxTotalPointAmount = 1431, + DestPrivateMoneyId = "5d1f8032-3b3c-4392-ad78-d56a86571c94", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1381412536, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1089189598, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{2, 0, 6, 4, 1, 2}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"c6f3a0f6-f429-4f9f-a418-db9112d75953", "b61a414e-0d1c-4c5b-b6e5-68d7cbf8d87a", "d3823bd7-6ec9-4f2e-b5cc-fa93b702e380", "5e5da697-b88d-4bb6-b3f4-12affbbbc515"}, - MinimumNumberOfProducts = 7453, - MinimumNumberOfAmount = 9728, - MinimumNumberForCombinationPurchase = 4798, + ApplicableDaysOfWeek = new int[]{5, 2, 5, 1, 4, 5, 4, 6, 1, 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"}}, 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[]{"f8574894-d553-4f6e-8f48-87d3ab29e466"}, + MinimumNumberOfProducts = 5099, + MinimumNumberOfAmount = 348, + MinimumNumberForCombinationPurchase = 180, ExistInEachProductGroups = true, - MaxPointAmount = 6656, - MaxTotalPointAmount = 5183, - DestPrivateMoneyId = "0e60ee16-fcd1-4076-9b90-36da693cf0f6", + MaxPointAmount = 4204, + MaxTotalPointAmount = 8618, + DestPrivateMoneyId = "48d99ac9-9e9c-429d-9fb1-aeb18bd20add", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1610856251, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1139125484, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{2, 3, 2, 2, 4, 4, 6}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"64f2cc08-8333-4a89-836d-b8d63bb12dfe", "a6aa3ced-09d0-491a-9d8c-62faa5b58b2c", "abae25b2-99e2-4aa4-a3c8-5027a86f5dad", "96487232-9e13-4f9d-9778-88d647f387c2", "95e54048-f27c-46d4-a280-eee9f7ec771e", "a6b60bcf-7ac8-4ba7-a212-0c598724bc8d", "db72bc14-c35c-4262-ba5f-92a9307f775e", "ce7a0bd7-d720-4e06-b745-c59db2791b2b"}, - MinimumNumberOfProducts = 6831, - MinimumNumberOfAmount = 2984, - MinimumNumberForCombinationPurchase = 3000, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{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[]{"4133b82a-ecc9-4a1e-978a-d49e29247dcf", "65af3ec3-8f43-42a0-a609-963907d4b5d8", "9548b2be-0b52-4c3c-a09b-3e587bd9dfd3", "4200ba06-178f-4a60-abbd-dcfd443aad8b", "b695699b-93db-49d7-8414-709f517b86ab", "ab0d2810-ee8d-40ff-a20b-85768933d367", "5bc645f7-f24d-4764-bd43-a3366b5fd159", "c50bdaf3-a41a-49a5-851b-ba5190841a56"}, + MinimumNumberOfProducts = 5710, + MinimumNumberOfAmount = 9223, + MinimumNumberForCombinationPurchase = 8887, ExistInEachProductGroups = true, - MaxPointAmount = 5550, - MaxTotalPointAmount = 8541, - DestPrivateMoneyId = "544ea624-91c8-4c2e-a3e3-5f7cda8dcba1", + MaxPointAmount = 818, + MaxTotalPointAmount = 2310, + DestPrivateMoneyId = "786d25b5-b842-4d53-82cc-ae5222df5154", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1577347978, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1734000707, }; 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( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{4, 2, 2, 2, 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"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"3639882d-efc4-45b6-b271-462ee37dbe40", "5b3f107f-85f7-4147-a644-f2fdf7623a88"}, - MinimumNumberOfProducts = 5843, - MinimumNumberOfAmount = 6629, - MinimumNumberForCombinationPurchase = 7280, - ExistInEachProductGroups = true, - MaxPointAmount = 7403, - MaxTotalPointAmount = 6984, - DestPrivateMoneyId = "556f5a6a-947b-46e9-a748-cc70dd98a114", + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 2, 2, 6, 4, 2, 1, 6, 5}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"9fa8b21c-88ff-4ba0-8817-870ecc0b6365", "cf4ab4af-da44-402e-a84b-9cace4b0b583", "20d33981-8c78-4bde-9896-47e4b3ee081f", "1feb6bc5-7fe7-4426-8a60-3db3ce16574f", "a019c6ff-2d97-4378-bb28-48dfa31d4647"}, + MinimumNumberOfProducts = 1133, + MinimumNumberOfAmount = 3828, + MinimumNumberForCombinationPurchase = 3675, + ExistInEachProductGroups = false, + MaxPointAmount = 7511, + MaxTotalPointAmount = 2853, + DestPrivateMoneyId = "954d9d53-0e3f-4670-af05-9f881614ee9d", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1890993440, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 2030052446, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -480,29 +480,67 @@ public async Task CreateCampaign16() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" + ) { + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{6, 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"}}, 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[]{"51aac3c1-4b65-4b5f-ab80-db3630f25d15", "bdd50904-966b-4dbb-b02e-d71a93ad6dd8", "c180197c-193e-40e9-87c3-dc54710cab69", "b7d97953-8a42-4c55-8965-0635d7705f2d", "05d9b269-b4db-4a71-8906-a49a2389514d", "53f24d4f-4f63-45ea-b9f1-0c05c3192ac2", "6d51375f-a63b-4d4b-ac53-a446a89b11c7", "7415de7c-e360-488a-8c20-b3f59cf4ef24", "463b8fbd-8e2c-4498-97f1-30bcd93a0744", "c0424796-94ee-4f91-b26f-d19544c6cd4d"}, + MinimumNumberOfProducts = 5697, + MinimumNumberOfAmount = 723, + MinimumNumberForCombinationPurchase = 2469, + ExistInEachProductGroups = false, + MaxPointAmount = 6343, + MaxTotalPointAmount = 9862, + DestPrivateMoneyId = "ae0a0a68-9baa-4eb8-bea1-d0ab270ba663", + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1284983922, + }; + 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 CreateCampaign17() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { 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}}}, + 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{6, 5, 5, 6, 5, 0, 2, 3, 1, 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[]{"a9b7dc7b-428e-4172-a4da-774a9f60a60c", "04c27f54-0198-4027-b905-8caec4e395fc", "4f8ed9ab-3898-4cff-8d6e-8cd15fa90a67", "3f213047-cdfe-4487-8ae6-e923d2bcab80", "ec16ad84-46c5-40ec-aaeb-c2d330e97c63", "c52755f4-63b5-45ab-80b6-06f42170d342", "83f789b3-5d40-40d1-b69b-1e408c4860d9", "0f7262ea-1f11-4ef9-b86d-86fbacd71f55", "6ce4fe92-b0aa-4900-a7c4-5679cd343c95", "0b0218d8-5e2e-488e-913a-62a382675314"}, - MinimumNumberOfProducts = 776, - MinimumNumberOfAmount = 3471, - MinimumNumberForCombinationPurchase = 5547, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{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[]{"ae2a952a-22b7-4260-a16a-8159e7936b67", "d481c378-e191-42b3-ad23-d913af0fe1e7", "bdd6ab54-8620-42ca-8b2c-e108ce96b3f9"}, + MinimumNumberOfProducts = 6670, + MinimumNumberOfAmount = 6938, + MinimumNumberForCombinationPurchase = 5733, ExistInEachProductGroups = true, - MaxPointAmount = 4052, - MaxTotalPointAmount = 7599, - DestPrivateMoneyId = "58e2a968-d818-4119-b0bd-f847b75cabcd", + MaxPointAmount = 3724, + MaxTotalPointAmount = 7679, + DestPrivateMoneyId = "f0b7e49c-07c2-4abf-8e07-c7fc0fc5e721", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 207436356, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 543467906, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -513,34 +551,35 @@ public async Task CreateCampaign16() } [Test] - public async Task CreateCampaign17() + public async Task CreateCampaign18() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - IsExclusive = false, + 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{0, 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[]{"0d0bdf99-d1a0-444b-8ba9-cf6a74f519ad", "182fbc22-3f14-4ac2-a5c8-f1fc1ab9e96e", "18f5582c-fdc1-4fed-a46c-35cbc071107f", "d0954991-2a69-435c-8bd5-551db204f66a"}, - MinimumNumberOfProducts = 1978, - MinimumNumberOfAmount = 9074, - MinimumNumberForCombinationPurchase = 1386, + 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}}, 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{1, 6, 2, 2, 4, 4, 2, 4, 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"}}, 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[]{"747fae14-af66-4921-a5c4-8a13c881f9fd", "9659d447-1459-45d1-a1a1-1a3d2cab8ddb", "1029f3a2-29b0-4851-9740-e009da5deadf", "0fbd8e50-f3c3-4943-a21c-73b6765dbe99", "203f0e30-43a4-4e94-84c8-4a549efacafc", "ac381fb3-40b9-48db-bd80-4b7b338e4908", "bbb7f820-b301-43af-92a2-6a3915e9a2a2"}, + MinimumNumberOfProducts = 1743, + MinimumNumberOfAmount = 9657, + MinimumNumberForCombinationPurchase = 5022, ExistInEachProductGroups = false, - MaxPointAmount = 7959, - MaxTotalPointAmount = 1027, - DestPrivateMoneyId = "8c795622-1f61-4fa0-ae0c-3cc9a72d4014", + MaxPointAmount = 8352, + MaxTotalPointAmount = 1707, + DestPrivateMoneyId = "8617f378-13a0-4f80-af7e-25d3afd7a49e", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1360991403, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1031147602, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -551,35 +590,36 @@ public async Task CreateCampaign17() } [Test] - public async Task CreateCampaign18() + public async Task CreateCampaign19() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - PointExpiresInDays = 6783, + PointExpiresInDays = 2340, 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}}, 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{1, 1, 1, 0, 1, 2, 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"}}, 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[]{"e070e7a1-d6ec-4c82-877e-c9be1f87a129", "5ed1a0da-413b-45c4-8f04-fb87ed830ace", "62d84855-88df-4025-ac41-f8bdfdbd092d", "7d72c5a6-7f4a-4620-a65e-74ec7f37f832", "74a3d7c8-5ecd-40f4-9ba0-7a1fbbd1756f", "0bc4ceb7-b079-4261-8c93-96013d6d5a57", "e5916930-6047-4aeb-b486-ccb1a0da3970", "ddcfbe8f-e68f-41cf-930c-2bc2ad809da4", "168c7a5a-3c81-48fb-971e-43fb064270ba", "e03a6f81-ce08-41ef-bef3-d0f8a547b963"}, - MinimumNumberOfProducts = 3926, - MinimumNumberOfAmount = 7036, - MinimumNumberForCombinationPurchase = 4414, - ExistInEachProductGroups = true, - MaxPointAmount = 4393, - MaxTotalPointAmount = 6844, - DestPrivateMoneyId = "4f324bc6-b89b-4722-8d4b-bd2799ef0b4e", + 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}}}, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 4, 3, 0, 0, 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"}}, 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[]{"f19f6b33-0432-47eb-99e4-8281bbe92ed2", "8bcb81c5-75ff-49d1-9f25-a59afe85b4c3", "fb061e0f-ffb3-48dd-b901-616061cffda2", "aedeae97-438c-4abb-aeda-e684fd90c942"}, + MinimumNumberOfProducts = 4694, + MinimumNumberOfAmount = 3703, + MinimumNumberForCombinationPurchase = 1589, + ExistInEachProductGroups = false, + MaxPointAmount = 9031, + MaxTotalPointAmount = 3808, + DestPrivateMoneyId = "665deede-d003-4a0b-8add-b92285395937", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1550113594, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 690026070, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -590,36 +630,37 @@ public async Task CreateCampaign18() } [Test] - public async Task CreateCampaign19() + public async Task CreateCampaign20() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - PointExpiresAt = "2022-08-20T18:53:28.000000+09:00", - PointExpiresInDays = 1345, - IsExclusive = false, + PointExpiresAt = "2020-12-11T15:07:03.000000Z", + PointExpiresInDays = 3322, + 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}}, 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{4, 1, 3, 4, 6, 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}}}, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{6, 4, 1, 2, 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"}}}, - ApplicableShopIds = new string[]{"4ee7bb08-6e33-463f-899c-8dd754220f70", "9017fb7f-eb79-4ef3-a75e-1b079be76b1c", "e039eaa0-8232-4598-a230-9e24edb863a1", "51aaea3e-037d-4b3e-a81a-24e618357c09", "6515dc87-604e-4c28-8d68-a0d061fbb49c", "272ccf68-613d-4225-864b-62b859754bed", "5ca956d5-5cf7-4b71-9ebb-88aab9884ddc"}, - MinimumNumberOfProducts = 1333, - MinimumNumberOfAmount = 3624, - MinimumNumberForCombinationPurchase = 8679, - ExistInEachProductGroups = false, - MaxPointAmount = 1470, - MaxTotalPointAmount = 249, - DestPrivateMoneyId = "7cc47c9f-e956-4a9c-8f56-8071561174c9", + ApplicableShopIds = new string[]{"a360186d-7e10-49c9-b1e4-2ba77c3b3998", "5ac313ed-69c0-4976-9fa0-75baa08f82d4", "94ea973c-8356-4a38-9ed2-c042ff96f8fa", "d8341aa3-8899-4d1a-9f70-6a15390ea6de"}, + MinimumNumberOfProducts = 1768, + MinimumNumberOfAmount = 1963, + MinimumNumberForCombinationPurchase = 618, + ExistInEachProductGroups = true, + MaxPointAmount = 8579, + MaxTotalPointAmount = 2970, + DestPrivateMoneyId = "385cb24b-845a-4510-976f-21551532afab", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 68624488, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1356945300, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -630,37 +671,38 @@ public async Task CreateCampaign19() } [Test] - public async Task CreateCampaign20() + public async Task CreateCampaign21() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { Status = "disabled", - PointExpiresAt = "2022-08-26T01:05:43.000000+09:00", - PointExpiresInDays = 9697, - IsExclusive = false, + PointExpiresAt = "2020-08-13T21:49:03.000000Z", + PointExpiresInDays = 339, + 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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{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"}}}, - ApplicableShopIds = new string[]{"971b64ae-21f6-480b-b2cb-f4f2b465b119", "f097fbf5-84a9-47fb-a9fc-e828636c1820"}, - MinimumNumberOfProducts = 6695, - MinimumNumberOfAmount = 3281, - MinimumNumberForCombinationPurchase = 4168, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{5, 1, 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"}}}, + ApplicableShopIds = new string[]{"14dd405b-8e54-400e-97b3-d8df002e5c04", "3da5762f-a6f4-4aff-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", "2d5a4280-15fa-41d9-babc-fcd5f9f45339", "66fdcfad-fd05-44df-8fb5-3f3b31843821"}, + MinimumNumberOfProducts = 227, + MinimumNumberOfAmount = 1470, + MinimumNumberForCombinationPurchase = 9356, ExistInEachProductGroups = false, - MaxPointAmount = 9323, - MaxTotalPointAmount = 5459, - DestPrivateMoneyId = "7e324278-cc24-46bb-91cb-bc2bdc1e50fc", + MaxPointAmount = 4775, + MaxTotalPointAmount = 4101, + DestPrivateMoneyId = "83637635-d603-469c-a0fc-fa5298c96cb8", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 235309152, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 239176742, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -671,38 +713,39 @@ public async Task CreateCampaign20() } [Test] - public async Task CreateCampaign21() + public async Task CreateCampaign22() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - Description = "z0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVOxZ4", - Status = "enabled", - PointExpiresAt = "2021-02-21T05:15:22.000000+09:00", - PointExpiresInDays = 4819, + Description = "HDeIrg38UDixRQOsOxJyiut30oRsSLi4FAWjvNFlMGhO7MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd", + Status = "disabled", + PointExpiresAt = "2022-04-15T15:28:58.000000Z", + PointExpiresInDays = 9708, 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{0, 1, 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[]{"dd964268-069b-4493-a05b-a2ff994b4bbc", "6558fce4-2b7f-412d-8448-c0a748431876", "ad9bf2e5-e0ea-4d96-903b-c72268fab310", "3518521b-4923-41cc-bee6-b6a828e39c37", "ffcd84c8-658a-4cd5-8e55-89ae941cc00f", "d77436a8-0268-4105-8d28-d892355f4421", "ed25f9cd-42f0-4e2b-8a8a-6d45b67311ba", "4066916e-fc96-4b2e-88e3-4bfabd04ebf9", "6cedb52d-d14f-4e3e-9b68-d1e048abd04d", "f8abed0a-3f57-46c1-be01-fe509138f1af"}, - MinimumNumberOfProducts = 4553, - MinimumNumberOfAmount = 8196, - MinimumNumberForCombinationPurchase = 1530, + 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}}, 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 2, 4, 2, 2, 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[]{"3742069a-c681-4724-876a-4b15c1416b32", "8a03eb07-581e-408d-bedb-372624655338", "4a42f20d-59e2-4611-bf03-dafcb8d0486a", "63ff650f-b3fa-4b6f-8d60-6f0d69b492eb", "fb5f34d5-60e6-4151-82a5-49da0209ae79", "aa2fd1c7-6bae-4bb6-ba11-47f17ebbc2ec"}, + MinimumNumberOfProducts = 826, + MinimumNumberOfAmount = 7788, + MinimumNumberForCombinationPurchase = 3914, ExistInEachProductGroups = true, - MaxPointAmount = 3829, - MaxTotalPointAmount = 1556, - DestPrivateMoneyId = "282cd564-5283-4eea-9bd5-8154c4e702b8", + MaxPointAmount = 2491, + MaxTotalPointAmount = 3873, + DestPrivateMoneyId = "8c6a32e3-c4b3-4d75-bb8a-4ee765eda1d1", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 106402887, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 402302595, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -713,39 +756,40 @@ public async Task CreateCampaign21() } [Test] - public async Task CreateCampaign22() + public async Task CreateCampaign23() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "gMn5wd60p6qorRSF", - "3f4a09b9-b84e-4ada-81d4-088033e04bed", - "2022-09-04T05:43:04.000000+09:00", - "2022-11-11T10:54:41.000000+09:00", - 4248, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" ) { - BearPointShopId = "cb9e9419-e66b-4345-bd36-a857c22f39d8", - Description = "Dem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgs", - Status = "enabled", - PointExpiresAt = "2020-10-17T14:30:23.000000+09:00", - PointExpiresInDays = 8871, - IsExclusive = false, + BearPointShopId = "8dc73088-9515-472f-a6d6-a50389018e63", + Description = "KEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx7", + Status = "disabled", + PointExpiresAt = "2023-01-14T00:00:07.000000Z", + PointExpiresInDays = 3488, + 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}}}, - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{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"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"7095fe58-4c69-4e50-90fe-f3e9819bbbd7"}, - MinimumNumberOfProducts = 5402, - MinimumNumberOfAmount = 5280, - MinimumNumberForCombinationPurchase = 8344, - ExistInEachProductGroups = false, - MaxPointAmount = 4641, - MaxTotalPointAmount = 1418, - DestPrivateMoneyId = "7e6f42df-2dd5-4ce0-addd-d4b4a4cf7386", + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{6, 1, 6, 3, 5, 3, 2, 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"}}}, + ApplicableShopIds = new string[]{"a88ac14b-f511-431b-a775-fe40b7519fb2", "97fdd469-1de8-4280-af4d-0129658543a0", "5e9b00f8-1428-48c4-aa5b-df73cb1affe6", "47f00055-87b3-429b-80d4-55aaefffde14"}, + MinimumNumberOfProducts = 6066, + MinimumNumberOfAmount = 9725, + MinimumNumberForCombinationPurchase = 3897, + ExistInEachProductGroups = true, + MaxPointAmount = 9175, + MaxTotalPointAmount = 1462, + DestPrivateMoneyId = "05f4badc-cc03-4fee-ab83-907a2419f8f9", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1373060935, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1185404386, }; 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 9fcf2bc..2ac0d40 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( - "93fcad76-f21b-4ff4-9ebd-f5639486d40f", - "222cfdaf-a252-4b13-a86f-027db606f5c1", - 1254.0 + "044202f7-3525-4117-8dd7-0ded95240fda", + "48aeadc5-538d-4ee4-af33-69d46096e93b", + 5771.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( - "93fcad76-f21b-4ff4-9ebd-f5639486d40f", - "222cfdaf-a252-4b13-a86f-027db606f5c1", - 1254.0 + "044202f7-3525-4117-8dd7-0ded95240fda", + "48aeadc5-538d-4ee4-af33-69d46096e93b", + 5771.0 ) { - ExpiresIn = 5532, + ExpiresIn = 5237, }; 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( - "93fcad76-f21b-4ff4-9ebd-f5639486d40f", - "222cfdaf-a252-4b13-a86f-027db606f5c1", - 1254.0 + "044202f7-3525-4117-8dd7-0ded95240fda", + "48aeadc5-538d-4ee4-af33-69d46096e93b", + 5771.0 ) { - Description = "vqbgkbgVyEBxJxS2dp5fON6g3h5", - ExpiresIn = 5808, + Description = "PfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMg", + ExpiresIn = 1558, }; 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 13d202b..927b1bf 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 4581.0, + MoneyAmount = 2799.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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 9493.0, - Description = "sSHy55WYfHfvN0Q", + MoneyAmount = 9718.0, + Description = "L7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dB", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 2117.0, + MoneyAmount = 7635.0, IsOnetime = true, - Description = "OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4m", + Description = "WzD3agMTAvZtCm", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 2508.0, - UsageLimit = 357, - IsOnetime = false, - Description = "HweV", + MoneyAmount = 4741.0, + UsageLimit = 2153, + IsOnetime = true, + Description = "HOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 2950.0, - ExpiresAt = "2022-05-29T04:13:45.000000+09:00", - UsageLimit = 149, - IsOnetime = true, - Description = "DqMFurm2HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrv", + MoneyAmount = 8254.0, + ExpiresAt = "2021-06-05T15:58:48.000000Z", + UsageLimit = 1119, + IsOnetime = false, + Description = "7JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 9976.0, - PointExpiresAt = "2021-08-25T00:55:07.000000+09:00", - ExpiresAt = "2020-09-05T09:35:52.000000+09:00", - UsageLimit = 1437, + MoneyAmount = 7170.0, + PointExpiresAt = "2022-05-11T04:27:16.000000Z", + ExpiresAt = "2020-10-24T22:32:34.000000Z", + UsageLimit = 2455, IsOnetime = false, - Description = "VYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE", + Description = "qfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 5519.0, - PointExpiresInDays = 8734, - PointExpiresAt = "2024-02-28T16:30:39.000000+09:00", - ExpiresAt = "2022-03-29T23:28:49.000000+09:00", - UsageLimit = 6388, - IsOnetime = false, - Description = "OMttUhD", + MoneyAmount = 8499.0, + PointExpiresInDays = 2336, + PointExpiresAt = "2020-01-23T21:13:39.000000Z", + ExpiresAt = "2023-01-13T06:28:01.000000Z", + UsageLimit = 45, + IsOnetime = true, + Description = "Dkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3lVRQ7O823WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fm", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 4912.0, - BearPointAccount = "48aa4112-5e4f-4969-b712-f5813d3aa3a2", - PointExpiresInDays = 454, - PointExpiresAt = "2023-12-25T10:44:06.000000+09:00", - ExpiresAt = "2024-01-24T01:46:23.000000+09:00", - UsageLimit = 9718, + MoneyAmount = 7691.0, + BearPointAccount = "287e75c0-8ee3-4e8d-a3ae-f57c1623aa16", + PointExpiresInDays = 1207, + PointExpiresAt = "2022-03-03T03:45:28.000000Z", + ExpiresAt = "2023-12-06T02:16:58.000000Z", + UsageLimit = 6616, IsOnetime = true, - Description = "7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzyk", + Description = "M3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrA", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 9876.0, - PointAmount = 3252.0, + MoneyAmount = 873.0, + PointAmount = 8141.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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 6257.0, - PointAmount = 2818.0, - Description = "QWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT689", + MoneyAmount = 2928.0, + PointAmount = 5102.0, + Description = "QgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrO", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 1833.0, - PointAmount = 6408.0, + MoneyAmount = 9285.0, + PointAmount = 1020.0, IsOnetime = true, - Description = "BIT98Ea3vOiHnJbC3RzxMsGYTRQVbbD", + Description = "6HNdDlfIrfFFwUdXhpSi4j72IcAx", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 7755.0, - PointAmount = 9414.0, - UsageLimit = 3574, + MoneyAmount = 5914.0, + PointAmount = 8116.0, + UsageLimit = 8887, IsOnetime = true, - Description = "fr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0", + Description = "eIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuef", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 7556.0, - PointAmount = 7166.0, - ExpiresAt = "2023-09-11T23:49:55.000000+09:00", - UsageLimit = 4178, + MoneyAmount = 2203.0, + PointAmount = 1446.0, + ExpiresAt = "2021-08-27T12:40:33.000000Z", + UsageLimit = 5357, IsOnetime = true, - Description = "Y0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj", + Description = "yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 5381.0, - PointAmount = 3001.0, - PointExpiresAt = "2024-02-14T04:50:02.000000+09:00", - ExpiresAt = "2020-03-21T14:19:26.000000+09:00", - UsageLimit = 5343, + MoneyAmount = 3947.0, + PointAmount = 9708.0, + PointExpiresAt = "2022-11-26T07:13:31.000000Z", + ExpiresAt = "2022-08-28T18:06:55.000000Z", + UsageLimit = 3877, IsOnetime = true, - Description = "2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3lVRQ7O823WFeXCsADfveWv5SetJL", + Description = "yikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrz", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 6569.0, - PointAmount = 6976.0, - PointExpiresInDays = 758, - PointExpiresAt = "2020-07-08T22:02:05.000000+09:00", - ExpiresAt = "2023-06-04T01:10:59.000000+09:00", - UsageLimit = 6943, + MoneyAmount = 5978.0, + PointAmount = 8381.0, + PointExpiresInDays = 3234, + PointExpiresAt = "2021-08-28T11:13:11.000000Z", + ExpiresAt = "2022-05-11T05:10:00.000000Z", + UsageLimit = 2755, IsOnetime = true, - Description = "B6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds", + Description = "aDUv1CsWTy6z2FdXbfXavW2Hw", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - MoneyAmount = 8761.0, - PointAmount = 5250.0, - BearPointAccount = "36788d7e-438b-49d4-9cd9-322c5b3c0ab9", - PointExpiresInDays = 1987, - PointExpiresAt = "2023-11-06T02:29:36.000000+09:00", - ExpiresAt = "2021-04-29T11:26:40.000000+09:00", - UsageLimit = 3210, - IsOnetime = true, - Description = "5", + MoneyAmount = 7568.0, + PointAmount = 5089.0, + BearPointAccount = "8e458efe-91de-4e56-8fd6-ded7b78bb2c7", + PointExpiresInDays = 4176, + PointExpiresAt = "2022-08-11T22:13:10.000000Z", + ExpiresAt = "2023-08-14T23:25:27.000000Z", + UsageLimit = 8958, + IsOnetime = false, + Description = "jTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCi", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - PointAmount = 4732.0, + PointAmount = 5080.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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - PointAmount = 5287.0, - Description = "JiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZ", + PointAmount = 8483.0, + Description = "VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - PointAmount = 5989.0, - IsOnetime = false, - Description = "dVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHb", + PointAmount = 4256.0, + IsOnetime = true, + Description = "7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJy", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - PointAmount = 8199.0, - UsageLimit = 7334, + PointAmount = 1018.0, + UsageLimit = 9142, IsOnetime = false, - Description = "k2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JP", + Description = "sPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeO", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - PointAmount = 6001.0, - ExpiresAt = "2021-08-25T22:19:54.000000+09:00", - UsageLimit = 4397, + PointAmount = 7133.0, + ExpiresAt = "2022-06-04T15:16:23.000000Z", + UsageLimit = 3859, IsOnetime = false, - Description = "pbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk7", + Description = "5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - PointAmount = 2993.0, - PointExpiresAt = "2020-09-17T01:44:30.000000+09:00", - ExpiresAt = "2021-04-27T01:14:19.000000+09:00", - UsageLimit = 9193, + PointAmount = 3592.0, + PointExpiresAt = "2021-12-12T20:43:54.000000Z", + ExpiresAt = "2023-07-01T08:56:21.000000Z", + UsageLimit = 7002, IsOnetime = true, - Description = "HcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJM", + Description = "rmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Cha", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - PointAmount = 6236.0, - PointExpiresInDays = 1021, - PointExpiresAt = "2021-12-04T04:39:01.000000+09:00", - ExpiresAt = "2022-05-28T06:47:48.000000+09:00", - UsageLimit = 1137, - IsOnetime = true, - Description = "2rRxx8SeYgA5RTAZIE0d3whSKLF", + PointAmount = 3235.0, + PointExpiresInDays = 7859, + PointExpiresAt = "2021-10-09T15:20:28.000000Z", + ExpiresAt = "2021-05-30T10:43:02.000000Z", + UsageLimit = 2714, + IsOnetime = false, + Description = "IOlQ3", }; 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( - "3062fee1-c575-4aaa-b8c4-41b4f9c7f129" + "0c559969-8af7-4312-81a2-01c5077d7bf6" ) { - PointAmount = 3590.0, - BearPointAccount = "9a21587b-1da3-4a00-9758-62c3604d51e7", - PointExpiresInDays = 9554, - PointExpiresAt = "2022-09-09T13:21:19.000000+09:00", - ExpiresAt = "2020-12-13T05:39:41.000000+09:00", - UsageLimit = 4068, + PointAmount = 9496.0, + BearPointAccount = "34eae6da-7543-4461-b8ec-e55f6565865a", + PointExpiresInDays = 4222, + PointExpiresAt = "2021-12-13T04:22:05.000000Z", + ExpiresAt = "2022-03-28T07:48:36.000000Z", + UsageLimit = 9914, IsOnetime = false, - Description = "sQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plg", + Description = "mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihF", }; 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 5ad0876..5a676e7 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 4436, + DiscountAmount = 2681, }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 66, - StorageId = "6d5b2fb4-449c-4ef0-9c68-9bf04ce7836a", + DiscountAmount = 6011, + StorageId = "3b63aaf6-f8ae-4566-813e-9def6896acb1", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 5748, - MinAmount = 3074, - StorageId = "af17e701-51b6-4517-9dab-d91da208b5d1", + DiscountAmount = 7612, + MinAmount = 4954, + StorageId = "24c65b99-f16b-4277-ab18-606462089fa4", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 5508, - UsageLimit = 2303, - MinAmount = 6679, - StorageId = "ba55870e-6365-44af-842e-9da851d52b4b", + DiscountAmount = 4786, + UsageLimit = 6167, + MinAmount = 324, + StorageId = "7935ed8d-cdef-4c12-8b79-744e98ba5b71", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 7340, - Code = "xXdE", - UsageLimit = 9254, - MinAmount = 3978, - StorageId = "56518360-3db3-474f-9778-4efb9cc9c928", + DiscountAmount = 5170, + Code = "P", + UsageLimit = 2775, + MinAmount = 3257, + StorageId = "5de441e5-aed0-495a-8f48-6687d0fc785f", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 2271, + DiscountAmount = 2140, IsPublic = false, - Code = "ZaVS", - UsageLimit = 3647, - MinAmount = 5744, - StorageId = "a71eadaf-4805-4f88-9d5d-3b8f66ce191b", + Code = "16DlcE5", + UsageLimit = 6363, + MinAmount = 4717, + StorageId = "271d709b-8d7b-4772-89b4-a098edd9e114", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 4122, - IsHidden = true, + DiscountAmount = 3401, + IsHidden = false, IsPublic = false, - Code = "Q6ffYAe6", - UsageLimit = 7445, - MinAmount = 2308, - StorageId = "d647966b-8dbb-4e70-ae1a-6dd8c180197c", + Code = "qCPq1klPYI", + UsageLimit = 3049, + MinAmount = 7550, + StorageId = "fc1b0366-1c1c-4367-9a7a-8cde77df3c2e", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 6462, + DiscountAmount = 7355, IsDisabled = false, - IsHidden = false, - IsPublic = false, - Code = "iSBUI", - UsageLimit = 2149, - MinAmount = 1589, - StorageId = "d7705f2d-b269-44db-b1c9-bb061b5ba49a", + IsHidden = true, + IsPublic = true, + Code = "9vCRDU8", + UsageLimit = 4510, + MinAmount = 28, + StorageId = "f84498f4-d4e3-41ef-9feb-243c4bc11f86", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 4429, - DisplayEndsAt = "2022-02-05T07:59:11.000000+09:00", + DiscountAmount = 9087, + DisplayEndsAt = "2020-08-24T10:30:29.000000Z", IsDisabled = false, IsHidden = true, - IsPublic = false, - Code = "BK", - UsageLimit = 9811, - MinAmount = 9286, - StorageId = "a89b11c7-de7c-4360-8a4c-6e208d76b3f5", + IsPublic = true, + Code = "MMVhmKz2i", + UsageLimit = 9083, + MinAmount = 2092, + StorageId = "a2ae1eaf-bedf-4128-aac2-f0ef12eb22c7", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 4029, - DisplayStartsAt = "2021-02-15T12:55:08.000000+09:00", - DisplayEndsAt = "2021-07-07T14:09:28.000000+09:00", + DiscountAmount = 9557, + DisplayStartsAt = "2021-08-28T13:14:25.000000Z", + DisplayEndsAt = "2022-05-03T16:47:09.000000Z", IsDisabled = false, - IsHidden = false, - IsPublic = true, - Code = "n2oMY", - UsageLimit = 722, - MinAmount = 2468, - StorageId = "283c529d-98c6-4685-a8aa-feb83841fdfe", + IsHidden = true, + IsPublic = false, + Code = "Um", + UsageLimit = 7179, + MinAmount = 2558, + StorageId = "610fe149-376c-463a-8681-28b7766a6a09", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 7073, - DiscountUpperLimit = 4267, - DisplayStartsAt = "2023-09-30T02:26:43.000000+09:00", - DisplayEndsAt = "2022-06-10T11:39:29.000000+09:00", + DiscountAmount = 5994, + DiscountUpperLimit = 5437, + DisplayStartsAt = "2023-02-05T18:31:30.000000Z", + DisplayEndsAt = "2020-04-03T02:09:27.000000Z", IsDisabled = true, IsHidden = true, - IsPublic = true, - Code = "pFoK", - UsageLimit = 5418, - MinAmount = 8887, - StorageId = "a51d3260-0821-456a-9967-c3788176e191", + IsPublic = false, + Code = "fEK", + UsageLimit = 6221, + MinAmount = 1887, + StorageId = "7595e5d1-4982-4738-86a7-d99e94f85643", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 4787, - Description = "gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoS", - DiscountUpperLimit = 9374, - DisplayStartsAt = "2022-11-26T10:58:25.000000+09:00", - DisplayEndsAt = "2023-03-28T04:16:35.000000+09:00", + DiscountAmount = 9587, + Description = "62PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTw", + DiscountUpperLimit = 6324, + DisplayStartsAt = "2022-02-13T00:10:59.000000Z", + DisplayEndsAt = "2020-11-12T23:24:26.000000Z", IsDisabled = true, IsHidden = false, IsPublic = true, - Code = "U0HuG3", - UsageLimit = 1074, - MinAmount = 1753, - StorageId = "387983e4-8281-4ed2-85d1-6d9fa860b625", + Code = "WPzD9CM0oL", + UsageLimit = 5388, + MinAmount = 6703, + StorageId = "5e37f491-a613-43df-b661-77bfa3fdb404", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 9626, - IsShopSpecified = false, - AvailableShopIds = new string[]{"b919d8dd-80b9-4f01-a0a2-ae97dfd8438c", "74834abb-cf6e-40da-8442-d2550a12ce76", "15adc634-3e15-4f07-862c-71388aa40edf", "665deede-d003-4a0b-8add-b92285395937"}, + DiscountAmount = 5307, + IsShopSpecified = true, + AvailableShopIds = new string[]{"480d0db4-9ba6-43d6-bd5d-7061b57d6d06", "d5ed2fe6-aaff-4794-bd42-9300a1ba0dec", "fc1cc96b-f051-4c45-95bd-e1f4fdd4c6e1", "46fdb0c5-6087-4d0e-b8f8-712e24f1148f", "a2d38a62-4f19-4b54-b0e4-073ff1940585"}, }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 9903, - IsShopSpecified = false, - AvailableShopIds = new string[]{"6ccd7806-9192-46bc-8fdb-6fc43cec1b9e", "0028b33b-8907-497b-9945-4a76fcbb40dc", "222afb27-9329-4ab7-a263-1690f2a6ebf4", "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", "0f144269-b178-4bf3-8482-8b99385cb24b", "d12b845a-9510-43d7-af55-afabd0e15793"}, - StorageId = "15cd34e5-d44f-4152-bacc-b1b95358abff", + DiscountAmount = 2341, + IsShopSpecified = true, + AvailableShopIds = new string[]{"10ef8fe9-7849-47a4-afde-18de028f3a0f", "1b86900c-6877-445d-9e9b-2453304ae6b5", "450fcb3f-f834-47a1-97f1-a23611042d13", "4c53e1bc-2e36-4da9-a93f-871423cc2a0f", "69593e29-cb05-4c32-805c-ffeeade8d65d", "8944cf58-62d7-4dbf-bfeb-ef7cb219baf6", "66d24ce6-33a1-4a16-b580-cd73cec38da9", "b36f5521-4545-4bb3-8613-d985f663f4ed", "06c9b882-4de1-48e7-925a-7fc0a0cd5158", "13985b42-d476-46a0-9980-bc51d5ad334e"}, + StorageId = "fcbb9489-1b31-49b1-a5e4-f77f02e1a069", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 1812, + DiscountAmount = 6564, IsShopSpecified = true, - AvailableShopIds = new string[]{"1ed476ad-c4d1-419f-be44-947667d3e939", "14dd405b-8e54-400e-97b3-d8df002e5c04", "3da5762f-a6f4-4aff-af97-f56eecab59f2", "0c10f216-bbf5-44b5-843d-ac0159bd5f2e"}, - MinAmount = 7800, - StorageId = "35ffbf9b-bf52-47a7-8d97-c19d5d9e9522", + AvailableShopIds = new string[]{"21597d50-1f19-454d-a779-2bfca98e67a3", "17bd0226-231c-458a-acaf-ed2414a1b7d0", "79983937-5838-4bd8-8a49-2b064193cf32", "f12066e0-1366-4deb-af8b-dd59de5a258d", "0dd47611-ff07-4b8e-9486-a92c81c1e0bd", "e556c586-a724-4a92-9b0a-199d05ffdb85", "ea7f6fbe-ec93-4f0e-ad85-b807fcfd9f75", "66e36dba-6b93-485d-ac1c-806157b9a002", "ed1cc5ae-a4a9-4465-ac57-658db9f71fd0", "06b350da-aa39-498e-9f28-d521eb89a999"}, + MinAmount = 8237, + StorageId = "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 3804, - IsShopSpecified = false, - AvailableShopIds = new string[]{"d4d3d22e-566b-4d96-a27d-e008cc0409e9", "7547aa52-99b4-4564-a1d4-00d3c1393304"}, - UsageLimit = 3508, - MinAmount = 2096, - StorageId = "9cb50631-61fb-4893-9e80-15fa1e1861d9", + DiscountAmount = 2172, + IsShopSpecified = true, + AvailableShopIds = new string[]{"24c06eeb-8eac-42bb-82ed-3e35dbe5eade", "08231ffe-af97-4cd1-9bfb-940988eaa93f", "0ebeb9f3-e055-494a-9f49-662e34d5370a", "cdbc1178-c737-413f-867f-4d9f7d3d6c60", "e5d42a39-98a8-49f0-95ea-3575f55af9dd"}, + UsageLimit = 2444, + MinAmount = 6525, + StorageId = "fbc8c3d1-262a-424c-97ad-7fb3747b760b", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 3770, + DiscountAmount = 6154, IsShopSpecified = true, - AvailableShopIds = new string[]{"f9f45339-cfad-4d05-9f4f-02b5ca3f3f3b", "31843821-c0e2-49ed-b8bd-648bcfd0c625", "fe2e52a6-aaef-4889-8435-d60360d1169c", "e226f420-cffc-4a52-b825-5a9478792c92", "aef5f4c8-2d5b-4c2b-8465-c7219e5c1549", "582c3172-8be7-4d33-88b8-2a3b82d6df14"}, - Code = "UDixRQOsOx", - UsageLimit = 7182, - MinAmount = 7464, - StorageId = "a9dba53a-8a69-4c75-8a91-e3a15ce9d506", + AvailableShopIds = new string[]{"1cc39515-8ac1-4c08-ace3-ea295f65c8b0", "e4a1fc6d-7cae-4f97-b85b-2e5b08dc75e6"}, + Code = "IB", + UsageLimit = 4507, + MinAmount = 3624, + StorageId = "c9b1bf3f-6147-4b2a-97cd-e7cf270cfa8b", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 1843, - IsShopSpecified = true, - AvailableShopIds = new string[]{"b212bab0-b36f-445f-8852-bc069cf917a8", "09bf05f3-5107-4453-8c23-8611cbeedb5f", "89d60c60-2fe9-4d26-a834-4f0a98cd0e46", "d4789816-8514-44c1-97de-24eac1f86476", "944f2b9a-63a3-4bce-af22-1b7f000d4946"}, - IsPublic = true, - Code = "MGh", - UsageLimit = 1819, - MinAmount = 3072, - StorageId = "58b02637-b0cd-476a-8a05-0fef731e5e0d", + DiscountAmount = 9061, + IsShopSpecified = false, + AvailableShopIds = new string[]{"251dfa67-2096-4687-8cfb-ae56e90423fe", "365f907a-6a8a-402a-b647-8fed451831fd"}, + IsPublic = false, + 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"); @@ -496,21 +496,21 @@ public async Task CreateCoupon18() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 2207, + DiscountAmount = 6135, IsShopSpecified = true, - AvailableShopIds = new string[]{"cc5754a9-a046-48e9-884c-6ca252efadf4", "0a61a44e-620d-4739-99bb-43f1a5f9db79", "fbc3dfb7-0fa0-418d-92de-2ab5ad53f953", "090a782d-dbe5-4c98-ae7b-b36c936e8fb4", "10f9b122-ff7c-4df2-b1ea-e4714663db44"}, + AvailableShopIds = new string[]{"fea3b0ef-d073-42f7-9acc-8350c818f340"}, IsHidden = true, - IsPublic = false, - Code = "B2gz0", - UsageLimit = 5190, - MinAmount = 1481, - StorageId = "94583ee4-0dce-4453-a980-2ce2a4b2f47c", + IsPublic = true, + Code = "08a", + UsageLimit = 7715, + MinAmount = 2658, + StorageId = "d8394992-a788-487c-be14-911ba93a3971", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 2460, + DiscountAmount = 9956, IsShopSpecified = false, - AvailableShopIds = new string[]{"bd5a0a9d-bc40-47f2-acd8-3e4fe356ef42", "0cfa3b2c-1e1e-4e04-9def-afb12ed3c65e", "914750c9-ca89-4533-a0a8-291846d3fa72", "414d35a2-bdbe-4484-a4c0-526b79f486cc", "976ff242-ba84-4093-b599-43f60a85af75", "20ee3f55-3851-416c-88c8-4ed70d9f61bd", "e20bf32c-a801-419d-a848-95e4d432ef8b", "901c577b-007e-4ce6-8a07-e07c4e8de54b", "a04921ca-0d0c-461f-87ca-09cfcb35e45b", "f951b312-9165-4034-afb3-5e417367bca1"}, + AvailableShopIds = new string[]{"10d52dfb-831a-405c-a05d-76aa00449d8d", "ecd45f9a-7a6e-4e64-ab0a-09a5e0972489", "8b525c67-78a8-4e3c-a094-eb37c5b6f14d", "4a05b26d-083a-4246-b344-d9ac47868a32", "82ac7997-679a-43ad-a2c3-dda5f476f381", "f5e6399d-caf0-4b5a-bf88-20984eba5966", "940b7839-962b-454b-8fed-85fa1b51a9f8", "8e70ae16-6d32-47e3-93f6-196390b4fc12"}, IsDisabled = false, IsHidden = false, - IsPublic = false, - Code = "t7GZ", - UsageLimit = 5216, - MinAmount = 2819, - StorageId = "e7decd7d-64cb-487d-ae86-c865a9d5b496", + IsPublic = true, + Code = "2", + UsageLimit = 9912, + MinAmount = 78, + StorageId = "5f47b150-a5fb-4dd7-b1ef-f93662280b58", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 5756, + DiscountAmount = 4922, IsShopSpecified = false, - AvailableShopIds = new string[]{"05f13f99-184d-45d1-a25e-a7f089204903", "b4deb376-a1d7-4f64-8c52-d618a003e0db"}, - DisplayEndsAt = "2020-06-01T23:07:01.000000+09:00", - IsDisabled = false, + AvailableShopIds = new string[]{"4b022302-b071-4e23-b209-6ed2f2170cb9", "c46d45ec-eae7-4298-b093-bdf46ba75bed", "86b6337a-b7b4-49ee-b9d6-ac3e859a5f2f", "b8545fd3-b6d5-4286-ac44-1da4e4b611d3", "fc7f998c-9b05-4732-ab72-0347d884e950", "8cdc15c9-592a-4f15-8091-723c5db35f0e", "45bd37df-e838-49d2-b870-23c57e541e33", "24884974-32e5-44c5-9069-1961bbfe4959"}, + DisplayEndsAt = "2022-06-16T16:03:17.000000Z", + IsDisabled = true, IsHidden = true, - IsPublic = true, - Code = "j", - UsageLimit = 8596, - MinAmount = 8626, - StorageId = "c6ff9025-3d2d-414e-a347-9789832241f0", + IsPublic = false, + Code = "ncoL5boSB", + 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"); @@ -586,24 +586,24 @@ public async Task CreateCoupon21() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 1892, - IsShopSpecified = false, - AvailableShopIds = new string[]{"7ee46b3c-1b99-4567-b766-9408f638723a", "046e6a7c-2f62-4722-ba81-b9d734c144f5", "3742069a-c681-4724-876a-4b15c1416b32", "8a03eb07-581e-408d-bedb-372624655338", "4a42f20d-59e2-4611-bf03-dafcb8d0486a"}, - DisplayStartsAt = "2022-02-15T06:19:59.000000+09:00", - DisplayEndsAt = "2021-03-01T07:17:14.000000+09:00", + DiscountAmount = 8998, + 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"}, + DisplayStartsAt = "2021-04-07T21:50:14.000000Z", + DisplayEndsAt = "2023-04-02T01:14:15.000000Z", IsDisabled = false, IsHidden = false, IsPublic = true, - Code = "fQZyG6", - UsageLimit = 3770, - MinAmount = 5905, - StorageId = "0a5247f1-c2ec-4339-ab76-0f49a7c6517e", + Code = "5tLDSL3E", + UsageLimit = 976, + MinAmount = 6015, + StorageId = "83b5dd59-32fb-4f05-9876-a79829a407dc", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 2490, + DiscountAmount = 5592, IsShopSpecified = true, - AvailableShopIds = new string[]{"dc79c4b3-6d75-423b-8ae7-a1d117faa682", "8dc73088-9515-472f-a6d6-a50389018e63", "14d82977-f4cb-4fc5-953f-324f789c5c41", "1140a26c-1986-4e4d-9515-ebacac40a895"}, - DiscountUpperLimit = 916, - DisplayStartsAt = "2020-06-13T06:17:00.000000+09:00", - DisplayEndsAt = "2020-08-18T19:22:01.000000+09:00", + AvailableShopIds = new string[]{"70ad2558-4ddc-4d06-b8df-33c7700614c1", "e72f9b7b-5838-493c-a5fb-cf4f5d63dd11", "b8312089-2993-4d74-be5d-4c6491aaf5c4", "36dbbe67-bcb4-4b08-a56d-03a069ac7627", "4c6342dd-a8de-4b5a-bd14-ec1c10f0f2f8", "b6486df8-d976-4fbe-b60e-8233ee676260", "e346fc55-ae7a-4f79-9aab-68ed275f1f08", "f2619f98-688a-447d-aaeb-325027b300d0", "9dbdfee5-7bcc-4a33-91df-e25386354a22", "44ff5ae5-4248-42a2-ac73-b43eda88e901"}, + DiscountUpperLimit = 2877, + DisplayStartsAt = "2023-02-18T05:07:23.000000Z", + DisplayEndsAt = "2023-02-26T14:51:12.000000Z", IsDisabled = true, - IsHidden = true, + IsHidden = false, IsPublic = false, - Code = "nO", - UsageLimit = 3864, - MinAmount = 4810, - StorageId = "db2af155-fd5d-47ff-a0f7-767cfaf400a3", + Code = "UJ7mvjTFU", + UsageLimit = 4400, + MinAmount = 4215, + StorageId = "307a6ad7-12fc-4cc1-8d05-ce3fa57732f5", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountAmount = 5276, - IsShopSpecified = false, - AvailableShopIds = new string[]{"aad24795-af85-43ba-8f3a-8f126b481d5e", "fca952a4-9159-46de-a7cc-0a55041478ea", "0dd7833a-e095-4aac-8d32-5824adac31cc", "91ca1b5b-ef28-4457-8fc9-c4ad69d414fc", "f8db04c8-cfe3-41da-a97f-b0b5e8afea5f", "0c1551a9-8990-4e4b-879a-6e2665ae6a86"}, - Description = "7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUAD", - DiscountUpperLimit = 2009, - DisplayStartsAt = "2022-02-16T08:30:28.000000+09:00", - DisplayEndsAt = "2023-12-22T02:41:37.000000+09:00", + DiscountAmount = 9896, + IsShopSpecified = true, + AvailableShopIds = new string[]{"ff73750a-f96d-4844-b0bf-f388bbeeaea8", "e9d1de54-baf0-410a-bdf8-0e5c71a724ae", "dac53c25-d3d7-4fa2-83e3-7efae01e42a1", "9be7f5d1-fc80-4d55-9379-6c98cb700fd7", "f9549461-e256-4ae7-820b-f0612d119b4c", "cf302757-3619-4ecd-9098-f7aa9daad557", "15b859f0-abde-4974-aae7-46bf2d14cb66", "daa4cdb0-43c6-4f69-9ada-2b0315cd9a44", "c2686193-0c60-4991-9b45-c90acfd535ae", "86f4f3ba-4596-4ac5-8fb2-58fc449050fb"}, + Description = "ZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyB", + DiscountUpperLimit = 1665, + DisplayStartsAt = "2021-11-24T07:33:54.000000Z", + DisplayEndsAt = "2022-05-26T22:20:53.000000Z", IsDisabled = false, - IsHidden = false, - IsPublic = false, - Code = "S", - UsageLimit = 3722, - MinAmount = 1787, - StorageId = "02c3efd6-f60b-4f31-afdb-e7f88998f859", + IsHidden = true, + IsPublic = true, + Code = "xFX7PDgg", + UsageLimit = 3698, + MinAmount = 1902, + StorageId = "72cc23ce-0757-4f8a-8256-02097379a4b0", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 2563.0, + DiscountPercentage = 517.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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 6659.0, - StorageId = "7434137a-3eb6-4df1-8ab9-4e524483acbc", + DiscountPercentage = 9913.0, + StorageId = "cc760a8d-8b08-41c2-820f-c754d694752c", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 2047.0, - MinAmount = 4725, - StorageId = "a172db71-20cf-4642-a97f-1449c6326dce", + DiscountPercentage = 2644.0, + MinAmount = 2544, + StorageId = "913d92ab-5d29-40b6-9cc1-dfc737e084f0", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 365.0, - UsageLimit = 1617, - MinAmount = 34, - StorageId = "c1d9c737-8737-4d5b-afc2-148a4f5cf60d", + DiscountPercentage = 4878.0, + UsageLimit = 5581, + MinAmount = 5666, + StorageId = "2b68eaa3-3ae0-428f-9d3e-09cfdad7109e", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 4731.0, - Code = "VQoe2X9", - UsageLimit = 298, - MinAmount = 3841, - StorageId = "2f95706d-2a2b-4ed1-9e0a-214ad1ed4069", + DiscountPercentage = 1150.0, + Code = "3b", + UsageLimit = 6004, + MinAmount = 4288, + StorageId = "9da3ff48-daad-4f59-a39c-a61729d6e947", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 4037.0, - IsPublic = false, - Code = "Vlycf", - UsageLimit = 484, - MinAmount = 7036, - StorageId = "54d5587e-f724-4491-a428-65ae3cdf2e88", + DiscountPercentage = 1320.0, + IsPublic = true, + Code = "Qalu6", + UsageLimit = 8192, + MinAmount = 1298, + StorageId = "0c5d789e-4263-4168-a7ba-ec3be5bcdca2", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 3137.0, + DiscountPercentage = 791.0, IsHidden = true, - IsPublic = false, - Code = "Jp", - UsageLimit = 4980, - MinAmount = 630, - StorageId = "5eb4e058-13f2-495f-b8ea-777307269e70", + IsPublic = true, + Code = "P", + UsageLimit = 5603, + MinAmount = 6669, + StorageId = "3513c814-580c-4bdc-a49e-760186c413b2", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 3541.0, + DiscountPercentage = 3683.0, IsDisabled = false, IsHidden = true, - IsPublic = true, - Code = "bfd8lI7", - UsageLimit = 4579, - MinAmount = 5811, - StorageId = "c861742f-a9ef-4379-919f-cd5154ec41c9", + IsPublic = false, + Code = "mZzuG53", + UsageLimit = 7469, + MinAmount = 5617, + StorageId = "25e5dedd-915a-43d7-9400-71d9a37ab37f", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 6144.0, - DisplayEndsAt = "2021-08-06T08:30:10.000000+09:00", - IsDisabled = true, + DiscountPercentage = 1658.0, + DisplayEndsAt = "2020-06-30T14:50:47.000000Z", + IsDisabled = false, IsHidden = false, - IsPublic = true, - Code = "rCM2", - UsageLimit = 4880, - MinAmount = 3546, - StorageId = "d443162b-e80e-4c4d-b0c5-3a3414e4cd18", + IsPublic = false, + Code = "u", + UsageLimit = 7389, + MinAmount = 6744, + StorageId = "6c6bb3b6-21a1-4dcc-bddc-edd57d744ad5", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 8469.0, - DisplayStartsAt = "2020-12-09T18:20:07.000000+09:00", - DisplayEndsAt = "2021-06-09T04:42:44.000000+09:00", + DiscountPercentage = 2911.0, + DisplayStartsAt = "2022-02-10T10:02:08.000000Z", + DisplayEndsAt = "2022-09-14T02:35:01.000000Z", IsDisabled = true, IsHidden = false, - IsPublic = false, - Code = "4IA", - UsageLimit = 3668, - MinAmount = 72, - StorageId = "6eb08096-d58b-435f-a454-3ed0f92c5073", + IsPublic = true, + Code = "R18rNQjTAR", + UsageLimit = 8056, + MinAmount = 1635, + StorageId = "aaf9ddcb-d75f-4889-bfd7-f0e3c3451d24", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 8976.0, - DiscountUpperLimit = 2026, - DisplayStartsAt = "2021-07-23T12:51:52.000000+09:00", - DisplayEndsAt = "2023-12-11T07:19:41.000000+09:00", + DiscountPercentage = 4834.0, + DiscountUpperLimit = 8712, + DisplayStartsAt = "2021-04-08T21:22:17.000000Z", + DisplayEndsAt = "2020-09-06T03:53:04.000000Z", IsDisabled = false, - IsHidden = false, - IsPublic = true, - Code = "Wbuh", - UsageLimit = 3847, - MinAmount = 5439, - StorageId = "5f995649-a955-4746-bb6c-90ff1cfebb28", + IsHidden = true, + IsPublic = false, + Code = "If7PJ4P", + 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"); @@ -971,24 +971,24 @@ public async Task CreateCoupon35() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 7104.0, - Description = "obOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ", - DiscountUpperLimit = 9980, - DisplayStartsAt = "2022-06-30T02:37:23.000000+09:00", - DisplayEndsAt = "2022-08-24T04:10:08.000000+09:00", + DiscountPercentage = 9681.0, + Description = "ycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtj", + DiscountUpperLimit = 2473, + DisplayStartsAt = "2023-08-26T07:01:38.000000Z", + DisplayEndsAt = "2021-10-12T16:23:06.000000Z", IsDisabled = true, - IsHidden = false, - IsPublic = false, - Code = "MDg", - UsageLimit = 6806, - MinAmount = 3592, - StorageId = "3789bc85-64b0-4984-bcaf-d90752e18d18", + IsHidden = true, + IsPublic = true, + Code = "vb8XUneGNN", + UsageLimit = 2407, + MinAmount = 4892, + StorageId = "01fef6e3-c062-465e-8560-87ea746865c8", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 9666.0, + DiscountPercentage = 9925.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"c6245312-6532-45e5-9874-cb119eea6e36", "9b22f78c-2105-4411-9238-9339386401f6", "eb6ac9d2-d282-4807-8165-a4e8e06f4559", "33bc1e49-0d5a-4ae2-bf7c-b9cd36ba6268", "89e1ee36-cf25-45cd-902f-49e6cff4f7bf"}, + AvailableShopIds = new string[]{"e71bef26-eb6b-4e4f-9786-59b22324491b", "06ece43a-139b-4579-a5fe-06bd9057b7d6", "08e2c9ec-db92-41c8-aeaf-dde408eb7808", "f46ffb4d-601b-4382-9e7c-252760cb620b", "5e8f9ebf-a28b-4a20-9b41-d9647864fc7d", "aca7f457-3f0a-4fd9-9f80-e83c674cf45e", "e98b68b9-e512-42c8-90ea-f0079c0a304e", "0b5e4108-8cc1-4dac-8f46-1ed7036c135f", "f1c72d23-ac44-4c30-a632-5c229f271a38", "96c12f23-1006-4e8e-8ca6-f293a0d1e2f2"}, }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 955.0, + DiscountPercentage = 6764.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"3f825c68-8941-4db8-84b4-d940f7bde4e0", "175165c5-7cf6-42b7-8f1a-bf211aca37cf", "67d8d1dc-63b7-4680-bed4-cd149885c747", "33f70754-0b37-4730-8c2f-67a181201ac0"}, - StorageId = "7a54ee90-750a-4151-9db2-3614f10c6465", + AvailableShopIds = new string[]{"7e1bc6e2-ae39-451a-ba8c-be2b2eb117d9"}, + StorageId = "052dd5d3-f5e2-4e2d-b0ce-4e706716847d", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 2800.0, + DiscountPercentage = 5357.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"faab7968-148e-4713-9894-af76bd351dae", "3ce8bd08-ad13-4366-8af2-cbdf02be5ffe", "ae632394-fb71-4d7f-8118-231f157f190c", "6a5af3a7-4ff7-43bc-83aa-a5854df2778b", "4b94cdf7-032b-417a-9d76-4f1f172162c7", "9e128976-b31b-4203-b574-472969d87ffc", "c4095b83-840e-4558-8239-6eb3dcf807fd", "0422f55f-7fb4-4eb1-81e4-47abf004a41b", "8553ad04-955d-41d1-a11c-aee08c443ba6"}, - MinAmount = 7763, - StorageId = "b4ba968e-9076-4a72-b2bd-6e00177555ea", + AvailableShopIds = new string[]{"742874a9-eaa0-4e5e-bbba-43255b995e45", "8aeebed4-a6fd-4ba9-b94d-7a0a52988a50", "67a4bce2-0140-4169-96ad-2a701666ee43"}, + MinAmount = 3974, + StorageId = "3aa39c8f-c908-4c98-95bb-69380e947921", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 9412.0, + DiscountPercentage = 5382.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"91e6bede-ffc3-49d0-9e42-6510c8d08b0c"}, - UsageLimit = 785, - MinAmount = 4292, - StorageId = "c42f00d8-aa68-41d3-88b8-ed1c71ce9c68", + AvailableShopIds = new string[]{"625a8d75-0d74-44ef-abd8-52d0a4141188"}, + UsageLimit = 816, + MinAmount = 1585, + StorageId = "81c75320-9ab6-4663-858a-a1ef975565dd", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 7265.0, + DiscountPercentage = 6419.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"7dc477ca-2e09-4084-b905-f93ba16e4130", "bc346f2d-c21d-450d-8073-a3440764d589", "be5aa228-893e-4182-ae54-186e0ef9f44d", "2b5db9d0-befc-457c-90f4-f241a80b205e", "1d34e9b7-5a26-4e54-901a-b62500981533", "c6829584-c4c5-4aae-b2ee-4025038ae224", "5c201e11-7ec3-4ba4-809b-b9b83ff61aca"}, - Code = "Z", - UsageLimit = 2075, - MinAmount = 7665, - StorageId = "690d0316-b3c9-4163-9971-615a87d6d629", + AvailableShopIds = new string[]{"66e88466-a8bb-483e-a9c1-85936f579280", "d3f237a8-7713-455e-8ba9-1c29782607d5", "14eb34d7-8e06-4b27-9878-9e91f086b0ff", "29926623-5746-459d-9f2b-b9d2b6d8a27a", "4e481ea4-ae0f-4b3c-913f-c0cedd7ea3b5", "e5e90315-343d-498d-85e6-8fa85818fea4", "9dd3c46f-cdff-4ebc-ac14-677567749cbc", "7151ddba-3e9f-46a9-b1d6-1749a162cd9e"}, + Code = "JLm", + UsageLimit = 6926, + MinAmount = 2775, + StorageId = "7abe410a-5e46-48e5-87ca-a9bb2e55453c", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 9666.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"4492bd68-41ad-4777-b5d6-c2f5a680676e", "91621e6e-e6a4-4ee8-b239-6b1ac96133ac", "9cf0bc98-7071-49fd-97d1-bb5a2fe54dfa"}, + DiscountPercentage = 1905.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"2270ea79-9911-4298-a69b-2fb908d9a7fb", "9209360e-a098-4578-b165-0f2a4e615ad6", "2966deb9-ebcc-47aa-9ae7-ea24b2154984"}, IsPublic = true, - Code = "4x", - UsageLimit = 8514, - MinAmount = 9016, - StorageId = "0b04c1b9-00b1-4cf2-90e0-5cd6ca36e237", + Code = "4ooRx", + UsageLimit = 9259, + MinAmount = 9233, + StorageId = "5f8ae4be-73b5-4acb-9c0c-17a68e56fdde", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 838.0, + DiscountPercentage = 8530.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"330fe064-7b87-4b21-8844-6a809ff31b65", "130e4012-1e10-42de-9bc2-feb651572531", "70117676-7163-41ff-ba24-80a231d2e4cf", "a9d764da-5e60-4e9d-b1bc-530a17feaa75"}, - IsHidden = false, + AvailableShopIds = new string[]{"cbed5ead-a833-4329-9628-3d86ab536a68", "d46cb0fb-c48e-4db8-a567-bb8e10a8bc46", "92bb66cd-57d9-4c55-90c3-c2ce418886b7"}, + IsHidden = true, IsPublic = true, - Code = "B", - UsageLimit = 5012, - MinAmount = 3393, - StorageId = "0a9c1064-7372-4000-9bba-1a7ca937775f", + Code = "J0", + UsageLimit = 5696, + MinAmount = 1617, + StorageId = "a72b5a9f-722a-47fc-bc07-0e07fe0b49a1", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 2330.0, + DiscountPercentage = 1116.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"1d24ee19-477a-4162-a6f1-389da60ac0cb", "993506ec-066e-4bff-b31e-fd476391deb4", "d0b6e2bf-8c2e-4e30-83ac-ecf70f0145da", "401764ef-f182-4230-9202-8d80da94a5db", "2bca3e54-2304-4639-b02d-66ed4125cdd4", "0bf3bd76-be80-4e7c-b98c-16699f641011", "34ab3c1f-f07c-4f2d-bf6d-e9655dffd7ce"}, - IsDisabled = true, - IsHidden = false, - IsPublic = true, - Code = "62Bc0n5yxx", - UsageLimit = 1910, - MinAmount = 6, - StorageId = "fdf63b24-cddf-4144-a12a-e3181842ef30", + AvailableShopIds = new string[]{"9b0ae26c-4401-4881-b189-6f3f5e728f77", "cf56edf4-2f3f-4ec4-8c38-48389cb8dc61", "2d772fcc-f566-423f-abdb-7267b0104a2b", "21a39e29-6043-4d14-aea6-82e4780089b3", "f1eea2ac-d702-4bed-b365-a28c2310b0cc", "50b56751-f3fd-4d28-822c-d12473b9a058", "b755c049-e101-4a1e-95e9-15855dcd4bbf", "a40aed59-2e08-46f0-920d-1c5e6682e595"}, + IsDisabled = false, + IsHidden = true, + IsPublic = false, + Code = "v", + UsageLimit = 4517, + MinAmount = 7758, + StorageId = "02376599-3411-4a06-a7e6-78a04c1ec3e1", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 1379.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"cf339476-ed35-463c-8ef6-7bbe396c6fc5", "ed8cf352-efff-40d2-9b8f-5db1d5c2afef", "d45bfd0b-c4f6-4ad5-bb6f-421024b42053"}, - DisplayEndsAt = "2020-09-16T20:53:33.000000+09:00", - IsDisabled = true, + DiscountPercentage = 1553.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"05cd51b3-80dc-4150-af6f-559829430677", "b45bc1f0-6d4b-40c1-b825-1e338f4a248f", "bf657a1f-f56b-4f0f-a466-8d872f0aa841", "4b3da133-13b1-45f7-9864-2ab013d03334", "5667229a-d7df-4ca7-92a7-ca5348a40e59"}, + DisplayEndsAt = "2022-02-28T16:11:13.000000Z", + IsDisabled = false, IsHidden = true, - IsPublic = false, - Code = "wois43", - UsageLimit = 3852, - MinAmount = 4925, - StorageId = "fec78886-c115-4168-8bcf-778e7836c574", + IsPublic = true, + Code = "g", + UsageLimit = 2444, + MinAmount = 3982, + StorageId = "82d40bac-d8bb-4021-8afb-422dda5c77a0", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 4104.0, + DiscountPercentage = 9694.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"28db048d-7f58-4a88-a737-7d271935306f", "1ce20970-362c-4814-b561-44e59e8bfb23", "7a6c2c37-a86c-479a-90cf-1a2e9c7b8ab5", "e3c517ad-8e38-43c1-bd22-8a7cebf34ee5", "25e031b6-e2a8-4a3b-a854-bfeec78298a1", "0fd6c17d-55f2-4029-86d3-a36ac47eff62", "ead15dc2-d7fd-41ba-9c8e-9f97f161eeb1", "8d14362d-ca0e-49e8-a952-44ea487b2493", "e9a2c518-7754-4597-8ed3-5da746c40c15", "d5ea4095-5f28-4155-81b4-05a831fc71dc"}, - DisplayStartsAt = "2021-11-11T08:09:26.000000+09:00", - DisplayEndsAt = "2020-10-30T10:15:32.000000+09:00", - IsDisabled = false, - IsHidden = true, - IsPublic = true, - Code = "vyktKcWC", - UsageLimit = 3518, - MinAmount = 4159, - StorageId = "17a17f7d-30cb-4c6d-b4f4-42471a1137dd", + AvailableShopIds = new string[]{"a418d31c-40b1-46eb-925f-e572f6d62bbd", "49afa228-f312-423b-a60a-c9f9782a7081", "80fd0f7d-3165-49a2-b6b1-ae26bcb61775", "5f7057fa-483f-448a-adc2-908975705f49", "68f95cdf-7683-4500-9864-329b601846bc", "59fde46e-2c9f-491a-85ce-6446fa3ba695", "c2bee2f3-fd29-4f88-b32e-6624bae15a8e"}, + DisplayStartsAt = "2020-04-19T12:49:46.000000Z", + DisplayEndsAt = "2021-06-20T07:52:06.000000Z", + IsDisabled = true, + IsHidden = false, + IsPublic = false, + Code = "ZrD72DB3", + UsageLimit = 7716, + MinAmount = 4832, + StorageId = "cadaea37-0726-4b13-87c3-4e8bd595fb52", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 5170.0, + DiscountPercentage = 6260.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"38657c7a-8ae5-4c03-aedf-76d7ec36fb58", "62325978-65d0-4b4e-b652-f2e9c81e0ecd", "44c21256-7668-4286-9aed-8a1fdd0d9482", "9086e990-4d6d-4f47-aa5e-313085f9d611", "08add354-8d8d-4d4d-910e-c5a34566b3ea", "ef1475d0-2e06-4f17-a692-b7ac3b07f1a8", "3e64c546-2fcc-4da7-8818-95cd02720b2b"}, - DiscountUpperLimit = 8880, - DisplayStartsAt = "2022-09-15T23:21:00.000000+09:00", - DisplayEndsAt = "2023-10-17T02:55:11.000000+09:00", + AvailableShopIds = new string[]{"4163155e-efd0-4ca7-bc78-3c08c7c6f3ff", "9de1771f-a2e9-40d0-be49-581a03b901f7", "f6e311c3-cabe-446c-871c-109add2f9c25", "776437da-2d31-42cb-a2cf-7ec75cbea909", "a2e80ce7-e3c5-4a32-9cf3-346a1169a18e", "0c8e87fd-760f-4637-bddb-3dc89d1e2475", "d432b436-e6d7-4a4b-89a1-eab5f91dfd0c", "db3e202c-47dc-4bcd-8382-95a27361eebc", "30d6b222-741f-4b88-b785-546eb3e17cdd"}, + DiscountUpperLimit = 2466, + DisplayStartsAt = "2021-02-16T21:51:44.000000Z", + DisplayEndsAt = "2021-05-10T17:52:59.000000Z", IsDisabled = true, - IsHidden = true, - IsPublic = true, - Code = "dwVX1nfPZ", - UsageLimit = 6942, - MinAmount = 6792, - StorageId = "bf6620fa-9747-47f5-aed6-308876f6d9ca", + IsHidden = false, + IsPublic = false, + Code = "uch6s2J6", + UsageLimit = 1719, + MinAmount = 1665, + StorageId = "ccd03250-f729-4bb8-a81c-256e4e391cbd", }; 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( - "3cc612d9-c7a6-42df-b10c-85965d1f8032", - "mxjIub5W9d4fa79SnOHSfjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM6", - "2022-04-30T14:45:22.000000+09:00", - "2023-08-31T14:31:13.000000+09:00", - "86778905-25b5-4842-9382-caccce27ae52" + "40e5f803-a1f6-42e3-93f9-f67b347fb41b", + "1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq", + "2021-05-29T06:39:55.000000Z", + "2020-08-17T06:59:21.000000Z", + "bf53782b-ca33-43ed-882a-a2af306de60f" ) { - DiscountPercentage = 7848.0, + DiscountPercentage = 215.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"885887c3-c41f-4483-ae73-429a09fdb62f", "7feeb5e0-d7ff-4ffc-a40d-a125b725312c", "1f1c9246-ebbd-4214-968f-4a2d5c4ffddf", "0985ff63-a883-4bdc-aac6-ed784180cc2e", "aca3a720-bdf0-4ee0-ab8b-21ae16d4350b"}, - Description = "r7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6Mis", - DiscountUpperLimit = 6568, - DisplayStartsAt = "2023-11-06T09:16:04.000000+09:00", - DisplayEndsAt = "2023-07-02T18:18:41.000000+09:00", + AvailableShopIds = new string[]{"eb499449-11e5-4085-8dd3-14865cd6f4a4", "b7447cbd-9b9f-48a2-aebd-b3042480af11", "c74f1123-9935-45b2-87b1-af97b0f90007", "be3bfc7f-d592-43a7-a28d-32fc42d4f3c0", "aad70bed-a26e-4bbb-ad85-81009b5d5688", "c8f30165-e609-4068-b581-c4d1e0d294c5", "794c54c2-b164-470a-9cc3-b75a59bc474a", "33ab4b3d-6f74-4420-ac72-0955e4d69461", "8daaa3b6-ccc6-45e7-b037-51a9383ca85c"}, + Description = "ym0hY", + DiscountUpperLimit = 6437, + DisplayStartsAt = "2020-12-01T23:21:21.000000Z", + DisplayEndsAt = "2021-05-15T09:10:32.000000Z", IsDisabled = true, - IsHidden = false, - IsPublic = true, - Code = "APWVf0nkI2", - UsageLimit = 2787, - MinAmount = 7280, - StorageId = "c2de15db-aae9-48da-b25f-ca772f49d82f", + IsHidden = true, + IsPublic = false, + Code = "UAWMYxWf", + UsageLimit = 6335, + MinAmount = 9180, + StorageId = "0509c92d-cb03-43c7-aa8b-832ba61c384e", }; 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 244a072..54d4855 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCpmTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCpmTransaction.cs @@ -25,9 +25,10 @@ public async Task CreateCpmTransaction0() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "B413C8zcpa0a0ipuLt3IQK", - "6a4d1551-1551-4901-8bc8-2f62ddc93afc", - 1590.0 + "5w5OTBAsM3ixdWcd35lzGg", + "42d0e3b9-41eb-4cb8-837a-ae58f935e499", + 2357.0, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -42,11 +43,12 @@ public async Task CreateCpmTransaction1() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "B413C8zcpa0a0ipuLt3IQK", - "6a4d1551-1551-4901-8bc8-2f62ddc93afc", - 1590.0 + "5w5OTBAsM3ixdWcd35lzGg", + "42d0e3b9-41eb-4cb8-837a-ae58f935e499", + 2357.0, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { - RequestId = "b92e5ce6-5ae9-4b6b-a7ae-90dd92bbead6", + RequestId = "f5f56727-4926-4028-aeda-0e8b40d88878", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -61,33 +63,13 @@ public async Task CreateCpmTransaction2() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "B413C8zcpa0a0ipuLt3IQK", - "6a4d1551-1551-4901-8bc8-2f62ddc93afc", - 1590.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","{}"}}, 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 = "81f6f138-03d5-472b-beb3-2f58804afa42", - }; - 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"); - } - } - - [Test] - public async Task CreateCpmTransaction3() - { - try { - Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "B413C8zcpa0a0ipuLt3IQK", - "6a4d1551-1551-4901-8bc8-2f62ddc93afc", - 1590.0 + "5w5OTBAsM3ixdWcd35lzGg", + "42d0e3b9-41eb-4cb8-837a-ae58f935e499", + 2357.0, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { 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","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, - RequestId = "6808be01-fd96-4c27-a72f-69d278792c7c", + RequestId = "c09567a8-bcb6-4d72-bd0d-7addd8dda9e4", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -98,18 +80,18 @@ public async Task CreateCpmTransaction3() } [Test] - public async Task CreateCpmTransaction4() + public async Task CreateCpmTransaction3() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "B413C8zcpa0a0ipuLt3IQK", - "6a4d1551-1551-4901-8bc8-2f62ddc93afc", - 1590.0 + "5w5OTBAsM3ixdWcd35lzGg", + "42d0e3b9-41eb-4cb8-837a-ae58f935e499", + 2357.0, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { - Description = "3jya01cL7e", + Description = "Z6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANd", 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","{}"}}}, - RequestId = "6107a305-bee8-436d-b256-9f892e175b98", + RequestId = "b15b9c4d-0b1a-441b-bd8e-d5b0d5fc16f9", }; 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 fea1476..be8ccdb 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( - "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" ); 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( - "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" ) { - ExternalId = "umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e", + ExternalId = "e87oi", }; 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( - "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" ) { - AccountName = "e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7Mi", - ExternalId = "Gr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBC", + AccountName = "kJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXh", + ExternalId = "26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5", }; 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( - "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" ) { - UserName = "Ym4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH9e", - AccountName = "mhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Z", - ExternalId = "po5LBba7yo5q8iS", + UserName = "bgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH", + AccountName = "emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdW", + ExternalId = "jKy82N74m", }; 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 234f518..ab36916 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( - "0be2928e-c4d1-4475-870b-6b3ce73cf57f", - "29a2963b-d109-4587-9494-d531b4d31dae", - "0af0e039-05b8-490e-af0b-3c3ec707c134", - 4324 + "ff4bd663-aa88-4536-8cbe-376835a07b9c", + "c77de860-6f65-4638-8bfd-1ff82bdf45f6", + "e5fc3b0d-435c-43b6-86aa-87179ded75aa", + 827 ); 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( - "0be2928e-c4d1-4475-870b-6b3ce73cf57f", - "29a2963b-d109-4587-9494-d531b4d31dae", - "0af0e039-05b8-490e-af0b-3c3ec707c134", - 4324 + "ff4bd663-aa88-4536-8cbe-376835a07b9c", + "c77de860-6f65-4638-8bfd-1ff82bdf45f6", + "e5fc3b0d-435c-43b6-86aa-87179ded75aa", + 827 ) { - RequestId = "5b8c1045-7438-4e79-a58e-622e5cfa8838", + RequestId = "a098b950-7461-4bbb-bb40-9c5a16b099b8", }; 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( - "0be2928e-c4d1-4475-870b-6b3ce73cf57f", - "29a2963b-d109-4587-9494-d531b4d31dae", - "0af0e039-05b8-490e-af0b-3c3ec707c134", - 4324 + "ff4bd663-aa88-4536-8cbe-376835a07b9c", + "c77de860-6f65-4638-8bfd-1ff82bdf45f6", + "e5fc3b0d-435c-43b6-86aa-87179ded75aa", + 827 ) { - Description = "xiCptr", - RequestId = "a3a15640-677e-4e99-b82b-e8a868cdd958", + Description = "I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F8", + RequestId = "1c71be84-8eab-45db-9a81-d032751b85e8", }; 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 d5d1b6c..5194ba2 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateExternalTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateExternalTransaction.cs @@ -25,10 +25,11 @@ public async Task CreateExternalTransaction0() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "943e019a-27d4-4a2b-8fca-9780e419d414", - "70205a48-daec-479c-9183-75d0a0ff9833", - "b92a5181-1e1a-46f3-b261-5be94c778f22", - 2934 + "07e972ce-d603-42bf-82c5-89bc3d663788", + "960a8606-2490-4bfe-bafb-9cb1139041a8", + "7de66eb4-cee6-4091-b942-35974b52c749", + 1008, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ); Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +44,13 @@ public async Task CreateExternalTransaction1() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "943e019a-27d4-4a2b-8fca-9780e419d414", - "70205a48-daec-479c-9183-75d0a0ff9833", - "b92a5181-1e1a-46f3-b261-5be94c778f22", - 2934 + "07e972ce-d603-42bf-82c5-89bc3d663788", + "960a8606-2490-4bfe-bafb-9cb1139041a8", + "7de66eb4-cee6-4091-b942-35974b52c749", + 1008, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { - RequestId = "3f68410f-4f99-4304-a36e-37b7c238e715", + RequestId = "8a9efe3a-f8a6-43d8-a349-34b2c4df9aec", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,35 +65,14 @@ public async Task CreateExternalTransaction2() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "943e019a-27d4-4a2b-8fca-9780e419d414", - "70205a48-daec-479c-9183-75d0a0ff9833", - "b92a5181-1e1a-46f3-b261-5be94c778f22", - 2934 - ) { - 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 = "1b486310-689e-468e-9532-0fcb4f82b93d", - }; - Response.ExternalTransactionDetail 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 CreateExternalTransaction3() - { - try { - Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "943e019a-27d4-4a2b-8fca-9780e419d414", - "70205a48-daec-479c-9183-75d0a0ff9833", - "b92a5181-1e1a-46f3-b261-5be94c778f22", - 2934 + "07e972ce-d603-42bf-82c5-89bc3d663788", + "960a8606-2490-4bfe-bafb-9cb1139041a8", + "7de66eb4-cee6-4091-b942-35974b52c749", + 1008, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { 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","{}"}}}, - RequestId = "10673c94-b859-4d8f-b076-8bf04575cc00", + RequestId = "d3d43d3e-aa75-4ec7-9d57-2cff497ef1fc", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -102,19 +83,19 @@ public async Task CreateExternalTransaction3() } [Test] - public async Task CreateExternalTransaction4() + public async Task CreateExternalTransaction3() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "943e019a-27d4-4a2b-8fca-9780e419d414", - "70205a48-daec-479c-9183-75d0a0ff9833", - "b92a5181-1e1a-46f3-b261-5be94c778f22", - 2934 + "07e972ce-d603-42bf-82c5-89bc3d663788", + "960a8606-2490-4bfe-bafb-9cb1139041a8", + "7de66eb4-cee6-4091-b942-35974b52c749", + 1008, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { - Description = "WJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZ", + Description = "Gy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZz", 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 = "f169da77-7e4a-4031-b5e4-ec8c31fc64a9", + RequestId = "c65f0ad3-e76b-4f16-aa0a-a029066399eb", }; 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 290d038..f570b2c 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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" ) { - ContactName = "V9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsF", + ContactName = "PBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpV", }; 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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" ) { - BankAccountHolderName = "「", - ContactName = "yPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEz", + BankAccountHolderName = "」", + ContactName = "4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48Uy", }; 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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" ) { - BankAccount = "915015", + BankAccount = "4111", BankAccountHolderName = "\\", - ContactName = "CUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU", + ContactName = "9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEe", }; 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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" ) { - BankAccountType = "saving", - BankAccount = "42804", - BankAccountHolderName = "タ", - ContactName = "eNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrv", + BankAccountType = "other", + BankAccount = "1898749", + BankAccountHolderName = ",", + ContactName = "43AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchk", }; 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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" ) { - BankBranchCode = "", - BankAccountType = "current", - BankAccount = "64", - BankAccountHolderName = " ", - ContactName = "6tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntq", + BankBranchCode = "165", + BankAccountType = "saving", + BankAccount = "300", + BankAccountHolderName = "ラ", + ContactName = "ZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RI", }; 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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" ) { - BankBranchName = "Tr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm", - BankBranchCode = "861", - BankAccountType = "other", - BankAccount = "91694", - BankAccountHolderName = " ", - ContactName = "tu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiO", + BankBranchName = "GwbFSZ2qU3L", + BankBranchCode = "624", + BankAccountType = "saving", + BankAccount = "5", + BankAccountHolderName = "\\", + ContactName = "3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7", }; 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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" ) { - BankCode = "", - BankBranchName = "KR0rUW9UTcnGDBsZuPfA", - BankBranchCode = "249", - BankAccountType = "saving", - BankAccount = "915619", - BankAccountHolderName = "W", - ContactName = "HnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIB", + BankCode = "4615", + BankBranchName = "klIR5ig74Fkbtbb0Sl", + BankBranchCode = "219", + BankAccountType = "other", + BankAccount = "7948", + BankAccountHolderName = "\\", + ContactName = "Hxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp9", }; 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( - "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYV", - "OF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3j", - new string[]{"64a0b0a8-5d1c-40d9-a8e2-5ce8d2e01834", "16a08f52-da8d-4aac-800c-6fd7a610f6a4", "247d36b4-6253-4c6a-8a93-9e8d1f5d381c", "ecc14663-4550-45fb-ba11-e902cb2525c8", "c8d9e640-ba75-4eb2-a7ab-2349b7c11470", "89431037-fa0f-4c48-9084-bc907a7f636c", "b33c8493-5392-439f-8367-97f8457d80bc"}, - "YlFZzBuHZ8@tjsh.com", - "68ScZg3aAM@ErPc.com" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + new string[]{"f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"}, + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" ) { - BankName = "gyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmD", - BankCode = "9129", - BankBranchName = "mfdCV9wGJUROgp1VTNstKsb", - BankBranchCode = "276", - BankAccountType = "saving", - BankAccount = "57869", - BankAccountHolderName = "ア", - ContactName = "wuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG", + BankName = "ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5Y", + BankCode = "", + BankBranchName = "VquVYsbDyy", + BankBranchCode = "292", + BankAccountType = "other", + BankAccount = "534", + BankAccountHolderName = ".", + ContactName = "qoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJ", }; 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 c733e59..a2aab11 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransaction.cs @@ -25,10 +25,11 @@ public async Task CreatePaymentTransaction0() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "c38e1368-27f8-4e40-ad73-ba121ece97f2", - "e3a6d8da-6fca-4319-9026-889774578a1c", - "6049173e-a862-4eb5-bc42-de03ac7928b1", - 7243 + "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", + "71ca7b90-1872-4df4-a134-a8af3d299b43", + "b371718c-f146-41bc-857c-75debe8b1e16", + 9418, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +44,13 @@ public async Task CreatePaymentTransaction1() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "c38e1368-27f8-4e40-ad73-ba121ece97f2", - "e3a6d8da-6fca-4319-9026-889774578a1c", - "6049173e-a862-4eb5-bc42-de03ac7928b1", - 7243 + "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", + "71ca7b90-1872-4df4-a134-a8af3d299b43", + "b371718c-f146-41bc-857c-75debe8b1e16", + 9418, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { - RequestId = "0aca1db9-f05a-4ccc-82ca-d9fe71e4fbea", + RequestId = "f1479d1b-73bd-48ee-9095-e5bdb22b740a", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,35 +65,14 @@ public async Task CreatePaymentTransaction2() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "c38e1368-27f8-4e40-ad73-ba121ece97f2", - "e3a6d8da-6fca-4319-9026-889774578a1c", - "6049173e-a862-4eb5-bc42-de03ac7928b1", - 7243 - ) { - 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 = "38478551-9cfa-4872-a3c7-4e342be56ae3", - }; - 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"); - } - } - - [Test] - public async Task CreatePaymentTransaction3() - { - try { - Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "c38e1368-27f8-4e40-ad73-ba121ece97f2", - "e3a6d8da-6fca-4319-9026-889774578a1c", - "6049173e-a862-4eb5-bc42-de03ac7928b1", - 7243 + "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", + "71ca7b90-1872-4df4-a134-a8af3d299b43", + "b371718c-f146-41bc-857c-75debe8b1e16", + 9418, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { 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","{}"}}}, - RequestId = "024f6100-745f-4378-8d39-9739e6d0b630", + RequestId = "bc775706-ea9d-4108-9ac3-eb4ce8a97455", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -102,19 +83,19 @@ public async Task CreatePaymentTransaction3() } [Test] - public async Task CreatePaymentTransaction4() + public async Task CreatePaymentTransaction3() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "c38e1368-27f8-4e40-ad73-ba121ece97f2", - "e3a6d8da-6fca-4319-9026-889774578a1c", - "6049173e-a862-4eb5-bc42-de03ac7928b1", - 7243 + "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", + "71ca7b90-1872-4df4-a134-a8af3d299b43", + "b371718c-f146-41bc-857c-75debe8b1e16", + 9418, + new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}} ) { - Description = "5go4dBLdUCSZVd4cTqnNfSRiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgF", + Description = "xGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq4", 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","{}"}}}, - RequestId = "75025857-893b-4ec9-9be5-f22b203f8a8d", + RequestId = "f917f3b4-e876-4840-a23c-41395c6923a5", }; 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 281f0f2..0170f45 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( - "hpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" ); 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( - "hpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" ) { - OrganizationCode = "-6-8J3v--G2-MPOM65m0U9Z-y-", + OrganizationCode = "T-sG-A-Y4rx3806--", }; 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( - "hpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" ) { - ShopExternalId = "6QKkz6REzoI7cZYW4c0GyNh", - OrganizationCode = "-wp9-MWp---E-x--a", + ShopExternalId = "cqmENfDor1zgwF9x3", + OrganizationCode = "2-", }; 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( - "hpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" ) { - ShopEmail = "GKqjz0v27d@HE8r.com", - ShopExternalId = "h9b3v7zqeYS2n0EGsPPbvQvYkAPB", - OrganizationCode = "s8-6-t957H", + ShopEmail = "fU4cD6smAe@qngi.com", + ShopExternalId = "ikqDE3OudXpYhNw", + OrganizationCode = "ZA7BK-", }; 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( - "hpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" ) { - ShopTel = "058845-433", - ShopEmail = "WQZO9yz4Mc@4BWx.com", - ShopExternalId = "S7UaVHpVi4pZYZOGK", - OrganizationCode = "-2pJH-1dkId-", + ShopTel = "0476633-271", + ShopEmail = "1FfneXYRV1@FBu9.com", + ShopExternalId = "VqwmK2QWEkaIk3Nf304AeRoMBnYR", + OrganizationCode = "I-sc750tZXruc", }; 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( - "hpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" ) { - ShopAddress = "JfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzI", - ShopTel = "0727-90-227", - ShopEmail = "fsBnFuG56t@OVY8.com", - ShopExternalId = "9Z9lrbTGfh4Qb", - OrganizationCode = "-62-B--zV", + ShopAddress = "EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJ", + ShopTel = "02557640", + ShopEmail = "g3h5b1QYmV@Ctk7.com", + ShopExternalId = "JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspa", + OrganizationCode = "Y1l-3S-a99d39XW2-OAW4--i", }; 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( - "hpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" ) { - ShopPostalCode = "058-2489", - ShopAddress = "GdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fG", - ShopTel = "03-452-017", - ShopEmail = "5Jr7zEeO7n@UDqx.com", - ShopExternalId = "j74j643AIOVakyq8QHWKNric3", - OrganizationCode = "-Urw-0-lR6o-VyBR3q384V853--3w2", + ShopPostalCode = "1393414", + ShopAddress = "bb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd", + ShopTel = "0061231408", + ShopEmail = "qoWmfQbT09@Lp66.com", + ShopExternalId = "g0d7eGITtIklkYFTO7OJe9dSEOGAL", + OrganizationCode = "t518798nQhn-67", }; 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 204265b..33aff73 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ); 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ) { - CanTopupPrivateMoneyIds = new string[]{"455b2cb2-e36a-48a2-b86e-4289e082a8ac", "1831b86f-28ad-4296-9762-43a03c0126e8", "e064f506-bef2-4cdf-8860-fa90f139fdf9", "b4c26648-9e91-407f-8b26-461b3452ce51", "3fc21a07-ebc1-4186-901b-fc50982b3232", "f2bbe662-8706-4e13-a6fd-81c2f75605e5", "c1c77d26-585a-432e-ab6d-9f9de24d4c29"}, + 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ) { - PrivateMoneyIds = new string[]{"0eae3f19-3722-41e8-a998-0b0774196b97", "97f7013a-6732-4055-a560-fb4ebb3e4237", "53db61da-b902-4c9c-b0fe-d0b4a1e9d017", "481b8337-c4f4-4616-8745-e75b5ae01abf", "feb56a25-178d-4ff0-b93f-11a4e70ee64d", "0d77e3ee-1adf-4015-a11c-49cd0ffbe9cb", "982f9313-3deb-449c-aa50-db54ddd347a1", "2c02bb54-064f-478e-a834-f84bea5a7507", "0fc77107-1eec-448f-bc5f-85c647ddda58", "03a3844b-a696-42dc-8404-6e6771c1b992"}, - CanTopupPrivateMoneyIds = new string[]{"6e7429e9-b6f8-42f3-b1e0-1f0eb0f2c120", "dec0dc56-7454-41d9-b2f2-eeade81cadc0", "dc42cc7d-c583-43bb-9348-06fbf878931b", "10b1435a-eab1-4781-a130-e6f49618f5bf"}, + PrivateMoneyIds = new string[]{"f30fb147-1426-4944-bd88-6a56dd9456d2", "38fb19e4-5c6f-45a0-aa85-1b47556f5a6a", "233f947b-36e9-4067-8870-a11470b6451f", "c69e96da-3ebb-4104-ac1b-8d9d9ff28392", "b1c0c838-6e49-426e-95a5-81a6f2d8a82d", "92f1a6c8-9fa2-4e13-9142-5ee846a8fecd", "a780f03b-a949-4c7b-8e72-e364b7864dda", "9b1e774a-a60c-4f54-9827-ad3976c8a505"}, + CanTopupPrivateMoneyIds = new string[]{"474d3cff-204d-4f6e-9167-3047572dcdfe", "19307487-c38a-4ee6-a380-ad8429fb46c5", "793eb0ec-38aa-4feb-9363-55f43d0263b5", "fc1685ab-b040-48b6-b442-89b33eb85d40", "eef3a0d1-0c76-4c9b-80d9-62ea69c91f11", "42909ef9-8138-486d-bb55-fe9242f0b0aa", "5051c900-a3e7-4fc4-b995-18d8133f5e2e", "2aa5f88e-fc51-4f3a-a314-3c59ffd68307"}, }; 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ) { - OrganizationCode = "Z-D-G7-rN-M-8pq--dYIW-GLV8Td", - PrivateMoneyIds = new string[]{"70dc2f99-f162-4620-9ae4-39a09f1bcbb3", "5a8b4ef7-38e3-440f-871c-ac75073df2c3", "cc822aa7-7665-4b2b-9df3-8bfe31bd3c40"}, - CanTopupPrivateMoneyIds = new string[]{"2ef37978-ea92-426b-9254-20e787c26ee5", "916b4e55-2b84-4aec-8d16-f6a0c9290049", "d8c1c52d-1ca4-45c1-89e0-406c8db54817", "248f29bd-6fd1-47bd-b6bb-3f5c84043f4c", "b3e0fb35-129c-49bd-b400-49378da2d1b8", "f5218930-1252-4db8-9e4c-b01216a49135", "c71840d6-22f2-444c-b801-bf9f04c2e0a6", "ecec89fa-2d7e-415e-9ad2-d789e0ab3283"}, + OrganizationCode = "45obEl-JlK8KJ-2", + PrivateMoneyIds = new string[]{"571c1f61-0fa0-41ee-8cc9-4014511f14aa", "b04c775c-5a7e-4500-8cbc-420599d77cb8", "4509ce25-bbc6-4a89-b1c9-a858198be5f1"}, + CanTopupPrivateMoneyIds = new string[]{"999c5565-9e89-4619-a1ec-1c820b465bc7", "d0a85d7e-c9be-4129-9a3b-75c475e93c4f", "5d81e904-fb87-4ace-95df-2025879f3f2c", "6bb56041-f8bd-492d-a64a-26208cb731e6", "d3d9be5e-74ec-4832-88cd-10f47969b5db", "ffb072a0-7a1f-456f-b779-f2619dcda18c", "3b2d6593-9601-4a57-b047-daebe29536f4", "38efd286-ccb1-4970-8f8f-01cf76094593", "14b8b70c-2bc2-4da4-9a81-38fb67363d17", "6608ae1e-43fb-40ba-8108-d1efdbb8fbfe"}, }; 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ) { - ExternalId = "lVu0ZdkmHWdPUiVDqe", - OrganizationCode = "--i-270V", - PrivateMoneyIds = new string[]{"053c14f9-9b37-46cb-a476-24118ab9326f", "2e62e3ac-56e5-4d11-9e6b-576c830e89c9", "ff9b29d2-9db5-4ae9-aa67-ef8950bc3da7"}, - CanTopupPrivateMoneyIds = new string[]{}, + ExternalId = "U6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8m", + OrganizationCode = "J-Ig-h-2e-L-d0I8Gq-5N", + PrivateMoneyIds = new string[]{"cdc42a10-65cf-4515-9a0d-24c638ad6c7b", "ce865b7a-8e79-4325-a531-31bd12ff47b0", "0d816b84-b4f3-474d-ae8c-f13152031a68", "fa56a64c-9171-449c-a085-a297ec0a0da1", "9100008d-87e7-4ada-b45b-e3a57c5e040d", "20b0ca98-f8d3-41e3-a62b-08ec5295176b", "c57e1c2c-7086-4bb2-8a9d-2be4e4b0c66a", "84c83a7a-2889-4191-ae6a-23c0db27f082"}, + CanTopupPrivateMoneyIds = new string[]{"a0a0e846-1697-4d83-a5be-621a4342ee7a", "17f3abf4-bca8-4055-b9ab-f20992e0278a", "f17efb92-c7be-4285-9979-655c9e462199", "5a7371d5-3b92-432d-9312-4b2d6eebc7f7", "ddb098f7-d640-45f9-9313-5718cc8da6b9", "180e68c2-ec35-4a0d-a87d-9bbb6ae12140", "5404cc2a-38f4-49e7-8e26-d8c92c3622c4", "98bb9170-833d-49d5-aa80-ccf06bc3038a", "95de72fa-49cb-450e-a909-4879e24374ea", "e43cfd3b-9433-4542-853f-9576a0117059"}, }; 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ) { - Email = "74Fkbtbb0S@lK2K.com", - ExternalId = "bT8BQ8WxGHxi6f0c", - OrganizationCode = "w6", - PrivateMoneyIds = new string[]{"34ba376d-0437-41c6-8220-a567c86ea739", "fd643b9b-c192-4a90-9cb8-1459c9b2d3e7", "26639617-61ea-4b12-be03-2494ab3663a7", "8d502c53-31cb-4f93-8ba8-a1fcf5d66752", "90cbea8c-6bc7-4789-8c51-71af70799c70", "4fab5cce-8093-4a94-a6a1-8d0cbc804d07", "19fc2c78-ddc0-46b8-8963-2b6986fd9ae0", "841e4321-a7ce-4d72-8bf7-2b654d5e9d15", "9db5a4c7-d2ca-4974-aec7-7471da68cdae"}, - CanTopupPrivateMoneyIds = new string[]{"6271c822-ff29-41dd-8f64-03accc139cd3", "13f054a4-39fe-471b-b039-d2b07b2ba0a6", "1aaedee3-5169-433d-a5fb-7b40dc3626b6", "052c77fc-d7c4-49b0-a947-c6e46a36dce0", "9ca6de91-1995-4064-8fd6-caa411532d7a", "7cc4d821-f04c-41d4-b6f4-c7fbfe8cb569", "110985f2-d1f7-43ca-8cdf-7ebbe4005b8c", "aa271425-8e75-4608-b209-d3beabd18e11", "4520e9c2-afab-4b79-9299-589fdf6817f2", "9f651907-4d0e-4210-8194-65c7eb705a9d"}, + Email = "p1TbuySIy9@vMfj.com", + ExternalId = "s9RSVIuRLJamUgod9vJ", + OrganizationCode = "5sO0P-En--Zn-CZ--ga-2-0-GWq-wO-V", + PrivateMoneyIds = new string[]{"80343906-659b-4c85-94a6-44011287311e", "471eac5a-a4e7-4001-b5e5-069aa4784324", "dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515", "40ca7903-b5a8-43a6-b09e-e0d90b79398a", "c602736c-62f2-4d05-acfb-415d36716a4f", "4240bbaa-243e-4838-8a45-351b9762407c", "f4eb71a9-671b-4c89-b34c-c8b7ecc0c5e7", "015b5bd7-36b6-4870-96ad-594f9f064d0d"}, + CanTopupPrivateMoneyIds = new string[]{"6c0731ae-4a87-465a-b480-0b6a722a52d2", "44d1e5c6-8082-4ece-a136-c67f8cf3f71d", "ec607884-0f24-49e8-a97b-312518633a6f", "a24d5b42-f44f-421b-be94-89e9dd964268", "10b5069b-d493-4ba0-9bbc-fce4da842b7f", "fc34212d-dc04-4248-a776-f2e5ab2ae0ea", "a379ed96-2990-463b-a210-521b6c634923", "0d0da1cc-01fe-4ae6-a837-84c8abca658a"}, }; 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ) { - Tel = "0271124847", - Email = "WtKg2YB5Yx@VquV.com", - ExternalId = "YsbDyysRisRQ9ectqoj4y", - OrganizationCode = "iACs-2Te-qCs-04u49e", - PrivateMoneyIds = new string[]{"6c55f7f1-f2fc-4c86-b719-009d2ec9b34b", "93b575ee-a135-4d80-8ea0-c053ef055748", "d7d2b020-955f-4949-8a2c-2cb7badb7eed", "33c63262-d963-44b5-b119-3be27df9010d", "93bb8f7f-2a4f-44ee-8dd9-96151adc7e23", "42760a06-d1c3-4ad9-b8c1-c4abc01d1410", "6e4ceab4-f0c1-46ea-89fc-91b489fa8c37", "8cec9cf0-77af-45a8-a7b6-0d9393fb2c71", "b0a8af74-1149-46a4-b361-3906d6c93643"}, - CanTopupPrivateMoneyIds = new string[]{"18f3a070-09f4-4eb8-b015-614792e7da2d", "6eff7aa1-ccfa-4748-8c31-fd467502c452", "6ce7de57-af2f-489d-968c-47e5a7de3fa5", "29ae1736-39fa-4dcc-9f63-80f77b9e0ea8", "dfbefa85-91a6-4cfe-8da3-f8c8bd68a061", "0a87e9c0-58e5-4cca-8705-840631525ac6", "99298203-b458-4cf1-bf80-788eab00018e", "c9a2ec5b-a708-4ef7-81d9-867b306a0237", "7dfe793c-5135-4573-84fd-cb1e27196f94"}, + Tel = "058821-568", + Email = "czyOhMWAPb@HXyt.com", + ExternalId = "djUT8FkE6WXDem2rgSzz", + OrganizationCode = "P-25--m-O-9-G-66p--7x-3KKsm18", + PrivateMoneyIds = new string[]{"cdadda4c-ae3d-44a8-b1b6-71efe4f7ffab", "2dee894e-6e41-4933-a3ba-e57c1b159dbe", "249aeca6-98da-4e34-8eee-aabbd48f12de"}, + CanTopupPrivateMoneyIds = new string[]{"6235a749-7afc-4245-aae1-f94e471e7536", "8e7b5480-1964-49a9-a223-ff59d72762a2", "3d989b06-fd85-495a-94d9-8e20c1af50df", "085af4b4-8713-4dfc-81df-90f0b1a40500", "703d2439-fdaf-4f06-9a62-4b5aeca7db67", "f3b46622-ce73-4e88-a6e3-f88f56d19b42", "71355128-2756-40c0-9d8a-bbb3377d5e0c", "e76bc070-fe58-4c69-90d0-a4feed9ff3e9", "819bbbd7-f3b2-4519-be9f-358065f1e097"}, }; 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ) { - Address = "QD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVq", - Tel = "0132-5228-272", - Email = "hqQxq9FR8V@F2gH.com", - ExternalId = "7EAnlFEgMmyi8jmBN0T80aLvrKoR", - OrganizationCode = "--0MM-7zgD-O51ei3O-O74Q-07S-", - PrivateMoneyIds = new string[]{"585e6c88-d2de-4d11-afe8-42fd31b35ba8", "ee5834ee-7929-4e10-9890-c95e409e9333", "4587ef58-7af1-49ed-9baf-738f7e3cd683", "42efce9a-bcc0-4817-83d3-46cda270fec4", "668863bc-00fa-49ba-acae-4765ac140245", "b3887444-374b-441c-a3ce-6a124b8bcb1a", "860f63fe-30c8-469b-8249-41d50aa83bc2"}, - CanTopupPrivateMoneyIds = new string[]{"26998479-7f39-4bdf-9430-20de4c168b7e"}, + Address = "Um4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQ", + Tel = "05-7596-791", + Email = "BJMiWPv5dA@bUBW.com", + ExternalId = "ta68v79KNgsodWT1kP64c", + OrganizationCode = "KR7nb", + PrivateMoneyIds = new string[]{"e5b4f3eb-3362-484e-9f8a-2b5798d5df14", "e11f2da7-242a-4907-b418-5a80213c7f3f", "b7ee6134-0178-42b5-ac5b-9714ab36d9f0", "1ddf1794-cc21-4319-a91c-a0abadda7660"}, + CanTopupPrivateMoneyIds = new string[]{"9c78491a-8c65-4f6c-8878-9b7f00f1aa36", "06feb18e-bb7d-47da-b7b3-fdc15ea2eace", "0b6bd05d-ebeb-4524-a7df-657bdb1f1b72", "c8dd41ae-0a04-4ce5-8e4d-d25356c9c581", "1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599", "af424593-329d-4569-a70e-99627c770734", "0df948d9-f062-4033-b436-71eb9bc7586d", "c2885e76-1879-4e8f-a87c-eba8c16c4d7c", "c3f1c30e-a60f-4103-aa22-17c4e2a21637", "bd8577a2-1109-49d9-a186-62fe51976f2d"}, }; 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( - "uSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58j" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" ) { - PostalCode = "9263812", - Address = "yyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0", - Tel = "005-662260", - Email = "0zzwPN5DIh@cy9t.com", - ExternalId = "g03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5", - OrganizationCode = "z8hnL--zNQnByZtTu", - PrivateMoneyIds = new string[]{"13fca0ab-6458-45e0-a1b9-f6217e313f2d", "3b97d6de-5d39-4c80-a06d-eeb324498645", "d8144299-d97b-4221-ace1-8540b35cba29", "9f1e4482-2860-492e-bb1e-e8bdcee31f38"}, - CanTopupPrivateMoneyIds = new string[]{"5edf66e3-d6a0-4419-9cd2-0dfd2e5b3e20", "616cac39-e18a-49b4-81ca-c53f56d2711a", "1e2a5b67-1e1d-4111-8897-1107b6e19695", "60ecbaf4-d612-4d29-a958-43f28e316e1f", "15db6366-f23a-442e-a9a4-97e0c270dabd", "55d62134-b9b5-4a19-8419-0b67880f069a", "858b7023-f5ad-4464-be2e-78cf66c776d2", "2b78c2ea-52b3-4c9d-bdfe-064ad50b2aac", "3b39ce6c-f880-47ae-a1b3-3a50e140f18e", "e5d56aa8-2c0f-4366-a292-b7bf00469d16"}, + PostalCode = "1601719", + Address = "h5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3", + Tel = "0918-0596", + Email = "SJX1OiNUbq@HXuS.com", + ExternalId = "WeM8VL", + OrganizationCode = "oq8n09-S2v-Go", + PrivateMoneyIds = new string[]{"3cd1c838-0bd6-489d-86ee-5eeaaa745ac6", "b5fd5c91-025b-4fef-8589-6d7d373b6973"}, + CanTopupPrivateMoneyIds = new string[]{"c4e163e6-5eab-43bf-879e-cd3652d0d908", "d20e9714-2bb4-4809-ad76-157c12616dd8", "2ad2094b-2a0e-43bd-83a3-de3027d6a479", "760dccc9-318b-422e-a02f-c03a2245ef08", "3364f713-fcd9-4644-b2a2-1dcf33e448ed"}, }; 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 5d9c86a..1203a22 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( - "6da01c20-d03e-4221-b4eb-e4af22dc13dc", - "1cdfa084-85b1-4f99-9c06-09e99f062caf", - "a093a4dc-da6e-4260-ab2c-24d17011f9aa" + "13ea8a00-1672-42e9-8759-7ae9b93c833d", + "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", + "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" ); 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( - "6da01c20-d03e-4221-b4eb-e4af22dc13dc", - "1cdfa084-85b1-4f99-9c06-09e99f062caf", - "a093a4dc-da6e-4260-ab2c-24d17011f9aa" + "13ea8a00-1672-42e9-8759-7ae9b93c833d", + "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", + "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" ) { - RequestId = "419e8a17-63f2-447b-9769-b7ebe2579d40", + RequestId = "75afb6bb-7a0e-498e-8626-5857d985893b", }; 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( - "6da01c20-d03e-4221-b4eb-e4af22dc13dc", - "1cdfa084-85b1-4f99-9c06-09e99f062caf", - "a093a4dc-da6e-4260-ab2c-24d17011f9aa" + "13ea8a00-1672-42e9-8759-7ae9b93c833d", + "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", + "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" ) { Metadata = "{\"key\":\"value\"}", - RequestId = "01bf3c74-e24d-4284-9d93-789f49eab28b", + RequestId = "5c5ecec9-0f1b-45e5-ab8d-252faf1ef03e", }; 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( - "6da01c20-d03e-4221-b4eb-e4af22dc13dc", - "1cdfa084-85b1-4f99-9c06-09e99f062caf", - "a093a4dc-da6e-4260-ab2c-24d17011f9aa" + "13ea8a00-1672-42e9-8759-7ae9b93c833d", + "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", + "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" ) { - Description = "K0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePo", + Description = "B413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210Vo", Metadata = "{\"key\":\"value\"}", - RequestId = "10083b2b-1dcd-4421-9c7d-1991ae9a8080", + RequestId = "ef50e897-cc7a-4959-ab43-f3fa6bf94d81", }; 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( - "6da01c20-d03e-4221-b4eb-e4af22dc13dc", - "1cdfa084-85b1-4f99-9c06-09e99f062caf", - "a093a4dc-da6e-4260-ab2c-24d17011f9aa" + "13ea8a00-1672-42e9-8759-7ae9b93c833d", + "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", + "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" ) { - PointExpiresAt = "2022-09-07T05:49:14.000000+09:00", - Description = "nAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21Ez", + PointExpiresAt = "2023-04-17T19:00:11.000000Z", + Description = "4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21", Metadata = "{\"key\":\"value\"}", - RequestId = "821be759-2cfd-4c1a-b685-959795b54598", + RequestId = "ef9cdccd-f19a-4961-af30-71e90fcf08bc", }; 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( - "6da01c20-d03e-4221-b4eb-e4af22dc13dc", - "1cdfa084-85b1-4f99-9c06-09e99f062caf", - "a093a4dc-da6e-4260-ab2c-24d17011f9aa" + "13ea8a00-1672-42e9-8759-7ae9b93c833d", + "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", + "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" ) { - PointAmount = 5685, - PointExpiresAt = "2023-07-16T11:54:58.000000+09:00", - Description = "3e8C68gL6nh3hboA1Va", + PointAmount = 3202, + PointExpiresAt = "2024-03-02T12:46:31.000000Z", + Description = "x72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpT", Metadata = "{\"key\":\"value\"}", - RequestId = "c81a23d8-e551-4171-9e23-7dd933acd091", + RequestId = "fced7420-b56c-4bd5-98a5-5f4be056920c", }; 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( - "6da01c20-d03e-4221-b4eb-e4af22dc13dc", - "1cdfa084-85b1-4f99-9c06-09e99f062caf", - "a093a4dc-da6e-4260-ab2c-24d17011f9aa" + "13ea8a00-1672-42e9-8759-7ae9b93c833d", + "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", + "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" ) { - MoneyAmount = 4732, - PointAmount = 890, - PointExpiresAt = "2022-04-19T07:28:35.000000+09:00", - Description = "7H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08U", + MoneyAmount = 5461, + PointAmount = 555, + PointExpiresAt = "2022-07-30T13:12:06.000000Z", + Description = "ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVN", Metadata = "{\"key\":\"value\"}", - RequestId = "2d043ee2-928f-4549-9858-ede60f677d61", + RequestId = "a0db3eec-5bbf-4c95-8f0e-96e89e7c004e", }; 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( - "6da01c20-d03e-4221-b4eb-e4af22dc13dc", - "1cdfa084-85b1-4f99-9c06-09e99f062caf", - "a093a4dc-da6e-4260-ab2c-24d17011f9aa" + "13ea8a00-1672-42e9-8759-7ae9b93c833d", + "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", + "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" ) { - BearPointShopId = "61542cfa-2ec9-4589-9a57-176fa045c3e7", - MoneyAmount = 4700, - PointAmount = 7780, - PointExpiresAt = "2023-04-19T22:43:44.000000+09:00", - Description = "xJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3", + BearPointShopId = "db94a50f-e06f-4452-8555-1b698d3a02ef", + MoneyAmount = 7394, + PointAmount = 5950, + PointExpiresAt = "2020-03-02T05:31:46.000000Z", + Description = "no3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9", Metadata = "{\"key\":\"value\"}", - RequestId = "5374f43e-5b14-4059-9db3-c8959f351484", + RequestId = "f5ac24ee-824d-4fbc-ab66-fb2cda88657f", }; 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 6967590..d4e02ff 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( - "6e97c991-f333-4e85-9d97-41651068ba0e", - "a35bffeb-84db-483a-bb0f-d5b4616664a7" + "5182f51c-b2c1-4d48-ae90-3958c0ce3233", + "508dfc0b-9993-4e4c-8ff3-ab36127350a5" ); 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( - "6e97c991-f333-4e85-9d97-41651068ba0e", - "a35bffeb-84db-483a-bb0f-d5b4616664a7" + "5182f51c-b2c1-4d48-ae90-3958c0ce3233", + "508dfc0b-9993-4e4c-8ff3-ab36127350a5" ) { - RequestId = "c675590e-d8a5-4526-80e1-e700e6849797", + RequestId = "60fe0e50-aba1-4233-bb7c-2964f54d34af", }; 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 00da758..af109d6 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( - "04799551-57d2-44c1-99d0-935f0ba457f9", - "89296511-b3fe-4c6d-a552-178285397c97", - "a8ee8466-512e-41a8-8681-5d4ff1a02148" + "7d0c35ee-368e-4367-b1b9-7450d58a908a", + "03b55bbd-4b51-4d0a-a651-09f86bc0644b", + "3e4e52d2-8a22-4bf6-858b-12737d17e30e" ); 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( - "04799551-57d2-44c1-99d0-935f0ba457f9", - "89296511-b3fe-4c6d-a552-178285397c97", - "a8ee8466-512e-41a8-8681-5d4ff1a02148" + "7d0c35ee-368e-4367-b1b9-7450d58a908a", + "03b55bbd-4b51-4d0a-a651-09f86bc0644b", + "3e4e52d2-8a22-4bf6-858b-12737d17e30e" ) { - Description = "sPVjb9UC", + Description = "f3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98", }; 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( - "04799551-57d2-44c1-99d0-935f0ba457f9", - "89296511-b3fe-4c6d-a552-178285397c97", - "a8ee8466-512e-41a8-8681-5d4ff1a02148" + "7d0c35ee-368e-4367-b1b9-7450d58a908a", + "03b55bbd-4b51-4d0a-a651-09f86bc0644b", + "3e4e52d2-8a22-4bf6-858b-12737d17e30e" ) { - PointExpiresAt = "2020-09-01T03:43:30.000000+09:00", - Description = "PcYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3ge", + PointExpiresAt = "2020-12-19T08:10:59.000000Z", + Description = "RslDBuoJSIFUrTRne91u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6r", }; 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( - "04799551-57d2-44c1-99d0-935f0ba457f9", - "89296511-b3fe-4c6d-a552-178285397c97", - "a8ee8466-512e-41a8-8681-5d4ff1a02148" + "7d0c35ee-368e-4367-b1b9-7450d58a908a", + "03b55bbd-4b51-4d0a-a651-09f86bc0644b", + "3e4e52d2-8a22-4bf6-858b-12737d17e30e" ) { - PointAmount = 3554, - PointExpiresAt = "2021-12-19T11:45:32.000000+09:00", - Description = "vAwjzG8UYapgA4DXNtjsg9PgQ", + PointAmount = 7732, + PointExpiresAt = "2020-11-06T18:59:57.000000Z", + Description = "uMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsd", }; 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( - "04799551-57d2-44c1-99d0-935f0ba457f9", - "89296511-b3fe-4c6d-a552-178285397c97", - "a8ee8466-512e-41a8-8681-5d4ff1a02148" + "7d0c35ee-368e-4367-b1b9-7450d58a908a", + "03b55bbd-4b51-4d0a-a651-09f86bc0644b", + "3e4e52d2-8a22-4bf6-858b-12737d17e30e" ) { - MoneyAmount = 2716, - PointAmount = 8016, - PointExpiresAt = "2020-04-07T19:42:20.000000+09:00", - Description = "n4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLV", + MoneyAmount = 3726, + PointAmount = 4261, + PointExpiresAt = "2022-09-28T03:30:59.000000Z", + Description = "EcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rr", }; 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 10efe3f..806b78f 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( - "5d46b0e9-6e35-44ce-a749-829ba63c5ff3", - "9db57a62-6fec-4355-a2aa-3ae59cababac", - "f5671a2f-b644-42f1-be24-bcf51949d3e9", - 6160.0 + "b197b1f9-901d-4a36-b372-eb1f540fbc52", + "4b6a223c-2015-467b-975a-d2cef1d66243", + "4051b039-c9e0-4fe2-9c2e-9b112a3bf95d", + 8212.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( - "5d46b0e9-6e35-44ce-a749-829ba63c5ff3", - "9db57a62-6fec-4355-a2aa-3ae59cababac", - "f5671a2f-b644-42f1-be24-bcf51949d3e9", - 6160.0 + "b197b1f9-901d-4a36-b372-eb1f540fbc52", + "4b6a223c-2015-467b-975a-d2cef1d66243", + "4051b039-c9e0-4fe2-9c2e-9b112a3bf95d", + 8212.0 ) { - RequestId = "7bad9951-84ab-43dd-8a0f-c84c2183bc38", + RequestId = "5d254159-6728-4b16-82ca-b055184311a7", }; 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( - "5d46b0e9-6e35-44ce-a749-829ba63c5ff3", - "9db57a62-6fec-4355-a2aa-3ae59cababac", - "f5671a2f-b644-42f1-be24-bcf51949d3e9", - 6160.0 + "b197b1f9-901d-4a36-b372-eb1f540fbc52", + "4b6a223c-2015-467b-975a-d2cef1d66243", + "4051b039-c9e0-4fe2-9c2e-9b112a3bf95d", + 8212.0 ) { - Description = "RreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUX", - RequestId = "b08eea04-dd6d-4f72-a3b2-bedf1700c79f", + Description = "FWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6j", + RequestId = "7c6223bb-b16e-41c4-ba45-41880740d26d", }; 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( - "5d46b0e9-6e35-44ce-a749-829ba63c5ff3", - "9db57a62-6fec-4355-a2aa-3ae59cababac", - "f5671a2f-b644-42f1-be24-bcf51949d3e9", - 6160.0 + "b197b1f9-901d-4a36-b372-eb1f540fbc52", + "4b6a223c-2015-467b-975a-d2cef1d66243", + "4051b039-c9e0-4fe2-9c2e-9b112a3bf95d", + 8212.0 ) { Metadata = "{\"key\":\"value\"}", - Description = "0VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVw", - RequestId = "9a8c6942-c0c2-4753-aec2-2bb9dba4b5ce", + Description = "inmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpo", + RequestId = "29933978-8f36-43f5-87d8-101fa80a7e4c", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateUserDevice.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateUserDevice.cs index 63be439..59d6abb 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( - "4a599929-8fce-49a7-bd05-338a9b37e89b" + "f67e3c61-3344-4f68-8af0-1e46403a8c1c" ); Response.UserDevice response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task CreateUserDevice1() { try { Request.CreateUserDevice request = new Request.CreateUserDevice( - "4a599929-8fce-49a7-bd05-338a9b37e89b" + "f67e3c61-3344-4f68-8af0-1e46403a8c1c" ) { Metadata = "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}", }; diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs index 379b725..ef61806 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs @@ -25,8 +25,8 @@ public async Task CreateWebhook0() { try { Request.CreateWebhook request = new Request.CreateWebhook( - "process_user_stats_operation", - "LW3FkW" + "bulk_shops", + "iR11TAH" ); 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 9b439e8..15ed9b3 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( - "78993f7e-a95e-4e84-8ce0-7a7b0adcc451" + "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" ); 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( - "78993f7e-a95e-4e84-8ce0-7a7b0adcc451" + "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" ) { - Cashback = false, + Cashback = true, }; 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 ba12318..fb32a87 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( - "f65a840e-fcc1-4358-ba02-ad566c4a794a" + "f1cd1df0-e123-470b-851d-f80e1b5f1c86" ); 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 cfe0971..165f4f7 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( - "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" + "e2f27231-d218-406e-b371-622b2afd45f7" ); 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 eaa5d6a..68f8e83 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( - "d79ada44-2554-41d3-a753-5725590e9c63" + "0de2a38c-c7bc-4b5d-be03-229e54b13590" ); 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( - "d79ada44-2554-41d3-a753-5725590e9c63" + "0de2a38c-c7bc-4b5d-be03-229e54b13590" ) { - TransferTypes = new string[]{"exchange-outflow", "exchange-inflow", "refund-topup", "use-coupon", "refund-coupon", "payment", "refund-campaign", "campaign-topup", "refund-exchange-outflow"}, + TransferTypes = new string[]{"use-coupon", "topup", "refund-payment", "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( - "d79ada44-2554-41d3-a753-5725590e9c63" + "0de2a38c-c7bc-4b5d-be03-229e54b13590" ) { - To = "2022-08-23T05:52:55.000000+09:00", - TransferTypes = new string[]{"exchange-outflow", "use-coupon", "refund-payment", "topup", "payment", "exchange-inflow", "refund-exchange-outflow"}, + To = "2021-11-24T19:26:35.000000Z", + TransferTypes = new string[]{"refund-campaign", "campaign-topup"}, }; 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( - "d79ada44-2554-41d3-a753-5725590e9c63" + "0de2a38c-c7bc-4b5d-be03-229e54b13590" ) { - From = "2022-12-23T00:17:08.000000+09:00", - To = "2023-06-07T07:45:11.000000+09:00", - TransferTypes = new string[]{"exchange-outflow", "refund-campaign", "exchange-inflow", "topup", "refund-topup", "refund-payment", "refund-exchange-inflow", "refund-coupon", "refund-exchange-outflow", "use-coupon"}, + From = "2022-12-02T02:52:24.000000Z", + To = "2024-02-07T22:36:01.000000Z", + TransferTypes = new string[]{"refund-payment", "refund-exchange-inflow", "refund-coupon", "exchange-inflow"}, }; 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 c31cafd..1d6067e 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( - "fbeff4d7-bade-42f9-8292-022b56bcd10d" + "e58bf7ca-9507-4ca7-8c7c-f29834f6cc7b" ); 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 af32556..18a2384 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( - "365b7582-7ecb-4615-b86b-7d81d9a59b46" + "eacd3507-5b4d-416f-9c36-412c6bd7d410" ); 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 4b2fb70..646026c 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( - "3248607e-fae2-4731-9159-0f6de7c234bc" + "889cfd0f-1711-4dc9-901f-71072893803b" ); 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 f60bcda..a619793 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( - "18ee4204-4757-45c4-ba4c-c10562fb9026" + "76f6c609-4f7a-46b2-bbdc-601fe6a71ffa" ); 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 dffb6ba..709cd8e 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( - "d6c55ce8-5474-48e0-8290-52fd34199930" + "df7c34c3-b028-41a7-bba7-67852b9ce230" ); 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 23fab4a..7f5fe3a 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( - "HFpFsNPJmzuH1GHYOOmiUv" + "yrfJOMPlYYA9d24g2qlkQe" ); 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 6b951f5..7763c3a 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( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ); 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( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { - Email = "Icm0Sp2Rlu@FOAx.com", + Email = "p2RluFOAxJ@TKKl.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( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { - Tel = "047-0551-2657", - Email = "TcJlnsa7zu@y1tu.com", + Tel = "00555265714", + Email = "cJlnsa7zuy@1tus.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,7 +75,7 @@ public async Task GetCustomerAccounts3() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { ExternalId = "dw", Tel = "071-69745487", @@ -94,7 +94,7 @@ public async Task GetCustomerAccounts4() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { Status = "suspended", ExternalId = "lnKRmCd4n", @@ -114,7 +114,7 @@ public async Task GetCustomerAccounts5() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { IsSuspended = false, Status = "active", @@ -135,9 +135,9 @@ public async Task GetCustomerAccounts6() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { - CreatedAtTo = "2022-07-27T22:59:50.000000+09:00", + CreatedAtTo = "2022-07-27T22:59:50.000000Z", IsSuspended = true, Status = "pre-closed", ExternalId = "tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc", @@ -157,15 +157,15 @@ public async Task GetCustomerAccounts7() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { - CreatedAtFrom = "2021-03-24T19:42:09.000000+09:00", - CreatedAtTo = "2023-05-02T07:02:07.000000+09:00", + CreatedAtFrom = "2021-03-24T19:42:09.000000Z", + CreatedAtTo = "2020-09-24T18:38:11.000000Z", IsSuspended = true, - Status = "pre-closed", - ExternalId = "XfPASw8jPQ0h", - Tel = "062-07305693", - Email = "xkUSOX0vTg@yFK1.com", + Status = "active", + ExternalId = "PASw8jPQ0hMJ4nPgNJOUuVI3xkUSOX0vTgyFK1F", + Tel = "002-97-992", + Email = "exAarzlUll@rgsQ.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( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { - PerPage = 6034, - CreatedAtFrom = "2022-02-08T11:59:01.000000+09:00", - CreatedAtTo = "2021-10-26T00:50:23.000000+09:00", + PerPage = 6435, + CreatedAtFrom = "2022-12-18T13:21:30.000000Z", + CreatedAtTo = "2022-10-28T02:45:21.000000Z", IsSuspended = true, - Status = "pre-closed", - ExternalId = "7pl9MWii2exAarzlUllr", - Tel = "01-1105-7098", - Email = "bZQuPYAKNL@vTyM.com", + Status = "active", + ExternalId = "YeKIbZQuPYAKNLvTyMcIYl", + Tel = "079352848", + Email = "Pv9LO3MtPy@t1wT.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( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" ) { - Page = 7048, - PerPage = 7330, - CreatedAtFrom = "2022-02-14T10:49:45.000000+09:00", - CreatedAtTo = "2023-05-04T06:41:23.000000+09:00", - IsSuspended = false, - Status = "suspended", - ExternalId = "LoYSz5jRHNPv9LO3MtPyt1wTnktL8AYkBvD7caRgncONv", - Tel = "085-5471-045", - Email = "87oiAkJDB6@ZsUU.com", + Page = 8687, + PerPage = 8494, + CreatedAtFrom = "2024-02-11T20:15:48.000000Z", + CreatedAtTo = "2023-10-06T20:45:00.000000Z", + IsSuspended = true, + Status = "active", + ExternalId = "Yk", + Tel = "004073-175", + Email = "ncONv8Kje2@pUTW.com", }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetExternalTransactionByRequestId.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetExternalTransactionByRequestId.cs new file mode 100644 index 0000000..ad26bd8 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetExternalTransactionByRequestId.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 TestGetExternalTransactionByRequestId + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task GetExternalTransactionByRequestId0() + { + try { + Request.GetExternalTransactionByRequestId request = new Request.GetExternalTransactionByRequestId( + "c83d8702-6cc0-4a87-97c0-6287c6cb972a" + ); + Response.ExternalTransactionDetail 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/TestGetPrivateMoneyOrganizationSummaries.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneyOrganizationSummaries.cs index 1d87ab4..796b500 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( - "04877a4a-51b7-4f2e-a0dc-e2b746507439" + "25c2238f-cf81-4930-aefa-23951ca983f1" ); 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( - "04877a4a-51b7-4f2e-a0dc-e2b746507439" + "25c2238f-cf81-4930-aefa-23951ca983f1" ) { - Page = 8328, + Page = 3863, }; 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( - "04877a4a-51b7-4f2e-a0dc-e2b746507439" + "25c2238f-cf81-4930-aefa-23951ca983f1" ) { - PerPage = 5940, - Page = 2881, + PerPage = 4164, + Page = 1671, }; 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( - "04877a4a-51b7-4f2e-a0dc-e2b746507439" + "25c2238f-cf81-4930-aefa-23951ca983f1" ) { - From = "2022-12-02T11:37:21.000000+09:00", - To = "2021-10-27T02:38:26.000000+09:00", + From = "2023-02-24T15:38:45.000000Z", + To = "2020-06-01T22:27:12.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( - "04877a4a-51b7-4f2e-a0dc-e2b746507439" + "25c2238f-cf81-4930-aefa-23951ca983f1" ) { - From = "2023-02-25T03:00:31.000000+09:00", - To = "2023-08-28T05:14:29.000000+09:00", - Page = 8021, + From = "2022-04-29T04:44:50.000000Z", + To = "2023-02-28T01:22:24.000000Z", + Page = 2940, }; 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( - "04877a4a-51b7-4f2e-a0dc-e2b746507439" + "25c2238f-cf81-4930-aefa-23951ca983f1" ) { - From = "2023-04-04T12:31:19.000000+09:00", - To = "2023-06-14T04:32:52.000000+09:00", - PerPage = 6307, - Page = 4064, + From = "2020-06-22T06:48:08.000000Z", + To = "2023-10-27T22:37:01.000000Z", + PerPage = 1815, + Page = 1792, }; 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 fe11d91..724636d 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( - "f17ef70a-a451-4347-8b01-d341dd552043" + "ff19d13e-32f3-4315-a0c8-db1c10293429" ); 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( - "f17ef70a-a451-4347-8b01-d341dd552043" + "ff19d13e-32f3-4315-a0c8-db1c10293429" ) { - To = "2023-09-17T19:53:54.000000+09:00", + To = "2023-06-06T15:44:55.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( - "f17ef70a-a451-4347-8b01-d341dd552043" + "ff19d13e-32f3-4315-a0c8-db1c10293429" ) { - From = "2023-08-05T12:26:25.000000+09:00", - To = "2024-01-25T02:00:36.000000+09:00", + From = "2022-07-27T19:34:17.000000Z", + To = "2022-10-30T18:15:11.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 0abb07f..571aa12 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 = 7917, + PerPage = 6996, }; 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 = 3088, - PerPage = 1322, + Page = 2568, + PerPage = 7422, }; 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 = "lX", - Page = 7591, - PerPage = 2614, + OrganizationCode = "qr-5a-89", + Page = 972, + PerPage = 207, }; 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 4d03b06..1ea98a9 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( - "99ac3dbf-50ac-4d7f-a8fb-692c67ecca38" + "026fffa8-2866-4283-98da-548e8efcfc76" ); 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 ce37e78..196e12f 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( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" + "31ecb769-3144-4a83-95a2-b72406deb863" ); 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( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" + "31ecb769-3144-4a83-95a2-b72406deb863" ) { IsSuspended = false, }; @@ -57,10 +57,10 @@ public async Task GetShopAccounts2() { try { Request.GetShopAccounts request = new Request.GetShopAccounts( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" + "31ecb769-3144-4a83-95a2-b72406deb863" ) { - CreatedAtTo = "2023-10-10T07:01:36.000000+09:00", - IsSuspended = false, + CreatedAtTo = "2020-05-06T02:02:55.000000Z", + IsSuspended = true, }; 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( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" + "31ecb769-3144-4a83-95a2-b72406deb863" ) { - CreatedAtFrom = "2022-03-15T18:57:12.000000+09:00", - CreatedAtTo = "2022-11-02T09:39:16.000000+09:00", + CreatedAtFrom = "2023-03-17T16:04:05.000000Z", + CreatedAtTo = "2024-03-19T06:01:45.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( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" + "31ecb769-3144-4a83-95a2-b72406deb863" ) { - PerPage = 2047, - CreatedAtFrom = "2020-10-29T13:03:08.000000+09:00", - CreatedAtTo = "2022-09-06T09:13:55.000000+09:00", + PerPage = 4823, + CreatedAtFrom = "2023-07-22T08:29:37.000000Z", + CreatedAtTo = "2020-07-29T13:51:14.000000Z", IsSuspended = false, }; Response.PaginatedAccountWithUsers response = await request.Send(client); @@ -114,13 +114,13 @@ public async Task GetShopAccounts5() { try { Request.GetShopAccounts request = new Request.GetShopAccounts( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" + "31ecb769-3144-4a83-95a2-b72406deb863" ) { - Page = 9914, - PerPage = 9044, - CreatedAtFrom = "2023-03-04T08:24:04.000000+09:00", - CreatedAtTo = "2021-01-14T14:41:40.000000+09:00", - IsSuspended = false, + Page = 4360, + PerPage = 8484, + CreatedAtFrom = "2022-04-08T21:42:45.000000Z", + CreatedAtTo = "2023-03-08T17:36:02.000000Z", + IsSuspended = true, }; Response.PaginatedAccountWithUsers response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetTransaction.cs index 912c09e..16fb949 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( - "f97b4c4c-a822-4868-95eb-b6c29b8c0583" + "2e4de732-c544-4c8a-abf6-377c6d8b3ed1" ); 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 de541a5..f0cf518 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( - "38cc6a4d-a220-488e-a5c1-ad2b32f9222c" + "48bc8c62-2ad7-4556-b56a-10e29599e25b" ); 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 b546056..adacaf9 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( - "3b8bf004-db9c-4895-9301-29ce399bc410" + "80fefd13-f87b-4e02-9bd0-49fc54345d7f" ); 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 f19d140..4be19ee 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( - "124a3fe8-1e88-4803-9195-15bbd1722f1a" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ); Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task ListAccountBalances1() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "124a3fe8-1e88-4803-9195-15bbd1722f1a" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) { Direction = "desc", }; @@ -57,10 +57,10 @@ public async Task ListAccountBalances2() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "124a3fe8-1e88-4803-9195-15bbd1722f1a" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) { - ExpiresAtTo = "2020-09-07T21:25:03.000000+09:00", - Direction = "asc", + ExpiresAtTo = "2020-10-07T18:59:38.000000Z", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,10 +75,10 @@ public async Task ListAccountBalances3() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "124a3fe8-1e88-4803-9195-15bbd1722f1a" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) { - ExpiresAtFrom = "2020-07-02T09:51:09.000000+09:00", - ExpiresAtTo = "2022-05-06T04:41:55.000000+09:00", + ExpiresAtFrom = "2020-09-07T21:25:03.000000Z", + ExpiresAtTo = "2022-05-06T04:41:55.000000Z", Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -94,12 +94,12 @@ public async Task ListAccountBalances4() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "124a3fe8-1e88-4803-9195-15bbd1722f1a" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) { PerPage = 3844, - ExpiresAtFrom = "2020-06-15T18:58:37.000000+09:00", - ExpiresAtTo = "2022-03-04T19:01:47.000000+09:00", - Direction = "desc", + ExpiresAtFrom = "2022-07-13T08:37:39.000000Z", + ExpiresAtTo = "2022-05-05T20:55:29.000000Z", + Direction = "asc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task ListAccountBalances5() { try { Request.ListAccountBalances request = new Request.ListAccountBalances( - "124a3fe8-1e88-4803-9195-15bbd1722f1a" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) { - Page = 3584, - PerPage = 7257, - ExpiresAtFrom = "2022-05-05T20:55:29.000000+09:00", - ExpiresAtTo = "2023-04-07T14:57:44.000000+09:00", - Direction = "asc", + Page = 677, + PerPage = 5673, + ExpiresAtFrom = "2021-09-28T23:27:27.000000Z", + ExpiresAtTo = "2020-10-21T06:08:14.000000Z", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListAccountExpiredBalances.cs b/src/PokepayPartnerCsharpSdk.Test/TestListAccountExpiredBalances.cs index be1958c..33c2576 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( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434" ); 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( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434" ) { - Direction = "asc", + Direction = "desc", }; 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( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434" ) { - ExpiresAtTo = "2022-11-08T09:57:39.000000+09:00", + ExpiresAtTo = "2020-03-19T18:01:03.000000Z", Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -75,10 +75,10 @@ public async Task ListAccountExpiredBalances3() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434" ) { - ExpiresAtFrom = "2021-02-10T04:23:33.000000+09:00", - ExpiresAtTo = "2021-11-27T03:23:28.000000+09:00", + ExpiresAtFrom = "2022-12-28T17:18:58.000000Z", + ExpiresAtTo = "2023-10-07T04:30:21.000000Z", Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -94,12 +94,12 @@ public async Task ListAccountExpiredBalances4() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434" ) { - PerPage = 9269, - ExpiresAtFrom = "2022-07-27T12:24:37.000000+09:00", - ExpiresAtTo = "2020-03-19T18:01:03.000000+09:00", - Direction = "desc", + PerPage = 9557, + ExpiresAtFrom = "2023-08-29T00:06:37.000000Z", + ExpiresAtTo = "2020-05-27T19:21:15.000000Z", + Direction = "asc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task ListAccountExpiredBalances5() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434" ) { - Page = 6531, - PerPage = 2579, - ExpiresAtFrom = "2023-10-07T04:30:21.000000+09:00", - ExpiresAtTo = "2023-04-20T20:38:29.000000+09:00", - Direction = "asc", + Page = 4163, + PerPage = 2955, + ExpiresAtFrom = "2021-01-23T23:18:48.000000Z", + ExpiresAtTo = "2021-06-11T20:14:34.000000Z", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs index bd02a57..25af837 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs @@ -25,7 +25,7 @@ public async Task ListBanks0() { try { Request.ListBanks request = new Request.ListBanks( - "39c1c405-463f-433a-9221-c32d45af6670" + "ea5fdab5-842f-485c-a2e6-34a79bdf9ccb" ); Response.Banks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListBanks1() { try { Request.ListBanks request = new Request.ListBanks( - "39c1c405-463f-433a-9221-c32d45af6670" + "ea5fdab5-842f-485c-a2e6-34a79bdf9ccb" ) { - PrivateMoneyId = "43eef62a-d011-4e5e-aff3-484e645e1e39", + PrivateMoneyId = "dbf85487-ccd6-4486-b439-a15ddc57b52a", }; Response.Banks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs index a93ac4a..acd637f 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 = 8374, - IsDisabled = true, + UpperLimitAmount = 3460, + IsDisabled = false, }; 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 = 414, - UpperLimitAmount = 3796, - IsDisabled = false, + LowerLimitAmount = 3003, + UpperLimitAmount = 2795, + IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -86,10 +86,10 @@ public async Task ListBills4() { try { Request.ListBills request = new Request.ListBills() { - ShopId = "db454cdb-2563-4ac8-b0e7-d118290fa6e1", - LowerLimitAmount = 937, - UpperLimitAmount = 3109, - IsDisabled = true, + ShopId = "a9696cec-9a6a-4ba0-b1b1-beff32bea9d1", + LowerLimitAmount = 6740, + UpperLimitAmount = 874, + IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -104,10 +104,10 @@ public async Task ListBills5() { try { Request.ListBills request = new Request.ListBills() { - ShopName = "j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYY", - ShopId = "94cc5713-2995-4c41-89a2-4575114060c5", - LowerLimitAmount = 3553, - UpperLimitAmount = 5130, + ShopName = "kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kX", + ShopId = "52fbc519-17e0-450f-a1fb-f1be62dd6c3d", + LowerLimitAmount = 6587, + UpperLimitAmount = 4324, IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); @@ -123,12 +123,12 @@ public async Task ListBills6() { try { Request.ListBills request = new Request.ListBills() { - CreatedTo = "2023-10-09T22:21:55.000000+09:00", - ShopName = "yo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4", - ShopId = "874fa5ed-b7f0-49db-8954-3ad99a1b5897", - LowerLimitAmount = 9824, - UpperLimitAmount = 8975, - IsDisabled = true, + CreatedTo = "2021-06-15T05:13:23.000000Z", + ShopName = "tCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acl", + ShopId = "cbef9865-d3d6-4852-b37c-6b70d28869e3", + LowerLimitAmount = 868, + UpperLimitAmount = 2036, + IsDisabled = false, }; 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 = "2020-04-02T18:45:34.000000+09:00", - CreatedTo = "2021-04-23T15:02:20.000000+09:00", - ShopName = "PcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCX", - ShopId = "fdbe7b8b-788f-4c00-a578-5635ad054457", - LowerLimitAmount = 2310, - UpperLimitAmount = 5672, - IsDisabled = false, + CreatedFrom = "2020-05-14T12:28:11.000000Z", + CreatedTo = "2024-03-24T00:30:45.000000Z", + ShopName = "tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGN", + ShopId = "1d2bbcf6-f616-4187-946d-ee24a6e9495d", + LowerLimitAmount = 7489, + UpperLimitAmount = 7853, + IsDisabled = true, }; 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 = "s7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cp", - CreatedFrom = "2020-08-28T22:18:38.000000+09:00", - CreatedTo = "2022-11-20T18:31:07.000000+09:00", - ShopName = "GDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f", - ShopId = "f11af890-deb6-4b64-a11b-8551a0684435", - LowerLimitAmount = 7259, - UpperLimitAmount = 2726, + Description = "tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7x", + CreatedFrom = "2022-02-22T17:09:50.000000Z", + CreatedTo = "2023-09-23T15:25:45.000000Z", + ShopName = "0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9n", + ShopId = "fd3b47eb-2dfc-4487-99fb-f6af6952f0dc", + LowerLimitAmount = 5451, + UpperLimitAmount = 8442, 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 = "9-7z-8w3g4i0s-qc68-o8Z-X1I", - Description = "0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKy", - CreatedFrom = "2024-03-08T02:15:34.000000+09:00", - CreatedTo = "2022-08-08T09:36:18.000000+09:00", - ShopName = "jnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A", - ShopId = "7d2e4932-835e-4c26-9b97-20be777d5ffd", - LowerLimitAmount = 5399, - UpperLimitAmount = 2300, - IsDisabled = false, + OrganizationCode = "-X-9", + Description = "AWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q6qvpD5ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEm", + CreatedFrom = "2022-09-10T23:11:39.000000Z", + CreatedTo = "2021-02-13T02:56:52.000000Z", + ShopName = "9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJT", + ShopId = "f599f724-1dd6-4f25-8e9a-8231f2b0485f", + LowerLimitAmount = 3970, + UpperLimitAmount = 9367, + IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,16 +209,16 @@ public async Task ListBills10() { try { Request.ListBills request = new Request.ListBills() { - PrivateMoneyId = "f64c70ea-1713-4f8e-96ae-45ef681ba46e", - OrganizationCode = "DfI8m6yK1Wqzvc4-Y64R3lG-HAr---Y", - Description = "XFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN", - CreatedFrom = "2021-11-25T19:10:18.000000+09:00", - CreatedTo = "2021-01-24T12:08:17.000000+09:00", - ShopName = "o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7Y", - ShopId = "e0022502-24e7-45bc-84d6-f9cb2470602d", - LowerLimitAmount = 1791, - UpperLimitAmount = 5791, - IsDisabled = false, + PrivateMoneyId = "76cb48ab-1022-4981-b43e-d1c122a753f6", + OrganizationCode = "iTiTkm9kUT0GB-p9y-O3MH-3KR--", + Description = "5Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4V", + CreatedFrom = "2021-03-17T00:57:33.000000Z", + CreatedTo = "2020-10-18T20:14:57.000000Z", + ShopName = "mGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWG", + ShopId = "bf8dab2c-ba87-45bf-8275-e96a11ee4fe3", + LowerLimitAmount = 7962, + UpperLimitAmount = 7066, + IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -233,16 +233,16 @@ public async Task ListBills11() { try { Request.ListBills request = new Request.ListBills() { - BillId = "C9Rf", - PrivateMoneyId = "9492ff51-775b-4fe9-bbd3-22f0bef68154", - OrganizationCode = "3--Ef1-KE6-WX0z-64b50d-", - Description = "4YN59s59xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd144X7ZEq8UGlMat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIb", - CreatedFrom = "2022-02-20T21:04:58.000000+09:00", - CreatedTo = "2022-05-21T04:35:18.000000+09:00", - ShopName = "CAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aY", - ShopId = "f2691625-d1ae-44f2-b17d-a48924f7fcf9", - LowerLimitAmount = 5681, - UpperLimitAmount = 1611, + 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); @@ -258,17 +258,17 @@ public async Task ListBills12() { try { Request.ListBills request = new Request.ListBills() { - PerPage = 8325, - BillId = "mQGL", - PrivateMoneyId = "1c61fd90-0b30-4427-894d-8c3357943445", - OrganizationCode = "--w", - Description = "yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0M", - CreatedFrom = "2023-05-31T16:56:40.000000+09:00", - CreatedTo = "2020-09-26T05:44:57.000000+09:00", - ShopName = "FpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIu", - ShopId = "f9ebff8b-a9c2-417c-b021-e59791e29e97", - LowerLimitAmount = 6845, - UpperLimitAmount = 5183, + PerPage = 7626, + 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-03-06T13:34:32.000000Z", + ShopName = "Rj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGick", + ShopId = "40f3ab70-3e8b-4265-9c7d-d67a288d4ce5", + LowerLimitAmount = 4023, + UpperLimitAmount = 7414, 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 = 9740, - PerPage = 3363, - BillId = "e25agSX", - PrivateMoneyId = "c0e1a4f9-56c5-49c7-a7be-48feb4db6ee9", - OrganizationCode = "y-5--4691-5rd-4V", - Description = "FUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFy", - CreatedFrom = "2020-12-13T08:42:34.000000+09:00", - CreatedTo = "2022-10-30T09:23:29.000000+09:00", - ShopName = "fyt6Bg95FB", - ShopId = "29a2f902-17b1-46a5-8a61-302328a8b58c", - LowerLimitAmount = 3383, - UpperLimitAmount = 9289, - IsDisabled = false, + Page = 873, + PerPage = 3868, + BillId = "ltNB5ed", + PrivateMoneyId = "d153fbea-8674-44b1-b5b7-49135a97ff9c", + OrganizationCode = "", + Description = "9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisL", + CreatedFrom = "2024-03-27T07:23:33.000000Z", + CreatedTo = "2023-01-07T18:05:13.000000Z", + ShopName = "o4aorO", + ShopId = "272f828f-a7a0-4ef7-86af-8b824979cc72", + LowerLimitAmount = 2925, + UpperLimitAmount = 1053, + IsDisabled = true, }; 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 d59ff91..cda5c51 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( - "b27ea352-2e2d-4cae-a5ee-cb1f85a55898" + "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" ); 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( - "b27ea352-2e2d-4cae-a5ee-cb1f85a55898" + "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" ) { - PerPage = 3103, + PerPage = 986, }; 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( - "b27ea352-2e2d-4cae-a5ee-cb1f85a55898" + "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" ) { - Page = 1698, - PerPage = 1442, + Page = 9569, + PerPage = 6767, }; 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 e616148..d58800e 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( - "9db32ffb-1a62-408c-9185-43f569bbe8e3" + "f3463bc2-349f-41a0-bdd1-7649fd7843ed" ); 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( - "9db32ffb-1a62-408c-9185-43f569bbe8e3" + "f3463bc2-349f-41a0-bdd1-7649fd7843ed" ) { - PerPage = 46, + PerPage = 3, }; 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( - "9db32ffb-1a62-408c-9185-43f569bbe8e3" + "f3463bc2-349f-41a0-bdd1-7649fd7843ed" ) { - Page = 8701, - PerPage = 45, + Page = 4010, + PerPage = 31, }; 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( - "9db32ffb-1a62-408c-9185-43f569bbe8e3" + "f3463bc2-349f-41a0-bdd1-7649fd7843ed" ) { - AvailableTo = "2024-01-16T05:32:29.000000+09:00", - Page = 7089, - PerPage = 8, + AvailableTo = "2020-03-21T02:19:51.000000Z", + Page = 2212, + PerPage = 28, }; 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( - "9db32ffb-1a62-408c-9185-43f569bbe8e3" + "f3463bc2-349f-41a0-bdd1-7649fd7843ed" ) { - AvailableFrom = "2021-04-11T14:53:13.000000+09:00", - AvailableTo = "2023-09-06T19:29:05.000000+09:00", - Page = 3548, - PerPage = 26, + AvailableFrom = "2020-01-12T10:32:20.000000Z", + AvailableTo = "2023-11-03T13:07:02.000000Z", + Page = 5677, + PerPage = 19, }; 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( - "9db32ffb-1a62-408c-9185-43f569bbe8e3" + "f3463bc2-349f-41a0-bdd1-7649fd7843ed" ) { - IsOngoing = true, - AvailableFrom = "2023-08-09T23:30:07.000000+09:00", - AvailableTo = "2022-10-12T18:53:44.000000+09:00", - Page = 6164, - PerPage = 19, + IsOngoing = false, + AvailableFrom = "2022-05-01T12:37:02.000000Z", + AvailableTo = "2023-07-28T00:52:46.000000Z", + Page = 561, + PerPage = 34, }; 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 b54d255..03037ce 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListChecks.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListChecks.cs @@ -53,8 +53,8 @@ public async Task ListChecks2() { try { Request.ListChecks request = new Request.ListChecks() { - IsOnetime = true, - IsDisabled = false, + IsOnetime = false, + IsDisabled = true, }; 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 = "wzKIFQc", - IsOnetime = false, - IsDisabled = false, + Description = "MFu", + IsOnetime = true, + IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -86,10 +86,10 @@ public async Task ListChecks4() { try { Request.ListChecks request = new Request.ListChecks() { - IssuerShopId = "e8ce85f0-a247-42ad-9aab-675a8dda7294", - Description = "lRU03Fa", - IsOnetime = true, - IsDisabled = true, + IssuerShopId = "6d9c9d8c-24ed-43b2-9001-703ddd0eae48", + Description = "Y5rxBRsFTy", + IsOnetime = false, + IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -104,10 +104,10 @@ public async Task ListChecks5() { try { Request.ListChecks request = new Request.ListChecks() { - CreatedTo = "2021-02-24T05:24:54.000000+09:00", - IssuerShopId = "227c18a6-2236-4a24-9650-7255a7309d3c", - Description = "pGrOCijX", - IsOnetime = true, + CreatedTo = "2020-03-16T19:15:17.000000Z", + IssuerShopId = "f502dcf6-9aee-4325-a5af-1c77ca1cba62", + Description = "d4rNZJsCq7", + IsOnetime = false, IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); @@ -123,10 +123,10 @@ public async Task ListChecks6() { try { Request.ListChecks request = new Request.ListChecks() { - CreatedFrom = "2022-07-02T23:18:56.000000+09:00", - CreatedTo = "2020-10-01T20:54:59.000000+09:00", - IssuerShopId = "9f5866af-ae0d-4f85-9d56-25d1baaf7e3e", - Description = "whb9lV9sT", + CreatedFrom = "2020-01-22T06:25:49.000000Z", + CreatedTo = "2020-10-06T06:24:16.000000Z", + IssuerShopId = "ba8a1508-dfb7-4061-83a0-f9726dfada77", + Description = "2NKYH12xH", IsOnetime = true, IsDisabled = false, }; @@ -143,13 +143,13 @@ public async Task ListChecks7() { try { Request.ListChecks request = new Request.ListChecks() { - ExpiresTo = "2020-12-17T07:39:42.000000+09:00", - CreatedFrom = "2023-09-23T05:10:52.000000+09:00", - CreatedTo = "2021-11-13T08:16:42.000000+09:00", - IssuerShopId = "3477c087-d77f-4f62-920e-c4df4a1f4812", - Description = "8W", - IsOnetime = false, - IsDisabled = false, + ExpiresTo = "2022-02-19T08:35:27.000000Z", + CreatedFrom = "2021-08-15T09:13:42.000000Z", + CreatedTo = "2023-10-19T16:42:25.000000Z", + IssuerShopId = "6f3fc2c9-4477-4213-942c-62c057d20078", + Description = "vxk", + IsOnetime = true, + IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -164,14 +164,14 @@ public async Task ListChecks8() { try { Request.ListChecks request = new Request.ListChecks() { - ExpiresFrom = "2020-11-30T10:05:17.000000+09:00", - ExpiresTo = "2023-06-22T15:48:44.000000+09:00", - CreatedFrom = "2021-06-22T19:31:37.000000+09:00", - CreatedTo = "2022-05-11T01:03:57.000000+09:00", - IssuerShopId = "483545b2-2699-4e32-9593-66d5f68ffa08", - Description = "1er3T1gBtf", + ExpiresFrom = "2022-04-09T10:57:33.000000Z", + ExpiresTo = "2021-01-21T20:17:59.000000Z", + CreatedFrom = "2024-01-21T15:48:46.000000Z", + CreatedTo = "2021-01-02T23:52:54.000000Z", + IssuerShopId = "7367f459-8e42-4c7d-84d1-5fe958c47652", + Description = "yVTR", IsOnetime = true, - IsDisabled = false, + IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,15 +186,15 @@ public async Task ListChecks9() { try { Request.ListChecks request = new Request.ListChecks() { - OrganizationCode = "20CiDsCwyLdW5AzEeQb", - ExpiresFrom = "2021-07-17T06:13:44.000000+09:00", - ExpiresTo = "2023-03-10T20:07:51.000000+09:00", - CreatedFrom = "2022-07-13T06:14:29.000000+09:00", - CreatedTo = "2021-08-08T01:30:29.000000+09:00", - IssuerShopId = "56522b92-8456-4468-8e78-520a3d027a96", - Description = "tNh", + OrganizationCode = "czNdwQ9LziqjK5MdQ1lZ", + ExpiresFrom = "2021-12-11T12:27:57.000000Z", + ExpiresTo = "2023-03-30T19:25:50.000000Z", + CreatedFrom = "2022-10-18T18:39:55.000000Z", + CreatedTo = "2021-03-07T21:43:35.000000Z", + IssuerShopId = "661adf80-6e58-4a56-82b9-c0c18253251c", + Description = "2ESq", IsOnetime = true, - IsDisabled = 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 = "9d27192c-7381-45b4-97cc-c675f5c1a848", - OrganizationCode = "WoYQpDLtJyiW", - ExpiresFrom = "2020-06-08T11:42:16.000000+09:00", - ExpiresTo = "2023-12-18T17:12:02.000000+09:00", - CreatedFrom = "2023-03-13T15:29:08.000000+09:00", - CreatedTo = "2020-08-07T05:51:18.000000+09:00", - IssuerShopId = "0776bd79-8183-4ab6-8053-610db8132173", - Description = "attO0KDv", + PrivateMoneyId = "932ec6c0-848e-4ed6-954b-42c077bd6eba", + OrganizationCode = "1GN9Jq", + ExpiresFrom = "2022-09-08T05:18:03.000000Z", + ExpiresTo = "2023-08-04T01:00:24.000000Z", + CreatedFrom = "2020-11-07T01:30:52.000000Z", + CreatedTo = "2023-05-08T07:12:05.000000Z", + IssuerShopId = "329f1bf6-2a79-439f-928a-0c903705051d", + Description = "A5j20", IsOnetime = true, - IsDisabled = true, + IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -233,17 +233,17 @@ public async Task ListChecks11() { try { Request.ListChecks request = new Request.ListChecks() { - PerPage = 6579, - PrivateMoneyId = "f2903050-acf5-4f6f-8746-23cb9789b255", - OrganizationCode = "3PYYZTEIyRndmm72c26C", - ExpiresFrom = "2021-09-29T18:35:16.000000+09:00", - ExpiresTo = "2023-08-03T01:25:48.000000+09:00", - CreatedFrom = "2023-05-04T14:17:43.000000+09:00", - CreatedTo = "2023-06-01T08:22:14.000000+09:00", - IssuerShopId = "e8a06342-fc33-469b-8f42-b18d993d3a37", - Description = "wghU", - IsOnetime = false, - IsDisabled = false, + PerPage = 6132, + PrivateMoneyId = "14118789-fbb4-43a9-9a19-073123317c07", + OrganizationCode = "pnjZ8xWKeN3WKGyHXCKDfS0", + ExpiresFrom = "2023-09-29T07:06:08.000000Z", + ExpiresTo = "2022-01-29T19:33:22.000000Z", + CreatedFrom = "2023-12-09T06:55:43.000000Z", + CreatedTo = "2021-08-21T04:38:03.000000Z", + IssuerShopId = "22019b92-0fec-40f8-8af4-c98a125420c3", + Description = "8sS34enF", + IsOnetime = true, + IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -258,17 +258,17 @@ public async Task ListChecks12() { try { Request.ListChecks request = new Request.ListChecks() { - Page = 9489, - PerPage = 1388, - PrivateMoneyId = "da8267f1-7d55-49cf-99ac-cab2d7733b5f", - OrganizationCode = "AI87h7tC8", - ExpiresFrom = "2023-02-17T14:52:00.000000+09:00", - ExpiresTo = "2021-11-18T02:57:08.000000+09:00", - CreatedFrom = "2021-02-27T19:42:15.000000+09:00", - CreatedTo = "2021-11-13T13:48:17.000000+09:00", - IssuerShopId = "3b750c29-9b3b-4505-9e8a-4ef6dc1c5a4d", - Description = "zjNmF", - IsOnetime = false, + Page = 7930, + PerPage = 841, + PrivateMoneyId = "e3f3e62a-e5e8-41c9-8de2-12fb81470a74", + OrganizationCode = "E1tQOM", + ExpiresFrom = "2023-03-26T11:24:36.000000Z", + ExpiresTo = "2020-03-21T15:23:58.000000Z", + CreatedFrom = "2021-08-14T22:15:16.000000Z", + CreatedTo = "2021-10-15T14:33:16.000000Z", + IssuerShopId = "8cf982df-e1aa-450a-82d5-030cdf1dbddb", + Description = "hD0", + IsOnetime = true, IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListCoupons.cs b/src/PokepayPartnerCsharpSdk.Test/TestListCoupons.cs index e13dd8e..08e7268 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ); 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ) { - PerPage = 9399, + PerPage = 7143, }; 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ) { - Page = 7306, - PerPage = 3038, + Page = 355, + PerPage = 5086, }; 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ) { - AvailableTo = "2022-11-30T16:24:06.000000+09:00", - Page = 6442, - PerPage = 6349, + AvailableTo = "2022-05-06T14:42:44.000000Z", + Page = 1568, + PerPage = 657, }; 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ) { - AvailableFrom = "2021-03-13T10:38:59.000000+09:00", - AvailableTo = "2023-12-02T01:37:06.000000+09:00", - Page = 4064, - PerPage = 92, + AvailableFrom = "2023-04-12T06:05:04.000000Z", + AvailableTo = "2020-02-02T18:01:54.000000Z", + Page = 749, + PerPage = 7858, }; 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ) { - AvailableShopName = "Xl", - AvailableFrom = "2020-08-06T12:54:14.000000+09:00", - AvailableTo = "2022-06-26T06:53:46.000000+09:00", - Page = 5638, - PerPage = 6979, + AvailableShopName = "OUEcUOGT", + AvailableFrom = "2021-10-29T11:51:53.000000Z", + AvailableTo = "2020-09-13T17:50:25.000000Z", + Page = 3254, + PerPage = 4365, }; 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ) { - IssuedShopName = "az", - AvailableShopName = "CE1h", - AvailableFrom = "2022-12-31T01:00:45.000000+09:00", - AvailableTo = "2023-11-22T14:46:56.000000+09:00", - Page = 9288, - PerPage = 4231, + IssuedShopName = "Jsn8lh", + AvailableShopName = "I", + AvailableFrom = "2020-04-12T18:14:56.000000Z", + AvailableTo = "2020-04-16T05:20:13.000000Z", + Page = 6760, + PerPage = 7370, }; 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ) { - CouponName = "2", - IssuedShopName = "EkkP2VIP", - AvailableShopName = "7HW7Ee7skB", - AvailableFrom = "2021-12-28T04:59:37.000000+09:00", - AvailableTo = "2024-01-31T20:06:18.000000+09:00", - Page = 3617, - PerPage = 4873, + CouponName = "kY0oNU4Zt", + IssuedShopName = "ZO", + AvailableShopName = "Hmd", + AvailableFrom = "2020-06-09T13:11:14.000000Z", + AvailableTo = "2022-11-13T01:28:16.000000Z", + Page = 9340, + PerPage = 5495, }; 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( - "95bdf2e1-f71a-4438-aa77-f1d87095212f" + "1de436e9-6158-45ea-98bc-6c530b8963c5" ) { - CouponId = "BB1", - CouponName = "YNClE0n87", - IssuedShopName = "30", - AvailableShopName = "vspNWH9", - AvailableFrom = "2022-06-23T00:15:04.000000+09:00", - AvailableTo = "2022-11-11T10:14:13.000000+09:00", - Page = 4527, - PerPage = 6325, + CouponId = "lnlZRhGDMx", + CouponName = "uj8A", + IssuedShopName = "7eD", + AvailableShopName = "OAWeoDp", + AvailableFrom = "2024-01-09T12:00:37.000000Z", + AvailableTo = "2023-12-31T15:12:06.000000Z", + Page = 7905, + PerPage = 4151, }; 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 6036ae4..4ae3176 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ); 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ) { - PerPage = 6783, + PerPage = 3721, }; 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ) { - Page = 9049, - PerPage = 9650, + Page = 1673, + PerPage = 8569, }; 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ) { - To = "2020-02-09T02:22:46.000000+09:00", - Page = 5902, - PerPage = 2571, + To = "2020-06-09T08:43:25.000000Z", + Page = 2641, + PerPage = 1403, }; 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ) { - From = "2020-10-04T15:03:12.000000+09:00", - To = "2022-01-19T11:23:45.000000+09:00", - Page = 8261, - PerPage = 9551, + From = "2023-08-31T11:35:24.000000Z", + To = "2021-11-27T00:17:30.000000Z", + Page = 6128, + PerPage = 9468, }; 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ) { IsModified = true, - From = "2021-09-06T19:59:15.000000+09:00", - To = "2022-09-30T22:19:49.000000+09:00", - Page = 2591, - PerPage = 3338, + From = "2021-10-15T20:46:20.000000Z", + To = "2023-11-14T17:02:46.000000Z", + Page = 8406, + PerPage = 1440, }; 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ) { - Type = "exchange", - IsModified = false, - From = "2021-08-12T14:06:04.000000+09:00", - To = "2020-07-25T01:37:30.000000+09:00", - Page = 9180, - PerPage = 3401, + Type = "transfer", + IsModified = true, + From = "2022-03-30T21:58:48.000000Z", + To = "2024-01-29T17:38:21.000000Z", + Page = 786, + PerPage = 2848, }; 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ) { - ReceiverCustomerId = "1973336d-c2a5-44cd-90ef-50681b0f77bb", - Type = "expire", + ReceiverCustomerId = "476067c0-5180-472f-9748-fbe19e693314", + Type = "cashback", IsModified = true, - From = "2021-12-11T08:03:28.000000+09:00", - To = "2023-06-20T09:42:46.000000+09:00", - Page = 2977, - PerPage = 1815, + From = "2020-07-04T11:49:13.000000Z", + To = "2020-10-22T23:48:51.000000Z", + Page = 4783, + PerPage = 8752, }; 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( - "f11981ee-22fa-4a67-8f5d-c9e5d6373ceb" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" ) { - SenderCustomerId = "e374c6df-25b8-46ea-bf29-8af6391a051f", - ReceiverCustomerId = "3eebcd94-142d-48da-bcc5-a330001b6e3a", + SenderCustomerId = "d2869b53-2e22-4d40-bc23-f9d272cd44e5", + ReceiverCustomerId = "03a89a91-73ea-4831-99d4-32f7b9069362", Type = "exchange", IsModified = false, - From = "2020-02-26T03:52:11.000000+09:00", - To = "2022-08-24T18:58:53.000000+09:00", - Page = 9183, - PerPage = 2071, + From = "2020-01-13T05:00:34.000000Z", + To = "2020-03-01T04:56:22.000000Z", + Page = 5098, + PerPage = 7841, }; 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 index 4867d94..72d9477 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListOrganizations.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListOrganizations.cs @@ -25,7 +25,7 @@ public async Task ListOrganizations0() { try { Request.ListOrganizations request = new Request.ListOrganizations( - "db6cdce5-f6b7-4d98-92f6-dde5725a4431" + "654f5056-d996-4868-bef0-1890baeca3c3" ); Response.PaginatedOrganizations response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task ListOrganizations1() { try { Request.ListOrganizations request = new Request.ListOrganizations( - "db6cdce5-f6b7-4d98-92f6-dde5725a4431" + "654f5056-d996-4868-bef0-1890baeca3c3" ) { - Code = "qe5BUa3", + Code = "bdmmx3", }; Response.PaginatedOrganizations response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task ListOrganizations2() { try { Request.ListOrganizations request = new Request.ListOrganizations( - "db6cdce5-f6b7-4d98-92f6-dde5725a4431" + "654f5056-d996-4868-bef0-1890baeca3c3" ) { - Name = "mrtC", - Code = "kktMbdZ0F", + Name = "jJ", + Code = "Yo72YjP", }; Response.PaginatedOrganizations response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task ListOrganizations3() { try { Request.ListOrganizations request = new Request.ListOrganizations( - "db6cdce5-f6b7-4d98-92f6-dde5725a4431" + "654f5056-d996-4868-bef0-1890baeca3c3" ) { - PerPage = 8551, - Name = "nebRZC", - Code = "0vDYNEWMfx", + PerPage = 5388, + Name = "pod5QaLC", + Code = "TmFLxumOn", }; Response.PaginatedOrganizations response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task ListOrganizations4() { try { Request.ListOrganizations request = new Request.ListOrganizations( - "db6cdce5-f6b7-4d98-92f6-dde5725a4431" + "654f5056-d996-4868-bef0-1890baeca3c3" ) { - Page = 3902, - PerPage = 2644, - Name = "HRY4YZd", - Code = "Eswk", + Page = 4761, + PerPage = 6007, + Name = "upx", + Code = "16", }; Response.PaginatedOrganizations response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListShops.cs b/src/PokepayPartnerCsharpSdk.Test/TestListShops.cs index 843050f..bd2ca47 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 = 3846, + PerPage = 5064, }; 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 = 3806, - PerPage = 5940, + Page = 6150, + PerPage = 1031, }; 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 = 9569, - PerPage = 696, + WithDisabled = true, + Page = 516, + PerPage = 3314, }; 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 = "eydGENMPuSUGCPN", + ExternalId = "w", WithDisabled = false, - Page = 9309, - PerPage = 6089, + Page = 986, + PerPage = 1660, }; 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 = "ip0Y3dBWcN@dXe1.com", - ExternalId = "IjLSVztCspdpKcDGU85LATApzQ2dQG", - WithDisabled = true, - Page = 7180, - PerPage = 3197, + Email = "75stQD6SAh@41fZ.com", + ExternalId = "i84vybd1Jsf0jR3rzbwtxyn2FAh1zUed", + WithDisabled = false, + Page = 4934, + PerPage = 8487, }; 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 = "0388405-6881", - Email = "fzmKZw4jAX@5TdV.com", - ExternalId = "ZA3FsBWHTaR7q8", - WithDisabled = true, - Page = 7402, - PerPage = 4809, + Tel = "04934109886", + Email = "vHVgjPvTnT@RbAG.com", + ExternalId = "JFBzSB", + WithDisabled = false, + Page = 5349, + PerPage = 5597, }; 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 = "ovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jw", - Tel = "0009-4524", - Email = "4I5KLiOrRK@q3qx.com", - ExternalId = "t", - WithDisabled = false, - Page = 1469, - PerPage = 2120, + Address = "N9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH", + Tel = "064-399-326", + Email = "N0T80aLvrK@oRyT.com", + ExternalId = "gPVT4AzeoZEOYuu1RyqlWwyCN", + WithDisabled = true, + Page = 9062, + PerPage = 6597, }; 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 = "9616221", - Address = "5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRS", - Tel = "06049-761", - Email = "0SY48ZoA8o@j9al.com", - ExternalId = "EKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPI", - WithDisabled = true, - Page = 4282, - PerPage = 7843, + PostalCode = "483-3967", + Address = "00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0Yor", + Tel = "0322631", + Email = "4pFpuxUcIr@b43g.com", + ExternalId = "0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx", + WithDisabled = false, + Page = 1942, + PerPage = 1073, }; 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 = "lVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzd", - PostalCode = "1327987", - Address = "XKNoGDpqqjYUa42N", - Tel = "0870-47183", - Email = "T9CjYdhYyR@9ZtW.com", - ExternalId = "MAKSZHQ2Tjahc0hASAcEi", + Name = "qLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhC", + PostalCode = "4322619", + Address = "FeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MI", + Tel = "0518-4313", + Email = "TlXa99m3El@a8zc.com", + ExternalId = "R94JgHtiXrfi45gdORj3Jla3Pfb8OgNhh", WithDisabled = true, - Page = 3605, - PerPage = 4510, + Page = 9357, + PerPage = 3629, }; 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 = "e20c6be0-47ea-4405-9fbc-706b8cc70b75", - Name = "1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZC", - PostalCode = "0749172", - Address = "G6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFw", - Tel = "0914-3057793", - Email = "Dr0Djt9M12@BOno.com", - ExternalId = "cj", + PrivateMoneyId = "4294a866-e4fb-4ddb-8251-6a6a3228145f", + Name = "sClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqw", + PostalCode = "5487162", + Address = "qZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcG", + Tel = "0080-547599", + Email = "gPlxnzpf9X@cHDi.com", + ExternalId = "w8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNj", WithDisabled = true, - Page = 7246, - PerPage = 1207, + Page = 7375, + PerPage = 4400, }; 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 = "j-se---3-", - PrivateMoneyId = "6a178a9b-a379-434d-a8ef-32b22121e702", - Name = "6iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG", - PostalCode = "994-3366", - Address = "pRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu", - Tel = "01-9990248", - Email = "YO2oQiAYMc@KkXB.com", - ExternalId = "WEu4RSjxgCW3jFlgob7yobgqdqFl", - WithDisabled = false, - Page = 9574, - PerPage = 4183, + OrganizationCode = "3O3UbVmd-", + PrivateMoneyId = "6c582c7c-e112-45b2-8024-7261075be237", + Name = "llUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACIt", + PostalCode = "946-1005", + Address = "NfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa", + Tel = "0939137673", + Email = "qnjKtXS5ct@b0sU.com", + ExternalId = "amQiJ", + WithDisabled = true, + Page = 2018, + PerPage = 9438, }; 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 770280b..b388730 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 = "KwyiQYSSoPK3N5ZGr", + Description = "W1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1", }; 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[]{"expire"}, - Description = "ptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZC", + Types = new string[]{"exchange_outflow", "cashback"}, + Description = "P1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV", }; 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[]{"topup", "expire", "payment", "exchange_outflow", "exchange_inflow", "cashback"}, - Description = "MT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c8", + IsModified = true, + Types = new string[]{"payment", "exchange_inflow", "cashback"}, + Description = "a8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05q", }; 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 = "827833bc-adb1-4bbf-8b86-f8b954a6b99f", + PrivateMoneyId = "7cdea4cc-02d4-45f1-bec7-1ec424873215", IsModified = true, - Types = new string[]{"exchange_outflow", "expire"}, - Description = "6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaD", + Types = new string[]{"payment", "exchange_inflow", "expire", "cashback", "topup"}, + Description = "aFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDebROkI568yn", }; 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 = "-A061KZ-VlI-0i-18e--60ot", - PrivateMoneyId = "81f34672-e1b0-4559-902e-bce54af6e23b", - IsModified = true, - Types = new string[]{"exchange_outflow", "topup", "payment", "cashback"}, - Description = "k4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUy", + OrganizationCode = "8", + PrivateMoneyId = "51efbe83-e424-4e59-adbf-731bc32e71e4", + IsModified = false, + Types = new string[]{"payment", "exchange_outflow"}, + Description = "GtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O", }; 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 = "rfJ", - OrganizationCode = "i124eJ23IQZ2-G-4-2-LzD--2Q1m7-m", - PrivateMoneyId = "72cd2d3c-d463-4580-8f4f-0e319771b1f7", + TransactionId = "2IQSAJ6", + OrganizationCode = "-YolA58m-Vc-996y5l-456i9u3-B--Y-", + PrivateMoneyId = "8d7c5ca2-1c5b-49b4-a9fd-e6608c86a76e", IsModified = true, - Types = new string[]{"exchange_inflow", "payment"}, - Description = "P1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV", + Types = new string[]{"exchange_outflow", "expire", "payment"}, + Description = "JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpN", }; 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 = "32e8c434-e7bf-4b19-9522-4306a2b9c7e6", - TransactionId = "a8eD", - OrganizationCode = "z", - PrivateMoneyId = "6ef959ed-7d66-4023-8bac-6673d1c6ea12", + TerminalId = "127e7540-96e5-4f7a-b8dc-87d48d84ec94", + TransactionId = "usjLCX", + OrganizationCode = "49qc-l--BI-H6-GT9-L", + PrivateMoneyId = "250f2664-b994-46e1-9663-b4a682ae5034", IsModified = true, - Types = new string[]{"exchange_outflow", "payment", "cashback", "expire", "topup", "exchange_inflow"}, - Description = "qIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCu", + Types = new string[]{"topup", "payment", "exchange_outflow"}, + Description = "wC2bbOKrqEv", }; 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 = "CMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43B", - TerminalId = "5c46065d-d3a9-4195-a73c-4ad4d4f41d2f", - TransactionId = "iVtdGDmgs4", - OrganizationCode = "8-sG---7KiosX3L-FY--", - PrivateMoneyId = "c32ad231-9f8e-443a-a830-60e1b89f3de3", + CustomerName = "HSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mhVFw56RKDemCYdfHK", + TerminalId = "554841a2-5c5d-40f9-9cb6-edbb11405deb", + TransactionId = "RZ", + OrganizationCode = "-S", + PrivateMoneyId = "a189e694-0fe7-4bca-82be-412da43728cc", IsModified = false, - Types = new string[]{"payment", "cashback", "expire", "exchange_inflow", "exchange_outflow"}, - Description = "mABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgs", + Types = new string[]{"exchange_inflow", "cashback", "exchange_outflow", "expire", "payment"}, + Description = "iVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26", }; 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 = "b1986202-c78c-4226-a424-9e95792a0aeb", - CustomerName = "w6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4Bt", - TerminalId = "0570b904-7960-41c2-8a8d-7277775085a2", - TransactionId = "2bbO", - OrganizationCode = "v4Nj4-1bvpA", - PrivateMoneyId = "97a3c33f-3aec-4a6a-9e1f-ba828f9813b1", + CustomerId = "740986f9-9270-4fd4-ba4d-1f3b7366d47d", + CustomerName = "xe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvflY8MFYZJvlfPZ9XRs2Dj", + TerminalId = "33d7d9bc-ca3c-4085-9565-c396835f9116", + TransactionId = "8FZcru468", + OrganizationCode = "436qXf", + PrivateMoneyId = "b827d131-f8e8-44ac-977f-3ab363c948a2", IsModified = true, - Types = new string[]{"topup"}, - Description = "6vAaVd6Sg4zOt2", + Types = new string[]{"exchange_inflow", "exchange_outflow", "payment", "cashback"}, + Description = "pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXD", }; 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 = "07af234c-7118-47d0-9662-cca964d19f8c", - CustomerId = "6a148ab0-436e-414c-8276-63c3dba78ce6", - CustomerName = "5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvfl", - TerminalId = "bfac9759-613e-4097-b8cd-b4c6fafb2cd9", - TransactionId = "vlfPZ9XR", - OrganizationCode = "s8O1--2", - PrivateMoneyId = "4585037e-a5c5-4ea4-839c-7f89ad6e7555", - IsModified = false, - Types = new string[]{"cashback", "expire", "exchange_outflow", "payment"}, - Description = "Uv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04Ifsk", + ShopId = "14db71eb-d419-4c4a-87f1-7879db1dae31", + CustomerId = "7508f855-4d79-48d0-9202-02e1456064c7", + CustomerName = "VkyMSdmemZcovbEUc9TiM3DTSa7pJlo8JS6mIVfCl8O6XTpGUPEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLIZnC6rDyYuuG1XnlSI", + TerminalId = "947dcad6-b494-4d8e-a186-59bba1e99598", + TransactionId = "CTCoBzc3Po", + OrganizationCode = "4--", + PrivateMoneyId = "f12b7a31-7c67-44b6-8061-dfdb0ed7789e", + IsModified = true, + Types = new string[]{"exchange_inflow", "cashback", "topup", "expire", "payment", "exchange_outflow"}, + Description = "SVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3", }; 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 = 6395, - ShopId = "807cd5e2-fb00-479c-92df-2a6814206e32", - CustomerId = "f52d39cb-6a2d-48aa-9358-6123c140ac44", - CustomerName = "Jqy1UyPaGHVkyMSdmemZcovbEUc9TiM3DTSa7pJlo8JS6mIVfCl8O6XTpGUPEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQ", - TerminalId = "7c3f9b72-c2b9-4c3f-ab43-dcc184c0e434", - TransactionId = "58OFUi", - OrganizationCode = "--5", - PrivateMoneyId = "a8cc409c-eaf3-4427-b089-e260a004110c", + PerPage = 5618, + ShopId = "93cc8961-0be2-42f0-a8fc-6d79e7879700", + CustomerId = "a0cd1f40-75ea-47d8-9033-dca08d56be14", + CustomerName = "xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL", + TerminalId = "2d0db3db-49b5-44e3-b49e-6b3a1ad5452b", + TransactionId = "G", + OrganizationCode = "6-JN0rZ1", + PrivateMoneyId = "159e73eb-0f0e-4777-9f43-0fe93746b7a8", IsModified = true, - Types = new string[]{"cashback", "payment", "topup", "expire", "exchange_outflow"}, - Description = "IOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbP", + Types = new string[]{"cashback", "topup"}, + Description = "KrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVY", }; 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 = 466, - PerPage = 1531, - ShopId = "d29d9b0c-58dc-45db-909d-2ed262638e2b", - CustomerId = "d0e575e9-f9a4-43f2-984c-9e8665f8af6d", - CustomerName = "7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDV", - TerminalId = "1021641b-a8ea-4934-b1be-98444a9991a7", - TransactionId = "wlIsjYdDs", - OrganizationCode = "4T02U-7P7-Gx", - PrivateMoneyId = "a4abcf5d-773d-463a-895b-66ae8dab2bb2", + Page = 6534, + PerPage = 1781, + ShopId = "19e2330f-35a5-4b11-95a1-7846a4aa801b", + CustomerId = "8ef4fe9c-f14f-409f-bed2-e3692e979fa1", + CustomerName = "KaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oaz", + TerminalId = "edc2ff9c-ab4f-4860-a9ee-af5313107cc4", + TransactionId = "VBA", + OrganizationCode = "-i2w", + PrivateMoneyId = "2a08cf43-9371-4f9d-9738-2e20581ed95d", IsModified = false, - Types = new string[]{"topup", "cashback", "exchange_outflow", "expire", "payment"}, - Description = "DGgtc1eHQx1a38fcy9G2ru7C", + Types = new string[]{"exchange_outflow", "expire", "topup", "payment"}, + Description = "qfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwP", }; 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 = "2021-09-01T10:00:41.000000+09:00", - Page = 1142, - PerPage = 744, - ShopId = "6d606a10-179f-4eda-94c2-4bdd4584e055", - CustomerId = "82ab4d4b-13e3-4b36-b414-d47bbe503641", - CustomerName = "KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8Jb", - TerminalId = "79f64777-f273-46a2-97a9-78d5e6e1826a", - TransactionId = "F", - OrganizationCode = "p1N-1AlVm-9-m5w55X0-w-37pr15y46", - PrivateMoneyId = "613086c7-b741-4bb8-ba03-0a8076b11c42", + To = "2021-07-02T12:39:43.000000Z", + Page = 3516, + PerPage = 7278, + ShopId = "af783fd9-07c7-4624-95c5-4b56bf820e7e", + CustomerId = "b29580f2-dd5b-474f-8d34-162f5f1e7464", + CustomerName = "j0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBj", + TerminalId = "a54a3b85-64bf-4571-b1be-520303da5e2c", + TransactionId = "3aM3MFSn6", + OrganizationCode = "X-3---5adV-8-5EhX-5G6e0W--", + PrivateMoneyId = "48a17295-3b32-420e-9846-9687732fbdd3", IsModified = true, - Types = new string[]{"payment", "cashback", "topup"}, - Description = "TqfIDfhF08aWAgYKgM", + Types = new string[]{"payment"}, + Description = "c6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wP", }; 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 = "2020-06-25T00:37:16.000000+09:00", - To = "2022-04-14T10:41:22.000000+09:00", - Page = 8168, - PerPage = 6061, - ShopId = "e6a21b5c-4be5-4b69-aaf5-8d1903dc1b7b", - CustomerId = "4a972ce9-7fb0-4e27-b89d-13073153c786", - CustomerName = "AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxw", - TerminalId = "0b095700-289a-466b-bec2-60cdbd241c46", - TransactionId = "NKh", - OrganizationCode = "27w20o-Mj0h-Pwgc9HmV", - PrivateMoneyId = "9c8fd951-f541-482c-8bc5-97d3e1fe81a8", - IsModified = true, - Types = new string[]{"cashback", "expire", "topup", "exchange_outflow", "payment"}, - Description = "RvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFfs83kBzSot4H9G2", + From = "2021-08-09T05:40:52.000000Z", + To = "2022-02-04T13:27:41.000000Z", + Page = 3166, + PerPage = 185, + ShopId = "5e7a6a52-e2af-48e0-9839-f147fe8d0d77", + CustomerId = "168946bc-2354-46ed-b145-f1e17b934e40", + CustomerName = "DH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaY", + TerminalId = "1e976d00-3695-4575-bc61-411cfc392bbb", + TransactionId = "2", + OrganizationCode = "8h----6-SEv--I7f5-U2--f", + PrivateMoneyId = "360352e4-81e0-4d47-811b-6debf0e91354", + IsModified = false, + Types = new string[]{"cashback"}, + Description = "ZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaW", }; 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 da047b2..258701a 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 = 29, + PerPage = 919, }; 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 = "04e72a3f-308d-4ac1-8b24-7a85bf70fc21", - PerPage = 825, + PrevPageCursorId = "3580c4d2-028a-4796-9842-f025a2f41ce1", + PerPage = 963, }; 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 = "f852c880-5cfb-45c4-b752-a0bef37dc6f4", - PrevPageCursorId = "41013c76-1bbe-4614-8cf7-18d2585f004e", - PerPage = 569, + NextPageCursorId = "0706164f-d02d-459a-a482-fb8edacd3057", + PrevPageCursorId = "6784f557-b9ab-4c04-9228-6f478252a04a", + PerPage = 884, }; 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 = "2021-11-17T19:48:17.000000+09:00", - NextPageCursorId = "fe6fdca8-e582-4fd1-ad17-c112e4ad5060", - PrevPageCursorId = "7b3af2d8-e293-4ee9-aa48-68c93e1bfdf9", - PerPage = 803, + To = "2023-06-26T08:22:04.000000Z", + NextPageCursorId = "270f32a0-4407-4887-8b29-f1417229627e", + PrevPageCursorId = "dfdbdc26-3ff2-4e67-99a3-7ac95ca97e26", + PerPage = 607, }; 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 = "2024-02-15T13:44:45.000000+09:00", - To = "2022-07-31T03:01:25.000000+09:00", - NextPageCursorId = "8112fdc7-1283-4878-b213-d7e7e056e313", - PrevPageCursorId = "32c5a628-21d4-4b28-b808-1a7230da325e", - PerPage = 539, + From = "2023-04-28T23:57:41.000000Z", + To = "2020-06-25T12:11:33.000000Z", + NextPageCursorId = "e871a3ed-bacd-43d6-a416-ec6c2dc4d301", + PrevPageCursorId = "e1dcdf9f-e897-43b3-b13e-1dece65c4803", + PerPage = 792, }; 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[]{"expire", "exchange_outflow", "exchange_inflow", "payment"}, - From = "2022-09-11T06:26:58.000000+09:00", - To = "2022-09-21T20:33:16.000000+09:00", - NextPageCursorId = "4cdb18e3-5410-4432-a2de-27a1df2dd27c", - PrevPageCursorId = "b8baa3b7-e309-4382-81f1-dee4203ee740", - PerPage = 418, + Types = new string[]{"expire", "payment"}, + From = "2022-07-22T05:53:04.000000Z", + To = "2023-05-16T12:44:52.000000Z", + NextPageCursorId = "c512e76c-40fc-4937-9a21-5cfed5a9d92d", + PrevPageCursorId = "d07280a2-3f55-40c8-a824-c11168220404", + PerPage = 379, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -143,13 +143,13 @@ public async Task ListTransactionsV27() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - IsModified = true, - Types = new string[]{"payment", "exchange_inflow", "topup"}, - From = "2022-12-04T11:17:16.000000+09:00", - To = "2021-11-30T04:22:51.000000+09:00", - NextPageCursorId = "232f3a16-b2e1-4355-a134-0174b10513f3", - PrevPageCursorId = "0de0e74e-bf7e-497d-afa7-260fb5874171", - PerPage = 385, + IsModified = false, + Types = new string[]{"expire", "exchange_outflow", "exchange_inflow", "topup", "cashback"}, + From = "2023-05-01T01:22:20.000000Z", + To = "2023-11-10T11:11:51.000000Z", + NextPageCursorId = "3853e632-aa6e-4db2-b4d1-473bda0390e6", + PrevPageCursorId = "fdb745ee-b8a7-4f7b-808d-68d814ade819", + PerPage = 158, }; 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 = "OUthYSxSa5", + TransactionId = "078", IsModified = true, - Types = new string[]{"payment"}, - From = "2022-05-02T08:07:03.000000+09:00", - To = "2021-12-28T18:19:55.000000+09:00", - NextPageCursorId = "de8aa563-2b64-49f0-85a2-eb932cddcca9", - PrevPageCursorId = "99f1d695-bc7a-405e-8925-185ab2fb806f", - PerPage = 173, + Types = new string[]{"payment", "exchange_inflow", "exchange_outflow", "expire", "cashback", "topup"}, + From = "2022-02-20T01:58:35.000000Z", + To = "2023-12-25T17:38:13.000000Z", + NextPageCursorId = "fde713fb-cbbc-4784-9bc9-d3ca0deb4372", + PrevPageCursorId = "80c15927-f442-4824-84b5-3f441dff992f", + PerPage = 568, }; 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 = "GgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2JnK33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9P", - TransactionId = "fQ", - IsModified = true, - Types = new string[]{"exchange_inflow", "topup", "cashback", "expire"}, - From = "2020-02-26T22:38:43.000000+09:00", - To = "2022-09-16T00:32:14.000000+09:00", - NextPageCursorId = "461a3cfa-aca5-4b66-8033-46ed38e41057", - PrevPageCursorId = "9b930dc1-5bc5-49c8-a206-5ef7d10da4ce", - PerPage = 610, + Description = "pKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfn", + TransactionId = "mwT", + IsModified = false, + Types = new string[]{"cashback", "exchange_inflow", "exchange_outflow"}, + From = "2022-07-17T16:43:00.000000Z", + To = "2022-03-03T09:05:02.000000Z", + NextPageCursorId = "a2ae1316-ff74-48cf-8672-9863aefcb860", + PrevPageCursorId = "22dfc944-ae9e-495e-bb06-d74c482a7837", + PerPage = 44, }; 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 = "fuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJSIFUrTRne91u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bG", - Description = "PwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4C", - TransactionId = "luMJ3q8", + CustomerName = "osyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3", + Description = "SdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1U", + TransactionId = "nnaTSFcz", IsModified = true, - Types = new string[]{"expire", "payment", "exchange_outflow", "cashback", "topup", "exchange_inflow"}, - From = "2020-10-11T08:50:33.000000+09:00", - To = "2023-02-23T07:05:29.000000+09:00", - NextPageCursorId = "09419c63-3336-4d16-a188-d4f62a07d93c", - PrevPageCursorId = "93f9f732-4d84-4c82-a95b-6c1322fa61ee", - PerPage = 112, + Types = new string[]{"exchange_outflow", "expire", "cashback"}, + From = "2021-08-01T03:32:16.000000Z", + To = "2020-05-21T08:24:35.000000Z", + NextPageCursorId = "152b45f3-0798-4c98-abe1-66f461698421", + PrevPageCursorId = "46be782a-4282-4ce7-9408-245376dff141", + PerPage = 108, }; 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 = "4cba8005-c451-44ed-af3b-a40b44fdf3f3", - CustomerName = "zzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZf", - Description = "8j2fPJ", - TransactionId = "GzVY", - IsModified = true, - Types = new string[]{"topup"}, - From = "2021-08-29T19:33:47.000000+09:00", - To = "2022-04-15T00:14:21.000000+09:00", - NextPageCursorId = "a590c063-ac65-469f-9e81-f42f308d0fa1", - PrevPageCursorId = "8925d006-7170-4173-93f3-e01085a85ba8", - PerPage = 34, + CustomerId = "8dab7933-e2e1-4c88-b889-cc1f27f5c4ad", + CustomerName = "TcT02JvhzyAvEGRwH1gqt79bzapcrIrLu", + Description = "lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1", + TransactionId = "tIL", + IsModified = false, + Types = new string[]{"exchange_inflow", "expire", "payment", "cashback", "exchange_outflow", "topup"}, + From = "2023-04-20T08:04:40.000000Z", + To = "2024-04-06T18:16:52.000000Z", + NextPageCursorId = "f06def02-1d81-4ae3-8e2c-f1039aeee37c", + PrevPageCursorId = "86770697-e978-4707-8723-20e2bc00efb1", + PerPage = 296, }; 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 = "d86984e4-0e8e-40a5-9e65-45e37527def3", - CustomerId = "83f1cff0-6985-49de-850d-14e384ac7292", - CustomerName = "6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D", - Description = "7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq2", - TransactionId = "C", + TerminalId = "731b55a1-608e-4077-9015-3b3045d45c5e", + CustomerId = "3fc35406-8866-4e3b-81d8-020dd52a9143", + CustomerName = "RcSE6z5QHSLVITcWy", + Description = "XkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4j", + TransactionId = "8W9hhk", IsModified = true, - Types = new string[]{"topup", "cashback", "expire", "payment", "exchange_outflow"}, - From = "2022-06-17T13:32:43.000000+09:00", - To = "2023-05-04T03:42:22.000000+09:00", - NextPageCursorId = "16009ca8-12f1-4ce8-9d5f-d7a4493f994d", - PrevPageCursorId = "4451164c-419c-4b79-b166-ed9fca07ab27", - PerPage = 549, + Types = new string[]{"payment", "cashback", "exchange_inflow"}, + From = "2023-11-28T12:29:41.000000Z", + To = "2022-08-01T14:09:45.000000Z", + NextPageCursorId = "bb3702f5-c4f9-4f76-9027-2662bbfc8cce", + PrevPageCursorId = "c0bb9c6b-e298-4766-a12f-c57d9351ab93", + PerPage = 301, }; 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 = "7f9332de-6453-40a0-b2cf-2e8343ba613b", - TerminalId = "603e44a7-dd11-4207-a77e-061252c21887", - CustomerId = "93980d89-607e-412b-a605-2cda7e4c661c", - CustomerName = "nZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTI", - Description = "uwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV", - TransactionId = "1h6fR4XXA", + ShopId = "49e210ba-246b-4b71-a4a2-d24717d67f7c", + TerminalId = "46882ea2-a760-43cf-9259-9162eeef0961", + CustomerId = "2038d534-f1b2-4274-9788-6f2f8bbd03cb", + CustomerName = "ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEE", + Description = "s7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTY", + TransactionId = "7eEYL", IsModified = true, - Types = new string[]{"exchange_outflow"}, - From = "2020-03-20T04:31:35.000000+09:00", - To = "2020-05-02T21:46:59.000000+09:00", - NextPageCursorId = "daf2b795-e398-492c-a74c-5638da7a6bcd", - PrevPageCursorId = "bd0d0e0b-686a-4750-a632-3e2b2f05596e", - PerPage = 837, + Types = new string[]{"cashback", "payment", "topup", "exchange_outflow"}, + From = "2022-03-14T04:18:21.000000Z", + To = "2022-12-06T11:12:12.000000Z", + NextPageCursorId = "c3531a8c-a8ed-4356-b091-5857b2e951de", + PrevPageCursorId = "5c5ccdb8-56bf-410a-8075-44cd59f7311d", + PerPage = 543, }; 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 = "Cz--R2wF8J", - ShopId = "fa31af8b-f231-46ad-b7d2-c42b9507b3a8", - TerminalId = "62e27792-a1d4-46f1-9c87-7a7715750571", - CustomerId = "1e012cde-c398-43fa-9686-d03ceb1a2f3f", - CustomerName = "sahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQB", - Description = "HozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02", - TransactionId = "hzyAvEG", + OrganizationCode = "-INuP-Brx71-H5nVNeMB074", + ShopId = "64bd1eb1-c7c9-420a-97c0-99d326c4bfb7", + TerminalId = "5a912ffa-51d4-4933-9e8a-d1a247a9e608", + CustomerId = "786dd1a6-ad7e-4197-aa0e-056d6e24073a", + CustomerName = "F3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w", + Description = "plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hbo", + TransactionId = "1V", IsModified = true, - Types = new string[]{"expire", "payment", "topup"}, - From = "2021-03-24T01:26:06.000000+09:00", - To = "2023-04-27T07:24:48.000000+09:00", - NextPageCursorId = "3648a2ac-eca6-4f05-b1f4-2d37005b7822", - PrevPageCursorId = "a8346f39-080e-448c-9da3-487e921f5a62", - PerPage = 763, + Types = new string[]{"payment", "topup", "exchange_inflow", "cashback"}, + From = "2021-05-01T13:59:53.000000Z", + To = "2021-12-14T15:00:33.000000Z", + NextPageCursorId = "28c4527c-837a-43a3-b48d-3119e1827a37", + PrevPageCursorId = "c03d9bc8-8238-4876-a635-c6cf6301ce59", + PerPage = 217, }; 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 = "62a72e0f-b661-4d70-a306-f272a1a48d49", - OrganizationCode = "-YgmD9n-6VXS", - ShopId = "ab07695a-9aea-49ee-abdd-0b66985c2180", - TerminalId = "08958c40-c753-46cf-a166-d439054b129a", - CustomerId = "f6456230-a6c9-4a0c-8c68-74baf52b5a31", - CustomerName = "nEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9Tu", - Description = "4ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4", - TransactionId = "Uw", + PrivateMoneyId = "6b2f2a8e-6781-4632-829a-8e5d880292fd", + OrganizationCode = "469-xrU--0eU1", + ShopId = "7fd3464e-b7a1-408d-9e74-826b05b316d9", + TerminalId = "e9ed32a8-4b14-43ea-85d0-041a7e6c2d3e", + CustomerId = "22eacfac-2002-477c-ba58-38558d8d9879", + CustomerName = "1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxg", + Description = "f0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNfSRiXLw6IXxof4N3", + TransactionId = "b", IsModified = true, - Types = new string[]{"topup", "payment", "exchange_outflow"}, - From = "2022-08-31T03:20:17.000000+09:00", - To = "2021-10-18T22:34:00.000000+09:00", - NextPageCursorId = "adf60dfa-9bfb-40c8-a99b-bece8dc39a26", - PrevPageCursorId = "7474e8dc-e8a1-422a-a5fd-96644d9814bf", - PerPage = 506, + Types = new string[]{"cashback", "exchange_inflow", "payment"}, + From = "2020-12-03T06:40:14.000000Z", + To = "2020-05-16T04:34:19.000000Z", + NextPageCursorId = "5b86a321-4a3e-4a4d-9905-d3a8050307fb", + PrevPageCursorId = "47ad2773-a22a-44d2-8066-65db981607b9", + PerPage = 887, }; 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 04c075d..a74aa6e 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 = "Ek0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5L", + Description = "pwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu", }; 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[]{"campaign", "topup", "cashback"}, - Description = "zi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P", + TransferTypes = new string[]{"coupon", "exchange", "payment", "transfer", "topup"}, + Description = "ti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hO", }; 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[]{"payment"}, - TransferTypes = new string[]{"coupon", "payment", "cashback"}, - Description = "4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1", + TransactionTypes = new string[]{"transfer", "topup"}, + TransferTypes = new string[]{"exchange", "expire", "campaign", "coupon"}, + Description = "xOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK", }; 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[]{"exchange", "cashback", "transfer"}, - TransferTypes = new string[]{"campaign", "exchange", "payment", "coupon", "expire", "topup", "transfer"}, - Description = "49JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYd", + TransactionTypes = new string[]{"transfer", "topup", "payment", "expire", "exchange"}, + TransferTypes = new string[]{"coupon", "campaign", "exchange", "payment"}, + Description = "kZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO", }; 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 = "6732aa93-ebac-406c-9c01-990663f870c9", + PrivateMoneyId = "8513e314-3097-4000-b3f8-8123742a7b0f", IsModified = true, - TransactionTypes = new string[]{"cashback", "transfer", "exchange", "payment"}, - TransferTypes = new string[]{"cashback"}, - Description = "4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxc", + TransactionTypes = new string[]{"transfer", "topup", "expire"}, + TransferTypes = new string[]{"expire"}, + Description = "uOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8d", }; 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 = "bc5813ab-de0c-4777-b972-e52efcfbe88f", - PrivateMoneyId = "ef2fe8ba-7bf6-49fd-be74-307f582a830b", - IsModified = true, - TransactionTypes = new string[]{"transfer"}, - TransferTypes = new string[]{"expire", "cashback"}, - Description = "E2Nlz5V1CO5TSF", + TransactionId = "f3a4f9f8-fd20-4475-8b9c-7385002d9309", + PrivateMoneyId = "f7a4d240-a8e7-44a7-9c43-ad0d133c6246", + IsModified = false, + TransactionTypes = new string[]{"cashback", "payment"}, + TransferTypes = new string[]{"coupon", "transfer", "topup", "payment", "exchange", "campaign"}, + Description = "TMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqL", }; 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 = "yNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx", - TransactionId = "0f9fca39-628f-4b18-a4ee-5fc35929c428", - PrivateMoneyId = "0977728e-e043-4d9e-8353-c73fa4fa5fc7", + CustomerName = "QwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU", + TransactionId = "fe2005fe-a382-4194-b730-dccb1fff9f52", + PrivateMoneyId = "f0ae37db-86c7-45d5-b0fc-3087596f0432", IsModified = false, - TransactionTypes = new string[]{"exchange"}, - TransferTypes = new string[]{"payment", "coupon", "campaign"}, - Description = "PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6", + TransactionTypes = new string[]{"cashback", "expire", "payment", "exchange", "transfer"}, + TransferTypes = new string[]{"campaign", "cashback", "payment"}, + Description = "uF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLv", }; 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 = "0dfe05ac-9e7b-44fa-ad98-1d4c01acf0a7", - CustomerName = "Zyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc", - TransactionId = "114e8fb0-c375-41a2-99b6-c78085b74174", - PrivateMoneyId = "b709518b-9d7a-4861-bdda-72331ca088f3", - IsModified = true, - TransactionTypes = new string[]{"transfer"}, - TransferTypes = new string[]{"expire", "payment", "topup", "cashback", "transfer", "coupon"}, - Description = "AlkaNJiOvuRswwQSm", + CustomerId = "a76fc7ae-3bca-4b02-8064-e3b10a1d36b8", + CustomerName = "7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7", + TransactionId = "7fc65c90-b7ee-46a2-8f16-d4bce6538980", + PrivateMoneyId = "c8e54946-8dae-4458-95d2-561929532720", + IsModified = false, + TransactionTypes = new string[]{"exchange", "topup", "expire", "cashback", "transfer"}, + TransferTypes = new string[]{"transfer", "exchange", "payment", "topup", "campaign"}, + Description = "y4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft", }; 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 = "Jco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYma", - CustomerId = "59d67028-8094-47cc-b231-0cc213777c07", - CustomerName = "LYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBf", - TransactionId = "5219a392-442e-473f-8626-c1838d6c5eac", - PrivateMoneyId = "bebf2731-9899-4042-9ca9-a6eb1d08fbc8", + ShopName = "2PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsa", + CustomerId = "c1a6bd6c-76d1-443f-a839-7165e1773108", + CustomerName = "t3sJPwGPZVdfeHb6D60qrRKjcydAgQf1k", + TransactionId = "783c8b6a-bf2c-49e7-b985-d26ca216db3e", + PrivateMoneyId = "1bb9e055-507d-44c4-9420-a54b3ef84e7c", IsModified = true, - TransactionTypes = new string[]{"expire", "topup"}, - TransferTypes = new string[]{"transfer", "payment", "cashback", "coupon", "expire", "exchange", "campaign"}, - Description = "IRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd", + TransactionTypes = new string[]{"cashback"}, + TransferTypes = new string[]{"exchange", "payment", "coupon", "campaign", "transfer", "expire", "cashback", "topup"}, + Description = "1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKj", }; 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 = "ecaf1409-8eb2-4c66-ba77-beb964ec2bee", - ShopName = "iKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3il", - CustomerId = "5dea47be-18ce-4d90-8f2f-04a6a8ff59d0", - CustomerName = "pyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgk", - TransactionId = "59a03de8-d8e1-4a9a-a188-1df34b42afbc", - PrivateMoneyId = "39f8bd08-13bf-42ad-9706-f98f3b1df25e", - IsModified = false, - TransactionTypes = new string[]{"payment", "topup", "exchange", "transfer", "cashback", "expire"}, - TransferTypes = new string[]{"transfer", "campaign"}, - Description = "62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMM", + ShopId = "9c1efafb-10db-4f7e-88ad-a9958194753e", + ShopName = "eP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbV", + CustomerId = "cdf887a9-a958-4d92-b829-5fc0be9f4428", + CustomerName = "S4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2", + TransactionId = "4f4a3752-fbbc-44e1-94b1-0642498a5e4d", + PrivateMoneyId = "2988ca45-e672-4f36-a2e0-97a6ca43127d", + IsModified = true, + TransactionTypes = new string[]{"topup", "expire", "payment", "exchange", "cashback", "transfer"}, + TransferTypes = new string[]{"expire", "exchange", "payment", "coupon", "transfer", "campaign", "topup"}, + Description = "nkoel9aDgdNSfmE5De5bTvMyH", }; 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 = 4746, - ShopId = "04b2be3b-7ec5-4f79-8cd6-fa9f9fa3e284", - ShopName = "ApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb", - CustomerId = "eb3c098d-498e-492e-afb9-a67e73338cff", - CustomerName = "AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgSco", - TransactionId = "2d6e2ae8-741a-46c7-83a0-48297856d1f6", - PrivateMoneyId = "05e2b9e6-8226-4288-87de-ef3bc4a62d24", - IsModified = true, - TransactionTypes = new string[]{"exchange", "cashback", "payment", "transfer", "topup"}, - TransferTypes = new string[]{"cashback", "expire", "transfer", "campaign", "coupon", "payment", "topup"}, - Description = "irdy", + PerPage = 9500, + ShopId = "f2e34398-29f0-42e4-92b2-c05347aff9a5", + ShopName = "WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7", + CustomerId = "0c99275a-0918-4558-92a8-7ad4bdd55de6", + CustomerName = "NFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ7", + TransactionId = "690d1c80-d2a5-49b1-951a-ba24c2bf351a", + PrivateMoneyId = "3180df2a-96c3-414c-abfd-578c81837bae", + IsModified = false, + TransactionTypes = new string[]{"transfer"}, + TransferTypes = new string[]{"coupon"}, + Description = "HUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2UL", }; 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 = 7267, - PerPage = 5945, - ShopId = "331d8e4e-e2b5-4320-8eb4-5675fa4b493e", - ShopName = "LXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzC", - CustomerId = "536a4760-6599-4a3d-9b76-3e09f77b1237", - CustomerName = "KUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5", - TransactionId = "7392fcc2-4ff2-4aa6-b58a-65072e88a45d", - PrivateMoneyId = "223e67c6-6f8c-4135-a316-0dd1ed3a88cf", + Page = 2347, + PerPage = 1781, + ShopId = "4795060b-12e6-4db3-8b7f-914cb8b56a94", + ShopName = "Om0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkE", + CustomerId = "5d7c5eaa-f7f7-4b48-9642-40af7cf3843a", + CustomerName = "WOqOmjPQjCJIqduyEzf", + TransactionId = "ecdad846-1834-4769-a83d-b6a3b8ddc6a2", + PrivateMoneyId = "889f92c5-0dcd-49ee-b1c9-8c64aa302da7", IsModified = true, - TransactionTypes = new string[]{"topup", "expire", "payment"}, - TransferTypes = new string[]{"expire", "topup", "cashback"}, - Description = "w", + TransactionTypes = new string[]{"cashback", "topup", "exchange", "transfer", "payment"}, + TransferTypes = new string[]{"coupon", "cashback", "campaign", "expire"}, + Description = "Tmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3u", }; 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 = "2020-01-10T15:51:04.000000+09:00", - Page = 4072, - PerPage = 1688, - ShopId = "e43b3fa0-675b-4788-9fc5-63ad61e42d98", - ShopName = "UQr", - CustomerId = "46b5b8af-342d-48f0-9da3-39db84adb392", - CustomerName = "qVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4P", - TransactionId = "7e22bd27-81ec-413a-90f6-97a3f91efc79", - PrivateMoneyId = "32d821e9-d395-4bff-af3f-d5641a164869", - IsModified = true, - TransactionTypes = new string[]{"exchange"}, - TransferTypes = new string[]{"expire", "coupon", "exchange", "topup", "cashback", "campaign", "payment"}, - Description = "d18", + To = "2024-01-14T05:29:03.000000Z", + Page = 1476, + PerPage = 3400, + ShopId = "205e3ebd-da43-4409-a4a0-6f1a212ae5c5", + ShopName = "3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTY", + CustomerId = "c884d81c-e079-4643-956f-ec8785993e20", + CustomerName = "Ea9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt", + TransactionId = "222b6c33-7a49-4c0f-9520-d25668c91d0e", + PrivateMoneyId = "eb816512-2ccc-447f-b56a-e8e671200aef", + IsModified = false, + TransactionTypes = new string[]{"cashback", "payment"}, + TransferTypes = new string[]{"cashback", "exchange", "transfer", "coupon", "campaign", "topup", "expire", "payment"}, + Description = "821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUm", }; 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 = "2022-02-11T08:50:14.000000+09:00", - To = "2022-02-12T05:37:59.000000+09:00", - Page = 8820, - PerPage = 7767, - ShopId = "7fb84543-b9ec-4e59-9149-b55a4a7f4db6", - ShopName = "Bq4ZCm153pAwidsKM1", - CustomerId = "e5beb83a-f718-45be-bba6-b70bfefea7da", - CustomerName = "phpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo10", - TransactionId = "426c949c-b387-4130-8da4-8206ad242ae8", - PrivateMoneyId = "1bafb37f-67b7-4097-8834-b7bcb19570c2", - IsModified = true, - TransactionTypes = new string[]{"transfer", "topup", "payment", "exchange", "expire", "cashback"}, - TransferTypes = new string[]{"transfer"}, - Description = "CEki4ZW2q7YUbIlt759X", + From = "2022-12-10T09:24:52.000000Z", + To = "2021-07-25T19:32:46.000000Z", + Page = 6618, + PerPage = 3324, + ShopId = "ba286b8d-ed96-40b0-a543-52ccbc8bdf9f", + ShopName = "foUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZ", + CustomerId = "7afd2ae8-1a80-458d-9549-3a776cc20ad5", + CustomerName = "rsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dt", + TransactionId = "26c5edc2-8a24-423f-a8a4-b3751a2517e3", + PrivateMoneyId = "22566fa2-8dbd-435a-a428-c3241f164cb4", + IsModified = false, + TransactionTypes = new string[]{"expire", "topup", "transfer", "payment", "cashback"}, + TransferTypes = new string[]{"exchange", "topup", "transfer"}, + Description = "mxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uva", }; 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 5f5b564..321da68 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 = "2020-05-25T13:07:36.000000+09:00", + To = "2023-05-03T19:18:45.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 = "2020-08-20T09:25:35.000000+09:00", - To = "2021-11-11T23:48:59.000000+09:00", + From = "2020-06-21T14:46:24.000000Z", + To = "2021-11-24T11:20:02.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 = "Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z", - From = "2021-01-13T16:41:29.000000+09:00", - To = "2024-03-04T19:11:23.000000+09:00", + Description = "2Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zum", + From = "2021-06-17T22:57:58.000000Z", + To = "2020-05-02T02:10:38.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[]{"expire", "exchange", "campaign"}, - Description = "Y1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9", - From = "2021-06-03T11:42:59.000000+09:00", - To = "2023-12-09T10:34:57.000000+09:00", + TransferTypes = new string[]{"expire", "cashback", "campaign", "coupon", "exchange", "topup", "transfer", "payment"}, + Description = "mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowq", + From = "2020-06-14T10:18:31.000000Z", + To = "2022-08-27T21:00:31.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 = 830, - TransferTypes = new string[]{"expire", "transfer"}, - Description = "T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z", - From = "2020-06-26T14:29:17.000000+09:00", - To = "2022-06-25T21:03:49.000000+09:00", + PerPage = 867, + TransferTypes = new string[]{"payment", "expire", "exchange"}, + Description = "K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6N", + From = "2022-09-16T09:16:26.000000Z", + To = "2023-08-15T02:45:41.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 = "6cd09658-5492-47cd-8ba5-ba9480cb492e", - PerPage = 371, - TransferTypes = new string[]{"campaign", "cashback"}, - Description = "bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc", - From = "2020-01-31T02:17:35.000000+09:00", - To = "2022-05-01T21:46:29.000000+09:00", + PrevPageCursorId = "3e379615-3622-40e1-a9ab-5ac4da3f4b3a", + PerPage = 157, + TransferTypes = new string[]{"coupon", "transfer"}, + Description = "7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR", + From = "2021-04-05T06:39:38.000000Z", + To = "2020-02-17T22:22:19.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 = "2e577d6b-f2d2-4d26-8c70-078b62ffddbf", - PrevPageCursorId = "f11539b3-6a89-45ff-971e-93a7fa84a39d", - PerPage = 525, - TransferTypes = new string[]{"cashback"}, - Description = "23XKfAMBShU6I6qbRRo", - From = "2020-07-02T18:27:35.000000+09:00", - To = "2022-09-02T19:49:04.000000+09:00", + NextPageCursorId = "8cb21b81-e7aa-40a7-91eb-df802a5c5881", + PrevPageCursorId = "d8c043e8-4eb8-465e-a11b-8dda7a8dfa23", + PerPage = 299, + TransferTypes = new string[]{"exchange", "cashback"}, + Description = "OPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u", + From = "2021-06-03T11:54:54.000000Z", + To = "2023-02-10T00:37:35.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[]{"transfer", "cashback", "expire"}, - NextPageCursorId = "bfc1e1ae-1762-4e2d-bc49-dd469907fdf0", - PrevPageCursorId = "b072e0ac-63a5-491d-8460-2ccc415e2e5f", - PerPage = 161, - TransferTypes = new string[]{"payment", "transfer", "expire", "cashback", "topup"}, - Description = "9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5v", - From = "2022-12-31T06:28:41.000000+09:00", - To = "2022-05-02T14:33:54.000000+09:00", + TransactionTypes = new string[]{"topup", "payment", "expire", "cashback", "transfer", "exchange"}, + NextPageCursorId = "5bec4cee-6f81-4bde-a5dc-47dd217737ce", + PrevPageCursorId = "bb855f61-1a74-4e47-a8de-6dbfb8c6c606", + PerPage = 637, + TransferTypes = new string[]{"expire", "campaign", "payment", "topup", "exchange", "transfer", "coupon"}, + Description = "SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8", + From = "2021-11-27T05:19:55.000000Z", + To = "2023-11-24T11:05:02.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 = false, - TransactionTypes = new string[]{"cashback", "exchange", "transfer", "expire", "topup"}, - NextPageCursorId = "632475d6-87a9-4958-92b8-1129fc135fc0", - PrevPageCursorId = "be9f4428-3cc8-42d3-9f7f-e034eb37be4a", - PerPage = 798, - TransferTypes = new string[]{"coupon"}, - Description = "BXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK", - From = "2023-06-03T13:40:03.000000+09:00", - To = "2020-07-30T14:16:30.000000+09:00", + IsModified = true, + TransactionTypes = new string[]{"payment", "expire"}, + NextPageCursorId = "3405f240-8da3-4c0a-aac9-83e9c7fb400a", + PrevPageCursorId = "ac2d57bd-0f35-4b3d-b1d9-31545b075671", + PerPage = 409, + TransferTypes = new string[]{"exchange", "cashback", "transfer"}, + Description = "ftsBTkZDKCnQigIBcgyeH", + From = "2020-05-21T18:04:32.000000Z", + To = "2021-12-18T22:38:42.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 = "fb2542f3-b02c-486c-bb51-03a1f63e2e08", + PrivateMoneyId = "c5f8a9aa-5e59-4142-a71f-ff58bbe5baa7", IsModified = false, - TransactionTypes = new string[]{"transfer", "topup", "exchange", "cashback"}, - NextPageCursorId = "115842e3-11e1-430b-801e-adf794c7ff31", - PrevPageCursorId = "cc929af0-d47a-4682-b976-cd894bc7c084", - PerPage = 985, - TransferTypes = new string[]{"exchange", "payment", "transfer", "campaign", "coupon", "topup", "cashback", "expire"}, - Description = "D9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2R", - From = "2022-08-17T12:19:08.000000+09:00", - To = "2021-11-04T10:28:49.000000+09:00", + TransactionTypes = new string[]{"topup", "exchange", "payment", "expire", "cashback"}, + NextPageCursorId = "746118e1-b352-4716-8448-99896c751b33", + PrevPageCursorId = "cd354978-16e1-4b35-9d5d-d2da81e9c794", + PerPage = 473, + TransferTypes = new string[]{"campaign", "payment", "cashback", "expire", "transfer"}, + Description = "kmDiQZVmfdCV9wGJUROgp1VTN", + From = "2022-09-01T17:25:32.000000Z", + To = "2023-05-17T17:53:40.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 = "f3d53414-b9b1-4642-8d45-e672258d5f36", - PrivateMoneyId = "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7", + TransactionId = "4d00454b-83dd-473e-b35e-378fe7e694e2", + PrivateMoneyId = "e4e51c6b-efb2-4ff7-b68c-d33dc6558cda", IsModified = false, - TransactionTypes = new string[]{"cashback", "topup", "transfer", "expire", "payment", "exchange"}, - NextPageCursorId = "d4585e6f-2679-40fe-a7e6-991639689ef0", - PrevPageCursorId = "a69cf241-e45c-4b20-81be-e7ce02f06c18", - PerPage = 955, - TransferTypes = new string[]{"coupon", "topup", "expire", "cashback", "exchange", "transfer", "campaign"}, - Description = "9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlL", - From = "2023-08-28T20:01:40.000000+09:00", - To = "2021-08-23T12:21:28.000000+09:00", + TransactionTypes = new string[]{"cashback", "exchange", "payment", "topup", "transfer"}, + NextPageCursorId = "18f7768c-ad87-4008-bc06-b1dedd718fa9", + PrevPageCursorId = "535854c3-8a80-4f5a-b775-f61caba12f7d", + PerPage = 293, + TransferTypes = new string[]{"campaign", "topup", "expire"}, + Description = "vag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBW", + From = "2022-04-03T13:05:47.000000Z", + To = "2024-04-05T13:30:11.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 = "NlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCSh", - TransactionId = "9599ed6f-f38f-40c5-b81c-107b104d7b23", - PrivateMoneyId = "276d3601-5af8-4a20-9844-9fbaa3f8468c", - IsModified = true, - TransactionTypes = new string[]{"expire"}, - NextPageCursorId = "a266bd40-9d8a-454e-941e-c5ed9ad76cf4", - PrevPageCursorId = "3c24753d-b578-4372-a06f-62cbe1ec8109", - PerPage = 87, - TransferTypes = new string[]{"coupon", "campaign", "expire", "cashback", "transfer", "topup", "payment", "exchange"}, - Description = "Du4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULft", - From = "2024-01-12T07:15:23.000000+09:00", - To = "2020-02-05T16:57:10.000000+09:00", + CustomerName = "dXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2w", + TransactionId = "269b4e76-5740-4702-9e11-cdb3b42129b6", + PrivateMoneyId = "6f5b11d9-0a3a-4a2c-9c75-0945346f70b4", + IsModified = false, + TransactionTypes = new string[]{"transfer"}, + NextPageCursorId = "3c8b65bf-35b0-472f-8969-cc83cf27bba4", + PrevPageCursorId = "fc4fad85-a10e-48d2-b4dc-9f34aaaa3814", + PerPage = 202, + TransferTypes = new string[]{"campaign", "expire", "topup", "payment", "transfer", "exchange", "coupon", "cashback"}, + Description = "OrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXW", + From = "2023-05-07T02:16:20.000000Z", + To = "2023-10-08T23:00:15.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 = "2d61edb3-954b-4e7f-8c94-6ee9b8a48e27", - CustomerName = "Om0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz", - TransactionId = "52f64232-8892-41ec-98b0-23a7038f90fd", - PrivateMoneyId = "7de0cad7-35ac-4ffd-8694-c3120c82b9e7", - IsModified = false, - TransactionTypes = new string[]{"expire", "topup"}, - NextPageCursorId = "405ad648-ea88-468d-9f7c-40a88fe6f848", - PrevPageCursorId = "de508515-6614-47ad-8f3e-7e2a67ed0d9c", - PerPage = 279, - TransferTypes = new string[]{"cashback", "transfer", "topup"}, - Description = "nglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSP", - From = "2022-11-18T14:54:20.000000+09:00", - To = "2023-06-04T07:27:19.000000+09:00", + CustomerId = "5113ba87-694b-49fd-957a-5381174e078a", + CustomerName = "kNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajG", + TransactionId = "bd3e233c-75ca-4ef2-bb86-0229952c428f", + PrivateMoneyId = "175ea31e-fa9b-4fc3-80ca-f63e9e4dc526", + IsModified = true, + TransactionTypes = new string[]{"topup", "expire", "payment"}, + NextPageCursorId = "4a83ca5b-c230-442d-8e9e-62d90c18e6d5", + PrevPageCursorId = "a1005a57-c2de-4a2b-96ad-55a354f344df", + PerPage = 441, + TransferTypes = new string[]{"expire", "exchange", "payment", "coupon", "topup", "transfer", "cashback"}, + Description = "uJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ", + From = "2024-02-18T10:47:40.000000Z", + To = "2023-12-04T20:12:21.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 = "lrPa8fbLwdjVaS9Jydp", - CustomerId = "365c05c8-8127-4b71-9892-49eae16f7b3d", - CustomerName = "qW7D3uCGC", - TransactionId = "70c3f409-cd64-43a0-9ac5-ea24d274b711", - PrivateMoneyId = "8bbbee1c-a898-4233-a9a9-975aeea3b537", + ShopName = "bTy", + CustomerId = "e0991056-3b14-4b90-89e7-2d09b188aed6", + CustomerName = "7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxob", + TransactionId = "71a7105a-a739-4725-9a43-da3f5bacfdf0", + PrivateMoneyId = "c0c4ac4e-81ca-4a47-9adc-a8a4fb07eb8c", IsModified = false, - TransactionTypes = new string[]{"payment", "cashback", "transfer", "expire", "topup"}, - NextPageCursorId = "046a3fd3-a284-4a3f-b5a9-cf7f19813612", - PrevPageCursorId = "2c2ea664-75d0-436c-b44a-cf845e697a49", - PerPage = 829, - TransferTypes = new string[]{"exchange", "topup", "expire", "transfer", "cashback", "campaign", "payment"}, - Description = "JxcGB9NLriuIsMTY", - From = "2020-04-10T18:21:16.000000+09:00", - To = "2023-10-12T09:50:49.000000+09:00", + TransactionTypes = new string[]{"payment"}, + NextPageCursorId = "a412eaab-aa22-4936-8c9e-6dfa9b256054", + PrevPageCursorId = "adaed457-6903-43be-895d-2ee2d3616293", + PerPage = 101, + TransferTypes = new string[]{"topup", "transfer"}, + Description = "afdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGx", + From = "2022-11-25T05:47:02.000000Z", + To = "2024-03-14T01:51:23.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 = "847ba643-e955-4f6f-8720-9fcf405b9eac", - ShopName = "Ea9YZaUN", - CustomerId = "8b441dd0-d204-4f00-944d-d2e1992bcf8b", - CustomerName = "gDSPeHLGCGYvgqbqCIdoPTyGfj", - TransactionId = "3e32e683-d6c1-40ec-8f89-63f6fdc03025", - PrivateMoneyId = "d7c87185-31e2-46dc-9000-92a7b4114e60", + ShopId = "0485304a-f9ac-4400-8f2f-8d0eceedec3d", + ShopName = "NTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12", + CustomerId = "c668b0dc-584d-45de-a899-5a0cb7d2aaa1", + CustomerName = "V2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2", + TransactionId = "88fb4def-3727-4351-8f5c-f1fb364f8b23", + PrivateMoneyId = "1c2353a2-3e69-407d-8159-c0cd26e472e3", IsModified = false, - TransactionTypes = new string[]{"transfer", "exchange"}, - NextPageCursorId = "dc46aacc-9db3-476d-9d7b-efd41f87438f", - PrevPageCursorId = "f6f8bd66-27ca-4e68-94fb-d06a09c9e744", - PerPage = 884, - TransferTypes = new string[]{"cashback", "exchange", "transfer", "topup", "coupon", "payment", "campaign", "expire"}, - Description = "UGvnht1UycVdhwjq", - From = "2022-09-09T16:00:30.000000+09:00", - To = "2020-12-15T07:42:56.000000+09:00", + TransactionTypes = new string[]{"transfer", "expire", "payment"}, + NextPageCursorId = "697af85b-f88e-4bd7-8917-667b37d78588", + PrevPageCursorId = "5de39281-fe45-489a-aef5-e2085672a299", + PerPage = 681, + TransferTypes = new string[]{"coupon"}, + Description = "CW3jFlgob7yobgqdqF", + From = "2021-02-08T17:48:13.000000Z", + To = "2022-07-25T16:35:49.000000Z", }; Response.PaginatedTransfersV2 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 3de9907..62923f1 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 = 128, + PerPage = 654, }; 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 = 5531, - PerPage = 5226, + Page = 4132, + PerPage = 7036, }; 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 043b930..d843afc 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( - "5566c41c-555b-49af-8597-54c960fd087e" + "5aa52873-e16f-4c11-9cea-2642c1943892" ); 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( - "5566c41c-555b-49af-8597-54c960fd087e" + "5aa52873-e16f-4c11-9cea-2642c1943892" ) { - Description = "b7zDJ6KZT", + Description = "PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1", }; 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 c5cd416..91ea179 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( - "4dff9f30-e7b8-47ed-8e57-111806c6b881" + "e11a828b-aba8-4627-9805-fa5356585475" ); 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( - "4dff9f30-e7b8-47ed-8e57-111806c6b881" + "e11a828b-aba8-4627-9805-fa5356585475" ) { - ReturningPointExpiresAt = "2023-05-15T16:53:03.000000+09:00", + ReturningPointExpiresAt = "2023-07-09T17:41:01.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( - "4dff9f30-e7b8-47ed-8e57-111806c6b881" + "e11a828b-aba8-4627-9805-fa5356585475" ) { - Description = "SEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZd", - ReturningPointExpiresAt = "2021-12-29T18:38:50.000000+09:00", + Description = "06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9", + ReturningPointExpiresAt = "2022-10-20T18:08:46.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 01f0a4c..7a88cc4 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( - "2023-01-28T08:58:38.000000+09:00", - "2023-07-17T14:10:47.000000+09:00" + "2024-02-27T09:42:41.000000Z", + "2024-03-13T00:41:35.000000Z" ); Response.UserStatsOperation 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 50c42e1..9576657 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( - "553fd4da-7231-4218-aeb3-2d714f66622b" + "f687016b-d0b3-46f2-8833-e8985291851f" ); 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( - "553fd4da-7231-4218-aeb3-2d714f66622b" + "f687016b-d0b3-46f2-8833-e8985291851f" ) { - CanTransferTopup = false, + CanTransferTopup = true, }; Response.AccountDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,7 +57,7 @@ public async Task UpdateAccount2() { try { Request.UpdateAccount request = new Request.UpdateAccount( - "553fd4da-7231-4218-aeb3-2d714f66622b" + "f687016b-d0b3-46f2-8833-e8985291851f" ) { Status = "pre-closed", CanTransferTopup = true, @@ -75,9 +75,9 @@ public async Task UpdateAccount3() { try { Request.UpdateAccount request = new Request.UpdateAccount( - "553fd4da-7231-4218-aeb3-2d714f66622b" + "f687016b-d0b3-46f2-8833-e8985291851f" ) { - IsSuspended = false, + IsSuspended = true, Status = "active", CanTransferTopup = false, }; diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateBill.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateBill.cs index 79567f3..b8fcaab 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( - "6caa7464-5c82-4859-a8f4-0890ecbde2c1" + "825a4ce6-af48-4f92-92de-d87acb01778b" ); 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( - "6caa7464-5c82-4859-a8f4-0890ecbde2c1" + "825a4ce6-af48-4f92-92de-d87acb01778b" ) { IsDisabled = false, }; @@ -57,9 +57,9 @@ public async Task UpdateBill2() { try { Request.UpdateBill request = new Request.UpdateBill( - "6caa7464-5c82-4859-a8f4-0890ecbde2c1" + "825a4ce6-af48-4f92-92de-d87acb01778b" ) { - Description = "AC8MN1MIRbysguh0xXqdkQK8VG", + Description = "lBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdh", IsDisabled = true, }; Response.Bill response = await request.Send(client); @@ -75,11 +75,11 @@ public async Task UpdateBill3() { try { Request.UpdateBill request = new Request.UpdateBill( - "6caa7464-5c82-4859-a8f4-0890ecbde2c1" + "825a4ce6-af48-4f92-92de-d87acb01778b" ) { - Amount = 3986.0, - Description = "zulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8", - IsDisabled = true, + Amount = 2260.0, + Description = "5YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDq", + IsDisabled = false, }; Response.Bill response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs index e4dc930..3627f73 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ); 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - BudgetCapsAmount = 890840466, + BudgetCapsAmount = 181161778, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 323381811, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1536785591, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - MaxTotalPointAmount = 5529, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 764306704, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1107912270, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - MaxPointAmount = 6192, - MaxTotalPointAmount = 2631, + MaxTotalPointAmount = 8498, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 244960136, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1551231567, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - ExistInEachProductGroups = false, - MaxPointAmount = 3887, - MaxTotalPointAmount = 418, + MaxPointAmount = 2584, + MaxTotalPointAmount = 5896, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1631284754, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 401521103, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - MinimumNumberForCombinationPurchase = 8440, ExistInEachProductGroups = true, - MaxPointAmount = 6063, - MaxTotalPointAmount = 5424, + MaxPointAmount = 6537, + MaxTotalPointAmount = 1247, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 705596965, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1061529085, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - MinimumNumberOfAmount = 3676, - MinimumNumberForCombinationPurchase = 4164, - ExistInEachProductGroups = false, - MaxPointAmount = 9250, - MaxTotalPointAmount = 966, + MinimumNumberForCombinationPurchase = 7815, + ExistInEachProductGroups = true, + MaxPointAmount = 1683, + MaxTotalPointAmount = 6492, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 702770666, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 2066876170, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - MinimumNumberOfProducts = 3625, - MinimumNumberOfAmount = 232, - MinimumNumberForCombinationPurchase = 930, + MinimumNumberOfAmount = 919, + MinimumNumberForCombinationPurchase = 3544, ExistInEachProductGroups = false, - MaxPointAmount = 9289, - MaxTotalPointAmount = 5024, + MaxPointAmount = 8993, + MaxTotalPointAmount = 3140, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1585076922, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 489231690, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - ApplicableShopIds = new string[]{"451906b5-4ba1-4e34-ac8c-e7de3f65e2b9", "e34806c5-32d8-4a57-94e8-272fa68ee5c2", "63fada68-f94e-49c2-aff4-0771ea950830", "247399db-92c8-43c0-826c-d2ffad8c75fd", "41c1d7e0-523c-4472-9f19-f335f1407a56"}, - MinimumNumberOfProducts = 1794, - MinimumNumberOfAmount = 422, - MinimumNumberForCombinationPurchase = 147, + MinimumNumberOfProducts = 6634, + MinimumNumberOfAmount = 9698, + MinimumNumberForCombinationPurchase = 4180, ExistInEachProductGroups = false, - MaxPointAmount = 9413, - MaxTotalPointAmount = 4049, + MaxPointAmount = 771, + MaxTotalPointAmount = 3490, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1113859032, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 914638544, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - 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[]{"8045d93d-3623-47e3-a41e-e913d1bd7457", "8ac49481-c72e-4645-b586-84117ac185a1", "f43507c5-2060-42e4-9a30-0cc4a44c6270", "b888ed36-2871-416d-8985-0bdd1db3ebbd", "d511c70f-43fc-4193-9c35-d4e5f5b6768c", "d11a3aee-eb7d-42ad-928e-ec4e9b02f8c9"}, - MinimumNumberOfProducts = 6765, - MinimumNumberOfAmount = 1327, - MinimumNumberForCombinationPurchase = 7153, - ExistInEachProductGroups = true, - MaxPointAmount = 5523, - MaxTotalPointAmount = 6488, + ApplicableShopIds = new string[]{"00a528e9-c261-4ee2-b981-bdc3d4377e2c", "269db146-c9bd-40a6-9bc2-1e17d2144255", "2065abda-ec80-4c7e-ab8d-e34b264152aa", "de32a909-911c-4277-8d76-cffa58900b10", "cf7582d2-f468-40a8-8f2a-02aed1412ffc", "d0a999bd-fc40-4eae-9ae4-3baa1dc8c4ff", "7e0cda43-8a9e-42b9-8cd0-e2c9b78e7b8b", "d03331e2-d3f8-479b-9249-1e6fea4a79eb", "97cb9e09-f43d-42ae-b215-85d34ab5b8cd", "81a1fdbe-d904-48ab-a3c1-a8aef698cc24"}, + MinimumNumberOfProducts = 8389, + MinimumNumberOfAmount = 7136, + MinimumNumberForCombinationPurchase = 3596, + ExistInEachProductGroups = false, + MaxPointAmount = 1741, + MaxTotalPointAmount = 6039, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 2027290463, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1850390631, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - ApplicableDaysOfWeek = new int[]{0, 5, 4, 4, 4, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"fdf3ba5c-da9b-49c2-8e1c-957b82797322", "c8362401-237c-4f89-b368-4bde5683a47a", "81d86303-2ea2-4f5a-9b15-67c7a99a72a5", "6be2143f-dc7c-48b3-b55e-dd2d802e0eb7", "10f8bb0b-6150-4850-be7e-afeed12d3f57"}, - MinimumNumberOfProducts = 7021, - MinimumNumberOfAmount = 5838, - MinimumNumberForCombinationPurchase = 3666, - ExistInEachProductGroups = true, - MaxPointAmount = 2219, - MaxTotalPointAmount = 9916, + 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[]{"d59d6577-693b-451f-ac96-9d9a1a141fab", "a37d0d16-0c6a-4168-91ef-b139b38ea19c", "c853d371-3f41-46ea-81bd-efb0fa232303", "54ad141b-f9b3-4da5-bbb5-1265e25c4eab", "b1784e6d-e221-4b32-a7ba-88875a215f06", "462b9b3c-cdc2-4d8b-9db0-7365773df90f"}, + MinimumNumberOfProducts = 6962, + MinimumNumberOfAmount = 1468, + MinimumNumberForCombinationPurchase = 8443, + ExistInEachProductGroups = false, + MaxPointAmount = 9114, + MaxTotalPointAmount = 4434, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 438117142, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1266165981, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{2, 5, 2, 1, 6, 2, 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"}}}, - ApplicableShopIds = new string[]{"0a26692c-6709-4f3e-9d69-a2d7d49f8cd0", "ed451c76-3ab5-4993-89e4-2da42d9d1396", "47fdbdc1-e0a0-41e2-a855-68203b8e0b42", "ee92a2d7-3d14-46f4-a11b-0336af30c5b8", "bb5eccf6-eb1b-4009-a128-cf0c31126e86", "8efc85b7-3308-40dd-9fb9-0919c8d8bb4b", "d95c364e-1267-4c73-9aef-c02c57bc2691", "03d24b8a-2c98-4f8d-9c64-fd923a2f9a0e"}, - MinimumNumberOfProducts = 216, - MinimumNumberOfAmount = 1847, - MinimumNumberForCombinationPurchase = 4405, - ExistInEachProductGroups = true, - MaxPointAmount = 9828, - MaxTotalPointAmount = 2851, + ApplicableDaysOfWeek = new int[]{3, 5, 2, 4, 4, 3, 5, 5, 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"}}}, + ApplicableShopIds = new string[]{"23faa017-b42e-42f2-85eb-cbd580ef6ef2", "899abc4b-335d-44d5-8941-4144be82fcac", "bc7247d9-d524-4661-95cd-4140ef791dd3", "0d4ffd34-0e8a-4517-bbd6-f60b82e8bf31", "b27ea8af-4fdb-47f8-9930-8a031c5e5a03", "7434137a-3eb6-4df1-8ab9-4e524483acbc"}, + MinimumNumberOfProducts = 2048, + MinimumNumberOfAmount = 4726, + MinimumNumberForCombinationPurchase = 7026, + ExistInEachProductGroups = false, + MaxPointAmount = 9795, + MaxTotalPointAmount = 5194, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 602282020, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1177710031, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{2, 6, 2, 2, 4, 1}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"2eafbf65-d8bf-438f-9710-9058c9d51e2e", "c35068c1-7373-4ffb-830d-9bd53f3e9fcf", "1ee4d998-8ae5-4dd3-894c-7e204375a10e", "0d40ede9-88ba-4f63-8b0d-c72488c6543d", "9ee28e4a-ac75-4991-922e-6e67ce4b1d50", "22cfc1cd-7968-4701-9ba3-f3eb748c3362", "e470684e-971f-4a8a-9714-2da76af1242a", "b372e907-16b4-4518-803f-613432590178", "5f6f32b5-8dec-465b-94f0-17940963cc21", "29f7d319-a9e9-421c-ab60-557a9c78491a"}, - MinimumNumberOfProducts = 3174, - MinimumNumberOfAmount = 8045, - MinimumNumberForCombinationPurchase = 6281, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{2, 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[]{"6c51ea79-7271-4fe9-bb2a-f3fae1d5abab", "8d23aa86-0356-4fd1-856f-5b1620d87007", "d9dba665-183e-410e-ba86-0a329fe19cdc", "6c751e60-ec06-46d8-bd39-412a95824f01", "2f95706d-2a2b-4ed1-9e0a-214ad1ed4069", "a0b84fc5-d145-4a4c-ac14-c0d6eaf996fd", "ac0a94ba-acec-41f9-841d-b6e3f4fc265b", "b02ce98f-048e-4b66-9be4-9b7c54d5587e", "f280f724-3491-4da4-a8ae-2e8883f44c41"}, + MinimumNumberOfProducts = 689, + MinimumNumberOfAmount = 3787, + MinimumNumberForCombinationPurchase = 2782, ExistInEachProductGroups = true, - MaxPointAmount = 7040, - MaxTotalPointAmount = 6107, + MaxPointAmount = 4981, + MaxTotalPointAmount = 631, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 2063324920, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1588912217, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{3, 2, 6, 4, 5, 6, 5, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"af424593-329d-4569-a70e-99627c770734", "0df948d9-f062-4033-b436-71eb9bc7586d", "c2885e76-1879-4e8f-a87c-eba8c16c4d7c", "c3f1c30e-a60f-4103-aa22-17c4e2a21637", "bd8577a2-1109-49d9-a186-62fe51976f2d", "28cd3631-9e0a-46bb-ac16-be60edba18bc", "eac15ebe-9c21-4a67-baf1-8649b1696582", "43250fe8-4cb5-444d-8c93-1e705efc32d5", "16c61370-cd41-4365-b590-c9529fa02f98", "d994baee-b24a-4a21-98f1-11570610b1ff"}, - MinimumNumberOfProducts = 4766, - MinimumNumberOfAmount = 6590, - MinimumNumberForCombinationPurchase = 8537, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 5, 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[]{"f8677082-1d94-41e2-ada5-d311492d1de6", "84ffed64-0405-43b8-bc6c-719944102ec9", "9abef437-11e3-4461-b32f-a9ef8b86a379", "4099be51-b99f-4d51-8973-d8007b011212", "d9b0ac9c-77d5-4fec-b3ba-38f2901290c3", "e395c5cd-c21f-421f-84b2-131019fb3020", "5836bd05-4dda-462b-8e4d-b9f05af66ac5"}, + MinimumNumberOfProducts = 3353, + MinimumNumberOfAmount = 8470, + MinimumNumberForCombinationPurchase = 9669, ExistInEachProductGroups = true, - MaxPointAmount = 9020, - MaxTotalPointAmount = 3210, + MaxPointAmount = 8980, + MaxTotalPointAmount = 4336, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 583448988, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1297013107, }; 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( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{2}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"f43a7baf-a0ef-4c23-9db0-60fcb6157943"}, - MinimumNumberOfProducts = 4605, - MinimumNumberOfAmount = 517, - MinimumNumberForCombinationPurchase = 8649, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{4, 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[]{"a6a9d58b-235f-4c64-94d0-50739dbb2310", "d8cd47ea-da68-470d-ad55-4c24280e130e", "a29c39f3-3cbe-47d7-a275-2b3b0e15f01e", "8fa69795-ade8-4f07-aee2-2e9278d1953f", "5f995649-a955-4746-bb6c-90ff1cfebb28", "dd50e966-9bc0-4676-afe2-83a4f0cdadcf", "67ab9220-d5df-4d9b-94e3-583a56b94e5d"}, + MinimumNumberOfProducts = 1261, + MinimumNumberOfAmount = 985, + MinimumNumberForCombinationPurchase = 9292, ExistInEachProductGroups = true, - MaxPointAmount = 4118, - MaxTotalPointAmount = 7473, + MaxPointAmount = 4727, + MaxTotalPointAmount = 2728, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1460780232, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1360548114, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -400,24 +400,24 @@ public async Task UpdateCampaign16() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - 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}}, 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{6, 5, 5, 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[]{"7a4cd326-3c66-4dff-a0b3-45c8ec500426", "06c8253e-0065-45de-a8be-65fc3befde31", "5e0e78e6-84b0-4d1d-9159-643a729452dc", "ee4a5c5f-87c5-4feb-a7ca-72ee8ad14a63", "0d712633-e969-4d69-9f85-d800d7d21893", "9b80a95d-e1ae-4340-8a0f-fd2214685b33", "e0de024e-a240-4544-9b23-46db3489a0d6", "31c5050f-f0c6-421f-ab3a-5e02a802369b"}, - MinimumNumberOfProducts = 9295, - MinimumNumberOfAmount = 7137, - MinimumNumberForCombinationPurchase = 3818, - ExistInEachProductGroups = false, - MaxPointAmount = 9256, - MaxTotalPointAmount = 7547, + 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}}}, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{6, 4, 3, 6, 3, 3, 0, 2, 1, 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"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"53895544-4104-44b1-8c56-7ea51fb24f59", "0e92a4fb-f5fd-48ff-ae3a-bbd48b92295d", "6e468868-43c5-41e0-8a9d-68d1af0a78fe"}, + MinimumNumberOfProducts = 976, + MinimumNumberOfAmount = 6861, + MinimumNumberForCombinationPurchase = 1133, + ExistInEachProductGroups = true, + MaxPointAmount = 5868, + MaxTotalPointAmount = 2526, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 161597696, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1889384019, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -432,25 +432,25 @@ public async Task UpdateCampaign17() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - PointExpiresInDays = 8148, - 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}}}, - 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}}}, + 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}}}, BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{0, 0, 1}, + ApplicableDaysOfWeek = new int[]{6, 0, 4, 1, 3, 1, 2, 3, 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"}}, 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[]{"35d34e3d-d63d-4afa-8db2-ca898075cdff", "aae1a663-fbe7-4903-a864-a65f71aea906", "c38cc1e3-e332-4100-8c1b-7aea48b07fa0", "b9ea4661-a2fc-413c-920c-c8ea17faa90a", "2cc5f6b2-747d-42c7-b31e-ab751a27152d", "a4eba469-be9b-453f-a87e-59d6d131a915", "03db2939-b4d5-4d73-849a-79beb78a1a6e", "2dd72194-356c-45fe-aab2-7aed3b170511", "fa884138-9f17-4f17-ae27-5be0e7cd26a1"}, - MinimumNumberOfProducts = 4457, - MinimumNumberOfAmount = 3422, - MinimumNumberForCombinationPurchase = 2314, - ExistInEachProductGroups = false, - MaxPointAmount = 7529, - MaxTotalPointAmount = 856, + ApplicableShopIds = new string[]{"f77d846f-d253-4b4a-b02b-57a7e55fc8f4", "ed1dc640-6697-40b0-8cf8-c9f7665a8397", "f992738e-d6fa-413b-8067-e69fa1d313da", "825937ad-569c-4b33-bd00-9b1c8bfc85a8", "19ea0ed3-4ac1-46f3-aaf0-b2032ff1fc41", "6d723416-8975-4350-8aad-ddd13724ff20", "c8571477-0fcf-4e92-8d45-c378a5811193", "b7c826ba-6643-48b1-b7b6-f56919f973e6"}, + MinimumNumberOfProducts = 826, + MinimumNumberOfAmount = 1755, + MinimumNumberForCombinationPurchase = 4212, + ExistInEachProductGroups = true, + MaxPointAmount = 6403, + MaxTotalPointAmount = 9386, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 631031534, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1373673970, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -465,26 +465,26 @@ public async Task UpdateCampaign18() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - PointExpiresAt = "2020-08-05T15:13:26.000000+09:00", - PointExpiresInDays = 4205, - 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}}, 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{5, 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[]{"6c1dba40-9508-4c04-a484-5caeaa80a54f", "e88a5db8-7813-40bb-9645-05a1eafe2e60", "653b57a9-e299-413c-bea7-c41c68ef6d74", "1268aa33-8d14-40e8-b94e-c030a176b127"}, - MinimumNumberOfProducts = 5983, - MinimumNumberOfAmount = 6393, - MinimumNumberForCombinationPurchase = 5489, + PointExpiresInDays = 8760, + 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}}, 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 1, 2, 4, 0, 5, 0, 5, 0}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"48608f45-8415-40b8-a287-a926e9dd5ff3", "db65c1e9-c691-46b7-be57-fdeb56918886", "839228f4-74fb-4eef-a16d-f65449b03e53", "feec9c1f-6ca4-4949-88fd-b62dbf3cfcf3", "d732deb3-9c00-4773-8673-f93d7a4b66f3", "163a513a-d3b0-43e2-935a-f5b14948a6fc"}, + MinimumNumberOfProducts = 929, + MinimumNumberOfAmount = 2003, + MinimumNumberForCombinationPurchase = 392, ExistInEachProductGroups = false, - MaxPointAmount = 6906, - MaxTotalPointAmount = 7932, + MaxPointAmount = 7358, + MaxTotalPointAmount = 9217, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1939346942, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 403122126, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -499,27 +499,27 @@ public async Task UpdateCampaign19() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - Status = "enabled", - PointExpiresAt = "2022-02-18T19:26:11.000000+09:00", - PointExpiresInDays = 8453, - IsExclusive = false, + PointExpiresAt = "2020-04-15T03:04:29.000000Z", + PointExpiresInDays = 6760, + 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}}, 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{5, 5, 3, 5, 5, 5, 2, 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"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"932d38c8-b908-4d3a-acdd-e7d8cf188d11", "e30abff5-65d3-40c5-9785-a465e9b3f1cd"}, - MinimumNumberOfProducts = 8843, - MinimumNumberOfAmount = 5945, - MinimumNumberForCombinationPurchase = 5123, - ExistInEachProductGroups = true, - MaxPointAmount = 7722, - MaxTotalPointAmount = 2926, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 1, 2, 4, 4, 2, 2, 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"}}, 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[]{"b6dccb11-6e36-478c-8511-dad23193dd38", "717c9339-01f6-49d2-8207-f481f806a765", "2c98a4e8-4559-4e49-9ae2-dcbfc96ae27c", "609bb9cd-6268-4e36-a5cd-b7108586262f", "b67449e6-f7bf-41a5-83bb-977d9658ed1e"}, + MinimumNumberOfProducts = 1195, + MinimumNumberOfAmount = 5716, + MinimumNumberForCombinationPurchase = 7273, + ExistInEachProductGroups = false, + MaxPointAmount = 4677, + MaxTotalPointAmount = 9653, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1195112782, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 961141057, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -534,28 +534,28 @@ public async Task UpdateCampaign20() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - Description = "qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGn", - Status = "disabled", - PointExpiresAt = "2021-07-03T08:21:57.000000+09:00", - PointExpiresInDays = 1402, + Status = "enabled", + PointExpiresAt = "2023-11-22T00:09:41.000000Z", + PointExpiresInDays = 16, 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}}, 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}}}, + 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}}}, BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{2, 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[]{"80bebf8d-ef45-4e96-9834-95b601aeae44", "7dfa4424-85cc-4eb0-9f45-66a5bb5a1059", "6f51523b-febf-439a-b986-8814f56ffb44", "0f43a566-1167-49b2-8b9a-9e32d5de1b4b", "b58af7d3-9fc2-483b-8a1d-a79b9e205b33", "038e1d9c-df7f-4d10-b2fd-e579ca3c2cba", "e059e600-b397-47a7-9463-d7a2e79bf265", "66eda148-8bae-406b-b065-1610a5fa468f", "4059f80e-db4a-4c03-81d3-9c198da61d35"}, - MinimumNumberOfProducts = 8244, - MinimumNumberOfAmount = 3099, - MinimumNumberForCombinationPurchase = 9690, + ApplicableDaysOfWeek = new int[]{4, 0, 4, 1, 0}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"ec920e5d-92b2-4614-a5f0-e511a2a60878", "faab7968-148e-4713-9894-af76bd351dae"}, + MinimumNumberOfProducts = 4967, + MinimumNumberOfAmount = 4595, + MinimumNumberForCombinationPurchase = 3040, ExistInEachProductGroups = true, - MaxPointAmount = 7539, - MaxTotalPointAmount = 1190, + MaxPointAmount = 9109, + MaxTotalPointAmount = 514, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1643935742, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1684968217, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -570,29 +570,29 @@ public async Task UpdateCampaign21() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - Event = "payment", - Description = "Rvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPD", - Status = "disabled", - PointExpiresAt = "2020-06-23T23:07:23.000000+09:00", - PointExpiresInDays = 2689, + Description = "wCwzvGv5tXB9341AdQSvr2jD2CPBEg6q", + Status = "enabled", + PointExpiresAt = "2022-03-23T09:01:12.000000Z", + PointExpiresInDays = 8660, 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}}}, - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{0, 3, 4, 5, 1, 1, 1, 6, 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"}}, 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[]{"a79b9da3-6119-48ea-96db-c3ee770042bf"}, - MinimumNumberOfProducts = 7581, - MinimumNumberOfAmount = 1844, - MinimumNumberForCombinationPurchase = 7332, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{4, 1, 5, 3, 0, 5, 5, 5, 0, 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[]{"be5aa228-893e-4182-ae54-186e0ef9f44d", "2b5db9d0-befc-457c-90f4-f241a80b205e", "1d34e9b7-5a26-4e54-901a-b62500981533", "c6829584-c4c5-4aae-b2ee-4025038ae224", "5c201e11-7ec3-4ba4-809b-b9b83ff61aca", "95917aa0-505a-4ee3-9bf1-031687a1b3c9", "d04ee163-fb19-4571-9a29-65c2fe70eb32", "1e7b1f6e-bc7b-486b-be1e-38824492bd68", "e6d341ad-c777-4fb5-96f5-676e91621e6e", "f193e6a4-bee8-4a32-b91a-33ac9cf0bc98"}, + MinimumNumberOfProducts = 6654, + MinimumNumberOfAmount = 3032, + MinimumNumberForCombinationPurchase = 7890, ExistInEachProductGroups = true, - MaxPointAmount = 7222, - MaxTotalPointAmount = 4238, + MaxPointAmount = 3579, + MaxTotalPointAmount = 7986, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 2101911273, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1878840748, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -607,30 +607,30 @@ public async Task UpdateCampaign22() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - Priority = 2055, Event = "topup", - Description = "0vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbM", + Description = "xB", Status = "enabled", - PointExpiresAt = "2020-07-09T00:55:34.000000+09:00", - PointExpiresInDays = 5942, - IsExclusive = false, + PointExpiresAt = "2020-01-06T07:28:49.000000Z", + PointExpiresInDays = 3315, + 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}}}, + 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{6, 0, 0, 1, 1, 2, 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"}}, 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[]{"31b644ef-2ce1-4afc-9192-a8812e039149", "3c86c5d0-0815-4cfe-aa3c-034739408316", "913b624a-2437-44ca-8742-db7e189efac3", "e1233b00-8f9f-4d0b-b117-5c6f29ba1991"}, - MinimumNumberOfProducts = 9270, - MinimumNumberOfAmount = 1107, - MinimumNumberForCombinationPurchase = 221, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{4, 1, 0, 4}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"130e4012-1e10-42de-9bc2-feb651572531", "70117676-7163-41ff-ba24-80a231d2e4cf", "a9d764da-5e60-4e9d-b1bc-530a17feaa75", "7b9715bf-8dce-4f20-9c88-e502926edc42", "f4eb1394-fca1-4d41-a472-0000a17a949b", "236a9dba-1a7c-475f-b61a-dd0bae7481fe"}, + MinimumNumberOfProducts = 9709, + MinimumNumberOfAmount = 2279, + MinimumNumberForCombinationPurchase = 1915, ExistInEachProductGroups = true, - MaxPointAmount = 6566, - MaxTotalPointAmount = 2106, + MaxPointAmount = 498, + MaxTotalPointAmount = 204, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 676734527, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 422905581, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -645,31 +645,31 @@ public async Task UpdateCampaign23() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - EndsAt = "2022-03-29T06:22:46.000000+09:00", - Priority = 9318, - Event = "payment", - Description = "VrWrKd8ZckndPnp3nLoMele3ppOb8vOALeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRg", + Priority = 1646, + Event = "external-transaction", + Description = "40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opua", Status = "disabled", - PointExpiresAt = "2022-08-30T01:48:04.000000+09:00", - PointExpiresInDays = 2750, - IsExclusive = true, + PointExpiresAt = "2022-05-04T22:16:14.000000Z", + PointExpiresInDays = 2742, + 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}}, 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{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"}}}, - ApplicableShopIds = new string[]{"9a2d9c52-141c-48ec-8c82-5f2f7a19f5dc", "e8460319-2210-476f-ac22-b0ab2144bb06", "e156e2cc-0722-4bfd-bf9b-d0882f60821d", "38553eea-774d-4514-ad91-d2bea7a7afcc", "cdde0ca1-db53-4a07-bd48-1215541888d1"}, - MinimumNumberOfProducts = 4928, - MinimumNumberOfAmount = 538, - MinimumNumberForCombinationPurchase = 8974, - ExistInEachProductGroups = true, - MaxPointAmount = 2325, - MaxTotalPointAmount = 6024, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 3, 0, 4, 6, 1, 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[]{"382227c6-6bd3-436a-a2c2-d7fda50a91ba", "e229141c-028e-4f97-b12d-ca0ef81f99e8", "d8d0cd69-2b52-44ea-9318-7754299d9597", "019950ce-7cd3-4da7-9595-5f28dceb1155", "16a36881-84b4-45a8-9cb6-06c4c57b02cb", "90f9a9d0-3aa2-4c07-8f76-132d0e6819f9", "28a54c8b-57ab-4119-8f6b-86a10020c2f4", "210b4a9b-d5cb-451d-8121-9f634058c719", "2f4e9d18-fcba-43d7-9dc3-eff99dbeb801", "d50eb407-0dbe-45fd-bf7d-30cb5e14ac6d"}, + MinimumNumberOfProducts = 8245, + MinimumNumberOfAmount = 7669, + MinimumNumberForCombinationPurchase = 584, + ExistInEachProductGroups = false, + MaxPointAmount = 5171, + MaxTotalPointAmount = 4039, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 414634257, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 946175099, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -684,32 +684,32 @@ public async Task UpdateCampaign24() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - StartsAt = "2020-12-10T06:52:48.000000+09:00", - EndsAt = "2023-09-29T22:25:44.000000+09:00", - Priority = 2179, - Event = "payment", - Description = "tHPdlvKxC8QojNKN0zqICt7BPEIsHw9iaxaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMN", - Status = "disabled", - PointExpiresAt = "2020-12-18T22:48:08.000000+09:00", - PointExpiresInDays = 9838, - 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}}}, - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{6, 3, 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"}}}, - ApplicableShopIds = new string[]{"6d663cf1-10ef-4266-8d02-787191e56d31", "014cf454-93f9-4946-a3d7-1c5d1c273b30", "97eea620-6855-4ff5-9b9c-629ebe3602bf", "c3f2f463-0e23-41b5-bbf5-bae74c13bc91", "4768eb7e-9595-4532-93fc-0c701f3c0f8a"}, - MinimumNumberOfProducts = 4805, - MinimumNumberOfAmount = 5872, - MinimumNumberForCombinationPurchase = 3777, - ExistInEachProductGroups = true, - MaxPointAmount = 9860, - MaxTotalPointAmount = 9034, + EndsAt = "2021-11-09T12:39:01.000000Z", + Priority = 3502, + Event = "topup", + Description = "PN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZ", + Status = "enabled", + PointExpiresAt = "2022-05-04T16:36:07.000000Z", + PointExpiresInDays = 6192, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{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"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"bb7603e4-3a68-41d4-9c82-9873fb019089", "0dd17f90-bf18-4753-bb3a-310cd42e4f78", "83721b8f-6918-4ece-9fba-2dbd834be33e"}, + MinimumNumberOfProducts = 7843, + MinimumNumberOfAmount = 1925, + MinimumNumberForCombinationPurchase = 8003, + ExistInEachProductGroups = false, + MaxPointAmount = 7361, + MaxTotalPointAmount = 77, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 2082490634, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 786802972, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -724,33 +724,75 @@ public async Task UpdateCampaign25() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "55f41839-b543-439c-a2e3-7915f8aedbcf" + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" ) { - Name = "5OQQ9GoRehaS9O2M3fskqX8Wbk", - StartsAt = "2023-05-31T11:07:36.000000+09:00", - EndsAt = "2022-07-22T02:58:39.000000+09:00", - Priority = 3466, + StartsAt = "2021-01-15T15:30:11.000000Z", + EndsAt = "2021-07-17T11:38:35.000000Z", + Priority = 7672, Event = "external-transaction", - Description = "p66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5I6vYJqE", + Description = "gPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6E", Status = "disabled", - PointExpiresAt = "2022-06-29T03:13:37.000000+09:00", - PointExpiresInDays = 2676, - 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}}}, + PointExpiresAt = "2023-09-07T19:53:41.000000Z", + PointExpiresInDays = 5930, + 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}}, 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{5, 6, 5, 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"}}, 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[]{"86fbab3b-13cb-431d-90b9-a693796c3ae2", "5337d6df-29db-4567-aed9-dee1e3e0e5ae", "d5e64111-d56e-4f0f-91e2-48d6b26b893a", "4ed59494-d4d1-48cd-b95a-aab619866c86", "51c48dd2-2ec7-4ab0-abbc-e98f208ad043", "7ae00418-5b98-4e73-9426-c1d03e0a9be4", "ecd27922-31ff-4e7a-b790-1f45912395f2"}, - MinimumNumberOfProducts = 6701, - MinimumNumberOfAmount = 2230, - MinimumNumberForCombinationPurchase = 6674, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 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"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"a9523461-2d3d-4fa1-8d99-6ca922998284", "6a8ee715-848c-4cbc-9119-dac20abebb72", "f0117693-bfed-446e-bd64-476914410982", "997ae4c3-070d-43be-8e1d-4c7827348258", "e574af58-d500-4377-9a6a-a5c6b37b48e1", "621bc926-5cd2-4d1b-810a-39875c625afb", "53f7e6bd-9865-4b5e-94ae-a8aebf21c3f8", "798c98a4-b8a6-47df-bd93-09e6c57304e5", "9790f630-b359-421c-9e10-e98915885351", "656a8993-7a43-4b9a-887a-c1fc9d229aed"}, + MinimumNumberOfProducts = 8249, + MinimumNumberOfAmount = 7959, + MinimumNumberForCombinationPurchase = 2686, ExistInEachProductGroups = false, - MaxPointAmount = 2649, - MaxTotalPointAmount = 5897, + MaxPointAmount = 3462, + MaxTotalPointAmount = 9296, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 1333509384, + }; + 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 UpdateCampaign26() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "f3bdb948-23ce-40ff-8b46-c9eae53b51ce" + ) { + Name = "G8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrK", + StartsAt = "2021-03-27T23:06:53.000000Z", + EndsAt = "2023-03-01T10:30:12.000000Z", + Priority = 3145, + Event = "payment", + Description = "gS5Ag", + Status = "disabled", + PointExpiresAt = "2022-06-05T21:21:31.000000Z", + PointExpiresInDays = 2859, + 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}}}, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{0, 0, 3, 5, 6, 5, 0, 5, 3, 3}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"a027c686-881e-47b8-a307-2f497d4181dd", "adf594c4-1bdb-465b-afd4-033028b8c9a0", "29af4c5e-129a-4a68-aeed-0389997b213b", "79b635b8-9ce8-4b24-b8fb-441ea093b2e5", "9b7866f6-1bdb-4557-aab6-d4265f7ea604", "7e03a7b8-6f1b-40df-8e3e-0bbd0aa50803", "7537fb18-d702-414b-b095-087f8d59c55e"}, + MinimumNumberOfProducts = 364, + MinimumNumberOfAmount = 8716, + MinimumNumberForCombinationPurchase = 5234, + ExistInEachProductGroups = true, + MaxPointAmount = 6225, + MaxTotalPointAmount = 6350, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 442236460, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + BudgetCapsAmount = 403686996, }; 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 e07534f..cfbe35b 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( - "7334a113-1305-43a6-8819-0cbe75c1e56b" + "5dac37c8-967a-4962-8818-43f58aac4ee3" ); 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( - "7334a113-1305-43a6-8819-0cbe75c1e56b" + "5dac37c8-967a-4962-8818-43f58aac4ee3" ) { - ExpiresIn = 9342, + ExpiresIn = 2373, }; 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( - "7334a113-1305-43a6-8819-0cbe75c1e56b" + "5dac37c8-967a-4962-8818-43f58aac4ee3" ) { - Description = "JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3", - ExpiresIn = 8686, + Description = "hID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5", + ExpiresIn = 6071, }; 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( - "7334a113-1305-43a6-8819-0cbe75c1e56b" + "5dac37c8-967a-4962-8818-43f58aac4ee3" ) { - Amount = 4018.0, - Description = "OYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFS", - ExpiresIn = 5471, + Amount = 6557.0, + Description = "YJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhr", + ExpiresIn = 9919, }; 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 8ce6fcb..59dbe4c 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( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ); 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( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { IsDisabled = true, }; @@ -57,10 +57,10 @@ public async Task UpdateCheck2() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { - BearPointAccount = "072a9190-0d8f-4ab7-ac48-b951167835d8", - IsDisabled = false, + BearPointAccount = "3cc26d66-07d7-4d44-ae53-ac7f3db8f5aa", + IsDisabled = true, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task UpdateCheck3() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { - PointExpiresInDays = 4728, - BearPointAccount = "c5505879-ca81-41a8-bc86-756d9874f346", - IsDisabled = true, + PointExpiresInDays = 2314, + BearPointAccount = "45c0ba17-d7f0-4865-8df3-50719a631a8a", + IsDisabled = false, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,11 +94,11 @@ public async Task UpdateCheck4() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { - PointExpiresAt = "2023-08-01T12:05:06.000000+09:00", - PointExpiresInDays = 5475, - BearPointAccount = "841779d8-4559-489d-b618-282698f31e8b", + PointExpiresAt = "2020-11-21T04:59:27.000000Z", + PointExpiresInDays = 1013, + BearPointAccount = "4f151408-3dc4-48c2-9b9c-6781efd7a710", IsDisabled = true, }; Response.Check response = await request.Send(client); @@ -114,13 +114,13 @@ public async Task UpdateCheck5() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { - ExpiresAt = "2021-10-31T19:31:29.000000+09:00", - PointExpiresAt = "2020-08-04T06:07:39.000000+09:00", - PointExpiresInDays = 8783, - BearPointAccount = "09566a84-dcaa-423b-b383-cc1c192f55dd", - IsDisabled = false, + ExpiresAt = "2021-11-01T08:44:22.000000Z", + PointExpiresAt = "2024-03-28T07:52:21.000000Z", + PointExpiresInDays = 8198, + BearPointAccount = "3ad09d4e-6ed7-41d0-82c0-7bfbe6b8ea70", + IsDisabled = true, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +135,14 @@ public async Task UpdateCheck6() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { - UsageLimit = 2913, - ExpiresAt = "2022-11-29T20:45:32.000000+09:00", - PointExpiresAt = "2023-09-24T17:56:04.000000+09:00", - PointExpiresInDays = 6355, - BearPointAccount = "0a2dd14f-5839-40a2-bd87-246a2c8f40bc", - IsDisabled = false, + UsageLimit = 2515, + ExpiresAt = "2020-09-15T17:25:20.000000Z", + PointExpiresAt = "2021-05-11T07:45:14.000000Z", + PointExpiresInDays = 6226, + BearPointAccount = "360d72a7-cff4-4c65-a074-da84f3b42d26", + IsDisabled = true, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -157,15 +157,15 @@ public async Task UpdateCheck7() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { IsOnetime = false, - UsageLimit = 5332, - ExpiresAt = "2020-01-21T08:27:41.000000+09:00", - PointExpiresAt = "2023-05-11T01:55:44.000000+09:00", - PointExpiresInDays = 2743, - BearPointAccount = "d628d433-7664-40d2-847d-9ea2d22fc522", - IsDisabled = true, + UsageLimit = 2578, + ExpiresAt = "2023-04-27T16:53:26.000000Z", + PointExpiresAt = "2023-02-17T02:29:48.000000Z", + PointExpiresInDays = 6966, + BearPointAccount = "90acf756-34b0-493c-8903-cb2286f701d5", + IsDisabled = false, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,15 +180,15 @@ public async Task UpdateCheck8() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { - Description = "KNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPn", - IsOnetime = true, - UsageLimit = 8068, - ExpiresAt = "2022-05-07T09:36:44.000000+09:00", - PointExpiresAt = "2021-09-19T12:44:26.000000+09:00", - PointExpiresInDays = 4139, - BearPointAccount = "23e5c540-fdb0-45ea-bdf3-6bb585faebf2", + Description = "1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4u", + IsOnetime = false, + UsageLimit = 3447, + ExpiresAt = "2022-04-18T08:33:37.000000Z", + PointExpiresAt = "2022-01-24T12:16:02.000000Z", + PointExpiresInDays = 3767, + BearPointAccount = "e1f2f846-689c-4b60-998d-24ac3a4a995c", IsDisabled = false, }; Response.Check response = await request.Send(client); @@ -204,17 +204,17 @@ public async Task UpdateCheck9() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { - PointAmount = 3699.0, - Description = "Z4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFu", - IsOnetime = true, - UsageLimit = 1701, - ExpiresAt = "2023-12-13T10:40:58.000000+09:00", - PointExpiresAt = "2024-02-20T01:10:12.000000+09:00", - PointExpiresInDays = 5294, - BearPointAccount = "692797f0-c0b1-4ca2-94be-9084883b2f86", - IsDisabled = false, + PointAmount = 5575.0, + Description = "MQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQ", + IsOnetime = false, + UsageLimit = 7765, + ExpiresAt = "2024-01-02T06:03:23.000000Z", + PointExpiresAt = "2020-06-28T23:46:44.000000Z", + PointExpiresInDays = 2604, + BearPointAccount = "9ca65ee9-643d-4248-9bf6-1a20cb39bc80", + IsDisabled = true, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -229,17 +229,17 @@ public async Task UpdateCheck10() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "34ee7eda-1645-4450-8e1c-b185b7bd9dce" + "ad7098b0-8589-4167-9ac1-af2aa6982850" ) { - MoneyAmount = 3293.0, - PointAmount = 1785.0, - Description = "Hobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH", + MoneyAmount = 9742.0, + PointAmount = 7372.0, + Description = "f0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio", IsOnetime = false, - UsageLimit = 6459, - ExpiresAt = "2020-04-27T16:47:41.000000+09:00", - PointExpiresAt = "2020-10-23T03:27:50.000000+09:00", - PointExpiresInDays = 2862, - BearPointAccount = "08afd9dd-0a6e-4a9f-b923-e11535092675", + UsageLimit = 7227, + ExpiresAt = "2020-07-23T10:39:57.000000Z", + PointExpiresAt = "2020-07-02T02:49:18.000000Z", + PointExpiresInDays = 7920, + BearPointAccount = "a20db4b0-1889-4bf1-b978-6130784154e9", IsDisabled = false, }; Response.Check response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs index de3ac93..afcc4c2 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 8602, + DiscountAmount = 1538, }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 5554, - Name = "hTsSxNXBuhLAxPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0Ta", + DiscountAmount = 2438, + Name = "aBOX1Ig", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 2957, - Description = "BrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOr", - Name = "KA4IwgS5AgijW", + DiscountAmount = 3629, + Description = "8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdk", + Name = "sVLOzbmWJa8YkV10V05hf8WtQGHp", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 2296, - DiscountUpperLimit = 3608, - Description = "neekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj", - Name = "5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac", + DiscountAmount = 3514, + DiscountUpperLimit = 5516, + Description = "v3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUx", + Name = "AJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfU", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 1593, - StartsAt = "2022-09-20T16:39:04.000000+09:00", - DiscountUpperLimit = 6364, - Description = "r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZG", - Name = "GCqaBwJ9iX", + DiscountAmount = 7667, + StartsAt = "2021-03-27T19:26:47.000000Z", + DiscountUpperLimit = 1827, + Description = "hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f", + Name = "6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 5610, - EndsAt = "2023-10-28T01:07:36.000000+09:00", - StartsAt = "2021-07-06T12:25:32.000000+09:00", - DiscountUpperLimit = 9157, - Description = "bkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V1", - Name = "DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iB", + DiscountAmount = 2232, + EndsAt = "2023-09-30T23:35:16.000000Z", + StartsAt = "2021-10-03T12:20:42.000000Z", + DiscountUpperLimit = 844, + Description = "TKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUr", + Name = "gWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRl", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 8903, - DisplayStartsAt = "2021-08-28T13:14:25.000000+09:00", - EndsAt = "2022-07-28T06:50:55.000000+09:00", - StartsAt = "2022-05-03T16:47:09.000000+09:00", - DiscountUpperLimit = 4355, - Description = "UmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66", - Name = "i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fk", + DiscountAmount = 5356, + DisplayStartsAt = "2020-08-07T17:29:28.000000Z", + EndsAt = "2020-09-27T02:23:50.000000Z", + StartsAt = "2020-03-05T12:35:54.000000Z", + DiscountUpperLimit = 2330, + Description = "3bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47Wi", + Name = "Dgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdq", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 4491, - DisplayEndsAt = "2023-01-10T01:24:41.000000+09:00", - DisplayStartsAt = "2023-05-18T11:05:49.000000+09:00", - EndsAt = "2023-02-06T01:25:37.000000+09:00", - StartsAt = "2023-01-17T17:51:03.000000+09:00", - DiscountUpperLimit = 7060, - Description = "uaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR", - Name = "lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxH", + DiscountAmount = 4702, + DisplayEndsAt = "2023-11-01T03:28:59.000000Z", + DisplayStartsAt = "2020-11-14T16:24:32.000000Z", + EndsAt = "2020-04-02T21:35:03.000000Z", + StartsAt = "2023-07-20T18:28:42.000000Z", + DiscountUpperLimit = 2165, + Description = "ots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnR", + Name = "VCjlgZcfxXnQfXvfoocz3td7B", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 9181, + DiscountAmount = 5132, IsDisabled = true, - DisplayEndsAt = "2021-03-19T06:57:55.000000+09:00", - DisplayStartsAt = "2021-02-16T17:03:39.000000+09:00", - EndsAt = "2021-05-29T20:21:59.000000+09:00", - StartsAt = "2022-07-06T15:29:43.000000+09:00", - DiscountUpperLimit = 6070, - Description = "M7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7m", - Name = "vjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9", + DisplayEndsAt = "2020-04-08T03:42:05.000000Z", + DisplayStartsAt = "2022-02-13T13:46:16.000000Z", + EndsAt = "2021-07-28T12:08:23.000000Z", + StartsAt = "2023-06-11T07:24:46.000000Z", + DiscountUpperLimit = 6379, + Description = "qzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0A", + Name = "nlJyQ4ogjQgbj8PRfNm4", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 6230, - IsHidden = false, + DiscountAmount = 6902, + IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2021-12-13T02:16:18.000000+09:00", - DisplayStartsAt = "2024-03-01T18:21:42.000000+09:00", - EndsAt = "2021-01-31T12:57:53.000000+09:00", - StartsAt = "2023-10-16T14:47:49.000000+09:00", - DiscountUpperLimit = 7870, - Description = "fEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCS", - Name = "IL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f", + DisplayEndsAt = "2021-07-04T22:35:36.000000Z", + DisplayStartsAt = "2022-10-23T19:05:14.000000Z", + EndsAt = "2020-05-23T06:21:51.000000Z", + StartsAt = "2020-09-08T07:46:28.000000Z", + DiscountUpperLimit = 1107, + Description = "HmI2see5qGgNKlkv5vEc", + Name = "EoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JK", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 7986, + DiscountAmount = 2847, IsPublic = true, IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2023-11-13T09:48:54.000000+09:00", - DisplayStartsAt = "2021-07-18T13:41:34.000000+09:00", - EndsAt = "2022-05-24T06:19:56.000000+09:00", - StartsAt = "2020-01-27T05:22:46.000000+09:00", - DiscountUpperLimit = 8946, - Description = "wLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtD", - Name = "88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs", + IsDisabled = true, + DisplayEndsAt = "2021-06-01T15:49:59.000000Z", + DisplayStartsAt = "2020-08-31T18:20:47.000000Z", + EndsAt = "2022-04-28T03:00:25.000000Z", + StartsAt = "2023-03-28T11:41:52.000000Z", + DiscountUpperLimit = 6007, + Description = "17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMc", + Name = "Prmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26u", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 3891, - Code = "jBlwZ", - IsPublic = false, - IsHidden = false, + DiscountAmount = 2562, + Code = "RwX6", + IsPublic = true, + IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2022-05-22T21:41:06.000000+09:00", - DisplayStartsAt = "2023-05-23T09:17:56.000000+09:00", - EndsAt = "2020-03-14T05:37:03.000000+09:00", - StartsAt = "2020-09-10T14:20:02.000000+09:00", - DiscountUpperLimit = 2211, - Description = "B37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9", - Name = "CKN5yCsDMuuaWg6vjoZFJU5qu", + DisplayEndsAt = "2021-03-04T12:48:38.000000Z", + DisplayStartsAt = "2021-08-06T20:07:20.000000Z", + EndsAt = "2021-04-21T00:43:35.000000Z", + StartsAt = "2020-08-01T19:15:50.000000Z", + DiscountUpperLimit = 137, + Description = "EoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGf", + Name = "q9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 5976, - UsageLimit = 7022, - Code = "J5Eq6Gc", + DiscountAmount = 932, + UsageLimit = 9993, + Code = "APEUIe", IsPublic = true, IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2021-04-17T13:12:35.000000+09:00", - DisplayStartsAt = "2024-03-07T14:03:12.000000+09:00", - EndsAt = "2023-08-06T07:43:14.000000+09:00", - StartsAt = "2020-10-04T01:00:10.000000+09:00", - DiscountUpperLimit = 8411, - Description = "Pq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm", - Name = "9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKX", + DisplayEndsAt = "2021-08-13T11:55:14.000000Z", + DisplayStartsAt = "2022-10-03T12:45:51.000000Z", + EndsAt = "2023-01-25T22:57:35.000000Z", + StartsAt = "2021-06-21T22:04:45.000000Z", + DiscountUpperLimit = 7368, + Description = "h60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64w", + Name = "cGrUcdcRO2", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 207, - MinAmount = 9246, - UsageLimit = 5754, - Code = "8JwoXWD3O", + DiscountAmount = 125, + MinAmount = 3345, + UsageLimit = 9299, + Code = "3z", IsPublic = false, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2023-09-09T21:25:38.000000+09:00", - DisplayStartsAt = "2022-03-29T06:32:28.000000+09:00", - EndsAt = "2023-03-14T05:46:20.000000+09:00", - StartsAt = "2023-04-05T17:08:01.000000+09:00", - DiscountUpperLimit = 3863, - Description = "HYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2", - Name = "8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuu", + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2024-03-20T01:46:03.000000Z", + DisplayStartsAt = "2021-05-13T20:22:09.000000Z", + EndsAt = "2020-02-14T12:16:04.000000Z", + StartsAt = "2022-11-29T12:19:11.000000Z", + DiscountUpperLimit = 271, + Description = "A6JlqvTos7SrIAl", + Name = "P5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 7844, - IsShopSpecified = true, - MinAmount = 9447, - UsageLimit = 7071, - Code = "1", + DiscountAmount = 4338, + IsShopSpecified = false, + MinAmount = 8355, + UsageLimit = 7539, + Code = "z4", IsPublic = false, - IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2020-02-23T15:16:55.000000+09:00", - DisplayStartsAt = "2020-09-14T22:14:05.000000+09:00", - EndsAt = "2021-03-07T07:18:45.000000+09:00", - StartsAt = "2024-01-06T00:21:31.000000+09:00", - DiscountUpperLimit = 5129, - Description = "gWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B", - Name = "yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHW", + IsHidden = false, + IsDisabled = true, + DisplayEndsAt = "2023-03-27T06:17:17.000000Z", + DisplayStartsAt = "2023-01-23T13:43:20.000000Z", + EndsAt = "2023-11-07T12:15:36.000000Z", + StartsAt = "2021-03-18T03:42:01.000000Z", + DiscountUpperLimit = 8850, + Description = "0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWy", + Name = "Z7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpME", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 2349, - AvailableShopIds = new string[]{"173cae53-8b5b-42cf-ae49-4813d3eca943", "b74c1a25-6788-4c0a-ba08-bc225a5bc4c2"}, + DiscountAmount = 3277, + AvailableShopIds = new string[]{"0bd80e0d-13f0-47d3-ae10-d34cdac8ac75", "bf313f6c-091b-42f3-9ed8-0fb859ae47ba", "c8468a14-cadc-4556-b753-eb6ed6c564ca"}, IsShopSpecified = true, - MinAmount = 2413, - UsageLimit = 3586, - Code = "opraV9Fu47", + MinAmount = 9488, + UsageLimit = 5979, + Code = "wO", IsPublic = true, - IsHidden = true, + IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2021-11-10T00:06:44.000000+09:00", - DisplayStartsAt = "2023-10-08T22:15:05.000000+09:00", - EndsAt = "2020-05-07T00:08:29.000000+09:00", - StartsAt = "2020-10-27T12:05:26.000000+09:00", - DiscountUpperLimit = 991, - Description = "gn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbB", - Name = "xY", + DisplayEndsAt = "2020-03-03T03:20:42.000000Z", + DisplayStartsAt = "2021-08-10T12:55:31.000000Z", + EndsAt = "2023-04-18T00:29:35.000000Z", + StartsAt = "2020-09-27T19:39:25.000000Z", + DiscountUpperLimit = 6447, + Description = "o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pU", + Name = "WjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 7349, - StorageId = "44b93517-613a-46f4-839b-aaad60e96562", - AvailableShopIds = new string[]{"d1a03e2d-e5e2-42b3-b5c6-447ae8477085", "1b3ec37c-61c1-4ee6-ad96-e33a491fdeeb", "03a841aa-de16-4be4-b3f0-d81ca34504e4", "cba02592-06f5-462c-b7d5-8a270d7c4442", "ccc6da7d-af83-4685-a796-495b199f35eb", "526de772-eff1-427b-adf2-ad76004c99ca", "934f580a-4633-4dc7-96d6-8ebf30dc8600", "feff17f3-657c-4936-9bc7-b52df4d35f3c", "1859ce73-9e12-489f-9e4a-0a38e49522d8"}, - IsShopSpecified = false, - MinAmount = 2308, - UsageLimit = 7116, - Code = "ApV", + DiscountAmount = 5169, + StorageId = "20c3d98d-9e72-4f38-966c-5f8122f2099d", + AvailableShopIds = new string[]{"c2c50ffc-4868-45c3-b736-2c11f9939d53", "a314d3ee-a5a7-422b-a86d-4c5e62d2af39", "34b57a90-4b3f-42a8-ad7f-580ebbb6f7e6", "dacface3-7754-4c98-b5e3-9b4c2d2cc0d5"}, + IsShopSpecified = true, + MinAmount = 6143, + UsageLimit = 2988, + Code = "lWYk1", IsPublic = true, IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2023-09-09T09:52:14.000000+09:00", - DisplayStartsAt = "2020-04-17T14:46:00.000000+09:00", - EndsAt = "2023-01-31T13:04:25.000000+09:00", - StartsAt = "2022-10-02T16:47:50.000000+09:00", - DiscountUpperLimit = 9122, - Description = "jKIEdqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyL", - Name = "sRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOF", + DisplayEndsAt = "2024-03-20T03:30:11.000000Z", + DisplayStartsAt = "2023-05-20T21:08:42.000000Z", + EndsAt = "2020-12-17T07:46:05.000000Z", + StartsAt = "2023-01-12T20:29:23.000000Z", + DiscountUpperLimit = 8861, + Description = "mgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxw", + Name = "zXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2q", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 2380, - DiscountPercentage = 4977.0, + DiscountAmount = 148, + DiscountPercentage = 903.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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 7278, - DiscountPercentage = 8282.0, - Name = "uLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCg", + DiscountAmount = 9301, + DiscountPercentage = 2736.0, + Name = "maUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 6732, - DiscountPercentage = 5137.0, - Description = "yc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5", - Name = "dxC9nFb6EnR37XI7b090WiBtRh0", + DiscountAmount = 672, + DiscountPercentage = 2392.0, + Description = "iCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQ", + Name = "9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQc", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 2236, - DiscountPercentage = 8742.0, - DiscountUpperLimit = 2401, - Description = "vWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQ", - Name = "d6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea", + DiscountAmount = 947, + DiscountPercentage = 8709.0, + DiscountUpperLimit = 4970, + Description = "zkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQju", + Name = "Wx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatsc", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 4915, - DiscountPercentage = 9484.0, - StartsAt = "2020-02-21T08:59:17.000000+09:00", - DiscountUpperLimit = 8601, - Description = "BlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4", - Name = "fUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruI", + DiscountAmount = 7543, + DiscountPercentage = 7648.0, + StartsAt = "2022-02-09T06:36:21.000000Z", + DiscountUpperLimit = 7952, + Description = "yFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGh", + Name = "HvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0u", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 1367, - DiscountPercentage = 115.0, - EndsAt = "2021-12-01T01:14:41.000000+09:00", - StartsAt = "2021-11-26T23:30:11.000000+09:00", - DiscountUpperLimit = 4774, - Description = "TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUj", - Name = "2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN", + DiscountAmount = 8059, + DiscountPercentage = 190.0, + EndsAt = "2021-04-07T21:18:21.000000Z", + StartsAt = "2020-05-25T04:35:10.000000Z", + DiscountUpperLimit = 412, + Description = "FNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3", + Name = "oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26M", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 2485, - DiscountPercentage = 9607.0, - DisplayStartsAt = "2020-03-20T16:53:08.000000+09:00", - EndsAt = "2020-12-25T09:09:12.000000+09:00", - StartsAt = "2023-11-12T05:39:36.000000+09:00", - DiscountUpperLimit = 1728, - Description = "RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd", - Name = "dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihq", + DiscountAmount = 2887, + DiscountPercentage = 3281.0, + DisplayStartsAt = "2021-11-30T13:42:00.000000Z", + EndsAt = "2023-11-19T21:42:35.000000Z", + StartsAt = "2023-07-26T10:37:04.000000Z", + DiscountUpperLimit = 644, + Description = "sTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZ", + Name = "ekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMB", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 7255, - DiscountPercentage = 7712.0, - DisplayEndsAt = "2020-05-05T05:21:59.000000+09:00", - DisplayStartsAt = "2023-05-25T12:08:55.000000+09:00", - EndsAt = "2023-05-05T10:17:47.000000+09:00", - StartsAt = "2022-11-30T00:24:44.000000+09:00", - DiscountUpperLimit = 3145, - Description = "sgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CL", - Name = "gQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJ", + DiscountAmount = 6661, + DiscountPercentage = 3292.0, + DisplayEndsAt = "2021-03-01T05:15:44.000000Z", + DisplayStartsAt = "2020-09-05T00:19:21.000000Z", + EndsAt = "2023-07-23T07:52:16.000000Z", + StartsAt = "2020-10-19T09:44:41.000000Z", + DiscountUpperLimit = 5279, + Description = "laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z", + Name = "qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRx", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 1868, - DiscountPercentage = 535.0, - IsDisabled = true, - DisplayEndsAt = "2023-06-25T04:24:56.000000+09:00", - DisplayStartsAt = "2023-09-05T10:03:26.000000+09:00", - EndsAt = "2023-10-01T20:37:00.000000+09:00", - StartsAt = "2020-08-23T10:55:41.000000+09:00", - DiscountUpperLimit = 7013, - Description = "8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDO", - Name = "d6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2s", + DiscountAmount = 941, + DiscountPercentage = 4562.0, + IsDisabled = false, + DisplayEndsAt = "2023-02-24T12:31:13.000000Z", + DisplayStartsAt = "2023-05-11T18:33:19.000000Z", + EndsAt = "2022-07-07T10:33:20.000000Z", + StartsAt = "2021-05-18T05:54:56.000000Z", + DiscountUpperLimit = 5523, + Description = "A9g", + Name = "BKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8Jy", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 6952, - DiscountPercentage = 1516.0, + DiscountAmount = 5596, + DiscountPercentage = 9056.0, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2022-02-11T14:58:44.000000+09:00", - DisplayStartsAt = "2022-07-12T12:47:31.000000+09:00", - EndsAt = "2022-05-24T08:32:23.000000+09:00", - StartsAt = "2021-05-05T20:46:41.000000+09:00", - DiscountUpperLimit = 8513, - Description = "jO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpP", - Name = "o9knGna2qU0GmaUmeizgJ6BwqETnaq5", + IsDisabled = false, + DisplayEndsAt = "2022-07-26T11:30:55.000000Z", + DisplayStartsAt = "2022-09-20T08:08:47.000000Z", + EndsAt = "2022-06-12T20:58:14.000000Z", + StartsAt = "2020-07-08T08:44:00.000000Z", + DiscountUpperLimit = 2645, + Description = "0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bc", + Name = "TH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzl", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 7941, - DiscountPercentage = 3685.0, + DiscountAmount = 2969, + DiscountPercentage = 4208.0, IsPublic = true, - IsHidden = true, + IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2020-02-01T13:27:23.000000+09:00", - DisplayStartsAt = "2022-12-03T09:34:22.000000+09:00", - EndsAt = "2023-03-15T07:37:56.000000+09:00", - StartsAt = "2020-08-28T00:40:04.000000+09:00", - DiscountUpperLimit = 8807, - Description = "3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiC", - Name = "0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFt", + DisplayEndsAt = "2023-03-16T04:51:59.000000Z", + DisplayStartsAt = "2023-02-20T14:26:38.000000Z", + EndsAt = "2021-04-20T04:56:40.000000Z", + StartsAt = "2023-01-24T12:20:31.000000Z", + DiscountUpperLimit = 6023, + Description = "aTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DG", + Name = "GggnvkdWrHaspAw5Vcp7C", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 8473, - DiscountPercentage = 109.0, - Code = "Sje", + DiscountAmount = 9271, + DiscountPercentage = 8991.0, + Code = "JSe44PvWg", IsPublic = true, - IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2022-07-25T08:39:17.000000+09:00", - DisplayStartsAt = "2023-10-12T06:53:49.000000+09:00", - EndsAt = "2022-04-06T06:22:54.000000+09:00", - StartsAt = "2020-07-14T06:24:28.000000+09:00", - DiscountUpperLimit = 9545, - Description = "wYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykL", - Name = "G1RzGMmx1hSkje", + IsHidden = false, + IsDisabled = true, + DisplayEndsAt = "2021-07-26T00:28:52.000000Z", + DisplayStartsAt = "2023-09-02T21:58:07.000000Z", + EndsAt = "2022-05-24T05:58:28.000000Z", + StartsAt = "2020-01-03T10:55:32.000000Z", + DiscountUpperLimit = 1766, + Description = "fEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUe", + Name = "Je4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiX", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 7993, - DiscountPercentage = 3210.0, - UsageLimit = 2720, - Code = "0kmePd8GX", + DiscountAmount = 8972, + DiscountPercentage = 2414.0, + UsageLimit = 9024, + Code = "mO", IsPublic = false, IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2020-04-14T07:45:40.000000+09:00", - DisplayStartsAt = "2023-03-28T06:29:16.000000+09:00", - EndsAt = "2021-10-02T14:41:38.000000+09:00", - StartsAt = "2020-05-22T21:18:05.000000+09:00", - DiscountUpperLimit = 9505, - Description = "2Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe", - Name = "z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIE", + DisplayEndsAt = "2023-04-27T19:07:15.000000Z", + DisplayStartsAt = "2021-09-05T16:18:59.000000Z", + EndsAt = "2024-03-08T04:14:28.000000Z", + StartsAt = "2023-01-13T12:59:56.000000Z", + DiscountUpperLimit = 1197, + Description = "2FF3HAzhtt", + Name = "18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZ", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 7055, - DiscountPercentage = 6055.0, - MinAmount = 9869, - UsageLimit = 4267, - Code = "OjH6PT", - IsPublic = false, + DiscountAmount = 146, + DiscountPercentage = 990.0, + MinAmount = 426, + UsageLimit = 9351, + Code = "XLb8hT5v", + IsPublic = true, IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2023-03-29T21:48:28.000000+09:00", - DisplayStartsAt = "2020-12-18T16:30:48.000000+09:00", - EndsAt = "2020-12-24T08:04:45.000000+09:00", - StartsAt = "2020-01-08T11:14:30.000000+09:00", - DiscountUpperLimit = 4906, - Description = "f1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4", - Name = "kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJU", + DisplayEndsAt = "2020-07-25T06:57:38.000000Z", + DisplayStartsAt = "2021-03-30T10:20:47.000000Z", + EndsAt = "2021-05-31T06:27:39.000000Z", + StartsAt = "2022-12-12T19:05:29.000000Z", + DiscountUpperLimit = 7050, + Description = "W03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnB", + Name = "lmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26R", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 6011, - DiscountPercentage = 2138.0, - IsShopSpecified = false, - MinAmount = 2440, - UsageLimit = 9419, - Code = "qULct", + DiscountAmount = 9625, + DiscountPercentage = 2770.0, + IsShopSpecified = true, + MinAmount = 781, + UsageLimit = 1227, + Code = "M", IsPublic = true, IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2023-05-03T19:30:16.000000+09:00", - DisplayStartsAt = "2023-05-12T12:38:14.000000+09:00", - EndsAt = "2023-11-23T21:53:14.000000+09:00", - StartsAt = "2021-03-28T14:07:04.000000+09:00", - DiscountUpperLimit = 5867, - Description = "9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQ", - Name = "TjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNz", + DisplayEndsAt = "2023-01-20T22:10:16.000000Z", + DisplayStartsAt = "2022-09-02T12:19:44.000000Z", + EndsAt = "2020-08-18T18:37:50.000000Z", + StartsAt = "2022-03-09T01:20:40.000000Z", + DiscountUpperLimit = 1853, + Description = "k8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC", + Name = "8XzXR9jncya", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 6460, - DiscountPercentage = 8437.0, - AvailableShopIds = new string[]{"2c940c74-acc4-448c-acda-c7af6f38c112", "a6a1dcc8-9af0-4d00-b54d-2f3fa089f0f6", "0bf31cfc-88a3-4068-9afa-ea2fa03e4be6", "afbfbe62-0ccd-4743-af0a-58b9f20c847c"}, - IsShopSpecified = true, - MinAmount = 6237, - UsageLimit = 9694, - Code = "ya", + DiscountAmount = 947, + DiscountPercentage = 2353.0, + AvailableShopIds = new string[]{"1b5f19df-153a-4d7e-be24-a3a933ba6c4b", "f54b9d17-3f22-44e7-a7e8-d273589492e7", "7f02468a-3bd9-4b27-a5b3-58077bc1ab54", "870983db-1422-4362-8c13-2a4aa6dda4dc", "fe710f4e-8b89-42ba-b231-49e13bc1feb8", "cc2a77e8-7791-495a-b4fc-3b6d80b6e535", "1e24792b-9b02-4673-9fef-a17db191cbb8"}, + IsShopSpecified = false, + MinAmount = 4516, + UsageLimit = 7352, + Code = "sE9uDmHdc", IsPublic = false, - IsHidden = true, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2020-05-26T00:21:08.000000+09:00", - DisplayStartsAt = "2021-09-02T14:22:54.000000+09:00", - EndsAt = "2023-05-04T13:55:41.000000+09:00", - StartsAt = "2021-06-12T17:17:21.000000+09:00", - DiscountUpperLimit = 5983, - Description = "qgB5ft0k4jfS4r5kfrLJk", - Name = "ytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR", + DisplayEndsAt = "2022-07-23T08:39:50.000000Z", + DisplayStartsAt = "2023-01-22T09:18:23.000000Z", + EndsAt = "2021-07-25T22:24:36.000000Z", + StartsAt = "2021-10-23T00:17:29.000000Z", + DiscountUpperLimit = 8700, + Description = "hdalQqRPyTvG2tPeRbQcNODGa3Iheb", + Name = "kRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pa", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountAmount = 5658, - DiscountPercentage = 6327.0, - StorageId = "76450450-536d-411f-9c81-2a755e992159", - AvailableShopIds = new string[]{"fc0146cf-ca8a-4ef5-b98b-603897c4290d", "45d96815-2cbf-4935-9f8d-411163387b10", "fe351065-9341-4d49-bc8d-707b40e8d129", "74577384-834e-44e9-b4bf-3644a7af45c3", "9a8990e8-f6b9-4923-ae7c-b3c5ecef9b8a", "4047192d-7eb1-458e-9b91-8070fabdc7e9", "b29a0b8d-1d6f-4c28-906d-910590cb7115", "bdb54781-c926-4fbd-9ef6-ee1439973859", "a7ad1d81-1630-4af9-b0a5-cb19359c6889"}, + DiscountAmount = 4771, + DiscountPercentage = 3588.0, + StorageId = "b67003f8-d935-4333-8944-bbed1db94f20", + AvailableShopIds = new string[]{"4f5b4b8d-f975-438a-9fd1-674f4c02d110", "98009dc3-f3d7-429d-aa62-882d6912827f", "7d40d549-87d0-4c6d-862c-1247f6c4a857", "bb958eeb-0084-40e8-b79e-b3bfdd9d6a98", "5ef35544-564d-4502-afc3-ba5370f0bbf1", "5b0c61f0-ddb4-45d3-aed7-055bd7e5032e", "f757107c-35dd-4806-bbe0-0e69d35dcd5e", "b8071233-4ffa-4950-8b6c-bc7ce424da24"}, IsShopSpecified = true, - MinAmount = 105, - UsageLimit = 7015, - Code = "mahsEfLajE", - IsPublic = false, - IsHidden = true, + MinAmount = 8380, + UsageLimit = 5711, + Code = "0ubMaaW", + IsPublic = true, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2022-04-02T20:18:31.000000+09:00", - DisplayStartsAt = "2022-02-22T13:21:07.000000+09:00", - EndsAt = "2022-08-11T11:26:11.000000+09:00", - StartsAt = "2020-11-21T10:42:06.000000+09:00", - DiscountUpperLimit = 2921, - Description = "XaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkx", - Name = "SpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM", + DisplayEndsAt = "2021-11-04T08:28:23.000000Z", + DisplayStartsAt = "2021-08-20T23:08:53.000000Z", + EndsAt = "2022-05-06T19:21:30.000000Z", + StartsAt = "2021-09-19T00:21:39.000000Z", + DiscountUpperLimit = 6204, + Description = "sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09", + Name = "eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcI", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 4530.0, + DiscountPercentage = 8416.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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 1746.0, - Name = "ajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyC", + DiscountPercentage = 8343.0, + Name = "BzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJ", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 8734.0, - Description = "oaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcB", - Name = "9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJw", + DiscountPercentage = 5709.0, + Description = "wzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHM", + Name = "kNkDC4XjAgnNgP", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 1540.0, - DiscountUpperLimit = 4945, - Description = "QhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQ", - Name = "oGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLP", + DiscountPercentage = 9337.0, + DiscountUpperLimit = 8359, + Description = "1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2Dz", + Name = "pE8reI7vFyo7eM4dNH", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 6302.0, - StartsAt = "2022-04-26T17:02:14.000000+09:00", - DiscountUpperLimit = 144, - Description = "IWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZ", - Name = "pJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB", + DiscountPercentage = 5930.0, + StartsAt = "2022-02-11T04:04:39.000000Z", + DiscountUpperLimit = 7558, + Description = "JYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Q", + Name = "d9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 3676.0, - EndsAt = "2021-05-02T04:41:41.000000+09:00", - StartsAt = "2020-01-24T14:03:23.000000+09:00", - DiscountUpperLimit = 2480, - Description = "VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuF", - Name = "Di3ep7E8KTw", + DiscountPercentage = 3894.0, + EndsAt = "2021-08-11T07:12:44.000000Z", + StartsAt = "2022-05-24T04:12:05.000000Z", + DiscountUpperLimit = 6508, + Description = "rydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParY", + Name = "UfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 6558.0, - DisplayStartsAt = "2021-03-02T00:56:13.000000+09:00", - EndsAt = "2021-03-22T01:01:19.000000+09:00", - StartsAt = "2023-03-17T01:05:53.000000+09:00", - DiscountUpperLimit = 9855, - Description = "zGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLg", - Name = "NEFPzTNAe", + DiscountPercentage = 8881.0, + DisplayStartsAt = "2023-07-29T07:09:29.000000Z", + EndsAt = "2020-09-05T07:56:36.000000Z", + StartsAt = "2020-02-26T23:21:36.000000Z", + DiscountUpperLimit = 8099, + Description = "vovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naD", + Name = "Caj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzw", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 6420.0, - DisplayEndsAt = "2021-11-27T07:28:23.000000+09:00", - DisplayStartsAt = "2023-05-12T20:36:02.000000+09:00", - EndsAt = "2022-10-18T15:33:23.000000+09:00", - StartsAt = "2022-08-20T18:46:14.000000+09:00", - DiscountUpperLimit = 2783, - Description = "VgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe", - Name = "2hgv", + DiscountPercentage = 8620.0, + DisplayEndsAt = "2023-04-21T23:31:54.000000Z", + DisplayStartsAt = "2022-09-26T22:03:53.000000Z", + EndsAt = "2023-02-09T04:21:12.000000Z", + StartsAt = "2021-03-12T06:41:12.000000Z", + DiscountUpperLimit = 7534, + Description = "9Z0CQKMUdsLKbKLca", + Name = "6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDw", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 260.0, - IsDisabled = true, - DisplayEndsAt = "2022-03-11T17:39:55.000000+09:00", - DisplayStartsAt = "2020-03-07T01:45:23.000000+09:00", - EndsAt = "2020-03-13T13:03:37.000000+09:00", - StartsAt = "2023-09-01T12:18:01.000000+09:00", - DiscountUpperLimit = 4091, - Description = "DeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3v", - Name = "r4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45P", + DiscountPercentage = 5486.0, + IsDisabled = false, + DisplayEndsAt = "2020-02-13T11:57:04.000000Z", + DisplayStartsAt = "2022-08-01T05:04:20.000000Z", + EndsAt = "2021-07-25T05:18:32.000000Z", + StartsAt = "2020-02-25T23:27:01.000000Z", + DiscountUpperLimit = 9649, + Description = "6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73Qyi", + Name = "NKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkT", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 9768.0, + DiscountPercentage = 8138.0, IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2023-08-17T22:41:02.000000+09:00", - DisplayStartsAt = "2020-11-11T15:24:28.000000+09:00", - EndsAt = "2022-09-07T08:48:38.000000+09:00", - StartsAt = "2020-06-24T11:55:24.000000+09:00", - DiscountUpperLimit = 4685, - Description = "Qsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rx", - Name = "tzGOZhKJMKwzvYsbBzTdo6bpAqcW", + DisplayEndsAt = "2020-03-12T11:59:48.000000Z", + DisplayStartsAt = "2022-04-17T00:50:20.000000Z", + EndsAt = "2020-02-14T13:46:41.000000Z", + StartsAt = "2023-09-07T21:43:53.000000Z", + DiscountUpperLimit = 9814, + Description = "GWmlO55tLRhXfPthFrTbvP", + Name = "80JDs4TLAvvWwguBec41EmwzzFrgc", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 3740.0, + DiscountPercentage = 7463.0, IsPublic = false, IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2020-09-04T06:28:22.000000+09:00", - DisplayStartsAt = "2020-02-26T13:30:26.000000+09:00", - EndsAt = "2023-01-24T18:45:34.000000+09:00", - StartsAt = "2021-12-06T11:36:14.000000+09:00", - DiscountUpperLimit = 1444, - Description = "sv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3X", - Name = "mfSCMMI0hPIOcfptkBjf", + IsDisabled = false, + DisplayEndsAt = "2022-06-18T05:31:13.000000Z", + DisplayStartsAt = "2021-04-22T20:21:18.000000Z", + EndsAt = "2023-07-08T02:37:21.000000Z", + StartsAt = "2020-10-28T22:13:49.000000Z", + DiscountUpperLimit = 9435, + Description = "P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPt", + Name = "Musem1WSPOdAkWLCHhP7q7jyjEo8V3Di9Dt", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 7190.0, - Code = "HuYKUEJ", + DiscountPercentage = 4285.0, + Code = "zAGKUtsDd", IsPublic = true, IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2021-06-17T18:23:42.000000+09:00", - DisplayStartsAt = "2023-03-02T23:14:39.000000+09:00", - EndsAt = "2020-09-13T21:12:42.000000+09:00", - StartsAt = "2020-06-23T22:10:37.000000+09:00", - DiscountUpperLimit = 2277, - Description = "cLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3b", - Name = "rOZ5f3RQvkhtySJKYRUQ3NzI", + DisplayEndsAt = "2021-04-29T01:20:33.000000Z", + DisplayStartsAt = "2023-07-10T12:48:53.000000Z", + EndsAt = "2020-11-09T17:14:53.000000Z", + StartsAt = "2023-01-04T04:18:51.000000Z", + DiscountUpperLimit = 388, + Description = "EvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6T", + Name = "Pp7YTcvCbmuWQ", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 3131.0, - UsageLimit = 8303, - Code = "xko0Q38", + DiscountPercentage = 1273.0, + UsageLimit = 7329, + Code = "KhWFz", IsPublic = true, - IsHidden = false, + IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2023-07-12T22:23:37.000000+09:00", - DisplayStartsAt = "2021-07-13T13:21:43.000000+09:00", - EndsAt = "2021-08-19T14:34:20.000000+09:00", - StartsAt = "2023-07-13T06:23:16.000000+09:00", - DiscountUpperLimit = 7146, - Description = "7uK9FEO8wpTMbUo34Oh", - Name = "jcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXL", + DisplayEndsAt = "2024-02-04T17:43:38.000000Z", + DisplayStartsAt = "2022-12-06T10:32:31.000000Z", + EndsAt = "2021-12-12T12:04:54.000000Z", + StartsAt = "2021-10-22T10:50:06.000000Z", + DiscountUpperLimit = 7083, + Description = "0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXP", + Name = "xIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQ", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 773.0, - MinAmount = 7165, - UsageLimit = 4206, - Code = "x8oHUCw9I", - IsPublic = true, - IsHidden = true, + DiscountPercentage = 1265.0, + MinAmount = 2539, + UsageLimit = 6665, + Code = "WLu8Wbq", + IsPublic = false, + IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2023-06-02T23:27:17.000000+09:00", - DisplayStartsAt = "2022-07-10T23:22:12.000000+09:00", - EndsAt = "2023-08-28T17:11:20.000000+09:00", - StartsAt = "2020-06-24T22:34:08.000000+09:00", - DiscountUpperLimit = 301, - Description = "v5tebk72bnq5V1PYuyQsrCeZvlknHwyC", - Name = "eoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHT", + DisplayEndsAt = "2020-01-12T03:29:13.000000Z", + DisplayStartsAt = "2023-11-30T21:40:15.000000Z", + EndsAt = "2021-08-12T03:19:42.000000Z", + StartsAt = "2020-02-28T15:07:25.000000Z", + DiscountUpperLimit = 3813, + Description = "Bo88egFulBO0tWJ93Y52C590AS", + Name = "UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLeko", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 3496.0, + DiscountPercentage = 788.0, IsShopSpecified = true, - MinAmount = 8308, - UsageLimit = 6853, - Code = "pdMlXJAK", + MinAmount = 2800, + UsageLimit = 8526, + Code = "M", IsPublic = false, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2022-06-16T23:36:14.000000+09:00", - DisplayStartsAt = "2020-04-24T03:45:58.000000+09:00", - EndsAt = "2022-07-19T12:13:10.000000+09:00", - StartsAt = "2022-08-01T23:29:15.000000+09:00", - DiscountUpperLimit = 5335, - Description = "jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwU", - Name = "ecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7", + IsDisabled = false, + DisplayEndsAt = "2022-12-09T01:15:18.000000Z", + DisplayStartsAt = "2024-03-30T08:46:45.000000Z", + EndsAt = "2022-02-07T20:39:33.000000Z", + StartsAt = "2021-02-02T06:35:34.000000Z", + DiscountUpperLimit = 7218, + Description = "El3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWE", + Name = "qI", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 8349.0, - AvailableShopIds = new string[]{"75f4ef73-61c7-47ee-9e4f-85beaea7dff6", "1fabf200-1250-4374-9a4f-c31ce35ed6d1", "c00754b7-baf7-4fd2-9da5-b1a5d4d415a2", "dd2d0f2a-3b2a-40d1-a796-4c2953449a28", "d5b939cd-2f7a-460b-ac45-e3d1affeb905"}, - IsShopSpecified = false, - MinAmount = 4499, - UsageLimit = 5465, - Code = "b78oA0LE9", - IsPublic = false, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2021-05-25T09:42:31.000000+09:00", - DisplayStartsAt = "2021-06-19T06:39:04.000000+09:00", - EndsAt = "2022-08-24T10:17:12.000000+09:00", - StartsAt = "2023-12-22T07:22:47.000000+09:00", - DiscountUpperLimit = 8570, - Description = "soBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHu", - Name = "1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQK", + DiscountPercentage = 1680.0, + AvailableShopIds = new string[]{"040f335e-8d1a-4cef-be7e-8212acd2a457"}, + IsShopSpecified = true, + MinAmount = 7593, + UsageLimit = 7784, + Code = "Z81p", + IsPublic = true, + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2023-05-19T18:42:13.000000Z", + DisplayStartsAt = "2020-12-26T02:53:01.000000Z", + EndsAt = "2021-07-23T23:13:09.000000Z", + StartsAt = "2024-03-18T16:00:19.000000Z", + DiscountUpperLimit = 5136, + Description = "D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKR", + Name = "i", }; 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( - "0c52339d-828e-49a3-9a5e-133b52c825fe" + "60cfa50c-4677-48ab-82ab-5586346e95d6" ) { - DiscountPercentage = 9805.0, - StorageId = "3fccb155-2b85-4a11-a486-d973d52a139b", - AvailableShopIds = new string[]{"a63d439f-26bc-494b-a80e-8f7cdde882fe", "5055221a-443e-4ce0-9b05-02cc80b0d663", "496e72e1-62d6-44c0-b66e-ee12227d9948"}, - IsShopSpecified = false, - MinAmount = 3038, - UsageLimit = 9865, - Code = "WcZidvZ55", - IsPublic = false, + DiscountPercentage = 6212.0, + StorageId = "66844b18-d773-4cd7-a787-0b398e8ef327", + AvailableShopIds = new string[]{"412077a6-2a27-4fda-a375-13a5e59aba91", "d8f1e3a2-183e-446a-914d-208e818692a3"}, + IsShopSpecified = true, + MinAmount = 4589, + UsageLimit = 9826, + Code = "vZ2Hz", + IsPublic = true, IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2020-08-06T16:30:05.000000+09:00", - DisplayStartsAt = "2023-08-12T20:58:15.000000+09:00", - EndsAt = "2023-02-09T11:36:27.000000+09:00", - StartsAt = "2020-07-04T07:54:55.000000+09:00", - DiscountUpperLimit = 965, - Description = "16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtK", - Name = "GqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnR", + DisplayEndsAt = "2023-10-31T22:48:22.000000Z", + DisplayStartsAt = "2023-04-17T04:53:01.000000Z", + EndsAt = "2022-12-12T21:58:39.000000Z", + StartsAt = "2020-12-06T19:49:13.000000Z", + DiscountUpperLimit = 7496, + Description = "uClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5", + Name = "HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR", }; 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 02fec43..af379d1 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( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" ); 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( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" ) { Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; @@ -57,9 +57,9 @@ public async Task UpdateCustomerAccount2() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" ) { - ExternalId = "hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq", + ExternalId = "N9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2q", 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( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" ) { - AccountName = "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd", - ExternalId = "KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb", + AccountName = "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCbHnT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC", + ExternalId = "ahSG576Yk", 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( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" ) { Status = "pre-closed", - AccountName = "nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc", - ExternalId = "KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj", + AccountName = "67hNuqsd2aOEu5ugI0fcKmGRUw7sMhCFW8ODbHkZSUPXBsmObvn", + ExternalId = "UjDTSSciw", 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 60cb69f..9860511 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( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ); Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task UpdateShop1() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - Status = "disabled", + Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,9 +57,9 @@ public async Task UpdateShop2() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - CanTopupPrivateMoneyIds = new string[]{"78cae4fb-1ddb-4ec2-916a-145f4f39b756", "286454f3-39c3-4bec-bc92-0dd0e055a0a7", "f31fc5aa-6892-4150-af0f-59e4ba7f4034", "52507b35-1612-4ae2-951c-ae21d52e5fc2", "7b50ab9b-e8ff-4f9c-af76-5f45751c8860", "04cc9b85-75d3-4b6f-b5af-4e4f5c65e3b7"}, + CanTopupPrivateMoneyIds = new string[]{"9852d914-b345-425b-93b8-dca15f403b48", "1bf8aaff-f5ff-4748-8aad-f96094ec44a3", "ae46d9dc-d41d-4508-be66-c4bc7a989435", "b2a9a4a4-0eb0-4cd4-9582-72df747d59c3", "81904a92-37b5-4b79-9c90-37b26d46d548", "6d8e4e09-16a2-4e13-8e81-ae1e8e0837f2"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -75,11 +75,11 @@ public async Task UpdateShop3() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - PrivateMoneyIds = new string[]{"478fa0f7-a328-4f77-927b-d0a701e7e0dc", "67f6c42b-200e-406c-8a14-61cee9b9af5a", "73263ca3-ec2d-46bf-9086-eec67f126a66", "d784f1bb-4519-4a85-89b6-38af68114ea7"}, - CanTopupPrivateMoneyIds = new string[]{"3bd35ec7-909b-4930-99ac-6fa2973b4b65", "ab8fefd6-dcae-4dab-ab89-a2a68560a329", "d491704c-5a51-40cc-a568-6fe3939a23b7", "6d7f6f19-c31f-4f68-a214-aef5ff452f76", "2d8e50b3-807e-4317-82df-728895504a0a", "c87eff16-2d38-4fd3-9013-83872318372e", "dc230ab8-c670-4321-abc8-88bb9dca46b3", "50bbf665-f271-41af-8f3a-6278af9ed31e"}, - Status = "active", + PrivateMoneyIds = new string[]{}, + CanTopupPrivateMoneyIds = new string[]{"5728d3b3-a034-4f8b-a8a8-b744bd59d03b", "ee49f0b1-f1f5-4d78-af49-cbe26410ef5f", "1d6f1f75-aba0-4964-9080-53e7f02256cb", "a3c1cb63-065f-48c1-8834-47ccddca635e", "02d62971-ba05-4da9-b476-808e999c7787", "ed6de882-f06e-4259-93e4-d9027866f90f", "b002ff05-e505-4cfc-928c-07ca0164397f"}, + Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task UpdateShop4() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - ExternalId = "cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgv", - PrivateMoneyIds = new string[]{"08ba235f-a4fd-4d71-93da-0bd176c6bd70", "df8b8245-b0f7-4327-b121-ea78a6bfe000"}, - CanTopupPrivateMoneyIds = new string[]{}, - Status = "active", + ExternalId = "VxWy0PirB5ccKSjPsnaJy0xSUaUZ3K", + PrivateMoneyIds = new string[]{"67971269-72bb-4b70-ae5d-2347d45e0383", "07e91f76-d9e5-4618-8ef0-d9b153d44db1", "9b1e1f5f-eed7-4f27-870d-c4e9dfcb6d96", "86f77bd3-6b72-4db0-9a29-9cb8c1440675", "6e6cf586-7f1b-4e43-baa5-2eae1952f6c2", "7d1294c0-6b30-463e-9dfc-a91e270b838f", "cc70784a-2f84-49d3-9eac-60f400b15928", "72200037-d68b-459a-a807-5cda45b9949c", "3f345ead-5c4e-41cc-b663-1b76f0c059ff"}, + CanTopupPrivateMoneyIds = new string[]{"904eec3b-0c89-4b3a-b1c2-656e2f941c68", "e86447ac-6bc7-4fee-a725-45793daf15d2", "6cb8fb12-1ea2-4073-a4b1-95daf3408162"}, + Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,12 +114,12 @@ public async Task UpdateShop5() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - Email = "xIpXTryBWY@7YmT.com", - ExternalId = "tJYjps5n0FjmTFv", - PrivateMoneyIds = new string[]{"09acbf50-0390-45df-be7f-f0020f78d55a", "f90d78ea-4aad-4e3e-9658-fe388b041a99", "5a799f1c-5237-4ed0-954c-65fa44004252", "a172d429-d6c0-4532-b9ef-915415503b05", "8cd43c43-3d9f-43f6-8c12-aa80b18582b1", "2c4b96fd-34b6-46e6-9058-0d1e0ec8a96a"}, - CanTopupPrivateMoneyIds = new string[]{"77b3eb68-190c-4cd6-a76c-5bbb723f82cc", "0292e4f0-7e8e-43cb-a782-75f43fe77c72", "3f31d293-1909-4db0-8461-abbbc04ecb8d", "34fbac58-fc8d-41bb-adec-153081e3e2c9", "956b5938-33be-4b95-aa7d-128c5c4107c1", "af1d11b7-a81f-4d73-908a-a159b3f2bc78", "eee5efb7-a0cb-411f-929b-085eecd419d7", "693eafba-45f3-457b-b947-8ef287927866", "49a7b3af-f390-476b-a3c7-ef4686738cab"}, + Email = "EX46DL0EY9@Dfg2.com", + ExternalId = "2KSBJ32yceHk", + PrivateMoneyIds = new string[]{}, + CanTopupPrivateMoneyIds = new string[]{"47031610-468f-480e-8a03-0701ad16ffd3", "51f19c19-1d35-422e-b372-bbdffd022a2a", "07488c1a-ee51-45d9-8672-84a561fc77fd", "1aebc8c9-61c5-4052-b61c-25ecad8e7cb0", "e5d8604b-05f2-4cfd-9be9-d4f575f3e55f"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -135,13 +135,13 @@ public async Task UpdateShop6() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - Tel = "09477-9985", - Email = "gPlxnzpf9X@cHDi.com", - ExternalId = "w8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNj", - PrivateMoneyIds = new string[]{"cc521cce-6a24-4b90-882f-870967b59543", "3ffd2f9f-ad36-4ae0-ae76-581a1ce01b11", "638a3d3f-30a7-4034-bf1f-354c56b1aa7f", "ae9979e4-d04a-4a39-90f1-bdaff0bd66dd", "bbecc430-e25c-41ee-a989-3f660017ab89", "588d2241-3b55-4b23-b547-36a601bcfe5d"}, - CanTopupPrivateMoneyIds = new string[]{"4adf9fc8-8088-4755-aec3-3795986bf50e", "773333f6-2de3-4889-b414-54412bbc5fa9"}, + Tel = "01813768343", + Email = "nnsKFojcLO@uuur.com", + ExternalId = "aaP5zVuitJAWBnMTQrqQLb4F279", + PrivateMoneyIds = new string[]{"fc9ec563-0e05-4b07-b364-b2108203d244", "cf9981f4-70bc-46a6-834d-d1b3c74ccdac", "c5c87499-e6f5-432c-97c0-408bc5a6a98c", "9eb27d88-aa5e-4c53-a11d-87c540654e59", "c1060862-d4f5-4d98-a17e-eeba284b644f", "3286cee0-dff9-42a7-b1c1-12973aca16f4", "3532624a-9219-4014-aa9c-16a002783062"}, + CanTopupPrivateMoneyIds = new string[]{"5ca9c410-3c7b-41da-a08c-9999113a20dc", "47f4bac6-40f6-4985-988c-e63440782044", "0d9d74dc-5ed4-45f2-a5db-d2807b407e6e", "bd9d470d-f19b-4b59-bcac-89ea1922f35b", "7d0459ff-ad9a-4710-b6bb-a3f2f35533c5", "a3efa5b9-d4e0-4348-b55e-1c93e807f32b"}, Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); @@ -157,15 +157,15 @@ public async Task UpdateShop7() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - Address = "lCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOy", - Tel = "03-027123", - Email = "ItmOkY1pUO@NfZU.com", - ExternalId = "thj8CTdPwk2g7DYhFuXWt", - PrivateMoneyIds = new string[]{"7a988178-2632-428d-bce7-e848a02c1b7f"}, - CanTopupPrivateMoneyIds = new string[]{"0746d0dd-478e-45ed-af23-8923040dae14", "740b5173-4e11-4a83-a354-751f0dbfb859", "dfa085c1-167b-4e96-bf67-c4536a42f89b", "9e6bf26a-0064-4705-a131-771aee30cb4c", "3d79545d-9916-4b75-b43e-754ec51d4eb1", "a621752b-a37e-4147-ba97-75b43a72721a", "4c19a540-82c4-4ddc-9b11-757d810d266c"}, - Status = "active", + Address = "Gm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y", + Tel = "070697-082", + Email = "EUoqg0zXsu@vc8L.com", + ExternalId = "4mbP1hy", + PrivateMoneyIds = new string[]{"62f6f59d-b5d0-4582-84af-aa2ba2787ce2", "2ae8bbce-0a80-4956-aae3-6b9d4ff9bbbe", "9b28ea88-92ba-4c93-89e0-ed13e3122e9f", "f799f274-b4af-4935-b951-2ba77e63ed01", "4addd0ce-9a1c-4c00-a9e0-9da37efd6119", "cd0f48ea-4356-40db-aebf-1d9c92faf87d"}, + CanTopupPrivateMoneyIds = new string[]{}, + Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,16 +180,16 @@ public async Task UpdateShop8() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - PostalCode = "5514738", - Address = "2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7L", - Tel = "089433-5046", - Email = "zQrUB5yHto@Gfyc.com", - ExternalId = "JYa2GIKQCGB", - PrivateMoneyIds = new string[]{}, - CanTopupPrivateMoneyIds = new string[]{"5181e13b-b177-45ae-9d63-f77175f74d95", "861c82bc-356e-403d-aacb-ee5c6d3c16f4", "75df21d8-d82b-4013-a37b-17d37d0a2b35", "0b1a243f-dfe3-4b3f-b4e2-66b09f807173", "542c9029-5d55-4444-a1ed-ba7dd549f88c", "9288b851-aae9-4826-8a46-e726296e87e1"}, - Status = "disabled", + PostalCode = "3254867", + Address = "40vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEyp", + Tel = "0812-256-2716", + Email = "GgyrO7oaIP@GJ7J.com", + ExternalId = "BC1o5Rc9", + PrivateMoneyIds = new string[]{"9a97ec77-edbb-4466-ad8a-60d6f4c9e8f2", "3cdf80d7-22f2-4e4b-a4b8-892059fc8dda", "39c4f4e3-9a6b-456e-a0e4-77968729de97", "d8ab7c50-6e6e-4a1c-b09e-001fbe9d0ab3", "34ecc8ee-2dbf-4128-a512-4f123e4c0adb", "9e2cc413-bb91-4ffc-8c6f-56cde6c42624"}, + CanTopupPrivateMoneyIds = new string[]{"099843e5-94af-4002-ace5-e48ef262e4b3"}, + Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -204,17 +204,17 @@ public async Task UpdateShop9() { try { Request.UpdateShop request = new Request.UpdateShop( - "6f12334f-a167-4e4e-a807-fbe8ab55411a" + "a91dc663-99e6-4380-8321-0b2523e86c7b" ) { - Name = "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV", - PostalCode = "1186654", - Address = "VcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYNQbEnbMVdbi9G5aE3q4gTN93gHJA1FfneXYRV1FBu9VqwmK2QWEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4O", - Tel = "0118-918", - Email = "t2tro65RM4@SYyW.com", - ExternalId = "Q4b5EvFhF0JaiWpip", - PrivateMoneyIds = new string[]{"5582fed8-b63b-4d71-829e-01a4eadd80dc", "9fd36b4e-a167-4ffa-a635-c9e07ad4175b", "dfada2a4-6a96-4082-98aa-694637be2954", "70e7b58e-04d9-4b41-bdc8-02a7dbbefe4a", "e1e0ab64-98de-48c6-a50d-f1c7b78a95da", "89985d90-4969-4f20-b18e-6aca986fca13", "48585b49-b9e1-42db-b9ce-732f791bab2f", "103e5b2d-659b-4e40-9418-158370558772"}, - CanTopupPrivateMoneyIds = new string[]{"a5e2364d-a365-465d-81ac-7da6baa0f360", "b4b54805-6acb-4b98-8e18-cf55c03251ac", "7f3b5c16-c7fb-44de-9707-3425c835d5b2", "2c74fc7c-4483-440b-9f8f-a98e766a5795", "b4ddbb91-ad7c-4ba1-a08f-98016da7fb71", "bd7118ce-be0d-45af-979c-b04d12e800f2", "26a9ea1d-2c10-40f7-b44a-2fdca3ad8be1", "ac6b35f9-2409-46de-b29f-748b82022ad9", "e47c7715-7e3e-4f89-8208-a0cf7825f117"}, - Status = "active", + Name = "pOb8vOALeCaVZzJ21Wkjwh096vY0", + PostalCode = "7961126", + Address = "OxtHaQb", + Tel = "05860669461", + Email = "YgBl99xXSI@Gv3O.com", + ExternalId = "n3SH7ljqEdpqCcPOpWjivoOnvdw0Y", + PrivateMoneyIds = new string[]{"cbe99a17-ac76-4c7d-ace4-4c3b5e7dbab3", "b7aaa03c-b649-4565-8a17-711186b577f9", "022dade8-883f-412d-92af-d454cb75da7d", "7d88e26c-81d2-4022-a7a3-8b545cd4aad4", "1c373fdd-b6a2-4abd-b2ba-464e6e9bd15e", "32548178-5ed3-4769-b068-e614e5a677da"}, + CanTopupPrivateMoneyIds = new string[]{"9a2d9c52-141c-48ec-8c82-5f2f7a19f5dc", "e8460319-2210-476f-ac22-b0ab2144bb06", "e156e2cc-0722-4bfd-bf9b-d0882f60821d", "38553eea-774d-4514-ad91-d2bea7a7afcc"}, + Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateWebhook.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateWebhook.cs index dc44397..ce33dae 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( - "a330b48d-1239-4cda-a849-19fba1decf3a" + "3fdc18e7-8428-434e-a9a8-85a7e19bbc54" ); 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( - "a330b48d-1239-4cda-a849-19fba1decf3a" + "3fdc18e7-8428-434e-a9a8-85a7e19bbc54" ) { - Task = "process_user_stats_operation", + Task = "bulk_shops", }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task UpdateWebhook2() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "a330b48d-1239-4cda-a849-19fba1decf3a" + "3fdc18e7-8428-434e-a9a8-85a7e19bbc54" ) { 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"); @@ -75,10 +75,10 @@ public async Task UpdateWebhook3() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "a330b48d-1239-4cda-a849-19fba1decf3a" + "3fdc18e7-8428-434e-a9a8-85a7e19bbc54" ) { - Url = "ZoApe0V", - IsActive = false, + Url = "wqhkpZV", + IsActive = true, Task = "bulk_shops", }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk/PokepayPartnerCsharpSdk.csproj b/src/PokepayPartnerCsharpSdk/PokepayPartnerCsharpSdk.csproj index f55be00..19e02b4 100644 --- a/src/PokepayPartnerCsharpSdk/PokepayPartnerCsharpSdk.csproj +++ b/src/PokepayPartnerCsharpSdk/PokepayPartnerCsharpSdk.csproj @@ -9,7 +9,7 @@ https://github.com/pokepay/pokepay-partner-csharp-sdk README.md MIT - 1.3.7 + 1.3.8 Library True True diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs index 1eb0367..2ba1d35 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs @@ -38,6 +38,7 @@ public class CreateCampaign public System.Nullable MaxTotalPointAmount { get; set; } public string DestPrivateMoneyId { get; set; } public object ApplicableAccountMetadata { get; set; } + public object ApplicableTransactionMetadata { get; set; } public System.Nullable BudgetCapsAmount { get; set; } #else public string Name { get; set; } @@ -89,6 +90,8 @@ public class CreateCampaign #nullable enable public object? ApplicableAccountMetadata { get; set; } #nullable enable + public object? ApplicableTransactionMetadata { get; set; } + #nullable enable public int? BudgetCapsAmount { get; set; } #endif diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCpmTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCpmTransaction.cs index da77167..60ad22e 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCpmTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCpmTransaction.cs @@ -16,7 +16,7 @@ public class CreateCpmTransaction public double Amount { get; set; } public string Description { get; set; } public string Metadata { get; set; } - public object[] Products { get; set; } + public Products Products { get; set; } public string RequestId { get; set; } #else public string CpmToken { get; set; } @@ -26,14 +26,13 @@ public class CreateCpmTransaction public string? Description { get; set; } #nullable enable public string? Metadata { get; set; } - #nullable enable - public object[]? Products { get; set; } + public Products Products { get; set; } #nullable enable public string? RequestId { get; set; } #endif - public CreateCpmTransaction(string cpmToken, string shopId, double amount) => - (CpmToken, ShopId, Amount) = (cpmToken, shopId, amount); + public CreateCpmTransaction(string cpmToken, string shopId, double amount, Products products) => + (CpmToken, ShopId, Amount, Products) = (cpmToken, shopId, amount, products); private string path { get { return "/transactions" + "/cpm"; } } diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateExternalTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateExternalTransaction.cs index 54aea55..fe2c4bf 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateExternalTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateExternalTransaction.cs @@ -17,7 +17,7 @@ public class CreateExternalTransaction public int Amount { get; set; } public string Description { get; set; } public string Metadata { get; set; } - public object[] Products { get; set; } + public Products Products { get; set; } public string RequestId { get; set; } #else public string ShopId { get; set; } @@ -28,14 +28,13 @@ public class CreateExternalTransaction public string? Description { get; set; } #nullable enable public string? Metadata { get; set; } - #nullable enable - public object[]? Products { get; set; } + public Products Products { get; set; } #nullable enable public string? RequestId { get; set; } #endif - public CreateExternalTransaction(string shopId, string customerId, string privateMoneyId, int amount) => - (ShopId, CustomerId, PrivateMoneyId, Amount) = (shopId, customerId, privateMoneyId, amount); + public CreateExternalTransaction(string shopId, string customerId, string privateMoneyId, int amount, Products products) => + (ShopId, CustomerId, PrivateMoneyId, Amount, Products) = (shopId, customerId, privateMoneyId, amount, products); private string path { get { return "/external-transactions"; } } diff --git a/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransaction.cs index db06e18..c203158 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransaction.cs @@ -17,7 +17,7 @@ public class CreatePaymentTransaction public int Amount { get; set; } public string Description { get; set; } public string Metadata { get; set; } - public object[] Products { get; set; } + public Products Products { get; set; } public string RequestId { get; set; } #else public string ShopId { get; set; } @@ -28,14 +28,13 @@ public class CreatePaymentTransaction public string? Description { get; set; } #nullable enable public string? Metadata { get; set; } - #nullable enable - public object[]? Products { get; set; } + public Products Products { get; set; } #nullable enable public string? RequestId { get; set; } #endif - public CreatePaymentTransaction(string shopId, string customerId, string privateMoneyId, int amount) => - (ShopId, CustomerId, PrivateMoneyId, Amount) = (shopId, customerId, privateMoneyId, amount); + public CreatePaymentTransaction(string shopId, string customerId, string privateMoneyId, int amount, Products products) => + (ShopId, CustomerId, PrivateMoneyId, Amount, Products) = (shopId, customerId, privateMoneyId, amount, products); private string path { get { return "/transactions" + "/payment"; } } diff --git a/src/PokepayPartnerCsharpSdk/Request/GetExternalTransactionByRequestId.cs b/src/PokepayPartnerCsharpSdk/Request/GetExternalTransactionByRequestId.cs new file mode 100644 index 0000000..9b0645e --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/GetExternalTransactionByRequestId.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 GetExternalTransactionByRequestId + { + private string RequestId { get; set; } +#if NETFRAMEWORK +#else +#endif + + public GetExternalTransactionByRequestId(string requestId) => + (RequestId) = (requestId); + + private string path { get { return "/external-transactions" + "/requests" + "/" + RequestId; } } + + private static readonly HttpMethod method = new HttpMethod("GET"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, GetExternalTransactionByRequestId.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, GetExternalTransactionByRequestId.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs index e78e2ad..017de9d 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs @@ -36,6 +36,7 @@ public class UpdateCampaign public System.Nullable MaxPointAmount { get; set; } public System.Nullable MaxTotalPointAmount { get; set; } public object ApplicableAccountMetadata { get; set; } + public object ApplicableTransactionMetadata { get; set; } public System.Nullable BudgetCapsAmount { get; set; } #else #nullable enable @@ -87,6 +88,8 @@ public class UpdateCampaign #nullable enable public object? ApplicableAccountMetadata { get; set; } #nullable enable + public object? ApplicableTransactionMetadata { get; set; } + #nullable enable public int? BudgetCapsAmount { get; set; } #endif diff --git a/src/PokepayPartnerCsharpSdk/Response/Product.cs b/src/PokepayPartnerCsharpSdk/Response/Product.cs index 9a218dd..6c3515d 100644 --- a/src/PokepayPartnerCsharpSdk/Response/Product.cs +++ b/src/PokepayPartnerCsharpSdk/Response/Product.cs @@ -9,6 +9,7 @@ public class Product public string Name { get; set; } public double UnitPrice { get; set; } public double Price { get; set; } + public int Quantity { get; set; } public bool IsDiscounted { get; set; } public string Other { get; set; }