diff --git a/docs/README.md b/docs/README.md index 9abf217..0cd04e3 100644 --- a/docs/README.md +++ b/docs/README.md @@ -178,6 +178,7 @@ try { - [ListTransactions](./transaction.md#list-transactions): 【廃止】取引履歴を取得する - [CreateTransaction](./transaction.md#create-transaction): 【廃止】チャージする - [ListTransactionsV2](./transaction.md#list-transactions-v2): 取引履歴を取得する +- [ListBillTransactions](./transaction.md#list-bill-transactions): 支払い取引履歴を取得する - [CreateTopupTransaction](./transaction.md#create-topup-transaction): チャージする - [CreatePaymentTransaction](./transaction.md#create-payment-transaction): 支払いする - [CreateCpmTransaction](./transaction.md#create-cpm-transaction): CPMトークンによる取引作成 @@ -189,6 +190,7 @@ try { - [GetBulkTransaction](./transaction.md#get-bulk-transaction): バルク取引ジョブの実行状況を取得する - [ListBulkTransactionJobs](./transaction.md#list-bulk-transaction-jobs): バルク取引ジョブの詳細情報一覧を取得する - [RequestUserStats](./transaction.md#request-user-stats): 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする +- [TerminateUserStats](./transaction.md#terminate-user-stats): RequestUserStatsのタスクを強制終了する ### Transfer - [GetAccountTransferSummary](./transfer.md#get-account-transfer-summary): @@ -205,9 +207,12 @@ try { ### Bill - [ListBills](./bill.md#list-bills): 支払いQRコード一覧を表示する - [CreateBill](./bill.md#create-bill): 支払いQRコードの発行 +- [GetBill](./bill.md#get-bill): 支払いQRコードの表示 - [UpdateBill](./bill.md#update-bill): 支払いQRコードの更新 +- [CreatePaymentTransactionWithBill](./bill.md#create-payment-transaction-with-bill): 支払いQRコードを読み取ることで支払いをする ### Cashtray +- [CreateTransactionWithCashtray](./cashtray.md#create-transaction-with-cashtray): CashtrayQRコードを読み取ることで取引する - [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayを作る - [CancelCashtray](./cashtray.md#cancel-cashtray): Cashtrayを無効化する - [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する @@ -237,7 +242,6 @@ try { - [UpdateShop](./shop.md#update-shop): 店舗情報を更新する ### User -- [GetUser](./user.md#get-user): ### Account - [ListUserAccounts](./account.md#list-user-accounts): エンドユーザー、店舗ユーザーのウォレット一覧を表示する @@ -280,7 +284,11 @@ try { - [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 ### BankPay +- [DeleteBank](./bank_pay.md#delete-bank): 銀行口座の削除 - [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 - [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ +### SevenBankATMSession +- [GetSevenBankATMSession](./seven_bank_atm_session.md#get-seven-bank-atm-session): セブン銀行ATMセッションの取得 + diff --git a/docs/account.md b/docs/account.md index 71bc4fc..573749c 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 = 1564, // ページ番号 - PerPage = 5762, // 1ページ分の取引数 + Page = 272, // ページ番号 + PerPage = 710, // 1ページ分の取引数 }; Response.PaginatedAccountDetails response = await request.Send(client); ``` @@ -75,8 +75,8 @@ Request.CreateUserAccount request = new Request.CreateUserAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - Name = "k24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9D", // ウォレット名 - ExternalId = "4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4G", // 外部ID + Name = "7OqefuC0zsB8aQbgel1VXLZNhM7VCGfzH0EqAidHGV4baZPNRUSJ9iQNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVaS0Zi07XrJykFEWCqS7fIGsgSUetvzhcyY8O4aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gveWK49xDzlQxtC3xLL1ERUl6NhqK", // ウォレット名 + ExternalId = "kD", // 外部ID Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", // ウォレットに付加するメタデータ }; Response.AccountDetail response = await request.Send(client); diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 1dec2e1..983ea87 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -2,6 +2,54 @@ BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + +## DeleteBank: 銀行口座の削除 +銀行口座を削除します + +```csharp +Request.DeleteBank request = new Request.DeleteBank( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +); +Response.BankDeleted response = await request.Send(client); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`bank_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[BankDeleted](./responses.md#bank-deleted) +を返します + + + +--- + + ## ListBanks: 登録した銀行の一覧 登録した銀行を一覧します @@ -66,7 +114,7 @@ Request.CreateBank request = new Request.CreateBank( "", // コールバックURL "ポケペイタロウ" // ユーザーの氏名 (片仮名で指定) ) { - Email = "EeKe2EnvF9@kW30.com", // ユーザーのメールアドレス + Email = "bFWlBc9nMo@uBhD.com", // ユーザーのメールアドレス Birthdate = "19901142", // 生年月日 }; Response.BankRegisteringInfo response = await request.Send(client); @@ -161,10 +209,12 @@ Response.BankRegisteringInfo response = await request.Send(client); Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 2810, // チャージ金額 + 9012, // チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID -); +) { + ReceiverUserId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受け取りユーザーID (デフォルトは自身) +}; Response.TransactionDetail response = await request.Send(client); ``` @@ -208,6 +258,17 @@ Response.TransactionDetail response = await request.Send(client); +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_user_id`** + + + ```json { "type": "string", diff --git a/docs/bill.md b/docs/bill.md index a9d4342..b59b6c6 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -7,19 +7,19 @@ ```csharp Request.ListBills request = new Request.ListBills() { - Page = 7384, // ページ番号 - PerPage = 6138, // 1ページの表示数 - BillId = "T", // 支払いQRコードのID + Page = 7446, // ページ番号 + PerPage = 5421, // 1ページの表示数 + BillId = "W0eFslSf8N", // 支払いQRコードのID PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - OrganizationCode = "xs6VNjs2Mf2--N-VxoE9n6N1iQ3v", // 組織コード + OrganizationCode = "--Ejp--E5m5j", // 組織コード Description = "test bill", // 取引説明文 - CreatedFrom = "2024-02-06T00:24:19.000000Z", // 作成日時(起点) - CreatedTo = "2020-07-28T20:51:25.000000Z", // 作成日時(終点) + CreatedFrom = "2023-02-20T20:48:36.000000Z", // 作成日時(起点) + CreatedTo = "2022-09-20T21:42:21.000000Z", // 作成日時(終点) ShopName = "bill test shop1", // 店舗名 ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - LowerLimitAmount = 3980, // 金額の範囲によるフィルタ(下限) - UpperLimitAmount = 6980, // 金額の範囲によるフィルタ(上限) - IsDisabled = true, // 支払いQRコードが無効化されているかどうか + LowerLimitAmount = 134, // 金額の範囲によるフィルタ(下限) + UpperLimitAmount = 2440, // 金額の範囲によるフィルタ(上限) + IsDisabled = false, // 支払いQRコードが無効化されているかどうか }; Response.PaginatedBills response = await request.Send(client); ``` @@ -213,7 +213,7 @@ Request.CreateBill request = new Request.CreateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払い先(受け取り人)の店舗ID ) { - Amount = 1684.0, // 支払い額 + Amount = 5556.0, // 支払い額 Description = "test bill", // 説明文(アプリ上で取引の説明文として表示される) }; Response.Bill response = await request.Send(client); @@ -226,6 +226,8 @@ Response.Bill response = await request.Send(client); 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 + ```json { @@ -277,9 +279,10 @@ Response.Bill response = await request.Send(client); ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameter_bill_amount_or_range_exceeding_transfer_limit|支払いQRコードの金額がマネーの取引可能金額の上限を超えています|The input amount is exceeding the private money's limit for transfer| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|shop_account_not_found||The shop account is not found| -|422|private_money_not_found||Private money not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|account_closed|アカウントは退会しています|The account is closed| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| @@ -287,6 +290,43 @@ Response.Bill response = await request.Send(client); +--- + + + +## GetBill: 支払いQRコードの表示 +支払いQRコードの内容を表示します。 + +```csharp +Request.GetBill request = new Request.GetBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払いQRコードのID +); +Response.Bill response = await request.Send(client); +``` + + + +### Parameters +**`bill_id`** + + +表示する支払いQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + + --- @@ -298,9 +338,9 @@ Response.Bill response = await request.Send(client); Request.UpdateBill request = new Request.UpdateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払いQRコードのID ) { - Amount = 9656.0, // 支払い額 + Amount = 7306.0, // 支払い額 Description = "test bill", // 説明文 - IsDisabled = true, // 無効化されているかどうか + IsDisabled = false, // 無効化されているかどうか }; Response.Bill response = await request.Send(client); ``` @@ -323,7 +363,7 @@ Response.Bill response = await request.Send(client); **`amount`** -支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 ```json { @@ -367,4 +407,159 @@ Response.Bill response = await request.Send(client); --- + +## CreatePaymentTransactionWithBill: 支払いQRコードを読み取ることで支払いをする +通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 + +エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 +支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + + +```csharp +Request.CreatePaymentTransactionWithBill request = new Request.CreatePaymentTransactionWithBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いQRコードのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // エンドユーザーのID +) { + Metadata = "{\"key\":\"value\"}", // 取引メタデータ + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + Strategy = "point-preferred", // 支払い時の残高消費方式 +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`bill_id`** + + +支払いQRコードのIDです。 + +QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +支払いを行うエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|disabled_bill|支払いQRコードが無効です|Bill is disabled| +|422|customer_user_not_found||The customer user is not found| +|422|bill_not_found|支払いQRコードが見つかりません|Bill not found| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + diff --git a/docs/bulk.md b/docs/bulk.md index 3cea090..8e81634 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -6,11 +6,11 @@ CSVファイルから一括取引をします。 ```csharp Request.BulkCreateTransaction request = new Request.BulkCreateTransaction( - "y2", // 一括取引タスク名 - "m8", // 取引する情報のCSV - "ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWl" // リクエストID + "b5", // 一括取引タスク名 + "bsI", // 取引する情報のCSV + "mY7PcHPZH7mHIXsOqC2xcKBYhL1xCfnaEpDL" // リクエストID ) { - Description = "WRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqS", // 一括取引の説明 + Description = "NgoBzsuiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVHFftM1EZPsd7jOCTvYgQYDODNTX3YU3qGQBWGDfb1wlkuiN7kKWKFo", // 一括取引の説明 PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID }; Response.BulkTransaction response = await request.Send(client); @@ -112,7 +112,7 @@ Response.BulkTransaction response = await request.Send(client); |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.| |409|NULL|NULL|NULL| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|bulk_transaction_invalid_csv_format|入力されたCSVデータに誤りがあります|Invalid csv format| diff --git a/docs/campaign.md b/docs/campaign.md index c303a75..06b6260 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -10,9 +10,9 @@ Request.ListCampaigns request = new Request.ListCampaigns( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - IsOngoing = false, // 現在適用可能なキャンペーンかどうか - AvailableFrom = "2020-07-01T00:25:56.000000Z", // 指定された日時以降に適用可能期間が含まれているか - AvailableTo = "2022-12-11T03:14:20.000000Z", // 指定された日時以前に適用可能期間が含まれているか + IsOngoing = true, // 現在適用可能なキャンペーンかどうか + AvailableFrom = "2022-11-12T15:47:17.000000Z", // 指定された日時以降に適用可能期間が含まれているか + AvailableTo = "2024-06-12T02:10:51.000000Z", // 指定された日時以前に適用可能期間が含まれているか Page = 1, // ページ番号 PerPage = 20, // 1ページ分の取得数 }; @@ -110,6 +110,7 @@ Response.PaginatedCampaigns response = await request.Send(client); |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| @@ -123,36 +124,37 @@ Response.PaginatedCampaigns response = await request.Send(client); ```csharp Request.CreateCampaign request = new Request.CreateCampaign( - "vNBs", // キャンペーン名 + "9tuL5LH4EHPGJy8ZSoJ1krFHQyhzGXerHPOPDvrwRgeSOaGF6stofVWAQmmxPEjbZK4rVxAUW7FWHkKwdg6799FNaTUuVqVNtvvxMPy8uYVQrlAwBlTLDHylYVoU0Lud9b", // キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - "2022-08-09T16:43:13.000000Z", // キャンペーン開始日時 - "2022-04-04T15:28:43.000000Z", // キャンペーン終了日時 - 6782, // キャンペーンの適用優先度 - "external-transaction" // イベント種別 + "2023-06-17T01:53:57.000000Z", // キャンペーン開始日時 + "2022-08-18T02:00:06.000000Z", // キャンペーン終了日時 + 4685, // キャンペーンの適用優先度 + "topup" // イベント種別 ) { BearPointShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID - Description = "RsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNW", // キャンペーンの説明文 - Status = "disabled", // キャンペーン作成時の状態 - PointExpiresAt = "2021-11-18T01:45:25.000000Z", // ポイント有効期限(絶対日時指定) - PointExpiresInDays = 1429, // ポイント有効期限(相対日数指定) - IsExclusive = true, // キャンペーンの重複設定 - Subject = "all", // ポイント付与の対象金額の種別 + Description = "M8UnuwQ7jNoaulXZjgrVDfW2ufNp0gAs9phyFh2aSmdruAKFNN9YCEWSULZdpylXeF6qvGwUl7ATMaf3NqLOcKmTPNREiEdfOxleMzyqb14XnQoYrg3WK0gxDGSVD8anN0", // キャンペーンの説明文 + Status = "enabled", // キャンペーン作成時の状態 + PointExpiresAt = "2020-10-09T18:35:24.000000Z", // ポイント有効期限(絶対日時指定) + PointExpiresInDays = 9305, // ポイント有効期限(相対日数指定) + 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}}}, // 商品情報ベースのポイント付与ルール - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト - ApplicableDaysOfWeek = new int[]{3, 2}, // キャンペーンを適用する曜日 (複数指定) - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, // キャンペーンを適用する時間帯 (複数指定) + 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"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト + ApplicableDaysOfWeek = new int[]{6}, // キャンペーンを適用する曜日 (複数指定) + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, // キャンペーンを適用する時間帯 (複数指定) ApplicableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト - MinimumNumberOfProducts = 4275, // キャンペーンを適用する1会計内の商品個数の下限 - MinimumNumberOfAmount = 6006, // キャンペーンを適用する1会計内の商品総額の下限 - MinimumNumberForCombinationPurchase = 417, // 複数種類の商品を同時購入するときの商品種別数の下限 - ExistInEachProductGroups = true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - MaxPointAmount = 7464, // キャンペーンによって付与されるポイントの上限 - MaxTotalPointAmount = 6181, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + BlacklistedShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + MinimumNumberOfProducts = 9011, // キャンペーンを適用する1会計内の商品個数の下限 + MinimumNumberOfAmount = 3293, // キャンペーンを適用する1会計内の商品総額の下限 + MinimumNumberForCombinationPurchase = 4688, // 複数種類の商品を同時購入するときの商品種別数の下限 + ExistInEachProductGroups = false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + MaxPointAmount = 4493, // キャンペーンによって付与されるポイントの上限 + MaxTotalPointAmount = 2172, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 DestPrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - BudgetCapsAmount = 593459802, // キャンペーン予算上限 + BudgetCapsAmount = 759867114, // キャンペーン予算上限 }; Response.Campaign response = await request.Send(client); ``` @@ -524,6 +526,23 @@ fromとtoは両方必要です。 } ``` +**`blacklisted_shop_ids`** + + +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + **`minimum_number_of_products`** @@ -866,11 +885,11 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|campaign_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| -|422|shop_account_not_found||The shop account is not found| -|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|campaign_period_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| |422|campaign_invalid_period||Invalid campaign period starts_at later than ends_at| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -927,32 +946,33 @@ Response.Campaign response = await request.Send(client); Request.UpdateCampaign request = new Request.UpdateCampaign( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // キャンペーンID ) { - Name = "D0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27f", // キャンペーン名 - StartsAt = "2023-01-24T11:58:33.000000Z", // キャンペーン開始日時 - EndsAt = "2024-03-08T03:05:55.000000Z", // キャンペーン終了日時 - Priority = 1560, // キャンペーンの適用優先度 - Event = "payment", // イベント種別 - Description = "KPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo", // キャンペーンの説明文 - Status = "disabled", // キャンペーン作成時の状態 - PointExpiresAt = "2021-06-13T14:31:35.000000Z", // ポイント有効期限(絶対日時指定) - PointExpiresInDays = 3039, // ポイント有効期限(相対日数指定) - IsExclusive = true, // キャンペーンの重複設定 + Name = "1BcnwfTRLJa4uoIhpR40nORwuCknsFuOeDw3ETEoYbDEhr0AwKkiQOHCQCIIRDiJ5EWSps1CcPm4CujuDviyaRPbQTt1c2CSzS35RxVGrM7sDhsRor5EZrBgBnWdBpXW3vXZAsIGmxl3OdV3odlFFoKvu4lobeulXI7c3F9nyrjjR", // キャンペーン名 + StartsAt = "2022-02-16T10:50:17.000000Z", // キャンペーン開始日時 + EndsAt = "2024-06-02T18:31:36.000000Z", // キャンペーン終了日時 + Priority = 1710, // キャンペーンの適用優先度 + Event = "topup", // イベント種別 + Description = "nDGe4yWdLtrR0H47hbbDvB2dkQWYC4RWqJwsq2yT7AWpCDkyLBkYzAxemZaKowuUfekyaJIsuHhxZpopNYyv6dLAyty2EMgPVlahlWYdbEevpLkzdUFCwG4QGOnpUXmwhMFkO9ufFPOzF9Lvv7JJIkMwpNGlwPY7w3AePumXzLvyF75pQ", // キャンペーンの説明文 + Status = "enabled", // キャンペーン作成時の状態 + PointExpiresAt = "2023-04-11T04:52:58.000000Z", // ポイント有効期限(絶対日時指定) + PointExpiresInDays = 9720, // ポイント有効期限(相対日数指定) + 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}}}, // 取引金額ベースのポイント付与ルール - 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[]{6, 0}, // キャンペーンを適用する曜日 (複数指定) - 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 = 2506, // キャンペーンを適用する1会計内の商品個数の下限 - MinimumNumberOfAmount = 2614, // キャンペーンを適用する1会計内の商品総額の下限 - MinimumNumberForCombinationPurchase = 1217, // 複数種類の商品を同時購入するときの商品種別数の下限 - ExistInEachProductGroups = false, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - MaxPointAmount = 4152, // キャンペーンによって付与されるポイントの上限 - MaxTotalPointAmount = 8728, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + 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"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト + ApplicableDaysOfWeek = new int[]{4, 6}, // キャンペーンを適用する曜日 (複数指定) + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, // キャンペーンを適用する時間帯 (複数指定) + ApplicableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト + BlacklistedShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + MinimumNumberOfProducts = 6153, // キャンペーンを適用する1会計内の商品個数の下限 + MinimumNumberOfAmount = 9249, // キャンペーンを適用する1会計内の商品総額の下限 + MinimumNumberForCombinationPurchase = 2948, // 複数種類の商品を同時購入するときの商品種別数の下限 + ExistInEachProductGroups = true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + MaxPointAmount = 1012, // キャンペーンによって付与されるポイントの上限 + MaxTotalPointAmount = 1450, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - BudgetCapsAmount = 817773375, // キャンペーン予算上限 + BudgetCapsAmount = 979442694, // キャンペーン予算上限 }; Response.Campaign response = await request.Send(client); ``` @@ -1313,6 +1333,23 @@ fromとtoは両方必要です。 } ``` +**`blacklisted_shop_ids`** + + +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + **`minimum_number_of_products`** diff --git a/docs/cashtray.md b/docs/cashtray.md index 50f638a..cb9da42 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -5,6 +5,149 @@ Cashtrayはワンタイムで、一度読み取りに成功するか、取引エ また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 + +## CreateTransactionWithCashtray: CashtrayQRコードを読み取ることで取引する +エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 + +通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 +もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 + + +```csharp +Request.CreateTransactionWithCashtray request = new Request.CreateTransactionWithCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // Cashtray用QRコードのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // エンドユーザーのID +) { + Strategy = "point-preferred", // 支払い時の残高消費方式 + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`cashtray_id`** + + +Cashtray用QRコードのIDです。 + +QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +チャージの場合は無効です。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 +指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。 +もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_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|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|cashtray_already_proceed|この決済QRコードは既に処理されています|Cashtray is already proceed| +|422|cashtray_expired|この決済QRコードは有効期限が切れています|Cashtray is expired| +|422|cashtray_already_canceled|この決済QRコードは既に無効化されています|Cashtray is already canceled| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + ## CreateCashtray: Cashtrayを作る Cashtrayを作成します。 @@ -19,10 +162,10 @@ Cashtrayを作成します。 Request.CreateCashtray request = new Request.CreateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID - 6869.0 // 金額 + 6317.0 // 金額 ) { Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 - ExpiresIn = 3655, // 失効時間(秒) + ExpiresIn = 8685, // 失効時間(秒) }; Response.Cashtray response = await request.Send(client); ``` @@ -102,8 +245,6 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項 |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|account_not_found|アカウントが見つかりません|The account is not found| -|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| -|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| @@ -253,9 +394,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 Request.UpdateCashtray request = new Request.UpdateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID ) { - Amount = 5236.0, // 金額 + Amount = 3942.0, // 金額 Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 - ExpiresIn = 6303, // 失効時間(秒) + ExpiresIn = 7335, // 失効時間(秒) }; Response.Cashtray response = await request.Send(client); ``` diff --git a/docs/check.md b/docs/check.md index 982750e..b32d03f 100644 --- a/docs/check.md +++ b/docs/check.md @@ -13,16 +13,16 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマ ```csharp Request.ListChecks request = new Request.ListChecks() { - Page = 2744, // ページ番号 + Page = 9728, // ページ番号 PerPage = 50, // 1ページの表示数 PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - OrganizationCode = "L4kFCWrbFq", // 組織コード - ExpiresFrom = "2021-09-09T15:13:43.000000Z", // 有効期限の期間によるフィルター(開始時点) - ExpiresTo = "2021-11-02T10:10:04.000000Z", // 有効期限の期間によるフィルター(終了時点) - CreatedFrom = "2021-08-03T06:23:31.000000Z", // 作成日時の期間によるフィルター(開始時点) - CreatedTo = "2023-09-18T07:29:12.000000Z", // 作成日時の期間によるフィルター(終了時点) + OrganizationCode = "uYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtc", // 組織コード + ExpiresFrom = "2023-07-25T17:23:39.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresTo = "2021-10-14T11:07:18.000000Z", // 有効期限の期間によるフィルター(終了時点) + CreatedFrom = "2024-08-31T15:49:15.000000Z", // 作成日時の期間によるフィルター(開始時点) + CreatedTo = "2020-04-17T06:28:31.000000Z", // 作成日時の期間によるフィルター(終了時点) IssuerShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID - Description = "c", // チャージQRコードの説明文 + Description = "8wxcy", // チャージQRコードの説明文 IsOnetime = false, // ワンタイムのチャージQRコードかどうか IsDisabled = false, // 無効化されたチャージQRコードかどうか }; @@ -206,7 +206,8 @@ Response.PaginatedChecks response = await request.Send(client); |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|organization_not_found||Organization not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| +|503|temporarily_unavailable||Service Unavailable| @@ -220,13 +221,13 @@ Response.PaginatedChecks response = await request.Send(client); Request.CreateCheck request = new Request.CreateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 送金元の店舗アカウントID ) { - MoneyAmount = 530.0, // 付与マネー額 - PointAmount = 8713.0, // 付与ポイント額 + MoneyAmount = 2249.0, // 付与マネー額 + PointAmount = 4625.0, // 付与ポイント額 Description = "test check", // 説明文(アプリ上で取引の説明文として表示される) - IsOnetime = true, // ワンタイムかどうかのフラグ - UsageLimit = 318, // ワンタイムでない場合の最大読み取り回数 - ExpiresAt = "2020-05-18T06:49:05.000000Z", // チャージQRコード自体の失効日時 - PointExpiresAt = "2023-04-04T22:26:01.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + IsOnetime = false, // ワンタイムかどうかのフラグ + UsageLimit = 6664, // ワンタイムでない場合の最大読み取り回数 + ExpiresAt = "2023-09-03T13:58:40.000000Z", // チャージQRコード自体の失効日時 + PointExpiresAt = "2024-08-16T05:11:07.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID }; @@ -390,14 +391,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード |---|---|---|---| |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameter_only_merchants_can_attach_points_to_check||Only merchants can attach points to check| -|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| |400|invalid_parameter_combination_usage_limit_and_is_onetime||'usage_limit' can not be specified if 'is_onetime' is true.| -|400|invalid_parameters|項目が無効です|Invalid parameters| |400|invalid_parameter_expires_at||'expires_at' must be in the future| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|account_private_money_is_not_issued_by_organization||The account's private money is not issued by this organization| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|bear_point_account_not_found|ポイントを負担する店舗アカウントが見つかりません|Bear point account not found.| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| @@ -449,16 +450,16 @@ Response.Check response = await request.Send(client); Request.UpdateCheck request = new Request.UpdateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // チャージQRコードのID ) { - MoneyAmount = 6084.0, // 付与マネー額 - PointAmount = 7684.0, // 付与ポイント額 + MoneyAmount = 1629.0, // 付与マネー額 + PointAmount = 1473.0, // 付与ポイント額 Description = "test check", // チャージQRコードの説明文 IsOnetime = true, // ワンタイムかどうかのフラグ - UsageLimit = 6450, // ワンタイムでない場合の最大読み取り回数 - ExpiresAt = "2022-06-07T12:39:06.000000Z", // チャージQRコード自体の失効日時 - PointExpiresAt = "2021-05-13T07:30:56.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + UsageLimit = 1345, // ワンタイムでない場合の最大読み取り回数 + ExpiresAt = "2022-10-14T23:12:08.000000Z", // チャージQRコード自体の失効日時 + PointExpiresAt = "2023-09-03T12:56:10.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID - IsDisabled = true, // 無効化されているかどうかのフラグ + IsDisabled = false, // 無効化されているかどうかのフラグ }; Response.Check response = await request.Send(client); ``` @@ -689,6 +690,7 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -706,13 +708,11 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な ### Error Responses |status|type|ja|en| |---|---|---|---| -|400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|customer_user_not_found||The customer user is not found| |422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -732,7 +732,7 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -740,6 +740,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|check_already_received|このチャージQRコードは既に受取済みの為、チャージ出来ませんでした|Check is already received| |422|check_unavailable|このチャージQRコードは利用できません|The topup QR code is not available| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/coupon.md b/docs/coupon.md index cbbc675..2bd0890 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 = "x2jnlKrw0", // クーポンID - CouponName = "dNS4VtkXCD", // クーポン名 - IssuedShopName = "t0L", // 発行店舗名 - AvailableShopName = "OE3Qg", // 利用可能店舗名 - AvailableFrom = "2021-02-12T04:03:43.000000Z", // 利用可能期間 (開始日時) - AvailableTo = "2023-06-04T13:12:02.000000Z", // 利用可能期間 (終了日時) + CouponId = "iZ", // クーポンID + CouponName = "YSVIBpBUCC", // クーポン名 + IssuedShopName = "gk4g", // 発行店舗名 + AvailableShopName = "sP6E17lk", // 利用可能店舗名 + AvailableFrom = "2020-06-26T22:20:27.000000Z", // 利用可能期間 (開始日時) + AvailableTo = "2020-05-25T04:04:55.000000Z", // 利用可能期間 (終了日時) Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取得数 }; @@ -150,7 +150,7 @@ Response.PaginatedCoupons response = await request.Send(client); |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -164,25 +164,25 @@ Response.PaginatedCoupons response = await request.Send(client); ```csharp Request.CreateCoupon request = new Request.CreateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "cszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGp", - "2022-01-15T18:09:07.000000Z", - "2022-08-26T01:51:15.000000Z", + "rA88yuG2X4KRlpHewo2CgFQkdXPF4V9XHbL6zY6vqwgcI7YPEPHgGnEdzhGAMty3evJwcetItJxO93cN0l", + "2021-12-16T07:23:43.000000Z", + "2023-02-25T16:09:50.000000Z", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 発行元の店舗ID ) { - Description = "Qn8B7l65BYM", - DiscountAmount = 4227, - DiscountPercentage = 806.0, - DiscountUpperLimit = 1270, - DisplayStartsAt = "2020-02-09T15:09:11.000000Z", // クーポンの掲載期間(開始日時) - DisplayEndsAt = "2023-11-04T13:46:54.000000Z", // クーポンの掲載期間(終了日時) - IsDisabled = true, // 無効化フラグ - IsHidden = false, // クーポン一覧に掲載されるかどうか + Description = "G0lwTGLR8ci2cIIE66fhj2n6iiZ64HpvFGkJr1uo4NLstnS7EAbDgQaYkUrDsQyk3kwOisNW9XsMHBVPsrsYBnLGXRYzu4noxPXNWpdUvBBp2JsuVIINCRpxja7me48LNXqpqJtjZwJILsuUBm8J0tu2v6zDKp9iO7Ari", + DiscountAmount = 9147, + DiscountPercentage = 8579.0, + DiscountUpperLimit = 2706, + DisplayStartsAt = "2020-08-25T11:57:15.000000Z", // クーポンの掲載期間(開始日時) + DisplayEndsAt = "2023-06-20T18:21:11.000000Z", // クーポンの掲載期間(終了日時) + IsDisabled = false, // 無効化フラグ + IsHidden = true, // クーポン一覧に掲載されるかどうか IsPublic = false, // アプリ配信なしで受け取れるかどうか - Code = "EwbRq7C0z", // クーポン受け取りコード - UsageLimit = 1053, // ユーザごとの利用可能回数(NULLの場合は無制限) - MinAmount = 7786, // クーポン適用可能な最小取引額 + Code = "mo6XPE5Oq", // クーポン受け取りコード + UsageLimit = 2937, // ユーザごとの利用可能回数(NULLの場合は無制限) + MinAmount = 2737, // クーポン適用可能な最小取引額 IsShopSpecified = true, // 特定店舗限定のクーポンかどうか - AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト + AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト StorageId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID }; Response.CouponDetail response = await request.Send(client); @@ -425,7 +425,7 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |404|partner_storage_not_found|指定したIDのデータは保存されていません|Not found by storage_id| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|coupon_image_storage_conflict|クーポン画像のストレージIDは既に存在します|The coupon image storage_id is already exists| @@ -480,22 +480,22 @@ UUIDv4フォーマットである必要があり、フォーマットが異な Request.UpdateCoupon request = new Request.UpdateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // クーポンID ) { - Name = "5JoEScisdzkhxnXFFT7CXS50vaovkRO", - Description = "QbPFa2Q0QZFPxPWcwwu3uh9fDL3S3N", - DiscountAmount = 2550, - DiscountPercentage = 8586.0, - DiscountUpperLimit = 2093, - StartsAt = "2021-01-29T13:48:50.000000Z", - EndsAt = "2022-04-03T12:59:15.000000Z", - DisplayStartsAt = "2021-06-14T03:00:40.000000Z", // クーポンの掲載期間(開始日時) - DisplayEndsAt = "2022-07-07T12:43:02.000000Z", // クーポンの掲載期間(終了日時) - IsDisabled = false, // 無効化フラグ + Name = "jVh9nsqgzongKg5SFSpcaiWqMVEyXiabD2fPkrS1NvYbmwucdTPjBOMyHVeFGY5vB7gjE0J3rzoZQgeuXW4rw3Ob3VUIWbzDljJ6klDtciJUc", + Description = "1wir4yYsQVBNqeXloDbzzGADkOfMAKTboQcaiYXr4rnNnjCoeQHMuXiGNUysmU86lvAOTbcLzXO1sbMRuBNUlL6K0ReLv75kg6qcs3cEpI1m3wABqtL3bdaVTKdkTjUxGpAh3awQssfAXqJYYr4ARYbJcmLujs894lRg4qB30GRMkbzDn742v8m6fDAksXCcjSnMwkyUVD7CNlqSrG8bUcu2404OwW2YlKo3D8R7F9uqtTYDUe0c6WMB", + DiscountAmount = 6591, + DiscountPercentage = 9264.0, + DiscountUpperLimit = 2365, + StartsAt = "2023-12-22T10:14:14.000000Z", + EndsAt = "2021-12-13T08:29:01.000000Z", + DisplayStartsAt = "2020-06-07T13:39:20.000000Z", // クーポンの掲載期間(開始日時) + DisplayEndsAt = "2020-10-02T00:30:03.000000Z", // クーポンの掲載期間(終了日時) + IsDisabled = true, // 無効化フラグ IsHidden = false, // クーポン一覧に掲載されるかどうか IsPublic = true, // アプリ配信なしで受け取れるかどうか - Code = "VO", // クーポン受け取りコード - UsageLimit = 5609, // ユーザごとの利用可能回数(NULLの場合は無制限) - MinAmount = 6829, // クーポン適用可能な最小取引額 - IsShopSpecified = false, // 特定店舗限定のクーポンかどうか + Code = "CtA", // クーポン受け取りコード + UsageLimit = 9635, // ユーザごとの利用可能回数(NULLの場合は無制限) + MinAmount = 9578, // クーポン適用可能な最小取引額 + IsShopSpecified = true, // 特定店舗限定のクーポンかどうか AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト StorageId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID }; diff --git a/docs/customer.md b/docs/customer.md index 2c163de..be57d80 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -106,7 +106,7 @@ Request.UpdateAccount request = new Request.UpdateAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID ) { IsSuspended = true, // ウォレットが凍結されているかどうか - Status = "suspended", // ウォレット状態 + Status = "active", // ウォレット状態 CanTransferTopup = false, // チャージ可能かどうか }; Response.AccountDetail response = await request.Send(client); @@ -186,11 +186,11 @@ Response.AccountDetail response = await request.Send(client); Request.ListAccountBalances request = new Request.ListAccountBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID ) { - Page = 6497, // ページ番号 - PerPage = 6466, // 1ページ分の取引数 - ExpiresAtFrom = "2021-03-29T13:19:12.000000Z", // 有効期限の期間によるフィルター(開始時点) - ExpiresAtTo = "2021-05-16T03:24:38.000000Z", // 有効期限の期間によるフィルター(終了時点) - Direction = "asc", // 有効期限によるソート順序 + Page = 350, // ページ番号 + PerPage = 1991, // 1ページ分の取引数 + ExpiresAtFrom = "2022-03-28T16:15:32.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresAtTo = "2023-02-22T12:33:41.000000Z", // 有効期限の期間によるフィルター(終了時点) + Direction = "desc", // 有効期限によるソート順序 }; Response.PaginatedAccountBalance response = await request.Send(client); ``` @@ -294,11 +294,11 @@ Response.PaginatedAccountBalance response = await request.Send(client); Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID ) { - Page = 2277, // ページ番号 - PerPage = 1898, // 1ページ分の取引数 - ExpiresAtFrom = "2023-04-23T17:13:03.000000Z", // 有効期限の期間によるフィルター(開始時点) - ExpiresAtTo = "2022-12-12T10:24:10.000000Z", // 有効期限の期間によるフィルター(終了時点) - Direction = "asc", // 有効期限によるソート順序 + Page = 318, // ページ番号 + PerPage = 5324, // 1ページ分の取引数 + ExpiresAtFrom = "2023-12-19T05:21:31.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresAtTo = "2020-12-21T05:07:13.000000Z", // 有効期限の期間によるフィルター(終了時点) + Direction = "desc", // 有効期限によるソート順序 }; Response.PaginatedAccountBalance response = await request.Send(client); ``` @@ -402,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 = "dqAuTxyB0A3WX2EcUb892", // アカウント名 - ExternalId = "z3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJ", // 外部ID + Status = "suspended", // ウォレット状態 + AccountName = "0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39ScasZnA58jo0hnztlMdM7BVfn4iFYyJJXfrDU", // アカウント名 + ExternalId = "2Z5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O6y0fQnXOg", // 外部ID Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", // ウォレットに付加するメタデータ }; Response.AccountWithUser response = await request.Send(client); @@ -513,15 +513,15 @@ Response.AccountWithUser response = await request.Send(client); Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - Page = 1014, // ページ番号 - PerPage = 7219, // 1ページ分のウォレット数 - CreatedAtFrom = "2020-06-18T18:57:29.000000Z", // ウォレット作成日によるフィルター(開始時点) - CreatedAtTo = "2022-05-19T03:42:55.000000Z", // ウォレット作成日によるフィルター(終了時点) + Page = 8211, // ページ番号 + PerPage = 6776, // 1ページ分のウォレット数 + CreatedAtFrom = "2021-09-10T05:49:31.000000Z", // ウォレット作成日によるフィルター(開始時点) + CreatedAtTo = "2022-09-03T21:35:58.000000Z", // ウォレット作成日によるフィルター(終了時点) IsSuspended = false, // ウォレットが凍結状態かどうかでフィルターする Status = "active", // ウォレット状態 - ExternalId = "aAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX", // 外部ID - Tel = "087-600118", // エンドユーザーの電話番号 - Email = "qEwnOjzBjM@dE2Z.com", // エンドユーザーのメールアドレス + ExternalId = "h5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrPufrwL", // 外部ID + Tel = "04153-7642", // エンドユーザーの電話番号 + Email = "ZhJuNsCdqV@bAgL.com", // エンドユーザーのメールアドレス }; Response.PaginatedAccountWithUsers response = await request.Send(client); ``` @@ -664,7 +664,7 @@ Response.PaginatedAccountWithUsers response = await request.Send(client); |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -684,7 +684,7 @@ Request.CreateCustomerAccount request = new Request.CreateCustomerAccount( ) { UserName = "ポケペイ太郎", // ユーザー名 AccountName = "ポケペイ太郎のアカウント", // アカウント名 - ExternalId = "qC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonz", // 外部ID + ExternalId = "QKQXblhvdQVC38rMOaKHSf5htPp", // 外部ID }; Response.AccountWithUser response = await request.Send(client); ``` @@ -752,8 +752,8 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|user_not_found||The user is not found| -|422|private_money_not_found||Private money not found| +|422|user_not_found|ユーザーが見つかりません|The user is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|user_attributes_external_id_not_match|ユーザー属性情報の外部IDが一致しません|Not match external id of user attributes| |422|user_attributes_not_found|ユーザー属性情報が存在しません|Not found the user attrubtes| @@ -773,11 +773,11 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで Request.GetShopAccounts request = new Request.GetShopAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - Page = 7320, // ページ番号 - PerPage = 8993, // 1ページ分のウォレット数 - CreatedAtFrom = "2023-04-19T18:25:51.000000Z", // ウォレット作成日によるフィルター(開始時点) - CreatedAtTo = "2020-03-30T19:22:03.000000Z", // ウォレット作成日によるフィルター(終了時点) - IsSuspended = false, // ウォレットが凍結状態かどうかでフィルターする + Page = 7162, // ページ番号 + PerPage = 4097, // 1ページ分のウォレット数 + CreatedAtFrom = "2021-11-27T12:02:43.000000Z", // ウォレット作成日によるフィルター(開始時点) + CreatedAtTo = "2020-07-11T01:13:01.000000Z", // ウォレット作成日によるフィルター(終了時点) + IsSuspended = true, // ウォレットが凍結状態かどうかでフィルターする }; Response.PaginatedAccountWithUsers response = await request.Send(client); ``` @@ -868,7 +868,7 @@ Response.PaginatedAccountWithUsers response = await request.Send(client); |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -885,10 +885,10 @@ Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( ) { SenderCustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金エンドユーザーID ReceiverCustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取エンドユーザーID - Type = "topup", // 取引種別 + Type = "cashback", // 取引種別 IsModified = false, // キャンセル済みかどうか - From = "2023-10-25T01:26:40.000000Z", // 開始日時 - To = "2022-05-07T07:54:42.000000Z", // 終了日時 + From = "2021-07-30T00:07:51.000000Z", // 開始日時 + To = "2021-08-16T03:11:59.000000Z", // 終了日時 Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取引数 }; @@ -1051,7 +1051,8 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|customer_user_not_found||The customer user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| +|503|temporarily_unavailable||Service Unavailable| diff --git a/docs/error-response.csv b/docs/error-response.csv index 9943e3a..17092a6 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -2,19 +2,26 @@ method,path,status_code,type,ja,en GET,/user,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission GET,/dashboard,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable GET,/transfers,403,,, +,,503,temporarily_unavailable,,Service Unavailable GET,/transfers-v2,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable GET,/transactions,403,,, +,,503,temporarily_unavailable,,Service Unavailable GET,/transactions-v2,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable +GET,/transactions/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,customer_user_not_found,,The customer user is not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -34,7 +41,7 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -42,17 +49,21 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,503,temporarily_unavailable,,Service Unavailable GET,/transactions/:uuid,403,,, ,,404,,, +,,503,temporarily_unavailable,,Service Unavailable GET,/transactions/requests/:request-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,card_not_found,"カードが見つかりません", ,,409,already_registered_veritrans_card,"このカードは既に登録されています", ,,409,already_registered_veritrans_account,"この会員は既に登録されています", ,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,can_not_refund_bank_transaction,"銀行取引はキャンセルできません",Bank transactions cannot be cancelled. ,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable ,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. @@ -68,9 +79,8 @@ POST,/transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -96,17 +106,18 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found -,,422,private_money_not_found,,Private money not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/topup/check,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled +POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,check_not_found,"これはチャージQRコードではありません",This is not a topup QR code -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -126,7 +137,7 @@ POST,/transactions/topup/check,400,invalid_parameters,"項目が無効です",In ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -134,13 +145,16 @@ POST,/transactions/topup/check,400,invalid_parameters,"項目が無効です",In ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,check_already_received,"このチャージQRコードは既に受取済みの為、チャージ出来ませんでした",Check is already received ,,422,check_unavailable,"このチャージQRコードは利用できません",The topup QR code is not available ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -148,6 +162,7 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,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. @@ -160,7 +175,7 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -169,11 +184,9 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/payment,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -199,17 +212,55 @@ POST,/transactions/payment,400,invalid_parameters,"項目が無効です",Invali ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found -,,422,private_money_not_found,,Private money not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/transfer,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled +POST,/transactions/payment/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,disabled_bill,"支払いQRコードが無効です",Bill is disabled ,,422,customer_user_not_found,,The customer user is not found -,,422,private_money_not_found,,Private money not found +,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,account_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,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,503,temporarily_unavailable,,Service Unavailable +POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,customer_user_not_found,,The customer user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -229,7 +280,7 @@ POST,/transactions/transfer,400,invalid_parameters,"項目が無効です",Inval ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -237,10 +288,11 @@ POST,/transactions/transfer,400,invalid_parameters,"項目が無効です",Inval ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/exchange,400,invalid_parameters,"項目が無効です",Invalid parameters -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled -,,422,account_not_found,"アカウントが見つかりません",The account is not found +POST,/transactions/exchange,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,transaction_restricted,,Transaction is not allowed ,,422,can_not_exchange_between_same_private_money,"同じマネーとの交換はできません", ,,422,can_not_exchange_between_users,"異なるユーザー間での交換は出来ません", @@ -249,6 +301,7 @@ POST,/transactions/exchange,400,invalid_parameters,"項目が無効です",Inval ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency @@ -258,6 +311,7 @@ POST,/transactions/exchange,400,invalid_parameters,"項目が無効です",Inval ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,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. @@ -270,18 +324,17 @@ POST,/transactions/exchange,400,invalid_parameters,"項目が無効です",Inval ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,503,temporarily_unavailable,,Service Unavailable -POST,/transactions/cpm,400,invalid_parameters,"項目が無効です",Invalid parameters -,,403,cpm_unacceptable_amount,"このCPMトークンに対して許可されていない金額です。",The amount is unacceptable for the CPM token +POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対して許可されていない金額です。",The amount is unacceptable for the CPM token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,cpm_token_already_proceed,"このCPMトークンは既に処理されています。",The CPM token is already proceed ,,422,cpm_token_already_expired,"このCPMトークンは既に失効しています。",The CPM token is already expired ,,422,cpm_token_not_found,"CPMトークンが見つかりませんでした。",The CPM token is not found. -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -301,7 +354,7 @@ POST,/transactions/cpm,400,invalid_parameters,"項目が無効です",Invalid pa ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -309,21 +362,61 @@ POST,/transactions/cpm,400,invalid_parameters,"項目が無効です",Invalid pa ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,organization_not_issuer,"発行体以外に許可されていない操作です",Unpermitted operation except for issuer organizations. ,,409,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,bulk_transaction_invalid_csv_format,"入力されたCSVデータに誤りがあります",Invalid csv format +POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,cashtray_not_found,"決済QRコードが見つかりません",Cashtray is not found +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,account_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,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,cashtray_already_proceed,"この決済QRコードは既に処理されています",Cashtray is already proceed +,,422,cashtray_expired,"この決済QRコードは有効期限が切れています",Cashtray is expired +,,422,cashtray_already_canceled,"この決済QRコードは既に無効化されています",Cashtray is already canceled +,,503,temporarily_unavailable,,Service Unavailable POST,/external-transactions,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,customer_user_not_found,,The customer user is not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup @@ -332,6 +425,7 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency @@ -350,6 +444,8 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. ,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -357,6 +453,7 @@ POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK toke ,,409,already_registered_veritrans_card,"このカードは既に登録されています", ,,409,already_registered_veritrans_account,"この会員は既に登録されています", ,,422,event_not_found,"イベントが見つかりません",Event not found +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,can_not_refund_bank_transaction,"銀行取引はキャンセルできません",Bank transactions cannot be cancelled. ,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable ,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. @@ -375,42 +472,48 @@ GET,/bulk-transactions/:uuid,404,notfound,,Not found GET,/bulk-transactions/:uuid/jobs,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,bulk_transaction_not_found,"Bulk取引が見つかりません",Bulk transaction not found GET,/bills,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -POST,/bills,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,shop_account_not_found,,The shop account is not found -,,422,private_money_not_found,,Private money not found +GET,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found +POST,/bills,400,invalid_parameter_bill_amount_or_range_exceeding_transfer_limit,"支払いQRコードの金額がマネーの取引可能金額の上限を超えています",The input amount is exceeding the private money's limit for transfer +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_suspended,"アカウントは停止されています",The account is suspended -PATCH,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +PATCH,/bills/:uuid,400,invalid_parameter_bill_amount_or_range_exceeding_transfer_limit,"支払いQRコードの金額がマネーの取引可能金額の上限を超えています",The input amount is exceeding the private money's limit for transfer +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable POST,/checks,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameter_only_merchants_can_attach_points_to_check,,Only merchants can attach points to check -,,400,invalid_parameter_bear_point_account_identification_item_not_unique,"ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます",Request parameters include either bear_point_account or bear_point_shop_id. ,,400,invalid_parameter_combination_usage_limit_and_is_onetime,,'usage_limit' can not be specified if 'is_onetime' is true. -,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,400,invalid_parameter_expires_at,,'expires_at' must be in the future +,,400,invalid_parameters,"項目が無効です",Invalid parameters +,,400,invalid_parameter_bear_point_account_identification_item_not_unique,"ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます",Request parameters include either bear_point_account or bear_point_shop_id. ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,bear_point_account_not_found,"ポイントを負担する店舗アカウントが見つかりません",Bear point account not found. ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer GET,/checks/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization +,,503,temporarily_unavailable,,Service Unavailable PATCH,/checks/:uuid,400,invalid_parameter_combination_usage_limit_and_is_onetime,,'usage_limit' can not be specified if 'is_onetime' is true. ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,400,invalid_parameter_expires_at,,'expires_at' must be in the future ,,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer ,,422,onetime_check_cannot_reenabled,"使用済みのワンタイムチャージQRコードは再度有効化できません",One-time check already used and disabled cannot be re-enabled ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization -,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer GET,/users,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission POST,/users,400,user_invalid_email,"入力されたメールアドレスが間違っています。入力内容をご確認ください", ,,400,not_shop_admin_user_must_not_be_linked_to_any_shops,,Admin user who does not have shop-authority must not be linked to any shops @@ -428,8 +531,8 @@ PATCH,/users/invitations/:uuid,403,,, ,,409,admin_user_conflict,,The Admin-user is already registered ,,503,failed_to_send_email,,Failed to send an E-mail. POST,/users/:uuid/accounts,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,user_attributes_external_id_not_match,"ユーザー属性情報の外部IDが一致しません",Not match external id of user attributes ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes @@ -448,12 +551,14 @@ DELETE,/users/:uuid,403,,, GET,/private-moneys,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found GET,/private-moneys/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/private-moneys/:uuid/summary,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable GET,/private-moneys/:uuid/clearings,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable GET,/private-moneys/:uuid/organization-summaries,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,404,,, @@ -466,7 +571,7 @@ POST,/private-moneys,400,invalid_parameters,"項目が無効です",Invalid para GET,/terminals,403,,, GET,/organizations,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/organizations,403,,, ,,409,organization_conflict,,The organization code is already used ,,409,shop_name_conflict,,The shop name is already used @@ -484,8 +589,9 @@ PUT,/organizations/:code,403,,, ,,503,temporarily_unavailable,,Service Unavailable GET,/organizations/:code/shops,403,,, GET,/shops,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found +,,503,temporarily_unavailable,,Service Unavailable POST,/shops,403,,, ,,409,email_conflict,"このメールアドレスは既に使われています",The E-mail address is already registered ,,409,shop_name_conflict,,The shop name is already used @@ -504,32 +610,37 @@ GET,/shops/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限 PATCH,/shops/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,409,shop_name_conflict,,The shop name is already used +,,422,head_office_can_not_be_disabled,,Head office can not be disabled ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,unavailable_private_money,,Given private money(s) is/are not available ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API ,,503,temporarily_unavailable,,Service Unavailable GET,/customers,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable GET,/customers/transactions,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable GET,/customers/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,account_not_found,"アカウントが見つかりません",The account is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found PATCH,/clearings/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,clearing_not_found,"精算が見つかりません",Clearing not found ,,503,temporarily_unavailable,,Service Unavailable GET,/clearings,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable GET,/clearings/preview,400,clearing_to_should_be_past_date,"締め日は過去の日付を指定してください",Should set past date for 'closing_date' ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/clearings,400,clearing_to_should_be_past_date,"締め日は過去の日付を指定してください",Should set past date for 'closing_date' ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/clearings/flico,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission GET,/clearings/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,clearing_not_found,"精算が見つかりません",Clearing not found +,,503,temporarily_unavailable,,Service Unavailable GET,/messaging-operations,403,,, POST,/messaging-operations,400,messaging_operation_over_transfer_limit,,The messaging operation's amount is over transfer limit ,,400,messaging_operation_sender_account_not_exist,,The account of sender user does not exist @@ -538,7 +649,7 @@ POST,/messaging-operations,400,messaging_operation_over_transfer_limit,,The mess ,,403,,, ,,409,messaging_operation_already_done,,The messaging operation is already done ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,503,temporarily_unavailable,,Service Unavailable GET,/messaging-operations/receivers,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, @@ -560,6 +671,10 @@ POST,/user-stats,400,invalid_parameters,"項目が無効です",Invalid paramete ,,422,invalid_promotional_operation_user,"ユーザーの指定に不正な値が含まれています",Invalid user data is specified ,,422,invalid_promotional_operation_status,"不正な処理ステータスです",Invalid operation status is specified ,,503,user_stats_operation_service_unavailable,"一時的にユーザー統計サービスが利用不能です",User stats service is temporarily unavailable +POST,/user-stats/terminate,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,user_stats_operation_already_done,"指定されたIDの集計処理タスクは既に完了しています",The specified user stats operation is already done +,,422,user_stats_operation_not_found,"指定されたIDの集計処理タスクが見つかりません",User stats task not found for the operation ID +,,503,temporarily_unavailable,,Service Unavailable POST,/device/pokeregis,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,409,hardware_id_conflict,,Hardware id is already registered @@ -583,13 +698,13 @@ POST,/device/pokeregis/:serial-number,400,terminal_is_already_invalidated,,The t ,,500,,, GET,/device/kiosks,400,,, ,,403,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found GET,/device/kiosk-maintenances,403,,, GET,/device/kiosks/:kiosk-id,400,,, ,,403,,, ,,404,,, -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,organization_not_found,,Organization not found POST,/merchandise-tag,403,,, ,,503,temporarily_unavailable,,Service Unavailable @@ -599,14 +714,15 @@ POST,/tokens,403,unpermitted_admin_user,"この管理ユーザには権限があ ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,organization_not_found,,Organization not found GET,/tokens,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable DELETE,/tokens/:token,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/customers,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/accounts/customers,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,user_attributes_external_id_not_match,"ユーザー属性情報の外部IDが一致しません",Not match external id of user attributes ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes @@ -616,17 +732,16 @@ PATCH,/accounts/:uuid/customers,403,unpermitted_admin_user,"この管理ユー ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,user_attributes_not_found,"ユーザー属性情報が存在しません",Not found the user attrubtes -,,422,account_closed,"アカウントは退会しています",The account is closed ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/shops,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable PATCH,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,503,temporarily_unavailable,,Service Unavailable DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,account_not_pre_closed,"アカウントが退会準備中ではありません",The account is not pre-closed ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup @@ -634,6 +749,7 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user ,,422,terminal_is_invalidated,"端末は無効化されています",The terminal is already invalidated ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency @@ -643,6 +759,7 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,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. @@ -659,12 +776,15 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/:uuid/balances,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/:uuid/expired-balances,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/:uuid/transfers/summary,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found GET,/users/:uuid/accounts,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable GET,/cashtrays/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found @@ -676,19 +796,16 @@ DELETE,/cashtrays/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found POST,/cashtrays,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_not_found,"アカウントが見つかりません",The account is not found -,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer -,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found PATCH,/cashtrays/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,422,cashtray_already_proceed,"この決済QRコードは既に処理されています",Cashtray is already proceed ,,422,cashtray_expired,"この決済QRコードは有効期限が切れています",Cashtray is expired ,,422,cashtray_already_canceled,"この決済QRコードは既に無効化されています",Cashtray is already canceled -,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer -,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found GET,/cpm/:cpm-token,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,cpm_token_not_found,"CPMトークンが見つかりませんでした。",The CPM token is not found. +,,503,temporarily_unavailable,,Service Unavailable GET,/seven-bank-atm-sessions/:qr-info,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found PATCH,/seven-bank-atm-sessions/:qr-info,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -696,19 +813,20 @@ PATCH,/seven-bank-atm-sessions/:qr-info,403,unpermitted_admin_user,"この管理 POST,/campaigns,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,campaign_overlaps,"同期間に開催されるキャンペーン間で優先度が重複してます",The campaign period overlaps under the same private-money / type / priority -,,422,shop_account_not_found,,The shop account is not found -,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,campaign_period_overlaps,"同期間に開催されるキャンペーン間で優先度が重複してます",The campaign period overlaps under the same private-money / type / priority ,,422,campaign_invalid_period,,Invalid campaign period starts_at later than ends_at +,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found GET,/campaigns,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable PATCH,/campaigns/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found -,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,campaign_budget_caps_exceeded,"キャンペーン予算上限額を越えています",The campaign budget caps exceeded GET,/campaigns/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable POST,/webhooks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,409,organization_worker_task_finish_webhook_conflict,"そのwebhookは既に登録されています",The webhook is already registered GET,/webhooks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -721,12 +839,12 @@ DELETE,/webhooks/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,503,temporarily_unavailable,,Service Unavailable GET,/coupons,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found POST,/coupons,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,partner_storage_not_found,"指定したIDのデータは保存されていません",Not found by storage_id ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,coupon_image_storage_conflict,"クーポン画像のストレージIDは既に存在します",The coupon image storage_id is already exists GET,/coupons/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. @@ -740,7 +858,7 @@ POST,/storage/v1,400,partner_decryption_failed,"リクエスト中の暗号デ ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. ,,422,formats_not_supported_by_storage,"このフォーマットは対応していません",This format is not supported POST,/user-devices,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,user_not_found,,The user is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found GET,/user-devices/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,user_device_not_found,,The user-device not found POST,/user-devices/:uuid/activate,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -750,25 +868,27 @@ POST,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザ ,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled ,,422,user_device_not_found,,The user-device not found ,,422,bank_registration_limit_error,"8口座を越えて登録できません",Can not register more than 8 accounts. -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." GET,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,forbidden,,Forbidden -,,422,private_money_not_found,,Private money not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,user_device_not_found,,The user-device not found POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外部サービス起因により、チャージに失敗しました",Failure to topup due to external services of the bank ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,forbidden,,Forbidden ,,403,user_bank_disabled_error,"現在、このユーザーは銀行からのチャージは利用できません",Topup from this user's bank have now been stopped. ,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found -,,410,transaction_canceled,"取引がキャンセルされました",Transaction was canceled -,,422,private_money_not_found,,Private money not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled ,,422,user_device_not_found,,The user-device not found +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled ,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account ,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough @@ -788,7 +908,7 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,account_suspended,"アカウントは停止されています",The account is suspended ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,,The shop account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,account_currency_mismatch,"アカウント間で通貨が異なっています",Currency mismatch between accounts ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_not_accessible,"アカウントにアクセスできません",The account is not accessible by this user @@ -796,10 +916,15 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,temporarily_unavailable,,Service Unavailable ,,503,incomplete_configration_for_organization_bank,"現状、このマネーは銀行からのチャージを行えません。システム管理者へお問合せ下さい","Currently, this money cannot be topup from this bank. Please contact your system administrator." +DELETE,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,403,forbidden,,Forbidden +,,404,user_bank_not_found,"登録された銀行が見つかりません",Bank not found +,,422,user_device_not_found,,The user-device not found POST,/paytree/charge-entry-result,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data. ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. POST,/paytree/reconcile,400,invalid_parameters,"項目が無効です",Invalid parameters diff --git a/docs/event.md b/docs/event.md index 3d25015..02c0f41 100644 --- a/docs/event.md +++ b/docs/event.md @@ -12,12 +12,13 @@ Request.CreateExternalTransaction request = new Request.CreateExternalTransactio "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 5317 // 取引額 + 8568 // 取引額 ) { Description = "たい焼き(小倉)", // 取引説明文 Metadata = "{\"key\":\"value\"}", // ポケペイ外部取引メタデータ - Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ + Products = 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 = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + DoneAt = "2023-06-15T00:28:28.000000Z", // ポケペイ外部取引の実施時間 }; Response.ExternalTransactionDetail response = await request.Send(client); ``` @@ -146,6 +147,20 @@ Response.ExternalTransactionDetail response = await request.Send(client); } ``` +**`done_at`** + + +ポケペイ外部取引が実際に起こった時間です。 +時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 +デフォルトではCreateExternalTransactionがリクエストされた時間になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + 成功したときは @@ -157,13 +172,11 @@ Response.ExternalTransactionDetail response = await request.Send(client); |---|---|---|---| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|customer_user_not_found||The customer user is not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| @@ -172,6 +185,7 @@ Response.ExternalTransactionDetail response = await request.Send(client); |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| |422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| @@ -190,6 +204,8 @@ Response.ExternalTransactionDetail response = await request.Send(client); |422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| |422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/organization.md b/docs/organization.md index 3b0f6e1..5bafe07 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 = "4", // 組織名 - Code = "10", // 組織コード + Name = "dWsbduWBx", // 組織名 + Code = "fg1Kl", // 組織コード }; Response.PaginatedOrganizations response = await request.Send(client); ``` @@ -86,7 +86,7 @@ Response.PaginatedOrganizations response = await request.Send(client); |---|---|---|---| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -100,9 +100,9 @@ Response.PaginatedOrganizations response = await request.Send(client); Request.CreateOrganization request = new Request.CreateOrganization( "ox-supermarket", // 新規組織コード "oxスーパー", // 新規組織名 - new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 加盟店組織で有効にするマネーIDの配列 - "GLPQCeC7jS@6W3D.com", // 発行体担当者メールアドレス - "ftZcdyglmN@XEpp.com" // 新規組織担当者メールアドレス + new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 加盟店組織で有効にするマネーIDの配列 + "u47KITpvwb@o61t.com", // 発行体担当者メールアドレス + "0xPHohZAfX@S5WA.com" // 新規組織担当者メールアドレス ) { BankName = "XYZ銀行", // 銀行名 BankCode = "1234", // 銀行金融機関コード diff --git a/docs/private_money.md b/docs/private_money.md index 22904d4..8279870 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -77,8 +77,8 @@ Response.PaginatedPrivateMoneys response = await request.Send(client); Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - From = "2020-09-01T07:38:37.000000Z", // 開始日時(toと同時に指定する必要有) - To = "2024-03-21T02:25:01.000000Z", // 終了日時(fromと同時に指定する必要有) + From = "2021-06-11T14:25:36.000000Z", // 開始日時(toと同時に指定する必要有) + To = "2023-07-23T08:58:59.000000Z", // 終了日時(fromと同時に指定する必要有) Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取引数 }; @@ -162,8 +162,8 @@ Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Sen Request.GetPrivateMoneySummary request = new Request.GetPrivateMoneySummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { - From = "2023-10-27T19:24:09.000000Z", // 開始日時 - To = "2020-01-28T06:46:15.000000Z", // 終了日時 + From = "2021-03-17T01:31:19.000000Z", // 開始日時 + To = "2022-09-13T03:45:44.000000Z", // 終了日時 }; Response.PrivateMoneySummary response = await request.Send(client); ``` diff --git a/docs/responses.md b/docs/responses.md index 0191f14..4d6c794 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -1,21 +1,4 @@ # Responses - -## AdminUserWithShopsAndPrivateMoneys -* `Id (string)`: -* `Role (string)`: -* `Email (string)`: -* `Name (string)`: -* `IsActive (bool)`: -* `Organization (Organization)`: -* `Shops (User[])`: -* `PrivateMoneys (PrivateMoney[])`: - -`organization`は [Organization](#organization) オブジェクトを返します。 - -`shops`は [User](#user) オブジェクトの配列を返します。 - -`private-moneys`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 - ## AccountWithUser * `Id (string)`: @@ -290,6 +273,9 @@ `rows`は [Bank](#bank) オブジェクトの配列を返します。 + +## BankDeleted + ## PaginatedTransaction * `Rows (Transaction[])`: @@ -310,6 +296,16 @@ `rows`は [Transaction](#transaction) オブジェクトの配列を返します。 + +## PaginatedBillTransaction +* `Rows (BillTransaction[])`: +* `PerPage (int)`: +* `Count (int)`: +* `NextPageCursorId (string)`: +* `PrevPageCursorId (string)`: + +`rows`は [BillTransaction](#bill-transaction) オブジェクトの配列を返します。 + ## PaginatedTransfers * `Rows (Transfer[])`: @@ -505,6 +501,23 @@ `pagination`は [Pagination](#pagination) オブジェクトを返します。 + +## SevenBankATMSession +* `QrInfo (string)`: +* `Account (AccountDetail)`: +* `Amount (int)`: +* `Transaction (Transaction)`: +* `SevenBankCustomerNumber (string)`: +* `AtmId (string)`: +* `AudiId (string)`: +* `IssuerCode (string)`: +* `IssuerName (string)`: +* `MoneyName (string)`: + +`account`は [AccountDetail](#account-detail) オブジェクトを返します。 + +`transaction`は [Transaction](#transaction) オブジェクトを返します。 + ## PrivateMoney * `Id (string)`: マネーID @@ -657,6 +670,15 @@ `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + +## BillTransaction +* `Transaction (Transaction)`: +* `Bill (Bill)`: + +`transaction`は [Transaction](#transaction) オブジェクトを返します。 + +`bill`は [Bill](#bill) オブジェクトを返します。 + ## AccountBalance * `ExpiresAt (string)`: diff --git a/docs/seven_bank_atm_session.md b/docs/seven_bank_atm_session.md new file mode 100644 index 0000000..7bc50a6 --- /dev/null +++ b/docs/seven_bank_atm_session.md @@ -0,0 +1,41 @@ +# SevenBankATMSession +セブンATMチャージの取引内容を照会するAPIを提供しています。 + + + +## GetSevenBankATMSession: セブン銀行ATMセッションの取得 +セブン銀行ATMセッションを取得します + +```csharp +Request.GetSevenBankAtmSession request = new Request.GetSevenBankAtmSession( + "x" // QRコードの情報 +); +Response.SevenBankATMSession response = await request.Send(client); +``` + + + +### Parameters +**`qr_info`** + + +取得するセブン銀行ATMチャージのQRコードの情報です。 + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[SevenBankATMSession](./responses.md#seven-bank-atm-session) +を返します + + + +--- + + + diff --git a/docs/shop.md b/docs/shop.md index 475a11e..06573a1 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 = "5801175", // 店舗の郵便番号 + PostalCode = "629-6586", // 店舗の郵便番号 Address = "東京都港区芝...", // 店舗の住所 - Tel = "016-580-990", // 店舗の電話番号 - Email = "Sm0jLeVc0I@IOPv.com", // 店舗のメールアドレス - ExternalId = "o", // 店舗の外部ID + Tel = "030-5979-102", // 店舗の電話番号 + Email = "KqhRSKyv4a@eUNi.com", // 店舗のメールアドレス + ExternalId = "5kIXisF2lvLdWFAH9CECfmZyv", // 店舗の外部ID WithDisabled = false, // 無効な店舗を含める Page = 1, // ページ番号 PerPage = 50, // 1ページ分の取引数 @@ -176,8 +176,9 @@ Response.PaginatedShops response = await request.Send(client); |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|organization_not_found||Organization not found| +|503|temporarily_unavailable||Service Unavailable| @@ -192,11 +193,11 @@ Response.PaginatedShops response = await request.Send(client); Request.CreateShop request = new Request.CreateShop( "oxスーパー三田店" // 店舗名 ) { - ShopPostalCode = "3332833", // 店舗の郵便番号 + ShopPostalCode = "708-1722", // 店舗の郵便番号 ShopAddress = "東京都港区芝...", // 店舗の住所 - ShopTel = "069-584-5953", // 店舗の電話番号 - ShopEmail = "sXeAgeVmz0@XdBq.com", // 店舗のメールアドレス - ShopExternalId = "vz2LZqSb1Cr9Gv", // 店舗の外部ID + ShopTel = "09532-409", // 店舗の電話番号 + ShopEmail = "EBsOM5mHn7@CA1S.com", // 店舗のメールアドレス + ShopExternalId = "M3xNEFCgQheyCbSnP7P0SqnjQ", // 店舗の外部ID OrganizationCode = "ox-supermarket", // 組織コード }; Response.User response = await request.Send(client); @@ -313,14 +314,14 @@ Response.User response = await request.Send(client); Request.CreateShopV2 request = new Request.CreateShopV2( "oxスーパー三田店" // 店舗名 ) { - PostalCode = "841-8626", // 店舗の郵便番号 + PostalCode = "7260579", // 店舗の郵便番号 Address = "東京都港区芝...", // 店舗の住所 - Tel = "07801932450", // 店舗の電話番号 - Email = "nk93ttYPJh@OiPC.com", // 店舗のメールアドレス - ExternalId = "hnxitPJhteZ9v4lYIFrYpnV35p", // 店舗の外部ID + Tel = "00-912-0892", // 店舗の電話番号 + Email = "AdXU9fbl4B@ElEf.com", // 店舗のメールアドレス + ExternalId = "JcTmiRof0lbldCRsSSTgoxqh3a", // 店舗の外部ID OrganizationCode = "ox-supermarket", // 組織コード - PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列 - CanTopupPrivateMoneyIds = new string[]{}, // 店舗でチャージ可能にするマネー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の配列 }; Response.ShopWithAccounts response = await request.Send(client); ``` @@ -518,14 +519,14 @@ Request.UpdateShop request = new Request.UpdateShop( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 店舗ユーザーID ) { Name = "oxスーパー三田店", // 店舗名 - PostalCode = "3202721", // 店舗の郵便番号 + PostalCode = "394-8815", // 店舗の郵便番号 Address = "東京都港区芝...", // 店舗の住所 - Tel = "089-0671-673", // 店舗の電話番号 - Email = "r99tmpLoTF@QeHI.com", // 店舗のメールアドレス - ExternalId = "sIBBDhi4oQ1t1s3zE", // 店舗の外部ID - PrivateMoneyIds = new string[]{"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の配列 - Status = "active", // 店舗の状態 + Tel = "03708-3473", // 店舗の電話番号 + Email = "gaH3XPjunt@8Ngf.com", // 店舗のメールアドレス + ExternalId = "fostplBJ13qPcX", // 店舗の外部ID + PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列 + CanTopupPrivateMoneyIds = new string[]{}, // 店舗でチャージ可能にするマネーIDの配列 + Status = "disabled", // 店舗の状態 }; Response.ShopWithAccounts response = await request.Send(client); ``` diff --git a/docs/transaction.md b/docs/transaction.md index 030ac70..17b05cf 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -6,7 +6,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```csharp Request.GetCpmToken request = new Request.GetCpmToken( - "2Vt3kMgTzAxm3nuCtm4tM4" // CPMトークン + "tXGZ9lfp9TwgYPOmismihX" // CPMトークン ); Response.CpmToken response = await request.Send(client); ``` @@ -44,18 +44,18 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```csharp Request.ListTransactions request = new Request.ListTransactions() { - From = "2020-03-02T10:23:33.000000Z", // 開始日時 - To = "2022-04-21T10:38:47.000000Z", // 終了日時 + From = "2023-02-05T17:24:39.000000Z", // 開始日時 + To = "2024-03-11T23:36:57.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 = "TMWwQQegA", // 取引ID + TransactionId = "dh", // 取引ID OrganizationCode = "pocketchange", // 組織コード PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - IsModified = true, // キャンセルフラグ + IsModified = false, // キャンセルフラグ Types = new string[]{"topup", "payment"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment Description = "店頭QRコードによる支払い", // 取引説明文 }; @@ -295,6 +295,7 @@ Response.PaginatedTransaction response = await request.Send(client); |status|type|ja|en| |---|---|---|---| |403|NULL|NULL|NULL| +|503|temporarily_unavailable||Service Unavailable| @@ -311,10 +312,10 @@ Request.CreateTransaction request = new Request.CreateTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ) { - MoneyAmount = 6249, - PointAmount = 9585, - PointExpiresAt = "2023-09-27T06:12:39.000000Z", // ポイント有効期限 - Description = "5Gh3EedIVkoAN4R", + MoneyAmount = 134, + PointAmount = 9403, + PointExpiresAt = "2020-12-01T09:26:04.000000Z", // ポイント有効期限 + Description = "6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7", }; Response.TransactionDetail response = await request.Send(client); ``` @@ -415,11 +416,11 @@ Response.TransactionDetail response = await request.Send(client); |400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| |400|invalid_parameters|項目が無効です|Invalid parameters| |403|NULL|NULL|NULL| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|customer_user_not_found||The customer user is not found| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -439,7 +440,7 @@ Response.TransactionDetail response = await request.Send(client); |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -447,6 +448,7 @@ Response.TransactionDetail response = await request.Send(client); |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|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| |503|temporarily_unavailable||Service Unavailable| @@ -467,11 +469,11 @@ Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID CustomerName = "太郎", // エンドユーザー名 Description = "店頭QRコードによる支払い", // 取引説明文 - TransactionId = "6PB", // 取引ID - IsModified = true, // キャンセルフラグ + TransactionId = "7CQ6mo", // 取引ID + IsModified = false, // キャンセルフラグ Types = new string[]{"topup", "payment"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - From = "2024-03-12T09:24:55.000000Z", // 開始日時 - To = "2020-05-09T22:11:54.000000Z", // 終了日時 + From = "2020-07-30T15:17:39.000000Z", // 開始日時 + To = "2020-03-02T11:01:28.000000Z", // 終了日時 NextPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransactionのID PrevPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransactionのID PerPage = 50, // 1ページ分の取引数 @@ -740,6 +742,268 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + + +## ListBillTransactions: 支払い取引履歴を取得する +支払いによって発生した取引を支払いのデータとともに一覧で返します。 + +```csharp +Request.ListBillTransactions request = new Request.ListBillTransactions() { + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + OrganizationCode = "pocketchange", // 組織コード + ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + CustomerName = "太郎", // エンドユーザー名 + TerminalId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザー端末ID + Description = "店頭QRコードによる支払い", // 取引説明文 + TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID + BillId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いQRコードのID + IsModified = false, // キャンセルフラグ + From = "2021-06-07T17:24:57.000000Z", // 開始日時 + To = "2020-07-02T10:00:20.000000Z", // 終了日時 + NextPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransactionのID + PrevPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransactionのID + PerPage = 50, // 1ページ分の取引数 +}; +Response.PaginatedBillTransaction response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +指定したマネーでの取引が一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`organization_code`** + + +組織コードです。 + +フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`shop_id`** + + +店舗IDです。 + +フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`terminal_id`** + + +エンドユーザーの端末IDです。 +フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + +取引を指定の取引説明文でフィルターします。 + +取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`bill_id`** + + +支払いQRコードのIDです。 + +フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_modified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`next_page_cursor_id`** + + +次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 +本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 +UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + +next_page_cursor_idのtransaction自体は次のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`prev_page_cursor_id`** + + +前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 + +本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 +UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + +prev_page_cursor_idのtransaction自体は前のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 1000 +} +``` + + + +成功したときは +[PaginatedBillTransaction](./responses.md#paginated-bill-transaction) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| @@ -757,9 +1021,9 @@ Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ) { BearPointShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント支払時の負担店舗ID - MoneyAmount = 9307, // マネー額 - PointAmount = 2855, // ポイント額 - PointExpiresAt = "2020-03-08T01:49:37.000000Z", // ポイント有効期限 + MoneyAmount = 1789, // マネー額 + PointAmount = 4484, // ポイント額 + PointExpiresAt = "2023-01-14T15:33:35.000000Z", // ポイント有効期限 Description = "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 Metadata = "{\"key\":\"value\"}", // 取引メタデータ RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID @@ -905,6 +1169,7 @@ Response.TransactionDetail response = await request.Send(client); 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -925,9 +1190,8 @@ Response.TransactionDetail response = await request.Send(client); |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|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -953,9 +1217,12 @@ Response.TransactionDetail response = await request.Send(client); |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| -|422|private_money_not_found||Private money not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -974,12 +1241,13 @@ Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 4544 // 支払い額 + 7889 // 支払い額 ) { Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 Metadata = "{\"key\":\"value\"}", // 取引メタデータ - Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ + Products = 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 = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + Strategy = "point-preferred", // 支払い時の残高消費方式 }; Response.TransactionDetail response = await request.Send(client); ``` @@ -1102,6 +1370,7 @@ Response.TransactionDetail response = await request.Send(client); 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1110,6 +1379,27 @@ Response.TransactionDetail response = await request.Send(client); } ``` +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + 成功したときは @@ -1119,11 +1409,9 @@ Response.TransactionDetail response = await request.Send(client); ### 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|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -1149,9 +1437,12 @@ Response.TransactionDetail response = await request.Send(client); |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| -|422|private_money_not_found||Private money not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |503|temporarily_unavailable||Service Unavailable| @@ -1167,14 +1458,15 @@ CPMトークンに設定されたスコープの取引を作ることができ ```csharp Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "bgbkQVRY8MuhwDykulFo5m", // CPMトークン + "6jQwMdVQzET3CTZR3naadm", // CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - 8996.0 // 取引金額 + 7535.0 // 取引金額 ) { Description = "たい焼き(小倉)", // 取引説明文 Metadata = "{\"key\":\"value\"}", // 店舗側メタデータ - Products = 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","{}"}}}, // 商品情報データ + Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + Strategy = "point-preferred", // 支払い時の残高消費方式 }; Response.TransactionDetail response = await request.Send(client); ``` @@ -1283,6 +1575,7 @@ Response.TransactionDetail response = await request.Send(client); 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1291,6 +1584,27 @@ Response.TransactionDetail response = await request.Send(client); } ``` +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + 成功したときは @@ -1300,17 +1614,15 @@ Response.TransactionDetail response = await request.Send(client); ### Error Responses |status|type|ja|en| |---|---|---|---| -|400|invalid_parameters|項目が無効です|Invalid parameters| |403|cpm_unacceptable_amount|このCPMトークンに対して許可されていない金額です。|The amount is unacceptable for the CPM token| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| -|422|private_money_not_found||Private money not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|cpm_token_already_proceed|このCPMトークンは既に処理されています。|The CPM token is already proceed| |422|cpm_token_already_expired|このCPMトークンは既に失効しています。|The CPM token is already expired| |422|cpm_token_not_found|CPMトークンが見つかりませんでした。|The CPM token is not found.| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -1330,7 +1642,7 @@ Response.TransactionDetail response = await request.Send(client); |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -1338,6 +1650,9 @@ Response.TransactionDetail response = await request.Send(client); |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1356,7 +1671,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 - 7876.0 // 送金額 + 1615.0 // 送金額 ) { Metadata = "{\"key\":\"value\"}", // 取引メタデータ Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 @@ -1460,6 +1775,7 @@ Response.TransactionDetail response = await request.Send(client); 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1477,13 +1793,11 @@ Response.TransactionDetail response = await request.Send(client); ### Error Responses |status|type|ja|en| |---|---|---|---| -|400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| |422|customer_user_not_found||The customer user is not found| -|422|private_money_not_found||Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|private_money_not_found|マネーが見つかりません|Private money not found| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| |422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| @@ -1503,7 +1817,7 @@ Response.TransactionDetail response = await request.Send(client); |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_closed|アカウントは退会しています|The account is closed| |422|customer_account_not_found||The customer account is not found| -|422|shop_account_not_found||The shop account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| @@ -1511,6 +1825,9 @@ Response.TransactionDetail response = await request.Send(client); |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1526,9 +1843,9 @@ Request.CreateExchangeTransaction request = new Request.CreateExchangeTransactio "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 9419 + 2693 ) { - Description = "V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxO", + Description = "37wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB", RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID }; Response.TransactionDetail response = await request.Send(client); @@ -1600,6 +1917,7 @@ Response.TransactionDetail response = await request.Send(client); 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 ```json { @@ -1617,8 +1935,6 @@ Response.TransactionDetail response = await request.Send(client); ### 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|同じマネーとの交換はできません|| @@ -1628,6 +1944,7 @@ Response.TransactionDetail response = await request.Send(client); |422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| |422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| |422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| @@ -1637,6 +1954,7 @@ Response.TransactionDetail response = await request.Send(client); |422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| |422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| |422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| |422|account_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.| @@ -1649,6 +1967,7 @@ Response.TransactionDetail response = await request.Send(client); |422|account_suspended|アカウントは停止されています|The account is suspended| |422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| |422|account_closed|アカウントは退会しています|The account is closed| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| |503|temporarily_unavailable||Service Unavailable| @@ -1710,7 +2029,7 @@ Request.RefundTransaction request = new Request.RefundTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 取引ID ) { Description = "返品対応のため", // 取引履歴に表示する返金事由 - ReturningPointExpiresAt = "2021-02-10T20:54:53.000000Z", // 返却ポイントの有効期限 + ReturningPointExpiresAt = "2023-08-16T16:39:07.000000Z", // 返却ポイントの有効期限 }; Response.TransactionDetail response = await request.Send(client); ``` @@ -1979,4 +2298,57 @@ Response.UserStatsOperation response = await request.Send(client); --- + +## TerminateUserStats: RequestUserStatsのタスクを強制終了する +RequestUserStatsによるファイル生成のタスクを強制終了するためのAPIです。 +RequestUserStatsのレスポンス中の `operation_id` をキーにして強制終了リクエストを送ります。 +既に集計タスクが終了している場合は何も行いません。 +発行体に対して結果通知用のWebhook URLが設定されている場合、強制終了成功時には以下のような内容のPOSTリクエストが送られます。 + +- task: "process_user_stats_operation" +- operation_id: 強制終了対象のタスクID +- status: "terminated" + +```csharp +Request.TerminateUserStats request = new Request.TerminateUserStats( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 集計タスクID +); +Response.UserStatsOperation response = await request.Send(client); +``` + + + +### Parameters +**`operation_id`** + + +強制終了対象の集計タスクIDです。 +必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserStatsOperation](./responses.md#user-stats-operation) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_stats_operation_already_done|指定されたIDの集計処理タスクは既に完了しています|The specified user stats operation is already done| +|422|user_stats_operation_not_found|指定されたIDの集計処理タスクが見つかりません|User stats task not found for the operation ID| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + diff --git a/docs/transfer.md b/docs/transfer.md index f1d8e5f..9fdb23d 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-04T16:34:17.000000Z", // 集計期間の開始時刻 - To = "2021-03-23T02:43:19.000000Z", // 集計期間の終了時刻 + From = "2020-11-02T03:49:28.000000Z", // 集計期間の開始時刻 + To = "2020-05-16T18:29:14.000000Z", // 集計期間の終了時刻 TransferTypes = new string[]{"topup", "payment"}, // 取引明細種別 (複数指定可) }; Response.AccountTransferSummary response = await request.Send(client); @@ -124,19 +124,19 @@ Response.AccountTransferSummary response = await request.Send(client); ```csharp Request.ListTransfers request = new Request.ListTransfers() { - From = "2024-03-12T16:53:53.000000Z", - To = "2022-04-14T08:54:52.000000Z", - Page = 6738, - PerPage = 8532, + From = "2023-05-06T00:13:31.000000Z", + To = "2021-03-26T13:47:58.000000Z", + Page = 4874, + PerPage = 6887, ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - ShopName = "aMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX", + ShopName = "WzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJkkZMMdEANfWVavAje3PJg4zkA5dwRQrAEDCEBzCTk0pNAGkxkj3y6QjLE9oTv9S3Zg4O5dK9OBTn3gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixe", CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - CustomerName = "YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1G", + CustomerName = "rwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcUvvHD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS", TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - IsModified = true, - TransactionTypes = new string[]{"exchange"}, - TransferTypes = new string[]{"expire", "topup"}, // 取引明細の種類でフィルターします。 + IsModified = false, + TransactionTypes = new string[]{"payment", "exchange"}, + TransferTypes = new string[]{"exchange", "cashback", "expire", "campaign", "topup", "payment", "transfer"}, // 取引明細の種類でフィルターします。 Description = "店頭QRコードによる支払い", // 取引詳細説明文 }; Response.PaginatedTransfers response = await request.Send(client); @@ -357,6 +357,7 @@ Response.PaginatedTransfers response = await request.Send(client); |status|type|ja|en| |---|---|---|---| |403|NULL|NULL|NULL| +|503|temporarily_unavailable||Service Unavailable| @@ -369,20 +370,20 @@ Response.PaginatedTransfers response = await request.Send(client); ```csharp Request.ListTransfersV2 request = new Request.ListTransfersV2() { ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - ShopName = "vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleO", // 店舗名 + ShopName = "DiVxdn1z0TuA7dLQ8GnuuGnm3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVC", // 店舗名 CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID - CustomerName = "9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTM", // エンドユーザー名 + CustomerName = "Kp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxC", // エンドユーザー名 TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID IsModified = true, // キャンセルフラグ - TransactionTypes = new string[]{"expire", "topup", "transfer", "exchange", "payment"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + TransactionTypes = new string[]{"payment", "topup", "cashback", "exchange"}, // 取引種別 (複数指定可)、チャージ=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"}, // 取引明細種別 (複数指定可) + TransferTypes = new string[]{"cashback"}, // 取引明細種別 (複数指定可) Description = "店頭QRコードによる支払い", // 取引詳細説明文 - From = "2023-04-20T11:19:57.000000Z", // 開始日時 - To = "2023-07-26T09:32:54.000000Z", // 終了日時 + From = "2023-05-13T00:11:05.000000Z", // 開始日時 + To = "2022-05-27T13:59:30.000000Z", // 終了日時 }; Response.PaginatedTransfersV2 response = await request.Send(client); ``` @@ -681,6 +682,7 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|503|temporarily_unavailable||Service Unavailable| diff --git a/docs/user.md b/docs/user.md index 98384e9..aa9b25e 100644 --- a/docs/user.md +++ b/docs/user.md @@ -1,30 +1,3 @@ # User - -## GetUser - -```csharp -Request.GetUser request = new Request.GetUser(); -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 f1bcf28..e1a38b1 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -55,7 +55,7 @@ Response.UserDevice response = await request.Send(client); |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|user_not_found||The user is not found| +|422|user_not_found|ユーザーが見つかりません|The user is not found| diff --git a/docs/webhook.md b/docs/webhook.md index 0bbf894..c9cf009 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -67,7 +67,7 @@ Response.PaginatedOrganizationWorkerTaskWebhook response = await request.Send(cl ```csharp Request.CreateWebhook request = new Request.CreateWebhook( "bulk_shops", // タスク名 - "FE45d3P2" // URL + "GgnfI" // URL ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); ``` @@ -163,8 +163,8 @@ Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Request.UpdateWebhook request = new Request.UpdateWebhook( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID ) { - Url = "Pz", // URL - IsActive = false, // 有効/無効 + Url = "tlICoQDp", // URL + IsActive = true, // 有効/無効 Task = "bulk_shops", // タスク名 }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); diff --git a/partner.yaml b/partner.yaml index 2435b32..8a48e22 100644 --- a/partner.yaml +++ b/partner.yaml @@ -7,6 +7,7 @@ openapi: '3.0.1' info: description: >- Partner APIs + title: Partner APIs version: 24.3.26 @@ -57,6 +58,9 @@ tags: - name: BankPay description: | BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + - name: SevenBankATMSession + description: | + セブンATMチャージの取引内容を照会するAPIを提供しています。 components: schemas: @@ -692,6 +696,13 @@ components: type: array items: $ref: '#/components/schemas/Transfer' + BillTransaction: + x-pokepay-schema-type: "response" + properties: + transaction: + $ref: '#/components/schemas/Transaction' + bill: + $ref: '#/components/schemas/Bill' ShopWithMetadata: x-pokepay-schema-type: "response" properties: @@ -1279,6 +1290,10 @@ components: type: integer minimum: 0 + BankDeleted: + x-pokepay-schema-type: "response" + properties: {} + PaginatedTransaction: x-pokepay-schema-type: "response" properties: @@ -1318,6 +1333,32 @@ components: 前ページ取得するためのID。 実際にはrows先頭 + PaginatedBillTransaction: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/BillTransaction' + per_page: + type: integer + count: + type: integer + next_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 次ページ取得するためのID。次ページ取得するためのID。 + 実際にはrows末尾 + prev_page_cursor_id: + type: string + format: uuid + nullable: true + description: |- + 前ページ取得するためのID。 + + 実際にはrows先頭 PaginatedTransfers: x-pokepay-schema-type: "response" properties: @@ -1774,6 +1815,39 @@ components: pagination: $ref: '#/components/schemas/Pagination' + SevenBankATMSession: + x-pokepay-schema-type: "response" + properties: + qr_info: + type: string + maxLength: 23 + account: + $ref: '#/components/schemas/AccountDetail' + amount: + type: integer + transaction: + $ref: '#/components/schemas/Transaction' + nullable: true + seven_bank_customer_number: + type: string + atm_id: + type: string + maxLength: 7 + nullable: true + audi_id: + type: string + maxLength: 4 + nullable: true + issuer_code: + type: string + nullable: true + issuer_name: + type: string + nullable: true + money_name: + type: string + nullable: true + BadRequest: x-pokepay-schema-type: "response" oneOf: @@ -2856,7 +2930,9 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: | + 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 private_money_id: type: string format: uuid @@ -2885,6 +2961,38 @@ paths: $ref: '#/components/responses/UnprocessableEntity' /bills/{bill_id}: + get: + tags: + - Bill + summary: '支払いQRコードの表示' + description: 支払いQRコードの内容を表示します。 + x-pokepay-operator-name: "GetBill" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: bill_id + required: true + schema: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 表示する支払いQRコードのIDです。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Bill' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' patch: tags: - Bill @@ -2914,7 +3022,7 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 description: type: string maxLength: 200 @@ -3713,6 +3821,164 @@ paths: $ref: '#/components/schemas/PaginatedTransactionV2' '400': $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' + /transactions/bill: + get: + tags: + - Transaction + summary: '支払い取引履歴を取得する' + description: 支払いによって発生した取引を支払いのデータとともに一覧で返します。 + x-pokepay-operator-name: "ListBillTransactions" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: |- + マネーIDです。 + + 指定したマネーでの取引が一覧に表示されます。 + organization_code: + type: string + pattern: '^[a-zA-Z0-9-]*$' + maxLength: 32 + title: '組織コード' + description: |- + 組織コードです。 + + フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 + example: 'pocketchange' + shop_id: + type: string + format: uuid + title: '店舗ID' + description: |- + 店舗IDです。 + + フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーID' + description: |- + エンドユーザーIDです。 + + フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + customer_name: + type: string + maxLength: 256 + title: 'エンドユーザー名' + description: |- + エンドユーザー名です。 + + フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + example: 太郎 + terminal_id: + type: string + format: uuid + title: 'エンドユーザー端末ID' + description: |- + エンドユーザーの端末IDです。 + フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + description: + type: string + maxLength: 200 + title: '取引説明文' + description: |- + 取引を指定の取引説明文でフィルターします。 + + 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + example: 店頭QRコードによる支払い + transaction_id: + type: string + format: uuid + title: '取引ID' + description: |- + 取引IDです。 + + フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + bill_id: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 支払いQRコードのIDです。 + + フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 + is_modified: + type: boolean + title: 'キャンセルフラグ' + description: |- + キャンセルフラグです。 + + これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 + デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + from: + type: string + format: date-time + title: '開始日時' + description: |- + 抽出期間の開始日時です。 + + フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + to: + type: string + format: date-time + title: '終了日時' + description: |- + 抽出期間の終了日時です。 + + フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + next_page_cursor_id: + type: string + format: uuid + title: '次ページへ遷移する際に起点となるtransactionのID' + description: |- + 次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 + 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 + UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + + next_page_cursor_idのtransaction自体は次のページには含まれません。 + prev_page_cursor_id: + type: string + format: uuid + title: '前ページへ遷移する際に起点となるtransactionのID' + description: |- + 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 + + 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 + UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + + prev_page_cursor_idのtransaction自体は前のページには含まれません。 + per_page: + type: integer + minimum: 1 + maximum: 1000 + default: 50 + title: '1ページ分の取引数' + description: |- + 1ページ分の取引数です。 + + デフォルト値は50です。 + example: 50 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBillTransaction' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/Forbidden' /transactions/topup: post: tags: @@ -3814,6 +4080,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -3872,6 +4139,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -3968,7 +4236,105 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transactions/payment/bill: + post: + tags: + - Bill + summary: '支払いQRコードを読み取ることで支払いをする' + description: | + 通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 + + エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 + 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + x-pokepay-operator-name: "CreatePaymentTransactionWithBill" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["bill_id", "customer_id"] + properties: + bill_id: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 支払いQRコードのIDです。 + + QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + 支払いを行うエンドユーザーを指定します。 + metadata: + type: string + format: json + title: '取引メタデータ' + description: |- + 取引作成時に指定されるメタデータです。 + + 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + example: |- + {"key":"value"} + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + + 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + + リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + default: 'point-preferred' + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' responses: '200': description: OK @@ -3980,6 +4346,8 @@ paths: $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' /transactions/cpm: @@ -4054,7 +4422,21 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' responses: '200': description: OK @@ -4125,6 +4507,88 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + + /transactions/cashtray: + post: + tags: + - Cashtray + summary: 'CashtrayQRコードを読み取ることで取引する' + description: | + エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 + + 通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 + もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 + + x-pokepay-operator-name: "CreateTransactionWithCashtray" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["cashtray_id", "customer_id"] + properties: + cashtray_id: + type: string + format: uuid + title: 'Cashtray用QRコードのID' + description: |- + Cashtray用QRコードのIDです。 + + QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 + + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + strategy: + type: string + enum: [point-preferred, money-only] + default: 'point-preferred' + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + チャージの場合は無効です。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + + 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 + 指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + + リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。 + もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transactions/transfer: post: tags: @@ -4203,6 +4667,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -4255,6 +4720,7 @@ paths: 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' responses: '200': @@ -4549,6 +5015,14 @@ paths: リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 example: 9dbfd997-b948-40d3-a3bf-6bc1a01368d2 + done_at: + type: string + format: date-time + title: 'ポケペイ外部取引の実施時間' + description: |- + ポケペイ外部取引が実際に起こった時間です。 + 時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 + デフォルトではCreateExternalTransactionがリクエストされた時間になります。 responses: '200': description: OK @@ -6086,6 +6560,8 @@ paths: application/json: schema: required: ["name", "private_money_id", "starts_at", "ends_at","priority", "event"] + x-pokepay-conditional-parameters: + xor: [applicable_shop_ids, blacklisted_shop_ids] properties: name: title: 'キャンペーン名' @@ -6358,6 +6834,13 @@ paths: description: |- キャンペーン対象の商品を複数個購入したときに、個数に応じてポイント付与額を増やすかどうかのフラグです。 デフォルト値は false です。 + is_floor_after_multiply: + type: boolean + title: '小数点以下切り捨てを個数を掛けた後に行うかどうか' + description: |- + is_multiply_by_countが指定されたとき、デフォルトでは商品ごとに付与ポイントが計算された後、少数点以下切り捨てが行なわれ、その後商品個数が掛けられます。 + このフラグを有効にすると、商品ごとに付与ポイントが計算された後、商品個数が掛けられ、その後に少数点以下切り捨てが行なわれるようになります。 + デフォルト値は false です。 starts_at: type: string format: date-time @@ -6520,6 +7003,16 @@ paths: description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + blacklisted_shop_ids: + type: array + items: + type: string + format: uuid + title: 'キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)' + description: |- + キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 + このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 + blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 minimum_number_of_products: type: integer minimum: 1 @@ -6893,12 +7386,14 @@ paths: デフォルトでは未指定(フィルターなし)です。 page: type: integer + default: 1 minimum: 1 title: 'ページ番号' description: 取得したいページ番号です。 example: 1 per_page: type: integer + default: 20 minimum: 1 maximum: 50 title: '1ページ分の取得数' @@ -6976,6 +7471,8 @@ paths: content: application/json: schema: + x-pokepay-conditional-parameters: + xor: [applicable_shop_ids, blacklisted_shop_ids] properties: name: title: 'キャンペーン名' @@ -7238,6 +7735,13 @@ paths: description: |- キャンペーン対象の商品を複数個購入したときに、個数に応じてポイント付与額を増やすかどうかのフラグです。 デフォルト値は false です。 + is_floor_after_multiply: + type: boolean + title: '小数点以下切り捨てを個数を掛けた後に行うかどうか' + description: |- + is_multiply_by_countが指定されたとき、デフォルトでは商品ごとに付与ポイントが計算された後、少数点以下切り捨てが行なわれ、その後商品個数が掛けられます。 + このフラグを有効にすると、商品ごとに付与ポイントが計算された後、商品個数が掛けられ、その後に少数点以下切り捨てが行なわれるようになります。 + デフォルト値は false です。 starts_at: type: string format: date-time @@ -7404,6 +7908,17 @@ paths: description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + blacklisted_shop_ids: + type: array + items: + type: string + format: uuid + nullable: true + title: 'キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)' + description: |- + キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 + このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 + blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 minimum_number_of_products: type: integer minimum: 1 @@ -7789,6 +8304,50 @@ paths: '503': $ref: '#/components/responses/UserStatsOperationServiceUnavailable' + /user-stats/terminate: + post: + tags: + - Transaction + summary: 'RequestUserStatsのタスクを強制終了する' + description: |- + RequestUserStatsによるファイル生成のタスクを強制終了するためのAPIです。 + RequestUserStatsのレスポンス中の `operation_id` をキーにして強制終了リクエストを送ります。 + 既に集計タスクが終了している場合は何も行いません。 + 発行体に対して結果通知用のWebhook URLが設定されている場合、強制終了成功時には以下のような内容のPOSTリクエストが送られます。 + + - task: "process_user_stats_operation" + - operation_id: 強制終了対象のタスクID + - status: "terminated" + x-pokepay-operator-name: "TerminateUserStats" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["operation_id"] + properties: + operation_id: + type: string + format: uuid + title: '集計タスクID' + description: |- + 強制終了対象の集計タスクIDです。 + 必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/UserStatsOperation' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /webhooks: post: x-pokepay-operator-name: "CreateWebhook" @@ -8167,6 +8726,46 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' + delete: + x-pokepay-operator-name: "DeleteBank" + x-pokepay-allow-server-side: true + tags: + - BankPay + summary: 銀行口座の削除 + description: 銀行口座を削除します + parameters: + - in: path + name: user_device_id + required: true + schema: + type: string + format: uuid + title: "デバイスID" + requestBody: + required: true + content: + application/json: + schema: + required: [bank_id] + properties: + bank_id: + type: string + format: uuid + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/BankDeleted' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' /user-devices/{user_device_id}/banks/topup: post: @@ -8203,6 +8802,10 @@ paths: type: string format: uuid title: '銀行ID' + receiver_user_id: + type: string + format: uuid + title: '受け取りユーザーID (デフォルトは自身)' request_id: type: string format: uuid @@ -8552,3 +9155,36 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' + + /seven-bank-atm-sessions/{qr_info}: + get: + x-pokepay-operator-name: "GetSevenBankATMSession" + x-pokepay-allow-server-side: true + tags: + - SevenBankATMSession + summary: セブン銀行ATMセッションの取得 + description: セブン銀行ATMセッションを取得します + parameters: + - in: path + name: qr_info + required: true + schema: + type: string + title: 'QRコードの情報' + description: |- + 取得するセブン銀行ATMチャージのQRコードの情報です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/SevenBankATMSession' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' diff --git a/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs b/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs index 8f66bde..6987ece 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( - "70a2385f-fc45-4f42-a969-9bdc1f34dacf" + "fe44ae73-fc89-4b5b-9bf3-11ba6b9651e9" ); 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 09144a8..ab03a09 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( - "SJ9o4hVc0u6tzaZ3sbYKC", - "bmAlkaNJiO", - "vuRswwQSmiJco3KwhjqpMqyENnnotJKNM2Dv" + "fQBXbwG5FfObbKUS2w", + "JUS6TcMNw", + "fudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f5" ); 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( - "SJ9o4hVc0u6tzaZ3sbYKC", - "bmAlkaNJiO", - "vuRswwQSmiJco3KwhjqpMqyENnnotJKNM2Dv" + "fQBXbwG5FfObbKUS2w", + "JUS6TcMNw", + "fudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f5" ) { - PrivateMoneyId = "703c377c-3ed1-428b-a827-9c18a076be05", + PrivateMoneyId = "63a8a7b4-39bb-4259-89b1-e2ab2db53250", }; 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( - "SJ9o4hVc0u6tzaZ3sbYKC", - "bmAlkaNJiO", - "vuRswwQSmiJco3KwhjqpMqyENnnotJKNM2Dv" + "fQBXbwG5FfObbKUS2w", + "JUS6TcMNw", + "fudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f5" ) { - Description = "u06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLY", - PrivateMoneyId = "db01c22d-6011-4ce4-a38d-62e775c56e73", + Description = "h3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu", + PrivateMoneyId = "74593e12-ee02-4102-b252-fbbc1377d4e1", }; 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 84d750c..f287c07 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( - "920f1f56-382f-4ffb-b1cb-0ded173cc53f" + "a1e90ffa-b03a-4e8f-bc92-8264659cbd0d" ); 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 5f4fa99..0894eb1 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( - "097df35b-8508-4795-88d4-22af0a58a115", - "6c048fe6-2757-43c8-b116-a8f021e802f1", - "lIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0", - "PiIwS5" + "bc3236d1-364e-4d73-b566-8fe156af8d1c", + "6bbb59d3-c97d-4a0e-882d-72995dc59778", + "VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8", + "B2Q" ); 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( - "097df35b-8508-4795-88d4-22af0a58a115", - "6c048fe6-2757-43c8-b116-a8f021e802f1", - "lIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0", - "PiIwS5" + "bc3236d1-364e-4d73-b566-8fe156af8d1c", + "6bbb59d3-c97d-4a0e-882d-72995dc59778", + "VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8", + "B2Q" ) { - Birthdate = "4q66i2nX", + Birthdate = "PQ9Y2Rps", }; 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( - "097df35b-8508-4795-88d4-22af0a58a115", - "6c048fe6-2757-43c8-b116-a8f021e802f1", - "lIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0", - "PiIwS5" + "bc3236d1-364e-4d73-b566-8fe156af8d1c", + "6bbb59d3-c97d-4a0e-882d-72995dc59778", + "VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8", + "B2Q" ) { - Email = "WkvfusE3ma@gRZX.com", - Birthdate = "vYQ", + Email = "j0heI1pcWB@x1T3.com", + Birthdate = "cQ", }; 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 41a210a..0b266fd 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( - "d5ad334e-9489-4b31-b1a5-bde4851ff77f", - "02e1a069-d9a4-4c54-8950-1f19d585254d", - 9384, - "2b325e79-2bfc-47a3-a61c-658a3c1808ec", - "87b8caaf-ed24-47d0-b738-fbd858d3214a" + "03874ca0-ce1a-4d74-9c66-f36298d257ab", + "25d6f295-1f7c-4ad0-8399-4f4044d29f41", + 3541, + "c79a218e-3a62-4766-9145-2754bb8e09df", + "6b985367-ca5f-459d-9d4d-4a9d3d23773c" ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -39,5 +39,26 @@ public async Task CreateBankTopupTransaction0() } } + [Test] + public async Task CreateBankTopupTransaction1() + { + try { + Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction( + "03874ca0-ce1a-4d74-9c66-f36298d257ab", + "25d6f295-1f7c-4ad0-8399-4f4044d29f41", + 3541, + "c79a218e-3a62-4766-9145-2754bb8e09df", + "6b985367-ca5f-459d-9d4d-4a9d3d23773c" + ) { + ReceiverUserId = "c9416c5b-4f83-4805-a48c-2885ea5f9338", + }; + Response.TransactionDetail response = await request.Send(client); + Assert.NotNull(response, "Shouldn't be null at least"); + } catch (HttpRequestException e) { + Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); + Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); + } + } + } } diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateBill.cs index b46152a..68f7587 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( - "9a5387ae-5073-455d-b2b6-f5c50f9210c4", - "f41d19fb-7d26-4d80-abfa-9dc49d937f4c" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb" ); 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( - "9a5387ae-5073-455d-b2b6-f5c50f9210c4", - "f41d19fb-7d26-4d80-abfa-9dc49d937f4c" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb" ) { - Description = "nAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtY", + Description = "wVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj", }; 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( - "9a5387ae-5073-455d-b2b6-f5c50f9210c4", - "f41d19fb-7d26-4d80-abfa-9dc49d937f4c" + "c404cacf-f9c6-4b71-8977-32134cce0494", + "887fe62c-62c0-4078-b276-e6f80b19b3eb" ) { - Amount = 1581.0, - Description = "6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VG", + Amount = 3754.0, + Description = "k3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWw", }; 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 e5d06a7..c98f55c 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCampaign.cs @@ -25,13 +25,15 @@ public async Task CreateCampaign0() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" - ); + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + ApplicableShopIds = new string[]{"29dda31b-b43f-4939-83cd-5730eea9c2af", "8c61658d-d0de-493c-886f-f5cc155a950c", "f88eda2f-f491-4613-9f36-f461f57277bf", "a3fdb404-ea20-44bb-beeb-54b4480d0db4", "05fc9ba6-23d6-4fbd-9d61-6d06d5ed2fe6"}, + }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); } catch (HttpRequestException e) { @@ -45,14 +47,15 @@ public async Task CreateCampaign1() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - BudgetCapsAmount = 2106640707, + ApplicableShopIds = new string[]{"7317227d-aa42-4300-ac6b-f05188d36c45", "63d1f095-52bd-41f4-a1c5-6087b3248d0e", "45f542b8-c4f8-412e-8f62-4f19e93ceb54", "dcd5eb70-bbe4-473f-8530-c925fccedad0", "32bd9f29-8fe9-4849-a42f-b5de593018de"}, + BearPointShopId = "028f3a0f-900c-4877-9d9e-649b8b392453", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -67,15 +70,16 @@ public async Task CreateCampaign2() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1194054230, + ApplicableShopIds = new string[]{"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"}, + Description = "agRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFs", + BearPointShopId = "f1a22544-d9ac-4a32-979a-83ad45f163e2", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -90,16 +94,17 @@ public async Task CreateCampaign3() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 169004663, + ApplicableShopIds = new string[]{"7939dda5-f381-499d-b05a-fd3f8a67b088", "05722098-5966-4839-ab4b-fd0f9b7054ed", "52ff85fa-a9f8-4e16-b2e3-ea533703e2f6", "35841963-fc12-4e73-a766-a070c2e5c332"}, + Status = "enabled", + Description = "NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHsz", + BearPointShopId = "ef7a2d4b-ce61-4b9c-acb8-5455a314714a", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,17 +119,18 @@ public async Task CreateCampaign4() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - DestPrivateMoneyId = "15adc634-3e15-4f07-862c-71388aa40edf", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1717432031, + ApplicableShopIds = new string[]{"6704b400-a16d-4e5f-b6ea-9b89404b4554", "d44effc6-43bb-4755-b077-6ad72abb12fc", "ace5ccc1-8dcd-4505-bff5-66a86e5b1db8", "8be34139-750a-496d-84b0-acbfd026f388", "bbeeaea8-de54-4af0-8abd-c6f849e70e5c", "71a724ae-3c25-43d7-a203-26e3c45d7efa", "e01e42a1-f5d1-4c80-9593-9d79f5dd6c98", "cb700fd7-9461-4256-a7c2-980bc083f061"}, + PointExpiresAt = "2023-02-16T18:18:56.000000Z", + Status = "enabled", + Description = "Wptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzG", + BearPointShopId = "721dbb21-b113-4eef-a015-5b9836a6f82a", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -139,18 +145,19 @@ public async Task CreateCampaign5() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - MaxTotalPointAmount = 4100, - DestPrivateMoneyId = "837e0a0b-3bff-42ca-9d22-59372920f655", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1751213744, + ApplicableShopIds = new string[]{"526c1175-ed40-4075-82dd-da586c6bb3b6", "d47621a1-cdcc-41fd-9cd5-4ad576f04b5f", "9abc1f8c-01a0-4cd5-82c5-f8ce1e9bd1fa", "b844e8bf-fdb9-4d52-a631-380a5aef2538"}, + PointExpiresInDays = 8349, + PointExpiresAt = "2023-03-25T06:39:11.000000Z", + Status = "disabled", + Description = "jTA", + BearPointShopId = "f2b3f3bb-fbd2-4f78-a3cb-d75fe35ee889", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -165,19 +172,20 @@ public async Task CreateCampaign6() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - MaxPointAmount = 3322, - MaxTotalPointAmount = 4499, - DestPrivateMoneyId = "2f8ee6bc-4e0f-4ddb-849e-b33b51788907", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 270788988, + ApplicableShopIds = new string[]{"c943f0e3-1d24-42e2-8809-7c20bbd74a31", "932f18ee-8379-4fcc-8cd6-fd88f39230c9", "160693ad-d6a7-403b-a6a4-0a401901d837", "0e6e46d0-dfca-420f-9ab4-644004a7ab50", "c064f2cb-38db-45c9-9997-f1d251891cc1", "8365136c-a331-485d-9543-7a75dff90ddc", "9ccdf993-e5d1-417b-b9e3-ddd70105ab67", "177cc918-8646-4f6c-9b51-dcf27275bb94"}, + IsExclusive = true, + PointExpiresInDays = 1992, + PointExpiresAt = "2021-11-01T20:38:51.000000Z", + Status = "enabled", + Description = "qVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlH", + BearPointShopId = "d4141dee-d7af-4de4-884d-601b7488f382", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -192,20 +200,21 @@ public async Task CreateCampaign7() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - ExistInEachProductGroups = false, - MaxPointAmount = 5190, - MaxTotalPointAmount = 2679, - DestPrivateMoneyId = "fcbb40dc-fb27-4329-b7e2-c1632b871690", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1923542005, + ApplicableShopIds = new string[]{"60cb620b-9ebf-428b-a01b-e34112a2d964", "7864fc7d-f457-4f0a-99df-e480cce1e83c", "674cf45e-68b9-4512-8890-5beadfc6f007", "9c0a304e-4108-4cc1-accf-6b463b441ed7", "036c135f-2d23-4c44-b0e6-5f320ef05c22", "9f271a38-2f23-4006-8e0c-92a61c68f293", "a0d1e2f2-1a6c-47f7-8c8e-96bba3f614a0", "7e1bc6e2-ae39-451a-ba8c-be2b2eb117d9"}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 7726, + PointExpiresAt = "2021-01-22T09:10:08.000000Z", + Status = "enabled", + Description = "mMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseL", + BearPointShopId = "50b56751-f3fd-4d28-822c-d12473b9a058", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -220,21 +229,22 @@ public async Task CreateCampaign8() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - MinimumNumberForCombinationPurchase = 9136, - ExistInEachProductGroups = false, - MaxPointAmount = 6254, - MaxTotalPointAmount = 6602, - DestPrivateMoneyId = "b4264571-cfe4-4ba7-98ed-69c0cc3e3976", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 76742688, + ApplicableShopIds = new string[]{"d748e101-7a1e-46d5-a985-4bbfa40aed59", "19392e08-56f0-4292-8d5e-e595a37ce39f", "0d6e24d4-0d5b-4680-b6a5-de4e02376599", "10eb3411-5a06-47e7-a6a0-c3e11427f64b", "4808c611-8e7c-4ebf-94b3-80dccedee150", "f1b7616f-976f-4598-b7f0-6d4bced650c1", "866495f8-3725-4e33-8f1f-f56b953adf0f", "f6aa8c24-c966-4d87-8133-13b1fc03b5f7", "effa4c58-a964-4ab0-b49a-d7df9b291ca7", "54506e92-dba7-4a53-9931-d18794111321"}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 9534, + PointExpiresAt = "2024-12-14T16:22:19.000000Z", + Status = "enabled", + Description = "GOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3", + BearPointShopId = "350e8986-7f06-47a0-a18d-6d8890081d42", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -249,22 +259,23 @@ public async Task CreateCampaign9() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - MinimumNumberOfAmount = 725, - MinimumNumberForCombinationPurchase = 5949, - ExistInEachProductGroups = true, - MaxPointAmount = 2617, - MaxTotalPointAmount = 2463, - DestPrivateMoneyId = "f669e4d2-c042-48fa-a399-9d1ab8d5425f", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 2053889393, + ApplicableShopIds = new string[]{"71155acf-7d58-4731-89a8-2820ce88dc67", "32c3ce2d-b3fd-4838-a8bf-14d212d6884f", "47e0de25-39db-4a98-8642-e033140389a5", "9a79642c-a3cd-41de-81aa-8b6c4fcef8ea", "25884148-2147-4658-b289-b1f03bdf1d0a", "8f59bfd6-b09d-4582-acd3-56ebccabd753", "2b65a0e4-c02d-490c-9189-80af9d6f1a42"}, + 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}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 1234, + PointExpiresAt = "2024-05-30T03:38:02.000000Z", + Status = "enabled", + Description = "XHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8ac", + BearPointShopId = "d411de9d-5c28-4459-aae2-519dbc35ca97", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -279,23 +290,24 @@ public async Task CreateCampaign10() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - MinimumNumberOfProducts = 9951, - MinimumNumberOfAmount = 1768, - MinimumNumberForCombinationPurchase = 1963, - ExistInEachProductGroups = false, - MaxPointAmount = 8579, - MaxTotalPointAmount = 2970, - DestPrivateMoneyId = "385cb24b-845a-4510-976f-21551532afab", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1356945300, + ApplicableShopIds = new string[]{"bec20b4b-5a33-4cc9-8138-5cca6836ba82", "dc3ab37d-baac-4826-8059-bad5851924e0", "166ea7c9-32a7-46cc-9ef7-e3c493cd0592", "f494a059-9420-4a08-8811-09d7b38f9671", "1ae547bc-2d39-4d07-a814-28b3c6c0f2be"}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 1785, + PointExpiresAt = "2024-07-20T19:00:30.000000Z", + Status = "disabled", + Description = "OJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUxwAJXNLOLD", + BearPointShopId = "4142d955-316a-4cc1-a7c5-30209692b555", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -310,24 +322,25 @@ public async Task CreateCampaign11() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - ApplicableShopIds = new string[]{"5129d44f-0152-4a3a-8cb9-abffe94f0714", "70b32f38-20a3-46ad-919f-1e3efd957d44", "26219476-e939-405b-940e-5dd7316295b3", "ed4fd8df-5c04-462f-b4ef-92979752f56e", "ecab59f2-f216-4bf5-b5c4-883d7c71ac01", "59bd5f2e-aef8-4e78-9b52-b7a78d10f78d"}, - MinimumNumberOfProducts = 7576, - MinimumNumberOfAmount = 414, - MinimumNumberForCombinationPurchase = 5411, - ExistInEachProductGroups = true, - MaxPointAmount = 7730, - MaxTotalPointAmount = 4655, - DestPrivateMoneyId = "ff86566b-9d96-4f22-bd08-09e97547aa52", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 12818869, + ApplicableShopIds = new string[]{"24b3a15c-5bfc-4acb-95a0-ba938443f8d3", "64c8420d-e647-48ff-ba62-3b10aaa61011", "87e3fdd3-3452-4c9d-aded-739ff76d79fc", "92e28b83-82e4-4581-a3e0-70e145e769a4", "5220ff36-f0b6-4629-88bc-ad7fd4d1d10d", "230302f8-e695-42a6-9663-c6b4bf7af291", "02ffe477-c340-422d-a630-885682fe3699", "23e49ef3-ae63-402f-a9da-0e9cce204771", "6c6db698-aa56-4e0f-9a67-5cb9256f5cc3", "442c10a3-ead9-4c7f-9b2a-938dbfe00434"}, + ApplicableDaysOfWeek = new int[]{2, 3, 0, 4, 5, 1, 1, 5, 1, 1}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 9504, + PointExpiresAt = "2024-12-01T16:29:25.000000Z", + Status = "disabled", + Description = "R0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDT", + BearPointShopId = "ff8cb07a-e37d-4ecd-9c6e-7c4d8ab47a8b", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -342,25 +355,26 @@ public async Task CreateCampaign12() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"675c04d4-00d3-4304-94b4-759f580cb13f", "94d14830-0631-41fb-935e-4280dca915fa"}, - MinimumNumberOfProducts = 8666, - MinimumNumberOfAmount = 3771, - MinimumNumberForCombinationPurchase = 4922, - ExistInEachProductGroups = false, - MaxPointAmount = 336, - MaxTotalPointAmount = 694, - DestPrivateMoneyId = "ca3f3f3b-3821-40e2-adf8-c5bd24c1648b", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1339082278, + ApplicableShopIds = new string[]{"2312bf52-aac4-42f0-8993-450b2a098cb6", "b8d2aa20-0b1e-459b-953e-224498e0005a", "40c59251-7390-4754-aad0-e8e6b17a7ec9", "2732d161-38ea-4025-a3c0-67d397c58799", "ce6e3dc2-71ed-4120-9557-c509a839dcfa", "66ed7f46-ce2e-4f26-a4bd-a402ee16998d", "8c40bde2-0dd6-4be6-a1fe-e1cc82f12735", "c928f0ae-4bbd-49ae-8c54-4b0b9f91bab2"}, + 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"}}}, + ApplicableDaysOfWeek = new int[]{6, 0, 2, 3}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 4755, + PointExpiresAt = "2024-11-06T11:04:30.000000Z", + Status = "disabled", + Description = "A5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7M", + BearPointShopId = "b821bbbd-5877-4d71-b13f-febaab2c88a6", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -375,26 +389,27 @@ public async Task CreateCampaign13() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - ApplicableDaysOfWeek = new int[]{1, 4, 5, 3, 4, 0, 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[]{"8e418c25-5a94-4c92-885b-1c2b1e7339c4", "e36d7965-c721-4549-b2e7-cd33d973ea08", "dcb12cb8-2a3b-4f14-a955-307b2ca06944", "33fe05dc-eb69-40f8-a1de-7f52d65cf7fb", "4e375d82-c05e-4ed1-a09f-6d1f9e88ef95", "d5ed1593-36a1-414f-9960-c3f3028ece1f", "7bcee882-74cf-42f8-8a79-5c0ebe431d28", "a9dba53a-8a69-4c75-8a91-e3a15ce9d506", "2a2ca774-8733-43de-84b0-b36f81ec445f"}, - MinimumNumberOfProducts = 83, - MinimumNumberOfAmount = 6057, - MinimumNumberForCombinationPurchase = 1524, - ExistInEachProductGroups = false, - MaxPointAmount = 1108, - MaxTotalPointAmount = 205, - DestPrivateMoneyId = "ce9c2a23-8611-4b5f-a0e9-9d2620d945a8", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1110367029, + ApplicableShopIds = new string[]{"5e3eea03-b0df-460b-85e0-4d86aff129af"}, + MinimumNumberOfProducts = 5957, + 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"}}}, + ApplicableDaysOfWeek = new int[]{1}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 5769, + PointExpiresAt = "2023-01-30T18:25:11.000000Z", + Status = "enabled", + Description = "6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZViz", + BearPointShopId = "c29b50a4-2201-410f-996e-0b5c85ed83f6", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -409,27 +424,28 @@ public async Task CreateCampaign14() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - 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, 6, 2, 6, 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[]{"79e8a56c-c102-4cfd-8d84-85a9dc1fcc47", "ffd9c668-871b-4acf-8037-b0cdc78f776a", "57527f0a-d005-4fef-8d9f-45ae768bb684", "cc5754a9-a046-48e9-884c-6ca252efadf4", "0a61a44e-620d-4739-99bb-43f1a5f9db79", "fbc3dfb7-0fa0-418d-92de-2ab5ad53f953", "090a782d-dbe5-4c98-ae7b-b36c936e8fb4"}, - MinimumNumberOfProducts = 5099, - MinimumNumberOfAmount = 9330, - MinimumNumberForCombinationPurchase = 6981, - ExistInEachProductGroups = true, - MaxPointAmount = 3054, - MaxTotalPointAmount = 6430, - DestPrivateMoneyId = "68f75742-ff32-4a67-beab-d3a9432d107a", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1196444844, + ApplicableShopIds = new string[]{"26e0c7fd-66da-4290-b665-55b60657858e", "91ab0154-2e55-4057-9ca3-5bc6002ffedf", "3e425120-5657-4e0f-8824-76a5d7359bf9", "7147ebbe-e4a7-401b-b2e2-96352fd22d56", "bab93b2b-a5f3-4eb5-a750-75755c5b6010", "df28fb9e-01f6-450d-90c8-c0954d239b75", "e310c47b-d95d-4885-8135-9148624ca7d7"}, + MinimumNumberOfAmount = 3420, + MinimumNumberOfProducts = 7713, + 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"}}}, + ApplicableDaysOfWeek = new int[]{1, 0}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 1200, + PointExpiresAt = "2020-07-25T03:35:11.000000Z", + Status = "disabled", + Description = "i9wNIa", + BearPointShopId = "0f7a155d-a83b-4fca-afdb-69f988de0249", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -444,28 +460,29 @@ public async Task CreateCampaign15() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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, 6, 1, 4, 6, 3, 1, 0, 2}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"059617f2-4c2c-47d8-8f42-3b2ce6591e1e"}, - MinimumNumberOfProducts = 1631, - MinimumNumberOfAmount = 4298, - MinimumNumberForCombinationPurchase = 2698, - ExistInEachProductGroups = false, - MaxPointAmount = 1249, - MaxTotalPointAmount = 4716, - DestPrivateMoneyId = "79f486cc-f242-4a84-93b5-ad99c15443f6", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 176533366, + ApplicableShopIds = new string[]{"b3867cf0-bbc1-4c97-a0c4-2012a64f83f3", "9dfadc32-18c0-4d42-b45e-7891cc16a5f9", "6ce7b016-6742-4fb1-87a9-0b1192468b5a"}, + MinimumNumberForCombinationPurchase = 3604, + MinimumNumberOfAmount = 3948, + MinimumNumberOfProducts = 2863, + 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"}}}, + ApplicableDaysOfWeek = new int[]{4, 2, 1, 2, 0}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 8499, + PointExpiresAt = "2022-12-17T03:51:33.000000Z", + Status = "disabled", + Description = "W", + BearPointShopId = "93229de8-468c-4350-a4da-1e5366968c76", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -480,29 +497,30 @@ public async Task CreateCampaign16() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",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[]{5, 4, 1, 5, 0, 0, 4, 3, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"fcede07c-e54b-41ca-8c1f-62470f9a1eca", "ad9609cf-e45b-4312-a534-03ef3f1e03b3", "5b8b5e41-bca1-4ab7-afc1-09f37fa5b574", "85afa6b7-7dc7-409e-9e5a-d460a99d384b", "57638b03-cd7d-44cb-bd2e-81869617c865", "a9d5b496-d67c-46f7-8a7d-122105f13f99", "9eec184d-c5d1-4662-9ef0-4903b4deb376", "cc61a1d7-3f64-4b8c-9218-e0db50c9a915"}, - MinimumNumberOfProducts = 447, - MinimumNumberOfAmount = 3815, - MinimumNumberForCombinationPurchase = 4657, - ExistInEachProductGroups = true, - MaxPointAmount = 8597, - MaxTotalPointAmount = 8627, - DestPrivateMoneyId = "c6ff9025-3d2d-414e-a347-9789832241f0", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1952515941, + ApplicableShopIds = new string[]{"7e85a938-ecaa-4b6e-935f-f663e8a7e59b", "5d8c6ed4-b77f-42f6-8aa5-835d585a103d", "2d8c0586-a703-478d-97b4-142c54099029", "7966560d-bd56-480e-8894-367efa2acc91", "b46e35be-45ff-4a0d-98f0-9d19282db25e", "97431ca7-278a-4984-9b97-0855e4df2c2e", "f86359e1-8bea-489b-8c87-896d2878c3be"}, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 4805, + MinimumNumberOfAmount = 5596, + MinimumNumberOfProducts = 8070, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{5, 0, 3, 1}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 6436, + PointExpiresAt = "2020-10-03T06:43:51.000000Z", + Status = "disabled", + Description = "97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5ME", + BearPointShopId = "23b0e6d7-85e8-470b-94e4-37ce93cfd594", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -517,30 +535,31 @@ public async Task CreateCampaign17() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - 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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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[]{6, 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 = 2491, - MaxTotalPointAmount = 3873, - DestPrivateMoneyId = "8c6a32e3-c4b3-4d75-bb8a-4ee765eda1d1", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 402302595, + ApplicableShopIds = new string[]{"81c9cdc6-88a2-45c4-a290-3fd8e0e5bfb7", "492d2c66-0c73-4f73-9530-6cecfb312b23"}, + MaxPointAmount = 2933, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 1774, + MinimumNumberOfAmount = 1158, + MinimumNumberOfProducts = 6493, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{2, 5}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 8953, + PointExpiresAt = "2024-08-22T16:00:45.000000Z", + Status = "enabled", + Description = "slaUL7RrxqbBxY5tCbxb35FzAfmkd", + BearPointShopId = "c31328b3-33f0-481c-a492-06f54401b62c", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -555,31 +574,32 @@ public async Task CreateCampaign18() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - 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}}}, - 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"}}}, - ApplicableDaysOfWeek = new int[]{3, 5, 5, 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[]{"6fe08e15-ebac-4895-945c-4959b09693e2", "549bd16c-01a3-407b-81ee-a54fb64fcf18", "ec7492ca-f155-4d5d-a0f7-767cfaf400a3", "cefaa82b-949c-44b5-b595-af85ca1483ba", "0961668f-9f3a-4f12-9ea4-9159427656de", "c4696d67-3ccc-4a55-aa3a-e095f9385aac"}, - MinimumNumberOfProducts = 6181, - MinimumNumberOfAmount = 7004, - MinimumNumberForCombinationPurchase = 5904, + ApplicableShopIds = new string[]{"9f963ad5-8a27-4442-bd83-9685566a5e27", "6797c496-495b-45eb-b2f1-127beb7729ad", "a9a381f2-ad76-49ca-8a33-9dc7bcb6ca96", "1350bed6-8ebf-4600-b37c-8936a139ea1b", "da01b7c7-b52d-4f3c-b312-e89f46eb335e", "80a2224a-0a38-42d8-a904-1bccda8eaf7e", "5806d75f-c412-4741-b0d6-772e60cb7277", "fa78363a-5f4e-4028-99b6-e3a2cf7a3d7a"}, + MaxTotalPointAmount = 3307, + MaxPointAmount = 7500, ExistInEachProductGroups = false, - MaxPointAmount = 1198, - MaxTotalPointAmount = 5373, - DestPrivateMoneyId = "f8db04c8-cfe3-41da-a97f-b0b5e8afea5f", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 202723754, + MinimumNumberForCombinationPurchase = 198, + MinimumNumberOfAmount = 8329, + MinimumNumberOfProducts = 754, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{2, 3, 4, 1, 2, 3}, + 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"}}}, + 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}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 4476, + PointExpiresAt = "2020-11-06T18:24:52.000000Z", + Status = "disabled", + Description = "s6oOpUnX5paeprW", + BearPointShopId = "27552574-5ad0-4c53-87da-d77272a8f2cc", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -594,32 +614,33 @@ public async Task CreateCampaign19() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - PointExpiresInDays = 2449, - IsExclusive = false, - Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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[]{3, 5, 1, 5, 0, 6, 4, 1}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"4799467f-8c8e-4e32-94e8-ea642c57b6fd", "3e93a12c-0980-4397-861b-c6d2adad19ff", "deea532f-a234-4cdc-9a82-8eae337654c7", "bee6e6ed-b31d-49c3-b39c-fb6c375ec5d9", "bfd7fa9a-5453-46dc-a46b-a27e07ce50d2", "fd5eae2c-fde4-44bd-89c8-2e6c8c30a3c2", "61a7f96f-a5b7-4490-a95c-884da1852dc7", "94aa6ff3-6fa8-4397-ac2e-4191001a3a51"}, - MinimumNumberOfProducts = 9702, - MinimumNumberOfAmount = 3405, - MinimumNumberForCombinationPurchase = 4859, + ApplicableShopIds = new string[]{"9f86463b-873f-47fd-9524-e37208ac546d", "9c8a3581-a614-4ace-a53a-c51272b89202", "1ec74355-5993-460c-98b3-33f699604046", "727f7767-925a-4eaa-9e11-873622b0df18", "10663483-4388-4939-b677-03d85fc52ea5", "d3970612-2c00-43c9-8562-cb5f31ea96ca", "64b57fac-8d60-47b7-b9ac-0490cd2e38e0", "7738ddfb-e2ff-4f42-9132-ca071752f27e", "7f2a7475-abaf-4ea3-8e2f-49e0da8945c9", "cff1f762-45e4-4dd4-92dc-928e8988dff8"}, + DestPrivateMoneyId = "d0346906-8dff-4fdb-af9c-a47f1aa8f704", + MaxTotalPointAmount = 5687, + MaxPointAmount = 257, ExistInEachProductGroups = true, - MaxPointAmount = 8506, - MaxTotalPointAmount = 2119, - DestPrivateMoneyId = "5e95c68e-8c3d-46be-bd43-69d0f2fcdc36", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1849011939, + MinimumNumberForCombinationPurchase = 7330, + MinimumNumberOfAmount = 8853, + MinimumNumberOfProducts = 5018, + 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"}}}, + ApplicableDaysOfWeek = new int[]{4}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 763, + PointExpiresAt = "2022-07-22T19:41:52.000000Z", + Status = "enabled", + Description = "mao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0", + BearPointShopId = "bcb2a5d5-6df3-4a7b-a69a-345f58bf30fd", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -634,33 +655,34 @@ public async Task CreateCampaign20() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - PointExpiresAt = "2020-12-02T03:07:27.000000Z", - PointExpiresInDays = 7883, - IsExclusive = false, - Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",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"}}}, - ApplicableDaysOfWeek = new int[]{4, 5}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, 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[]{"5413d2bc-7586-43d7-9ab0-dff8426f05bc", "4634a087-d7bd-4283-a201-ce6b442aa16f", "cd543f9b-9735-4f2c-9fa4-82f22a4519a8", "adf5dbbf-a3f4-43d8-a4df-112862a23feb", "1abe756a-ba43-4d0b-9ab6-2e062232054b", "cfb0c6de-448f-4794-9510-cb581e739114", "b64f66ad-26eb-46e9-8df8-24b1dc0525eb", "bf67137f-2f3d-4a48-9614-47d477ff1556", "7592ce3d-9b86-46e2-b021-2eaf469f4212", "626150d2-0f85-4ca1-88f8-ae37b70cf539"}, - MinimumNumberOfProducts = 3976, - MinimumNumberOfAmount = 3488, - MinimumNumberForCombinationPurchase = 7343, - ExistInEachProductGroups = false, - MaxPointAmount = 6128, - MaxTotalPointAmount = 8066, - DestPrivateMoneyId = "646ecec6-5ad4-4d2f-aa28-11d67e47d0e9", + ApplicableShopIds = new string[]{"012767e6-158b-4047-9e96-41195097b9f2", "afbb0aca-5879-487f-8c4b-220b60855f14", "bc9270f3-46d2-41c8-aefd-d24633e2e750"}, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1981693400, + DestPrivateMoneyId = "44fbacbd-c68e-4170-923c-24c815841226", + MaxTotalPointAmount = 1492, + MaxPointAmount = 6997, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 2328, + MinimumNumberOfAmount = 6807, + MinimumNumberOfProducts = 6975, + 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"}}}, + ApplicableDaysOfWeek = new int[]{6, 0}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 7516, + PointExpiresAt = "2024-10-27T19:44:51.000000Z", + Status = "enabled", + Description = "Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHY", + BearPointShopId = "395d030d-a6d9-42cb-b97a-f886ac355137", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -675,34 +697,35 @@ public async Task CreateCampaign21() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - Status = "enabled", - PointExpiresAt = "2022-11-05T20:55:35.000000Z", - PointExpiresInDays = 9068, - 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}}}, - 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"}}}, - ApplicableDaysOfWeek = new int[]{2, 3, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"028cd575-fe40-4fb2-a9e8-f280168cb8ef", "757ac34d-0129-43a0-b828-78c4e69be2aa", "3ef0155b-df73-4fe6-95b3-029be84e5c80", "97103bd4-55aa-4e14-838c-d7b19e377bc1", "6ae625fc-8f38-4b66-96b5-badc1584cc03", "5ceabfee-19eb-4683-baf9-d5e1eacd3507", "809e5b4d-316f-481c-b62c-d410f3bdb948", "fec823ce-c0ff-4a8b-86ea-51ce8acc4f31"}, - MinimumNumberOfProducts = 9806, - MinimumNumberOfAmount = 8498, - MinimumNumberForCombinationPurchase = 2584, - ExistInEachProductGroups = false, - MaxPointAmount = 6537, - MaxTotalPointAmount = 1247, - DestPrivateMoneyId = "3f45a5fc-eaa4-4bfb-86d4-f33041f38692", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + ApplicableShopIds = new string[]{"926840b3-bf8b-4575-b844-eb507a488f7c", "55e9260a-66b2-4810-9569-960667beb763", "17720bf4-f6e9-44a8-b8d9-fc3a68ff9cd3", "2aa21afe-e5d7-4830-8193-c983e26d2fdb", "3c532f0f-fa6e-4caf-acfe-cf0effb45a27", "665b17ca-e7f9-4507-9bd1-c8965e81ec34"}, ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 926400408, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + DestPrivateMoneyId = "2d53c5ef-ee02-4e67-a66a-a8d157e8fcfd", + MaxTotalPointAmount = 616, + MaxPointAmount = 99, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 3563, + MinimumNumberOfAmount = 2708, + MinimumNumberOfProducts = 4767, + 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"}}}, + ApplicableDaysOfWeek = new int[]{5}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 3109, + PointExpiresAt = "2022-10-16T22:14:38.000000Z", + Status = "disabled", + Description = "m4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKm", + BearPointShopId = "ec7d7e73-62f0-4725-bf07-2a4e3976e038", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -717,35 +740,36 @@ public async Task CreateCampaign22() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - Description = "SnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUM", - Status = "enabled", - PointExpiresAt = "2023-11-17T22:56:10.000000Z", - PointExpiresInDays = 1788, - IsExclusive = true, - Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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[]{3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"2b2eadf1-610a-4ab9-92bc-3c6cfc6ec7ff", "bd99782a-2ce9-4275-b1cf-a64288b2f529", "8f163d7f-1449-4dce-adb4-0651ba520022", "c1d9c737-8737-4d5b-afc2-148a4f5cf60d", "e59eb028-ea79-4271-a97b-702a67c1f3fa", "e1d5abab-aa86-4356-9185-7a6f07ff5b16", "20d87007-a665-483e-8e3a-b986f7da0a32"}, - MinimumNumberOfProducts = 7389, - MinimumNumberOfAmount = 7777, - MinimumNumberForCombinationPurchase = 8894, - ExistInEachProductGroups = false, - MaxPointAmount = 299, - MaxTotalPointAmount = 3842, - DestPrivateMoneyId = "2f95706d-2a2b-4ed1-9e0a-214ad1ed4069", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + ApplicableShopIds = new string[]{"cda3f788-9e2c-4412-ab32-11af9b37a68e", "450403e7-8eaf-45eb-be3b-5c4de174b420", "7bc0c43b-950a-4e63-93d0-b3045bb9110b"}, + BudgetCapsAmount = 238798195, ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 548949958, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + DestPrivateMoneyId = "2a00056d-b7f4-49df-8b0e-d42240b76a2d", + MaxTotalPointAmount = 5538, + MaxPointAmount = 3210, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 1053, + MinimumNumberOfAmount = 4459, + MinimumNumberOfProducts = 7115, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{0, 4, 2, 1, 3, 4}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 5236, + PointExpiresAt = "2022-09-18T18:29:37.000000Z", + Status = "disabled", + Description = "WlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT", + BearPointShopId = "91ad7403-15b2-4cfa-8bbd-9a15414cf6c7", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -760,36 +784,751 @@ public async Task CreateCampaign23() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "fjKkp3QkI11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC", - "fb061e0f-ffb3-48dd-b901-616061cffda2", - "2022-05-26T07:26:51.000000Z", - "2023-09-29T11:09:34.000000Z", - 218, - "topup" + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"1aadff93-ff6b-4178-8f4f-c67a272c6a68", "1f82c354-12a8-46f0-9088-514cf3083aa5", "546e29ee-f855-4ffd-bf3d-858c064c0f85", "9d51c451-91ae-489d-9c7b-c45831b1b3e5", "dc1db9e1-d333-450c-a53e-f95424f82199", "2fcfe527-f640-41af-82ec-2650daa0c3a3"}, + }; + 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 CreateCampaign24() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"0963847a-8ae1-47fd-b118-c56eb4b12d37", "11d59dbd-53c9-4e5b-a300-05bce9ffba21"}, + BearPointShopId = "13063257-8e29-4801-9c4d-2880c74fd76c", + }; + 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 CreateCampaign25() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"bfade9bd-06df-46d6-b113-8ce5816cc879", "6700601e-e730-44a5-8623-8a93b210ae31", "660a277f-2c01-4db3-9271-56c3a4cf7e37"}, + Description = "Arhwm76E35ql4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4", + BearPointShopId = "aaa3bdd4-29c1-48c0-af10-1047a0cddf05", + }; + 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 CreateCampaign26() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" ) { - BearPointShopId = "a255d145-1a4c-432c-94d6-96fdac0a94ba", - Description = "cfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoS", + BlacklistedShopIds = new string[]{"aad6605e-bc71-4699-b9fe-4df5ead67d65", "1dc36808-3638-4dd4-b604-095ac641b611", "4694c39b-ba77-4f1b-bcd9-5f0724ea1f62", "4f5731bd-bccd-496e-8210-3df41bcdaf2c", "1ec22423-3e7e-4af9-89d0-41fa6ae5bb02", "7b209922-1c71-4512-9541-998997b4e089", "8a18dd98-c597-4fc7-a49d-46e1a34421a8"}, Status = "enabled", - PointExpiresAt = "2020-06-06T07:13:47.000000Z", - PointExpiresInDays = 6056, - 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}}}, - 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, 2, 3, 0, 2, 5, 4, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"19ea0ed3-4ac1-46f3-aaf0-b2032ff1fc41", "6d723416-8975-4350-8aad-ddd13724ff20", "c8571477-0fcf-4e92-8d45-c378a5811193", "b7c826ba-6643-48b1-b7b6-f56919f973e6", "0021eb6c-8339-46da-95a7-ec168234f815", "f746b210-7910-4073-b40a-59025581f29d", "28f5fe15-e4a9-49f1-aa37-9903ca8ac86a", "215b3ca8-dbca-4faf-b158-8aa8475d2018", "ec8ae961-1b7a-4ce4-b005-38c05585897f"}, - MinimumNumberOfProducts = 5586, - MinimumNumberOfAmount = 3910, - MinimumNumberForCombinationPurchase = 1046, - ExistInEachProductGroups = true, - MaxPointAmount = 8180, - MaxTotalPointAmount = 490, - DestPrivateMoneyId = "29f6c691-56b7-40be-97eb-8886839228f4", - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1360098556, + Description = "rjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjj", + BearPointShopId = "aa20404b-5a7a-48f4-a347-b7523c6087cb", + }; + 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 CreateCampaign27() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"fa73f24b-9096-47b9-a4cb-e70914bc9a15", "304424c1-1d50-4183-a045-98556b3bbb49", "701e4d65-aae4-42fa-9ea2-d669452ef87f", "05c5d2df-2bfd-4cc8-a929-5491b836b807", "eb5da42d-61ab-4a68-ba36-58303aade372", "d0211423-cf99-4d27-bc68-168f8592f4c0", "8946e451-15da-4a4f-8781-dafd59d8e037"}, + PointExpiresAt = "2022-09-06T10:15:20.000000Z", + Status = "enabled", + Description = "sa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nH", + BearPointShopId = "beba9342-d498-47ac-8a61-b34e90b5a0b6", + }; + 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 CreateCampaign28() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"bf3ed8b5-10b1-4bb0-a206-ee8c45dd5a9f", "3fcbc6c1-785d-4cc8-a4a7-24d696bc3189", "a2bfc3d2-ea52-42d6-ae9f-9b984b91981f", "e5be84f1-a8f4-4d4a-a2b7-cc8c0455a3c7", "8e5d1395-194c-47c1-8b18-765f13cf5735", "a3cdf8ea-c886-4ae5-92dd-57541f832f68", "fc96df86-5421-48d7-bf22-079381337535", "d3cf3a71-7d90-4612-b20e-fcb33f19c4aa", "23e67097-dda1-4793-b9c5-9de4bafa37b4", "44164ca3-f100-4fe4-81d8-1c93ffa25075"}, + PointExpiresInDays = 397, + PointExpiresAt = "2020-02-22T10:08:48.000000Z", + Status = "enabled", + Description = "sAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhY", + BearPointShopId = "bf8b73ed-e26f-4e6b-aece-d0b1347e2d17", + }; + 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 CreateCampaign29() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"ce0fec76-7895-4cee-beb0-3257a9fdc742", "1d26169f-0ed8-493f-a647-1377d75f3d22", "d68ac157-f112-4432-bbed-bfdefb450e4d", "1880b39e-e7d7-4f31-a066-30a8e27c9239", "4f72dbe2-d038-4367-85c9-839825ef1e17", "70931343-d5cc-4dd0-b184-bbf118eec27e"}, + IsExclusive = false, + PointExpiresInDays = 437, + PointExpiresAt = "2020-06-09T05:46:06.000000Z", + Status = "disabled", + Description = "G8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtyn", + BearPointShopId = "d47d292d-d64c-4482-b350-10e70367121f", + }; + 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 CreateCampaign30() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"36d7e982-cf9c-4d81-8c39-be8a33316f82", "63b3c1a2-c35c-4fc3-86fa-a038be758937", "f22dd390-e46b-4724-9ec9-259b34747b08", "9179cf1e-5003-489d-adcf-a8cc361157d7", "47cc4ce0-7110-4a3a-b96e-291bd9d094da", "4f9fd637-e62e-4c20-b39c-d354a19fdf27"}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 9856, + PointExpiresAt = "2020-01-17T00:46:41.000000Z", + Status = "enabled", + Description = "SkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWq", + BearPointShopId = "7ced987f-ea89-4282-bcaf-0328aeaaaabb", + }; + 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 CreateCampaign31() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"11df7323-17f4-486a-ba20-bd8fbe67bb7c", "3cf00def-eb3a-492b-bb55-257fcde7c8e8", "fb1cc474-ad92-4edb-af00-ecd760cea0f8", "1d167441-be99-4594-a8c6-566feb1f6b74"}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 9886, + PointExpiresAt = "2023-07-24T20:20:00.000000Z", + Status = "enabled", + Description = "pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hC", + BearPointShopId = "8839f9f7-ca36-4c11-93ee-a5a7d709c22b", + }; + 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 CreateCampaign32() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"ab382e6d-4c5e-4f39-903f-b2a8da10786d", "9e018b7f-580e-47e6-a354-fc98fc6415b5", "931e8ce3-9b4c-40d5-a833-cbac9dc4b3b4", "9b14f7ec-92d7-4140-9908-65a381b65a6b", "d82ef584-d1b1-4fbc-8158-f9ba188a07e6", "483e97b6-7743-45da-95e9-2bbdf5b48ca3", "1932b045-229d-434a-ade7-ef6e9491b0e0", "cd2f5ac9-7caf-4d7d-889c-86443ec735cf", "e804f9d5-0c28-49e4-b694-3ea652038c6d"}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 5512, + PointExpiresAt = "2023-05-29T19:29:06.000000Z", + Status = "enabled", + Description = "pqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQd", + BearPointShopId = "b57f9b51-b6eb-4f31-b01c-204fd7e3efb1", + }; + 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 CreateCampaign33() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"6663101b-13a4-495d-a90e-52826613c367", "e21a8efb-4d08-41fe-af85-4e76e0d7893a", "01cba4d5-9fdb-4839-80b9-ed9ed7f6a552"}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 6704, + PointExpiresAt = "2020-08-11T12:01:57.000000Z", + Status = "disabled", + Description = "QOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCc", + BearPointShopId = "e7dcf711-dfa3-4c5b-a91e-4e5a14aed804", + }; + 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 CreateCampaign34() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"f6784c0d-46e8-4cde-96e4-de580f1aaac3", "00283ae7-d3f9-4ac1-8ce8-424c63cd048a"}, + ApplicableDaysOfWeek = new int[]{4, 4}, + 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"}}}, + 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}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 2570, + PointExpiresAt = "2023-10-05T20:52:32.000000Z", + Status = "enabled", + Description = "ZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXs", + BearPointShopId = "96456eab-f860-4aa9-b0b1-c3345445b1f6", + }; + 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 CreateCampaign35() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"8f258696-49d0-46e0-af65-3e11adebd7ca", "2d629a9e-adec-4f30-b9fd-a2e8a281b693", "d0d8fe5e-d62c-442b-8485-b7b153b96b53", "c38cc520-e9ed-47d3-80e5-72b7594c4f7a", "ff078c0d-75b9-41a5-b558-c14a749bde99", "80013de5-c639-441b-a152-0fbd33612dc2"}, + 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"}}}, + ApplicableDaysOfWeek = new int[]{6, 1, 4, 6, 0, 2, 1, 4, 0, 6}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 6033, + PointExpiresAt = "2024-01-17T15:15:09.000000Z", + Status = "disabled", + Description = "OMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy", + BearPointShopId = "2b51ed34-27bf-42eb-9c9d-a7c585dc0101", + }; + 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 CreateCampaign36() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"9f7210bd-b30a-49cb-9f1e-87ca16332f07"}, + MinimumNumberOfProducts = 5938, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{3, 5, 0, 2, 5, 0, 3, 0}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 9304, + PointExpiresAt = "2024-08-14T23:30:55.000000Z", + Status = "disabled", + Description = "ljojyX", + BearPointShopId = "27094f4e-1de1-442f-b415-4aad6a26371d", + }; + 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 CreateCampaign37() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"b746e863-9d77-4c11-bfda-9de0897bbd6a", "4fdb14d7-5692-43fb-b5c2-f73cb3f77fe5", "bb5dabf3-9f10-423f-b946-2e755c2c2be3", "0bc2a7b4-9e73-45ae-8657-5e004ebc680e"}, + MinimumNumberOfAmount = 7845, + MinimumNumberOfProducts = 8736, + 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"}}}, + ApplicableDaysOfWeek = new int[]{1, 5, 6, 3, 0}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 9961, + PointExpiresAt = "2020-09-26T18:45:26.000000Z", + Status = "disabled", + Description = "ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGh", + BearPointShopId = "913f025b-5d48-429d-b6e7-654f82fed2d9", + }; + 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 CreateCampaign38() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"294d9a45-59be-4b1c-aa23-892f1c12584f", "5bb5a978-ffca-4e26-9330-ee9f81010233", "bb78271e-c578-48d6-b36e-ee53e5809e47", "803e5fd0-2c1c-41f6-b4c3-18bf74fd78ba", "d6c5e53f-db01-4898-b139-07099d00cbe1"}, + MinimumNumberForCombinationPurchase = 1447, + MinimumNumberOfAmount = 4060, + MinimumNumberOfProducts = 6534, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{1, 4, 2, 0, 3, 4, 0, 4, 5, 6}, + 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"}}}, + 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}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 4348, + PointExpiresAt = "2023-04-11T03:47:25.000000Z", + Status = "enabled", + Description = "gxIW5ljI6yfgW8z", + BearPointShopId = "955d03ba-b04f-462e-af80-b861295c89be", + }; + 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 CreateCampaign39() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"8306daec-7186-4329-9e33-112213b655c9", "b941c5d3-a16f-474c-bbec-d35cdd9bd447", "8f46cbba-fbfc-4cd9-b15d-2fa8b7083743", "7ea3a89a-0827-4208-95ab-b91981b62e6f", "d1e788d8-8def-4aa7-bd85-c9c791849915", "be2ca541-19fc-49ad-b502-0d5c7b207073"}, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 2903, + MinimumNumberOfAmount = 6732, + MinimumNumberOfProducts = 3578, + 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"}}}, + ApplicableDaysOfWeek = new int[]{0, 6, 1, 2, 3, 0, 4, 6}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 631, + PointExpiresAt = "2020-08-02T07:08:26.000000Z", + Status = "enabled", + Description = "uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb9", + BearPointShopId = "449f2a34-b47f-4995-a9dd-efbd04f69813", + }; + 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 CreateCampaign40() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"c76fbd64-7603-40e8-a351-08ed33d63a5f", "dbab5f90-d08e-43a2-bd23-5207a9e13225", "fbae7fd4-f26a-4741-8b9b-8d542d08b969", "fdce7e60-0c9b-403a-b4c6-42f659fa2f21", "79417e0f-dfd4-4eaf-82f9-69dd3afd511e", "a91ba993-2a81-4371-b281-1699698ad8d3"}, + MaxPointAmount = 7291, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 7068, + MinimumNumberOfAmount = 8298, + MinimumNumberOfProducts = 8910, + 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"}}}, + ApplicableDaysOfWeek = new int[]{0, 1, 0, 1, 5, 5, 1, 4}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 6167, + PointExpiresAt = "2022-11-18T20:07:33.000000Z", + Status = "disabled", + Description = "TX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSL", + BearPointShopId = "97199765-92ba-49b8-9e28-445811ed51aa", + }; + 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 CreateCampaign41() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"666f307c-3c5a-4669-8cdb-155b77185b63", "d0cf7c7f-55c2-47b9-aaec-d88a2e4de9a9", "4537b4eb-f27e-4f75-8077-0fc0ee112e0f", "fbb7ca24-d5a4-4bd5-ad74-5d35d5b52114", "25a1c92c-0d67-4047-937e-14d8bceefe99", "0075e932-ca53-4e62-bc17-b50c69d801c2", "a0c9c212-d7db-4852-9350-dee05a542ba8", "7c020961-c4d9-4c8f-a557-bf3f11b47af9"}, + MaxTotalPointAmount = 2159, + MaxPointAmount = 5998, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 1705, + MinimumNumberOfAmount = 3414, + MinimumNumberOfProducts = 3026, + 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"}}}, + ApplicableDaysOfWeek = new int[]{2, 0, 0, 5, 2, 4, 2, 5}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 3498, + PointExpiresAt = "2023-01-29T09:35:24.000000Z", + Status = "enabled", + Description = "R7PmuYOuy85eAINi4DCh9E1piomvY0y0iLi", + BearPointShopId = "f96d3191-db67-4b59-ad61-b16838b091a0", + }; + 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 CreateCampaign42() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"7d95bfc5-137c-42e6-8cad-d53d3228a7e1", "018b606a-cd92-4745-b3ac-e9380c3cce97", "ac090243-0653-4dfe-a9fa-f128ccc28896", "382b3d9b-b520-4821-9617-30402d5e04d8"}, + DestPrivateMoneyId = "9ca35c0c-a961-4c88-ab59-173c97a1a0d8", + MaxTotalPointAmount = 7561, + MaxPointAmount = 452, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 9315, + MinimumNumberOfAmount = 4631, + MinimumNumberOfProducts = 1064, + 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"}}}, + ApplicableDaysOfWeek = new int[]{4, 6, 0}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 6890, + PointExpiresAt = "2023-03-01T10:53:27.000000Z", + Status = "disabled", + Description = "aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7T", + BearPointShopId = "1f91be5f-b157-4218-b0de-38681a3a5226", + }; + 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 CreateCampaign43() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"813bca55-1e19-48c3-86ae-3dbad93de7a8", "6228c73f-ac0e-4bd1-804f-570a2bba0a92", "12d931a7-c2ec-4ede-825f-e40e44dae595", "88f716e8-1c82-49ca-839d-9800071dad93", "156085ff-7ffa-4b53-8849-b92e6eb3a910", "c4339607-0c02-4775-b39d-524ce2313334", "47bca605-6f6f-4d96-a5c2-879f20ba1f30", "47d7b487-ca83-448c-a351-044b17f5156a"}, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + DestPrivateMoneyId = "42bdc88c-a4ea-40a9-96a2-dc5848b77e9c", + MaxTotalPointAmount = 1057, + MaxPointAmount = 7141, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 1079, + MinimumNumberOfAmount = 4533, + MinimumNumberOfProducts = 6497, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{0}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 5195, + PointExpiresAt = "2022-12-03T13:26:48.000000Z", + Status = "enabled", + Description = "q3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9", + BearPointShopId = "2805d386-81cb-4f0e-802a-ecd23e4cda48", + }; + 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 CreateCampaign44() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"b7edd66c-b886-42f1-b0f7-45bd6449547c", "c2674692-12fd-4171-bae0-e04d18528ab0", "95f6223c-712b-4093-8f31-ae4cfbdc9eab", "18a1dd01-75d2-4ef8-969f-af50c674c063", "112855be-90d9-414a-90ce-2030fff616b0", "6fac2e88-5540-4452-b6ca-3631c55ebfdd", "5d23cd6b-f5ee-4a20-8df9-c14a63cde9e5", "690e21cc-ae10-4e08-9fac-937cd8eb6744"}, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + DestPrivateMoneyId = "bbf66e9d-332e-459b-a1ad-9aa5b1c89c0a", + MaxTotalPointAmount = 526, + MaxPointAmount = 242, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 773, + MinimumNumberOfAmount = 5898, + MinimumNumberOfProducts = 1361, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{2, 1}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 182, + PointExpiresAt = "2022-11-24T23:09:01.000000Z", + Status = "disabled", + Description = "qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8", + BearPointShopId = "a656bda6-8127-4b51-92a3-6ea595e02f48", + }; + 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 CreateCampaign45() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "jAnbL9pF2AijYf8ydTws4HIQ4An", + "4bcf0869-a700-4112-9780-a7d006c7411f", + "2021-04-27T11:39:38.000000Z", + "2020-08-13T06:58:54.000000Z", + 529, + "external-transaction" + ) { + BlacklistedShopIds = new string[]{"173d8d84-f09d-4ac1-b7ec-57d71843523a", "b380ea0a-2059-4135-873b-1b4cbbac1b48", "accdfc21-dff1-498a-bd9f-1a0bf0fe9de0", "61dbb0c9-8d10-48d4-aa30-29d51d3e92ba", "8ef8cc10-02be-4967-8a77-24f82bca25ed"}, + BudgetCapsAmount = 633957735, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + DestPrivateMoneyId = "e43d952b-4861-441f-8694-993036ae5490", + MaxTotalPointAmount = 8680, + MaxPointAmount = 4320, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 8039, + MinimumNumberOfAmount = 2832, + MinimumNumberOfProducts = 4333, + 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"}}}, + ApplicableDaysOfWeek = new int[]{6, 5, 5, 4, 3, 0, 4, 4}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 8008, + PointExpiresAt = "2023-10-25T05:23:53.000000Z", + Status = "enabled", + Description = "7nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs", + BearPointShopId = "927752dd-7ebb-487f-8d30-4d68ab1bb4ea", }; 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 6a33c25..cde9034 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( - "da0ab7a6-8ede-446b-892b-e7e97aa2c302", - "bb4d1e55-d044-475b-98ae-1976f8c463f3", - 9603.0 + "7c6ab6c0-0844-4b18-888f-53c54776f2bc", + "f65dabd6-35be-43a6-a601-c82787ab55dc", + 1225.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( - "da0ab7a6-8ede-446b-892b-e7e97aa2c302", - "bb4d1e55-d044-475b-98ae-1976f8c463f3", - 9603.0 + "7c6ab6c0-0844-4b18-888f-53c54776f2bc", + "f65dabd6-35be-43a6-a601-c82787ab55dc", + 1225.0 ) { - ExpiresIn = 1211, + ExpiresIn = 5673, }; 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( - "da0ab7a6-8ede-446b-892b-e7e97aa2c302", - "bb4d1e55-d044-475b-98ae-1976f8c463f3", - 9603.0 + "7c6ab6c0-0844-4b18-888f-53c54776f2bc", + "f65dabd6-35be-43a6-a601-c82787ab55dc", + 1225.0 ) { - Description = "d07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5I6vYJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0", - ExpiresIn = 3362, + Description = "BtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuV", + ExpiresIn = 3968, }; 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 927b1bf..ae0ea3b 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 2799.0, + MoneyAmount = 6272.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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 9718.0, - Description = "L7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dB", + MoneyAmount = 9497.0, + Description = "gkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 7635.0, + MoneyAmount = 2618.0, IsOnetime = true, - Description = "WzD3agMTAvZtCm", + Description = "I225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVt", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 4741.0, - UsageLimit = 2153, - IsOnetime = true, - Description = "HOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT", + MoneyAmount = 2577.0, + UsageLimit = 622, + IsOnetime = false, + Description = "3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDge", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 8254.0, - ExpiresAt = "2021-06-05T15:58:48.000000Z", - UsageLimit = 1119, + MoneyAmount = 1771.0, + ExpiresAt = "2024-03-09T08:06:50.000000Z", + UsageLimit = 9666, IsOnetime = false, - Description = "7JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7", + Description = "rHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtP", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 7170.0, - PointExpiresAt = "2022-05-11T04:27:16.000000Z", - ExpiresAt = "2020-10-24T22:32:34.000000Z", - UsageLimit = 2455, - IsOnetime = false, - Description = "qfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb", + MoneyAmount = 1356.0, + PointExpiresAt = "2020-05-02T01:39:14.000000Z", + ExpiresAt = "2023-08-06T00:45:12.000000Z", + UsageLimit = 7641, + IsOnetime = true, + Description = "LvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQO", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - 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", + MoneyAmount = 2077.0, + PointExpiresInDays = 4069, + PointExpiresAt = "2020-01-20T23:49:24.000000Z", + ExpiresAt = "2024-04-05T11:15:44.000000Z", + UsageLimit = 4629, + IsOnetime = false, + Description = "QVPrApol", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - 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 = "M3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrA", + MoneyAmount = 7326.0, + BearPointAccount = "cbd978f4-22a1-41aa-b2a8-3f7af0656f9b", + PointExpiresInDays = 5979, + PointExpiresAt = "2020-06-26T23:16:13.000000Z", + ExpiresAt = "2022-06-21T00:46:05.000000Z", + UsageLimit = 3233, + IsOnetime = false, + Description = "bqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7m", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 873.0, - PointAmount = 8141.0, + MoneyAmount = 8269.0, + PointAmount = 1684.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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 2928.0, - PointAmount = 5102.0, - Description = "QgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrO", + MoneyAmount = 4455.0, + PointAmount = 9674.0, + Description = "5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 9285.0, - PointAmount = 1020.0, + MoneyAmount = 6325.0, + PointAmount = 2625.0, IsOnetime = true, - Description = "6HNdDlfIrfFFwUdXhpSi4j72IcAx", + Description = "eQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgV", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 5914.0, - PointAmount = 8116.0, - UsageLimit = 8887, + MoneyAmount = 7587.0, + PointAmount = 5706.0, + UsageLimit = 606, IsOnetime = true, - Description = "eIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuef", + Description = "Wc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkP", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 2203.0, - PointAmount = 1446.0, - ExpiresAt = "2021-08-27T12:40:33.000000Z", - UsageLimit = 5357, + MoneyAmount = 320.0, + PointAmount = 1733.0, + ExpiresAt = "2023-10-28T19:46:29.000000Z", + UsageLimit = 1982, IsOnetime = true, - Description = "yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72", + Description = "J9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKn", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 3947.0, - PointAmount = 9708.0, - PointExpiresAt = "2022-11-26T07:13:31.000000Z", - ExpiresAt = "2022-08-28T18:06:55.000000Z", - UsageLimit = 3877, + MoneyAmount = 3751.0, + PointAmount = 8507.0, + PointExpiresAt = "2020-06-20T01:49:49.000000Z", + ExpiresAt = "2024-08-20T17:04:11.000000Z", + UsageLimit = 2682, IsOnetime = true, - Description = "yikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrz", + Description = "ujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTT", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - MoneyAmount = 5978.0, - PointAmount = 8381.0, - PointExpiresInDays = 3234, - PointExpiresAt = "2021-08-28T11:13:11.000000Z", - ExpiresAt = "2022-05-11T05:10:00.000000Z", - UsageLimit = 2755, + MoneyAmount = 8054.0, + PointAmount = 9259.0, + PointExpiresInDays = 5113, + PointExpiresAt = "2021-12-27T15:30:44.000000Z", + ExpiresAt = "2024-04-19T11:52:26.000000Z", + UsageLimit = 7433, IsOnetime = true, - Description = "aDUv1CsWTy6z2FdXbfXavW2Hw", + Description = "gdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiU", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - 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", + MoneyAmount = 9215.0, + PointAmount = 3344.0, + BearPointAccount = "e7b85ecb-baf7-4e8b-ab79-8a90f48cea69", + PointExpiresInDays = 2492, + PointExpiresAt = "2020-06-18T01:18:09.000000Z", + ExpiresAt = "2020-02-07T18:58:27.000000Z", + UsageLimit = 7084, + IsOnetime = true, + Description = "oPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2Ds", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - PointAmount = 5080.0, + PointAmount = 4668.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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - PointAmount = 8483.0, - Description = "VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN", + PointAmount = 2870.0, + Description = "IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4u", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - PointAmount = 4256.0, - IsOnetime = true, - Description = "7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJy", + PointAmount = 3447.0, + IsOnetime = false, + Description = "6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaD", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - PointAmount = 1018.0, - UsageLimit = 9142, - IsOnetime = false, - Description = "sPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeO", + PointAmount = 6680.0, + UsageLimit = 9684, + IsOnetime = true, + Description = "EOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - PointAmount = 7133.0, - ExpiresAt = "2022-06-04T15:16:23.000000Z", - UsageLimit = 3859, - IsOnetime = false, - Description = "5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3", + PointAmount = 2273.0, + ExpiresAt = "2022-12-08T10:08:23.000000Z", + UsageLimit = 4824, + IsOnetime = true, + Description = "io5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQ", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - PointAmount = 3592.0, - PointExpiresAt = "2021-12-12T20:43:54.000000Z", - ExpiresAt = "2023-07-01T08:56:21.000000Z", - UsageLimit = 7002, + PointAmount = 5752.0, + PointExpiresAt = "2020-01-13T20:28:00.000000Z", + ExpiresAt = "2024-02-21T00:41:32.000000Z", + UsageLimit = 528, IsOnetime = true, - Description = "rmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Cha", + Description = "aA4tMwkt9CEIs7P52Qn8Ps6rGg4", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - 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", + PointAmount = 2088.0, + PointExpiresInDays = 3261, + PointExpiresAt = "2020-02-24T22:03:14.000000Z", + ExpiresAt = "2024-04-05T17:32:12.000000Z", + UsageLimit = 9319, + IsOnetime = true, + Description = "hQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDH", }; 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( - "0c559969-8af7-4312-81a2-01c5077d7bf6" + "cfee79ef-b592-41ee-945f-4f68bb3514df" ) { - 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 = "mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihF", + PointAmount = 1601.0, + BearPointAccount = "e42bcecd-ef88-41b5-8a64-f5aa201b788a", + PointExpiresInDays = 7264, + PointExpiresAt = "2021-02-14T22:09:27.000000Z", + ExpiresAt = "2021-09-27T00:04:06.000000Z", + UsageLimit = 5547, + IsOnetime = true, + Description = "W8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9O", }; 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 4748447..c1c992d 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 7588, + DiscountAmount = 3874, }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 4563, - StorageId = "fc7f998c-9b05-4732-ab72-0347d884e950", + DiscountAmount = 6253, + StorageId = "bdc5bd7b-cffb-4d8c-8158-0dc3d21c7475", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 5577, - MinAmount = 6442, - StorageId = "5763cf15-7600-4191-bc0e-37df36d5e838", + DiscountAmount = 5539, + MinAmount = 4843, + StorageId = "0742a2b4-424f-40e5-8f59-6c4dd2413ce4", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 2514, - UsageLimit = 7024, - MinAmount = 9157, - StorageId = "7e541e33-4974-42e5-8550-636955941961", + DiscountAmount = 1831, + UsageLimit = 7990, + MinAmount = 5766, + StorageId = "3f451436-aae6-4f58-86ec-1c513e52cf6d", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 2393, - Code = "eN8nco", - UsageLimit = 4962, - MinAmount = 4060, - StorageId = "31e3f4ef-09d3-4a2b-9c42-d702404a9b87", + DiscountAmount = 1610, + Code = "9z2bnV3FE", + UsageLimit = 5183, + MinAmount = 6870, + StorageId = "d0a1b47c-3c21-40e0-8f97-2040af8ce44d", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 6445, - IsPublic = true, - Code = "erEt", - UsageLimit = 2494, - MinAmount = 2280, - StorageId = "31f7ba96-5f27-4cc6-a77b-2a859b16ff4a", + DiscountAmount = 4896, + IsPublic = false, + Code = "n", + UsageLimit = 9644, + MinAmount = 6304, + StorageId = "70a39782-f653-4567-a63b-0c70ed80d36e", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 9700, + DiscountAmount = 7341, IsHidden = true, - IsPublic = true, - Code = "kgg6", - UsageLimit = 5196, - MinAmount = 6221, - StorageId = "1969a8b7-d089-4b7f-8489-ae4833196868", + IsPublic = false, + Code = "2KuX", + UsageLimit = 7122, + MinAmount = 4967, + StorageId = "bc0e6c98-08db-4392-87ba-65e63915abd5", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 6097, + DiscountAmount = 4326, IsDisabled = true, IsHidden = true, IsPublic = false, - Code = "g7pW5tL", - UsageLimit = 8893, - MinAmount = 1220, - StorageId = "3d001682-6bd3-42cc-b3dc-993ebe6120fe", + Code = "r", + UsageLimit = 2825, + MinAmount = 9597, + StorageId = "2ab28044-0975-4bbc-b8d4-08313e34e0ca", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 6808, - DisplayEndsAt = "2021-05-02T10:23:42.000000Z", - IsDisabled = false, - IsHidden = true, + DiscountAmount = 6035, + DisplayEndsAt = "2023-11-29T05:33:31.000000Z", + IsDisabled = true, + IsHidden = false, IsPublic = true, - Code = "XvMXdIXxGA", - UsageLimit = 7035, - MinAmount = 6200, - StorageId = "70cea93c-5c65-41fb-8f11-208949b22993", + Code = "jgzjmCRB", + UsageLimit = 4930, + MinAmount = 8877, + StorageId = "5b329ce2-1087-4ce4-9753-48de1b59debc", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 8541, - DisplayStartsAt = "2020-11-19T20:34:12.000000Z", - DisplayEndsAt = "2023-08-24T18:20:23.000000Z", - IsDisabled = true, - IsHidden = true, + DiscountAmount = 9910, + DisplayStartsAt = "2023-01-06T06:27:43.000000Z", + DisplayEndsAt = "2021-11-16T07:18:34.000000Z", + IsDisabled = false, + IsHidden = false, IsPublic = false, - Code = "Z", - UsageLimit = 6518, - MinAmount = 4214, - StorageId = "6a7b700e-8233-4260-957a-9f7905141dda", + Code = "IuNd5O", + UsageLimit = 6797, + MinAmount = 2246, + StorageId = "6a417cce-e9f2-49da-8e15-06586b44b7c5", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 9643, - DiscountUpperLimit = 7944, - DisplayStartsAt = "2021-04-07T09:51:20.000000Z", - DisplayEndsAt = "2023-03-10T15:15:22.000000Z", + DiscountAmount = 9389, + DiscountUpperLimit = 6976, + DisplayStartsAt = "2021-01-26T22:44:07.000000Z", + DisplayEndsAt = "2024-08-23T12:17:21.000000Z", IsDisabled = false, IsHidden = true, - IsPublic = false, - Code = "P", - UsageLimit = 2611, - MinAmount = 3793, - StorageId = "0ccbf3df-e253-4a22-a548-82a26c6e5eac", + IsPublic = true, + Code = "Zpz", + UsageLimit = 5271, + MinAmount = 4569, + StorageId = "2c5a6f84-d7af-401c-aa66-bd2358cb3006", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 3443, - Description = "zKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9", - DiscountUpperLimit = 649, - DisplayStartsAt = "2022-02-17T13:36:31.000000Z", - DisplayEndsAt = "2021-01-02T18:17:49.000000Z", - IsDisabled = true, + DiscountAmount = 9315, + Description = "TDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9xJxJq4hHbOAXXYVgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424D", + DiscountUpperLimit = 8262, + DisplayStartsAt = "2021-03-23T23:00:20.000000Z", + DisplayEndsAt = "2021-06-08T08:36:59.000000Z", + IsDisabled = false, IsHidden = true, - IsPublic = false, - Code = "1E81", - UsageLimit = 8298, - MinAmount = 3734, - StorageId = "e9939a2c-918b-4ac3-81e0-9fd2c37e29fd", + IsPublic = true, + Code = "PprAJu", + UsageLimit = 9863, + MinAmount = 2399, + StorageId = "cd74960c-2d86-48d8-8a0e-29cc0bbd5bc3", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 7008, - IsShopSpecified = true, - AvailableShopIds = new string[]{"e1dcd6bc-92e2-416b-b74d-3952f0959724", "aaf070b1-527c-4ab7-bf97-27a0f9ae99c3", "47d77836-9552-45dc-af46-52b606b2394c", "df5ddf79-980c-4f4d-baf8-aaa740b65217", "606192c2-c841-470f-9aa6-fff8ece17406", "c7a869af-9010-442c-8e3b-1d83cdaea6f2", "992a2241-8d9e-49d3-846a-2ddbfd0255b9", "41531856-02c7-4d7b-b2b6-d9f28a0ac851", "4f216c15-1ebe-4ed7-852b-a766361f40ac"}, + DiscountAmount = 4665, + IsShopSpecified = false, + AvailableShopIds = new string[]{"8b8866ec-da0e-4e27-9e47-41086e686fa1", "23467822-e56a-4328-9f5f-7d719d470659", "c0b49263-445b-41b5-b35b-825cd260ec6b", "7020e302-a901-4c05-8874-7866ef37ca39", "26f9dce3-2040-44c4-b77e-eb2509be81e2"}, }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 325, + DiscountAmount = 9982, IsShopSpecified = true, - AvailableShopIds = new string[]{"dee955fb-0401-4b37-b397-e39638ade7b2"}, - StorageId = "95c51566-1c19-49b7-9d66-42b5ae5da5f2", + AvailableShopIds = new string[]{"bc11e64e-b93c-4ccb-ac4f-34edac6c230d", "06cb4308-2029-4a1b-8971-377c6a1b6546", "8965e7aa-a3c5-46f0-851b-f37a725a80ec", "9b64622a-426b-421e-9f2f-0485e838cdfd", "7732a0e2-f0da-47d8-a273-d58439e3245e", "fd5a6f28-983e-40dc-88be-93657d15a11a", "6979d64b-fb39-4119-8998-8e36f46d8052"}, + StorageId = "fe015f8f-7e1c-4eb7-be7a-557cbb611b2c", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 1034, - IsShopSpecified = true, - AvailableShopIds = new string[]{"3c604534-2e0f-4f67-8fee-497b0a24f24a"}, - MinAmount = 7514, - StorageId = "8ea1b429-e31a-4084-a027-0a3ef7665c24", + DiscountAmount = 7587, + IsShopSpecified = false, + AvailableShopIds = new string[]{"a305dd58-fd6f-4119-ae2e-ee8a7d811bff", "0b2e5d25-a787-4270-b871-7ab4a18ffb3c", "ebf3dc01-74be-40c2-81af-43e6283bbd70", "0db0ff88-5673-4a3b-82a4-2536b00b7cd6", "7dc01298-3f0d-4ae3-a8db-41010bdaa121", "b66aa2aa-2748-4918-bc77-584f51b8f33d", "dbe4bb7d-47ad-43fb-8e53-56c27b27b984"}, + MinAmount = 5911, + StorageId = "46c66717-dc28-4f61-83d3-41153cedbe60", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 2184, - IsShopSpecified = false, - AvailableShopIds = new string[]{"68caca0d-e33a-4343-ba16-9d38291c06de", "23f118ba-da8e-4631-bb18-e0580145209d", "d3c9c19b-1e10-40ce-af75-1d63a52af179"}, - UsageLimit = 1665, - MinAmount = 9615, - StorageId = "939209e2-1c45-48a9-88f0-db8fd62e7f87", + DiscountAmount = 2215, + IsShopSpecified = true, + AvailableShopIds = new string[]{"2700c811-6f9b-4720-8d34-380581cc731f", "592206e2-2b50-4e83-8696-6dd9cf396b93", "15580c50-3de1-42ee-b855-30591691ed49", "ecd94a2b-a5a2-4e52-98bc-07c16d7bb9c9", "6b3161bf-8d93-4ed3-87e5-65924067010b", "9b08e8d3-3db0-4106-b332-920db86bd5ee", "e1bf7aa7-9f62-4bf7-9039-077566670e77", "90d9cc91-6caf-4dd8-b2d4-f917d6dd6f42", "31acc0a7-0b2d-493c-97f4-2368cbd4074b"}, + UsageLimit = 6290, + MinAmount = 779, + StorageId = "2edc8038-6f53-4e2f-a79b-964608bf0442", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 3832, - IsShopSpecified = true, - AvailableShopIds = new string[]{"1c3722c6-fa2f-4a5c-afd8-5f23c60a500f", "4c56c0b7-012d-44d0-88af-dd440b482109", "82a7e1e7-4d98-4b2d-a772-eafa695c876e", "72cc23ce-0757-4f8a-8256-02097379a4b0"}, - Code = "p9BBTT", - UsageLimit = 2544, - MinAmount = 4779, - StorageId = "348c5d29-80b6-4f9c-81c7-84f09203a94d", + DiscountAmount = 9893, + IsShopSpecified = false, + AvailableShopIds = new string[]{"584061e5-e170-41df-a1c3-2306b4737ef3", "7a54302d-6565-473e-baee-952044441727"}, + Code = "TVlWMFn", + UsageLimit = 9224, + MinAmount = 8218, + StorageId = "dab29ef5-cc40-4d4d-a74a-00fca90a6c3c", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 4878, - IsShopSpecified = true, - AvailableShopIds = new string[]{"2b68eaa3-3ae0-428f-9d3e-09cfdad7109e", "950b447e-4e3d-4e81-b3e2-17745dfcd0c0", "9da3ff48-daad-4f59-a39c-a61729d6e947"}, + DiscountAmount = 6837, + IsShopSpecified = false, + AvailableShopIds = new string[]{"3450f1be-04da-479b-af84-169523b59409", "ca8e82b1-6f85-4963-8be8-f7d6143a351e", "0e9bf038-f3b6-4797-b36f-2828d74780b3", "096b379c-f040-4366-8794-f111d960915c", "799209ab-a195-4905-8c4d-c282b7d953c5", "b9cdde5c-8827-4a23-a150-842c341974cc", "f2fb6184-996a-48ad-844f-9c1a9c2edbc8", "1902c876-9054-4859-a84f-38304fb4221d"}, IsPublic = false, - Code = "4Qa", - UsageLimit = 1260, - MinAmount = 8194, - StorageId = "d40a1b75-b1b6-4f03-9c00-85120c5d789e", + Code = "QE7ACXn", + UsageLimit = 8219, + MinAmount = 2791, + StorageId = "248c59dc-0171-4326-8a09-55e0c2115b0a", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 611, - IsShopSpecified = true, - AvailableShopIds = new string[]{"e9372fba-ec3b-4ca2-8417-5bd6a5e268b2", "880e6120-18d0-45e3-9aea-5a0d3513c814", "5836580c-8bdc-4ca4-9e01-13b234b7ce63", "f53038ff-1bf4-4691-b6ed-835aba2d3afa", "9e18b688-f22f-49bd-967b-6c75247c5717", "a4ee250d-9f47-4035-b32d-55f125e5dedd", "7cee915a-53d7-4dd4-80d9-b37ffdb0ea02", "eb80c67a-c302-4210-a047-bb215c85b113"}, - IsHidden = false, - IsPublic = true, - Code = "uuBX6L", - UsageLimit = 509, - MinAmount = 8924, - StorageId = "465eedd5-4ad5-4b5f-8ca0-5cd5c354b3c2", + DiscountAmount = 37, + IsShopSpecified = false, + AvailableShopIds = new string[]{"3d6b48fd-be4b-44a0-bc0f-65f4bd4a72db", "4fdd8b42-2701-49c5-aee8-efe6a1c92baf", "f8cb2324-8747-47a5-9202-3c12e1e2c6b8", "d48214b7-2540-4b90-87ee-4b8759a3b1bf", "27d60e24-5f23-4bbc-a3fa-cd1f83a90942", "cc2c811d-5de2-4c44-b423-bff10799040e", "d727d2a9-ca80-43ac-97b5-0c9ff1289d4b", "cc660133-306c-4ee6-af4a-171309ba1615", "faf59953-6223-4768-af8c-b74d2786c8c3"}, + IsHidden = true, + IsPublic = false, + Code = "D2oZ5QpD7", + UsageLimit = 1419, + MinAmount = 803, + StorageId = "8bb110f7-56c4-40e6-a63b-33bcd58590d8", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 4602, + DiscountAmount = 8789, IsShopSpecified = false, - AvailableShopIds = new string[]{"74fc4d52-caa6-4431-8a38-209c7c0d3772", "7d6788ce-b60f-48d1-826a-3c545e094841", "f2b3f3bb-fbd2-4f78-a3cb-d75fe35ee889", "943d08bf-acd7-40e3-a4e2-e20852639309", "11487c20-4a31-48ee-b9cc-fdcc84a859d6", "d5a9fd88-30c9-43ad-a73b-d0e62e5f33a4", "dc520a40-d837-46d0-8a0f-a39a4637eab4", "72b16440-ab50-42cb-9bc9-b8590968a897", "5ca8f1d2-1cc1-436c-b15d-d955b7f4f943", "72c47a75-0ddc-4993-917b-6b79700af5e3"}, - IsDisabled = false, - IsHidden = false, - IsPublic = true, - Code = "lQrGdRq", - UsageLimit = 9087, - MinAmount = 2134, - StorageId = "4811f464-3533-42c3-82fd-964958b8b996", + AvailableShopIds = new string[]{"bdb10b74-eadc-4406-be58-6fc25ce0633b", "4d8e8b16-317b-40e6-b9ef-4ae62039b18a", "db50ee22-0432-4bcd-a1c2-830f02f96792"}, + IsDisabled = true, + IsHidden = true, + IsPublic = false, + Code = "h", + UsageLimit = 4515, + MinAmount = 8299, + StorageId = "c8a56c22-4b21-476f-8abe-e4a886501ede", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 9669, + DiscountAmount = 9775, IsShopSpecified = false, - AvailableShopIds = new string[]{"9127d928-3be0-46ab-a4a5-c24ffbe3d5ac"}, - DisplayEndsAt = "2022-12-29T15:05:28.000000Z", - IsDisabled = true, - IsHidden = true, - IsPublic = true, - Code = "7PJayBT5Ig", - UsageLimit = 4417, - MinAmount = 8609, - StorageId = "9367407e-da4b-4d35-a239-9a9bbbef8bba", + AvailableShopIds = new string[]{"c2c11dfa-89cc-4da0-abfa-bb58fac19b3c", "2556fc53-c824-40c0-b7f3-110f8dc380bf", "7fb667e1-5808-45f8-b769-5cd92b787224"}, + DisplayEndsAt = "2021-10-10T11:38:56.000000Z", + IsDisabled = false, + IsHidden = false, + IsPublic = false, + Code = "lAj5", + UsageLimit = 9892, + MinAmount = 1945, + StorageId = "2fe3b6ec-4ecd-4944-b8ef-e85e77f61983", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 1640, - IsShopSpecified = false, - AvailableShopIds = new string[]{"c7e9af20-637e-42ba-bc5a-9da940023c01", "795ea3aa-43e8-4f63-9a5f-d1e8a4d90487", "5ea13da1-6d38-4b4d-920a-1975a768db53", "aa4be814-456c-45d6-9291-82232c3854af", "7178a2a2-e23e-4416-9ccb-4b67d1282607", "3fe30b43-9053-43f0-890f-8aaaf95b3ccc", "1e087eb1-67bb-40b3-9959-9575a2dc8b83", "85d966c7-01ce-4d31-b772-c4e63df21a54", "131e4e39-f828-4922-84ee-9e9be3587d4f", "1004698c-f525-4674-a9fc-c87d65221743"}, - DisplayStartsAt = "2024-02-03T11:17:15.000000Z", - DisplayEndsAt = "2024-01-18T04:11:46.000000Z", + DiscountAmount = 3495, + IsShopSpecified = true, + AvailableShopIds = new string[]{"ab6e4802-cdf2-45dd-acaa-3d1d3e7f323f", "e83c889c-c598-4418-8d44-61fac522308e"}, + DisplayStartsAt = "2022-08-31T15:20:42.000000Z", + DisplayEndsAt = "2023-11-14T11:36:35.000000Z", IsDisabled = false, IsHidden = false, - IsPublic = false, - Code = "uSxp7i1rc", - UsageLimit = 6241, - MinAmount = 5347, - StorageId = "b3b32ad2-d47d-4fab-b47e-4e8c77cbbec5", + IsPublic = true, + Code = "MAkFYNem", + UsageLimit = 8347, + MinAmount = 2667, + StorageId = "01ee727a-415a-47f0-b6ad-cc8643482fc4", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 8981, - IsShopSpecified = true, - AvailableShopIds = new string[]{"affaad01-e34a-43d2-999a-81c50fcd555c", "844b0030-9296-4baa-989e-e1f631d907df", "2d017067-6ccc-4a9d-9188-e4be6365b03d", "73692afc-75c7-4423-9804-c9a6ed17fd6e", "c4bd47b2-a51d-4080-934f-3de4a6b9e52d", "b1013bfd-8b0f-4160-901c-7c2cdb9948e0"}, - DiscountUpperLimit = 7160, - DisplayStartsAt = "2023-03-21T19:50:49.000000Z", - DisplayEndsAt = "2023-11-06T14:03:41.000000Z", - IsDisabled = true, + DiscountAmount = 2166, + IsShopSpecified = false, + AvailableShopIds = new string[]{"656a8c0c-c4b0-4b12-acbb-9f047886a867", "29994a6c-36cc-4c76-b254-33a0f354f239", "c9e37030-bd1b-4111-a105-1203b1a37ecf", "bfcd2117-9dc6-4cb7-9c7b-16f1822d1cbe", "278f0d4c-745a-44fe-a15c-d69369fc7897", "ac84f52a-de4a-4a47-b62f-773bdeee2c6d", "f4729b57-131d-4922-9046-fbdc16aa5199", "41fa03d7-911c-4938-ad7d-19d925403afc"}, + DiscountUpperLimit = 4167, + DisplayStartsAt = "2020-05-04T22:00:31.000000Z", + DisplayEndsAt = "2022-11-27T16:24:24.000000Z", + IsDisabled = false, IsHidden = true, - IsPublic = false, - Code = "ViuwKt", - UsageLimit = 9342, - MinAmount = 618, - StorageId = "bf113df3-69a3-4540-a952-d56afbbb867a", + IsPublic = true, + Code = "pA9wK7", + UsageLimit = 1788, + MinAmount = 3466, + StorageId = "125d9ec6-e5e5-4306-b27f-6281182be3cb", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountAmount = 1188, + DiscountAmount = 1389, IsShopSpecified = true, - AvailableShopIds = new string[]{"1704b51f-51f6-4baa-a2bf-89bffc5b3938", "48ddfa58-ef28-458e-9501-d9ee8c9c2d09", "172f53e5-42bc-4389-808a-77c78ed15c4e", "5d0c663f-4bce-4130-9667-531c01fef6e3", "ff98c062-465e-4105-a0ea-65c89188679f", "a31c3a83-ecbc-46c5-b079-ef26ebddeb6b", "3fb2de4f-abd7-4486-b21b-e43a400a139b", "a8947579-c7a5-47fe-bdd6-c9eca8c9db92", "60cf41c8-1dee-47af-a408-fb4de028601b", "7488f382-6d1e-457c-a70b-9ebff23ca28b"}, - Description = "AdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET", - DiscountUpperLimit = 9981, - DisplayStartsAt = "2022-08-25T11:20:42.000000Z", - DisplayEndsAt = "2021-05-19T01:35:12.000000Z", - IsDisabled = true, + AvailableShopIds = new string[]{"a149f34d-e03d-4d44-a8ca-5d1f79d9d189", "3ba8852f-c744-494e-b93e-a222aff5862f", "101e4204-a1be-48eb-bd6a-456eb587a185", "49afdf2a-191f-4504-aa9a-473f3ad883c5", "e7193d2b-c041-4674-af57-79eb6c346d2c", "5df9140c-facd-44db-b130-9d79ff65325c", "a88cacd4-3827-43da-938c-afc3a1765cb3"}, + Description = "t5NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT2umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo1FVSdDE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsO", + DiscountUpperLimit = 9292, + DisplayStartsAt = "2020-12-26T01:10:05.000000Z", + DisplayEndsAt = "2023-08-20T04:19:23.000000Z", + IsDisabled = false, IsHidden = true, IsPublic = false, - Code = "pC8utok", - UsageLimit = 4816, - MinAmount = 4488, - StorageId = "bc8bf171-c330-4631-a0b6-5663b21c6f05", + Code = "CCeTbwp9j", + UsageLimit = 4474, + MinAmount = 65, + StorageId = "92ac7a6d-de6b-49d6-99e5-2419ae00197e", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 5002.0, + DiscountPercentage = 5377.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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 8687.0, - StorageId = "975565dd-9913-41f1-a766-a8bbe42f483e", + DiscountPercentage = 6009.0, + StorageId = "1938b03c-4460-4e16-a3e2-b2a0e79cf556", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 9449.0, - MinAmount = 1427, - StorageId = "6f579280-37a8-4713-9e8b-69a94b2e1c29", + DiscountPercentage = 1521.0, + MinAmount = 8098, + StorageId = "5fb8fb70-6331-4a1c-99f2-15fa6527a7f5", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 2005.0, - UsageLimit = 3590, - MinAmount = 6951, - StorageId = "f10f2ad8-6c78-4e91-a346-d59dc58fd3df", + DiscountPercentage = 6160.0, + UsageLimit = 2346, + MinAmount = 497, + StorageId = "9b2ce793-bc9c-4387-bbc9-0f8ff14162bb", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 8747.0, - Code = "zN5", - UsageLimit = 789, - MinAmount = 6541, - StorageId = "85dd6745-ace6-4fa8-a46f-cdffd0594ebc", + DiscountPercentage = 7105.0, + Code = "cJ63x2Wp", + UsageLimit = 5001, + MinAmount = 9323, + StorageId = "882063ac-f786-401e-b1f2-c9afc59b403f", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 7356.0, - IsPublic = true, - Code = "qVIJLmWFeG", - UsageLimit = 1226, - MinAmount = 1340, - StorageId = "96563e26-0771-4cd9-a279-9911fc385298", + DiscountPercentage = 582.0, + IsPublic = false, + Code = "djX6", + UsageLimit = 9925, + MinAmount = 3936, + StorageId = "afda826c-9d18-4637-b6ad-6d833f6a0aa7", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 8934.0, - IsHidden = false, + DiscountPercentage = 9255.0, + IsHidden = true, IsPublic = false, - Code = "xqeV9Lg6T", - UsageLimit = 3567, - MinAmount = 1298, - StorageId = "c9123897-c3ef-47d2-b81c-fd4b61b6a42b", + Code = "bE", + UsageLimit = 2427, + MinAmount = 6154, + StorageId = "e9ffca75-b6db-438f-aeda-2ea7901969f3", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 9233.0, - IsDisabled = true, - IsHidden = false, - IsPublic = false, - Code = "Rr3h8eg", - UsageLimit = 9933, - MinAmount = 6105, - StorageId = "21b19c55-9890-4bc3-8eb7-1614cae1d03a", + DiscountPercentage = 5921.0, + IsDisabled = false, + IsHidden = true, + IsPublic = true, + Code = "EigsXHGq2", + UsageLimit = 3183, + MinAmount = 6334, + StorageId = "94c6211d-ca3f-442b-94ef-3ec01edbc205", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 7121.0, - DisplayEndsAt = "2021-06-28T16:41:32.000000Z", - IsDisabled = false, - IsHidden = true, - IsPublic = true, - Code = "Q", - UsageLimit = 6815, - MinAmount = 4860, - StorageId = "231f3f07-0e07-49a1-975c-bc81fd259dd7", + DiscountPercentage = 9817.0, + DisplayEndsAt = "2022-12-22T11:02:26.000000Z", + IsDisabled = true, + IsHidden = false, + IsPublic = false, + Code = "Cj", + UsageLimit = 3785, + MinAmount = 9849, + StorageId = "cdd2a390-4e5a-461f-9aaf-a3c95f727cca", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 8812.0, - DisplayStartsAt = "2022-09-17T22:51:29.000000Z", - DisplayEndsAt = "2022-11-24T11:06:39.000000Z", - IsDisabled = false, + DiscountPercentage = 1539.0, + DisplayStartsAt = "2020-09-11T22:41:26.000000Z", + DisplayEndsAt = "2022-02-03T09:26:00.000000Z", + IsDisabled = true, IsHidden = true, IsPublic = false, - Code = "L88aL", - UsageLimit = 2603, - MinAmount = 7721, - StorageId = "f26e6043-fd14-442e-a6e4-89b3f1eea2ac", + Code = "mOEMtSXxz", + UsageLimit = 8047, + MinAmount = 3691, + StorageId = "facf7e15-e6c7-4259-8b8c-856b94015aa7", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 5890.0, - DiscountUpperLimit = 2547, - DisplayStartsAt = "2023-10-10T18:05:25.000000Z", - DisplayEndsAt = "2021-08-18T04:51:24.000000Z", + DiscountPercentage = 1769.0, + DiscountUpperLimit = 9889, + DisplayStartsAt = "2021-10-27T18:52:27.000000Z", + DisplayEndsAt = "2022-08-26T01:53:26.000000Z", IsDisabled = false, IsHidden = false, IsPublic = true, - Code = "XIU", - UsageLimit = 9705, - MinAmount = 5509, - StorageId = "5dcd4bbf-ed59-4e08-b092-f60dffc51c5e", + Code = "ZSvWA49o8H", + UsageLimit = 2461, + MinAmount = 8661, + StorageId = "60af6645-be21-4e03-a8f7-46298fc11579", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 9621.0, - Description = "TvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDU", - DiscountUpperLimit = 7105, - DisplayStartsAt = "2023-03-29T22:56:31.000000Z", - DisplayEndsAt = "2021-05-09T05:42:20.000000Z", - IsDisabled = true, + DiscountPercentage = 1648.0, + Description = "tZsgSDOAS6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW", + DiscountUpperLimit = 6208, + DisplayStartsAt = "2021-12-28T08:11:25.000000Z", + DisplayEndsAt = "2023-10-28T13:01:46.000000Z", + IsDisabled = false, IsHidden = true, - IsPublic = false, - Code = "fGNC0wV", - UsageLimit = 1538, - MinAmount = 2438, - StorageId = "dccb7f06-37a0-4ee1-8d88-1d4222273e06", + IsPublic = true, + Code = "XLsbYmrfH", + UsageLimit = 1408, + MinAmount = 933, + StorageId = "beeaeb57-00b6-4fa3-9fc1-c51021177765", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 6863.0, + DiscountPercentage = 4635.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"e3318449-72a8-4820-a72d-b3fd44ef8838", "79ebe268-20bf-44d2-8f25-39db0ec70a98"}, + AvailableShopIds = new string[]{"2c5c2e1b-8b4b-454c-a8f5-10b9a1df1fea", "07c65ad3-47f9-433e-806b-0a401a1e18ab", "ec349191-65f9-4944-98bf-74cd89fed815", "aa9c5415-9f26-4402-b86a-1bdb9b1bb7d1", "604dc668-64ad-4b2e-9c80-cf864cedfad8", "895ac725-013a-41f6-b173-828350ac1dba", "2d75b027-e44e-4c98-ab55-26f74aaa5af0"}, }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 1222.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"140389a5-642c-43cd-9e01-4faa37658b6c", "4fcef8ea-4148-4147-98f2-018973b1b1f0", "3bdf1d0a-bfd6-409d-82ac-20d32b3256eb", "ccabd753-a0e4-402d-8c51-7a89b96380af"}, - StorageId = "9d6f1a42-8fa4-4140-82d1-020fe84c139a", + DiscountPercentage = 2564.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"8aad454f-924a-4762-a67e-430e5cf27bcd", "655bd3fa-a6d4-4704-90cd-15e9ca3bca35", "c919ccce-1507-49e1-91c4-b2f167378d76", "4667178a-2249-402f-8b8e-5f6bd311f145", "434f4022-72e7-4eeb-a902-4ed5298f0d91", "5a906abf-0131-42e9-874a-916f6f5eb934", "c04339fc-2e56-4380-a4a6-0b042fe6d10d", "9214441d-65e5-4a75-af31-d714188bfa0e", "abfc0389-d2ee-4d44-a4b6-86322923df70"}, + StorageId = "b9c7b845-1865-4dee-aec1-0b2cb829942d", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 4220.0, + DiscountPercentage = 6786.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"262e0558-3948-4bdf-979f-6526c52b8443", "1b2b5deb-5538-4b38-9e8b-aa799f32623e"}, - MinAmount = 2241, - StorageId = "2ee0967f-fca4-49e4-ab2a-b37f75f8f05c", + AvailableShopIds = new string[]{"13f912c9-3319-4b62-b5d7-853a56887dd7", "b5e99492-40e9-4994-88b9-a61ed7cac233", "5e5a5fdd-54a6-47bf-9502-275910ae5781", "b535364f-887a-44d7-a90a-21078625d200", "a3ea962e-356f-4cc5-baed-f1b8336a6bc1", "eca24432-b503-49c1-873c-30ecec095481", "92595899-72a1-4b3d-8c96-3a0f48f7eb1f", "f2485420-edb9-48a3-8ff9-0ee9c63dc68b", "35389b76-8dd8-425b-87da-84c2a1977223"}, + MinAmount = 8312, + StorageId = "3bd876e6-291c-4bde-918f-48367cc50054", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 4128.0, + DiscountPercentage = 6364.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"4911012f-f403-451b-9528-d99a01668adc", "44ab489c-c05f-4ad5-be87-f66c16cd0313", "facae258-bb0a-4a70-b22d-92c01c43930f"}, - UsageLimit = 7539, - MinAmount = 3295, - StorageId = "6bc1dd03-d12e-43d4-9bb5-4e852cd73d9b", + AvailableShopIds = new string[]{"8a89df5c-a6ff-44c1-9484-271764bbc96f", "3ee0712e-6eac-4a0e-81a2-fa8c91862d25", "159a24d3-924f-417b-89e7-c6f395afaeff", "da236641-7246-41fb-8d03-f152fe5f7d3a", "81493dee-9d41-4617-b6d2-faf128556a1c", "eee33aca-a0a2-4983-b6ba-92b3eb1aef5d", "dbd27c9e-3e83-43a6-840f-e6d97d1b8786", "cdb0ff6f-e169-473f-a97c-73b1e001eb19", "99096948-db99-45ce-919a-e50293a181b6", "5ec621fd-4ad3-4b55-8255-f5dc9ee9f286"}, + UsageLimit = 5003, + MinAmount = 1272, + StorageId = "64b008e6-e9bb-4f83-95fe-7fc894cc188d", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 5543.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"be14805e-510f-4154-a338-ed301f6677bc", "19ec7b39-4fa2-4e41-9c85-c61cca853811"}, - Code = "bvtJaU", - UsageLimit = 6649, - MinAmount = 688, - StorageId = "c858cc20-7a81-4e10-85cb-0ab52f71dd20", + DiscountPercentage = 1962.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"fb941eeb-bf46-46da-b2de-9195414be753", "15b81c8d-186a-4ba7-af6a-bab42c0c28ba", "d7b4b2c5-ec60-4119-a982-c960593e3439", "d8764f1d-5fa5-475c-b028-43b6eb0a2f68", "28d67c1b-236a-471d-92cf-0202371e9ea8", "7bf187cf-875d-411d-9b84-879890d5433a"}, + Code = "SKfXh", + UsageLimit = 9759, + MinAmount = 1500, + StorageId = "64ba7e0f-b5a8-4ed2-a899-2a874924d4e6", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 8943.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"a9141c89-439f-4efc-92c9-abb23560f241", "b57222e6-53ad-4315-8f2d-ca0c5531a82b", "8ccf1b76-1f99-4921-b523-501a151ec737"}, + DiscountPercentage = 1201.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"bca74a2f-530b-4ffd-a69f-d07e4c77fbc0", "067736c8-a7a7-4331-b875-0db34446b99a", "b28c611c-5f6c-41d7-bfdc-ba06929cfd1e"}, IsPublic = true, - Code = "S8pT", - UsageLimit = 9100, - MinAmount = 6283, - StorageId = "2973fab7-d969-48f7-8eec-858944142f9d", + Code = "r6bx", + UsageLimit = 5314, + MinAmount = 3064, + StorageId = "a47930ab-e1a9-4568-b12c-79a415afc738", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 2873.0, + DiscountPercentage = 1376.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"8f1f38cb-f505-4e4e-8035-583f3c425d00", "b934fcaf-69f9-4018-80a0-58a833d7499f", "af737ec3-04a0-4a73-8214-8444256f39cd", "b8afc1be-5f18-4075-941c-315ebc383975"}, + AvailableShopIds = new string[]{"bd22aefa-124c-4d04-8a13-1bcb767af17c", "2ea79a47-648a-4713-9222-896c7a108983", "7c389037-5d23-4281-bf07-47f073d299e5", "bc661925-8fa0-453e-bbac-3c67eaebe78f", "7b0e5c75-8039-4f60-93b9-cb6925443b29", "d5b5984c-e02c-426b-948c-6384666380c7", "c59ca1dc-49fd-4fe3-9ae5-495237539ac8", "bc443330-b6b9-4ef0-b38d-4ea88ed5bfc4", "3ed4673f-1e02-4dea-bb27-8ba4722622e6"}, IsHidden = false, IsPublic = false, - Code = "g6vjoZFJ", - UsageLimit = 85, - MinAmount = 5941, - StorageId = "be4a09f1-6fbf-4f3b-8a1d-02f505bd6cf7", + Code = "XXM3Tu", + UsageLimit = 9257, + MinAmount = 7360, + StorageId = "87dcd00f-2158-4a5f-b64a-c281006086d4", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 5976.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"e557e7ba-6a4a-44b5-859d-a160d4ad3e9b", "98b867ac-c3a2-4d71-8336-c1971e6ab6c7", "2de80ce3-fe4e-4b50-aec3-e820f6c36e12", "896d3d9a-6f45-4956-9bfb-800fe51e3250", "a028813e-26a4-40f1-b436-bc40ed8305c7", "a4de3b64-17c9-4f50-a52c-684a0d4b58ed", "c7157023-9538-47e1-9c63-de9d32085c28"}, - IsDisabled = false, - IsHidden = true, - IsPublic = true, - Code = "z4K3IA8J", - UsageLimit = 7744, - MinAmount = 9440, - StorageId = "166ea7c9-32a7-46cc-9ef7-e3c493cd0592", + DiscountPercentage = 6770.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"428f08b8-e855-4010-b2f3-c878cf4e46b5", "01abd918-26a3-4aab-964d-497d7306cf5f", "95c1cd5e-38a3-49b8-b5a3-b61400a0dfa8", "e0c4f361-3c1c-409f-ab9d-5ee3944fb545", "3be6d049-ba25-4179-b851-9b7a17180d60", "c41d11b7-7d44-4891-bf0b-eb3b53bfbb85", "f652f834-a101-4709-b6a9-a996f9bfa29f", "337517bf-047d-4112-93a5-e3c7cc662094", "209fa416-9502-4f90-8a9f-a28398b0a066", "8a78dc45-1364-4d70-8bc4-d4916201dfac"}, + IsDisabled = true, + IsHidden = false, + IsPublic = false, + Code = "VkF", + UsageLimit = 2454, + MinAmount = 6988, + StorageId = "7313d254-6c6d-4183-ac3e-4ef870294d70", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 8281.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"c7d7a0c8-1c11-49d7-b1bc-2d39b9495d07", "63afb068-bf14-48b3-bee1-0e7962946410", "9e4f50d9-2482-46f8-a14e-c5fbad91fde7", "8fb414a4-6012-417f-a71f-90a02f3e865c", "9b6fe81e-45cf-4319-804a-b839408d8efe", "0691c084-bbec-4c7a-8f2d-80b72d6e7596", "0e85051e-5148-4c0f-8df3-9d376dd4e2ad", "8616a8f2-12ae-4938-984d-dba6716a363c", "05d7c8f7-8c22-4370-9d0e-6a1e0d7f3bbf"}, - DisplayEndsAt = "2022-02-02T07:15:39.000000Z", - IsDisabled = false, + DiscountPercentage = 6072.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"e2f48f3d-93c9-4ab9-9563-f6581cb1ba0c", "5c009de5-1c73-442d-90e3-67f24e460bed", "54f6a6d3-381d-4312-bdaa-2844e3a7fe35", "e3e7db22-c10d-4e5e-aea3-eeeb109aecf0"}, + DisplayEndsAt = "2023-12-06T12:04:07.000000Z", + IsDisabled = true, IsHidden = false, - IsPublic = true, - Code = "fo", - UsageLimit = 9859, - MinAmount = 3570, - StorageId = "054efdb2-fdfc-4f7e-a71f-32168bf9c2b0", + IsPublic = false, + Code = "HG", + UsageLimit = 8895, + MinAmount = 8172, + StorageId = "e6e806f9-7e48-44b3-b415-5fbb38563aa5", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 4104.0, + DiscountPercentage = 7949.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"d9a9773d-bd66-45fe-a324-96bafa3bed7e", "65a077dd-aa5a-4596-a0d9-7099d1f1b390", "24b56786-6392-4831-b554-aeec496545a8", "a39a3544-46a1-4366-af58-ea7a044a3830", "868ec575-6044-47e5-af11-233d6319ecf6", "1dc51783-f87b-4cb2-8712-ef272d10b961", "f770e2e0-3f78-4f11-a885-e43f3814f8a6", "570004cc-1789-4a85-8da9-eb6add3ac78b", "f528585a-9d82-4ca6-a84d-fa7e8c924137", "a4d8b217-ea07-41e6-8218-9abe663e2bf4"}, - DisplayStartsAt = "2021-03-31T10:30:04.000000Z", - DisplayEndsAt = "2023-10-18T11:21:08.000000Z", + AvailableShopIds = new string[]{"847a7848-d91d-4b80-acc2-e634db4cfda1", "85e4e6f7-0d2e-4fc8-86e2-72bd43016c43", "9c606947-5978-4011-b09e-a19d7f03d52e"}, + DisplayStartsAt = "2024-11-06T00:27:04.000000Z", + DisplayEndsAt = "2023-10-23T15:42:50.000000Z", IsDisabled = true, IsHidden = false, - IsPublic = false, - Code = "PQLWJArP", - UsageLimit = 9201, - MinAmount = 3123, - StorageId = "6dd3f59e-6e1a-4af4-b0ac-5a0f60ef3f9a", + IsPublic = true, + Code = "wta", + UsageLimit = 3008, + MinAmount = 2416, + StorageId = "96c19bf5-4631-463f-b1e4-13086f1c92ed", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 2217.0, + DiscountPercentage = 7821.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"1348c0e3-4f38-4be7-8ba4-3f77691e83ba", "9d43c561-aa64-4707-8eee-a8c0beafb8fb", "e029f795-c6de-46f7-b5e5-f2a0372530c3", "ef6c267f-f209-4220-8b71-659c4536f594", "687962e6-2e0d-49da-a46b-ce9bf426cc19", "39eb0edd-4d3c-42f3-bfd6-2c4ceacac711"}, - DiscountUpperLimit = 8879, - DisplayStartsAt = "2022-08-29T16:53:22.000000Z", - DisplayEndsAt = "2022-01-14T05:47:38.000000Z", - IsDisabled = true, - IsHidden = false, - IsPublic = false, - Code = "Ja8YkV10V0", - UsageLimit = 4515, - MinAmount = 6632, - StorageId = "f265e527-cdba-4fa0-89bf-f766531418b8", + AvailableShopIds = new string[]{"5357d5dd-91b2-4b32-8b46-108f54715db3", "790476e3-570a-4d28-ad13-87f4790072a9", "a51aa449-c273-480d-a7f8-2badaf9be3bb", "61a99690-ce54-46d4-969e-f05d9a80e28b", "93f14e32-f4b4-4557-a32b-fab348d063e9", "d7cdb44d-433a-4713-a3ea-8a0a3f1d0167", "a75f1423-460a-48aa-83bd-836169663de6", "76ea8c34-33f6-4931-8605-52dd662984b7"}, + DiscountUpperLimit = 15, + DisplayStartsAt = "2021-01-27T18:20:56.000000Z", + DisplayEndsAt = "2021-03-26T11:39:38.000000Z", + IsDisabled = false, + IsHidden = true, + IsPublic = true, + Code = "4Tv", + UsageLimit = 9874, + MinAmount = 4104, + StorageId = "2e74d17a-af9d-4290-877e-33091e1d802d", }; 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( - "3e5abddd-282f-4612-9b28-1bb05661efbe", - "abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4", - "2020-01-05T02:33:18.000000Z", - "2023-12-03T02:07:18.000000Z", - "48bdac3e-5f2f-4fd3-9586-9eac55ddb844" + "49375371-4cfc-4da2-a616-2092c9438a8b", + "U9VC96cIIeErItINWil5tFd5fw", + "2024-01-04T01:07:13.000000Z", + "2022-01-28T00:58:07.000000Z", + "648dbb11-bb83-413d-bff8-ab45bd640b08" ) { - DiscountPercentage = 7429.0, + DiscountPercentage = 3491.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"7b1724ac-a17f-4af4-9147-95aa2da74bc8", "edccfea7-2070-4dba-8c29-66f64a475c33", "3ac17578-6ad0-4c51-baa1-c2502b58ffa5", "83b226ce-b83b-4d82-bb87-2abe67ab8d97", "306e84bf-ad5a-454d-bae1-b3b323e760e3", "77eebe54-fced-47bb-aa10-51d43d19673f", "c03a7df3-603d-4b6c-9f54-092670d9ee44", "a22afca9-8005-4348-badd-34718eaec1b0"}, - Description = "0PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFum", - DiscountUpperLimit = 7633, - DisplayStartsAt = "2021-05-07T23:33:42.000000Z", - DisplayEndsAt = "2021-10-06T04:45:26.000000Z", + AvailableShopIds = new string[]{"8ade21d9-2c4c-4e49-af21-0958aa6a4786", "ffad91f8-2524-478d-b1ef-1f60d9ebceee", "f966c26b-1b1d-484d-be47-1d7d2fc608f1", "17318e58-1aec-44ca-9870-c17b7706774a"}, + Description = "Qwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIFXZbjsiiNiXZ0lFTg0buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopm", + DiscountUpperLimit = 3145, + DisplayStartsAt = "2023-08-03T09:05:48.000000Z", + DisplayEndsAt = "2024-06-16T10:53:19.000000Z", IsDisabled = false, - IsHidden = false, - IsPublic = false, - Code = "Usw4hfYXr", - UsageLimit = 8120, - MinAmount = 852, - StorageId = "90c85dad-cf77-4f73-b76b-aa1f5bba0f00", + IsHidden = true, + IsPublic = true, + Code = "zq", + UsageLimit = 9598, + MinAmount = 7003, + StorageId = "6547aa97-8ca5-4cbf-8f14-7f1030664fee", }; 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 666980e..df79888 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCpmTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCpmTransaction.cs @@ -25,9 +25,9 @@ public async Task CreateCpmTransaction0() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "LesoN7AsxjaX4bkzoW5SSz", - "8c6738c6-0a43-44e0-9f4b-4001c0bd316a", - 6991.0 + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0 ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -42,11 +42,11 @@ public async Task CreateCpmTransaction1() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "LesoN7AsxjaX4bkzoW5SSz", - "8c6738c6-0a43-44e0-9f4b-4001c0bd316a", - 6991.0 + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0 ) { - RequestId = "97f918a6-cbc5-495e-befc-539cc6e2d645", + Strategy = "money-only", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -61,12 +61,12 @@ public async Task CreateCpmTransaction2() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "LesoN7AsxjaX4bkzoW5SSz", - "8c6738c6-0a43-44e0-9f4b-4001c0bd316a", - 6991.0 + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0 ) { - Products = 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","{}"}}, 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 = "2241e432-273b-49b9-bc50-d916835da811", + RequestId = "c1b41a3f-bd32-4632-b7e3-66a659db5d9d", + Strategy = "point-preferred", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -81,13 +81,13 @@ public async Task CreateCpmTransaction3() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "LesoN7AsxjaX4bkzoW5SSz", - "8c6738c6-0a43-44e0-9f4b-4001c0bd316a", - 6991.0 + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0 ) { - Metadata = "{\"key\":\"value\"}", - Products = 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 = "5d4848b4-f3b4-4876-80a2-0c3cad8b4139", + Products = 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","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}}, + RequestId = "9b23ceca-8fcd-4223-b5d1-bc313900377b", + Strategy = "point-preferred", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -102,14 +102,37 @@ public async Task CreateCpmTransaction4() { try { Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( - "LesoN7AsxjaX4bkzoW5SSz", - "8c6738c6-0a43-44e0-9f4b-4001c0bd316a", - 6991.0 + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0 + ) { + Metadata = "{\"key\":\"value\"}", + Products = 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 = "17be4bb8-c809-453d-a92e-7d0d45ffa480", + Strategy = "point-preferred", + }; + 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 CreateCpmTransaction5() + { + try { + Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( + "n7ms3KrOq6LmEP7tafjyhK", + "2b2444bb-682f-4e16-a776-bd7719dd99e8", + 3071.0 ) { - Description = "5w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZ", + Description = "oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySC", Metadata = "{\"key\":\"value\"}", - Products = 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","{}"}}}, - RequestId = "4051b039-c9e0-4fe2-9c2e-9b112a3bf95d", + Products = 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","{}"}}, 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 = "90bca786-33d0-4dbd-8b95-5f2ab54ccb8e", + Strategy = "point-preferred", }; Response.TransactionDetail 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 7b4011c..f0ac695 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( - "1cb02db7-0825-4691-a531-029fcfaa7244", - "281dfb2e-19ca-4bbf-8e06-7852999348ed", - "31d92e3d-7857-41c3-885d-02769a44e326", - 1581 + "e9fcbc73-446a-442a-af11-9d4e718f4bbb", + "15a97a25-9d24-41a0-88c2-02c1d478943f", + "60892a12-6cd5-426e-bd81-17b036c0862e", + 2674 ); 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( - "1cb02db7-0825-4691-a531-029fcfaa7244", - "281dfb2e-19ca-4bbf-8e06-7852999348ed", - "31d92e3d-7857-41c3-885d-02769a44e326", - 1581 + "e9fcbc73-446a-442a-af11-9d4e718f4bbb", + "15a97a25-9d24-41a0-88c2-02c1d478943f", + "60892a12-6cd5-426e-bd81-17b036c0862e", + 2674 ) { - RequestId = "3721cb7b-ab91-49d8-a1d6-1035115f8e66", + RequestId = "7f6f567b-cb7f-4e5a-ba43-92d571cd0a9e", }; 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( - "1cb02db7-0825-4691-a531-029fcfaa7244", - "281dfb2e-19ca-4bbf-8e06-7852999348ed", - "31d92e3d-7857-41c3-885d-02769a44e326", - 1581 + "e9fcbc73-446a-442a-af11-9d4e718f4bbb", + "15a97a25-9d24-41a0-88c2-02c1d478943f", + "60892a12-6cd5-426e-bd81-17b036c0862e", + 2674 ) { - Description = "7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPF", - RequestId = "e93a2f5d-53e9-42ce-96b4-e08de78dc0d9", + Description = "WIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4Jw", + RequestId = "b02ab713-2319-4e11-9f07-3f4b303addf6", }; 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 e895e29..0660e86 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateExternalTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateExternalTransaction.cs @@ -25,10 +25,10 @@ public async Task CreateExternalTransaction0() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "bf379d59-d7e5-4ec8-8eae-7d37d0c4d215", - "5c346ac3-b334-4b0c-91e4-314f858de70d", - "8e1cda68-9f3e-4c07-9ee3-ec18d9365758", - 3340 + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419 ); Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +43,12 @@ public async Task CreateExternalTransaction1() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "bf379d59-d7e5-4ec8-8eae-7d37d0c4d215", - "5c346ac3-b334-4b0c-91e4-314f858de70d", - "8e1cda68-9f3e-4c07-9ee3-ec18d9365758", - 3340 + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419 ) { - RequestId = "1d4ef1f9-7316-4b45-96fa-945f33b491e8", + DoneAt = "2021-01-20T14:26:10.000000Z", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,13 +63,13 @@ public async Task CreateExternalTransaction2() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "bf379d59-d7e5-4ec8-8eae-7d37d0c4d215", - "5c346ac3-b334-4b0c-91e4-314f858de70d", - "8e1cda68-9f3e-4c07-9ee3-ec18d9365758", - 3340 + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419 ) { - Products = 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","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"quantity",1}, {"is_discounted",false}, {"other","{}"}}}, - RequestId = "1adbb60d-9417-4fa9-b24f-3a3e4ab8874a", + RequestId = "0d295f0a-5718-4ec1-bba1-bd1bd3e0dde7", + DoneAt = "2021-07-07T14:28:23.000000Z", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -84,14 +84,37 @@ public async Task CreateExternalTransaction3() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "bf379d59-d7e5-4ec8-8eae-7d37d0c4d215", - "5c346ac3-b334-4b0c-91e4-314f858de70d", - "8e1cda68-9f3e-4c07-9ee3-ec18d9365758", - 3340 + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419 + ) { + Products = 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","{}"}}, 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 = "9cd6ac45-48e0-428c-8770-8c4eb14fca4f", + DoneAt = "2021-11-03T05:27:35.000000Z", + }; + 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 CreateExternalTransaction4() + { + try { + Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419 ) { Metadata = "{\"key\":\"value\"}", Products = 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 = "929e0727-ff16-4d77-9bfe-8bd5962f08cd", + RequestId = "5cc6b28d-851d-4a2f-870c-9514a26762fa", + DoneAt = "2023-02-04T17:31:35.000000Z", }; Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -102,19 +125,20 @@ public async Task CreateExternalTransaction3() } [Test] - public async Task CreateExternalTransaction4() + public async Task CreateExternalTransaction5() { try { Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( - "bf379d59-d7e5-4ec8-8eae-7d37d0c4d215", - "5c346ac3-b334-4b0c-91e4-314f858de70d", - "8e1cda68-9f3e-4c07-9ee3-ec18d9365758", - 3340 + "b9ccc053-f9a5-4330-9fd7-c18aa34315c4", + "82a6ad3b-5f9e-4625-92b3-3d4657514661", + "743fadf1-d302-4a5c-a88e-d78abd76b9d2", + 9419 ) { - Description = "0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu", + Description = "WmNqL0QHxylFWlu94S8FVSDMY", Metadata = "{\"key\":\"value\"}", - Products = 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","{}"}}, 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 = "3e0bdb4f-2580-451f-809c-4cbf10134359", + Products = 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","{}"}}}, + RequestId = "f87a8a35-9a42-4bd5-b75a-0918a11c1558", + DoneAt = "2024-04-03T12:38:42.000000Z", }; 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 e8cff9f..dd2e75c 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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" ) { - ContactName = "zaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFm", + ContactName = "bHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5J", }; 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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" ) { - BankAccountHolderName = ",", - ContactName = "FSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx1", + BankAccountHolderName = "マ", + ContactName = "NLUQPpDOoGNkBoKxTvABwe33", }; 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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" ) { - BankAccount = "834", - BankAccountHolderName = "(", - ContactName = "PfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wm", + BankAccount = "37654", + BankAccountHolderName = "7", + ContactName = "JOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw", }; 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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" ) { BankAccountType = "saving", - BankAccount = "710", - BankAccountHolderName = "ヨ", - ContactName = "xAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01z", + BankAccount = "12", + BankAccountHolderName = "2", + ContactName = "g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxL", }; 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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" ) { - BankBranchCode = "", + BankBranchCode = "254", BankAccountType = "current", - BankAccount = "1728474", - BankAccountHolderName = "ヲ", - ContactName = "RsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU", + BankAccount = "36599", + BankAccountHolderName = "(", + ContactName = "UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCg", }; 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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" ) { - BankBranchName = "L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjt", + BankBranchName = "e3KvTMWtvAOdqc6t4", BankBranchCode = "", BankAccountType = "other", - BankAccount = "287228", - BankAccountHolderName = "/", - ContactName = "hryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0Xi", + BankAccount = "76902", + BankAccountHolderName = " ", + ContactName = "k2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYNQbEnbMVdbi9G5aE3q4g", }; 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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" ) { BankCode = "", - BankBranchName = "6Qkur8SbZd3wcu", - BankBranchCode = "753", - BankAccountType = "other", - BankAccount = "", - BankAccountHolderName = "\\", - ContactName = "UlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysR", + BankBranchName = "93gHJA1FfneXYRV", + BankBranchCode = "216", + BankAccountType = "current", + BankAccount = "52", + BankAccountHolderName = "」", + ContactName = "WEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJ", }; 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( - "xrA24", - "28zEWnFZLX87qtedPzV8NdiYCurc", - new string[]{"c735f73c-6310-4b19-8ecf-94836f5376d0", "8cfd37da-350f-499c-8026-a6fa315ae997", "20b778f7-ba4d-4bd7-8867-94510f672fbc", "6dcc57b0-2800-4f56-8553-2b94e65e6508", "1a812366-c0bd-47f3-8689-a37037441857", "17cfd7fc-1eb9-4f62-8795-c25b9b9fe4b9", "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa"}, - "TSynCfTiWL@EN2p.com", - "Ebq7ZeB8PV@JkE9.com" + "IpXTryBWY7YmTtJYjps5n0FjmTFvO", + "PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgc", + new string[]{"07971ef5-0c75-45d7-9375-08f55cbf3d2c", "a69e0fd0-63af-4e84-b7f1-be5b4e59b404", "1567490a-a1a6-4a24-9d10-8a03fc65ced8", "ababa9dc-c249-4508-90c4-3c84b77e5ad6", "873b0ffc-9f3a-40d9-a19c-f5c0db4533de", "36a863fa-7587-4288-8eea-fece7909177b", "dde60311-22c0-4429-a995-639a5c7e8593", "00993200-a54c-458a-a906-57126a003657", "dd2f0421-0008-4bbe-8641-feaa669f0f95", "9b9d5044-b7a8-45d9-85d7-8d9572dd4684"}, + "xDRpy5o7rE@N4ei.com", + "DqYJVEg5UZ@OhJA.com" ) { - BankName = "sRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ", - BankCode = "0481", - BankBranchName = "wKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGF", - BankBranchCode = "810", - BankAccountType = "other", - BankAccount = "344456", - BankAccountHolderName = "E", - ContactName = "SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTH", + BankName = "FeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOful", + BankCode = "5929", + BankBranchName = "FK5T7Dc8oOst1MM9PmjRD", + BankBranchCode = "176", + BankAccountType = "current", + BankAccount = "73", + BankAccountHolderName = "1", + ContactName = "O5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxo", }; 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 842ff16..6851ead 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransaction.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransaction.cs @@ -25,10 +25,10 @@ public async Task CreatePaymentTransaction0() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", - "71ca7b90-1872-4df4-a134-a8af3d299b43", - "b371718c-f146-41bc-857c-75debe8b1e16", - 9418 + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817 ); Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -43,12 +43,12 @@ public async Task CreatePaymentTransaction1() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", - "71ca7b90-1872-4df4-a134-a8af3d299b43", - "b371718c-f146-41bc-857c-75debe8b1e16", - 9418 + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817 ) { - RequestId = "804fd502-9d1b-43bd-ae50-809558cde5bd", + Strategy = "money-only", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -63,13 +63,13 @@ public async Task CreatePaymentTransaction2() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", - "71ca7b90-1872-4df4-a134-a8af3d299b43", - "b371718c-f146-41bc-857c-75debe8b1e16", - 9418 + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817 ) { - Products = 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","{}"}}, 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 = "03e7ea9d-e108-479a-834c-74555284398b", + RequestId = "36984c08-b589-43fb-a762-30ba079825fc", + Strategy = "money-only", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -84,14 +84,14 @@ public async Task CreatePaymentTransaction3() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", - "71ca7b90-1872-4df4-a134-a8af3d299b43", - "b371718c-f146-41bc-857c-75debe8b1e16", - 9418 + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817 ) { - Metadata = "{\"key\":\"value\"}", - Products = 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","{}"}}, 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 = "c3f3b2c7-991f-42be-abbc-b6bb9035e04c", + Products = 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","{}"}}}, + RequestId = "dbf85d4d-d2d1-42a1-8c04-b2d2350c462f", + Strategy = "money-only", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -106,15 +106,39 @@ public async Task CreatePaymentTransaction4() { try { Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( - "0023f1f8-40cc-4a68-84a1-e8eae07d7e8a", - "71ca7b90-1872-4df4-a134-a8af3d299b43", - "b371718c-f146-41bc-857c-75debe8b1e16", - 9418 + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817 ) { - Description = "rgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQ", Metadata = "{\"key\":\"value\"}", Products = 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 = "4328a863-d14b-49a9-9d36-b39927c16cc8", + RequestId = "b0a30039-1b43-4794-8b80-367c54347fa2", + Strategy = "point-preferred", + }; + 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 CreatePaymentTransaction5() + { + try { + Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515", + 3817 + ) { + Description = "ltXlG6ahNcft22PrlsKWxGtQj4", + Metadata = "{\"key\":\"value\"}", + Products = 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","{}"}}, 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 = "765b9fd6-bb89-4323-add1-b88462cb39c1", + Strategy = "point-preferred", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransactionWithBill.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransactionWithBill.cs new file mode 100644 index 0000000..d57671d --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreatePaymentTransactionWithBill.cs @@ -0,0 +1,97 @@ +// 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 TestCreatePaymentTransactionWithBill + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task CreatePaymentTransactionWithBill0() + { + try { + Request.CreatePaymentTransactionWithBill request = new Request.CreatePaymentTransactionWithBill( + "043529dc-388b-4a13-ba46-180c03242c02", + "3683d8dc-7b0f-4d76-80d6-e2fdb9a3c188" + ); + 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 CreatePaymentTransactionWithBill1() + { + try { + Request.CreatePaymentTransactionWithBill request = new Request.CreatePaymentTransactionWithBill( + "043529dc-388b-4a13-ba46-180c03242c02", + "3683d8dc-7b0f-4d76-80d6-e2fdb9a3c188" + ) { + Strategy = "money-only", + }; + 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 CreatePaymentTransactionWithBill2() + { + try { + Request.CreatePaymentTransactionWithBill request = new Request.CreatePaymentTransactionWithBill( + "043529dc-388b-4a13-ba46-180c03242c02", + "3683d8dc-7b0f-4d76-80d6-e2fdb9a3c188" + ) { + RequestId = "385d5f7b-78a5-4f17-b452-475c5e0549b4", + Strategy = "money-only", + }; + 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 CreatePaymentTransactionWithBill3() + { + try { + Request.CreatePaymentTransactionWithBill request = new Request.CreatePaymentTransactionWithBill( + "043529dc-388b-4a13-ba46-180c03242c02", + "3683d8dc-7b0f-4d76-80d6-e2fdb9a3c188" + ) { + Metadata = "{\"key\":\"value\"}", + RequestId = "855cd346-bddd-4472-9e1f-82a1a462f935", + Strategy = "money-only", + }; + Response.TransactionDetail response = await request.Send(client); + Assert.NotNull(response, "Shouldn't be null at least"); + } catch (HttpRequestException e) { + Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); + Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); + } + } + + } +} diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateShop.cs index 65c36ea..aa72022 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( - "RH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGk" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27" ); 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( - "RH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGk" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27" ) { - OrganizationCode = "-d156", + OrganizationCode = "-z-B-kU06azg5meu5-oZm02ZiT----M", }; 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( - "RH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGk" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27" ) { - ShopExternalId = "NfDor1zgwF9x3xZsR5bLJPhH3", - OrganizationCode = "Y-rlT-", + ShopExternalId = "xmBEPErY", + OrganizationCode = "iGnGU--B3g6CQRl-9w-J-4", }; 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( - "RH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGk" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27" ) { - ShopEmail = "udXpYhNwFW@UAKO.com", - ShopExternalId = "lhna0lYNQbEnbMVdbi9G5aE3", - OrganizationCode = "5WXLS-8RX----K-J-h-s", + ShopEmail = "RvriMMqT8Y@2wPx.com", + ShopExternalId = "WWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct", + OrganizationCode = "1H-9-0vw--e2vqh0-", }; 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( - "RH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGk" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27" ) { - ShopTel = "0304-221-979", - ShopEmail = "RrC4cXtKQ0@a4OP.com", - ShopExternalId = "rt2tro65RM4SYyWPQ4", - OrganizationCode = "76A-", + ShopTel = "0686588082", + ShopEmail = "edAo6IB1Jw@I4Ht.com", + ShopExternalId = "HPlHFEuPGo3Gk", + OrganizationCode = "-sScpLT--l3-N", }; 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( - "RH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGk" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27" ) { - ShopAddress = "XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJxS2d", - ShopTel = "05-7640-4852", - ShopEmail = "b1QYmVCtk7@8Jxd.com", - ShopExternalId = "gtNZkgpDcQrvPvYu9rBG", - OrganizationCode = "RSvLJo", + ShopAddress = "8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOf", + ShopTel = "0179-11-332", + ShopEmail = "qaG2p9irVN@MOOM.com", + ShopExternalId = "Eypf2sbMz5sG", + OrganizationCode = "-VsAf-Z6--674a3", }; 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( - "RH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGk" + "wfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F27" ) { - ShopPostalCode = "631-0885", - ShopAddress = "xoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qo", - ShopTel = "021408-867", - ShopEmail = "mfQbT09Lp6@65rg.com", - ShopExternalId = "0d7eGIT", - OrganizationCode = "toK78LG2-", + ShopPostalCode = "046-0038", + ShopAddress = "LoMele3ppOb8vOALeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zq", + ShopTel = "0365-40-2058", + ShopEmail = "IsHw9iaxaP@zoaD.com", + ShopExternalId = "v6U6SXLkHad9cOSRej1Twb2rvpiwJ", + OrganizationCode = "99s4-2d", }; 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 48eacec..00ba7a8 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ); 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ) { - CanTopupPrivateMoneyIds = new string[]{"f262b24a-eccc-47ec-ae90-0b8764f2cc08", "3c5f8333-3a89-4743-add6-2dfea6aa3ced"}, + CanTopupPrivateMoneyIds = new string[]{"dcce315f-b75d-4d8a-a2d7-bf54d811acf0", "858c4786-e2b6-4fb6-af69-075bdbebcd47", "4218636a-1cb1-4b97-866c-28d26acc9652", "bf4ddf7c-702f-4a90-b958-e27eade269e0", "ce2d24a8-c4f5-407b-8d56-502cdec1c4fb", "b49877aa-e363-4ea5-b392-14b2f67f27bf", "b564977a-558b-48e5-85d1-67053a715351", "31671d62-0d7f-4dd1-9c2a-8ff74bbd3162"}, }; 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ) { - PrivateMoneyIds = new string[]{"c07e791a-ed9d-4b8c-ba2c-25b2e5c299e2"}, - CanTopupPrivateMoneyIds = new string[]{"48f8b063-dac8-4027-ad32-9e13a8e9ff9d", "a7d2d517-0a78-48d6-8248-f27ccfcf66d4", "ce8435e2-6980-4ee9-9ecf-7ac89747eba7", "040818a2-ca12-4c59-8d14-c35cfb9a6262"}, + PrivateMoneyIds = new string[]{"a61be5b1-57a5-46ba-9b7a-11553dff8544", "c176bcea-8e81-4166-b921-ee2a0a670ec7", "07888f02-f470-469f-8013-09ceda0ab7a6", "9b808ede-a46b-4849-abe9-c302bb4d1e55", "be90d044-f75b-4c98-ae76-63f3a20de583", "02e384ba-90ab-4764-a530-6037edd0abbd"}, + CanTopupPrivateMoneyIds = new string[]{"61975b82-fb33-4dc7-b9bc-bc992baf89ad", "4f181a86-371e-4492-a212-914532d85de4", "0a36cb74-3723-4fb6-8747-b2815639014a", "800c3331-f2c7-43a2-986f-a535fed953e0", "3c81bd2e-0088-41ba-8fd5-9e50f857f684", "3e6f4da2-c72d-45ab-9f00-f606e6296a10", "5d819c26-09e9-41c6-adca-13aa72f645f5", "b025251a-4ebe-4e53-a372-e145caab20c7", "c74dc1e3-bf59-4cb5-89b6-599d5fe21176"}, }; 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ) { - OrganizationCode = "DNw10---4I2pkH9-qesj5GI3Cn-O44h", - PrivateMoneyIds = new string[]{"76c8a505-8cae-45fc-ab98-3cff297e204d", "9fa9bf6e-8cd1-4a67-87fe-748794bec38a", "68e9eee6-e923-4b80-84c5-b0ec34a738aa", "69b41feb-c2d3-4c63-b4b5-85ab2524b040", "70ff18b6-06f4-4342-b340-a0d1ddca0c76", "c9972c9b-1e40-40d9-aa11-9ef99ada8138", "726c386d-86fb-4f55-92aa-c900b238a3e7", "85387fc4-5679-4c95-982e-f88edbd9fc51", "96307f3a-62a3-4314-9907-e9cffa824d8e", "410d95aa-ce18-4f01-9373-ddae58e2a968"}, - CanTopupPrivateMoneyIds = new string[]{"ffe5c119-a6f0-4bbd-87cd-3a43a5991e6b", "e7b36fe5-cdb1-48b0-bc9b-4fe647f7b7c1", "24258720-61f0-460b-9523-df996eb7d1a0", "4825f44b-468b-49a9-aaad-bc2239143f14", "33e6eac2-20a5-4dc8-bc6e-582c4257fdc1", "53068fed-b364-446c-8b7f-499172302a69", "c11e435c-358b-41d5-9d6a-ac820e483308", "459707b9-7cca-4371-a9fb-1f1614f4f9fc"}, + OrganizationCode = "-C4NW2-lp-y-ge7f5Nil9--5c", + PrivateMoneyIds = new string[]{"53d9c527-dad7-4833-866b-9cd79641807f", "3added3e-959a-4469-8d39-acdaf1094468", "386e4949-19fb-4f3a-af6f-d18f52fd75ea", "246c5cd6-700f-4e5a-afc1-24f02d046b65", "21623f30-970f-4256-a306-840e7b90fcc1", "c2944358-17ba-4102-964a-99292d8c8fce"}, + CanTopupPrivateMoneyIds = new string[]{"429113fd-da05-438a-9b04-db9c2bcb1895", "7b87f493-5001-49ce-9020-12b83332cf27", "60a4fcb1-c009-4ccc-87c9-aefb536ecf8b", "37e0b234-92af-4cb4-b8a4-c68d0b751e27", "c2cc8abb-c67f-424c-b36d-782dda1c5723", "ace724a1-1ce6-4b28-b2c0-1bc63082dc0a", "609b06d0-549c-4110-b582-e0c5058bd53c"}, }; 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ) { - ExternalId = "anI", - OrganizationCode = "02na---BtXh-gQ----cb", - PrivateMoneyIds = new string[]{"6608ae1e-43fb-40ba-8108-d1efdbb8fbfe", "6ee8ecf3-d0f8-4963-9594-e9dff17a2eb6", "3ca01b7b-a9d7-4f31-9e3d-6f761f295128", "a3889abb-4bc6-489b-a24d-854bbc16bd27", "99ef0b4e-db39-4ca8-8035-a3aa9afa5497", "df32ea32-e4bf-4f56-af55-6a6424bf17d1", "d2de9c33-f25f-4e7c-be06-043c38df0a8b", "da44ad74-38b6-4b08-b33f-a20975566c9c"}, - CanTopupPrivateMoneyIds = new string[]{"54220f70-fb7f-4b79-b3e7-d55e4b891b07", "9be76b1c-eaa0-4232-98a2-4b301af29e24", "edb863a1-ea3e-437d-be28-921afe0124e6", "18357c09-dc87-404e-a80d-186859bca0d0", "61fbb49c-cf68-413d-a546-a24b2c6462b8", "59754bed-56d5-4cf7-b1de-56bb5ebb88aa", "b9884ddc-c534-41f3-a7e6-d3a14cbd45bd"}, + ExternalId = "OVKpPzDCyUBg3VaVg5lQKirhrBQImBbF", + OrganizationCode = "-qCy0-6Qi-2Eu-gw-HYu", + PrivateMoneyIds = new string[]{"270f1533-b398-4c12-8bee-dfbdd5cc43ca", "918098f9-b1f9-4910-8e65-e0b793dc68df", "a5baeebe-17b4-4f51-9ca7-9215b4de44c0", "ab30f4b2-a297-4c18-bb90-4400a84f51e2", "c8b08476-c0a3-4cba-8526-83de622ce946"}, + CanTopupPrivateMoneyIds = new string[]{"99eed397-6ee0-4fc4-af81-bd6bc48a3601", "caaf65ae-3af5-4f25-af64-ba0c1156adfa", "68c06994-dfd0-4507-9fd3-38810804a9b7", "38b7981e-9550-460e-924a-67300ec6d1fd"}, }; 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ) { - Email = "xVOVqIgogo@brlT.com", - ExternalId = "BvrKruisPGcjRxKz0hnHtPEmOFzy", - OrganizationCode = "6--U", - PrivateMoneyIds = new string[]{"273a1055-52f9-41ab-898a-fb92aeaec7be", "825cb285-ed59-4d79-9c99-71d588823b92", "1d74d32d-4013-4412-adf7-98f73b77d640", "e23a95f9-6b53-4913-98b9-68c288d4ec35", "4503ea0d-0868-437d-bb40-cc2a049a38f4", "05dc09e7-f84e-4a26-89c4-9170d50f833d", "1dd249d5-f62a-4480-b08a-72fa0b4a49cb", "c90b550e-5da9-4f09-b9ea-fd3b12029433", "e9424542-bdc5-4c3f-b659-9ffe03d4033e"}, - CanTopupPrivateMoneyIds = new string[]{}, + Email = "9whlF6CVlM@KFHk.com", + ExternalId = "HEGRWUBVUZa1rmAxzFUF6", + OrganizationCode = "P-", + PrivateMoneyIds = new string[]{"8c7d46d3-3f18-467f-a96a-4b8a600daa44", "ed8a4f16-96f8-4f74-b8f2-4267e97de3f3", "29784c37-bc2d-40e5-88fe-09307dbe535e", "90b4bce4-5312-4e1c-abe9-3edbe62b54c1", "69ed5fc1-f2e1-471a-b86a-81774aaaf1d8", "7095212f-e4b6-4c89-9da6-5929da76f9c6", "d197d8cc-b543-4942-9fdf-805b0b52ae31", "3edce63e-ad18-4858-86de-f4dd9016afec", "51201c76-217a-4605-8211-4461d2af427a", "2a1d33be-2e53-4fc3-8528-c23dc72335fb"}, + CanTopupPrivateMoneyIds = new string[]{"c2d4fb9f-b731-4be8-bd60-3ac523fc7c0c", "ef8f2447-5086-4da0-bcb2-db2780e079c5", "c3867c06-2791-476b-abdd-065e7e5e540c", "d15debd0-0532-4a0d-ae56-942545d41008", "a926f31d-6a49-4916-90f9-aa02547bc73e", "48a18b37-8d7b-4d48-be89-a085f1ee2557", "fde796b7-db24-4fc5-9ee5-91a70488dd5c", "cf62acb7-30a8-49a9-bef3-ba6b0eff43c2", "d3beb8b9-c73a-4edd-a008-7bbc7537621f", "345c0d12-b142-4029-8228-74b1531a389e"}, }; 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ) { - Tel = "0742390910", - Email = "9vMfjs9RSV@IuRL.com", - ExternalId = "amUgod9vJRM", - OrganizationCode = "0P-En--Zn-CZ--ga-2-0-GW", - PrivateMoneyIds = new string[]{"98660730-7e5f-47a4-96d5-be2eac867b2f", "879529cd-6635-4077-869b-8c85531ee314", "da86bba6-4401-411e-9ae7-2001bba2d575", "fa9ad6e5-069a-4324-8a0d-25b6daf0f915", "e5440eb7-56e5-4515-83a8-e3a66b346db0"}, - CanTopupPrivateMoneyIds = new string[]{"0b79398a-736c-42f2-85ac-e3fb7e5a415d", "36716a4f-bbaa-443e-b88a-e345aad3351b", "9762407c-71a9-471b-89b3-2a4cff19c8b7", "ecc0c5e7-5bd7-46b6-b0d6-4aad8e7a594f", "9f064d0d-1c78-41ae-875a-ed340a127980", "92260b6a-52d2-45c6-82ce-ee61099aa936", "db08c67f-f71d-4884-a4e8-2229e710127b", "5dce3125-3a6f-4b42-8f1b-957e241fd294", "274689e9-4268-469b-93a0-be5b18b1a2ff"}, + Tel = "0335871", + Email = "30l6vspNWH@9u8x.com", + ExternalId = "q2mxjIub5W9d4fa79SnOHSfjKk", + OrganizationCode = "0-L---u--n-6--ED9", + PrivateMoneyIds = new string[]{"6fe2a41a-c9a5-4c85-9b51-1a56f3a4382a", "5a103506-7942-4106-8d06-e2b6b4616a82", "1ee4c331-8905-45b5-8253-3682b12dcacc", "ce27ae52-5154-4042-b49c-9ef0df91e49c"}, + CanTopupPrivateMoneyIds = new string[]{"9daa9bf0-836a-4f62-9e74-4c02af17e701", "8b5851b6-9517-429d-ab1d-b5d1cd633afd", "ea31d584-b21c-48ff-a0c8-5a17ba55870e", "cc0b6365-b4af-4a44-aea8-2b4b1de69cac", "e4b0b583-3981-4c78-9ed8-6296ac1c47e4", "b3ee081f-6bc5-4fe7-a68a-836029533db3", "ce16574f-c6ff-4d97-b8fb-c928745d48df", "a31d4647-846c-4ef3-9ae1-9d5661afcb24"}, }; 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ) { - Address = "dHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9", - Tel = "01954828", - Email = "NBtq0Hlr5V@UDcR.com", - ExternalId = "WhcWE5Ed0Dp6qm5en", - OrganizationCode = "TN--q7nM5--75977R-", - PrivateMoneyIds = new string[]{"a77b594a-11aa-4bcd-a72c-67092f5a4f3e", "b27c909d-1f69-42d7-9076-3ab5f1fc8993", "1d88bd09-efe4-4da4-96c1-e0a00300c1e2"}, - CanTopupPrivateMoneyIds = new string[]{"bc9dc455-6820-4b42-9714-86f4692c00e1", "f1b0431b-0336-45b8-b61b-8009606f5a21", "5b87c228-cf0c-4e86-b708-e0dd0d3c7e9f", "d967bdb9-0919-4b4b-8e67-ec73fa6e7f1a", "3d0360ef-c02c-4691-8a98-5f8ddb82cb1c", "4f5f7864-fd92-4a0e-92d7-ff54a62ded31", "3954f6eb-3950-4736-b492-e663456a4b22", "a3e61823-7b05-42e8-9a1d-1ecc35e0572b"}, + Address = "pjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYV", + Tel = "044796154", + Email = "GYQa0QPCC6@0HT3.com", + ExternalId = "9N8hkxoSQFYDUU0HuG332kYdREQC", + OrganizationCode = "7X3u--QRhnw-uws", + PrivateMoneyIds = new string[]{"ff96f8fa-1aa3-4899-9a5f-dd7025556a15", "390ea6de-ee08-45b0-80e7-87aa0f144269", "14e7b178-3bf3-4304-8299-b24bd12b845a"}, + CanTopupPrivateMoneyIds = new string[]{}, }; 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( - "rIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvR" + "YxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8Wbk" ) { - PostalCode = "524-0957", - Address = "XAsCUOeSILicKJugP", - Tel = "013-7477048", - Email = "5lpizelx6Z@w3AN.com", - ExternalId = "kreMSnigb4Yb3t6kmvyhjD7Y1lgzqI", - OrganizationCode = "q0", - PrivateMoneyIds = new string[]{"f43a7baf-a0ef-4c23-9db0-60fcb6157943"}, - CanTopupPrivateMoneyIds = new string[]{"6b3661c8-0960-41b1-ab15-1d305711bcc7", "4e9936d1-6b62-4a39-975f-c0364fdf18ca", "e73755fa-3863-455e-a57d-da1679da01e6", "52e812b7-d326-4c66-a0b3-45c8ec500426"}, + PostalCode = "753-2948", + Address = "QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8HDeIrg38UDixRQOsOxJyiut30oRsSLi4FAWjvNFlMGhO7MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7", + Tel = "047-0365719", + Email = "MQbpvWdRIf@0j2N.com", + ExternalId = "Gpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvI", + OrganizationCode = "-kA-d-vVP24Hv5n4i--Ni-9-Jl-68--B", + PrivateMoneyIds = new string[]{"5b22f3de-40f4-4db9-bee6-5bcd910fc4df"}, + CanTopupPrivateMoneyIds = new string[]{"4799467f-8c8e-4e32-94e8-ea642c57b6fd", "3e93a12c-0980-4397-861b-c6d2adad19ff", "deea532f-a234-4cdc-9a82-8eae337654c7", "bee6e6ed-b31d-49c3-b39c-fb6c375ec5d9", "bfd7fa9a-5453-46dc-a46b-a27e07ce50d2", "fd5eae2c-fde4-44bd-89c8-2e6c8c30a3c2", "61a7f96f-a5b7-4490-a95c-884da1852dc7"}, }; 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 1203a22..2f150dd 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( - "13ea8a00-1672-42e9-8759-7ae9b93c833d", - "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", - "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" ); 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( - "13ea8a00-1672-42e9-8759-7ae9b93c833d", - "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", - "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" ) { - RequestId = "75afb6bb-7a0e-498e-8626-5857d985893b", + RequestId = "596f0432-5245-4b2c-947f-e01c5f707595", }; 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( - "13ea8a00-1672-42e9-8759-7ae9b93c833d", - "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", - "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" ) { Metadata = "{\"key\":\"value\"}", - RequestId = "5c5ecec9-0f1b-45e5-ab8d-252faf1ef03e", + RequestId = "2eff3cf4-8bcd-4b65-ac33-329b88bf6270", }; 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( - "13ea8a00-1672-42e9-8759-7ae9b93c833d", - "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", - "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" ) { - Description = "B413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210Vo", + Description = "BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc", Metadata = "{\"key\":\"value\"}", - RequestId = "ef50e897-cc7a-4959-ab43-f3fa6bf94d81", + RequestId = "5c21d623-cd5c-4a5d-b262-e3052e84a4f4", }; 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( - "13ea8a00-1672-42e9-8759-7ae9b93c833d", - "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", - "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" ) { - PointExpiresAt = "2023-04-17T19:00:11.000000Z", - Description = "4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21", + PointExpiresAt = "2023-03-27T19:42:52.000000Z", + Description = "I2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClY", Metadata = "{\"key\":\"value\"}", - RequestId = "ef9cdccd-f19a-4961-af30-71e90fcf08bc", + RequestId = "2f31c991-bd49-455a-b611-2142d27c2471", }; 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( - "13ea8a00-1672-42e9-8759-7ae9b93c833d", - "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", - "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" ) { - PointAmount = 3202, - PointExpiresAt = "2024-03-02T12:46:31.000000Z", - Description = "x72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpT", + PointAmount = 4788, + PointExpiresAt = "2022-03-24T05:23:15.000000Z", + Description = "53pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa", Metadata = "{\"key\":\"value\"}", - RequestId = "fced7420-b56c-4bd5-98a5-5f4be056920c", + RequestId = "11f2f128-b0b7-44a5-b0a4-0b6fa268acb7", }; 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( - "13ea8a00-1672-42e9-8759-7ae9b93c833d", - "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", - "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" ) { - MoneyAmount = 5461, - PointAmount = 555, - PointExpiresAt = "2022-07-30T13:12:06.000000Z", - Description = "ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVN", + MoneyAmount = 7312, + PointAmount = 9890, + PointExpiresAt = "2023-07-16T09:17:48.000000Z", + Description = "FXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H", Metadata = "{\"key\":\"value\"}", - RequestId = "a0db3eec-5bbf-4c95-8f0e-96e89e7c004e", + RequestId = "93b3b834-b7bc-40c2-94b2-10c9433172e4", }; 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( - "13ea8a00-1672-42e9-8759-7ae9b93c833d", - "ea5fdad0-b87b-4d00-a93a-e3b870df68c8", - "d99fde8a-c6ee-4ae4-b44c-324b71153ee7" + "3f5a5ad8-fae3-4665-9fc4-80a9e12e0faf", + "bc5d5d55-05fe-4382-9437-de30ebaadccb", + "1fff9f52-37db-46c7-9530-65fc8ee93087" ) { - BearPointShopId = "db94a50f-e06f-4452-8555-1b698d3a02ef", - MoneyAmount = 7394, - PointAmount = 5950, - PointExpiresAt = "2020-03-02T05:31:46.000000Z", - Description = "no3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9", + BearPointShopId = "8765ff4c-2a65-4805-83fb-a022773927ca", + MoneyAmount = 964, + PointAmount = 4564, + PointExpiresAt = "2023-10-15T17:28:08.000000Z", + Description = "CEki4ZW2q7YUbIlt759X", Metadata = "{\"key\":\"value\"}", - RequestId = "f5ac24ee-824d-4fbc-ab66-fb2cda88657f", + RequestId = "d0bfe218-608f-4aeb-90e4-96b0f5eab10d", }; 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 d4e02ff..d62f236 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( - "5182f51c-b2c1-4d48-ae90-3958c0ce3233", - "508dfc0b-9993-4e4c-8ff3-ab36127350a5" + "fc441050-d5e4-423d-ae39-63cc30b66b15", + "486bcb6d-fc87-4235-868d-75c6905ca2b7" ); 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( - "5182f51c-b2c1-4d48-ae90-3958c0ce3233", - "508dfc0b-9993-4e4c-8ff3-ab36127350a5" + "fc441050-d5e4-423d-ae39-63cc30b66b15", + "486bcb6d-fc87-4235-868d-75c6905ca2b7" ) { - RequestId = "60fe0e50-aba1-4233-bb7c-2964f54d34af", + RequestId = "1f313dd8-be6d-4f70-af60-17222eb9b471", }; 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 af109d6..5b30748 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( - "7d0c35ee-368e-4367-b1b9-7450d58a908a", - "03b55bbd-4b51-4d0a-a651-09f86bc0644b", - "3e4e52d2-8a22-4bf6-858b-12737d17e30e" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5" ); 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( - "7d0c35ee-368e-4367-b1b9-7450d58a908a", - "03b55bbd-4b51-4d0a-a651-09f86bc0644b", - "3e4e52d2-8a22-4bf6-858b-12737d17e30e" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5" ) { - Description = "f3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98", + Description = "Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7", }; 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( - "7d0c35ee-368e-4367-b1b9-7450d58a908a", - "03b55bbd-4b51-4d0a-a651-09f86bc0644b", - "3e4e52d2-8a22-4bf6-858b-12737d17e30e" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5" ) { - PointExpiresAt = "2020-12-19T08:10:59.000000Z", - Description = "RslDBuoJSIFUrTRne91u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6r", + PointExpiresAt = "2023-04-28T14:17:57.000000Z", + Description = "ZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9", }; 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( - "7d0c35ee-368e-4367-b1b9-7450d58a908a", - "03b55bbd-4b51-4d0a-a651-09f86bc0644b", - "3e4e52d2-8a22-4bf6-858b-12737d17e30e" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5" ) { - PointAmount = 7732, - PointExpiresAt = "2020-11-06T18:59:57.000000Z", - Description = "uMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsd", + PointAmount = 6465, + PointExpiresAt = "2020-12-08T17:02:41.000000Z", + Description = "2xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqz", }; 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( - "7d0c35ee-368e-4367-b1b9-7450d58a908a", - "03b55bbd-4b51-4d0a-a651-09f86bc0644b", - "3e4e52d2-8a22-4bf6-858b-12737d17e30e" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5" ) { - MoneyAmount = 3726, - PointAmount = 4261, - PointExpiresAt = "2022-09-28T03:30:59.000000Z", - Description = "EcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rr", + MoneyAmount = 5766, + PointAmount = 4156, + PointExpiresAt = "2023-09-25T18:36:20.000000Z", + Description = "sahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8", }; Response.TransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateTransactionWithCashtray.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateTransactionWithCashtray.cs new file mode 100644 index 0000000..b9e80e9 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateTransactionWithCashtray.cs @@ -0,0 +1,77 @@ +// 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 TestCreateTransactionWithCashtray + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task CreateTransactionWithCashtray0() + { + try { + Request.CreateTransactionWithCashtray request = new Request.CreateTransactionWithCashtray( + "b31e24ee-bae3-4d1c-8527-1b90f844dd57", + "284f4ed9-5ebb-4281-839d-39e539d857e2" + ); + 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 CreateTransactionWithCashtray1() + { + try { + Request.CreateTransactionWithCashtray request = new Request.CreateTransactionWithCashtray( + "b31e24ee-bae3-4d1c-8527-1b90f844dd57", + "284f4ed9-5ebb-4281-839d-39e539d857e2" + ) { + RequestId = "e5388685-8af4-4034-92d5-e70497d41247", + }; + 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 CreateTransactionWithCashtray2() + { + try { + Request.CreateTransactionWithCashtray request = new Request.CreateTransactionWithCashtray( + "b31e24ee-bae3-4d1c-8527-1b90f844dd57", + "284f4ed9-5ebb-4281-839d-39e539d857e2" + ) { + Strategy = "point-preferred", + RequestId = "ff3134f1-4d2c-4a5c-be7d-b354cd737611", + }; + Response.TransactionDetail response = await request.Send(client); + Assert.NotNull(response, "Shouldn't be null at least"); + } catch (HttpRequestException e) { + Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); + Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); + } + } + + } +} diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateTransferTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateTransferTransaction.cs index 6d68b8d..b529ecc 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( - "cb2e2014-4159-4728-9602-efca28d8b055", - "184311a7-9321-4246-97f0-06346bfc44af", - "d2d0b553-e94a-45dd-841b-286411cac5bd", - 9488.0 + "bbfc300f-29b3-4f1e-bf77-dce3208c609a", + "e50c0c75-8de3-4c65-bd79-2a9c0afcb153", + "61d47201-1943-4e29-a2de-f32920af4061", + 9250.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( - "cb2e2014-4159-4728-9602-efca28d8b055", - "184311a7-9321-4246-97f0-06346bfc44af", - "d2d0b553-e94a-45dd-841b-286411cac5bd", - 9488.0 + "bbfc300f-29b3-4f1e-bf77-dce3208c609a", + "e50c0c75-8de3-4c65-bd79-2a9c0afcb153", + "61d47201-1943-4e29-a2de-f32920af4061", + 9250.0 ) { - RequestId = "85bbf99e-4d40-4339-96dc-cb77f9c8771b", + RequestId = "3372b4e2-3678-43f2-9a67-43d460afc00f", }; 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( - "cb2e2014-4159-4728-9602-efca28d8b055", - "184311a7-9321-4246-97f0-06346bfc44af", - "d2d0b553-e94a-45dd-841b-286411cac5bd", - 9488.0 + "bbfc300f-29b3-4f1e-bf77-dce3208c609a", + "e50c0c75-8de3-4c65-bd79-2a9c0afcb153", + "61d47201-1943-4e29-a2de-f32920af4061", + 9250.0 ) { - Description = "ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8", - RequestId = "300ec42e-5054-42ad-9e97-496361c8428f", + Description = "XSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0", + RequestId = "e3ebd02f-f595-401f-ba91-98f18f6188ae", }; 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( - "cb2e2014-4159-4728-9602-efca28d8b055", - "184311a7-9321-4246-97f0-06346bfc44af", - "d2d0b553-e94a-45dd-841b-286411cac5bd", - 9488.0 + "bbfc300f-29b3-4f1e-bf77-dce3208c609a", + "e50c0c75-8de3-4c65-bd79-2a9c0afcb153", + "61d47201-1943-4e29-a2de-f32920af4061", + 9250.0 ) { Metadata = "{\"key\":\"value\"}", - Description = "1YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9", - RequestId = "e4d41562-967b-4c4e-bb24-e3c0e3e867bc", + Description = "HqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq", + RequestId = "009743b5-a7fd-4c30-a691-3510e5264873", }; 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 4fc32a3..4d9a558 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( - "2b484c8d-7ac3-4045-b735-e47e95bba404" + "4ea24557-a9ad-45e1-8ef8-ba54722bb680" ); 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( - "2b484c8d-7ac3-4045-b735-e47e95bba404" + "4ea24557-a9ad-45e1-8ef8-ba54722bb680" ) { 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 72309c5..678d599 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs @@ -26,7 +26,7 @@ public async Task CreateWebhook0() try { Request.CreateWebhook request = new Request.CreateWebhook( "bulk_shops", - "Dqh" + "r" ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestDeleteBank.cs b/src/PokepayPartnerCsharpSdk.Test/TestDeleteBank.cs new file mode 100644 index 0000000..9a2f735 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestDeleteBank.cs @@ -0,0 +1,40 @@ +// 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 TestDeleteBank + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task DeleteBank0() + { + try { + Request.DeleteBank request = new Request.DeleteBank( + "ff2aa541-5a6a-4f18-8bd7-738d81c15685", + "5bf9a58a-fff9-4ffa-b182-fc163e53629b" + ); + Response.BankDeleted 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/TestDeleteWebhook.cs b/src/PokepayPartnerCsharpSdk.Test/TestDeleteWebhook.cs index adf86c7..4e1223b 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( - "d8465433-6f93-489b-8440-fbbfbbe35ffc" + "40f5baf7-7651-487b-8be8-e3c801c9b0d4" ); Response.OrganizationWorkerTaskWebhook 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 68f8e83..0f098e1 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( - "0de2a38c-c7bc-4b5d-be03-229e54b13590" + "d79ada44-2554-41d3-a753-5725590e9c63" ); Response.AccountTransferSummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task GetAccountTransferSummary1() { try { Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( - "0de2a38c-c7bc-4b5d-be03-229e54b13590" + "d79ada44-2554-41d3-a753-5725590e9c63" ) { - TransferTypes = new string[]{"use-coupon", "topup", "refund-payment", "refund-exchange-outflow"}, + TransferTypes = new string[]{"exchange-outflow", "exchange-inflow", "refund-topup", "use-coupon", "refund-coupon", "payment", "refund-campaign", "campaign-topup", "refund-exchange-outflow"}, }; Response.AccountTransferSummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task GetAccountTransferSummary2() { try { Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( - "0de2a38c-c7bc-4b5d-be03-229e54b13590" + "d79ada44-2554-41d3-a753-5725590e9c63" ) { - To = "2021-11-24T19:26:35.000000Z", - TransferTypes = new string[]{"refund-campaign", "campaign-topup"}, + To = "2022-08-23T05:52:55.000000Z", + TransferTypes = new string[]{"exchange-outflow", "use-coupon", "refund-payment", "topup", "payment", "exchange-inflow", "refund-exchange-outflow"}, }; Response.AccountTransferSummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task GetAccountTransferSummary3() { try { Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( - "0de2a38c-c7bc-4b5d-be03-229e54b13590" + "d79ada44-2554-41d3-a753-5725590e9c63" ) { - 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"}, + From = "2024-08-01T20:42:17.000000Z", + To = "2022-12-23T22:37:41.000000Z", + TransferTypes = new string[]{"refund-campaign", "refund-payment", "use-coupon", "refund-exchange-outflow", "exchange-inflow", "refund-topup"}, }; Response.AccountTransferSummary response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetBill.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetBill.cs new file mode 100644 index 0000000..86bc2d1 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetBill.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 TestGetBill + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task GetBill0() + { + try { + Request.GetBill request = new Request.GetBill( + "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + ); + Response.Bill 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/TestGetBulkTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetBulkTransaction.cs index b459408..3348348 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( - "a25f57a5-46ba-451b-ba55-8544c176bcea" + "840450ba-1c9b-4ef1-9283-ccbcb58e551d" ); 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 6f5d662..abfb83a 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( - "80025eef-3d21-416d-9453-9c1fd38b6ca4" + "84b8dfd6-9bc7-4614-b495-fd59a06a3124" ); 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 276d04f..3652720 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( - "8cb6134b-bc16-4dbc-b1dd-0989392e23bb" + "5de26254-9b80-4026-965b-ac60aac618a1" ); 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 a619793..8e3016c 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( - "76f6c609-4f7a-46b2-bbdc-601fe6a71ffa" + "f616c977-5ef1-4010-ae24-f1fe2440fe98" ); 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 131a6d1..39bbe77 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( - "93e6b698-47a5-4a9d-b47b-3fb83ebe9192" + "6997ecc7-ef4f-4c14-99e2-aa142dee1a8e" ); 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 7f5fe3a..2326a69 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( - "yrfJOMPlYYA9d24g2qlkQe" + "TjYiVtdGDmgs4Vk2VUx2tI" ); 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 7763c3a..688553c 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( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ); 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( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { - Email = "p2RluFOAxJ@TKKl.com", + Email = "cm0Sp2RluF@OAxJ.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( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { - Tel = "00555265714", - Email = "cJlnsa7zuy@1tus.com", + Tel = "07-0551-2657", + Email = "TcJlnsa7zu@y1tu.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( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { ExternalId = "dw", Tel = "071-69745487", @@ -94,7 +94,7 @@ public async Task GetCustomerAccounts4() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { Status = "suspended", ExternalId = "lnKRmCd4n", @@ -114,7 +114,7 @@ public async Task GetCustomerAccounts5() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { IsSuspended = false, Status = "active", @@ -135,7 +135,7 @@ public async Task GetCustomerAccounts6() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { CreatedAtTo = "2022-07-27T22:59:50.000000Z", IsSuspended = true, @@ -157,7 +157,7 @@ public async Task GetCustomerAccounts7() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { CreatedAtFrom = "2021-03-24T19:42:09.000000Z", CreatedAtTo = "2020-09-24T18:38:11.000000Z", @@ -180,7 +180,7 @@ public async Task GetCustomerAccounts8() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { PerPage = 6435, CreatedAtFrom = "2022-12-18T13:21:30.000000Z", @@ -204,7 +204,7 @@ public async Task GetCustomerAccounts9() { try { Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( - "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" + "e981839f-7730-40a4-9991-3f49bc7c0625" ) { Page = 8687, PerPage = 8494, diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetExternalTransactionByRequestId.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetExternalTransactionByRequestId.cs index bb6d1a7..90a3144 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestGetExternalTransactionByRequestId.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetExternalTransactionByRequestId.cs @@ -25,7 +25,7 @@ public async Task GetExternalTransactionByRequestId0() { try { Request.GetExternalTransactionByRequestId request = new Request.GetExternalTransactionByRequestId( - "a1f90aa9-d114-45f3-8f90-fa912f9329ef" + "6ab4e738-e328-45ce-8f6f-b15220719c65" ); Response.ExternalTransactionDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneyOrganizationSummaries.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetPrivateMoneyOrganizationSummaries.cs index b1f57db..ae4c371 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( - "6c69519c-629e-42bf-a323-61b53531887b" + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2" ); 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( - "6c69519c-629e-42bf-a323-61b53531887b" + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2" ) { - Page = 9718, + Page = 3575, }; 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( - "6c69519c-629e-42bf-a323-61b53531887b" + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2" ) { - PerPage = 5526, - Page = 9523, + PerPage = 786, + Page = 9388, }; 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( - "6c69519c-629e-42bf-a323-61b53531887b" + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2" ) { - From = "2021-05-16T22:08:37.000000Z", - To = "2022-03-18T14:41:36.000000Z", + From = "2021-07-08T02:56:08.000000Z", + To = "2023-06-06T23:02:57.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( - "6c69519c-629e-42bf-a323-61b53531887b" + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2" ) { - From = "2023-12-25T08:58:49.000000Z", - To = "2022-02-05T06:15:53.000000Z", - Page = 3359, + From = "2023-06-27T10:38:34.000000Z", + To = "2022-11-02T13:31:55.000000Z", + Page = 2674, }; 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( - "6c69519c-629e-42bf-a323-61b53531887b" + "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2" ) { - From = "2021-06-11T14:08:29.000000Z", - To = "2022-12-27T10:10:34.000000Z", - PerPage = 9682, - Page = 4040, + From = "2022-12-20T19:43:54.000000Z", + To = "2023-05-23T12:19:55.000000Z", + PerPage = 7864, + Page = 7955, }; 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 3cbaf4c..d55d01f 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( - "dbd3f582-dc6f-4a85-9f52-b6e55af92926" + "7a759460-1bbe-4529-a2c7-cd0126587642" ); 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( - "dbd3f582-dc6f-4a85-9f52-b6e55af92926" + "7a759460-1bbe-4529-a2c7-cd0126587642" ) { - To = "2020-03-24T13:03:12.000000Z", + To = "2022-12-18T18:44:19.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( - "dbd3f582-dc6f-4a85-9f52-b6e55af92926" + "7a759460-1bbe-4529-a2c7-cd0126587642" ) { - From = "2020-12-25T12:28:03.000000Z", - To = "2021-06-11T03:44:43.000000Z", + From = "2022-01-12T23:51:33.000000Z", + To = "2023-10-31T16:30:14.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 b36d7fa..6fbdbee 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 = 3812, + PerPage = 6737, }; 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 = 2373, - PerPage = 3996, + Page = 8245, + PerPage = 5538, }; 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 = "r-2Rz3-Qv", - Page = 4086, - PerPage = 9948, + OrganizationCode = "OTg-1wn4-v-Swg5-l", + Page = 2357, + PerPage = 2440, }; Response.PaginatedPrivateMoneys response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetSevenBankATMSession.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetSevenBankATMSession.cs new file mode 100644 index 0000000..3359e57 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestGetSevenBankATMSession.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 TestGetSevenBankAtmSession + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task GetSevenBankAtmSession0() + { + try { + Request.GetSevenBankAtmSession request = new Request.GetSevenBankAtmSession( + "shU" + ); + Response.SevenBankATMSession 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/TestGetShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetShop.cs index f557325..15dfd98 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( - "06c8253e-0065-45de-a8be-65fc3befde31" + "94aa6ff3-6fa8-4397-ac2e-4191001a3a51" ); Response.ShopWithAccounts 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 f600688..ef48e83 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( - "b565b672-b514-4cf3-820e-903c13690a37" + "f3d53414-b9b1-4642-8d45-e672258d5f36" ); 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 67c0ec9..f326caa 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( - "f3027cdc-cecb-44d8-9caf-16a24a154305" + "8883efc8-e51b-4398-b0e4-a7128b8d91b2" ); 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 67b436e..85b6001 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( - "750c1c12-f9b8-4633-bcca-f33284d572d7" + "e7ba11f4-b63e-40b5-957f-e4d3badc4f8d" ); 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 4be19ee..5083c42 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListAccountBalances.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListAccountBalances.cs @@ -78,7 +78,7 @@ public async Task ListAccountBalances3() "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) { ExpiresAtFrom = "2020-09-07T21:25:03.000000Z", - ExpiresAtTo = "2022-05-06T04:41:55.000000Z", + ExpiresAtTo = "2024-10-02T20:33:17.000000Z", Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -96,10 +96,10 @@ public async Task ListAccountBalances4() Request.ListAccountBalances request = new Request.ListAccountBalances( "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) { - PerPage = 3844, - ExpiresAtFrom = "2022-07-13T08:37:39.000000Z", - ExpiresAtTo = "2022-05-05T20:55:29.000000Z", - Direction = "asc", + PerPage = 5374, + ExpiresAtFrom = "2021-01-13T03:58:59.000000Z", + ExpiresAtTo = "2024-09-16T05:40:45.000000Z", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -116,11 +116,11 @@ public async Task ListAccountBalances5() Request.ListAccountBalances request = new Request.ListAccountBalances( "0adcc451-9f5b-4fe8-8803-fd1118c34c95" ) { - Page = 677, - PerPage = 5673, - ExpiresAtFrom = "2021-09-28T23:27:27.000000Z", - ExpiresAtTo = "2020-10-21T06:08:14.000000Z", - Direction = "desc", + Page = 9044, + PerPage = 3584, + ExpiresAtFrom = "2024-10-29T10:47:52.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"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListAccountExpiredBalances.cs b/src/PokepayPartnerCsharpSdk.Test/TestListAccountExpiredBalances.cs index 33c2576..0ec164e 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( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ); Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task ListAccountExpiredBalances1() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) { Direction = "desc", }; @@ -57,9 +57,9 @@ public async Task ListAccountExpiredBalances2() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) { - ExpiresAtTo = "2020-03-19T18:01:03.000000Z", + ExpiresAtTo = "2020-10-21T06:08:14.000000Z", Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); @@ -75,11 +75,11 @@ public async Task ListAccountExpiredBalances3() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) { - ExpiresAtFrom = "2022-12-28T17:18:58.000000Z", - ExpiresAtTo = "2023-10-07T04:30:21.000000Z", - Direction = "desc", + ExpiresAtFrom = "2024-05-06T22:47:15.000000Z", + ExpiresAtTo = "2021-02-10T04:23:33.000000Z", + Direction = "asc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task ListAccountExpiredBalances4() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) { - PerPage = 9557, - ExpiresAtFrom = "2023-08-29T00:06:37.000000Z", - ExpiresAtTo = "2020-05-27T19:21:15.000000Z", - Direction = "asc", + PerPage = 9269, + ExpiresAtFrom = "2022-07-27T12:24:37.000000Z", + ExpiresAtTo = "2020-03-19T18:01:03.000000Z", + Direction = "desc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task ListAccountExpiredBalances5() { try { Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( - "e82d7cf3-7ec5-43b0-a747-7fff9e012434" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ) { - Page = 4163, - PerPage = 2955, - ExpiresAtFrom = "2021-01-23T23:18:48.000000Z", - ExpiresAtTo = "2021-06-11T20:14:34.000000Z", - Direction = "desc", + Page = 6531, + PerPage = 2579, + ExpiresAtFrom = "2023-10-07T04:30:21.000000Z", + ExpiresAtTo = "2023-04-20T20:38:29.000000Z", + Direction = "asc", }; Response.PaginatedAccountBalance response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBanks.cs index 79f855b..e44accc 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( - "175cd196-2ac6-427b-90f5-2577774f7d6e" + "a93523c3-c82b-48f6-8aef-f836ca1e947f" ); 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( - "175cd196-2ac6-427b-90f5-2577774f7d6e" + "a93523c3-c82b-48f6-8aef-f836ca1e947f" ) { - PrivateMoneyId = "034b0e80-413f-4187-9bad-4f65852eee3b", + PrivateMoneyId = "740ad7e3-2cf6-4982-853a-944753ac1844", }; Response.Banks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListBillTransactions.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBillTransactions.cs new file mode 100644 index 0000000..792b8e6 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestListBillTransactions.cs @@ -0,0 +1,367 @@ +// 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 TestListBillTransactions + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task ListBillTransactions0() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions(); + Response.PaginatedBillTransaction 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 ListBillTransactions1() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + PerPage = 56, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions2() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + PrevPageCursorId = "ae10569f-1d41-4887-8ef3-f829a6118181", + PerPage = 277, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions3() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + NextPageCursorId = "61f2d778-7e6a-499a-9da6-1328bb36d1db", + PrevPageCursorId = "6775c961-2758-4534-82ae-ae62103877bb", + PerPage = 748, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions4() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + To = "2024-04-07T17:08:17.000000Z", + NextPageCursorId = "7eeeed13-9586-4300-ba6f-8c572fb5b67c", + PrevPageCursorId = "6e5a28a4-b735-4853-8282-71d37ce74391", + PerPage = 516, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions5() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + From = "2024-02-25T23:28:43.000000Z", + To = "2023-10-04T19:41:46.000000Z", + NextPageCursorId = "8c6738c6-0a43-44e0-9f4b-4001c0bd316a", + PrevPageCursorId = "77d568df-db4f-48a6-855e-663e7f449dfc", + PerPage = 925, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions6() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + IsModified = false, + From = "2020-10-13T22:18:32.000000Z", + To = "2021-03-14T08:11:30.000000Z", + NextPageCursorId = "8414273b-f9b9-4d7c-9016-a811660a23ca", + PrevPageCursorId = "013b7a5a-cc0a-48f1-b4b4-e87625084840", + PerPage = 931, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions7() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + BillId = "c6570c3c-4139-43a5-b577-ab248b1ce2b5", + IsModified = false, + From = "2024-05-21T14:08:20.000000Z", + To = "2021-03-11T21:07:10.000000Z", + NextPageCursorId = "eb9908a8-81c2-40c1-a2bb-b391414d2da6", + PrevPageCursorId = "220fd273-74a1-4594-8d33-0285ecaa85e9", + PerPage = 320, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions8() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + TransactionId = "9df3475f-9c60-46db-b893-f4e42459673f", + BillId = "18e983d7-4ddb-4afb-a3e4-963b9949e133", + IsModified = false, + From = "2024-04-03T07:49:00.000000Z", + To = "2024-11-10T04:11:38.000000Z", + NextPageCursorId = "a88089c7-49e7-43b9-abb8-8583b0e9167a", + PrevPageCursorId = "a33bae58-e499-4935-8127-4926dff9f028", + PerPage = 559, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions9() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + Description = "x6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9", + TransactionId = "c7e1c9e0-9fe2-441c-ae11-f95dcb2e2014", + BillId = "5d254159-6728-4b16-82ca-b055184311a7", + IsModified = false, + From = "2024-02-27T20:30:15.000000Z", + To = "2023-11-16T14:32:16.000000Z", + NextPageCursorId = "8b430634-44af-4553-8add-70c475d4281b", + PrevPageCursorId = "2f3b2864-c5bd-4510-9e40-b3396640ebd6", + PerPage = 733, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions10() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + TerminalId = "9f50cb77-771b-4ab0-a768-689c030f0c76", + Description = "UwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4N", + TransactionId = "7cbf90a1-a822-4b22-adc0-bc343a43ad50", + BillId = "b9500422-ec62-4417-b19a-79ee60c75c30", + IsModified = false, + From = "2023-03-23T05:25:33.000000Z", + To = "2024-08-07T02:39:31.000000Z", + NextPageCursorId = "a2020375-8a18-4341-8ac9-672a118ce7f9", + PrevPageCursorId = "9cdc72e4-177e-49b8-ae54-c2adfe99059e", + PerPage = 664, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions11() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + CustomerName = "91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82", + TerminalId = "751b85e8-29e8-452e-b5af-35a1d2bdb475", + Description = "d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu", + TransactionId = "f69f102d-c127-4b87-bf99-151ce6ae582e", + BillId = "b0344a88-9d87-4c30-b600-7c09a8fbc3c6", + IsModified = true, + From = "2020-08-24T16:27:11.000000Z", + To = "2020-05-25T18:36:53.000000Z", + NextPageCursorId = "1752a938-a806-4700-812a-ce6a1376a787", + PrevPageCursorId = "dd6546a2-47f5-497c-bae5-7dce97ce7049", + PerPage = 847, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions12() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + CustomerId = "836bfeda-3beb-4925-803f-3ef4ea8d0525", + CustomerName = "FZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaL", + TerminalId = "f679ccf2-2131-4cc2-875f-1edefa6d078b", + Description = "dgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJ", + TransactionId = "d2baffbf-7e4c-41a5-84ee-b2dc4d5c50b1", + BillId = "7dc4491c-ca54-464f-9708-f5566bb1ed4e", + IsModified = false, + From = "2021-10-23T22:07:58.000000Z", + To = "2020-03-03T21:38:33.000000Z", + NextPageCursorId = "662e072b-e0e7-4d61-8eac-bbfba778ac89", + PrevPageCursorId = "112cd136-fded-4686-a7e1-c3d336473dda", + PerPage = 600, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions13() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + ShopId = "499bdeaa-5aca-43ee-9e2b-bbbc64a7a92f", + CustomerId = "67640787-e487-4431-902c-212a92489fbf", + CustomerName = "27yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeH", + TerminalId = "7d1fa0ce-bfae-4d37-95c3-b33438410b0c", + Description = "dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBI", + TransactionId = "74340d0c-b4d8-4d14-9eb1-c93f4e776bca", + BillId = "d67b9fc2-0a8b-46e7-a55d-e3eecfca28f2", + IsModified = false, + From = "2022-07-15T20:01:53.000000Z", + To = "2020-12-01T12:39:39.000000Z", + NextPageCursorId = "26143e4c-e6c6-4c08-aca2-394c50221b80", + PrevPageCursorId = "ba703613-4ba8-49b5-91a9-eaebbf8ef162", + PerPage = 413, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions14() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + OrganizationCode = "-JM0--0QZJW45L4--5wtjozI-W--", + ShopId = "0504d554-1d24-4688-871a-8929fadd450d", + CustomerId = "20da627f-1b83-4e45-9aa8-8b437065e522", + CustomerName = "vJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFj", + TerminalId = "223980fa-6631-4b99-9e77-bb2ede1bbe8a", + Description = "njIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdH", + TransactionId = "6780d9f1-0e5a-424c-926c-b000fdc9ab76", + BillId = "9be9b330-63b1-4186-bd77-b1475a6b1196", + IsModified = true, + From = "2021-03-18T03:24:33.000000Z", + To = "2023-07-03T15:13:06.000000Z", + NextPageCursorId = "816d68cf-889f-4a8c-95a7-fb98eccdf35f", + PrevPageCursorId = "cf7b458a-7025-486e-b26a-e5c9120336f3", + PerPage = 682, + }; + Response.PaginatedBillTransaction 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 ListBillTransactions15() + { + try { + Request.ListBillTransactions request = new Request.ListBillTransactions() { + PrivateMoneyId = "76791946-64f3-4157-87e2-b3ef44c464b7", + OrganizationCode = "e--7KIZ-5F4aBdti--U", + ShopId = "641effa6-09b0-486b-b864-f9f8d48ffd20", + CustomerId = "1d181475-934b-479c-8509-d2404d9ba8e7", + CustomerName = "CFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9v", + TerminalId = "3eaa7dcf-ffee-4e5e-b636-69b744678473", + Description = "poRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3X", + TransactionId = "9f127cf3-48b6-44cb-bc80-e97c4ef1d016", + BillId = "72445462-76de-46cb-914f-14212875dcea", + IsModified = false, + From = "2024-01-12T11:30:25.000000Z", + To = "2021-07-22T03:51:53.000000Z", + NextPageCursorId = "d112db9e-484c-4013-b33f-a80bdf78c770", + PrevPageCursorId = "48a8f9bd-bb68-44f8-8e63-671f948026ca", + PerPage = 404, + }; + Response.PaginatedBillTransaction response = await request.Send(client); + Assert.NotNull(response, "Shouldn't be null at least"); + } catch (HttpRequestException e) { + Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); + Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); + } + } + + } +} diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs index acd637f..b130547 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListBills.cs @@ -123,12 +123,12 @@ public async Task ListBills6() { try { Request.ListBills request = new Request.ListBills() { - CreatedTo = "2021-06-15T05:13:23.000000Z", - ShopName = "tCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acl", - ShopId = "cbef9865-d3d6-4852-b37c-6b70d28869e3", - LowerLimitAmount = 868, - UpperLimitAmount = 2036, - IsDisabled = false, + CreatedTo = "2024-04-18T15:33:35.000000Z", + ShopName = "stCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25u", + ShopId = "8767767b-8976-455e-afdf-74728b146513", + LowerLimitAmount = 6765, + UpperLimitAmount = 7751, + IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -143,13 +143,13 @@ public async Task ListBills7() { try { Request.ListBills request = new Request.ListBills() { - CreatedFrom = "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, + CreatedFrom = "2022-07-30T05:48:44.000000Z", + CreatedTo = "2020-11-03T12:14:03.000000Z", + ShopName = "GKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q", + ShopId = "3752130a-b436-4bf1-a9f6-e7809624e470", + LowerLimitAmount = 452, + UpperLimitAmount = 5404, + IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -164,14 +164,14 @@ public async Task ListBills8() { try { Request.ListBills request = new Request.ListBills() { - 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, + Description = "ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O", + CreatedFrom = "2022-03-17T01:45:50.000000Z", + CreatedTo = "2023-10-26T09:45:48.000000Z", + ShopName = "zG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH", + ShopId = "383b5f1b-2538-4659-8caa-a2a88e28a3f6", + LowerLimitAmount = 1391, + UpperLimitAmount = 6869, + IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,15 +186,15 @@ public async Task ListBills9() { try { Request.ListBills request = new Request.ListBills() { - 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, + OrganizationCode = "H54G51-a8", + Description = "7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMI", + CreatedFrom = "2022-05-28T22:33:06.000000Z", + CreatedTo = "2023-06-03T18:28:37.000000Z", + ShopName = "OIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3om", + ShopId = "36462a8a-4f44-430f-8239-ccb25f087860", + LowerLimitAmount = 1266, + UpperLimitAmount = 9333, + IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -209,15 +209,15 @@ public async Task ListBills10() { try { Request.ListBills request = new Request.ListBills() { - PrivateMoneyId = "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, + PrivateMoneyId = "f5b45ff1-ac93-415f-ac92-7896ea3e7ec0", + OrganizationCode = "-sx-d8l6i---y--o-z6T4-Jv-", + Description = "AI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T", + CreatedFrom = "2022-06-04T02:02:29.000000Z", + CreatedTo = "2024-06-09T12:30:26.000000Z", + ShopName = "20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLn", + ShopId = "9a3fe1c1-2772-44b7-a14e-85c862961001", + LowerLimitAmount = 3446, + UpperLimitAmount = 4104, IsDisabled = true, }; Response.PaginatedBills response = await request.Send(client); @@ -233,16 +233,16 @@ public async Task ListBills11() { try { Request.ListBills request = new Request.ListBills() { - 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, + BillId = "M", + PrivateMoneyId = "a52375dc-0844-42fc-a55a-9f4c3ee4024f", + OrganizationCode = "3-8ErShQ--14--5Lh-va--U-", + Description = "JLdESdgB4", + CreatedFrom = "2022-11-07T11:43:00.000000Z", + CreatedTo = "2021-08-22T14:32:00.000000Z", + ShopName = "huAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacS", + ShopId = "18a62974-78b3-47f7-bca1-bc8ae5d555e8", + LowerLimitAmount = 4830, + UpperLimitAmount = 6678, 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 = 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, + PerPage = 737, + BillId = "HQ5cbR", + PrivateMoneyId = "9a952f36-ae32-41a0-8f45-7edd3017071c", + OrganizationCode = "X-z3q470F5N-NRB9-Syci", + Description = "T65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zI", + CreatedFrom = "2020-09-25T15:17:58.000000Z", + CreatedTo = "2020-12-02T23:21:54.000000Z", + ShopName = "Zx4eE9mHPjq6XCvYjxbcuNA5AOQ", + ShopId = "07d8d248-443e-4527-be89-51bad8f57297", + LowerLimitAmount = 6034, + UpperLimitAmount = 8050, 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 = 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, + Page = 4791, + PerPage = 8158, + BillId = "Xo", + PrivateMoneyId = "c4701f9c-f3fb-4d10-a3d0-83f5eb671e34", + OrganizationCode = "-Mka-PgXu0Xkt9H--9-g0", + Description = "nur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rx", + CreatedFrom = "2023-09-11T18:25:47.000000Z", + CreatedTo = "2021-10-19T12:21:40.000000Z", + ShopName = "yEvnewbYd4rNZJsCq7m7arw2NKYH1", + ShopId = "d1ec81a0-e632-4807-9781-7b7870093e19", + LowerLimitAmount = 7590, + UpperLimitAmount = 8545, + IsDisabled = false, }; Response.PaginatedBills response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListBulkTransactionJobs.cs b/src/PokepayPartnerCsharpSdk.Test/TestListBulkTransactionJobs.cs index 29e55e5..7667508 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( - "aceb8e81-b166-48f9-a12a-0ec707888f02" + "a780f0c8-b100-407f-a44a-97da1094b925" ); 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( - "aceb8e81-b166-48f9-a12a-0ec707888f02" + "a780f0c8-b100-407f-a44a-97da1094b925" ) { - PerPage = 9888, + PerPage = 1496, }; 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( - "aceb8e81-b166-48f9-a12a-0ec707888f02" + "a780f0c8-b100-407f-a44a-97da1094b925" ) { - Page = 4993, - PerPage = 2511, + Page = 6410, + PerPage = 6511, }; 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 cef7acf..4452bda 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( - "18bcc7a6-42df-4471-8c96-80325b2c3b3c" + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7" ); 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( - "18bcc7a6-42df-4471-8c96-80325b2c3b3c" + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7" ) { - PerPage = 19, + PerPage = 48, }; 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( - "18bcc7a6-42df-4471-8c96-80325b2c3b3c" + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7" ) { - Page = 9966, - PerPage = 43, + Page = 2839, + PerPage = 34, }; 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( - "18bcc7a6-42df-4471-8c96-80325b2c3b3c" + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7" ) { - AvailableTo = "2023-05-16T03:50:44.000000Z", - Page = 74, - PerPage = 35, + AvailableTo = "2023-01-03T16:21:24.000000Z", + Page = 6621, + PerPage = 23, }; 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( - "18bcc7a6-42df-4471-8c96-80325b2c3b3c" + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7" ) { - AvailableFrom = "2021-07-28T11:34:13.000000Z", - AvailableTo = "2024-03-02T00:05:43.000000Z", - Page = 8762, - PerPage = 37, + AvailableFrom = "2023-08-15T08:17:07.000000Z", + AvailableTo = "2024-11-27T08:40:33.000000Z", + Page = 3440, + PerPage = 13, }; 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( - "18bcc7a6-42df-4471-8c96-80325b2c3b3c" + "7ffc57dc-0aac-461e-9a16-7e94e74d21a7" ) { - IsOngoing = false, - AvailableFrom = "2022-09-25T09:37:37.000000Z", - AvailableTo = "2023-05-26T13:38:27.000000Z", - Page = 2512, - PerPage = 9, + IsOngoing = true, + AvailableFrom = "2023-01-31T09:01:01.000000Z", + AvailableTo = "2022-10-02T08:15:52.000000Z", + Page = 4017, + PerPage = 25, }; 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 03037ce..4f75d95 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListChecks.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListChecks.cs @@ -53,7 +53,7 @@ public async Task ListChecks2() { try { Request.ListChecks request = new Request.ListChecks() { - IsOnetime = false, + IsOnetime = true, IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); @@ -69,7 +69,7 @@ public async Task ListChecks3() { try { Request.ListChecks request = new Request.ListChecks() { - Description = "MFu", + Description = "xKVxdoit", IsOnetime = true, IsDisabled = true, }; @@ -86,10 +86,10 @@ public async Task ListChecks4() { try { Request.ListChecks request = new Request.ListChecks() { - IssuerShopId = "6d9c9d8c-24ed-43b2-9001-703ddd0eae48", - Description = "Y5rxBRsFTy", - IsOnetime = false, - IsDisabled = false, + IssuerShopId = "91ee357c-e76e-4bfe-a3f3-b606ec411052", + Description = "kY0a6", + IsOnetime = true, + IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -104,11 +104,11 @@ public async Task ListChecks5() { try { Request.ListChecks request = new Request.ListChecks() { - CreatedTo = "2020-03-16T19:15:17.000000Z", - IssuerShopId = "f502dcf6-9aee-4325-a5af-1c77ca1cba62", - Description = "d4rNZJsCq7", - IsOnetime = false, - IsDisabled = false, + CreatedTo = "2023-11-13T00:58:08.000000Z", + IssuerShopId = "5d298ea4-fd3c-4309-89d2-8379ec4de414", + Description = "9", + IsOnetime = true, + IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -123,12 +123,12 @@ public async Task ListChecks6() { try { Request.ListChecks request = new Request.ListChecks() { - CreatedFrom = "2020-01-22T06:25:49.000000Z", - CreatedTo = "2020-10-06T06:24:16.000000Z", - IssuerShopId = "ba8a1508-dfb7-4061-83a0-f9726dfada77", - Description = "2NKYH12xH", + CreatedFrom = "2024-09-03T12:28:55.000000Z", + CreatedTo = "2024-07-27T18:53:41.000000Z", + IssuerShopId = "9579f7c0-f07e-4a75-8b08-a76ed5b94759", + Description = "j6aDVb3qDk", IsOnetime = true, - IsDisabled = false, + IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -143,12 +143,12 @@ public async Task ListChecks7() { try { Request.ListChecks request = new Request.ListChecks() { - 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, + ExpiresTo = "2024-09-04T12:58:34.000000Z", + CreatedFrom = "2021-12-19T15:34:12.000000Z", + CreatedTo = "2020-04-20T07:38:28.000000Z", + IssuerShopId = "5345e8f6-d6c1-4503-a0dd-1e3792809c15", + Description = "4NS9w", + IsOnetime = false, IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); @@ -164,14 +164,14 @@ public async Task ListChecks8() { try { Request.ListChecks request = new Request.ListChecks() { - 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", + ExpiresFrom = "2023-01-18T17:41:56.000000Z", + ExpiresTo = "2021-05-07T05:19:11.000000Z", + CreatedFrom = "2020-01-16T02:31:33.000000Z", + CreatedTo = "2024-11-11T09:01:15.000000Z", + IssuerShopId = "00e79ed8-47f7-4ee9-beef-1cfe4ba26844", + Description = "p", IsOnetime = true, - IsDisabled = true, + IsDisabled = false, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,13 +186,13 @@ public async Task ListChecks9() { try { Request.ListChecks request = new Request.ListChecks() { - 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", + OrganizationCode = "uzoNbRpuKefj9znX2XonFzQcO", + ExpiresFrom = "2020-08-27T12:04:05.000000Z", + ExpiresTo = "2024-05-30T01:20:05.000000Z", + CreatedFrom = "2020-07-31T16:26:05.000000Z", + CreatedTo = "2024-06-27T02:13:35.000000Z", + IssuerShopId = "8ecfc2ed-7764-470d-96e7-6307d783198e", + Description = "Um", IsOnetime = true, IsDisabled = false, }; @@ -209,14 +209,14 @@ public async Task ListChecks10() { try { Request.ListChecks request = new Request.ListChecks() { - 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", + PrivateMoneyId = "085f3bb7-203f-4e33-8980-0fb2ab4c0b6b", + OrganizationCode = "FchNQksZB6ByT3lVRQ7O823WFeXC", + ExpiresFrom = "2020-02-20T03:38:17.000000Z", + ExpiresTo = "2020-10-27T05:06:59.000000Z", + CreatedFrom = "2024-04-20T03:42:57.000000Z", + CreatedTo = "2022-04-13T01:13:40.000000Z", + IssuerShopId = "ae173a93-d406-41aa-9c66-65f61a58df2a", + Description = "Wv5Set", IsOnetime = true, IsDisabled = false, }; @@ -233,16 +233,16 @@ public async Task ListChecks11() { try { Request.ListChecks request = new Request.ListChecks() { - 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, + PerPage = 1613, + PrivateMoneyId = "a084768c-99a9-4e2a-80f5-615d7e7003a3", + OrganizationCode = "ZcB6tdcwibyPvTHbjOWbqqVGNOP2f7", + ExpiresFrom = "2024-02-20T03:43:02.000000Z", + ExpiresTo = "2020-12-11T19:05:46.000000Z", + CreatedFrom = "2020-12-14T12:17:49.000000Z", + CreatedTo = "2021-04-15T13:26:35.000000Z", + IssuerShopId = "287e75c0-8ee3-4e8d-a3ae-f57c1623aa16", + Description = "XSXXM3Y", + IsOnetime = false, IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); @@ -258,18 +258,18 @@ public async Task ListChecks12() { try { Request.ListChecks request = new Request.ListChecks() { - 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", + Page = 7933, + PerPage = 9088, + PrivateMoneyId = "a3f08c5f-3950-4003-b8fd-8dee1b56e0ea", + OrganizationCode = "Fhfkf", + ExpiresFrom = "2021-08-22T17:17:19.000000Z", + ExpiresTo = "2022-12-18T09:43:53.000000Z", + CreatedFrom = "2022-01-19T11:54:30.000000Z", + CreatedTo = "2023-01-17T14:06:48.000000Z", + IssuerShopId = "451e5ad2-d106-4a5b-abe8-42ead37b6ad6", + Description = "7rXm6", IsOnetime = true, - IsDisabled = false, + IsDisabled = true, }; Response.PaginatedChecks response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestListCoupons.cs b/src/PokepayPartnerCsharpSdk.Test/TestListCoupons.cs index 2e11715..83656db 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ); 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ) { - PerPage = 4492, + PerPage = 5695, }; 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ) { - Page = 7514, - PerPage = 9614, + Page = 3440, + PerPage = 1348, }; 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ) { - AvailableTo = "2020-06-15T13:24:22.000000Z", - Page = 8382, - PerPage = 1415, + AvailableTo = "2023-12-09T09:33:15.000000Z", + Page = 4102, + PerPage = 1525, }; 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ) { - AvailableFrom = "2022-07-07T12:03:30.000000Z", - AvailableTo = "2024-03-16T11:48:43.000000Z", - Page = 5387, - PerPage = 6558, + AvailableFrom = "2021-08-09T18:42:45.000000Z", + AvailableTo = "2020-10-13T05:00:03.000000Z", + Page = 63, + PerPage = 2171, }; 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ) { - AvailableShopName = "uaeWPZ", - AvailableFrom = "2023-10-16T13:14:07.000000Z", - AvailableTo = "2023-02-01T02:23:36.000000Z", - Page = 5410, - PerPage = 8238, + AvailableShopName = "1f", + AvailableFrom = "2020-06-20T06:55:31.000000Z", + AvailableTo = "2021-01-20T12:14:24.000000Z", + Page = 3811, + PerPage = 7954, }; 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ) { - IssuedShopName = "K6Z", - AvailableShopName = "1zTkB", - AvailableFrom = "2022-05-23T02:13:37.000000Z", - AvailableTo = "2020-06-09T01:09:47.000000Z", - Page = 4092, - PerPage = 5130, + IssuedShopName = "pdjK", + AvailableShopName = "CTfj1GK9R", + AvailableFrom = "2023-09-02T13:18:18.000000Z", + AvailableTo = "2023-02-05T05:33:31.000000Z", + Page = 8897, + PerPage = 2839, }; 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ) { - CouponName = "UJIx", - IssuedShopName = "9pUjuQLW", - AvailableShopName = "JQAl", - AvailableFrom = "2021-04-02T07:43:37.000000Z", - AvailableTo = "2022-06-18T14:13:01.000000Z", - Page = 8088, - PerPage = 2652, + CouponName = "p80", + IssuedShopName = "GIfZb0zQJu", + AvailableShopName = "IdXR7obZEo", + AvailableFrom = "2023-10-25T22:40:07.000000Z", + AvailableTo = "2022-02-24T12:27:56.000000Z", + Page = 7570, + PerPage = 2931, }; 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( - "5287d249-2b06-4f32-a066-9deb582af3ef" + "04136ecb-6c2f-4396-afa3-561004526c5d" ) { - CouponId = "IBEGWMO", - CouponName = "qgVzvG", - IssuedShopName = "f46VZC1gRO", - AvailableShopName = "yDwwPosw", - AvailableFrom = "2024-01-31T15:16:32.000000Z", - AvailableTo = "2022-07-23T13:58:10.000000Z", - Page = 327, - PerPage = 2797, + CouponId = "RSePLUjWmS", + CouponName = "1Vfe4rF1", + IssuedShopName = "r4pu5zkeb", + AvailableShopName = "CqAbvDaj0", + AvailableFrom = "2023-09-26T00:34:52.000000Z", + AvailableTo = "2023-11-27T20:55:20.000000Z", + Page = 1281, + PerPage = 3522, }; 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 2a7411a..de6eb5f 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ); 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ) { - PerPage = 5122, + PerPage = 4002, }; 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ) { - Page = 5799, - PerPage = 2453, + Page = 511, + PerPage = 1278, }; 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ) { - To = "2022-04-26T16:16:13.000000Z", - Page = 487, - PerPage = 8812, + To = "2020-09-10T16:31:38.000000Z", + Page = 3763, + PerPage = 629, }; 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ) { - From = "2020-07-14T14:34:50.000000Z", - To = "2023-05-11T00:31:45.000000Z", - Page = 6745, - PerPage = 953, + From = "2022-11-21T17:05:06.000000Z", + To = "2023-03-02T02:22:10.000000Z", + Page = 6317, + PerPage = 9415, }; 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ) { IsModified = false, - From = "2024-01-20T10:38:15.000000Z", - To = "2020-12-24T04:11:14.000000Z", - Page = 1772, - PerPage = 2425, + From = "2022-03-16T05:50:24.000000Z", + To = "2024-02-11T01:48:16.000000Z", + Page = 7936, + PerPage = 5716, }; 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ) { Type = "expire", IsModified = true, - From = "2021-02-13T04:32:34.000000Z", - To = "2023-04-22T03:17:43.000000Z", - Page = 1927, - PerPage = 8887, + From = "2021-05-08T23:32:39.000000Z", + To = "2024-06-08T07:06:40.000000Z", + Page = 1203, + PerPage = 872, }; 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ) { - ReceiverCustomerId = "54ab9fb6-55af-4469-9b47-636ae9de1cb1", - Type = "cashback", - IsModified = true, - From = "2022-04-09T19:16:32.000000Z", - To = "2020-01-17T21:38:30.000000Z", - Page = 4141, - PerPage = 1276, + ReceiverCustomerId = "92bb9347-24bc-4fa2-a73e-87e17252b237", + Type = "topup", + IsModified = false, + From = "2024-02-29T07:56:24.000000Z", + To = "2022-06-25T05:33:58.000000Z", + Page = 2353, + PerPage = 751, }; 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( - "26d06a0d-a9b9-4b4f-beb2-059cc9fc551c" + "db039b47-c6ba-4a1f-a67d-beb1047755c4" ) { - SenderCustomerId = "b49877aa-e363-4ea5-b392-14b2f67f27bf", - ReceiverCustomerId = "b564977a-558b-48e5-85d1-67053a715351", - Type = "exchange", + SenderCustomerId = "9a6dcfed-834c-4c4d-9ae6-1adc720116ee", + ReceiverCustomerId = "560b2307-d12b-4b49-af1c-e15962b842d4", + Type = "topup", IsModified = false, - From = "2021-01-04T01:35:51.000000Z", - To = "2023-11-16T04:08:27.000000Z", - Page = 7990, - PerPage = 9650, + From = "2023-06-18T13:29:53.000000Z", + To = "2022-08-22T01:14:12.000000Z", + Page = 9855, + PerPage = 7711, }; 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 2c08f6a..fd10b17 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( - "2b735359-6eb4-4812-a1dc-0b37275f6e63" + "c87eff16-2d38-4fd3-9013-83872318372e" ); 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( - "2b735359-6eb4-4812-a1dc-0b37275f6e63" + "c87eff16-2d38-4fd3-9013-83872318372e" ) { - Code = "pIh03BvqB", + Code = "pH3eqOx8c", }; 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( - "2b735359-6eb4-4812-a1dc-0b37275f6e63" + "c87eff16-2d38-4fd3-9013-83872318372e" ) { - Name = "CzLjYHoO", - Code = "8zE", + Name = "3TF", + Code = "9a8", }; 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( - "2b735359-6eb4-4812-a1dc-0b37275f6e63" + "c87eff16-2d38-4fd3-9013-83872318372e" ) { - PerPage = 43, - Name = "65UlKt", - Code = "MCe", + PerPage = 9321, + Name = "Mtt7Rd", + Code = "KeKSciqwdk", }; 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( - "2b735359-6eb4-4812-a1dc-0b37275f6e63" + "c87eff16-2d38-4fd3-9013-83872318372e" ) { - Page = 6222, - PerPage = 922, - Name = "UV", - Code = "2", + Page = 6537, + PerPage = 9005, + Name = "vqZQpEwq", + Code = "xx", }; 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 6c830dd..59336fb 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 = 9081, + PerPage = 9547, }; 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 = 8540, - PerPage = 6567, + Page = 8686, + PerPage = 4019, }; 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 = true, - Page = 6857, - PerPage = 3927, + WithDisabled = false, + Page = 7193, + PerPage = 3329, }; 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 = "PvTnTR", + ExternalId = "OYFN3fJYwkLiuasNI3TQ4Ubb8U4Lo", WithDisabled = false, - Page = 3043, - PerPage = 1796, + Page = 1552, + PerPage = 3451, }; 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 = "AGxJFBzSBd@N9rH.com", - ExternalId = "7Ml90EeuZgaP20pyyEjfyZnRC", - WithDisabled = true, - Page = 1938, - PerPage = 4630, + Email = "MVQ4l9Wdfw@N1GB.com", + ExternalId = "XrbSDIYZ", + WithDisabled = false, + Page = 8538, + PerPage = 5482, }; 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 = "006113605", - Email = "o9BhqQxq9F@R8VF.com", - ExternalId = "gH7EAnlF", - WithDisabled = true, - Page = 4634, - PerPage = 9286, + Tel = "03-225625", + Email = "0E243Lt7Q0@CkQG.com", + ExternalId = "HLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF", + WithDisabled = false, + Page = 3522, + PerPage = 2177, }; 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 = "Mmyi8jmBN0T80aLvrKoRyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDY", - Tel = "047396-6480", - Email = "tAXqf6uerX@tmVp.com", - ExternalId = "3iPqRhb6DnnO4ty38Ikh", + Address = "hqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rqwGDVRdojGjigHpZl8InH", + Tel = "0128-2449581", + Email = "gGfElkSct5@6tB3.com", + ExternalId = "Q", WithDisabled = true, - Page = 4053, - PerPage = 2535, + Page = 7745, + PerPage = 8410, }; 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 = "511-1568", - Address = "FbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50", - Tel = "0194-3438", - Email = "a99m3Ela8z@cR94.com", - ExternalId = "Jg", + PostalCode = "198-5207", + Address = "yXQYOSshpGMCke10fApKjBHnAmdlKiUj9JqianI8FqIXqzelGZDONUAJfl2HMto7yaW0Gkt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUy", + Tel = "025-952-2770", + Email = "yS9B5htgNI@DpUp.com", + ExternalId = "zKyj3BEvYp1", WithDisabled = false, - Page = 329, - PerPage = 664, + Page = 5288, + PerPage = 9941, }; 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 = "tiXrfi45", - PostalCode = "949-3423", - Address = "Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87", - Tel = "02-94-6201", - Email = "6fPXjhVlLp@Kgtr.com", - ExternalId = "0aXml0I8A7sPYx7KWs9G", + Name = "uySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL", + PostalCode = "816-1336", + Address = "4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPM", + Tel = "03-7477048", + Email = "5lpizelx6Z@w3AN.com", + ExternalId = "kreMSnigb4Yb3t6kmvyhjD7Y1lgzqI", WithDisabled = true, - Page = 5996, - PerPage = 7396, + Page = 4073, + PerPage = 3254, }; 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 = "d0877ec7-ef46-4cab-80f8-b290b255e209", - Name = "kTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3", - PostalCode = "4888053", - Address = "XDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33", - Tel = "075-3765725", - Email = "JOyIcULWzr@NeMA.com", - ExternalId = "CItmOkY1pUONfZUthj8", - WithDisabled = false, - Page = 3077, - PerPage = 8091, + PrivateMoneyId = "c6a0544d-f3cc-4f93-b0d5-13702ef8cd41", + Name = "uRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8", + PostalCode = "7771898", + Address = "mlD5AgJ4dO8VEt3hyN01xWKpyfSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8", + Tel = "0661-356-7684", + Email = "4mvXKC0yIY@DrOm.com", + ExternalId = "Zvcf", + WithDisabled = true, + Page = 4898, + PerPage = 2854, }; 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 = "D--zW----4BMW", - PrivateMoneyId = "3a2a4b75-6eb4-4e3e-8eb1-752b0489a37e", - Name = "4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx", - PostalCode = "2591234", - Address = "06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDam", - Tel = "0196166-731", - Email = "js1Uxv98uo@xa9c.com", - ExternalId = "qdBZBSSyuPsLg", - WithDisabled = false, - Page = 3762, - PerPage = 267, + OrganizationCode = "h-lirY-C-Aqh---Im1Jw", + PrivateMoneyId = "3a74808e-7787-4882-ae59-c313abef69e4", + Name = "Jrs", + PostalCode = "768-7908", + Address = "irB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9D", + Tel = "02233029774", + Email = "ceHkpeJS53@rQYr.com", + ExternalId = "ERvl0KriuN", + WithDisabled = true, + Page = 5046, + PerPage = 4051, }; 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 b388730..bc71f41 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 = "W1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1", + Description = "N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXu", }; 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[]{"exchange_outflow", "cashback"}, - Description = "P1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV", + Types = new string[]{"payment"}, + Description = "q9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCA", }; Response.PaginatedTransaction response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -70,8 +70,8 @@ public async Task ListTransactions3() try { Request.ListTransactions request = new Request.ListTransactions() { IsModified = true, - Types = new string[]{"payment", "exchange_inflow", "cashback"}, - Description = "a8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05q", + Types = new string[]{"payment"}, + Description = "f4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1", }; 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 = "7cdea4cc-02d4-45f1-bec7-1ec424873215", + PrivateMoneyId = "7fa37eed-4d43-4f3c-b2b6-b411425247b0", IsModified = true, - Types = new string[]{"payment", "exchange_inflow", "expire", "cashback", "topup"}, - Description = "aFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDebROkI568yn", + Types = new string[]{"cashback", "payment"}, + Description = "7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvf", }; 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 = "8", - PrivateMoneyId = "51efbe83-e424-4e59-adbf-731bc32e71e4", - IsModified = false, - Types = new string[]{"payment", "exchange_outflow"}, - Description = "GtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O", + OrganizationCode = "803-2UWgF9A28O1--25djJe--", + PrivateMoneyId = "ada11cee-4e79-408b-bda5-b1d542c267a2", + IsModified = true, + Types = new string[]{"exchange_inflow"}, + Description = "1h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdP", }; 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 = "2IQSAJ6", - OrganizationCode = "-YolA58m-Vc-996y5l-456i9u3-B--Y-", - PrivateMoneyId = "8d7c5ca2-1c5b-49b4-a9fd-e6608c86a76e", + TransactionId = "5lY5r", + OrganizationCode = "-SPF--Ue-xT-4af1yX--Qo3P-88", + PrivateMoneyId = "2674231f-ff7f-43b2-84c3-4c6ceedee5b6", IsModified = true, - Types = new string[]{"exchange_outflow", "expire", "payment"}, - Description = "JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpN", + Types = new string[]{"payment", "topup", "cashback", "expire", "exchange_inflow"}, + Description = "2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayj", }; 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 = "127e7540-96e5-4f7a-b8dc-87d48d84ec94", - TransactionId = "usjLCX", - OrganizationCode = "49qc-l--BI-H6-GT9-L", - PrivateMoneyId = "250f2664-b994-46e1-9663-b4a682ae5034", + TerminalId = "16dbac2a-774f-4f16-9eb1-33222607a3df", + TransactionId = "h3s3e", + OrganizationCode = "", + PrivateMoneyId = "2893ee91-9131-4550-8a92-0a2dcc76bea5", IsModified = true, - Types = new string[]{"topup", "payment", "exchange_outflow"}, - Description = "wC2bbOKrqEv", + Types = new string[]{"topup", "cashback", "exchange_inflow"}, + Description = "4IfskzbRh2KXDkJqy1UyPaGHVkyMSdmemZcovbEUc9TiM3DTS", }; 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 = "HSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mhVFw56RKDemCYdfHK", - TerminalId = "554841a2-5c5d-40f9-9cb6-edbb11405deb", - TransactionId = "RZ", - OrganizationCode = "-S", - PrivateMoneyId = "a189e694-0fe7-4bca-82be-412da43728cc", + CustomerName = "7pJlo8JS6mIVfCl8O6XTpGUPEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPI", + TerminalId = "669a3849-4187-44c2-a5d5-8d53644ea80d", + TransactionId = "xLQqoj9SXP", + OrganizationCode = "---39", + PrivateMoneyId = "1c45b4fa-8a23-479b-81c1-4b370fc82244", IsModified = false, - Types = new string[]{"exchange_inflow", "cashback", "exchange_outflow", "expire", "payment"}, - Description = "iVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26", + Types = new string[]{"topup", "expire"}, + Description = "6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzW", }; 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 = "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[]{"exchange_inflow", "exchange_outflow", "payment", "cashback"}, - Description = "pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXD", + CustomerId = "ee00df3b-d072-4254-9901-4876686f83c8", + CustomerName = "gdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzW", + TerminalId = "92014d83-8f2f-44e6-8dbd-3e3e7243b88b", + TransactionId = "YN8tFOR", + OrganizationCode = "Y-u", + PrivateMoneyId = "37208acc-0117-48c4-87bc-979678a4c767", + IsModified = false, + Types = new string[]{"payment", "expire", "topup", "cashback", "exchange_outflow", "exchange_inflow"}, + Description = "HQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8H", }; 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 = "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", + ShopId = "220e5ac6-5a3a-47ab-b8da-03f468a6ae0e", + CustomerId = "5ebe53c3-108f-47bd-8035-e40645c13b8e", + CustomerName = "ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4Az", + TerminalId = "f98b4df5-c995-408a-bb6b-47a2f3349e71", + TransactionId = "Xii06wz9Nd", + OrganizationCode = "W2--U-l5xjH-", + PrivateMoneyId = "75cb9122-945c-4faa-9f83-ba8444fa9aaa", IsModified = true, - Types = new string[]{"exchange_inflow", "cashback", "topup", "expire", "payment", "exchange_outflow"}, - Description = "SVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3", + Types = new string[]{"topup"}, + Description = "kBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFf", }; 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 = 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", + PerPage = 282, + ShopId = "65719173-820d-4a91-b829-3433f2e9fa2c", + CustomerId = "b55e6feb-aa84-4b88-827a-34d322722b8f", + CustomerName = "ot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlm", + TerminalId = "794e5de6-a982-48e2-89d7-c7a5d468571d", + TransactionId = "jq1", + OrganizationCode = "-oW", + PrivateMoneyId = "84ad74bb-a6b2-4c97-8869-a00e6da9db2f", IsModified = true, - Types = new string[]{"cashback", "topup"}, - Description = "KrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVY", + Types = new string[]{"exchange_inflow", "topup", "expire", "cashback", "payment", "exchange_outflow"}, + Description = "KUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0ru", }; 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 = 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[]{"exchange_outflow", "expire", "topup", "payment"}, - Description = "qfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwP", + Page = 5103, + PerPage = 106, + ShopId = "9e6fdaf3-adbc-4bae-9fcc-a256ada8901c", + CustomerId = "04e72a3f-308d-4ac1-8b24-7a85bf70fc21", + CustomerName = "D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5q", + TerminalId = "a8764f09-9022-4ad9-93e6-af609463b027", + TransactionId = "dpEz", + OrganizationCode = "yFH3l-oWbAVbaS-p-1i-rU6H0r5jHe", + PrivateMoneyId = "6b7d83b2-c16c-45aa-b20b-53ca574cb36e", + IsModified = true, + Types = new string[]{"topup", "cashback", "expire", "exchange_outflow"}, + Description = "2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYA", }; 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-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"}, - Description = "c6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wP", + To = "2022-08-11T11:06:41.000000Z", + Page = 8459, + PerPage = 7873, + ShopId = "17d7361e-5f26-46e1-97ee-368e6a3f8367", + CustomerId = "0d4b08f1-92b9-4450-8abd-4b51317ebd0a", + CustomerName = "fQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJSIFUrTRne91u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0", + TerminalId = "69f06cdb-6214-4c15-807d-8cbd8538079b", + TransactionId = "ZYNIF", + OrganizationCode = "s--aXS-ZgJJ-y--WsY4x--Dyl", + PrivateMoneyId = "7440e812-d811-462f-af5f-b514d20a65a5", + IsModified = false, + Types = new string[]{"cashback", "exchange_inflow", "topup", "expire", "exchange_outflow"}, + Description = "RdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2in", }; 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 = "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", + From = "2024-05-23T02:09:21.000000Z", + To = "2021-07-19T10:37:33.000000Z", + Page = 3824, + PerPage = 5692, + ShopId = "5cb6a40b-f3f3-407a-ba7a-0bea481bd33e", + CustomerId = "271ce8dc-c716-49b7-a267-496a1db4773c", + CustomerName = "cZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86", + TerminalId = "a069e5c4-b57f-4ea4-b996-25d8c6009908", + TransactionId = "fo8j", + OrganizationCode = "--iE55--f5D851N-akMUy6-", + PrivateMoneyId = "6481f61a-2228-4de5-90c4-47010df61e71", IsModified = false, - Types = new string[]{"cashback"}, - Description = "ZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaW", + Types = new string[]{"expire", "exchange_outflow"}, + Description = "7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumM", }; 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 258701a..38a9988 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 = 919, + PerPage = 515, }; 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 = "3580c4d2-028a-4796-9842-f025a2f41ce1", - PerPage = 963, + PrevPageCursorId = "01a288ce-86a9-45f9-a25c-24fb20e7a337", + PerPage = 70, }; 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 = "0706164f-d02d-459a-a482-fb8edacd3057", - PrevPageCursorId = "6784f557-b9ab-4c04-9228-6f478252a04a", - PerPage = 884, + NextPageCursorId = "aebb53f8-8db4-4c7a-a6dc-f0cc65d2b079", + PrevPageCursorId = "8d3a473f-2823-465e-acfd-450c5315b0ac", + PerPage = 93, }; 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 = "2023-06-26T08:22:04.000000Z", - NextPageCursorId = "270f32a0-4407-4887-8b29-f1417229627e", - PrevPageCursorId = "dfdbdc26-3ff2-4e67-99a3-7ac95ca97e26", - PerPage = 607, + To = "2022-11-10T16:42:01.000000Z", + NextPageCursorId = "47d51d1c-7d7d-4eed-8f26-2a2b344a5456", + PrevPageCursorId = "58ef04fd-d975-4375-b71d-2c52ab07695a", + PerPage = 747, }; 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 = "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, + From = "2024-12-02T16:14:21.000000Z", + To = "2024-06-09T17:54:46.000000Z", + NextPageCursorId = "985c2180-8c40-4753-8f21-2766712bd439", + PrevPageCursorId = "054b129a-6230-46c9-8c4c-84680a7074ba", + PerPage = 562, }; 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", "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, + Types = new string[]{"expire"}, + From = "2022-06-05T12:01:23.000000Z", + To = "2023-03-04T12:20:00.000000Z", + NextPageCursorId = "10e4a5c3-bb76-4eb1-ba02-5721ddf7118f", + PrevPageCursorId = "5aa24321-e825-4213-b4c9-e23a309164cc", + PerPage = 212, }; Response.PaginatedTransactionV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -144,12 +144,12 @@ public async Task ListTransactionsV27() try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { IsModified = 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, + Types = new string[]{"cashback", "topup", "expire", "payment", "exchange_outflow", "exchange_inflow"}, + 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"); @@ -164,14 +164,14 @@ public async Task ListTransactionsV28() { try { Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { - TransactionId = "078", + TransactionId = "w0", IsModified = true, - 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, + Types = new string[]{"exchange_inflow"}, + From = "2024-05-31T16:45:00.000000Z", + To = "2022-05-17T00:35:30.000000Z", + NextPageCursorId = "ecda8963-adff-47d3-a1a6-004553a8a936", + PrevPageCursorId = "7fa83d28-d8fa-49a2-a791-f7359340cfd1", + PerPage = 904, }; 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 = "pKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfn", - TransactionId = "mwT", + Description = "SLVITcWyXkWwNeThL", + TransactionId = "K", 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, + Types = new string[]{"payment", "exchange_outflow", "exchange_inflow", "topup"}, + From = "2021-12-04T22:13:49.000000Z", + To = "2022-07-18T19:15:02.000000Z", + NextPageCursorId = "c624f552-688a-4949-97cd-5dddc9461ad9", + PrevPageCursorId = "5bcaf4e0-94b7-4074-b0a3-c47563f1607e", + PerPage = 393, }; 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 = "osyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3", - Description = "SdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1U", - TransactionId = "nnaTSFcz", + CustomerName = "9Tu", + Description = "4ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4", + TransactionId = "Uw", IsModified = true, - 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, + Types = new string[]{"topup", "payment", "exchange_outflow"}, + From = "2022-09-06T17:01:47.000000Z", + To = "2024-11-06T01:02:33.000000Z", + NextPageCursorId = "0ca7a69b-bece-4a26-9ca1-a22af46cc625", + PrevPageCursorId = "f1948afd-9664-44bf-b920-d03ea9398221", + PerPage = 176, }; 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 = "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, + CustomerId = "22dc13dc-a084-45b1-99dc-7306d2ea09e9", + CustomerName = "nQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3X", + Description = "MzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRN", + TransactionId = "T2ecfLdc3", + IsModified = true, + Types = new string[]{"exchange_inflow", "cashback", "expire", "topup"}, + From = "2020-05-01T07:08:55.000000Z", + To = "2020-10-07T12:13:48.000000Z", + NextPageCursorId = "b54b79ee-9439-4434-b7f0-98d318766ec3", + PrevPageCursorId = "8841ac99-ad42-4194-9047-d489d5259aee", + PerPage = 995, }; 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 = "731b55a1-608e-4077-9015-3b3045d45c5e", - CustomerId = "3fc35406-8866-4e3b-81d8-020dd52a9143", - CustomerName = "RcSE6z5QHSLVITcWy", - Description = "XkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4j", - TransactionId = "8W9hhk", + TerminalId = "367bfb18-c63e-4d32-9522-a037e525c9cb", + CustomerId = "c49acbc0-3fa1-4a0a-8931-3416274ff0fb", + CustomerName = "Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bG", + Description = "ruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZ", + TransactionId = "Pb5B1K9ZLJ", IsModified = true, - 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, + Types = new string[]{"exchange_outflow", "expire", "exchange_inflow"}, + From = "2020-03-16T17:05:11.000000Z", + To = "2021-03-24T13:43:28.000000Z", + NextPageCursorId = "5df4745f-a378-4b8d-b939-b630b229ff44", + PrevPageCursorId = "b58a3135-7c9d-4ae7-85ef-09b4a954927e", + PerPage = 613, }; 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 = "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[]{"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, + ShopId = "5287b28d-fe04-4e01-82cc-77bf308ad1e4", + TerminalId = "a3a3a397-2b0a-4fdf-962b-b65524f446a7", + CustomerId = "451fb425-d1a1-4343-93da-4b8d5acb45a3", + CustomerName = "Vd4cTqnNfSRiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI", + Description = "vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHM", + TransactionId = "qzJF", + IsModified = false, + Types = new string[]{"cashback", "expire"}, + From = "2023-05-13T04:03:06.000000Z", + To = "2021-12-16T18:34:54.000000Z", + NextPageCursorId = "bc840514-8f5a-4138-bd7a-e9c84dd1bc46", + PrevPageCursorId = "4ded5bfd-0435-44ed-be6e-492d09f993a5", + PerPage = 870, }; 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 = "-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[]{"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, + OrganizationCode = "OY4-YF8Yj--u09ly4---PR-k-TLZ-3-", + ShopId = "a4e2cef6-ddcd-4f7d-9620-e5cd299ce37a", + TerminalId = "e8fd7859-d870-4966-9245-3edd91eacd97", + CustomerId = "d3e45e48-de27-4b48-bd88-3c717a55622f", + CustomerName = "AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSE", + Description = "w4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U0", + TransactionId = "aLs4h", + IsModified = false, + Types = new string[]{"payment", "expire", "topup"}, + From = "2023-09-28T21:39:19.000000Z", + To = "2024-10-11T20:52:22.000000Z", + NextPageCursorId = "27b42238-1c89-443b-a840-02d79b10f60d", + PrevPageCursorId = "fb75d209-96ee-4eff-8143-9b9a30e946d2", + PerPage = 125, }; 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 = "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", + PrivateMoneyId = "cda389e6-3827-428c-ba32-79ecf309c8ab", + OrganizationCode = "X-YPS-T10k6-s-8OKpZ-0Z4", + ShopId = "d00fab1b-687b-4aea-8d60-c724bbafe09a", + TerminalId = "605b0ee7-59a4-4f6b-a4ae-ba380686a451", + CustomerId = "c870395f-de53-42da-9d13-da77af4d7e4a", + CustomerName = "udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZ", + Description = "zi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKX", + TransactionId = "hWYdlIHfSB", IsModified = true, - 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, + Types = new string[]{"exchange_inflow", "exchange_outflow", "topup", "payment", "expire"}, + From = "2024-03-07T12:31:09.000000Z", + To = "2021-09-05T09:09:55.000000Z", + NextPageCursorId = "6b9cd14b-99a9-4b9d-b699-6cc8d413844c", + PrevPageCursorId = "d78c71dc-2ea6-45e5-b393-14ef4aa76aa3", + PerPage = 975, }; 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 a9daa45..ed79aa8 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 = "fYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK2yb", + Description = "5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUv", }; 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[]{"payment", "campaign"}, - Description = "kZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8Ox", + TransferTypes = new string[]{"expire", "payment", "exchange", "cashback", "campaign", "transfer", "topup", "coupon"}, + Description = "6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2", }; 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", "topup", "cashback"}, - TransferTypes = new string[]{"topup", "campaign", "coupon"}, - Description = "hXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuO", + TransactionTypes = new string[]{"exchange", "payment", "topup"}, + TransferTypes = new string[]{"topup"}, + Description = "iHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQ", }; 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[]{"transfer", "cashback", "payment", "exchange"}, - TransferTypes = new string[]{"coupon", "exchange", "cashback", "payment", "expire", "campaign", "topup", "transfer"}, - Description = "SE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fj", + TransactionTypes = new string[]{"transfer", "expire", "exchange"}, + TransferTypes = new string[]{"topup"}, + Description = "OOqdFvcvTYHWhMSc2JtDSCuxp", }; 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 = "04d93664-7509-48b9-a431-d41b9040920f", + PrivateMoneyId = "f0a0b8d8-0281-41be-8900-6bfd43bb1342", IsModified = false, - TransactionTypes = new string[]{"topup"}, - TransferTypes = new string[]{"expire", "payment", "topup"}, - Description = "HtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszF", + TransactionTypes = new string[]{"exchange"}, + TransferTypes = new string[]{"exchange", "cashback", "transfer", "expire", "campaign", "coupon", "payment"}, + Description = "WyJmxhctiEpL1KlL20SY28CEIpXv", }; 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 = "1bbc147c-7c9e-483e-a15a-0e88db95cda3", - PrivateMoneyId = "5ceaf1cb-65da-4330-a6f3-b303d9cb8c18", - IsModified = false, - TransactionTypes = new string[]{"payment", "exchange", "cashback", "expire", "topup"}, - TransferTypes = new string[]{"payment"}, - Description = "4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x", + TransactionId = "a932fdfb-c0c3-40fa-b292-31ecce8d1b58", + PrivateMoneyId = "76e76eb0-23a7-40fd-97ac-fffd6363aec6", + IsModified = true, + TransactionTypes = new string[]{"transfer", "cashback", "expire"}, + TransferTypes = new string[]{"payment", "coupon", "transfer", "exchange", "topup"}, + Description = "HOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3", }; 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 = "3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr2", - TransactionId = "8b9f6fe0-4c3d-4d32-a05f-c8309c7dbbfe", - PrivateMoneyId = "8ab2aff8-5574-45da-bf70-175a24ba0113", + CustomerName = "Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSV", + TransactionId = "1dd7f004-8e48-44a5-bf52-cbd9617e87b4", + PrivateMoneyId = "921a08d9-c01a-435a-a290-a80faec05664", IsModified = false, - TransactionTypes = new string[]{"cashback", "transfer"}, - TransferTypes = new string[]{"transfer", "expire", "payment", "exchange"}, - Description = "luYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubU", + TransactionTypes = new string[]{"topup", "expire", "transfer", "cashback", "payment", "exchange"}, + TransferTypes = new string[]{"cashback", "expire", "campaign", "coupon"}, + Description = "lf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3Lnpb", }; 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 = "a872b993-c3d1-4b52-8c69-7b79324f1a83", - CustomerName = "cmsaOa8T2aG0PP6tnqH", - TransactionId = "81265810-55ee-430a-b56f-379cbdba6293", - PrivateMoneyId = "41d52a55-b7c9-4890-8c0e-d04fd5cc7292", - IsModified = false, - TransactionTypes = new string[]{"transfer", "topup", "expire"}, - TransferTypes = new string[]{"payment", "campaign", "cashback"}, - Description = "h0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJi", + CustomerId = "eb02d47b-18a1-4872-9029-7cbc2c503613", + CustomerName = "kZnNjPWO55U7DSfY3L", + TransactionId = "204f8012-d1e7-4a3f-bed7-59b58514e04d", + PrivateMoneyId = "1baab15e-26a6-4bb2-8920-4040dcdf26f6", + IsModified = true, + TransactionTypes = new string[]{"transfer", "exchange", "cashback", "topup"}, + TransferTypes = new string[]{"transfer", "exchange", "campaign", "payment", "expire", "topup"}, + Description = "eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55", }; 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 = "bQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgyl", - CustomerId = "a216db3e-e055-407d-8454-7f203608a54b", - CustomerName = "4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1t", - TransactionId = "89a2b970-7359-474d-b17d-a59dde6fbcfa", - PrivateMoneyId = "00ea253d-9735-4658-92cd-0b8ba8f1f7a5", + ShopName = "dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3u", + CustomerId = "5506f5f6-c3e1-48cc-9d04-d295aacc726e", + CustomerName = "bw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZn", + TransactionId = "3d8c808a-7d66-49c7-8dd1-ec618f5433f3", + PrivateMoneyId = "89ef5ec3-6731-44ff-b99e-d0815a058620", IsModified = true, - TransactionTypes = new string[]{"transfer"}, - TransferTypes = new string[]{"coupon", "exchange", "topup", "payment", "transfer"}, - Description = "sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbM", + TransactionTypes = new string[]{"payment", "expire", "topup", "cashback", "exchange", "transfer"}, + TransferTypes = new string[]{"payment", "campaign", "coupon"}, + Description = "L9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV", }; 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 = "842d3d3b-c82a-4a4d-b66c-7e68331ed7bd", - ShopName = "JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUW", - CustomerId = "0e5e3040-f1c9-415a-ac0f-5ef5c040ff28", - CustomerName = "3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9", - TransactionId = "31f1b676-cd89-4084-981a-e0b0a791fab1", - PrivateMoneyId = "6b8ad335-c41a-4024-90a4-d77fb1d4dc55", - IsModified = true, - TransactionTypes = new string[]{"cashback"}, - TransferTypes = new string[]{"exchange", "campaign", "cashback", "transfer", "payment"}, - Description = "HVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGz", + ShopId = "8e0938b2-bc37-4478-8c82-9432cd7aaf5a", + ShopName = "ZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N", + CustomerId = "c5f78605-e322-47b0-8074-d300540724a1", + CustomerName = "nRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6Ams", + TransactionId = "5e82685d-0877-4f1a-a4c0-2b41ec200ecd", + PrivateMoneyId = "0157d928-e41c-411f-b3c9-134a5c5372f2", + IsModified = false, + TransactionTypes = new string[]{"transfer"}, + TransferTypes = new string[]{"cashback", "exchange"}, + Description = "1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmm", }; 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 = 1561, - ShopId = "132c0fae-e657-436d-8e1b-1e71182d6316", - ShopName = "0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzr", - CustomerId = "7f9a0197-fd9e-4a8f-8a71-dd311d7e3e5a", - CustomerName = "5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy", - TransactionId = "bff07413-59b2-4822-9258-41f94cca9fd0", - PrivateMoneyId = "2ca5e255-8b41-461b-a5bd-2433e05ecdd0", - IsModified = true, - TransactionTypes = new string[]{"transfer"}, - TransferTypes = new string[]{"campaign", "expire", "transfer", "topup", "cashback", "coupon"}, - Description = "lMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71C", + PerPage = 488, + ShopId = "df54a0dd-6886-48e3-9eb1-744bcbbc5799", + ShopName = "he3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNa", + CustomerId = "c33eb352-e716-48c4-8889-1b33cd354978", + CustomerName = "5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdV", + TransactionId = "9709a64d-3dda-40c0-8123-e93e26b352bb", + PrivateMoneyId = "d3df41b3-d246-4c73-a7a1-1d42a25c5d17", + IsModified = false, + TransactionTypes = new string[]{"expire", "cashback", "transfer"}, + TransferTypes = new string[]{"transfer", "cashback", "exchange", "coupon", "payment"}, + Description = "iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4j", }; 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 = 9260, - PerPage = 3326, - ShopId = "d5a5578c-7bae-47a3-aa99-f5637047a47a", - ShopName = "dkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRY", - CustomerId = "46cf188d-37f9-4290-8e7c-416a33d4dc6a", - CustomerName = "LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhM", - TransactionId = "37e281d3-ae63-46b2-944a-792362a8a6f4", - PrivateMoneyId = "993c813a-a344-4a81-98d3-2cc37103ef75", - IsModified = false, - TransactionTypes = new string[]{"expire"}, - TransferTypes = new string[]{"topup", "exchange", "transfer", "payment"}, - Description = "wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm", + Page = 7961, + PerPage = 9212, + ShopId = "34944b80-f7a0-4a8f-a0bf-35b098a0d72f", + ShopName = "iR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8B", + CustomerId = "dfa2470b-cd49-4470-b657-baa483a5c6d7", + CustomerName = "FtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hA", + TransactionId = "c05feb53-cc41-43c0-a384-6145e006ed69", + PrivateMoneyId = "e0ce749e-709d-4c62-947d-3dad3ecc919d", + IsModified = true, + TransactionTypes = new string[]{"transfer", "expire", "payment", "cashback"}, + TransferTypes = new string[]{"payment", "topup", "cashback"}, + Description = "gL0O7DlAFrkX", }; 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 = "2023-09-01T01:03:55.000000Z", - Page = 2918, - PerPage = 2353, - ShopId = "21b93e60-808f-421a-bd2c-1472fc648820", - ShopName = "PWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4Y", - CustomerId = "fa5dc01a-235a-4222-900f-566473205bf3", - CustomerName = "Eswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLc", - TransactionId = "15705c66-3d97-463f-9cef-512191c03a5f", - PrivateMoneyId = "8ddef3d5-d37e-434d-86a2-f40b89980b53", - IsModified = false, - TransactionTypes = new string[]{"cashback", "exchange"}, - TransferTypes = new string[]{"coupon"}, - Description = "C6otpSw3LnpbrPkZnNjPW", + To = "2024-11-30T17:07:34.000000Z", + Page = 3103, + PerPage = 1438, + ShopId = "e27ea5e9-349d-4aac-a8c9-a7646b634b51", + ShopName = "Wu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQ", + CustomerId = "e6508477-0542-4109-b4b5-5695db668cbe", + CustomerName = "3YpOK96EoFGxVJNTeRlFM4Xw2Y", + TransactionId = "90c5c66e-f109-4465-86a8-f9db6ff9187c", + PrivateMoneyId = "d51c22d2-d2f4-4912-a160-24be0f60e318", + IsModified = true, + TransactionTypes = new string[]{"expire"}, + TransferTypes = new string[]{"expire", "exchange", "cashback", "payment"}, + Description = "c1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5", }; 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 = "2023-08-18T15:05:51.000000Z", - To = "2023-03-01T19:39:56.000000Z", - Page = 2230, - PerPage = 1954, - ShopId = "a2066044-b953-4abd-a685-8ad95fb37133", - ShopName = "gW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgx", - CustomerId = "457d80bc-fed9-4e6c-9646-809a30b6a25a", - CustomerName = "zBuHZ8tjsh68ScZg3aAMErPcV9o", - TransactionId = "ffbf5030-1754-4000-8285-77636e4fd8c7", - PrivateMoneyId = "fd6f07a7-b84a-4124-a026-46072c485deb", - IsModified = false, - TransactionTypes = new string[]{"transfer", "expire", "payment", "topup"}, - TransferTypes = new string[]{"payment", "exchange"}, - Description = "4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2", + From = "2023-01-31T19:53:42.000000Z", + To = "2020-11-25T00:01:59.000000Z", + Page = 371, + PerPage = 9610, + ShopId = "0daa6241-eb64-468f-8b22-e90fccf6a8e3", + ShopName = "z57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcm", + CustomerId = "c03f08d6-f73c-4310-998e-e8cfb6f09483", + CustomerName = "ZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgq", + TransactionId = "7767d664-c52b-4dc0-828f-137bf67aa788", + PrivateMoneyId = "6482c05c-77f1-4fab-866c-985dd4d2e565", + IsModified = true, + TransactionTypes = new string[]{"topup", "payment", "transfer"}, + TransferTypes = new string[]{"coupon", "campaign", "expire", "transfer"}, + Description = "jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjU", }; 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 a42e814..3993013 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 = "2021-03-28T22:16:50.000000Z", + To = "2020-01-08T17:12:41.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 = "2022-10-27T02:06:39.000000Z", - To = "2024-02-01T22:04:49.000000Z", + From = "2021-12-16T08:04:11.000000Z", + To = "2020-04-29T19:21:39.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 = "pULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UT", - From = "2024-04-07T00:56:55.000000Z", - To = "2020-01-22T13:39:45.000000Z", + Description = "u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4B", + From = "2023-10-31T08:54:47.000000Z", + To = "2023-07-22T14:32:24.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[]{"cashback", "transfer", "exchange", "coupon", "payment", "expire"}, - Description = "mZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0", - From = "2021-06-25T08:31:30.000000Z", - To = "2022-05-10T23:17:05.000000Z", + TransferTypes = new string[]{"topup", "coupon"}, + Description = "VHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFG", + From = "2020-01-25T23:10:28.000000Z", + To = "2023-11-08T13:55:42.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 = 10, - TransferTypes = new string[]{"topup", "coupon", "transfer", "exchange", "cashback", "campaign", "payment"}, - Description = "md5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhw", - From = "2020-06-10T10:23:24.000000Z", - To = "2020-02-27T12:23:59.000000Z", + PerPage = 704, + TransferTypes = new string[]{"expire", "topup", "transfer", "cashback", "campaign", "exchange", "payment"}, + Description = "N09yrly", + From = "2023-05-27T22:36:04.000000Z", + To = "2024-08-06T10:48:42.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 = "945ca1f7-55e9-4f79-bb85-da191976c705", - PerPage = 797, - TransferTypes = new string[]{"cashback", "campaign", "topup"}, - Description = "RBRxfHZeKBVf4jVtecQNubIdHetI", - From = "2023-11-03T10:10:38.000000Z", - To = "2020-11-09T06:14:26.000000Z", + PrevPageCursorId = "dfea952b-390a-4b5d-acc8-9363eedcb0f8", + PerPage = 620, + TransferTypes = new string[]{"topup", "expire"}, + Description = "JWs83eoAqvgg01zZW75", + From = "2022-10-11T07:11:26.000000Z", + To = "2022-07-16T14:02:15.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 = "4b714bd0-b38c-440c-9593-703fc8007572", - PrevPageCursorId = "719a092d-0ef6-4cf0-a50a-22ceae10f8fd", - PerPage = 569, - TransferTypes = new string[]{"cashback", "transfer", "topup", "expire", "campaign"}, - Description = "gyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWC", - From = "2020-12-20T16:54:05.000000Z", - To = "2022-11-10T17:29:27.000000Z", + NextPageCursorId = "21399452-c3c4-4427-98e7-002189fe3257", + PrevPageCursorId = "19f76952-b518-443f-94ce-01f726f024ef", + PerPage = 149, + TransferTypes = new string[]{"exchange", "coupon", "payment"}, + Description = "R1aePdc9fGHLcwyelAg5Jr7zE", + From = "2021-03-24T01:30:31.000000Z", + To = "2022-10-26T22:36:30.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[]{"expire", "exchange", "cashback"}, - NextPageCursorId = "48f6f858-9a18-4860-8146-fbb73e1a5e78", - PrevPageCursorId = "28058465-86ae-48ef-a0d4-aca810e6a992", - PerPage = 817, - TransferTypes = new string[]{"payment", "cashback", "topup", "expire"}, - Description = "KEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8", - From = "2023-03-16T16:33:44.000000Z", - To = "2022-12-04T08:35:53.000000Z", + TransactionTypes = new string[]{"expire", "topup"}, + NextPageCursorId = "b1dc3b78-c7a9-4858-aab7-3eb4a58e7b7e", + PrevPageCursorId = "ad774199-896a-47bd-b620-f02ef3274eb4", + PerPage = 407, + TransferTypes = new string[]{"expire", "coupon", "transfer", "topup", "cashback"}, + Description = "Vakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5k", + From = "2023-10-08T16:25:30.000000Z", + To = "2021-12-04T15:56:15.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -186,15 +186,15 @@ public async Task ListTransfersV29() { try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { - IsModified = true, - TransactionTypes = new string[]{"transfer", "exchange", "payment"}, - NextPageCursorId = "688b6dbf-ab42-453b-a6c1-99e1260a219a", - PrevPageCursorId = "83e60a37-835b-40a5-ab8a-a3a9fbb5c661", - PerPage = 804, - TransferTypes = new string[]{"topup", "exchange", "expire"}, - Description = "vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7u", - From = "2022-02-26T07:53:59.000000Z", - To = "2020-08-14T03:48:49.000000Z", + IsModified = false, + TransactionTypes = new string[]{"cashback", "payment", "expire", "transfer", "exchange"}, + NextPageCursorId = "d538a3df-30bf-4f81-8225-875a16b74c46", + PrevPageCursorId = "7dd1745a-110f-4adb-9bf7-e2e8ecc0df79", + PerPage = 310, + TransferTypes = new string[]{"coupon", "payment", "topup", "transfer", "cashback"}, + Description = "wbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j", + From = "2021-04-25T05:44:24.000000Z", + To = "2020-04-09T02:34:20.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 = "2d5427e9-a2a0-4357-a1af-a8f2ce508046", + PrivateMoneyId = "1831b86f-28ad-4296-9762-43a03c0126e8", IsModified = true, - TransactionTypes = new string[]{"exchange"}, - NextPageCursorId = "6fcb410c-dc83-45b4-8fec-9db7171410b0", - PrevPageCursorId = "3966e75a-48bf-4d73-8708-e0f988dbed50", - PerPage = 6, - TransferTypes = new string[]{"coupon", "expire", "campaign", "payment", "transfer"}, - Description = "ZYRURgUMf0P", - From = "2020-10-25T02:59:22.000000Z", - To = "2021-12-19T15:36:33.000000Z", + TransactionTypes = new string[]{"transfer"}, + NextPageCursorId = "38e49e91-907f-454b-a61b-ce513fc21a07", + PrevPageCursorId = "8384ebc1-f186-4790-9b50-3232f2bbe662", + PerPage = 775, + TransferTypes = new string[]{"transfer", "expire", "payment", "campaign", "topup", "exchange", "cashback"}, + Description = "Ih2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlI", + From = "2024-08-27T10:10:53.000000Z", + To = "2020-06-11T22:57:05.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 = "4bcc7daf-a435-429b-8aef-907a12de16c8", - PrivateMoneyId = "ed7f5c44-1c6e-4ba2-8ab0-db90f1aa10e9", + TransactionId = "a1883389-64e0-406c-97bd-6fd15e6e57bd", + PrivateMoneyId = "8a24a8f6-78bb-4f5c-8c35-129ce549d9bd", IsModified = true, - TransactionTypes = new string[]{"cashback", "topup", "payment", "expire", "exchange", "transfer"}, - NextPageCursorId = "87e72bef-f6d7-4fc9-92d2-8d4d0f8e7884", - PrevPageCursorId = "9859849b-0e1b-438a-b9d2-cfaa3919a430", - PerPage = 367, - TransferTypes = new string[]{"coupon"}, - Description = "h8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjt", - From = "2023-11-08T18:30:00.000000Z", - To = "2022-09-19T08:45:54.000000Z", + TransactionTypes = new string[]{"topup", "payment", "transfer", "expire", "cashback"}, + NextPageCursorId = "10f1b012-9135-40d6-b24c-5d7825b46301", + PrevPageCursorId = "25b8bf9f-e0a6-49fa-be5e-6a9a1b6b80d2", + PerPage = 906, + TransferTypes = new string[]{"transfer", "exchange", "coupon"}, + Description = "0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxS", + From = "2021-03-09T02:06:00.000000Z", + To = "2023-08-20T00:12:59.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 = "EK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJC", - TransactionId = "ac848a80-6f5a-4377-b51c-2f7d54772124", - PrivateMoneyId = "5850f865-a85c-4de5-8a34-a477e25b1303", - IsModified = true, - TransactionTypes = new string[]{"payment", "exchange"}, - NextPageCursorId = "dfaed88e-f467-4539-80c3-a1ad92211b93", - PrevPageCursorId = "be8e6bb1-2939-45f8-92ec-3c3163b6a7c9", - PerPage = 109, - TransferTypes = new string[]{"exchange", "expire", "cashback", "transfer", "payment", "campaign", "coupon"}, - Description = "hd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNb", - From = "2021-12-25T16:56:56.000000Z", - To = "2024-04-05T09:30:04.000000Z", + CustomerName = "RZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjS", + TransactionId = "492931cb-bf93-4a8b-a8fc-675290cbea8c", + PrivateMoneyId = "d99d6bc7-e789-43cc-91af-9c704fab5cce", + IsModified = false, + TransactionTypes = new string[]{"cashback"}, + NextPageCursorId = "69c9fc89-7763-4b69-a021-a7ceca1bbd72", + PrevPageCursorId = "7392df4b-0df7-4b65-95c7-d2ca5bce0974", + PerPage = 623, + TransferTypes = new string[]{"expire", "exchange", "campaign", "payment", "cashback", "coupon", "topup", "transfer"}, + Description = "Sp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ys", + From = "2021-01-19T21:43:56.000000Z", + To = "2022-12-27T05:42:23.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 = "d685d86d-ca8f-4c76-bd55-e630f70142ec", - CustomerName = "YW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2", - TransactionId = "cf7aa022-a8f7-4e76-8002-0f5e7cade511", - PrivateMoneyId = "0aadcdb3-29b6-41d9-ba2c-f51c8fd34b75", + CustomerId = "79319f24-9c70-42a5-a240-f49283054703", + CustomerName = "O4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4Aj", + TransactionId = "eedee249-b5fc-41b4-b7f0-77af7a2a55a8", + PrivateMoneyId = "9af1aca7-46b6-4d93-b174-1149845a26a4", IsModified = false, - TransactionTypes = new string[]{"cashback", "transfer", "topup", "exchange"}, - NextPageCursorId = "34944b80-f7a0-4a8f-a0bf-35b098a0d72f", - PrevPageCursorId = "45e001c9-5f69-4c83-a485-a10e3f35d8d2", - PerPage = 949, - TransferTypes = new string[]{"coupon", "campaign", "cashback", "topup", "payment"}, - Description = "KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBK", - From = "2022-08-18T23:28:07.000000Z", - To = "2021-06-06T03:46:35.000000Z", + TransactionTypes = new string[]{"payment"}, + NextPageCursorId = "99284f30-0515-4147-ada1-ccfa2de3f748", + PrevPageCursorId = "1c46990c-4631-4d46-9257-af2f4cec889d", + PerPage = 535, + TransferTypes = new string[]{"coupon", "cashback", "expire", "campaign", "topup", "transfer", "exchange"}, + Description = "HaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEg", + From = "2023-07-05T02:20:51.000000Z", + To = "2020-11-07T16:26:53.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 = "wozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM80", - CustomerId = "dd6baf35-ff53-4a77-b473-045c86bb4e67", - CustomerName = "2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - TransactionId = "3a116368-839b-4e5f-871e-cfa95bb93e48", - PrivateMoneyId = "0c0210b7-3a0f-48a9-98cb-77031463f77e", - IsModified = true, - TransactionTypes = new string[]{"cashback", "expire"}, - NextPageCursorId = "cce36518-b3ea-40d9-ba55-7ce1b1bd3b34", - PrevPageCursorId = "202928b2-ccce-4592-a03b-05ceaf8e9598", - PerPage = 824, - TransferTypes = new string[]{"expire", "transfer", "exchange"}, - Description = "A8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwW", - From = "2022-07-27T18:07:25.000000Z", - To = "2023-11-18T23:19:50.000000Z", + ShopName = "myi8jmBN0T80aLvrKoRyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2V", + CustomerId = "585e6c88-d2de-4d11-afe8-42fd31b35ba8", + CustomerName = "3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQI", + TransactionId = "59173785-910e-4ec6-ac06-602550aa0481", + PrivateMoneyId = "158739a9-7065-48cb-981e-032489c19533", + IsModified = false, + TransactionTypes = new string[]{"expire", "exchange", "cashback", "transfer"}, + NextPageCursorId = "a96ba690-b9d7-4f07-aecc-721c9cd025cc", + PrevPageCursorId = "e7c1c735-08fe-4819-b16b-de591fb859a4", + PerPage = 849, + TransferTypes = new string[]{"expire", "exchange", "coupon", "campaign", "transfer"}, + Description = "8wILW6Ubji", + From = "2024-12-03T23:02:53.000000Z", + To = "2022-01-16T21:41:44.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 = "a82d0d5a-b54b-4a75-9757-3a664f0d00b4", - ShopName = "n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7Wk", - CustomerId = "2ac6695b-fe8d-4029-8a7a-dc99e0f319a5", - CustomerName = "gGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1Acj", - TransactionId = "0efd3522-b7bb-4585-8d39-04b64b56493b", - PrivateMoneyId = "e1d4c1ef-0889-40e6-b40f-220803757943", - IsModified = false, - TransactionTypes = new string[]{"expire"}, - NextPageCursorId = "67acf5d3-46c4-4e8e-a72f-d31bd1363058", - PrevPageCursorId = "ac669f4b-4876-4fa3-9679-2a356287daf0", - PerPage = 610, - TransferTypes = new string[]{"topup"}, - Description = "cOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcU", - From = "2022-09-09T13:07:13.000000Z", - To = "2022-07-09T22:34:02.000000Z", + ShopId = "f61f4136-f202-4891-85fd-7ceeadd80b44", + ShopName = "Vo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jl", + CustomerId = "78a2f880-27ae-4061-b350-f18ee5d56aa8", + CustomerName = "fb8OgNhhqnfBQjVs", + TransactionId = "0a8939c3-9bec-43bc-92d0-a0a7f31fc5aa", + PrivateMoneyId = "e0846892-8150-45af-8fe4-403452507b35", + IsModified = true, + TransactionTypes = new string[]{"transfer", "expire", "exchange", "payment", "topup"}, + NextPageCursorId = "c716076f-a376-4f45-a085-75d302ca2b6f", + PrevPageCursorId = "bc0a9fb5-e1af-4e4f-b7be-bec4478fa0f7", + PerPage = 809, + TransferTypes = new string[]{"expire", "transfer", "campaign"}, + Description = "NZPFf6xG0YeVkLQLhc7hb", + From = "2023-06-06T19:42:12.000000Z", + To = "2022-10-28T19:18:34.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 e262773..606c85c 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 = 7230, + PerPage = 2833, }; 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 = 8126, - PerPage = 3761, + Page = 8498, + PerPage = 6549, }; 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 89c220f..ecf573a 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( - "41167bab-0bdc-48eb-af74-be24a3480c0d" + "f8f0c0a8-7ad4-4de6-ae18-b7ce2227fedc" ); 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( - "41167bab-0bdc-48eb-af74-be24a3480c0d" + "f8f0c0a8-7ad4-4de6-ae18-b7ce2227fedc" ) { - Description = "8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5", + Description = "oNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh", }; 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 b3477d5..5474dea 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( - "2634458e-85bb-446e-a604-45b3d926b280" + "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7" ); 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( - "2634458e-85bb-446e-a604-45b3d926b280" + "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7" ) { - ReturningPointExpiresAt = "2021-07-12T01:42:18.000000Z", + ReturningPointExpiresAt = "2021-06-16T06:07:31.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( - "2634458e-85bb-446e-a604-45b3d926b280" + "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7" ) { - Description = "z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9n", - ReturningPointExpiresAt = "2020-10-24T13:36:41.000000Z", + Description = "vnEoyfpAANnkoel9aDgdNSfmE5De5bTvM", + ReturningPointExpiresAt = "2022-08-29T20:00:57.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 11aeb81..898db6e 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( - "2021-10-31T04:43:35.000000Z", - "2024-01-28T07:50:44.000000Z" + "2021-04-23T15:11:54.000000Z", + "2023-07-30T12:31:10.000000Z" ); Response.UserStatsOperation response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestTerminateUserStats.cs b/src/PokepayPartnerCsharpSdk.Test/TestTerminateUserStats.cs new file mode 100644 index 0000000..8f5b3df --- /dev/null +++ b/src/PokepayPartnerCsharpSdk.Test/TestTerminateUserStats.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 TestTerminateUserStats + { + private Client client; + + [OneTimeSetUp] + public void OneTimeSetup() + { + client = new Client("~/.pokepay/test-config.ini"); + } + + [Test] + public async Task TerminateUserStats0() + { + try { + Request.TerminateUserStats request = new Request.TerminateUserStats( + "311f49ae-5b54-4af8-ad0f-99ed5e1b05df" + ); + Response.UserStatsOperation 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/TestUpdateBill.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateBill.cs index b8fcaab..fb681d5 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( - "825a4ce6-af48-4f92-92de-d87acb01778b" + "49594616-bc5c-4584-92c2-86e8d8bb2ade" ); 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( - "825a4ce6-af48-4f92-92de-d87acb01778b" + "49594616-bc5c-4584-92c2-86e8d8bb2ade" ) { IsDisabled = false, }; @@ -57,10 +57,10 @@ public async Task UpdateBill2() { try { Request.UpdateBill request = new Request.UpdateBill( - "825a4ce6-af48-4f92-92de-d87acb01778b" + "49594616-bc5c-4584-92c2-86e8d8bb2ade" ) { - Description = "lBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdh", - IsDisabled = true, + Description = "JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8Vm", + IsDisabled = false, }; Response.Bill response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task UpdateBill3() { try { Request.UpdateBill request = new Request.UpdateBill( - "825a4ce6-af48-4f92-92de-d87acb01778b" + "49594616-bc5c-4584-92c2-86e8d8bb2ade" ) { - Amount = 2260.0, - Description = "5YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDq", - IsDisabled = false, + Amount = 5303.0, + Description = "aafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqd", + IsDisabled = true, }; 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 8e5f99f..4b0abbc 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs @@ -25,8 +25,10 @@ public async Task UpdateCampaign0() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" - ); + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + ApplicableShopIds = new string[]{"c9f76ecd-6bb6-4e7d-9900-69fb6b435325", "4d16c9e9-6ce0-4e55-a3c2-ac57c8c198b9", "a9f53d2e-73df-482d-964c-ea26e6c45dc4", "e98809d5-cb15-43e5-aa88-cba882c9114a", "f0362b8f-0fe5-4534-ac61-2ad4e681ac08", "88d18d05-0902-4bc6-8f92-f2ebc04916e3", "3a1e55ca-1bc1-4cf9-9039-e9f62db66b00", "59d33133-e18f-43ec-910a-5f5265128b88", "c44add35-39ff-4eff-a066-e117c5316fca"}, + }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); } catch (HttpRequestException e) { @@ -40,9 +42,10 @@ public async Task UpdateCampaign1() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - BudgetCapsAmount = 1257695092, + ApplicableShopIds = new string[]{"8400e328-857b-45d3-9e43-bf8455aca85b", "4a0d5cc6-d375-473c-861d-2e4a98d30202"}, + Name = "VqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +60,11 @@ public async Task UpdateCampaign2() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1282312967, + ApplicableShopIds = new string[]{"42a92ba6-603d-4ec6-86b3-4648aee5b29b", "1a7796c1-22fa-4fe8-8074-f3f4b489623b"}, + StartsAt = "2024-11-26T09:32:33.000000Z", + Name = "u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPg", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +79,12 @@ public async Task UpdateCampaign3() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 74841204, + ApplicableShopIds = new string[]{"4c662b03-c8da-41d1-9d25-c092b6723f1b", "191baaef-c3de-41aa-87c7-3ca684b65158", "88781984-43ab-444c-a5dc-4fbaf39c77db", "5501a784-31be-4de2-89b8-106858f9cd54", "f2c9c37d-7535-420f-b68c-772e28408c7a", "c10ff6e2-1a7f-40db-a2c6-9a790cad39ab"}, + EndsAt = "2021-10-06T11:45:16.000000Z", + StartsAt = "2022-05-24T06:34:50.000000Z", + Name = "W03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnB", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +99,13 @@ public async Task UpdateCampaign4() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - MaxTotalPointAmount = 9972, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 372920635, + ApplicableShopIds = new string[]{"0340e3dd-7eaf-4b74-beef-ec2176683dbd", "528a7560-32f9-4127-8b1b-346d76d68203", "9b65502b-ffba-4633-b8db-5842f07add9b"}, + Priority = 6952, + EndsAt = "2024-02-03T07:11:05.000000Z", + StartsAt = "2020-08-08T18:52:26.000000Z", + Name = "1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +120,14 @@ public async Task UpdateCampaign5() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - MaxPointAmount = 5041, - MaxTotalPointAmount = 5091, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 591760852, + ApplicableShopIds = new string[]{"eb6a857c-d483-49da-a7bf-7d599fa25f97", "e9af168b-f214-40b6-9a6f-78ed6a826046", "61a35d5a-ba0e-4c63-bd7d-5efe32c9f6b6", "c1b052e3-48b5-4015-acc1-000c1446613d", "43d5ffe9-0be1-4bfc-88b7-486b8ce4bfc0"}, + Event = "topup", + Priority = 4506, + EndsAt = "2023-01-09T01:56:56.000000Z", + StartsAt = "2021-12-27T06:24:27.000000Z", + Name = "q2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNs", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +142,15 @@ public async Task UpdateCampaign6() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - ExistInEachProductGroups = true, - MaxPointAmount = 9981, - MaxTotalPointAmount = 929, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1726007251, + ApplicableShopIds = new string[]{"1766cd63-6447-49c5-9065-b603a951d9be", "6f8f0883-fb1d-4087-a3e0-140a6e66b3b2"}, + Description = "k3yuD", + Event = "payment", + Priority = 6784, + EndsAt = "2021-08-27T10:45:03.000000Z", + StartsAt = "2021-06-12T02:04:51.000000Z", + Name = "8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbT", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -157,15 +165,16 @@ public async Task UpdateCampaign7() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - MinimumNumberForCombinationPurchase = 392, - ExistInEachProductGroups = false, - MaxPointAmount = 7358, - MaxTotalPointAmount = 9217, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 403122126, + ApplicableShopIds = new string[]{"b2792a96-fad6-4515-bc34-d89c34d8785c", "4ebb7ad7-2897-479f-97f3-c2a0f10b0152", "788e08f9-ffdd-42ff-8423-2c2c9dec8ad2", "c731de2b-2f5b-4ad8-a752-ab8cb55c142d", "7ed7e01b-2bd9-43ad-80bb-81d6d2e71b9e", "8befc284-c5e7-48b4-a7c3-e1590f87239d", "9e83018d-908d-4475-ba53-6d03fff0600a", "38c618c2-4b57-4e94-b4f3-628e385fb69e"}, + Status = "enabled", + Description = "Pc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyB", + Event = "topup", + Priority = 2577, + EndsAt = "2024-04-22T15:48:34.000000Z", + StartsAt = "2022-10-08T20:03:19.000000Z", + Name = "sSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,16 +189,17 @@ public async Task UpdateCampaign8() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - MinimumNumberOfAmount = 2117, - MinimumNumberForCombinationPurchase = 6334, - ExistInEachProductGroups = false, - MaxPointAmount = 6807, - MaxTotalPointAmount = 3593, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 931773574, + ApplicableShopIds = new string[]{"63a15714-66a8-425c-a910-dc98d027086e", "ee74dd0c-7025-48e3-a134-5c8032281633", "fd58a5b3-b333-4e5f-93d7-c1fcf9fa21ec", "6cf8df70-7134-4b7c-b309-13b796911b1a"}, + PointExpiresAt = "2022-05-23T13:17:01.000000Z", + Status = "disabled", + Description = "jS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzG", + Event = "topup", + Priority = 602, + EndsAt = "2021-06-16T02:38:20.000000Z", + StartsAt = "2023-07-20T13:31:57.000000Z", + Name = "wzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHM", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -204,17 +214,18 @@ public async Task UpdateCampaign9() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - MinimumNumberOfProducts = 9393, - MinimumNumberOfAmount = 2437, - MinimumNumberForCombinationPurchase = 2173, - ExistInEachProductGroups = false, - MaxPointAmount = 6408, - MaxTotalPointAmount = 3353, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 2073505514, + ApplicableShopIds = new string[]{"ae8208c4-2c14-4a25-83b4-61a421379c17", "8acbfbd8-d16a-46c1-8067-dc0041377912", "6ca59f99-eb83-4eee-a8dc-5ace4d05a7ff", "1686f867-e50d-4dd0-9b79-7754bbe36a98", "ef7f3761-31f3-40a7-b131-2449da38cc2c"}, + PointExpiresInDays = 8647, + PointExpiresAt = "2024-12-12T03:03:45.000000Z", + Status = "disabled", + Description = "xHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2", + Event = "external-transaction", + Priority = 8696, + EndsAt = "2024-10-26T07:48:40.000000Z", + StartsAt = "2023-03-14T00:53:09.000000Z", + Name = "IalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW2", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -229,18 +240,19 @@ public async Task UpdateCampaign10() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - ApplicableShopIds = new string[]{"2bc9b844-4414-4312-b2e5-17182cffdc74", "b6dccb11-6e36-478c-8511-dad23193dd38", "717c9339-01f6-49d2-8207-f481f806a765"}, - MinimumNumberOfProducts = 9449, - MinimumNumberOfAmount = 1370, - MinimumNumberForCombinationPurchase = 7754, - ExistInEachProductGroups = true, - MaxPointAmount = 7360, - MaxTotalPointAmount = 8829, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1620818382, + ApplicableShopIds = new string[]{"a8fbf4ee-e8fe-42a1-86cb-3aca5a8788bd", "b5f55359-36bf-4c44-b61d-6f7ac526a7cd", "bc02d5b0-1726-40b0-95b4-63d15775b1e0", "b8209327-8cd3-48d9-a46b-ae7bf7aa4de5", "26e6a663-1fba-47a0-af02-0d7f27e50dc6", "f8c1cd4a-3efa-4b80-87f2-6c333f12861f"}, + IsExclusive = false, + PointExpiresInDays = 7676, + PointExpiresAt = "2021-09-21T10:54:53.000000Z", + Status = "disabled", + Description = "rOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7", + Event = "payment", + Priority = 2763, + EndsAt = "2024-11-15T05:03:53.000000Z", + StartsAt = "2024-01-19T05:12:47.000000Z", + Name = "wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHU", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -255,19 +267,20 @@ public async Task UpdateCampaign11() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - 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[]{"3a41cf25-25cd-4710-afe6-f7bf3aa0f1a5", "becf2803-03bb-477d-9eaa-56533f825c68", "f4ff8941-edb8-4244-b440-e4e0175165c5", "e65a7cf6-32b7-400f-9a21-37cf67d8d1dc", "47c663b7-e680-4ebe-9414-c74733f70754", "dca30b37-b730-424c-afa1-1ac07a54ee90", "f544750a-6151-4e5d-b214-64655a2e4af0"}, - MinimumNumberOfProducts = 9490, - MinimumNumberOfAmount = 2169, - MinimumNumberForCombinationPurchase = 5263, - ExistInEachProductGroups = false, - MaxPointAmount = 2965, - MaxTotalPointAmount = 7599, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1021885705, + ApplicableShopIds = new string[]{"699688df-8c22-44c3-b7b9-818b3067ab19", "19425bc9-a3ae-48c4-9dd5-7e24eee0f438"}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 1824, + PointExpiresAt = "2024-11-16T01:21:20.000000Z", + Status = "enabled", + Description = "5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExd", + Event = "external-transaction", + Priority = 4180, + EndsAt = "2021-06-14T01:19:36.000000Z", + StartsAt = "2024-06-04T21:57:34.000000Z", + Name = "tgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7Peq", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -282,20 +295,21 @@ public async Task UpdateCampaign12() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - ApplicableDaysOfWeek = new int[]{6, 2, 2, 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[]{"78057d7f-8201-4318-9f0c-f3a728e94ff7", "4e2153bc-5ac3-45aa-858b-cdf74d79032b"}, - MinimumNumberOfProducts = 379, - MinimumNumberOfAmount = 990, - MinimumNumberForCombinationPurchase = 3872, - ExistInEachProductGroups = false, - MaxPointAmount = 2423, - MaxTotalPointAmount = 3894, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 849466229, + ApplicableShopIds = new string[]{"24f2600a-f196-41c7-894e-454ef835fd9d", "0ecc5198-c71c-4879-aec7-a0ab375b09fb", "c7c6212a-07ad-484d-b806-af8a3c10f09a"}, + 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}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 6634, + PointExpiresAt = "2022-04-06T15:10:10.000000Z", + Status = "disabled", + Description = "poUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wD", + Event = "payment", + Priority = 6368, + EndsAt = "2023-01-11T13:07:39.000000Z", + StartsAt = "2021-11-15T23:18:56.000000Z", + Name = "01hvmpIXnG4Vdq7gNAtqrq", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -310,21 +324,22 @@ public async Task UpdateCampaign13() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - 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, 0, 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"}}}, - ApplicableShopIds = new string[]{"844dbeb1-d3c1-48e4-ab1b-ad04f07d955d", "bb85a1d1-e1a1-4b1c-a0a6-37ba3a4d2f8a", "59d05e53-968e-4076-b2b2-d3bd2d2d6e00", "177555ea-64c4-4d32-80de-ffc3743059d0", "56f6235e-f142-4510-8cc5-38a2a47ebee7"}, - MinimumNumberOfProducts = 786, - MinimumNumberOfAmount = 4293, - MinimumNumberForCombinationPurchase = 217, - ExistInEachProductGroups = true, - MaxPointAmount = 8660, - MaxTotalPointAmount = 4681, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1173097401, + ApplicableShopIds = new string[]{"6584dba9-c275-4acb-914e-d851b80fb348", "cb9085b3-3e18-4b50-8715-6a44efdd8e8d", "c932cee3-a052-4b77-bb7c-1555c7a455c3", "51b13f07-d4e5-448f-bd63-2f983395c410", "7fe01553-e606-4642-aaa7-562dca7db54f", "e3315b09-f550-4ddd-a15e-b3f2569836d9", "cecec57c-1655-45e6-8118-bfdb1b3702d4"}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 3187, + PointExpiresAt = "2021-05-04T11:50:03.000000Z", + Status = "enabled", + Description = "xUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOc", + Event = "topup", + Priority = 2637, + EndsAt = "2021-03-17T16:04:27.000000Z", + StartsAt = "2023-09-15T20:54:07.000000Z", + Name = "dluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7P", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -339,22 +354,23 @@ public async Task UpdateCampaign14() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - 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"}}}, - ApplicableDaysOfWeek = new int[]{2, 1, 4, 1, 5, 3, 0}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"939ba344-d589-4228-be82-712e59bddd54", "5e13186e-f44d-49d0-bc7c-a810509bf1f4", "257df241-205e-49b7-a654-85900f04b71a", "921cb625-1533-4584-85ae-5db2f6902bee"}, - MinimumNumberOfProducts = 38, - MinimumNumberOfAmount = 8741, - MinimumNumberForCombinationPurchase = 7698, - ExistInEachProductGroups = false, - MaxPointAmount = 2981, - MaxTotalPointAmount = 6859, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 361855649, + ApplicableShopIds = new string[]{"3d6914eb-e394-43ff-9e5d-2c45acb745c0", "4febd7fa-dd2d-47a1-99a3-b8aeafeede15"}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 7672, + PointExpiresAt = "2022-12-09T16:08:20.000000Z", + Status = "enabled", + Description = "xI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55m", + Event = "payment", + Priority = 3853, + EndsAt = "2024-10-04T18:37:03.000000Z", + StartsAt = "2023-02-16T15:02:22.000000Z", + Name = "16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8C", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -369,23 +385,24 @@ public async Task UpdateCampaign15() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - 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"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{3, 1, 1, 2, 1, 2, 2, 6, 3, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"e6d341ad-c777-4fb5-96f5-676e91621e6e", "f193e6a4-bee8-4a32-b91a-33ac9cf0bc98", "1a077071-59fd-4bd7-915a-4dfa110ff710", "874b9f31-d5ab-4334-81f8-e1420a152338", "0b04c1b9-00b1-4cf2-90e0-5cd6ca36e237", "c85bc346-063e-4263-a487-db211357dd08", "de992644-6a80-4b65-9210-22ded3bcc15b", "cf625ec2-feb6-4531-b663-01ffd923a73a", "f09ba024-80a2-44cf-9a60-7e9d56f684b1"}, - MinimumNumberOfProducts = 4875, - MinimumNumberOfAmount = 5568, - MinimumNumberForCombinationPurchase = 3535, - ExistInEachProductGroups = true, - MaxPointAmount = 9475, - MaxTotalPointAmount = 7235, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1961563029, + ApplicableShopIds = new string[]{"2b8d86f6-d9c4-44a4-be5e-0f87167f3e52", "90226a7f-0358-431b-ae93-5a92718d4d3a", "1a014115-31fe-4c7e-ac4a-cded007ce979", "b0ee7acd-878d-4ca3-9a55-5d284170a1db", "e48bf7f1-de17-42be-b36e-91cf34f1d995", "1580a8ce-68a1-4364-94ce-7325a17178dc"}, + ApplicableDaysOfWeek = new int[]{5}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 8795, + PointExpiresAt = "2023-03-19T05:41:14.000000Z", + Status = "disabled", + Description = "qTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSB", + Event = "payment", + Priority = 59, + EndsAt = "2022-01-06T16:47:36.000000Z", + StartsAt = "2021-03-31T06:34:29.000000Z", + Name = "UyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -400,24 +417,25 @@ public async Task UpdateCampaign16() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - 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[]{3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"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"}, - MinimumNumberOfProducts = 8938, - MinimumNumberOfAmount = 9639, - MinimumNumberForCombinationPurchase = 858, - ExistInEachProductGroups = true, - MaxPointAmount = 5299, - MaxTotalPointAmount = 100, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 54646961, + ApplicableShopIds = new string[]{"db430470-d96b-4ad4-8ae5-a4c6905e4334", "444f834c-c3c1-4f07-99a9-a9353c24a656", "e5e59815-e03f-4704-9297-efc711474857", "99f8b7e0-0497-4eac-ad5f-1aec30040a4f", "8be2bebc-c635-4f35-9d74-cffbd49d4311", "240e82cc-a804-49d2-a8d8-c8e66959d9d0", "72307e74-8ae8-43c6-a00d-417256808081"}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{4, 2, 6, 0, 4}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 6772, + PointExpiresAt = "2022-11-15T00:33:00.000000Z", + Status = "enabled", + Description = "TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3Fo", + Event = "topup", + Priority = 6797, + EndsAt = "2023-11-19T05:24:02.000000Z", + StartsAt = "2020-04-25T16:46:21.000000Z", + Name = "iHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagep", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -432,25 +450,26 @@ public async Task UpdateCampaign17() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { + ApplicableShopIds = new string[]{"c754818c-7b2b-44c6-a3e2-14b0de860543", "7624fb33-2c70-40cd-a0e5-3168653611af", "4b5dfbbf-987b-4707-9ac2-68cc3592db77", "41fbb089-3910-4eb9-8223-841171f6111f", "198bdc20-4b95-4075-853e-95e8536ae327", "83823a5a-aba2-4789-b36c-0d836c4ceb78", "19bf5223-50ba-4f25-b01f-cb9353811d6b", "2b022919-bd7f-4db6-be21-593e36f33db5"}, + MinimumNumberOfProducts = 1825, + 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"}}}, + ApplicableDaysOfWeek = new int[]{4, 2, 4, 1, 5, 1, 0, 6, 6, 4}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", IsExclusive = false, - Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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, 0, 6, 3, 3, 6, 4, 4}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"1842ef30-7f0d-4a5f-a317-b7b2cf339476", "0e99ed35-c63c-444e-b6be-6fc5ed8cf352", "aff7efff-e0d2-4c1b-8fb1-afefd45bfd0b", "839dc4f6-5ad5-4d3b-af10-205301569a4d", "ebeaa614-70f8-4289-b52b-08f712c97414", "776b113c-071f-46ef-a973-7bb4c9443f33", "614c8f0c-933d-4886-9568-fbcbe853b0cf", "4b56778e-c574-4008-81ef-283f34e24629", "28db048d-7f58-4a88-a737-7d271935306f"}, - MinimumNumberOfProducts = 2417, - MinimumNumberOfAmount = 2069, - MinimumNumberForCombinationPurchase = 1254, - ExistInEachProductGroups = false, - MaxPointAmount = 6703, - MaxTotalPointAmount = 2742, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1673861038, + PointExpiresInDays = 2175, + PointExpiresAt = "2021-01-04T05:44:58.000000Z", + Status = "enabled", + Description = "ty5Zp232IvDDPPtMuse", + Event = "payment", + Priority = 6655, + EndsAt = "2024-11-21T06:19:03.000000Z", + StartsAt = "2024-01-07T22:31:56.000000Z", + Name = "POdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQn", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -465,26 +484,27 @@ public async Task UpdateCampaign18() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - PointExpiresInDays = 3641, + ApplicableShopIds = new string[]{"b8de8622-8dcd-4bd8-bb84-babcaaef39d0"}, + MinimumNumberOfAmount = 9598, + MinimumNumberOfProducts = 2553, + 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"}}}, + ApplicableDaysOfWeek = new int[]{3, 0, 4, 6, 6, 0, 2, 3}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", 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}}}, - 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"}}}, - ApplicableDaysOfWeek = new int[]{3, 0, 4, 6, 1, 5, 2, 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"}}}, - ApplicableShopIds = new string[]{"ead15dc2-d7fd-41ba-9c8e-9f97f161eeb1", "8d14362d-ca0e-49e8-a952-44ea487b2493", "e9a2c518-7754-4597-8ed3-5da746c40c15"}, - MinimumNumberOfProducts = 150, - MinimumNumberOfAmount = 7977, - MinimumNumberForCombinationPurchase = 4438, - ExistInEachProductGroups = false, - MaxPointAmount = 1205, - MaxTotalPointAmount = 1449, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 838627805, + PointExpiresInDays = 4808, + PointExpiresAt = "2020-08-28T01:35:33.000000Z", + Status = "enabled", + Description = "QvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5", + Event = "topup", + Priority = 5625, + EndsAt = "2023-07-04T15:47:08.000000Z", + StartsAt = "2021-05-02T16:53:33.000000Z", + Name = "sjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508La", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -499,27 +519,28 @@ public async Task UpdateCampaign19() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - PointExpiresAt = "2021-11-11T08:09:26.000000Z", - PointExpiresInDays = 1733, - 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}}}, - 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[]{3, 3, 1, 3, 1, 4, 3, 3, 5, 1}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"4058c719-9d18-4cba-975d-77c32101eff9", "9dbeb801-b407-4dbe-bd3f-7f7d483130cb", "5e14ac6d-6034-4df4-87dd-14327c04e81b", "256a4fc6-7c7a-4ae5-83ae-6adf354676d7"}, - MinimumNumberOfProducts = 6521, - MinimumNumberOfAmount = 9681, - MinimumNumberForCombinationPurchase = 2895, - ExistInEachProductGroups = true, - MaxPointAmount = 3790, - MaxTotalPointAmount = 4695, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 42169961, + ApplicableShopIds = new string[]{"7681cc3e-e04d-4f4e-ab28-0ef8aed9fb04", "175337f0-2d21-46d3-adae-5251ec8644f1", "4b3bc9eb-9a09-4e66-9784-af7bca55ed4c", "69a7bd7d-9df5-41b8-a004-f65e1e83ae60", "69602fac-bd10-46dd-85d7-7f62c77e9571", "f06e6f27-def1-4977-89ea-a423d75d203f", "3ec99890-d7e6-4677-bd4e-3b50b04d4bad", "d11cfe56-cee5-4019-82ef-3120e19a2704", "01e244b8-aeb8-4565-a72a-972e26959dbd", "1e05d0e7-01c6-42f5-8a5d-98ece21f30bd"}, + MinimumNumberForCombinationPurchase = 7460, + MinimumNumberOfAmount = 7729, + MinimumNumberOfProducts = 8229, + 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"}}}, + ApplicableDaysOfWeek = new int[]{2, 3, 5, 5, 2, 0, 6, 0}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 6196, + PointExpiresAt = "2022-06-24T15:54:29.000000Z", + Status = "enabled", + Description = "2C590AS7UiB0DiDGREmI", + Event = "payment", + Priority = 5893, + EndsAt = "2021-10-24T17:40:52.000000Z", + StartsAt = "2023-04-13T12:42:44.000000Z", + Name = "bC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxa", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -534,28 +555,29 @@ public async Task UpdateCampaign20() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - Status = "enabled", - PointExpiresAt = "2020-12-11T10:58:34.000000Z", - PointExpiresInDays = 2592, - 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}}}, - BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, - ApplicableDaysOfWeek = new int[]{5, 5, 1, 6, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"86b77f17-e426-4a92-aca8-c5464fc42fcc", "7eb76da7-5908-4f18-8d2b-3b1e4dcee2b0", "d517d25c-168f-4abe-844c-a67c78c18a88", "b433f764-07f7-42c0-9556-6fd87988f124", "09d015a2-2b31-45aa-a41f-923f2b2d4de0", "18cd3bee-e2bf-4866-905a-5b1e0b4dfef4", "24139a88-20fa-4747-b56e-fcd67d093088"}, - MinimumNumberOfProducts = 6603, - MinimumNumberOfAmount = 7849, - MinimumNumberForCombinationPurchase = 1988, + ApplicableShopIds = new string[]{"3973e337-4740-476b-86d6-088ccefe30d4", "7806258b-3282-4659-8c05-05dac0b1f174", "8eaf616a-8f90-4ef1-8fa0-6e2efe6c3841", "86b325b6-8ae2-4d6c-955e-0643a402a0ce", "b14e4e2d-fb2b-4c58-8d43-841741b8d7aa", "3039c402-0e2c-4178-898c-fa4287e35624", "c347c9b2-5ca9-4c33-8e4b-f802c8383e86", "c59f9b44-38ad-42fc-99f6-a125561e3517"}, ExistInEachProductGroups = false, - MaxPointAmount = 1156, - MaxTotalPointAmount = 6004, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1458651803, + MinimumNumberForCombinationPurchase = 6073, + MinimumNumberOfAmount = 7932, + MinimumNumberOfProducts = 9283, + 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"}}}, + ApplicableDaysOfWeek = new int[]{0, 3, 4, 6, 2, 3, 1, 5, 2, 5}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 5100, + PointExpiresAt = "2021-08-21T05:42:54.000000Z", + Status = "enabled", + Description = "611LhXRF1WjDXemYssWVQAa", + Event = "topup", + Priority = 2011, + EndsAt = "2020-06-16T23:34:44.000000Z", + StartsAt = "2020-12-17T18:00:51.000000Z", + Name = "9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV7", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -570,29 +592,30 @@ public async Task UpdateCampaign21() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - Description = "dFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMw", - Status = "disabled", - PointExpiresAt = "2023-02-02T22:14:56.000000Z", - PointExpiresInDays = 3178, - IsExclusive = false, - Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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}, + ApplicableShopIds = new string[]{"2d345eb4-d174-4e4b-943b-f4bc3bc45c3b", "19443439-a76f-4948-bd2f-c2fcbfb3f967", "def6586a-3fbd-4520-bd6e-d7d06dd9346e", "2f5f62e5-b335-4786-b159-d1dadeef4221", "2fc3984f-60d5-4b19-a5b0-dbfa52a346c7", "bb3993f1-89b4-4650-b0da-1a42cd4a0663", "07918b9f-e9bd-47b0-86f2-11fecac691ca"}, + MaxPointAmount = 849, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 1652, + MinimumNumberOfAmount = 2187, + MinimumNumberOfProducts = 2293, 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[]{"a37553d8-003b-4d76-beca-f5b9013b0a99", "01fef0c1-e450-493e-bc27-9257fb6937d6"}, - MinimumNumberOfProducts = 1278, - MinimumNumberOfAmount = 2535, - MinimumNumberForCombinationPurchase = 5798, - ExistInEachProductGroups = true, - MaxPointAmount = 5538, - MaxTotalPointAmount = 3214, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1868555247, + ApplicableDaysOfWeek = new int[]{3, 2, 1, 1, 5, 0, 4, 0}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 3421, + PointExpiresAt = "2024-06-11T19:01:54.000000Z", + Status = "enabled", + Description = "w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am", + Event = "topup", + Priority = 6451, + EndsAt = "2021-12-27T15:21:00.000000Z", + StartsAt = "2024-06-22T11:50:35.000000Z", + Name = "rhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014v", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -607,30 +630,31 @@ public async Task UpdateCampaign22() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - Event = "payment", - Description = "cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokne", - Status = "disabled", - PointExpiresAt = "2022-12-14T16:41:02.000000Z", - PointExpiresInDays = 9123, - IsExclusive = true, - Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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, 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"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"94dd02ea-81bc-45e8-b9bf-aac2e6bd7634"}, - MinimumNumberOfProducts = 6789, - MinimumNumberOfAmount = 2524, - MinimumNumberForCombinationPurchase = 7287, + ApplicableShopIds = new string[]{"6b7e8e67-c80a-4649-a3e8-a709f7d7c110", "09349235-1d18-4bdd-97a7-e1b6bc626358"}, + MaxTotalPointAmount = 7099, + MaxPointAmount = 3198, ExistInEachProductGroups = false, - MaxPointAmount = 9745, - MaxTotalPointAmount = 5037, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 445794314, + MinimumNumberForCombinationPurchase = 8269, + MinimumNumberOfAmount = 8030, + MinimumNumberOfProducts = 8354, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{4, 1, 4, 6, 6, 1, 3}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 6734, + PointExpiresAt = "2021-12-31T19:37:43.000000Z", + Status = "enabled", + Description = "7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFm", + Event = "payment", + Priority = 1144, + EndsAt = "2020-04-30T14:49:45.000000Z", + StartsAt = "2020-01-16T18:11:13.000000Z", + Name = "ZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9Te", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -645,31 +669,32 @@ public async Task UpdateCampaign23() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - Priority = 6971, - Event = "payment", - Description = "cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn", - Status = "disabled", - PointExpiresAt = "2023-06-23T22:33:27.000000Z", - PointExpiresInDays = 9477, - 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}}}, - 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, 4, 4, 1, 2, 0, 4, 0, 4}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"e9fa69db-6777-4a03-b270-f3a5c2a01f65", "0c9b2c44-939d-45fc-a2b0-580806e3e241", "922c1aa1-eabe-49b9-89c4-5459d3b74708", "526c1a50-e034-45a1-bcf3-38fba8878d11", "43aa5fc1-fa69-4fc6-8ea3-f19864140b77", "6cbfee21-abe1-4c19-a163-4639c51e0ba8"}, - MinimumNumberOfProducts = 6365, - MinimumNumberOfAmount = 1698, - MinimumNumberForCombinationPurchase = 9923, - ExistInEachProductGroups = false, - MaxPointAmount = 8188, - MaxTotalPointAmount = 4392, + ApplicableShopIds = new string[]{"bd62a394-f8bc-407a-be54-0113f2666213", "9b0a1ea7-1e2c-4aa1-8523-686a2702b006", "eee4ee33-6941-4cbe-96b0-ad1f5d8b89b8"}, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1655095538, + MaxTotalPointAmount = 9, + MaxPointAmount = 1641, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 6413, + MinimumNumberOfAmount = 6872, + MinimumNumberOfProducts = 8454, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableDaysOfWeek = new int[]{3, 1}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 8166, + PointExpiresAt = "2021-01-26T23:28:28.000000Z", + Status = "disabled", + Description = "FExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8X", + Event = "topup", + Priority = 5758, + EndsAt = "2022-04-27T13:44:04.000000Z", + StartsAt = "2022-01-18T13:10:32.000000Z", + Name = "n7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUo", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -684,32 +709,33 @@ public async Task UpdateCampaign24() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - EndsAt = "2022-12-29T01:56:56.000000Z", - Priority = 4895, - Event = "payment", - Description = "SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlf", - Status = "enabled", - PointExpiresAt = "2021-04-06T12:56:04.000000Z", - PointExpiresInDays = 7858, - IsExclusive = true, - Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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[]{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[]{"7f3f7563-bf14-4fdd-9d90-da0d77a128ff", "b9793da3-1c55-4ba6-8f9d-c8c0cbda4584", "53467317-d747-43d4-a559-b07551527ae1", "672dccb5-7244-4ef6-8ce5-8e4ac90e34f3", "f462a4ee-6e38-4fa7-a6ec-62e8571535c0", "cbdc053b-4749-4084-95a0-6663f08c0a0d"}, - MinimumNumberOfProducts = 6760, - MinimumNumberOfAmount = 7370, - MinimumNumberForCombinationPurchase = 4314, - ExistInEachProductGroups = true, - MaxPointAmount = 4015, - MaxTotalPointAmount = 5232, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + ApplicableShopIds = new string[]{"595c1980-0260-4c81-80c3-2e4a516cc535", "fd7c39df-819d-4669-9388-b2c80df53808", "8ea4f9f1-d2a2-476f-b287-b50f2b0aa6c9", "f602e714-6eaf-4573-b793-b68a92e1f1ab", "4ac8af15-d898-420b-8950-bde340b36c5e", "95e0b00a-f51e-4db2-aee3-354250721673", "08ab844c-51c5-410e-b75e-2473b652ceeb"}, ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1718807119, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + MaxTotalPointAmount = 3485, + MaxPointAmount = 8329, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 5609, + MinimumNumberOfAmount = 2835, + MinimumNumberOfProducts = 6590, + 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"}}}, + ApplicableDaysOfWeek = new int[]{5}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 1671, + PointExpiresAt = "2023-01-31T02:35:17.000000Z", + Status = "enabled", + Description = "epO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkq", + Event = "external-transaction", + Priority = 6370, + EndsAt = "2021-06-09T09:02:18.000000Z", + StartsAt = "2023-01-29T04:24:33.000000Z", + Name = "90Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXF", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -724,33 +750,34 @@ public async Task UpdateCampaign25() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - StartsAt = "2021-11-08T13:21:36.000000Z", - EndsAt = "2023-10-16T03:27:00.000000Z", - Priority = 1674, - Event = "topup", - Description = "4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8", - Status = "enabled", - PointExpiresAt = "2022-02-09T06:06:00.000000Z", - PointExpiresInDays = 8536, - 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}}}, - 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"}}}, - ApplicableDaysOfWeek = new int[]{1, 2, 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"}}}, - ApplicableShopIds = new string[]{"3bc07c98-d402-490b-a391-f0a8c5c6451b"}, - MinimumNumberOfProducts = 7629, - MinimumNumberOfAmount = 4402, - MinimumNumberForCombinationPurchase = 2825, - ExistInEachProductGroups = false, - MaxPointAmount = 1162, - MaxTotalPointAmount = 6193, - ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + ApplicableShopIds = new string[]{"eab7cba8-8347-4fd0-b19c-3ead4697257e", "319b7125-377b-4709-9100-5862f70a4f99", "16f3f8a3-7e04-4fe7-b1b2-d7dd85eeb82b"}, + BudgetCapsAmount = 1561450174, ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 1641296297, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + MaxTotalPointAmount = 4654, + MaxPointAmount = 3089, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 1597, + MinimumNumberOfAmount = 8315, + MinimumNumberOfProducts = 9998, + 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"}}}, + ApplicableDaysOfWeek = new int[]{4, 5, 2, 6, 6, 6, 1, 6, 5, 6}, + 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"}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 4010, + PointExpiresAt = "2023-10-05T14:46:25.000000Z", + Status = "disabled", + Description = "tZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl", + Event = "topup", + Priority = 2610, + EndsAt = "2024-03-01T03:45:35.000000Z", + StartsAt = "2020-06-28T22:55:18.000000Z", + Name = "tJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7", }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -765,34 +792,759 @@ public async Task UpdateCampaign26() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "45ab6949-7188-4bfd-adf3-deb32aa99c00" + "672576b7-ed66-4444-8827-b7292a9b19c5" ) { - Name = "FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I", - StartsAt = "2020-06-03T10:30:05.000000Z", - EndsAt = "2023-06-22T06:24:09.000000Z", - Priority = 3582, - Event = "payment", - Description = "CPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQ", - Status = "disabled", - PointExpiresAt = "2020-09-07T08:01:40.000000Z", - PointExpiresInDays = 8480, - 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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",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[]{1, 4, 0}, + BlacklistedShopIds = new string[]{"3f47acd8-82f7-4311-8901-18f118e275ad", "97db8b1f-aef9-4286-a5ab-5bd0aab1a784", "942971b9-b1fe-48b5-9357-c546ed5fa624", "7ad89b27-d073-42f2-84d4-275a34847c0b", "6e0e7673-fcd4-41a6-9cc8-bf615c4d61cc", "8e8c714d-c17b-46a7-81fb-62826937b9f8", "0ca969bb-9482-4c2c-b4a8-dbdf16fd2b8f", "0e7c36f8-7811-495d-a8a8-92852ee02523", "47bb32fd-b24a-492a-9bba-a26d2065ead0"}, + }; + 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 UpdateCampaign27() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"4c0a6e2b-9fe2-4332-9603-ecf4176462ff", "8a1a6e9b-532d-4db3-a583-f598f3742deb", "6d33bc7e-b323-457f-8e26-09cd39ad3a5f", "b2bb34e7-5a54-44fa-8178-12ed04ec02b3", "52b5266e-7418-439f-a5f5-b79be8e57343", "880cb074-926d-46b4-b4c0-3acd01710e1a", "fb8204b4-fda5-4af2-9137-373d4fe55298", "d71fe154-6ccd-475d-9740-cc2059223d3e", "e2fd9216-0277-4e9e-9c25-a5a38636a9ad"}, + Name = "QegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFM", + }; + 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 UpdateCampaign28() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"eca47459-f663-472a-bed0-ce7076fe44ef"}, + StartsAt = "2023-06-23T11:52:36.000000Z", + Name = "qcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43", + }; + 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 UpdateCampaign29() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"34e80ba6-2f45-4b33-aeb3-b4c39aacf507", "06096f8b-208a-4509-91d0-8a60c61d6c46", "43be5e88-adb6-413c-ab78-58c916821e93", "1783716c-e749-40b0-b5a2-65673b4e3d75"}, + EndsAt = "2021-12-05T08:00:45.000000Z", + StartsAt = "2022-05-31T11:49:14.000000Z", + Name = "DnziraNYM7VX5Y", + }; + 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 UpdateCampaign30() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"59e84585-2bcc-43a4-a73a-ec2e66dc2d5f", "f3fd8b6e-b22e-4b02-a1ec-4c8e12c81ac4", "17cc4e38-ffc8-4340-8fcf-1643e4f69e44", "4e51586c-490a-42d0-b447-5ddaef0079b7", "10886b6a-b3e2-41a5-ad0c-bad82e268c4d", "7b3ef9cf-9299-4735-88fa-01bba4ee4696", "d170293e-c187-4a56-8d77-6ae63c418e08", "02ab03a8-e69c-4d12-ab21-71b348e1abe6"}, + Priority = 2747, + EndsAt = "2024-01-30T12:47:53.000000Z", + StartsAt = "2023-04-21T05:15:49.000000Z", + Name = "ehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBM", + }; + 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 UpdateCampaign31() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"ec1c2a4f-0135-4e10-a3df-40ff47c645de", "41a8d03f-1f35-4273-bf29-fa6923fb6f3a", "58aeaf42-ab1a-41e8-9dd0-07d327dad960", "8792d3b0-8450-48ae-87a2-c164359d78fb"}, + Event = "payment", + Priority = 6443, + EndsAt = "2020-06-19T13:38:47.000000Z", + StartsAt = "2021-09-13T04:39:55.000000Z", + Name = "ltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdug", + }; + 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 UpdateCampaign32() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"7e6ff4bf-441c-4f28-9dbe-1f73e8cf356d", "2c6a6952-c674-49a8-8710-a1fe88852203", "7915473f-93ab-4edd-aea2-0746800d76bd", "9fc4ea25-b51f-4ab7-a9cc-1a342f159c6b", "ca83b0a1-19ac-4d06-860e-b1c3a745e357"}, + Description = "rbFqt27c2GHcIyayD2aKjX", + Event = "external-transaction", + Priority = 7430, + EndsAt = "2020-04-25T01:02:58.000000Z", + StartsAt = "2020-04-27T02:05:11.000000Z", + Name = "Ty0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6", + }; + 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 UpdateCampaign33() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"82d504fb-d18c-4c8b-b392-f5c4267a8203", "02cfad0a-179e-4766-8d2a-8374c4db075a", "f8644ce3-b5dc-4b8c-a1be-f18eba09fb10", "829b4faf-d5e4-4879-bb67-301d25be4e90", "9391df05-f6ff-45a2-ac99-656d513e3a4e", "c2529fa7-92d8-41be-a2a0-d8a365d08445", "917d792f-36f0-4870-bb95-4b452b863ddd", "96afa498-c680-4b74-8191-fef782f38e2e"}, + Status = "disabled", + Description = "qu8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1", + Event = "topup", + Priority = 4573, + EndsAt = "2023-12-10T19:57:37.000000Z", + StartsAt = "2024-05-09T06:54:12.000000Z", + Name = "s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR", + }; + 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 UpdateCampaign34() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"18dae39f-f04c-46a4-826a-c9faaccc7e8c", "25c0b743-589a-470d-94e4-f9acae24e3fd", "1db6f010-3985-4683-a7fb-f07be2c22405", "f2b37851-0eef-4403-a434-6b981840dd47"}, + PointExpiresAt = "2020-09-01T07:38:37.000000Z", + Status = "enabled", + Description = "Y7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfS", + Event = "external-transaction", + Priority = 8848, + EndsAt = "2024-06-01T23:18:38.000000Z", + StartsAt = "2020-10-18T07:46:52.000000Z", + Name = "jgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9", + }; + 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 UpdateCampaign35() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"84daa522-0d73-4b84-ac04-8a2502678085", "2bbc5851-30d1-4eda-898e-bcbfae3c1a96", "f8e33cf1-0f37-4d8b-a17a-cb8e376e6ad3"}, + PointExpiresInDays = 7760, + PointExpiresAt = "2024-10-25T10:37:55.000000Z", + Status = "disabled", + Description = "czj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21", + Event = "topup", + Priority = 3578, + EndsAt = "2022-05-14T20:08:05.000000Z", + StartsAt = "2020-06-04T01:56:48.000000Z", + Name = "x2jnlKrw0LdNS4VtkXCDrt0LJOE3Qgwr", + }; + 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 UpdateCampaign36() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"22085cc3-465f-4f8c-9d63-cbf372f51b81", "9b749dfa-a4e8-4281-83e6-d9487bf6ab30", "d518c9b9-c3ab-423d-ab14-69bcfb82e70f"}, + IsExclusive = true, + PointExpiresInDays = 7170, + PointExpiresAt = "2021-11-08T22:42:33.000000Z", + Status = "enabled", + Description = "5OthVwPmvHXBF", + Event = "topup", + Priority = 5971, + EndsAt = "2023-04-05T11:09:18.000000Z", + StartsAt = "2021-01-24T13:44:31.000000Z", + Name = "nHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZ", + }; + 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 UpdateCampaign37() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"df38735c-2c7f-47bc-9cce-ebcf05041674", "82d7b1c9-d1af-45f7-a063-8487c9c09172"}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 10000, + PointExpiresAt = "2024-10-14T06:41:37.000000Z", + Status = "disabled", + Description = "p7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E7", + Event = "external-transaction", + Priority = 881, + EndsAt = "2020-05-09T18:35:03.000000Z", + StartsAt = "2022-12-10T05:10:54.000000Z", + Name = "tOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4", + }; + 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 UpdateCampaign38() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"612b55d0-7982-42f6-aca8-2c14971f6c34", "6173b38d-34d6-4368-b111-59cf150fbc06", "de14c591-8264-4071-b9cb-51c8998b527c", "afd176e3-fdc9-404f-a150-3d214e133368", "20a4079e-971a-4eae-a222-a3ffb7fa7cf6", "59ef4389-fb7b-4d8a-a36f-cc2ef6ca4367", "5e0ac5df-206a-4f1b-8010-1a056b5aea9d", "c2d3fc1c-9232-4518-ad45-19c1c44bdb97", "5f92119b-4121-4daa-9f54-aab9e88dc66b"}, + 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}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 678, + PointExpiresAt = "2023-11-30T02:08:36.000000Z", + Status = "disabled", + Description = "xX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKS", + Event = "payment", + Priority = 3782, + EndsAt = "2021-05-03T09:50:29.000000Z", + StartsAt = "2020-01-07T21:57:37.000000Z", + Name = "myXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprW", + }; + 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 UpdateCampaign39() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"d098cccd-1d1b-4513-a648-5776b9e27db0"}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 1596, + PointExpiresAt = "2021-12-20T17:36:58.000000Z", + Status = "enabled", + Description = "r3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioFo", + Event = "external-transaction", + Priority = 2384, + EndsAt = "2023-01-17T10:11:37.000000Z", + StartsAt = "2021-05-29T12:46:11.000000Z", + Name = "YFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnIS00nrMnQNFRY", + }; + 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 UpdateCampaign40() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"ab095bf1-a8d1-477e-8232-f94cfc7f470f", "9008c6ab-ea87-4d4f-b676-c2f8755f042e", "9dbb8c80-323b-4411-a14a-48577c9a6a64", "7d1a8925-a85c-464d-b625-ccd2fa8a0479", "16ef1fce-8b45-485d-aa30-d323d1fec416", "69d133b8-28c1-4004-8840-b76f9c2eed5b", "262615c3-1100-4527-a590-62f9cbb3e292", "386269f2-0db2-4e33-98a4-8f7195cc486e", "cd861397-6c7e-4453-a110-c9e34c836dbe", "93206acc-2a6d-46c2-982b-227c0c288b58"}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 2983, + PointExpiresAt = "2024-07-29T00:59:09.000000Z", + Status = "disabled", + Description = "fJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqK", + Event = "topup", + Priority = 6985, + EndsAt = "2021-10-08T03:54:37.000000Z", + StartsAt = "2023-12-08T08:23:05.000000Z", + Name = "i3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0WRQEq2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6", + }; + 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 UpdateCampaign41() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"21c3d0c9-c6d8-4ac9-9162-57262f6086e0", "f2fb5d54-ef21-4157-80eb-ea65f6d1757b", "d59d0e83-329a-40fc-b725-c32368e267d8", "c155453e-6257-4f02-b152-eb3fc78148e7", "c0d2f213-f2c4-4e60-b690-c2827ba3bb78", "cc934a3f-432a-4e10-9f65-6f2a4dff4113", "e927ec75-4568-4b91-b471-b963a49be52f", "90c37385-747d-40dc-b082-53ecd843c856"}, + ApplicableDaysOfWeek = new int[]{5, 6, 6, 0, 0, 5}, + 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"}}}, + 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}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 8102, + PointExpiresAt = "2021-03-02T11:27:05.000000Z", + Status = "disabled", + Description = "FsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q", + Event = "payment", + Priority = 3807, + EndsAt = "2022-02-25T03:07:49.000000Z", + StartsAt = "2024-04-07T11:16:28.000000Z", + Name = "Pgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRX", + }; + 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 UpdateCampaign42() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"d5818992-91a3-414a-b752-3752962d62b9", "3b4a82f6-6be8-4729-8ec9-ab142d84ff3e", "7c3f0883-25f5-4215-85a0-8e8bb1029db3", "70cfcc8c-8e16-4324-a0b1-8176cfd4d1eb", "8312cd95-1e9f-4147-8ce4-d008db455b85"}, + 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"}}}, + ApplicableDaysOfWeek = new int[]{1, 5, 4, 4, 1, 6, 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 9997, + PointExpiresAt = "2023-06-14T16:41:18.000000Z", + Status = "disabled", + Description = "RA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1", + Event = "external-transaction", + Priority = 2469, + EndsAt = "2021-05-20T16:06:08.000000Z", + StartsAt = "2020-07-07T19:38:04.000000Z", + Name = "EmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1mceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3by", + }; + 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 UpdateCampaign43() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"b7b8c4a4-f47c-4a68-ae1e-9d40665da15d", "b0919805-38bf-44eb-b9cc-2f3636850a79", "ca2eedb5-f5d2-4834-9a0d-2087298885eb", "f9fc261f-ec15-48a3-8ec8-3027d9f60dd2", "629ce9cd-6a5c-4858-982e-add108083083", "49b1b4d4-3a7a-4f1d-970c-a8b194c1bb16", "025f553d-c4a5-43e9-820f-d969baba755e", "8db0cdd5-9cfd-4020-8918-531c1c8d12a8", "cd8a91fd-e535-463a-9f4a-208ff376cade", "af8809af-643a-4b47-ba7f-241e7d2c923f"}, + MinimumNumberOfProducts = 7681, + 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"}}}, + ApplicableDaysOfWeek = new int[]{5, 1, 6, 6, 4, 1, 3, 5}, + 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"}}}, + 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}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 4526, + PointExpiresAt = "2024-01-08T21:34:46.000000Z", + Status = "disabled", + Description = "Z2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2Pe", + Event = "topup", + Priority = 7033, + EndsAt = "2020-07-15T02:41:59.000000Z", + StartsAt = "2020-08-17T18:51:21.000000Z", + Name = "qnkqJGFUWWcs7OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9Bb", + }; + 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 UpdateCampaign44() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"8338f53d-8547-4edd-bb4c-725765302578", "b6155354-264f-4614-8b11-4cdd58e55aa8", "03069f2d-026e-44bd-b18d-c15b0200cda1", "faee8148-191f-4a97-9583-d43aa233451b", "0344e4d5-a7b2-4cb0-ae75-a6eb56821826", "32a14da0-f8ff-4c78-98b1-06983bbeb746", "917bbea2-747d-40bb-a544-9dd13020a08e", "7840b4f0-a456-4ef1-8d74-703cd00a66f6"}, + MinimumNumberOfAmount = 3309, + MinimumNumberOfProducts = 1650, 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[]{"b25dfd30-8624-49c1-9566-1a4ac3083417", "6872af1b-daee-497d-96da-79ee1defd89b", "27a92a53-e56f-4267-b893-8665cfe8c143"}, - MinimumNumberOfProducts = 2975, - MinimumNumberOfAmount = 4735, - MinimumNumberForCombinationPurchase = 856, + ApplicableDaysOfWeek = new int[]{6}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = false, + PointExpiresInDays = 7233, + PointExpiresAt = "2024-07-10T09:47:58.000000Z", + Status = "enabled", + Description = "qFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3", + Event = "external-transaction", + Priority = 4163, + EndsAt = "2021-02-04T14:45:17.000000Z", + StartsAt = "2020-05-14T13:38:52.000000Z", + Name = "yNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvI", + }; + 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 UpdateCampaign45() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"cf8edeb6-0df8-40aa-b5eb-2c3dd93c0bd2", "22a1a1ef-86a0-4ac2-b42b-6a38513748b6", "dc6b4dc9-c218-41e3-99ee-30d3f78eb3f2", "2215dd58-6a77-4b85-87ac-9e87b2faa15a", "64cd4c47-e5be-4a50-b312-d0c40742edc6", "2926cf04-1760-4185-bb99-1ebd9aa43566", "c3dc1886-9c7c-4d2c-a492-5c62903f9983", "b2f72b3e-a0e8-4e83-9116-daff03d0d1bc", "749a5a70-1b6a-4e27-839d-39efd15f14b6", "eee96981-3743-4ff6-9a2c-dded224651e9"}, + MinimumNumberForCombinationPurchase = 4883, + MinimumNumberOfAmount = 3400, + MinimumNumberOfProducts = 7617, + 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"}}}, + ApplicableDaysOfWeek = new int[]{6, 6, 4, 1, 0, 4}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 4, + PointExpiresAt = "2021-04-30T16:58:56.000000Z", + Status = "disabled", + Description = "9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51N", + Event = "payment", + Priority = 8399, + EndsAt = "2021-08-05T10:55:15.000000Z", + StartsAt = "2022-12-13T23:14:50.000000Z", + Name = "8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0Uegn", + }; + 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 UpdateCampaign46() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"3eb3cdea-ecdc-4995-8b35-ff4b5d4be4fe", "d87db9b1-e6b2-4486-bb96-b7fd7633a2fb"}, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 2766, + MinimumNumberOfAmount = 2392, + MinimumNumberOfProducts = 658, + 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"}}}, + ApplicableDaysOfWeek = new int[]{4, 6, 1, 1, 1, 4}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 511, + PointExpiresAt = "2023-04-02T22:48:51.000000Z", + Status = "enabled", + Description = "ouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9O", + Event = "payment", + Priority = 1944, + EndsAt = "2023-05-08T21:30:24.000000Z", + StartsAt = "2024-11-30T05:12:21.000000Z", + Name = "LkQDV7qJw1By6uFHkBHhurHoZlcvR7Q0TdgtR89zH4BR", + }; + 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 UpdateCampaign47() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"9190cf18-f4a2-4404-9d34-af1b3fd8ee97", "8403b6cc-7d2e-4f78-aa03-db0719ca74d9", "b6787f97-8326-42fe-b007-f886bfe8b6ff"}, + MaxPointAmount = 6445, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 4567, + MinimumNumberOfAmount = 8263, + MinimumNumberOfProducts = 1049, + 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"}}}, + ApplicableDaysOfWeek = new int[]{6, 5, 0, 3, 1, 0, 0, 0, 0, 2}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 9300, + PointExpiresAt = "2020-09-23T01:17:01.000000Z", + Status = "enabled", + Description = "AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtOipE6L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5T", + Event = "external-transaction", + Priority = 7343, + EndsAt = "2021-12-08T00:49:12.000000Z", + StartsAt = "2022-03-29T00:18:38.000000Z", + Name = "xePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1T", + }; + 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 UpdateCampaign48() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"52ae033f-6947-4fb2-b914-edca2425a0c5", "e2ddfdbb-754f-45ad-8ce0-a468a9fdaa22", "19cf7f6e-8c72-4857-810b-182c8823ac9c", "316db22d-af0b-4ca1-ab3e-7f512269608e", "14cdc708-6b0e-463e-9cd6-61e824377c13"}, + MaxTotalPointAmount = 2233, + MaxPointAmount = 119, + ExistInEachProductGroups = false, + MinimumNumberForCombinationPurchase = 7513, + MinimumNumberOfAmount = 5412, + MinimumNumberOfProducts = 4523, + 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"}}}, + ApplicableDaysOfWeek = new int[]{4, 3}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 8368, + PointExpiresAt = "2024-07-07T19:32:22.000000Z", + Status = "enabled", + Description = "cNlMmgEuaHAHntz60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lTgJBoEtylA7Lc", + Event = "external-transaction", + Priority = 5593, + EndsAt = "2024-12-11T16:15:04.000000Z", + StartsAt = "2024-09-14T12:24:36.000000Z", + Name = "5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesK", + }; + 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 UpdateCampaign49() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"29ff17e2-50c5-4d8d-8878-8aebb03c66ce", "434663fb-42e9-4067-b9e3-dae3041874d2", "3dcf9656-a175-4e58-95e1-bc15d81a7af8", "67234b99-dd05-46c8-8141-30a3dd9c077c", "9f292f5d-5b8c-4e90-ba7e-7974243d53eb", "ffcfbe66-726c-4388-900d-0aa9c90d1113", "e41f7272-6362-4b07-a7d8-dc943e107aa8", "6ff57935-4fb0-44b7-a1ab-9aba547e45a5"}, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + MaxTotalPointAmount = 1273, + MaxPointAmount = 9061, ExistInEachProductGroups = true, - MaxPointAmount = 8736, - MaxTotalPointAmount = 5045, + MinimumNumberForCombinationPurchase = 5655, + MinimumNumberOfAmount = 1003, + MinimumNumberOfProducts = 5611, + 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"}}}, + ApplicableDaysOfWeek = new int[]{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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = true, + PointExpiresInDays = 2530, + PointExpiresAt = "2020-03-01T02:47:26.000000Z", + Status = "enabled", + Description = "W3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5", + Event = "payment", + Priority = 6202, + EndsAt = "2022-03-19T20:43:04.000000Z", + StartsAt = "2023-02-18T09:50:36.000000Z", + Name = "2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORx", + }; + 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 UpdateCampaign50() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"f950c6fc-387b-48c8-b219-ba6fa9545e3a", "0a387ad1-c06f-4136-aaaa-96a0b4c8b6a5", "e815d240-0022-42fb-8ddb-eb83a73947b6", "39a98f36-c08c-4a80-9732-db790caacbb8", "a89c8504-55ab-4ccb-b2ad-3d16c4f530da", "dc93aa38-3525-41f8-9fcd-c96ccdad321b", "407f37ce-5fdd-47e1-acf6-1e571f33f261"}, + ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + MaxTotalPointAmount = 461, + MaxPointAmount = 1259, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 797, + MinimumNumberOfAmount = 4481, + MinimumNumberOfProducts = 1671, + 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"}}}, + ApplicableDaysOfWeek = new int[]{3, 3, 5, 0, 3}, + 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"}}}, + 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}}}, + 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}}}, + Subject = "money", + IsExclusive = false, + PointExpiresInDays = 7268, + PointExpiresAt = "2020-09-23T06:35:43.000000Z", + Status = "disabled", + Description = "J7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38WCqGZQWNed5BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQ", + Event = "external-transaction", + Priority = 8774, + EndsAt = "2021-09-11T03:23:12.000000Z", + StartsAt = "2020-11-16T08:33:10.000000Z", + Name = "1b9FFVSxNRhY3CeG383Fyff0GWufJQM5UqG40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKl", + }; + 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 UpdateCampaign51() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "672576b7-ed66-4444-8827-b7292a9b19c5" + ) { + BlacklistedShopIds = new string[]{"224ea208-e960-40e4-9cdc-126ff73bb6c4", "34028b22-6d75-49f6-b97e-6a5442513cc1"}, + BudgetCapsAmount = 1636431877, ApplicableTransactionMetadata = new Dictionary(){{"key","rank"}, {"value","bronze"}}, - BudgetCapsAmount = 490526889, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + MaxTotalPointAmount = 5980, + MaxPointAmount = 1176, + ExistInEachProductGroups = true, + MinimumNumberForCombinationPurchase = 5977, + MinimumNumberOfAmount = 942, + MinimumNumberOfProducts = 3581, + 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"}}}, + ApplicableDaysOfWeek = new int[]{5, 0, 0, 4, 3, 0, 4, 0}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + 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}}}, + 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}}}, + Subject = "all", + IsExclusive = true, + PointExpiresInDays = 7773, + PointExpiresAt = "2021-12-15T10:02:54.000000Z", + Status = "enabled", + Description = "jq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKf", + Event = "external-transaction", + Priority = 4132, + EndsAt = "2021-05-29T09:47:35.000000Z", + StartsAt = "2021-10-03T02:48:57.000000Z", + Name = "zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu56A1wWz", }; 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 9cc14c2..3faa358 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( - "aad4bb4e-eee8-47f0-a00b-2df582587e44" + "7a7615b2-7e06-4690-be59-d1d6f8b72656" ); 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( - "aad4bb4e-eee8-47f0-a00b-2df582587e44" + "7a7615b2-7e06-4690-be59-d1d6f8b72656" ) { - ExpiresIn = 3207, + ExpiresIn = 7119, }; 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( - "aad4bb4e-eee8-47f0-a00b-2df582587e44" + "7a7615b2-7e06-4690-be59-d1d6f8b72656" ) { - Description = "AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2EkkP2VIPy7HW7Ee7skB9BB1YNClE0n87A3", - ExpiresIn = 907, + Description = "gkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhm", + ExpiresIn = 2764, }; 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( - "aad4bb4e-eee8-47f0-a00b-2df582587e44" + "7a7615b2-7e06-4690-be59-d1d6f8b72656" ) { - Amount = 6192.0, - Description = "l6vspNWH9u8x4", - ExpiresIn = 4826, + Amount = 8411.0, + Description = "iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQ", + ExpiresIn = 3132, }; 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 59dbe4c..1fb3af2 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( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ); Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task UpdateCheck1() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - IsDisabled = true, + IsDisabled = false, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task UpdateCheck2() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - BearPointAccount = "3cc26d66-07d7-4d44-ae53-ac7f3db8f5aa", - IsDisabled = true, + BearPointAccount = "039690c9-b516-4b44-b092-30e5dc164209", + IsDisabled = false, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,10 +75,10 @@ public async Task UpdateCheck3() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - PointExpiresInDays = 2314, - BearPointAccount = "45c0ba17-d7f0-4865-8df3-50719a631a8a", + PointExpiresInDays = 9805, + BearPointAccount = "d64426a4-a705-4a79-ab5a-aa2d135d029a", IsDisabled = false, }; Response.Check response = await request.Send(client); @@ -94,12 +94,12 @@ public async Task UpdateCheck4() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - PointExpiresAt = "2020-11-21T04:59:27.000000Z", - PointExpiresInDays = 1013, - BearPointAccount = "4f151408-3dc4-48c2-9b9c-6781efd7a710", - IsDisabled = true, + PointExpiresAt = "2020-03-06T08:42:24.000000Z", + PointExpiresInDays = 4807, + BearPointAccount = "f22beb4e-a05a-4d14-b711-7187892faaa4", + IsDisabled = false, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task UpdateCheck5() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - ExpiresAt = "2021-11-01T08:44:22.000000Z", - PointExpiresAt = "2024-03-28T07:52:21.000000Z", - PointExpiresInDays = 8198, - BearPointAccount = "3ad09d4e-6ed7-41d0-82c0-7bfbe6b8ea70", - IsDisabled = true, + ExpiresAt = "2023-10-17T12:46:49.000000Z", + PointExpiresAt = "2023-08-19T12:37:21.000000Z", + PointExpiresInDays = 3644, + BearPointAccount = "29d96a7c-f462-43df-b53c-217311ff0c80", + IsDisabled = false, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,13 +135,13 @@ public async Task UpdateCheck6() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - UsageLimit = 2515, - ExpiresAt = "2020-09-15T17:25:20.000000Z", - PointExpiresAt = "2021-05-11T07:45:14.000000Z", - PointExpiresInDays = 6226, - BearPointAccount = "360d72a7-cff4-4c65-a074-da84f3b42d26", + UsageLimit = 2443, + ExpiresAt = "2022-09-03T04:25:36.000000Z", + PointExpiresAt = "2021-09-16T19:47:01.000000Z", + PointExpiresInDays = 893, + BearPointAccount = "fa0714a9-dc3c-4b5e-8606-12b20beb9ef0", IsDisabled = true, }; Response.Check response = await request.Send(client); @@ -157,14 +157,14 @@ public async Task UpdateCheck7() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - IsOnetime = false, - UsageLimit = 2578, - ExpiresAt = "2023-04-27T16:53:26.000000Z", - PointExpiresAt = "2023-02-17T02:29:48.000000Z", - PointExpiresInDays = 6966, - BearPointAccount = "90acf756-34b0-493c-8903-cb2286f701d5", + IsOnetime = true, + UsageLimit = 2892, + ExpiresAt = "2023-08-07T14:16:44.000000Z", + PointExpiresAt = "2023-01-30T13:36:59.000000Z", + PointExpiresInDays = 1584, + BearPointAccount = "f682f622-6426-4cd0-a41d-e49b8280abef", IsDisabled = false, }; Response.Check response = await request.Send(client); @@ -180,16 +180,16 @@ public async Task UpdateCheck8() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - 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, + Description = "L84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCu", + IsOnetime = true, + UsageLimit = 3267, + ExpiresAt = "2021-08-17T01:01:01.000000Z", + PointExpiresAt = "2020-05-30T21:18:02.000000Z", + PointExpiresInDays = 7107, + BearPointAccount = "ffa3d0fd-053d-4c4f-a720-bff4179dfee0", + IsDisabled = true, }; Response.Check response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -204,16 +204,16 @@ public async Task UpdateCheck9() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - PointAmount = 5575.0, - Description = "MQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQ", + PointAmount = 1815.0, + Description = "8MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDeb", 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", + UsageLimit = 6610, + ExpiresAt = "2024-11-16T11:28:43.000000Z", + PointExpiresAt = "2022-11-20T00:35:21.000000Z", + PointExpiresInDays = 54, + BearPointAccount = "2b6f2a8b-1889-4836-b88e-35fb225e1a79", IsDisabled = true, }; Response.Check response = await request.Send(client); @@ -229,17 +229,17 @@ public async Task UpdateCheck10() { try { Request.UpdateCheck request = new Request.UpdateCheck( - "ad7098b0-8589-4167-9ac1-af2aa6982850" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ) { - MoneyAmount = 9742.0, - PointAmount = 7372.0, - Description = "f0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio", + MoneyAmount = 1281.0, + PointAmount = 6556.0, + Description = "3vAdg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWy", IsOnetime = false, - UsageLimit = 7227, - ExpiresAt = "2020-07-23T10:39:57.000000Z", - PointExpiresAt = "2020-07-02T02:49:18.000000Z", - PointExpiresInDays = 7920, - BearPointAccount = "a20db4b0-1889-4bf1-b978-6130784154e9", + UsageLimit = 2444, + ExpiresAt = "2023-08-18T16:22:25.000000Z", + PointExpiresAt = "2020-01-02T00:23:01.000000Z", + PointExpiresInDays = 187, + BearPointAccount = "972ad034-c929-47b3-93c2-065dbceed3a9", IsDisabled = false, }; Response.Check response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs index e1e92a3..dd4851f 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 7821, + DiscountAmount = 6273, }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 4999, - Name = "a44NJMCeJ8jlsCf", + DiscountAmount = 7981, + Name = "qjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPteza9Foxx3GETJuu", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 6622, - Description = "ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST", - Name = "6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3", + DiscountAmount = 7967, + Description = "MNM7JUVu7YgDI0zSm", + Name = "63cU49za1QJALcpDZ", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 336, - DiscountUpperLimit = 2168, - Description = "ozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHu", - Name = "A5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295", + DiscountAmount = 9021, + DiscountUpperLimit = 7882, + Description = "YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuDxn3Qg", + Name = "sidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyC", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 7559, - StartsAt = "2022-10-12T18:19:41.000000Z", - DiscountUpperLimit = 7547, - Description = "MRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP", - Name = "8R4bhOdaBwGLVVHwtN3AFb20DhVq", + DiscountAmount = 9043, + StartsAt = "2022-04-20T06:23:02.000000Z", + DiscountUpperLimit = 8008, + Description = "3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltq", + Name = "bvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzy", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 6563, - EndsAt = "2020-05-28T17:42:42.000000Z", - StartsAt = "2023-09-11T22:08:56.000000Z", - DiscountUpperLimit = 3543, - Description = "OmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQ", - Name = "gbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn", + DiscountAmount = 8882, + EndsAt = "2020-10-14T03:11:55.000000Z", + StartsAt = "2023-12-20T19:03:09.000000Z", + DiscountUpperLimit = 2378, + Description = "53U3N6F0e26pbO3HttlG4eyiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXuGVVRQlUVJv9CZ2Z", + Name = "sBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJ", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 1206, - DisplayStartsAt = "2020-02-08T20:47:04.000000Z", - EndsAt = "2023-09-02T07:18:20.000000Z", - StartsAt = "2022-01-27T14:38:20.000000Z", - DiscountUpperLimit = 2852, - Description = "LBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJ", - Name = "u4", + DiscountAmount = 3271, + DisplayStartsAt = "2024-03-20T01:25:09.000000Z", + EndsAt = "2020-03-24T22:03:20.000000Z", + StartsAt = "2020-02-19T05:43:00.000000Z", + DiscountUpperLimit = 8529, + Description = "bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR", + Name = "3oDpLSuhWGSp4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895i", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 3738, - DisplayEndsAt = "2021-12-01T14:27:07.000000Z", - DisplayStartsAt = "2022-03-13T01:08:20.000000Z", - EndsAt = "2020-03-26T08:29:43.000000Z", - StartsAt = "2024-03-18T13:33:54.000000Z", - DiscountUpperLimit = 8983, - Description = "scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dc", - Name = "btQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhT", + DiscountAmount = 6886, + DisplayEndsAt = "2024-10-06T18:03:44.000000Z", + DisplayStartsAt = "2022-01-19T04:49:56.000000Z", + EndsAt = "2021-11-27T09:06:24.000000Z", + StartsAt = "2022-09-04T12:24:02.000000Z", + DiscountUpperLimit = 7094, + Description = "Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81Vv", + Name = "pXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 4776, + DiscountAmount = 9717, IsDisabled = true, - DisplayEndsAt = "2023-09-27T05:41:28.000000Z", - DisplayStartsAt = "2022-05-03T13:46:52.000000Z", - EndsAt = "2021-08-11T18:49:09.000000Z", - StartsAt = "2022-05-10T06:49:18.000000Z", - DiscountUpperLimit = 4093, - Description = "QXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSU", - Name = "jn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6", + DisplayEndsAt = "2023-03-26T21:58:08.000000Z", + DisplayStartsAt = "2021-12-06T09:52:39.000000Z", + EndsAt = "2023-01-15T09:43:12.000000Z", + StartsAt = "2023-01-16T10:31:12.000000Z", + DiscountUpperLimit = 8615, + Description = "EUCWBeCDLYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCN", + Name = "l989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 4246, + DiscountAmount = 2215, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2022-07-08T18:44:37.000000Z", - DisplayStartsAt = "2020-02-21T16:30:57.000000Z", - EndsAt = "2021-11-11T10:37:55.000000Z", - StartsAt = "2022-10-19T04:59:49.000000Z", - DiscountUpperLimit = 6229, - Description = "edziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJ", - Name = "RDSX", + IsDisabled = false, + DisplayEndsAt = "2023-11-06T06:15:40.000000Z", + DisplayStartsAt = "2020-11-24T15:42:17.000000Z", + EndsAt = "2021-07-10T17:06:37.000000Z", + StartsAt = "2023-09-07T09:51:42.000000Z", + DiscountUpperLimit = 8221, + Description = "KdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06", + Name = "uTFvYo4vEubGw6jVHah2jNyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9h", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 3117, - IsPublic = true, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2022-09-05T09:39:39.000000Z", - DisplayStartsAt = "2022-06-08T14:37:48.000000Z", - EndsAt = "2020-05-16T20:02:55.000000Z", - StartsAt = "2020-09-26T01:08:47.000000Z", - DiscountUpperLimit = 6126, - Description = "7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgx", - Name = "xZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLd", + DiscountAmount = 4571, + IsPublic = false, + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2023-09-10T22:46:38.000000Z", + DisplayStartsAt = "2023-05-03T06:37:56.000000Z", + EndsAt = "2021-12-31T14:55:05.000000Z", + StartsAt = "2023-01-28T09:59:12.000000Z", + DiscountUpperLimit = 1288, + Description = "WOGRlL4QDCIWrLzYwdZH6RYisLng", + Name = "mui", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 9385, - Code = "Om16oejI9", + DiscountAmount = 256, + Code = "yyf", IsPublic = false, - IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2022-09-13T11:16:44.000000Z", - DisplayStartsAt = "2022-06-10T07:56:10.000000Z", - EndsAt = "2022-06-25T14:28:18.000000Z", - StartsAt = "2022-10-11T05:17:55.000000Z", - DiscountUpperLimit = 2459, - Description = "dat1CLgQoR", - Name = "zuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk", + IsHidden = true, + IsDisabled = false, + DisplayEndsAt = "2020-03-11T15:33:17.000000Z", + DisplayStartsAt = "2022-05-22T10:42:21.000000Z", + EndsAt = "2021-09-03T15:52:35.000000Z", + StartsAt = "2024-08-19T19:43:12.000000Z", + DiscountUpperLimit = 6480, + Description = "C6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jk", + Name = "jZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5c", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 7352, - UsageLimit = 1545, - Code = "YjRj6ppJLn", - IsPublic = true, - IsHidden = false, - IsDisabled = false, - DisplayEndsAt = "2022-08-01T16:57:07.000000Z", - DisplayStartsAt = "2021-04-21T18:00:24.000000Z", - EndsAt = "2021-05-14T18:43:22.000000Z", - StartsAt = "2020-07-24T13:54:53.000000Z", - DiscountUpperLimit = 1295, - Description = "bXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o", - Name = "1k9oep", + DiscountAmount = 3061, + UsageLimit = 6265, + Code = "A3tbiun", + IsPublic = false, + IsHidden = true, + IsDisabled = true, + DisplayEndsAt = "2024-07-21T01:15:44.000000Z", + DisplayStartsAt = "2020-08-10T17:00:46.000000Z", + EndsAt = "2024-05-16T16:46:17.000000Z", + StartsAt = "2022-05-09T20:01:58.000000Z", + DiscountUpperLimit = 2643, + Description = "RraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu", + Name = "08", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 5586, - MinAmount = 7735, - UsageLimit = 2703, - Code = "yq0Oa1Szx", + DiscountAmount = 6251, + MinAmount = 5819, + UsageLimit = 4586, + Code = "C0WPK", IsPublic = true, IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2022-05-03T09:25:18.000000Z", - DisplayStartsAt = "2020-11-13T22:39:29.000000Z", - EndsAt = "2022-10-03T22:28:15.000000Z", - StartsAt = "2021-10-05T20:16:58.000000Z", - DiscountUpperLimit = 1985, - Description = "kEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtf", - Name = "hnULfkSB8hVVRhZgs0ShDA1T4", + DisplayEndsAt = "2024-04-08T09:12:31.000000Z", + DisplayStartsAt = "2021-12-15T05:41:23.000000Z", + EndsAt = "2022-04-10T03:18:48.000000Z", + StartsAt = "2021-07-31T02:35:34.000000Z", + DiscountUpperLimit = 6459, + Description = "Yow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTV", + Name = "xU13omHKmdh2ng7xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPccciqGzpCuGxgjotbAnD", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 2667, - IsShopSpecified = true, - MinAmount = 9848, - UsageLimit = 7106, - Code = "hv1AO", + DiscountAmount = 5062, + IsShopSpecified = false, + MinAmount = 5038, + UsageLimit = 425, + Code = "nBFTBcp", IsPublic = false, IsHidden = false, - IsDisabled = false, - DisplayEndsAt = "2021-03-08T02:33:46.000000Z", - DisplayStartsAt = "2023-04-29T04:13:34.000000Z", - EndsAt = "2021-06-26T08:10:58.000000Z", - StartsAt = "2022-02-23T03:39:36.000000Z", - DiscountUpperLimit = 1527, - Description = "zXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5Pn", - Name = "xSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQk", + IsDisabled = true, + DisplayEndsAt = "2023-09-03T21:57:59.000000Z", + DisplayStartsAt = "2023-03-10T16:14:03.000000Z", + EndsAt = "2021-07-03T13:30:50.000000Z", + StartsAt = "2020-09-29T18:06:46.000000Z", + DiscountUpperLimit = 5732, + Description = "jde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJafcwBDpLTRN1a0", + Name = "ar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZy", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 9246, - AvailableShopIds = new string[]{"6c7b7f75-063d-44f6-adcb-562d09bddf32", "c4f943d0-a089-4281-b42d-171a2725346b"}, - IsShopSpecified = false, - MinAmount = 5235, - UsageLimit = 6834, - Code = "Rpli", + DiscountAmount = 470, + AvailableShopIds = new string[]{"6c41e2b9-c23e-40c1-8fb3-9b4405338487"}, + IsShopSpecified = true, + MinAmount = 6718, + UsageLimit = 157, + Code = "B1YRES4", IsPublic = false, IsHidden = false, - IsDisabled = false, - DisplayEndsAt = "2020-06-18T16:23:44.000000Z", - DisplayStartsAt = "2022-08-18T04:21:45.000000Z", - EndsAt = "2020-02-09T14:32:44.000000Z", - StartsAt = "2020-11-09T20:42:34.000000Z", - DiscountUpperLimit = 3323, - Description = "KenDWjLTaaBosz7aBykLG1RzGMmx", - Name = "1hSkje9X0k", + IsDisabled = true, + DisplayEndsAt = "2022-07-25T04:05:27.000000Z", + DisplayStartsAt = "2024-12-01T12:13:32.000000Z", + EndsAt = "2021-08-04T12:43:11.000000Z", + StartsAt = "2020-01-12T17:49:42.000000Z", + DiscountUpperLimit = 8216, + Description = "ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4", + Name = "imGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 8252, - StorageId = "0cfb1eed-7b22-43be-8314-c61cc6bd162e", - AvailableShopIds = new string[]{"8633e9d0-8e64-418a-90b8-a1470a62ee97", "8fab1458-2129-4d0a-8824-a83c934c8ea2", "50bc608d-6769-4521-b213-f9325d3ded23", "267172ca-5df7-45ab-bab1-f9e976a3d3e4", "8140b441-4278-4094-a3d1-beb91765b0d2", "ec1af284-19db-418b-91e3-72c19d34fdb9"}, + DiscountAmount = 5380, + StorageId = "9f2924a7-df61-4f90-b333-807fdfe39bae", + AvailableShopIds = new string[]{"c1166526-e7b4-4966-a585-da7b853b78c9"}, IsShopSpecified = false, - MinAmount = 8709, - UsageLimit = 4970, - Code = "zkpVE1o", - IsPublic = false, + MinAmount = 5367, + UsageLimit = 1827, + Code = "8", + IsPublic = true, IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2024-03-04T18:18:02.000000Z", - DisplayStartsAt = "2023-08-02T23:44:57.000000Z", - EndsAt = "2022-04-11T21:17:12.000000Z", - StartsAt = "2021-11-04T18:52:16.000000Z", - DiscountUpperLimit = 9486, - Description = "sp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jC", - Name = "NHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm", + DisplayEndsAt = "2021-03-15T04:07:07.000000Z", + DisplayStartsAt = "2022-08-16T17:33:37.000000Z", + EndsAt = "2021-03-21T10:02:25.000000Z", + StartsAt = "2022-07-27T18:23:55.000000Z", + DiscountUpperLimit = 2122, + Description = "IVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJ", + Name = "xE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRW", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 2316, - DiscountPercentage = 1549.0, + DiscountAmount = 8100, + DiscountPercentage = 2800.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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 1767, - DiscountPercentage = 2441.0, - Name = "WQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLS", + DiscountAmount = 8129, + DiscountPercentage = 2637.0, + Name = "k3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9Fitj", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 2298, - DiscountPercentage = 6868.0, - Description = "GhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgp", - Name = "9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiL", + DiscountAmount = 4213, + DiscountPercentage = 1268.0, + Description = "UJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnU", + Name = "UBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 895, - DiscountPercentage = 8571.0, - DiscountUpperLimit = 8109, - Description = "NzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piom", - Name = "vY0y0i", + DiscountAmount = 8237, + DiscountPercentage = 9265.0, + DiscountUpperLimit = 8735, + Description = "nws6Ne3S7kdpHli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0f", + Name = "8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLioRLUyl", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 105, - DiscountPercentage = 7015.0, - StartsAt = "2020-08-15T08:27:05.000000Z", - DiscountUpperLimit = 6241, - Description = "sEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcU", - Name = "uFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gB", + DiscountAmount = 5822, + DiscountPercentage = 4887.0, + StartsAt = "2023-04-25T16:40:16.000000Z", + DiscountUpperLimit = 307, + Description = "BXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3", + Name = "7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxq", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 392, - DiscountPercentage = 542.0, - EndsAt = "2023-08-10T22:13:36.000000Z", - StartsAt = "2022-08-26T03:38:27.000000Z", - DiscountUpperLimit = 819, - Description = "hyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9Qo", - Name = "exnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135", + DiscountAmount = 3788, + DiscountPercentage = 1875.0, + EndsAt = "2022-06-10T15:37:43.000000Z", + StartsAt = "2022-04-10T21:16:40.000000Z", + DiscountUpperLimit = 339, + Description = "4aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmP", + Name = "Y8qwKCFWRUhTWJtrSH", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 5889, - DiscountPercentage = 73.0, - DisplayStartsAt = "2020-12-03T23:17:41.000000Z", - EndsAt = "2021-10-11T22:07:04.000000Z", - StartsAt = "2024-01-12T08:43:51.000000Z", - DiscountUpperLimit = 5652, - Description = "GggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25i", - Name = "FSdny2rQS", + DiscountAmount = 5069, + DiscountPercentage = 5779.0, + DisplayStartsAt = "2024-05-26T17:45:25.000000Z", + EndsAt = "2024-06-11T11:40:59.000000Z", + StartsAt = "2020-02-09T19:13:11.000000Z", + DiscountUpperLimit = 6027, + Description = "3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzL", + Name = "LX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIE", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 3675, - DiscountPercentage = 8862.0, - DisplayEndsAt = "2022-12-13T14:57:25.000000Z", - DisplayStartsAt = "2020-04-20T17:53:42.000000Z", - EndsAt = "2022-09-16T08:00:38.000000Z", - StartsAt = "2021-03-19T23:18:23.000000Z", - DiscountUpperLimit = 1258, - Description = "y8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSja", - Name = "xy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcss", + DiscountAmount = 1681, + DiscountPercentage = 5729.0, + DisplayEndsAt = "2021-05-16T18:50:30.000000Z", + DisplayStartsAt = "2024-05-15T18:37:35.000000Z", + EndsAt = "2020-02-29T00:17:08.000000Z", + StartsAt = "2024-07-29T23:14:05.000000Z", + DiscountUpperLimit = 6000, + Description = "er6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Y", + Name = "r03Qzj1SYSblk7QSMdkkKPrtzfs", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 1197, - DiscountPercentage = 9.0, + DiscountAmount = 4525, + DiscountPercentage = 5963.0, IsDisabled = true, - DisplayEndsAt = "2021-05-31T16:19:50.000000Z", - DisplayStartsAt = "2021-07-03T10:51:41.000000Z", - EndsAt = "2024-03-01T06:03:31.000000Z", - StartsAt = "2023-02-08T04:38:32.000000Z", - DiscountUpperLimit = 5825, - Description = "htt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccr", - Name = "SM4NeRkShSKY", + DisplayEndsAt = "2023-06-29T08:12:17.000000Z", + DisplayStartsAt = "2020-07-18T08:24:12.000000Z", + EndsAt = "2023-06-11T14:41:15.000000Z", + StartsAt = "2023-03-08T13:39:55.000000Z", + DiscountUpperLimit = 7603, + Description = "OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaBsPB", + Name = "jjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkh", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 1722, - DiscountPercentage = 3826.0, + DiscountAmount = 8196, + DiscountPercentage = 3855.0, IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2023-10-06T23:26:39.000000Z", - DisplayStartsAt = "2020-04-05T02:23:36.000000Z", - EndsAt = "2022-06-24T17:07:22.000000Z", - StartsAt = "2020-05-11T08:31:06.000000Z", - DiscountUpperLimit = 8586, - Description = "rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVUR", - Name = "NCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUI", + DisplayEndsAt = "2023-10-17T23:28:19.000000Z", + DisplayStartsAt = "2022-03-21T19:26:26.000000Z", + EndsAt = "2024-05-14T20:30:08.000000Z", + StartsAt = "2021-05-03T14:36:48.000000Z", + DiscountUpperLimit = 8904, + Description = "4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9", + Name = "Pr8tnCR4b3VVcnR7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwo", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 5025, - DiscountPercentage = 1220.0, + DiscountAmount = 3280, + DiscountPercentage = 9086.0, IsPublic = false, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2023-01-16T02:11:32.000000Z", - DisplayStartsAt = "2023-08-17T10:00:44.000000Z", - EndsAt = "2021-09-17T15:10:54.000000Z", - StartsAt = "2024-02-06T11:36:18.000000Z", - DiscountUpperLimit = 6826, - Description = "ZY6omFZc6c5lAiaH7ksth", - Name = "q2qt1fISbJLQ2IGy7A4O5EuFDi3e", + IsDisabled = false, + DisplayEndsAt = "2021-05-02T15:36:09.000000Z", + DisplayStartsAt = "2023-02-11T11:07:01.000000Z", + EndsAt = "2022-04-27T05:15:17.000000Z", + StartsAt = "2022-10-16T21:43:15.000000Z", + DiscountUpperLimit = 3378, + Description = "qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3", + Name = "DXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJx", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 5162, - DiscountPercentage = 3131.0, - Code = "7", - IsPublic = false, - IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2024-01-19T14:30:29.000000Z", - DisplayStartsAt = "2021-12-16T22:42:02.000000Z", - EndsAt = "2022-06-04T06:30:15.000000Z", - StartsAt = "2021-03-02T00:56:13.000000Z", - DiscountUpperLimit = 2911, - Description = "zGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6", - Name = "MSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwu", + DiscountAmount = 9801, + DiscountPercentage = 778.0, + Code = "S6QwIFvAWC", + IsPublic = true, + IsHidden = true, + IsDisabled = false, + DisplayEndsAt = "2020-04-21T13:31:20.000000Z", + DisplayStartsAt = "2022-01-07T22:17:02.000000Z", + EndsAt = "2024-05-08T21:48:33.000000Z", + StartsAt = "2023-10-26T07:17:46.000000Z", + DiscountUpperLimit = 6853, + Description = "OxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDIn3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMaty", + Name = "DW12s5SKsd06fYHa", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 9098, - DiscountPercentage = 4305.0, - UsageLimit = 4368, - Code = "WjbI", + DiscountAmount = 6174, + DiscountPercentage = 4354.0, + UsageLimit = 4793, + Code = "H", IsPublic = true, IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2022-09-28T20:06:04.000000Z", - DisplayStartsAt = "2023-08-07T06:04:07.000000Z", - EndsAt = "2024-03-17T12:26:44.000000Z", - StartsAt = "2021-10-05T20:13:28.000000Z", - DiscountUpperLimit = 5278, - Description = "DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgO", - Name = "CupwcIPxBzhbkfE", + DisplayEndsAt = "2020-11-02T14:05:22.000000Z", + DisplayStartsAt = "2022-04-19T16:09:46.000000Z", + EndsAt = "2022-11-04T08:07:42.000000Z", + StartsAt = "2024-07-14T23:12:48.000000Z", + DiscountUpperLimit = 6288, + Description = "D9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7J", + Name = "7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoyWD", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 6476, - DiscountPercentage = 2858.0, - MinAmount = 3019, - UsageLimit = 370, - Code = "UPd9GpW6Q9", + DiscountAmount = 2440, + DiscountPercentage = 1572.0, + MinAmount = 7603, + UsageLimit = 9922, + Code = "eU5bcdtRE", IsPublic = true, IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2023-12-01T00:54:48.000000Z", - DisplayStartsAt = "2020-03-08T10:36:17.000000Z", - EndsAt = "2020-03-18T15:07:07.000000Z", - StartsAt = "2021-06-22T03:15:57.000000Z", - DiscountUpperLimit = 4397, - Description = "GFM1PrngLs4Zq6", - Name = "jFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejG", + DisplayEndsAt = "2024-02-24T02:42:54.000000Z", + DisplayStartsAt = "2020-05-19T17:06:10.000000Z", + EndsAt = "2020-08-22T12:18:59.000000Z", + StartsAt = "2021-08-07T16:18:55.000000Z", + DiscountUpperLimit = 80, + Description = "UnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEO", + Name = "bOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaq", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 2430, - DiscountPercentage = 539.0, - IsShopSpecified = false, - MinAmount = 1629, - UsageLimit = 7420, - Code = "2ugzGx", + DiscountAmount = 974, + DiscountPercentage = 3265.0, + IsShopSpecified = true, + MinAmount = 7598, + UsageLimit = 7095, + Code = "J2PMH0HA7", IsPublic = false, - IsHidden = true, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2023-04-05T14:18:06.000000Z", - DisplayStartsAt = "2022-09-17T06:44:01.000000Z", - EndsAt = "2023-09-07T17:23:11.000000Z", - StartsAt = "2021-02-27T08:38:33.000000Z", - DiscountUpperLimit = 671, - Description = "50Yf2M71M8zENOSGlzUlDTz33P2rJ14", - Name = "YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZ", + DisplayEndsAt = "2021-07-20T07:57:16.000000Z", + DisplayStartsAt = "2022-01-31T01:17:32.000000Z", + EndsAt = "2021-01-28T13:42:37.000000Z", + StartsAt = "2020-10-29T06:22:59.000000Z", + DiscountUpperLimit = 5031, + Description = "lziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1Y", + Name = "NfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699P", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 1542, - DiscountPercentage = 7461.0, - AvailableShopIds = new string[]{"a710eadf-be1c-4169-88af-d4bf0af24dcd", "fdd0b98d-04df-456b-bcba-908e4a8734ce", "f97b326b-a09f-4704-8414-9a25c56a19c3", "69cc62b4-61a4-4c17-986a-c6c1fd7d0680", "78d3f267-dc00-4912-9983-7eeee38615a8"}, + DiscountAmount = 5538, + DiscountPercentage = 4974.0, + AvailableShopIds = new string[]{"346d20e6-44d4-4f45-a495-aea51901e2f2", "245c80a8-47ac-4c1e-88e6-f1c91c04101b"}, IsShopSpecified = true, - MinAmount = 6862, - UsageLimit = 9485, - Code = "y", - IsPublic = true, - IsHidden = true, + MinAmount = 807, + UsageLimit = 5869, + Code = "iU4i2bF", + IsPublic = false, + IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2020-09-06T16:48:51.000000Z", - DisplayStartsAt = "2020-05-21T22:48:41.000000Z", - EndsAt = "2023-07-01T12:37:12.000000Z", - StartsAt = "2021-01-02T21:36:08.000000Z", - DiscountUpperLimit = 5999, - Description = "OsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiB", - Name = "nUBLAV97YftKTMpHhWMUK3SCm", + DisplayEndsAt = "2021-10-19T18:47:53.000000Z", + DisplayStartsAt = "2023-08-25T05:52:33.000000Z", + EndsAt = "2021-10-06T01:08:04.000000Z", + StartsAt = "2021-06-05T23:05:08.000000Z", + DiscountUpperLimit = 2316, + Description = "zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn", + Name = "kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOp", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountAmount = 2111, - DiscountPercentage = 7522.0, - StorageId = "b8919139-7b8b-42c2-9801-486fd906cd93", - AvailableShopIds = new string[]{"6be4e01c-90da-4537-b74b-2fdee7740981", "cdf7f2c8-8874-4b58-9192-53b239865e3e", "9807bedd-6f90-4033-88f7-a6d46cc6664c"}, - IsShopSpecified = true, - MinAmount = 7403, - UsageLimit = 9986, - Code = "UG7zxtQPL0", + DiscountAmount = 9586, + DiscountPercentage = 8136.0, + StorageId = "2f72b540-9a40-45fd-8dcd-50d88c473029", + AvailableShopIds = new string[]{"6fb68062-dbb4-4e95-bf3c-70997da6b44c", "4b7c5ee8-6c34-49e2-b047-fa6bb359ab99", "d1cf127f-0486-47ef-bc01-3fbc773a2ab8", "615578ba-4569-48c5-b0d0-feade6b7623c"}, + IsShopSpecified = false, + MinAmount = 3907, + UsageLimit = 2352, + Code = "A", IsPublic = false, - IsHidden = true, + IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2022-10-21T13:07:07.000000Z", - DisplayStartsAt = "2023-06-25T17:37:41.000000Z", - EndsAt = "2022-03-21T17:50:26.000000Z", - StartsAt = "2020-11-28T00:39:43.000000Z", - DiscountUpperLimit = 6504, - Description = "v3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZ", - Name = "lknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5j", + DisplayEndsAt = "2022-03-13T08:46:25.000000Z", + DisplayStartsAt = "2020-05-06T14:00:31.000000Z", + EndsAt = "2020-04-13T15:43:06.000000Z", + StartsAt = "2022-10-27T13:22:02.000000Z", + DiscountUpperLimit = 9977, + Description = "FYYoK00acoGlEqYYGWZUMgU5LJ8nedbEkL6VCbZlYCZFu0YjXrvick1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZg", + Name = "zOhvmvIjVKe7aM7QiN4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQc", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 9101.0, + DiscountPercentage = 7543.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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 6338.0, - Name = "ic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9", + DiscountPercentage = 1259.0, + Name = "vvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJA", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 4041.0, - Description = "murAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4F", - Name = "HqayBd9", + DiscountPercentage = 1554.0, + Description = "lJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVf", + Name = "PuvUPiEFV6mDyiAj", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 8853.0, - DiscountUpperLimit = 8630, - Description = "naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3Lb", - Name = "K6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1k", + DiscountPercentage = 1662.0, + DiscountUpperLimit = 5357, + Description = "C8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTw", + Name = "pYu4Valw5xiIJ7Q1Cipp2", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 1259.0, - StartsAt = "2021-12-17T01:06:58.000000Z", - DiscountUpperLimit = 474, - Description = "5xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynW", - Name = "lMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5Gy", + DiscountPercentage = 8515.0, + StartsAt = "2021-05-13T08:46:05.000000Z", + DiscountUpperLimit = 5586, + Description = "fbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMaO7kqGjaASQkqyw2Q45pim16jWY8Li", + Name = "2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkg", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 2415.0, - EndsAt = "2021-02-27T01:38:11.000000Z", - StartsAt = "2020-02-27T07:06:01.000000Z", - DiscountUpperLimit = 6233, - Description = "cgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNI", - Name = "G9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXf", + DiscountPercentage = 5189.0, + EndsAt = "2024-10-17T08:27:13.000000Z", + StartsAt = "2021-11-29T10:45:39.000000Z", + DiscountUpperLimit = 9810, + Description = "ikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFza", + Name = "S1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9oG2E8mJwg74tJdyJ5Llab29gfUQ6hTQL306GhITMLH", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 6608.0, - DisplayStartsAt = "2021-03-01T03:28:52.000000Z", - EndsAt = "2022-09-17T03:53:42.000000Z", - StartsAt = "2021-10-27T03:57:01.000000Z", - DiscountUpperLimit = 370, - Description = "TbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4", - Name = "f0IDf80jI5hMMqGagepFcb0C3pMehBLw9", + DiscountPercentage = 8924.0, + DisplayStartsAt = "2020-11-23T22:20:15.000000Z", + EndsAt = "2023-01-05T17:52:38.000000Z", + StartsAt = "2021-12-24T23:58:38.000000Z", + DiscountUpperLimit = 1250, + Description = "965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOY", + Name = "En550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6Fhp", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 514.0, - DisplayEndsAt = "2021-06-07T00:15:13.000000Z", - DisplayStartsAt = "2021-01-15T19:50:55.000000Z", - EndsAt = "2021-05-08T16:25:41.000000Z", - StartsAt = "2021-10-25T14:50:15.000000Z", - DiscountUpperLimit = 1929, - Description = "lxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8", - Name = "y7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVP", + DiscountPercentage = 247.0, + DisplayEndsAt = "2024-08-26T09:20:59.000000Z", + DisplayStartsAt = "2022-06-08T10:33:16.000000Z", + EndsAt = "2022-06-30T15:19:35.000000Z", + StartsAt = "2021-01-04T09:53:39.000000Z", + DiscountUpperLimit = 696, + Description = "8LjJn33RIRSOmlXSQfzzTwn3Dxt", + Name = "Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e20", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 2454.0, + DiscountPercentage = 8720.0, IsDisabled = true, - DisplayEndsAt = "2024-02-21T17:56:21.000000Z", - DisplayStartsAt = "2022-02-16T19:55:21.000000Z", - EndsAt = "2020-03-07T21:40:48.000000Z", - StartsAt = "2021-07-11T21:48:25.000000Z", - DiscountUpperLimit = 2479, - Description = "0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp", - Name = "YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8", + DisplayEndsAt = "2022-05-02T00:32:03.000000Z", + DisplayStartsAt = "2024-03-24T03:51:19.000000Z", + EndsAt = "2023-12-13T07:28:05.000000Z", + StartsAt = "2024-02-07T14:35:40.000000Z", + DiscountUpperLimit = 8527, + Description = "Xy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302sQl233vCftoqwC5tymvF1K23X2uYu4", + Name = "ypSW9PxtiaID1SUCfz9yEelMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3p", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 4448.0, - IsHidden = true, + DiscountPercentage = 9685.0, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2021-01-17T02:16:48.000000Z", - DisplayStartsAt = "2020-05-09T10:20:53.000000Z", - EndsAt = "2022-02-09T06:34:10.000000Z", - StartsAt = "2023-12-26T06:45:05.000000Z", - DiscountUpperLimit = 7921, - Description = "jfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsB", - Name = "g7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5", + DisplayEndsAt = "2023-02-19T20:09:09.000000Z", + DisplayStartsAt = "2022-08-25T04:04:40.000000Z", + EndsAt = "2023-08-09T22:43:01.000000Z", + StartsAt = "2021-03-07T03:04:59.000000Z", + DiscountUpperLimit = 5365, + Description = "g12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpaf36", + Name = "YY6mrG9Y2ztoKUUUx5B1bSO8xEgn", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 1874.0, - IsPublic = true, + DiscountPercentage = 380.0, + IsPublic = false, IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2023-01-22T06:17:18.000000Z", - DisplayStartsAt = "2021-10-04T23:20:19.000000Z", - EndsAt = "2021-08-21T05:42:54.000000Z", - StartsAt = "2020-12-16T07:55:58.000000Z", - DiscountUpperLimit = 8726, - Description = "611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p", - Name = "D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU", + IsDisabled = true, + DisplayEndsAt = "2021-09-07T15:37:35.000000Z", + DisplayStartsAt = "2024-01-28T02:05:25.000000Z", + EndsAt = "2023-08-14T03:04:22.000000Z", + StartsAt = "2023-03-27T16:24:16.000000Z", + DiscountUpperLimit = 8587, + Description = "nWTCVmm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G7cLViMByCBNzcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5Qcd", + Name = "KyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGa", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 6309.0, - Code = "z", - IsPublic = false, + DiscountPercentage = 4173.0, + Code = "b1sugqj", + IsPublic = true, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2021-10-16T11:28:16.000000Z", - DisplayStartsAt = "2021-09-01T06:42:34.000000Z", - EndsAt = "2021-01-04T11:25:54.000000Z", - StartsAt = "2024-01-09T15:56:15.000000Z", - DiscountUpperLimit = 9202, - Description = "JPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5Hy", - Name = "6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgG", + IsDisabled = false, + DisplayEndsAt = "2020-09-30T21:50:20.000000Z", + DisplayStartsAt = "2021-07-01T01:35:28.000000Z", + EndsAt = "2022-09-18T19:39:23.000000Z", + StartsAt = "2020-07-20T22:29:24.000000Z", + DiscountUpperLimit = 2149, + Description = "DBfKsRBbYLkU2TfJXzuBqGFPReFsmxaxT8Xwuc649dznjsqwxML0aHpiMuFL917lUTrE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHafl1jNP9k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27", + Name = "NPGQTdAXKNGuLNgDO", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 5061.0, - UsageLimit = 1245, - Code = "nFd", + DiscountPercentage = 5777.0, + UsageLimit = 8909, + Code = "a", IsPublic = false, IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2020-11-01T04:31:00.000000Z", - DisplayStartsAt = "2021-10-18T16:33:23.000000Z", - EndsAt = "2023-05-12T07:53:08.000000Z", - StartsAt = "2021-03-14T08:37:16.000000Z", - DiscountUpperLimit = 8465, - Description = "aJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98C", - Name = "VKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpC", + DisplayEndsAt = "2020-11-21T07:47:57.000000Z", + DisplayStartsAt = "2024-08-05T21:34:44.000000Z", + EndsAt = "2023-02-19T16:43:45.000000Z", + StartsAt = "2020-07-25T03:12:32.000000Z", + DiscountUpperLimit = 1714, + Description = "IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnlZj6NtOwX2FI8Wr1369uaTF42abkgSmtEHAWzK", + Name = "VmwmqN4ax1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpULitiIsW57", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 9240.0, - MinAmount = 9279, - UsageLimit = 7380, - Code = "zTj3A0", - IsPublic = false, + DiscountPercentage = 4708.0, + MinAmount = 4284, + UsageLimit = 2383, + Code = "hS8DsZfAQ", + IsPublic = true, IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2022-08-21T06:06:49.000000Z", - DisplayStartsAt = "2022-05-28T16:11:00.000000Z", - EndsAt = "2022-12-22T17:17:41.000000Z", - StartsAt = "2020-08-31T23:45:14.000000Z", - DiscountUpperLimit = 8, - Description = "WQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nU", - Name = "M7l93", + IsDisabled = true, + DisplayEndsAt = "2021-07-08T14:52:59.000000Z", + DisplayStartsAt = "2022-08-01T20:07:11.000000Z", + EndsAt = "2020-04-12T00:48:20.000000Z", + StartsAt = "2021-06-17T07:42:12.000000Z", + DiscountUpperLimit = 6236, + Description = "P8tTTuInowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI21M9POKUqkrXtAeLmERqX5bwDROtzb2hizqeaCyQXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsKX6oU3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn9tkKJsfEeEir", + Name = "JBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywqukv", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 5300.0, + DiscountPercentage = 128.0, IsShopSpecified = true, - MinAmount = 2083, - UsageLimit = 4764, - Code = "Q7DIwFMX", + MinAmount = 7560, + UsageLimit = 1758, + Code = "UDGTt", IsPublic = false, - IsHidden = false, + IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2020-01-12T06:11:01.000000Z", - DisplayStartsAt = "2023-06-25T02:00:48.000000Z", - EndsAt = "2020-05-05T23:41:55.000000Z", - StartsAt = "2021-08-27T01:52:50.000000Z", - DiscountUpperLimit = 9069, - Description = "UDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9", - Name = "nwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajM", + DisplayEndsAt = "2021-05-28T02:32:21.000000Z", + DisplayStartsAt = "2024-11-20T06:18:52.000000Z", + EndsAt = "2024-02-04T22:55:04.000000Z", + StartsAt = "2024-09-15T11:09:28.000000Z", + DiscountUpperLimit = 2977, + Description = "GQ9yekqoyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfW", + Name = "D13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 6375.0, - AvailableShopIds = new string[]{"4ca274b8-9560-4bd6-ae25-3647160b0743", "255708b0-134b-4193-9a18-974ca770147c", "6db75eb7-7656-4f4d-ba18-b961caa07b4d", "d8cd6c28-4bc5-4307-aa5f-8815782ffa12", "d1d06047-1afb-4398-b6b2-d7bf40cdd09d", "59de2c4e-0a81-4088-9014-61f33a08e08c", "8ef6513e-a64e-4ba7-92c7-5a2efafe6cc3"}, - IsShopSpecified = false, - MinAmount = 4331, - UsageLimit = 3638, - Code = "190", - IsPublic = true, + DiscountPercentage = 9759.0, + AvailableShopIds = new string[]{"5bf3b593-9056-47d7-a440-f77ad73e936e", "6d3b287b-b2fc-444a-8991-65958c9cbdfc", "a6b43319-b66f-4b91-9c22-ba88b0a9f476", "8dfee64c-7923-4468-9430-98c2a71799aa", "fdf90cf2-4d48-43c8-b713-8b9cdce88133", "bd8a7f22-0774-4245-9e87-15ff8599b1c0", "c6a543e4-893c-4329-829d-3b21b5b98a4f"}, + IsShopSpecified = true, + MinAmount = 6618, + UsageLimit = 99, + Code = "pIFBg2E", + IsPublic = false, IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2024-03-01T12:53:06.000000Z", - DisplayStartsAt = "2021-07-15T09:32:21.000000Z", - EndsAt = "2021-01-06T12:37:13.000000Z", - StartsAt = "2021-08-02T06:09:23.000000Z", - DiscountUpperLimit = 3685, - Description = "AyBqIIySMiYLD3kq3Zn", - Name = "8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1U", + IsDisabled = true, + DisplayEndsAt = "2023-08-28T10:57:53.000000Z", + DisplayStartsAt = "2022-07-06T05:49:01.000000Z", + EndsAt = "2024-11-30T10:26:56.000000Z", + StartsAt = "2020-04-02T00:12:42.000000Z", + DiscountUpperLimit = 1279, + Description = "VlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEulQIvNSkQALktsxpQNr6y6a28m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2", + Name = "kkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54", }; 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( - "9bc87ef0-ee8c-4187-8766-25aad020d6cc" + "00afb7ad-a93e-45e7-b67b-fa844d154372" ) { - DiscountPercentage = 803.0, - StorageId = "79946e56-cd34-44df-95ba-28bb420218ef", - AvailableShopIds = new string[]{"276426d0-8e5c-4866-8374-bdacce19b181"}, - IsShopSpecified = false, - MinAmount = 1068, - UsageLimit = 8774, - Code = "Yi", + DiscountPercentage = 8782.0, + StorageId = "700d8bfa-085c-4c55-9bdf-d7e97449d1a2", + AvailableShopIds = new string[]{"4b62425a-329e-4be1-bcf8-5d3196975f5e", "463a4888-0c67-498e-a2c5-b271af9aaa77", "46bffd74-f445-4fa6-bcfb-7a3f9c5bc79d"}, + IsShopSpecified = true, + MinAmount = 7118, + UsageLimit = 3946, + Code = "l7H6aH", IsPublic = false, IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2021-11-23T20:11:23.000000Z", - DisplayStartsAt = "2023-10-20T01:24:41.000000Z", - EndsAt = "2022-07-21T00:52:28.000000Z", - StartsAt = "2022-01-27T16:42:24.000000Z", - DiscountUpperLimit = 664, - Description = "J33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiV", - Name = "5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb", + IsDisabled = true, + DisplayEndsAt = "2023-03-22T06:33:55.000000Z", + DisplayStartsAt = "2024-01-01T01:56:17.000000Z", + EndsAt = "2021-03-21T22:47:32.000000Z", + StartsAt = "2022-04-08T22:14:35.000000Z", + DiscountUpperLimit = 6317, + Description = "rLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5B", + Name = "uCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2o", }; 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 af379d1..02fec43 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCustomerAccount.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCustomerAccount.cs @@ -25,7 +25,7 @@ public async Task UpdateCustomerAccount0() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ); Response.AccountWithUser response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task UpdateCustomerAccount1() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) { Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; @@ -57,9 +57,9 @@ public async Task UpdateCustomerAccount2() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) { - ExternalId = "N9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2q", + ExternalId = "hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq", Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; Response.AccountWithUser response = await request.Send(client); @@ -75,10 +75,10 @@ public async Task UpdateCustomerAccount3() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) { - AccountName = "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCbHnT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC", - ExternalId = "ahSG576Yk", + AccountName = "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd", + ExternalId = "KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb", Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; Response.AccountWithUser response = await request.Send(client); @@ -94,11 +94,11 @@ public async Task UpdateCustomerAccount4() { try { Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( - "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" + "86e1558d-113e-4ea6-8a48-226ea0c2dcab" ) { Status = "pre-closed", - AccountName = "67hNuqsd2aOEu5ugI0fcKmGRUw7sMhCFW8ODbHkZSUPXBsmObvn", - ExternalId = "UjDTSSciw", + AccountName = "nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc", + ExternalId = "KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj", Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", }; Response.AccountWithUser response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateShop.cs index bb486c8..adf5280 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( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ); 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( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - 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( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - CanTopupPrivateMoneyIds = new string[]{"5d49efeb-a667-4aca-ae63-263399a0e969", "d2867d69-9b1f-4085-8093-a95da97ae1ae", "45c36340-9eca-4b0f-a233-024e96d5a240", "0d6c3544-789b-4423-9bd6-050f93e5f0c6", "f793221f-436b-403a-829b-244ecf935be0"}, + CanTopupPrivateMoneyIds = new string[]{"b31c69d0-dc36-4ee2-afca-703fa9e9afa3", "ad6ccbbd-0c2c-4518-93bc-d05f6be860e0", "bb84d1eb-9cc1-4ea4-8dbb-19cee0da1545"}, Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); @@ -75,11 +75,11 @@ public async Task UpdateShop3() { try { Request.UpdateShop request = new Request.UpdateShop( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - PrivateMoneyIds = new string[]{"ee306427-5d7a-48ff-937b-d4e6e3056ceb", "ff0ddd32-dac8-45c5-a207-07d82a812e78", "a7092e61-8c7b-4c79-bff8-4e3dde8dd63d", "78f66afa-a5cd-42b2-8963-fbe7ee832903", "718012e8-0064-465f-86e3-e33226b3a100", "cc00c3cc-9f1b-4aea-a061-a2fc210a113c", "c3f11412-060c-48ea-8ab2-747debcb92c7"}, - CanTopupPrivateMoneyIds = new string[]{"ce08f61e-ab75-452d-a99b-653fb6762c28", "5532297e-59d6-4915-b9d5-5d739d19e444", "90b3449a-79be-4a6e-946c-c5fe17facb2a"}, - Status = "active", + PrivateMoneyIds = new string[]{"fb4633d7-2a5a-43b0-b8bc-a0875a2fd7bd", "3bb16283-5c22-4a01-ab6f-3f9be2a19735", "4412ef2c-69ff-499f-a4f2-19a8adf5dbbf", "4edda3f4-b3d8-41e4-9f28-3feb1abe756a", "a2aaba43-cd0b-4c5a-b606-054bcfb0c6de", "4440448f-3794-4e15-9058-9114b64f66ad"}, + CanTopupPrivateMoneyIds = new string[]{"8ffb3e4d-86f8-44b1-ab7f-2f3d07e56a48", "6a29f496-ff14-47d4-963d-9b86bc6376e2", "840b2470-0b21-4eaf-92d2-0f85346dbca1", "64d68188-88f8-4e37-b909-0f87c1e8cd9f", "ff679cae-1a71-47ef-81c6-5ad45501dd2f", "5c144aaa-1e28-41d6-a9d7-22de755aecc7", "0a6d636b-ff0d-493b-a23f-6637f42d7b23", "8b362472-c602-43f3-8b11-631baa686ee7", "028cd575-fe40-4fb2-a9e8-f280168cb8ef"}, + 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( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - ExternalId = "8nhmhWmlD5AgJ4dO8V", - PrivateMoneyIds = new string[]{"cf5c05a1-2e60-47a9-993c-f23e5098f2a7", "c1b6c41c-6d74-4a33-94e8-87f92796544e", "7991c030-b127-4f8b-9eb1-d8f81e6c77d7", "77d674a1-30cb-4570-a5f9-3dbc81f23c66", "f134355d-2806-4efb-bd9a-11d31bdb2104"}, - CanTopupPrivateMoneyIds = new string[]{"eca1a2d8-5a31-44cf-a9ce-d3aab366e107", "055b4e8d-0615-43ab-ad55-810de68587e2", "976da623-f18a-4f99-b1c8-b90835abed3a", "477a572c-99dd-47d8-91f5-65d3618080c5", "37101fd7-9485-4465-8d8a-57386183d402", "e167f6d6-7615-4e29-8c6d-f94d178e27b8", "d1afb33e-485f-490b-9d84-00977fed8371", "1dfcf994-1ffa-4726-99dc-d73a9bd9669e", "359bceee-1c0b-4dcb-896e-fa2465c8bfb9", "f7d86840-24f5-4242-9e2e-f4efeb01c071"}, - Status = "disabled", + ExternalId = "xDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1N", + PrivateMoneyIds = new string[]{"6fc69707-b9ce-4d2e-88de-a5fc1c20eaa4", "6e9bebfb-de86-4ad4-b092-bf978165ffcc", "01ee595b-0709-4396-93ee-8dd7ca20ee9b", "824328f9-a320-4fcc-8349-59e9208fa5e1", "ef731053-5c6d-45f8-82a1-46cf83be1e19", "00a528e9-c261-4ee2-b981-bdc3d4377e2c", "269db146-c9bd-40a6-9bc2-1e17d2144255"}, + CanTopupPrivateMoneyIds = new string[]{"1b60ec80-cc7e-44eb-8d4b-52aade32a909", "683c911c-e277-45cd-b6fa-0b10cf7582d2", "2be7f468-90a8-4f8f-aaae-2ffcd0a999bd", "6e5bfc40-8eae-48da-a4aa-c4ff7e0cda43", "976d8a9e-02b9-470c-90c9-7b8bd03331e2", "54a9d3f8-a79b-49ff-9249-1e6fea4a79eb", "97cb9e09-f43d-42ae-b215-85d34ab5b8cd", "81a1fdbe-d904-48ab-a3c1-a8aef698cc24", "b19369e5-a7b6-4e19-84dc-319178cce90c", "60b09bdf-e798-4e0b-89ac-c6cc52986970"}, + Status = "active", }; 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( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - Email = "N3XKkwmXFn@LL0v.com", - ExternalId = "mz7rucmF8n8VnjFoEs5f64mvXKC", - PrivateMoneyIds = new string[]{"08e1de30-a479-4cc9-8b2e-a3e0ce6c9e2f", "7c1ac03a-ef08-4713-9944-59724e703ca2", "79001dcf-48ed-4fa8-a683-e6188cb080da"}, - CanTopupPrivateMoneyIds = new string[]{"a91dc663-99e6-4380-8321-0b2523e86c7b", "b4d662e4-fd26-4914-855b-73d3642d2db8", "c782dca1-3b48-4aff-884a-85ad4f15f960", "94ec44a3-d9dc-441d-88be-ad66b7a9c4bc", "7a989435-a4a4-4eb0-9495-8d824b8872df", "747d59c3-4a92-47b5-b95c-ba90e09f37b2"}, + Email = "fhwjho9qAj@035e.com", + ExternalId = "2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6", + PrivateMoneyIds = new string[]{"d4d9610a-1ab9-4e52-bc6c-c7ffbd99782a"}, + CanTopupPrivateMoneyIds = new string[]{"c2e75275-db71-40cf-8229-3d7f24fc1449", "c6326dce-416d-43b4-9122-c73773e18737", "a59e9d5b-702f-4cc2-8a0d-b0286c51ea79", "743b7271-afe9-427b-aafa-abab8d23aa86", "1f840356-cfd1-4485-af16-7007d9dba665", "1d4d183e-d10e-433a-8632-9cdc6c751e60", "37dfec06-f6d8-42bd-b92a-4f012f95706d", "784d2a2b-7ed1-491e-8a4a-4069a0b84fc5", "a255d145-1a4c-432c-94d6-96fdac0a94ba"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -135,13 +135,13 @@ public async Task UpdateShop6() { try { Request.UpdateShop request = new Request.UpdateShop( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - Tel = "0310734-841", - Email = "uxIbudPgKc@AH4L.com", - ExternalId = "qtvnYdJrsgVxWy0PirB5ccKSjPsnaJy", - PrivateMoneyIds = new string[]{}, - CanTopupPrivateMoneyIds = new string[]{}, + Tel = "036-41810", + Email = "sn1Jp9ctBv@Xrxj.com", + ExternalId = "g2Jofbfd8lI7ca3oyQQIsU", + PrivateMoneyIds = new string[]{"229bccba-38f2-40c3-8d1f-a21f5cd5e904", "a826f0b2-1310-4020-85da-162b6c63e80e", "a931ac4d-b9f0-4ac5-b418-611599c53457"}, + CanTopupPrivateMoneyIds = new string[]{"e5aedc00-f9a5-4313-9bef-d972ebf5c9fb", "b6a3a834-21a2-40c9-8144-4e540c040048", "6eb08096-d58b-435f-a454-3ed0f92c5073", "9dbb2310-47ea-4a68-8d2d-885598824c24"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -157,14 +157,14 @@ public async Task UpdateShop7() { try { Request.UpdateShop request = new Request.UpdateShop( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - Address = "UaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9Dfg2K2KSBJ32yceHkpeJS5", - Tel = "02199526029", - Email = "uNlhP5RwfR@sdmS.com", - ExternalId = "nsKFojcLOuuurZaaP5z", - PrivateMoneyIds = new string[]{"f79d17f5-c6e9-4074-8ac1-0c57e8a7a542", "923d5e6e-f9cd-4954-9108-2183bf1ddb07", "da32a409-5072-49f1-914c-fd6240e5be18", "964449b4-4a0a-4186-a786-a54641f375b2", "5b20ebff-7414-4925-b75f-ab9215b0fa39", "50788947-c563-4e05-8773-ef64881eb210"}, - CanTopupPrivateMoneyIds = new string[]{"cf9981f4-70bc-46a6-834d-d1b3c74ccdac", "c5c87499-e6f5-432c-97c0-408bc5a6a98c", "9eb27d88-aa5e-4c53-a11d-87c540654e59", "c1060862-d4f5-4d98-a17e-eeba284b644f"}, + Address = "WbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1cR5rMDg0iBD2et6R89vRehYIZbMh6MfShA8D4Ev7O7TGT70LQ2epxhXvfJrqwCwzvGv5tXB9341AdQSvr2jD2CPBEg6qDXhSH8hafJy0sDTnMPtA", + Tel = "06404524134", + Email = "8JZcqIcqZB@2nkh.com", + ExternalId = "unnh29qWQZz14xB891rPV7F", + PrivateMoneyIds = new string[]{"330fe064-7b87-4b21-8844-6a809ff31b65", "130e4012-1e10-42de-9bc2-feb651572531", "70117676-7163-41ff-ba24-80a231d2e4cf"}, + CanTopupPrivateMoneyIds = new string[]{"74275e60-7e9d-44b1-bc0a-aa757b9715bf", "98fa8dce-3f20-441c-8802-dc42f4eb1394", "4adcfca1-cd41-4064-b200-949b236a9dba", "da151a7c-775f-4236-9a0b-81fed1b625ec", "4aff2fbc-31ff-48e6-997a-416207c9ace6", "eebfc1f1-389d-40cb-ac6e-8bfffea59a73", "6abc231e-fd47-4eb4-bf2e-3e30873c1003", "1cd8f3ac-ecf7-45da-af82-823013980552", "df7d3e02-8d80-45db-9404-e6390aa62230", "152b702d-66ed-4dd4-b680-fe7c47425f39"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -180,15 +180,15 @@ public async Task UpdateShop8() { try { Request.UpdateShop request = new Request.UpdateShop( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - PostalCode = "971-7494", - Address = "bZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4", - Tel = "0867-0737", - Email = "kdygOOVSyz@QqeT.com", - ExternalId = "BrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1", - PrivateMoneyIds = new string[]{"ed650299-8011-44f2-92a9-ff1f835400cf", "9840cdab-d0c2-4c8d-a166-1013dd582994", "cc875e08-169b-49fb-95fa-454e78c1b1d4", "314ef7c2-e191-4cbd-8711-6b58b6b23349", "657cf1d6-c47f-4d91-b1f7-443d5afaa283", "1cb3de9b-2418-47ac-87fd-c90939e51bf0", "3643f98a-75b1-490c-bbd2-1886aa9b94ee", "c663bbb3-dd55-4f08-9498-1c3daa4b5c09", "77cc6621-dfb4-4416-8b3e-27d17383af73", "5416728c-261f-4baf-af2b-cfc1377e3a13"}, - CanTopupPrivateMoneyIds = new string[]{"010f4ed6-0327-4089-9813-1c2ac1a83ba3", "208dd801-eed1-4822-a43f-5b905bab6fff", "8e498872-310d-4355-bd1e-57e9092dad0e", "64487712-d168-4d4e-b532-e0e60133d67f"}, + PostalCode = "9159696", + Address = "Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZ", + Tel = "078-521940", + Email = "MJt8otXLMw@iqJK.com", + ExternalId = "isPTXvJ9APWVf0", + PrivateMoneyIds = new string[]{"92992ac0-d5a1-495c-8dee-f5eb89bf5f49", "63c3c6b2-8ae3-4c70-9be9-08da6506d272", "6b4fe55f-ca77-482f-a874-e8e0f93f1982", "10a8cb90-52fd-4930-9d8e-49a336045f1a", "d49d075e-133b-45fe-9ab2-03e421ce3a68"}, + CanTopupPrivateMoneyIds = new string[]{"f42f6a9c-3382-4873-8990-bf189801a753", "4286dffb-a63a-410c-b88f-69185e691ece", "69340d9f-d0ba-4dbd-bea2-27d828808784", "a51c2ea7-df42-4bf5-8089-f5e81acec04c"}, Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); @@ -204,17 +204,17 @@ public async Task UpdateShop9() { try { Request.UpdateShop request = new Request.UpdateShop( - "5e0e78e6-84b0-4d1d-9159-643a729452dc" + "1ce9a5e5-8d4c-42fa-94e7-2139e0d28846" ) { - Name = "4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o5Rc96wfmVrWrKd8ZckndPnp3nLoMele3ppOb8vOALeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3", - PostalCode = "263-5876", - Address = "ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zqICt7BPEIsHw9iaxaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6Z", - Tel = "0577-4344-4007", - Email = "fziyB2HYxa@SuFe.com", - ExternalId = "vc", - PrivateMoneyIds = new string[]{"16c1a0f3-bb73-402b-8caf-bc1fee1ed1af", "48610d55-7fb2-4ad1-ae88-63034df6ee5e", "f2828938-d333-4ee7-9bbe-7ed75a97e916", "ed90b086-39c8-457f-b768-24bc234286bd", "c8a11846-1630-4aa6-8f1f-ecd4752ee902", "d04ebe04-2b38-4e27-834e-c768e1657c37", "62ebf865-b8ef-4e1f-9b4f-c0a9c8da8810", "e166de17-d5a8-413a-98b6-ce2ad8cd2f3a", "666facff-9519-4361-bc73-04bc6f54ab2e", "1d8693ea-6a1d-42cf-807b-56ff11f10eef"}, - CanTopupPrivateMoneyIds = new string[]{"64063cb0-73d2-4606-9214-53faf04fecd7", "a45c9efa-252c-4e0d-a701-d54adc1ca608", "a5652738-5e19-4671-a1ec-bfecfa766c7e", "3390cfed-a7fc-4cf8-ae20-1daeee588b9e", "bba2368e-6b6b-404d-9004-ff0c4bb8952f", "12add967-4615-4586-af05-10738c9df615", "760be668-4e0c-4d0f-91c9-d210d721c61f", "80977107-803b-47c8-ba62-5588c1038618"}, - Status = "disabled", + Name = "xPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0", + PostalCode = "254-9276", + Address = "S2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11T", + Tel = "0803-6788748", + Email = "OxFwqhkpZV@aDhp.com", + ExternalId = "Pp5bfKV", + PrivateMoneyIds = new string[]{"5b916e74-2639-415d-aac4-85d01ac82bd9", "1adab1ca-759d-4941-ad03-88259ad990d6", "8a7edefa-7f56-4080-b69d-929559dfad03", "56554176-a4fc-4a79-898a-022549ecb082", "a6d07e10-80b6-48de-a493-7c114d74d5f9", "55cbfa77-bfe6-46fd-9d70-550fb0e357a9"}, + CanTopupPrivateMoneyIds = new string[]{"38663f4b-6c69-4f27-a3ec-14bd942323ea", "3d16e328-5cb5-45bd-a0fa-a53e1991dc67", "72e207b8-5670-46e0-aeb5-3cb7a367a504", "c86cee22-97eb-4aba-ad46-c1b011077316", "a443107f-c6bf-48a8-a8c4-6a0cbd15b459", "64681762-cfd0-4acc-988c-456a0cf82f01", "91708575-69db-4777-83f2-7970ec98f3a5", "c2a01f65-2c44-439d-bca2-89b084495808", "06e3e241-1aa1-4abe-b949-68c4bc615459"}, + Status = "active", }; 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 c4dad5f..4d1c954 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( - "acf31cd3-6e0b-4acb-abb2-47b339f619cd" + "b37aac05-dc04-42b3-898d-4a86043a79d2" ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task UpdateWebhook1() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "acf31cd3-6e0b-4acb-abb2-47b339f619cd" + "b37aac05-dc04-42b3-898d-4a86043a79d2" ) { Task = "process_user_stats_operation", }; @@ -57,9 +57,9 @@ public async Task UpdateWebhook2() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "acf31cd3-6e0b-4acb-abb2-47b339f619cd" + "b37aac05-dc04-42b3-898d-4a86043a79d2" ) { - IsActive = true, + IsActive = false, Task = "process_user_stats_operation", }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); @@ -75,10 +75,10 @@ public async Task UpdateWebhook3() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "acf31cd3-6e0b-4acb-abb2-47b339f619cd" + "b37aac05-dc04-42b3-898d-4a86043a79d2" ) { - Url = "m6Cln0nex", - IsActive = true, + Url = "u8YJJm39h", + IsActive = false, Task = "process_user_stats_operation", }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); diff --git a/src/PokepayPartnerCsharpSdk/PokepayPartnerCsharpSdk.csproj b/src/PokepayPartnerCsharpSdk/PokepayPartnerCsharpSdk.csproj index da053eb..08f2cb9 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.9 + 1.3.10 Library True True diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateBankTopupTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateBankTopupTransaction.cs index d16ec8e..d26efdf 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateBankTopupTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateBankTopupTransaction.cs @@ -15,11 +15,14 @@ public class CreateBankTopupTransaction public string PrivateMoneyId { get; set; } public int Amount { get; set; } public string BankId { get; set; } + public string ReceiverUserId { get; set; } public string RequestId { get; set; } #else public string PrivateMoneyId { get; set; } public int Amount { get; set; } public string BankId { get; set; } + #nullable enable + public string? ReceiverUserId { get; set; } public string RequestId { get; set; } #endif diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs index 2ba1d35..9835cb7 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs @@ -30,6 +30,7 @@ public class CreateCampaign public int[] ApplicableDaysOfWeek { get; set; } public object[] ApplicableTimeRanges { get; set; } public string[] ApplicableShopIds { get; set; } + public string[] BlacklistedShopIds { get; set; } public System.Nullable MinimumNumberOfProducts { get; set; } public System.Nullable MinimumNumberOfAmount { get; set; } public System.Nullable MinimumNumberForCombinationPurchase { get; set; } @@ -74,6 +75,8 @@ public class CreateCampaign #nullable enable public string[]? ApplicableShopIds { get; set; } #nullable enable + public string[]? BlacklistedShopIds { get; set; } + #nullable enable public int? MinimumNumberOfProducts { get; set; } #nullable enable public int? MinimumNumberOfAmount { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCpmTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCpmTransaction.cs index da77167..329a1c1 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCpmTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCpmTransaction.cs @@ -18,6 +18,7 @@ public class CreateCpmTransaction public string Metadata { get; set; } public object[] Products { get; set; } public string RequestId { get; set; } + public string Strategy { get; set; } #else public string CpmToken { get; set; } public string ShopId { get; set; } @@ -30,6 +31,8 @@ public class CreateCpmTransaction public object[]? Products { get; set; } #nullable enable public string? RequestId { get; set; } + #nullable enable + public string? Strategy { get; set; } #endif public CreateCpmTransaction(string cpmToken, string shopId, double amount) => diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateExternalTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreateExternalTransaction.cs index 54aea55..2e507d3 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateExternalTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateExternalTransaction.cs @@ -19,6 +19,7 @@ public class CreateExternalTransaction public string Metadata { get; set; } public object[] Products { get; set; } public string RequestId { get; set; } + public string DoneAt { get; set; } #else public string ShopId { get; set; } public string CustomerId { get; set; } @@ -32,6 +33,8 @@ public class CreateExternalTransaction public object[]? Products { get; set; } #nullable enable public string? RequestId { get; set; } + #nullable enable + public string? DoneAt { get; set; } #endif public CreateExternalTransaction(string shopId, string customerId, string privateMoneyId, int amount) => diff --git a/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransaction.cs b/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransaction.cs index db06e18..8344954 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransaction.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransaction.cs @@ -19,6 +19,7 @@ public class CreatePaymentTransaction public string Metadata { get; set; } public object[] Products { get; set; } public string RequestId { get; set; } + public string Strategy { get; set; } #else public string ShopId { get; set; } public string CustomerId { get; set; } @@ -32,6 +33,8 @@ public class CreatePaymentTransaction public object[]? Products { get; set; } #nullable enable public string? RequestId { get; set; } + #nullable enable + public string? Strategy { get; set; } #endif public CreatePaymentTransaction(string shopId, string customerId, string privateMoneyId, int amount) => diff --git a/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransactionWithBill.cs b/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransactionWithBill.cs new file mode 100644 index 0000000..755cc67 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/CreatePaymentTransactionWithBill.cs @@ -0,0 +1,50 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Net.Http; +using System.Text.Json; +using System.Threading.Tasks; + +using PokepayPartnerCsharpSdk; +using PokepayPartnerCsharpSdk.Response; + +namespace PokepayPartnerCsharpSdk.Request +{ + public class CreatePaymentTransactionWithBill + { +#if NETFRAMEWORK + public string BillId { get; set; } + public string CustomerId { get; set; } + public string Metadata { get; set; } + public string RequestId { get; set; } + public string Strategy { get; set; } +#else + public string BillId { get; set; } + public string CustomerId { get; set; } + #nullable enable + public string? Metadata { get; set; } + #nullable enable + public string? RequestId { get; set; } + #nullable enable + public string? Strategy { get; set; } +#endif + + public CreatePaymentTransactionWithBill(string billId, string customerId) => + (BillId, CustomerId) = (billId, customerId); + + private string path { get { return "/transactions" + "/payment" + "/bill"; } } + + private static readonly HttpMethod method = new HttpMethod("POST"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, CreatePaymentTransactionWithBill.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, CreatePaymentTransactionWithBill.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateTransactionWithCashtray.cs b/src/PokepayPartnerCsharpSdk/Request/CreateTransactionWithCashtray.cs new file mode 100644 index 0000000..f558887 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/CreateTransactionWithCashtray.cs @@ -0,0 +1,47 @@ +// 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 CreateTransactionWithCashtray + { +#if NETFRAMEWORK + public string CashtrayId { get; set; } + public string CustomerId { get; set; } + public string Strategy { get; set; } + public string RequestId { get; set; } +#else + public string CashtrayId { get; set; } + public string CustomerId { get; set; } + #nullable enable + public string? Strategy { get; set; } + #nullable enable + public string? RequestId { get; set; } +#endif + + public CreateTransactionWithCashtray(string cashtrayId, string customerId) => + (CashtrayId, CustomerId) = (cashtrayId, customerId); + + private string path { get { return "/transactions" + "/cashtray"; } } + + private static readonly HttpMethod method = new HttpMethod("POST"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, CreateTransactionWithCashtray.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, CreateTransactionWithCashtray.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/DeleteBank.cs b/src/PokepayPartnerCsharpSdk/Request/DeleteBank.cs new file mode 100644 index 0000000..653c794 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/DeleteBank.cs @@ -0,0 +1,40 @@ +// 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 DeleteBank + { + private string UserDeviceId { get; set; } +#if NETFRAMEWORK + public string BankId { get; set; } +#else + public string BankId { get; set; } +#endif + + public DeleteBank(string userDeviceId, string bankId) => + (UserDeviceId, BankId) = (userDeviceId, bankId); + + private string path { get { return "/user-devices" + "/" + UserDeviceId + "/banks"; } } + + private static readonly HttpMethod method = new HttpMethod("DELETE"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, DeleteBank.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, DeleteBank.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/GetBill.cs b/src/PokepayPartnerCsharpSdk/Request/GetBill.cs new file mode 100644 index 0000000..4ebc54e --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/GetBill.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 GetBill + { + private string BillId { get; set; } +#if NETFRAMEWORK +#else +#endif + + public GetBill(string billId) => + (BillId) = (billId); + + private string path { get { return "/bills" + "/" + BillId; } } + + private static readonly HttpMethod method = new HttpMethod("GET"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, GetBill.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, GetBill.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/GetSevenBankATMSession.cs b/src/PokepayPartnerCsharpSdk/Request/GetSevenBankATMSession.cs new file mode 100644 index 0000000..ac6682c --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/GetSevenBankATMSession.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 GetSevenBankATMSession + { + private string QrInfo { get; set; } +#if NETFRAMEWORK +#else +#endif + + public GetSevenBankATMSession(string qrInfo) => + (QrInfo) = (qrInfo); + + private string path { get { return "/seven-bank-atm-sessions" + "/" + QrInfo; } } + + private static readonly HttpMethod method = new HttpMethod("GET"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, GetSevenBankATMSession.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, GetSevenBankATMSession.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/ListBillTransactions.cs b/src/PokepayPartnerCsharpSdk/Request/ListBillTransactions.cs new file mode 100644 index 0000000..783b4d5 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/ListBillTransactions.cs @@ -0,0 +1,78 @@ +// 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 ListBillTransactions + { +#if NETFRAMEWORK + public string PrivateMoneyId { get; set; } + public string OrganizationCode { get; set; } + public string ShopId { get; set; } + public string CustomerId { get; set; } + public string CustomerName { get; set; } + public string TerminalId { get; set; } + public string Description { get; set; } + public string TransactionId { get; set; } + public string BillId { get; set; } + public System.Nullable IsModified { get; set; } + public string From { get; set; } + public string To { get; set; } + public string NextPageCursorId { get; set; } + public string PrevPageCursorId { get; set; } + public System.Nullable PerPage { get; set; } +#else + #nullable enable + public string? PrivateMoneyId { get; set; } + #nullable enable + public string? OrganizationCode { get; set; } + #nullable enable + public string? ShopId { get; set; } + #nullable enable + public string? CustomerId { get; set; } + #nullable enable + public string? CustomerName { get; set; } + #nullable enable + public string? TerminalId { get; set; } + #nullable enable + public string? Description { get; set; } + #nullable enable + public string? TransactionId { get; set; } + #nullable enable + public string? BillId { get; set; } + #nullable enable + public bool? IsModified { get; set; } + #nullable enable + public string? From { get; set; } + #nullable enable + public string? To { get; set; } + #nullable enable + public string? NextPageCursorId { get; set; } + #nullable enable + public string? PrevPageCursorId { get; set; } + #nullable enable + public int? PerPage { get; set; } +#endif + private string path { get { return "/transactions" + "/bill"; } } + + private static readonly HttpMethod method = new HttpMethod("GET"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, ListBillTransactions.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, ListBillTransactions.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/TerminateUserStats.cs b/src/PokepayPartnerCsharpSdk/Request/TerminateUserStats.cs new file mode 100644 index 0000000..7e38f66 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Request/TerminateUserStats.cs @@ -0,0 +1,39 @@ +// 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 TerminateUserStats + { +#if NETFRAMEWORK + public string OperationId { get; set; } +#else + public string OperationId { get; set; } +#endif + + public TerminateUserStats(string operationId) => + (OperationId) = (operationId); + + private string path { get { return "/user-stats" + "/terminate"; } } + + private static readonly HttpMethod method = new HttpMethod("POST"); + +#if NETFRAMEWORK + public async Task Send(Client client) { + string res = await client.Send(path, TerminateUserStats.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#else +#nullable enable + public async Task Send(Client client) { + string res = await client.Send(path, TerminateUserStats.method, this); + return JsonSerializer.Deserialize(res, client.JsonOptions); + } +#endif + } +} diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs index 017de9d..e304eb4 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs @@ -29,6 +29,7 @@ public class UpdateCampaign public int[] ApplicableDaysOfWeek { get; set; } public object[] ApplicableTimeRanges { get; set; } public string[] ApplicableShopIds { get; set; } + public string[] BlacklistedShopIds { get; set; } public System.Nullable MinimumNumberOfProducts { get; set; } public System.Nullable MinimumNumberOfAmount { get; set; } public System.Nullable MinimumNumberForCombinationPurchase { get; set; } @@ -74,6 +75,8 @@ public class UpdateCampaign #nullable enable public string[]? ApplicableShopIds { get; set; } #nullable enable + public string[]? BlacklistedShopIds { get; set; } + #nullable enable public int? MinimumNumberOfProducts { get; set; } #nullable enable public int? MinimumNumberOfAmount { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Response/BankDeleted.cs b/src/PokepayPartnerCsharpSdk/Response/BankDeleted.cs new file mode 100644 index 0000000..0a8b76b --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Response/BankDeleted.cs @@ -0,0 +1,11 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Text.Json.Serialization; + +namespace PokepayPartnerCsharpSdk.Response +{ + public class BankDeleted + { + + + } +} diff --git a/src/PokepayPartnerCsharpSdk/Response/BillTransaction.cs b/src/PokepayPartnerCsharpSdk/Response/BillTransaction.cs new file mode 100644 index 0000000..594f41f --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Response/BillTransaction.cs @@ -0,0 +1,15 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Text.Json.Serialization; + +namespace PokepayPartnerCsharpSdk.Response +{ + public class BillTransaction + { + public Transaction Transaction { get; set; } + public Bill Bill { get; set; } + + [JsonConstructor] + public BillTransaction(Transaction transaction, Bill bill) => + (Transaction, Bill) = (transaction, bill); + } +} diff --git a/src/PokepayPartnerCsharpSdk/Response/PaginatedBillTransaction.cs b/src/PokepayPartnerCsharpSdk/Response/PaginatedBillTransaction.cs new file mode 100644 index 0000000..cc5f808 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Response/PaginatedBillTransaction.cs @@ -0,0 +1,18 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Text.Json.Serialization; + +namespace PokepayPartnerCsharpSdk.Response +{ + public class PaginatedBillTransaction + { + public BillTransaction[] Rows { get; set; } + public int PerPage { get; set; } + public int Count { get; set; } + public string NextPageCursorId { get; set; } + public string PrevPageCursorId { get; set; } + + [JsonConstructor] + public PaginatedBillTransaction(BillTransaction[] rows, int perPage, int count) => + (Rows, PerPage, Count) = (rows, perPage, count); + } +} diff --git a/src/PokepayPartnerCsharpSdk/Response/SevenBankATMSession.cs b/src/PokepayPartnerCsharpSdk/Response/SevenBankATMSession.cs new file mode 100644 index 0000000..2ebd093 --- /dev/null +++ b/src/PokepayPartnerCsharpSdk/Response/SevenBankATMSession.cs @@ -0,0 +1,23 @@ +// DO NOT EDIT: File is generated by code generator. +using System.Text.Json.Serialization; + +namespace PokepayPartnerCsharpSdk.Response +{ + public class SevenBankATMSession + { + public string QrInfo { get; set; } + public AccountDetail Account { get; set; } + public int Amount { get; set; } + public Transaction Transaction { get; set; } + public string SevenBankCustomerNumber { get; set; } + public string AtmId { get; set; } + public string AudiId { get; set; } + public string IssuerCode { get; set; } + public string IssuerName { get; set; } + public string MoneyName { get; set; } + + [JsonConstructor] + public SevenBankATMSession(string qrInfo, AccountDetail account, int amount, string sevenBankCustomerNumber) => + (QrInfo, Account, Amount, SevenBankCustomerNumber) = (qrInfo, account, amount, sevenBankCustomerNumber); + } +}