diff --git a/docs/README.md b/docs/README.md new file mode 100644 index 0000000..171060d --- /dev/null +++ b/docs/README.md @@ -0,0 +1,285 @@ +# Partner API SDK for C# +## Installation + +nuget.orgからインストールすることができます。[パッケージはこちら](https://www.nuget.org/packages/pokepay-partner-csharp-sdk/) + +``` +PM> Install-Package pokepay-partner-csharp-sdk +``` +or +``` +$ dotnet add package pokepay-partner-csharp-sdk +``` + +プロジェクトにて、以下のようにインポートします。 + +```csharp +using PokepayPartnerCsharpSdk; +// もしくは +using PokepayPartnerCsharpSdk; +using PokepayPartnerCsharpSdk.Request; +using PokepayPartnerCsharpSdk.Response; +``` + +## Getting started + +基本的な使い方は次のようになります。 + +- ライブラリをロード +- 設定ファイル(後述)から `Client` オブジェクトを作る +- リクエストオブジェクトを作り Send() 関数に `Client` オブジェクトを渡す。 +- レスポンスオブジェクトを得る + +典型的には以下のようなコードになります。 + +```csharp +using PokepayPartnerCsharpSdk; +// ... +Client client = new Client("/path/to/config.ini"); +Request.SendEcho request = new Request.SendEcho("hello"); +Response.Echo response = await request.Send(client); +``` + +リクエストオブジェクトは、必須のパラメータはコンストラクタの引数に与える必要があります。 +オプショナルなパラメーターは、 オブジェクト初期化子 `object initializer` (`{ }`)で与えることができます。 + +```csharp +// (例) 必須パラメーターとオプショナルパラメータの指定 +Request.CreateBill request = new Request.CreateBill( + "1b598fcb-2662-4b91-bcb1-62ded4d691b1", + "817a81d1-44d4-4615-89c8-56cd3c83db30" +) { + Amount = 120, + Description = "120マネーの支払いQRコード1" +}; +Response.Bill response = await request.Send(client); +``` + +レスポンスオブジェクトの中には必要なデータが含まれています。 + +注意: Client は内部で SSL クライアント証明書をキャッシュしていますので、初期化後は使いまわしてください。 +Client をリクエストごとに頻繁に再生成するとオーバーヘッドになる可能性があります。 + +## Settings + +設定はINIファイルに記述し、`Client` のコンストラクタにファイルパスを指定します。 + +SDKプロジェクトルートに `config.ini.sample` というファイルがありますのでそれを元に必要な情報を記述してください。特に以下の情報は通信の安全性のため必要な項目です。これらはパートナー契約時にお渡ししているものです。 + +- `CLIENT_ID`: パートナーAPI クライアントID +- `CLIENT_SECRET`: パートナーAPI クライアント秘密鍵 +- `SSL_KEY_FILE`: SSL秘密鍵ファイルパス +- `SSL_CERT_FILE`: SSL証明書ファイルパス + +この他に接続先のサーバURL情報が必要です。 + +- `API_BASE_URL`: パートナーAPI サーバURL + +また、この設定ファイルには認証に必要な情報が含まれるため、ファイルの管理・取り扱いに十分注意してください。 + +設定ファイル記述例(`config.ini.sample`) + +``` +CLIENT_ID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx +CLIENT_SECRET = yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy +API_BASE_URL = https://partnerapi-sandbox.pokepay.jp +SSL_KEY_FILE = /path/to/key.pem +SSL_CERT_FILE = /path/to/cert.pem +``` + +## Overview + +### APIリクエスト + +Partner APIへの通信はリクエストオブジェクトを作り、`Request.Send()` メソッドに `Client` を渡すことで行われます。 +また `Request.Send()` は `非同期関数` で `Task` を返します。`await` することができます。 +たとえば `SendEcho` は送信した内容をそのまま返す処理です。 + +```csharp +Request.SendEcho request = new Request.SendEcho("hello"); +Response.Echo response = await request.Send(client); +``` + +通信の結果として、レスポンスオブジェクトが得られます。 + +```csharp +response { + Status = "OK", + Message = "hello" +} +``` + +利用可能なAPI操作については [API Operations](#api-operations) で紹介します。 + + +### ページング + +API操作によっては、大量のデータがある場合に備えてページング処理があります。 +その処理では以下のようなプロパティを持つレスポンスオブジェクトを返します。 + +- rows : 列挙するレスポンスクラスのオブジェクトの配列 +- count : 全体の要素数 +- pagination : 以下のインスタンス変数を持つオブジェクト + - current : 現在のページ位置(1からスタート) + - per_page : 1ページ当たりの要素数 + - max_page : 最後のページ番号 + - has_prev : 前ページを持つかどうかの真理値 + - has_next : 次ページを持つかどうかの真理値 + +ページングクラスは `Pagination` で定義されています。 + +以下にコード例を示します。 + +```csharp +Request.ListTransactions request = new Request.ListTransactions { + Page = 1, + PerPage = 50 +}; +Response.PaginatedTransaction response = await request.Send(client); + +if (response.Pagination.HasNext) { + int nextPage = response.Pagination.Current + 1; + Request.ListTransactions request = new Request.ListTransactions { + Page = nextPage, + PerPage = 50 + }; + Response.PaginatedTransaction response = await request.Send(client); +} +``` + +### エラーハンドリング + +API呼び出し時のエラーの場合は `HttpRequestException` が `throw` されます。 +参考: https://docs.microsoft.com/ja-jp/dotnet/api/system.net.http.httprequestexception?view=net-5.0 + +* e.Message に内容 +* e.Data["StatusCode"] にHttpステータスコード +* e.Data["Type"] にエラータイプ +* e.Data["Message"] に詳細理由 + +がそれぞれ設定されています。 + +```csharp +try { + Request.SendEcho request = new Request.SendEcho("hello"); + Response.Echo response = await request.Send(client); +} catch (HttpRequestException e) { + e.Message // 内容 + e.Data["StatusCode"] // Httpステータスコード + e.Data["Type"] // エラータイプ + e.Data["Message"] // 詳細内容 +} +``` + +## API Operations + +### Transaction +- [GetCpmToken](./transaction.md#get-cpm-token): CPMトークンの状態取得 +- [ListTransactions](./transaction.md#list-transactions): 【廃止】取引履歴を取得する +- [CreateTransaction](./transaction.md#create-transaction): 【廃止】チャージする +- [ListTransactionsV2](./transaction.md#list-transactions-v2): 取引履歴を取得する +- [CreateTopupTransaction](./transaction.md#create-topup-transaction): チャージする +- [CreatePaymentTransaction](./transaction.md#create-payment-transaction): 支払いする +- [CreateCpmTransaction](./transaction.md#create-cpm-transaction): CPMトークンによる取引作成 +- [CreateTransferTransaction](./transaction.md#create-transfer-transaction): 個人間送金 +- [CreateExchangeTransaction](./transaction.md#create-exchange-transaction): +- [GetTransaction](./transaction.md#get-transaction): 取引情報を取得する +- [RefundTransaction](./transaction.md#refund-transaction): 取引をキャンセルする +- [GetTransactionByRequestId](./transaction.md#get-transaction-by-request-id): リクエストIDから取引情報を取得する +- [GetBulkTransaction](./transaction.md#get-bulk-transaction): バルク取引ジョブの実行状況を取得する +- [ListBulkTransactionJobs](./transaction.md#list-bulk-transaction-jobs): バルク取引ジョブの詳細情報一覧を取得する +- [RequestUserStats](./transaction.md#request-user-stats): 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする + +### Transfer +- [GetAccountTransferSummary](./transfer.md#get-account-transfer-summary): +- [ListTransfers](./transfer.md#list-transfers): +- [ListTransfersV2](./transfer.md#list-transfers-v2): + +### Check +- [CreateCheck](./check.md#create-check): チャージQRコードの発行 +- [ListChecks](./check.md#list-checks): チャージQRコード一覧の取得 +- [GetCheck](./check.md#get-check): チャージQRコードの表示 +- [UpdateCheck](./check.md#update-check): チャージQRコードの更新 +- [CreateTopupTransactionWithCheck](./check.md#create-topup-transaction-with-check): チャージQRコードを読み取ることでチャージする + +### Bill +- [ListBills](./bill.md#list-bills): 支払いQRコード一覧を表示する +- [CreateBill](./bill.md#create-bill): 支払いQRコードの発行 +- [UpdateBill](./bill.md#update-bill): 支払いQRコードの更新 + +### Cashtray +- [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayを作る +- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する +- [CancelCashtray](./cashtray.md#cancel-cashtray): Cashtrayを無効化する +- [UpdateCashtray](./cashtray.md#update-cashtray): Cashtrayの情報を更新する + +### Customer +- [GetAccount](./customer.md#get-account): ウォレット情報を表示する +- [UpdateAccount](./customer.md#update-account): ウォレット情報を更新する +- [DeleteAccount](./customer.md#delete-account): ウォレットを退会する +- [ListAccountBalances](./customer.md#list-account-balances): エンドユーザーの残高内訳を表示する +- [ListAccountExpiredBalances](./customer.md#list-account-expired-balances): エンドユーザーの失効済みの残高内訳を表示する +- [UpdateCustomerAccount](./customer.md#update-customer-account): エンドユーザーのウォレット情報を更新する +- [GetCustomerAccounts](./customer.md#get-customer-accounts): エンドユーザーのウォレット一覧を表示する +- [CreateCustomerAccount](./customer.md#create-customer-account): 新規エンドユーザーをウォレットと共に追加する +- [GetShopAccounts](./customer.md#get-shop-accounts): 店舗ユーザーのウォレット一覧を表示する +- [ListCustomerTransactions](./customer.md#list-customer-transactions): 取引履歴を取得する + +### Organization +- [ListOrganizations](./organization.md#list-organizations): 加盟店組織の一覧を取得する +- [CreateOrganization](./organization.md#create-organization): 新規加盟店組織を追加する + +### Shop +- [ListShops](./shop.md#list-shops): 店舗一覧を取得する +- [CreateShop](./shop.md#create-shop): 【廃止】新規店舗を追加する +- [CreateShopV2](./shop.md#create-shop-v2): 新規店舗を追加する +- [GetShop](./shop.md#get-shop): 店舗情報を表示する +- [UpdateShop](./shop.md#update-shop): 店舗情報を更新する + +### User +- [GetUser](./user.md#get-user): + +### Account +- [ListUserAccounts](./account.md#list-user-accounts): エンドユーザー、店舗ユーザーのウォレット一覧を表示する +- [CreateUserAccount](./account.md#create-user-account): エンドユーザーのウォレットを作成する + +### Private Money +- [GetPrivateMoneys](./private_money.md#get-private-moneys): マネー一覧を取得する +- [GetPrivateMoneyOrganizationSummaries](./private_money.md#get-private-money-organization-summaries): 決済加盟店の取引サマリを取得する +- [GetPrivateMoneySummary](./private_money.md#get-private-money-summary): 取引サマリを取得する + +### Bulk +- [BulkCreateTransaction](./bulk.md#bulk-create-transaction): CSVファイル一括取引 + +### Event +- [CreateExternalTransaction](./event.md#create-external-transaction): ポケペイ外部取引を作成する +- [RefundExternalTransaction](./event.md#refund-external-transaction): ポケペイ外部取引をキャンセルする + +### Campaign +- [CreateCampaign](./campaign.md#create-campaign): ポイント付与キャンペーンを作る +- [ListCampaigns](./campaign.md#list-campaigns): キャンペーン一覧を取得する +- [GetCampaign](./campaign.md#get-campaign): キャンペーンを取得する +- [UpdateCampaign](./campaign.md#update-campaign): ポイント付与キャンペーンを更新する + +### Webhook +- [CreateWebhook](./webhook.md#create-webhook): webhookの作成 +- [ListWebhooks](./webhook.md#list-webhooks): 作成したWebhookの一覧を返す +- [UpdateWebhook](./webhook.md#update-webhook): Webhookの更新 +- [DeleteWebhook](./webhook.md#delete-webhook): Webhookの削除 + +### Coupon +- [ListCoupons](./coupon.md#list-coupons): クーポン一覧の取得 +- [CreateCoupon](./coupon.md#create-coupon): クーポンの登録 +- [GetCoupon](./coupon.md#get-coupon): クーポンの取得 +- [UpdateCoupon](./coupon.md#update-coupon): クーポンの更新 + +### UserDevice +- [CreateUserDevice](./user_device.md#create-user-device): ユーザーのデバイス登録 +- [GetUserDevice](./user_device.md#get-user-device): ユーザーのデバイスを取得 +- [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 + +### BankPay +- [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 +- [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 +- [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ + diff --git a/docs/account.md b/docs/account.md new file mode 100644 index 0000000..baae405 --- /dev/null +++ b/docs/account.md @@ -0,0 +1,161 @@ +# Account + + +## ListUserAccounts: エンドユーザー、店舗ユーザーのウォレット一覧を表示する +ユーザーIDを指定してそのユーザーのウォレット一覧を取得します。 + +```csharp +Request.ListUserAccounts request = new Request.ListUserAccounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーID +) { + Page = 9970, // ページ番号 + PerPage = 7800, // 1ページ分の取引数 +}; +Response.PaginatedAccountDetails response = await request.Send(client); +``` + + + +### Parameters +**`user_id`** + + +ユーザーIDです。 + +指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ当たりのウォレット数です。デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedAccountDetails](./responses.md#paginated-account-details) +を返します + + +--- + + + +## CreateUserAccount: エンドユーザーのウォレットを作成する +既存のエンドユーザーに対して、指定したマネーのウォレットを新規作成します + +```csharp +Request.CreateUserAccount request = new Request.CreateUserAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + Name = "musaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqor", // ウォレット名 + ExternalId = "IswPc2cB", // 外部ID + Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", // ウォレットに付加するメタデータ +}; +Response.AccountDetail response = await request.Send(client); +``` + + + +### Parameters +**`user_id`** + + +ユーザーIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +作成するウォレットのマネーを指定します。このパラメータは必須です。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`external_id`** + + + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + +**`metadata`** + + +ウォレットに付加するメタデータをJSON文字列で指定します。 +指定できるJSON文字列には以下のような制約があります。 +- フラットな構造のJSONを文字列化したものであること。 +- keyは最大32文字の文字列(同じkeyを複数指定することはできません) +- valueには128文字以下の文字列が指定できます + +```json +{ + "type": "string", + "format": "json" +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + +--- + + + diff --git a/docs/bank_pay.md b/docs/bank_pay.md new file mode 100644 index 0000000..94a4c0d --- /dev/null +++ b/docs/bank_pay.md @@ -0,0 +1,237 @@ +# BankPay +BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + + + +## CreateBank: 銀行口座の登録 +銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 + +ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 +アプリの場合はDeep Linkを使うことを想定しています。 + + +```csharp +Request.CreateBank request = new Request.CreateBank( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + "", // コールバックURL + "ポケペイタロウ" // ユーザーの氏名 (片仮名で指定) +) { + Email = "qC15yVJZpc@8KVp.com", // ユーザーのメールアドレス + Birthdate = "19901142", // 生年月日 +}; +Response.BankRegisteringInfo response = await request.Send(client); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`callback_url`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`kana`** + + + +```json +{ + "type": "string", + "maxLength": 30 +} +``` + +**`email`** + + + +```json +{ + "type": "string", + "format": "email", + "maxLength": 300 +} +``` + +**`birthdate`** + + + +```json +{ + "type": "string", + "maxLength": 8 +} +``` + + + +成功したときは +[BankRegisteringInfo](./responses.md#bank-registering-info) +を返します + + +--- + + + +## ListBanks: 登録した銀行の一覧 +登録した銀行を一覧します + +```csharp +Request.ListBanks request = new Request.ListBanks( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // デバイスID +) { + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", +}; +Response.Banks response = await request.Send(client); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Banks](./responses.md#banks) +を返します + + +--- + + + +## CreateBankTopupTransaction: 銀行からのチャージ +指定のマネーのアカウントにbank_idの口座を用いてチャージを行います。 + +```csharp +Request.CreateBankTopupTransaction request = new Request.CreateBankTopupTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // デバイスID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + 7742, // チャージ金額 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 銀行ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +); +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`bank_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`request_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + diff --git a/docs/bill.md b/docs/bill.md new file mode 100644 index 0000000..e94377b --- /dev/null +++ b/docs/bill.md @@ -0,0 +1,351 @@ +# Bill +支払いQRコード + + +## ListBills: 支払いQRコード一覧を表示する +支払いQRコード一覧を表示します。 + +```csharp +Request.ListBills request = new Request.ListBills() { + Page = 8308, // ページ番号 + PerPage = 5622, // 1ページの表示数 + BillId = "laKx", // 支払いQRコードのID + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + OrganizationCode = "CMf-9Tbr-uA-3dv2K1u-t2aU848H--", // 組織コード + Description = "test bill", // 取引説明文 + CreatedFrom = "2020-01-14T03:21:13.000000Z", // 作成日時(起点) + CreatedTo = "2020-09-03T11:53:51.000000Z", // 作成日時(終点) + ShopName = "bill test shop1", // 店舗名 + ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + LowerLimitAmount = 3745, // 金額の範囲によるフィルタ(下限) + UpperLimitAmount = 6172, // 金額の範囲によるフィルタ(上限) + IsDisabled = true, // 支払いQRコードが無効化されているかどうか +}; +Response.PaginatedBills response = await request.Send(client); +``` + + + +### Parameters +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページに表示する支払いQRコードの数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`bill_id`** + + +支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。 + +```json +{ + "type": "string" +} +``` + +**`private_money_id`** + + +支払いQRコードの送金元ウォレットのマネーIDでフィルターします。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`organization_code`** + + +支払いQRコードの送金元店舗が所属する組織の組織コードでフィルターします。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`description`** + + +支払いQRコードを読み取ることで作られた取引の説明文としてアプリなどに表示されます。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`created_from`** + + +支払いQRコードの作成日時でフィルターします。 + +これ以降に作成された支払いQRコードのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`created_to`** + + +支払いQRコードの作成日時でフィルターします。 + +これ以前に作成された支払いQRコードのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`shop_name`** + + +支払いQRコードを作成した店舗名でフィルターします。店舗名は部分一致で検索されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`shop_id`** + + +支払いQRコードを作成した店舗IDでフィルターします。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`lower_limit_amount`** + + +支払いQRコードの金額の下限を指定してフィルターします。 + +```json +{ + "type": "integer", + "format": "decimal", + "minimum": 0 +} +``` + +**`upper_limit_amount`** + + +支払いQRコードの金額の上限を指定してフィルターします。 + +```json +{ + "type": "integer", + "format": "decimal", + "minimum": 0 +} +``` + +**`is_disabled`** + + +支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[PaginatedBills](./responses.md#paginated-bills) +を返します + + +--- + + + +## CreateBill: 支払いQRコードの発行 +支払いQRコードの内容を更新します。支払い先の店舗ユーザーは指定したマネーのウォレットを持っている必要があります。 + +```csharp +Request.CreateBill request = new Request.CreateBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いマネーのマネーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払い先(受け取り人)の店舗ID +) { + Amount = 6991.0, // 支払い額 + Description = "test bill", // 説明文(アプリ上で取引の説明文として表示される) +}; +Response.Bill response = await request.Send(client); +``` + + + +### Parameters +**`amount`** + + +支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + +--- + + + +## UpdateBill: 支払いQRコードの更新 +支払いQRコードの内容を更新します。パラメータは全て省略可能で、指定したもののみ更新されます。 + +```csharp +Request.UpdateBill request = new Request.UpdateBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 支払いQRコードのID +) { + Amount = 3919.0, // 支払い額 + Description = "test bill", // 説明文 + IsDisabled = true, // 無効化されているかどうか +}; +Response.Bill response = await request.Send(client); +``` + + + +### Parameters +**`bill_id`** + + +更新対象の支払いQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`description`** + + +支払いQRコードの詳細説明文です。アプリ上で取引の説明文として表示されます。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`is_disabled`** + + +支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + +--- + + + diff --git a/docs/bulk.md b/docs/bulk.md new file mode 100644 index 0000000..9a66ecf --- /dev/null +++ b/docs/bulk.md @@ -0,0 +1,113 @@ +# Bulk + + +## BulkCreateTransaction: CSVファイル一括取引 +CSVファイルから一括取引をします。 + +```csharp +Request.BulkCreateTransaction request = new Request.BulkCreateTransaction( + "skU0m8hSr1melepO9LnwIsUc", // 一括取引タスク名 + "mvb4", // 取引する情報のCSV + "GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P3" // リクエストID +) { + Description = "35Nv6jpCTg7cI", // 一括取引の説明 + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID +}; +Response.BulkTransaction response = await request.Send(client); +``` + + + +### Parameters +**`name`** + + +一括取引タスクの管理用の名前です。 + +```json +{ + "type": "string", + "maxLength": 32 +} +``` + +**`description`** + + +一括取引タスクの管理用の説明文です。 + +```json +{ + "type": "string", + "maxLength": 128 +} +``` + +**`content`** + + +一括取引する情報を書いたCSVの文字列です。 +1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 +カラムは以下の7つです。任意のカラムには空文字を指定します。 + +- `type`: 取引種別 + - 必須。'topup' または 'payment' +- `sender_id`: 送金ユーザーID + - 必須。UUID +- `receiver_id`: 受取ユーザーID + - 必須。UUID +- `private_money_id`: マネーID + - 必須。UUID +- `money_amount`: マネー額 + - 任意。ただし `point_amount` といずれかが必須。0以上の数字 +- `point_amount`: ポイント額 + - 任意。ただし `money_amount` といずれかが必須。0以上の数字 +- `description`: 取引の説明文 + - 任意。200文字以内。取引履歴に表示される文章 +- `bear_account_id`: ポイント負担ウォレットID + - `point_amount` があるときは必須。UUID +- `point_expires_at`: ポイントの有効期限 + - 任意。指定がないときはマネーに設定された有効期限を適用 + +```json +{ + "type": "string" +} +``` + +**`request_id`** + + +重複したリクエストを判断するためのユニークID。ランダムな36字の文字列を生成して渡してください。 + +```json +{ + "type": "string", + "minLength": 36, + "maxLength": 36 +} +``` + +**`private_money_id`** + + +マネーIDです。 マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[BulkTransaction](./responses.md#bulk-transaction) +を返します + + +--- + + + diff --git a/docs/campaign.md b/docs/campaign.md new file mode 100644 index 0000000..4d5ed62 --- /dev/null +++ b/docs/campaign.md @@ -0,0 +1,1530 @@ +# Campaign + + +## CreateCampaign: ポイント付与キャンペーンを作る +ポイント付与キャンペーンを作成します。 + + +```csharp +Request.CreateCampaign request = new Request.CreateCampaign( + "jgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31R", // キャンペーン名 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + "2020-01-23T17:23:33.000000Z", // キャンペーン開始日時 + "2023-11-29T10:51:14.000000Z", // キャンペーン終了日時 + 9775, // キャンペーンの適用優先度 + "external-transaction" // イベント種別 +) { + BearPointShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID + Description = "FcTjCHIRk6EOKDYDfh7IyYBf", // キャンペーンの説明文 + Status = "disabled", // キャンペーン作成時の状態 + PointExpiresAt = "2022-05-31T13:43:18.000000Z", // ポイント有効期限(絶対日時指定) + PointExpiresInDays = 1075, // ポイント有効期限(相対日数指定) + 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}}}, // 商品情報ベースのポイント付与ルール + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト + ApplicableDaysOfWeek = new int[]{4, 5, 2}, // キャンペーンを適用する曜日 (複数指定) + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, // キャンペーンを適用する時間帯 (複数指定) + ApplicableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // キャンペーン適用対象となる店舗IDのリスト + MinimumNumberOfProducts = 3677, // キャンペーンを適用する1会計内の商品個数の下限 + MinimumNumberOfAmount = 9333, // キャンペーンを適用する1会計内の商品総額の下限 + MinimumNumberForCombinationPurchase = 1069, // 複数種類の商品を同時購入するときの商品種別数の下限 + ExistInEachProductGroups = true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + MaxPointAmount = 7906, // キャンペーンによって付与されるポイントの上限 + MaxTotalPointAmount = 1642, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + DestPrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + BudgetCapsAmount = 1315895000, // キャンペーン予算上限 +}; +Response.Campaign response = await request.Send(client); +``` + + + +### Parameters +**`name`** + + +キャンペーン名です(必須項目)。 + +ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`private_money_id`** + + +キャンペーン対象のマネーのIDです(必須項目)。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`starts_at`** + + +キャンペーン開始日時です(必須項目)。 +キャンペーン期間中のみポイントが付与されます。 +開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`ends_at`** + + +キャンペーン終了日時です(必須項目)。 +キャンペーン期間中のみポイントが付与されます。 +開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`priority`** + + +キャンペーンの適用優先度です。 + +優先度が大きいものから順に適用判定されていきます。 +キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 + +```json +{ + "type": "integer" +} +``` + +**`event`** + + +キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。 + +以下のいずれかを指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) +2. payment + エンドユーザーから店舗への送金取引(支払い) +3. external-transaction + ポケペイ外の取引(現金決済など) + +```json +{ + "type": "string", + "enum": [ + "topup", + "payment", + "external-transaction" + ] +} +``` + +**`bear_point_shop_id`** + + +ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。 +ポイント負担先店舗は後から更新することはできません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + +キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`status`** + + +キャンペーン作成時の状態を指定します。デフォルトではenabledです。 + +以下のいずれかを指定できます。 + +1. enabled + 有効 +2. disabled + 無効 + +```json +{ + "type": "string", + "enum": [ + "enabled", + "disabled" + ] +} +``` + +**`point_expires_at`** + + +キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`is_exclusive`** + + +キャンペーンの重ね掛けを行うかどうかのフラグです。 + +これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 +falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 + +```json +{ + "type": "boolean" +} +``` + +**`subject`** + + +ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 +eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 + +以下のいずれかを指定できます。 + +1. money +moneyを指定すると決済額の中で「マネー」を使って支払った額を対象にします + +2. all +all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) +注意: event を topup にしたときはポイントの付与に対しても適用されます + +```json +{ + "type": "string", + "enum": [ + "money", + "all" + ] +} +``` + +**`amount_based_point_rules`** + + +金額をベースとしてポイント付与を行うルールを指定します。 +amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 +各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 + +例: +```javascript +[ + // 1000円以上、5000円未満の決済には 5% + { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, + // 5000円以上の決済には 10% + { + "point_amount": 10, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 5000 + }, +] +``` + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`product_based_point_rules`** + + +商品情報をベースとしてポイント付与を行うルールを指定します。 +ルールは商品ごとに設定可能で、ルールの配列として指定します。 +amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 +event が payment か external-transaction の時のみ有効です。 +各ルールの順序は問わず、適用可能なものは全て適用されます。 +一つの決済の中で複数の商品がキャンペーン適用可能な場合はそれぞれの商品についてのルールが適用され、ポイント付与額はその合算になります。 + +例: +```javascript +[ + // 対象商品の購入額から5%ポイント付与。複数購入時は単価の5%が付与される。 + { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + }, + // 対象商品の購入額から5%ポイント付与。複数購入時は購入総額の5%が付与される。 + { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + }, + // 対象商品を2つ以上購入したら500ポイント付与(固定額付与) + { + "point_amount": 500, + "point_amount_unit": "absolute", + "product_code": "4912345678904", + "required_count": 2 + }, + // 書籍は10%ポイント付与 + // ※ISBNの形式はレジがポケペイに送信する形式に準じます + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "978-%", + }, + // 一部の出版社の書籍は10%ポイント付与 + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "978-4-01-%", // 旺文社 + } +] +``` + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`blacklisted_product_rules`** + + +商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 +除外対象の商品コード、または分類コードのパターンの配列として指定します。 +取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`applicable_days_of_week`** + + + +```json +{ + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 6 + } +} +``` + +**`applicable_time_ranges`** + + + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`applicable_shop_ids`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`minimum_number_of_products`** + + +このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`minimum_number_of_amount`** + + +このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`minimum_number_for_combination_purchase`** + + +複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。 + +このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 +例えば、A商品とB商品とC商品のうち、キャンペーンの発火のために2商品以上が同時購入される必要があるときは 2 を指定します。 + +例1: 商品A, Bが同時購入されたときに固定ポイント額(200ポイント)付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Aの商品コード" + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Bの商品コード" + } + ] +} +``` + +例2: 商品A, Bが3個ずつ以上同時購入されたときに固定ポイント額(200ポイント)付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Aの商品コード", + "required_count": 3 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Bの商品コード", + "required_count": 3 + } + ] +} +``` + +例2: 商品A, B, Cのうち2商品以上が同時購入されたときに総額の10%ポイントが付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Aの商品コード", + "is_multiply_by_count": true, + }, + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Bの商品コード", + "is_multiply_by_count": true, + }, + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Cの商品コード", + "is_multiply_by_count": true, + } + ] +} +``` + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`exist_in_each_product_groups`** + + +複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 + +このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 +exist_in_each_product_groupsが指定されているにも関わらず商品毎のルールでgroup_idが指定されていないものが含まれている場合はinvalid_parametersエラー(missing group_id, エラーコード400)が返ります。 + +例えば、商品グループA(商品コードa1, a2)、商品グループB(商品コードb1, b2)の2つの商品グループがあるとします。 +このとき、各商品グループからそれぞれ少なくとも1種類以上の商品が購入されることにより発火するキャンペーンに対するリクエストパラメータは以下のようなものになります。 + +```javascript +{ + exist_in_each_product_groups: true, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a1", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a2", + "group_id": 1 + }, + { + "point_amount": 200, + "point_amount_unit": "absolute", + "product_code": "b1", + "group_id": 2 + }, + { + "point_amount": 200, + "point_amount_unit": "absolute", + "product_code": "b2", + "group_id": 2 + } + ] +} +``` + +このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になります。つまり100 + 200=300がポイント付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 + +ポイント付与値を各商品毎のルールの総和ではなく固定値にしたい場合には、max_point_amountを指定します。 +例えば以下のようなリクエストパラメータ指定の場合を考えます。 + +```javascript +{ + max_point_amount: 100, + exist_in_each_product_groups: true, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a1", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a2", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "b1", + "group_id": 2 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "b2", + "group_id": 2 + } + ] +} +``` + +このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 + +```json +{ + "type": "boolean" +} +``` + +**`max_point_amount`** + + +キャンペーンによって付与されるポイントの上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`max_total_point_amount`** + + +キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 +累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`dest_private_money_id`** + + +キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。 + +ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。 +エンドユーザー、店舗、ポイント負担先店舗はポイント付与先マネーのウォレットを持っている必要があります。持っていない場合はポイントは付きません。 +元のイベントのマネーと異なる複数のマネーに対して同時にポイントを付与することはできません。重複可能に設定されている複数のキャンペーンで別々のポイント付与先マネーを指定した場合は最も優先度の高いものが処理され、残りは無視されます。 +キャンペーンのポイント付与先マネーは後から更新することはできません。 +デフォルトではポイント付与先はキャンペーンを駆動するイベントのマネー(private_money_idで指定したマネー)になります。 + +別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`applicable_account_metadata`** + + +ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 + +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 + +例1: 取引が行なわれたウォレットのメタデータに住所として東京が指定されているときのみ発火 + +```javascript +{ + "key": "prefecture", + "value": "tokyo" +} +``` + +例2: 取引が行なわれたウォレットのメタデータに住所として東京以外が指定されているときのみ発火 + +```javascript +{ + "key": "prefecture", + "value": "tokyo", + "test": "not-equal" +} +``` + +```json +{ + "type": "object" +} +``` + +**`budget_caps_amount`** + + +キャンペーンの予算上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 10000000000 +} +``` + + + +成功したときは +[Campaign](./responses.md#campaign) +を返します + + +--- + + + +## ListCampaigns: キャンペーン一覧を取得する +マネーIDを指定してキャンペーンを取得します。 +発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 +閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 + +```csharp +Request.ListCampaigns request = new Request.ListCampaigns( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + IsOngoing = true, // 現在適用可能なキャンペーンかどうか + AvailableFrom = "2021-02-12T14:30:23.000000Z", // 指定された日時以降に適用可能期間が含まれているか + AvailableTo = "2021-11-23T20:11:23.000000Z", // 指定された日時以前に適用可能期間が含まれているか + Page = 1, // ページ番号 + PerPage = 20, // 1ページ分の取得数 +}; +Response.PaginatedCampaigns response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_ongoing`** + + +有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 +真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "boolean" +} +``` + +**`available_from`** + + +キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`available_to`** + + +キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 20 になっています。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 50 +} +``` + + + +成功したときは +[PaginatedCampaigns](./responses.md#paginated-campaigns) +を返します + + +--- + + + +## GetCampaign: キャンペーンを取得する +IDを指定してキャンペーンを取得します。 +発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 +閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 + +```csharp +Request.GetCampaign request = new Request.GetCampaign( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // キャンペーンID +); +Response.Campaign response = await request.Send(client); +``` + + + +### Parameters +**`campaign_id`** + + +キャンペーンIDです。 + +指定したIDのキャンペーンを取得します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Campaign](./responses.md#campaign) +を返します + + +--- + + + +## UpdateCampaign: ポイント付与キャンペーンを更新する +ポイント付与キャンペーンを更新します。 + + +```csharp +Request.UpdateCampaign request = new Request.UpdateCampaign( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // キャンペーンID +) { + Name = "eLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTz", // キャンペーン名 + StartsAt = "2022-04-04T12:36:17.000000Z", // キャンペーン開始日時 + EndsAt = "2020-11-10T23:55:36.000000Z", // キャンペーン終了日時 + Priority = 4845, // キャンペーンの適用優先度 + Event = "external-transaction", // イベント種別 + Description = "uCtm4tM4rQ7TMWwQQegAiqW5G", // キャンペーンの説明文 + Status = "enabled", // キャンペーン作成時の状態 + PointExpiresAt = "2023-01-16T12:50:59.000000Z", // ポイント有効期限(絶対日時指定) + PointExpiresInDays = 1695, // ポイント有効期限(相対日数指定) + IsExclusive = true, // キャンペーンの重複設定 + Subject = "money", // ポイント付与の対象金額の種別 + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, // 取引金額ベースのポイント付与ルール + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, // 商品情報ベースのポイント付与ルール + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, // 商品情報ベースのキャンペーンで除外対象にする商品リスト + ApplicableDaysOfWeek = new int[]{3, 5, 3}, // キャンペーンを適用する曜日 (複数指定) + 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 = 3650, // キャンペーンを適用する1会計内の商品個数の下限 + MinimumNumberOfAmount = 7375, // キャンペーンを適用する1会計内の商品総額の下限 + MinimumNumberForCombinationPurchase = 3509, // 複数種類の商品を同時購入するときの商品種別数の下限 + ExistInEachProductGroups = true, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + MaxPointAmount = 3498, // キャンペーンによって付与されるポイントの上限 + MaxTotalPointAmount = 6455, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + BudgetCapsAmount = 976430174, // キャンペーン予算上限 +}; +Response.Campaign response = await request.Send(client); +``` + + + +### Parameters +**`campaign_id`** + + +キャンペーンIDです。 + +指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + +キャンペーン名です。 + +ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`starts_at`** + + +キャンペーン開始日時です。 +キャンペーン期間中のみポイントが付与されます。 +開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`ends_at`** + + +キャンペーン終了日時です。 +キャンペーン期間中のみポイントが付与されます。 +開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`priority`** + + +キャンペーンの適用優先度です。 + +優先度が大きいものから順に適用判定されていきます。 +キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 + +```json +{ + "type": "integer" +} +``` + +**`event`** + + +キャンペーンのトリガーとなるイベントの種類を指定します。 + +以下のいずれかを指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) +2. payment + エンドユーザーから店舗への送金取引(支払い) +3. external-transaction + ポケペイ外の取引(現金決済など) + +```json +{ + "type": "string", + "enum": [ + "topup", + "payment", + "external-transaction" + ] +} +``` + +**`description`** + + +キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`status`** + + +キャンペーン作成時の状態を指定します。デフォルトではenabledです。 + +以下のいずれかを指定できます。 + +1. enabled + 有効 +2. disabled + 無効 + +```json +{ + "type": "string", + "enum": [ + "enabled", + "disabled" + ] +} +``` + +**`point_expires_at`** + + +キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`is_exclusive`** + + +キャンペーンの重ね掛けを行うかどうかのフラグです。 + +これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 +falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 + +```json +{ + "type": "boolean" +} +``` + +**`subject`** + + +ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 +eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 + +以下のいずれかを指定できます。 + +1. money +moneyを指定すると決済額の中で「マネー」を使って支払った額を対象にします + +2. all +all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) +注意: event を topup にしたときはポイントの付与に対しても適用されます + +```json +{ + "type": "string", + "enum": [ + "money", + "all" + ] +} +``` + +**`amount_based_point_rules`** + + +金額をベースとしてポイント付与を行うルールを指定します。 +amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 +各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 + +例: +```javascript +[ + // 1000円以上、5000円未満の決済には 5% + { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, + // 5000円以上の決済には 10% + { + "point_amount": 10, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 5000 + }, +] +``` + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`product_based_point_rules`** + + +商品情報をベースとしてポイント付与を行うルールを指定します。 +ルールは商品ごとに設定可能で、ルールの配列として指定します。 +amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 +event が payment か external-transaction の時のみ有効です。 +各ルールの順序は問わず、適用可能なものは全て適用されます。 +一つの決済の中で複数の商品がキャンペーン適用可能な場合はそれぞれの商品についてのルールが適用され、ポイント付与額はその合算になります。 + +例: +```javascript +[ + // 対象商品の購入額から5%ポイント付与。複数購入時は単価の5%が付与される。 + { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + }, + // 対象商品の購入額から5%ポイント付与。複数購入時は購入総額の5%が付与される。 + { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + }, + // 対象商品を2つ以上購入したら500ポイント付与(固定額付与) + { + "point_amount": 500, + "point_amount_unit": "absolute", + "product_code": "4912345678904", + "required_count": 2 + }, + // 書籍は10%ポイント付与 + // ※ISBNの形式はレジがポケペイに送信する形式に準じます + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "978-%", + }, + // 一部の出版社の書籍は10%ポイント付与 + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "978-4-01-%", // 旺文社 + } +] +``` + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`blacklisted_product_rules`** + + +商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 +除外対象の商品コード、または分類コードのパターンの配列として指定します。 +取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`applicable_days_of_week`** + + + +```json +{ + "type": "array", + "items": { + "type": "integer", + "minimum": 0, + "maximum": 6 + } +} +``` + +**`applicable_time_ranges`** + + + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`applicable_shop_ids`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`minimum_number_of_products`** + + +このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`minimum_number_of_amount`** + + +このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`minimum_number_for_combination_purchase`** + + +複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。 + +このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 +例えば、A商品とB商品とC商品のうち、キャンペーンの発火のために2商品以上が同時購入される必要があるときは 2 を指定します。 + +例1: 商品A, Bが同時購入されたときに固定ポイント額(200ポイント)付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Aの商品コード" + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Bの商品コード" + } + ] +} +``` + +例2: 商品A, Bが3個ずつ以上同時購入されたときに固定ポイント額(200ポイント)付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Aの商品コード", + "required_count": 3 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "商品Bの商品コード", + "required_count": 3 + } + ] +} +``` + +例2: 商品A, B, Cのうち2商品以上が同時購入されたときに総額の10%ポイントが付与 +```javascript +{ + minimum_number_for_combination_purchase: 2, + product_based_point_rules: [ + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Aの商品コード", + "is_multiply_by_count": true, + }, + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Bの商品コード", + "is_multiply_by_count": true, + }, + { + "point_amount": 10, + "point_amount_unit": "percent", + "product_code": "商品Cの商品コード", + "is_multiply_by_count": true, + } + ] +} +``` + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`exist_in_each_product_groups`** + + +複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 + +このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 +exist_in_each_product_groupsが指定されているにも関わらず商品毎のルールでgroup_idが指定されていないものが含まれている場合はinvalid_parametersエラー(missing group_id, エラーコード400)が返ります。 + +例えば、商品グループA(商品コードa1, a2)、商品グループB(商品コードb1, b2)の2つの商品グループがあるとします。 +このとき、各商品グループからそれぞれ少なくとも1種類以上の商品が購入されることにより発火するキャンペーンに対するリクエストパラメータは以下のようなものになります。 + +```javascript +{ + exist_in_each_product_groups: true, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a1", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a2", + "group_id": 1 + }, + { + "point_amount": 200, + "point_amount_unit": "absolute", + "product_code": "b1", + "group_id": 2 + }, + { + "point_amount": 200, + "point_amount_unit": "absolute", + "product_code": "b2", + "group_id": 2 + } + ] +} +``` + +このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になります。つまり100 + 200=300がポイント付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 + +ポイント付与値を各商品毎のルールの総和ではなく固定値にしたい場合には、max_point_amountを指定します。 +例えば以下のようなリクエストパラメータ指定の場合を考えます。 + +```javascript +{ + max_point_amount: 100, + exist_in_each_product_groups: true, + product_based_point_rules: [ + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a1", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "a2", + "group_id": 1 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "b1", + "group_id": 2 + }, + { + "point_amount": 100, + "point_amount_unit": "absolute", + "product_code": "b2", + "group_id": 2 + } + ] +} +``` + +このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 + +```json +{ + "type": "boolean" +} +``` + +**`max_point_amount`** + + +キャンペーンによって付与される1取引当たりのポイント数の上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`max_total_point_amount`** + + +キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 + +このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 +累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`applicable_account_metadata`** + + +ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 + +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 + +例1: 取引が行なわれたウォレットのメタデータに住所として東京が指定されているときのみ発火 + +```javascript +{ + "key": "prefecture", + "value": "tokyo" +} +``` + +例2: 取引が行なわれたウォレットのメタデータに住所として東京以外が指定されているときのみ発火 + +```javascript +{ + "key": "prefecture", + "value": "tokyo", + "test": "not-equal" +} +``` + +```json +{ + "type": "object" +} +``` + +**`budget_caps_amount`** + + +キャンペーンの予算上限を指定します。 + +キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 +キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 +キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 10000000000 +} +``` + + + +成功したときは +[Campaign](./responses.md#campaign) +を返します + + +--- + + + diff --git a/docs/cashtray.md b/docs/cashtray.md new file mode 100644 index 0000000..8767b98 --- /dev/null +++ b/docs/cashtray.md @@ -0,0 +1,313 @@ +# Cashtray +Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 +Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 +Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 +また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 + + + +## CreateCashtray: Cashtrayを作る +Cashtrayを作成します。 + +エンドユーザーに対して支払いまたはチャージを行う店舗の情報(店舗ユーザーIDとマネーID)と、取引金額が必須項目です。 +店舗ユーザーIDとマネーIDから店舗ウォレットを特定します。 + +その他に、Cashtrayから作られる取引に対する説明文や失効時間を指定できます。 + + +```csharp +Request.CreateCashtray request = new Request.CreateCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ユーザーID + 1704.0 // 金額 +) { + Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 + ExpiresIn = 9821, // 失効時間(秒) +}; +Response.Cashtray response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +取引対象のマネーのIDです(必須項目)。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`shop_id`** + + +店舗のユーザーIDです(必須項目)。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +マネー額です(必須項目)。 +正の値を与えるとチャージになり、負の値を与えると支払いとなります。 + +```json +{ + "type": "number" +} +``` + +**`description`** + + +Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 +アプリや管理画面などの取引履歴に表示されます。デフォルトでは空文字になります。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`expires_in`** + + +Cashtrayが失効するまでの時間を秒単位で指定します(任意項目、デフォルト値は1800秒(30分))。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + +--- + + + +## GetCashtray: Cashtrayの情報を取得する +Cashtrayの情報を取得します。 + +Cashtrayの現在の状態に加え、エンドユーザーのCashtray読み取りの試行結果、Cashtray読み取りによって作られた取引情報が取得できます。 + +レスポンス中の `attempt` には、このCashtrayをエンドユーザーが読み取った試行結果が入ります。 +`account` はエンドユーザーのウォレット情報です。 +成功時には `attempt` 内の `status_code` に200が入ります。 + +まだCashtrayが読み取られていない場合は `attempt` の内容は `NULL` になります。 +エンドユーザーのCashtray読み取りの際には、様々なエラーが起き得ます。 +エラーの詳細は `attempt` 中の `error_type` と `error_message` にあります。主なエラー型と対応するステータスコードを以下に列挙します。 + +- `cashtray_already_proceed (422)` + - 既に処理済みのCashtrayをエンドユーザーが再び読み取ったときに返されます +- `cashtray_expired (422)` + - 読み取り時点でCashtray自体の有効期限が切れているときに返されます。Cashtrayが失効する時刻はレスポンス中の `expires_at` にあります +- `cashtray_already_canceled (422)` + - 読み取り時点でCashtrayが無効化されているときに返されます +- `account_balance_not_enough (422)` + - 支払い時に、エンドユーザーの残高が不足していて取引が完了できなかったときに返されます +- `account_balance_exceeded` + - チャージ時に、エンドユーザーのウォレット上限を超えて取引が完了できなかったときに返されます +- `account_transfer_limit_exceeded (422)` + - マネーに設定されている一度の取引金額の上限を超えたため、取引が完了できなかったときに返されます +- `account_money_topup_transfer_limit_exceeded (422)` + - マネーに設定されている一度のマネーチャージ金額の上限を超えたため、取引が完了できなかったときに返されます +- `account_not_found (422)` + - Cashtrayに設定されたマネーのウォレットをエンドユーザーが持っていなかったときに返されます + + +レスポンス中の `transaction` には、このCashtrayをエンドユーザーが読み取ることによって作られる取引データが入ります。まだCashtrayが読み取られていない場合は `NULL` になります。 + +以上をまとめると、Cashtrayの状態は以下のようになります。 + +- エンドユーザーのCashtray読み取りによって取引が成功した場合 + - レスポンス中の `attempt` と `transaction` にそれぞれ値が入ります +- 何らかの理由で取引が失敗した場合 + - レスポンス中の `attempt` にエラー内容が入り、 `transaction` には `NULL` が入ります +- まだCashtrayが読み取られていない場合 + - レスポンス中の `attempt` と `transaction` にそれぞれ `NULL` が入ります。Cashtrayの `expires_at` が現在時刻より前の場合は有効期限切れ状態です。 + +Cashtrayの取り得る全ての状態を擬似コードで記述すると以下のようになります。 +``` +if (attempt == null) { + // 状態は未確定 + if (canceled_at != null) { + // 無効化済み + } else if (expires_at < now) { + // 失効済み + } else { + // まだ有効で読み取られていない + } +} else if (transaction != null) { + // 取引成功確定。attempt で読み取ったユーザなどが分かる +} else { + // 取引失敗確定。attempt で失敗理由などが分かる +} +``` + +```csharp +Request.GetCashtray request = new Request.GetCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID +); +Response.CashtrayWithResult response = await request.Send(client); +``` + + + +### Parameters +**`cashtray_id`** + + +情報を取得するCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CashtrayWithResult](./responses.md#cashtray-with-result) +を返します + + +--- + + + +## CancelCashtray: Cashtrayを無効化する +Cashtrayを無効化します。 + +これにより、 `GetCashtray` のレスポンス中の `canceled_at` に無効化時点での現在時刻が入るようになります。 +エンドユーザーが無効化されたQRコードを読み取ると `cashtray_already_canceled` エラーとなり、取引は失敗します。 + +```csharp +Request.CancelCashtray request = new Request.CancelCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID +); +Response.Cashtray response = await request.Send(client); +``` + + + +### Parameters +**`cashtray_id`** + + +無効化するCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + +--- + + + +## UpdateCashtray: Cashtrayの情報を更新する +Cashtrayの内容を更新します。bodyパラメーターは全て省略可能で、指定したもののみ更新されます。 + +```csharp +Request.UpdateCashtray request = new Request.UpdateCashtray( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // CashtrayのID +) { + Amount = 3126.0, // 金額 + Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 + ExpiresIn = 5432, // 失効時間(秒) +}; +Response.Cashtray response = await request.Send(client); +``` + + + +### Parameters +**`cashtray_id`** + + +更新対象のCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +マネー額です(任意項目)。 +正の値を与えるとチャージになり、負の値を与えると支払いとなります。 + +```json +{ + "type": "number" +} +``` + +**`description`** + + +Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 +アプリや管理画面などの取引履歴に表示されます。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`expires_in`** + + +Cashtrayが失効するまでの時間を秒で指定します(任意項目、デフォルト値は1800秒(30分))。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + +--- + + + diff --git a/docs/check.md b/docs/check.md new file mode 100644 index 0000000..c9ea3e0 --- /dev/null +++ b/docs/check.md @@ -0,0 +1,683 @@ +# Check +店舗ユーザが発行し、エンドユーザーがポケペイアプリから読み取ることでチャージ取引が発生するQRコードです。 + +チャージQRコードを解析すると次のようなURLになります(URLは環境によって異なります)。 + +`https://www-sandbox.pokepay.jp/checks/xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` + +QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 + + + +## CreateCheck: チャージQRコードの発行 + +```csharp +Request.CreateCheck request = new Request.CreateCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 送金元の店舗アカウントID +) { + MoneyAmount = 5226.0, // 付与マネー額 + PointAmount = 465.0, // 付与ポイント額 + Description = "test check", // 説明文(アプリ上で取引の説明文として表示される) + IsOnetime = false, // ワンタイムかどうかのフラグ + UsageLimit = 8334, // ワンタイムでない場合の最大読み取り回数 + ExpiresAt = "2020-10-23T06:09:39.000000Z", // チャージQRコード自体の失効日時 + PointExpiresAt = "2023-06-27T19:49:26.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID +}; +Response.Check response = await request.Send(client); +``` + + +`money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 + + + +### Parameters +**`money_amount`** + + +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_amount`** + + +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`account_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`is_onetime`** + + +チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 + + +```json +{ + "type": "boolean" +} +``` + +**`usage_limit`** + + +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +デフォルト値はNULLです。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 + + +```json +{ + "type": "integer" +} +``` + +**`expires_at`** + + +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_at`** + + +チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 + +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`bear_point_account`** + + +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + +--- + + + +## ListChecks: チャージQRコード一覧の取得 + +```csharp +Request.ListChecks request = new Request.ListChecks() { + Page = 4590, // ページ番号 + PerPage = 50, // 1ページの表示数 + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + OrganizationCode = "4vZ", // 組織コード + ExpiresFrom = "2022-07-06T19:27:10.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresTo = "2023-12-18T20:25:22.000000Z", // 有効期限の期間によるフィルター(終了時点) + CreatedFrom = "2022-01-02T00:20:43.000000Z", // 作成日時の期間によるフィルター(開始時点) + CreatedTo = "2022-02-12T08:10:50.000000Z", // 作成日時の期間によるフィルター(終了時点) + IssuerShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID + Description = "HzNm8wd", // チャージQRコードの説明文 + IsOnetime = false, // ワンタイムのチャージQRコードかどうか + IsDisabled = true, // 無効化されたチャージQRコードかどうか +}; +Response.PaginatedChecks response = await request.Send(client); +``` + + + +### Parameters +**`page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ当たり表示数です。デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`private_money_id`** + + +チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`organization_code`** + + +チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 +デフォルトでは未指定です。 + +```json +{ + "type": "string", + "maxLength": 32 +} +``` + +**`expires_from`** + + +有効期限の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`expires_to`** + + +有効期限の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`created_from`** + + +作成日時の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`created_to`** + + +作成日時の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`issuer_shop_id`** + + +チャージQRコードを発行した店舗IDによってフィルターします。 +デフォルトでは未指定です。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + +チャージQRコードの説明文(description)によってフィルターします。 +部分一致(前方一致)したものを表示します。 +デフォルトでは未指定です。 + + +```json +{ + "type": "string" +} +``` + +**`is_onetime`** + + +チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 +`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_disabled`** + + +チャージQRコードが無効化されているかどうかでフィルターします。 +`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[PaginatedChecks](./responses.md#paginated-checks) +を返します + + +--- + + + +## GetCheck: チャージQRコードの表示 + +```csharp +Request.GetCheck request = new Request.GetCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // チャージQRコードのID +); +Response.Check response = await request.Send(client); +``` + + + +### Parameters +**`check_id`** + + +表示対象のチャージQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + +--- + + + +## UpdateCheck: チャージQRコードの更新 + +```csharp +Request.UpdateCheck request = new Request.UpdateCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // チャージQRコードのID +) { + MoneyAmount = 2931.0, // 付与マネー額 + PointAmount = 9794.0, // 付与ポイント額 + Description = "test check", // チャージQRコードの説明文 + IsOnetime = false, // ワンタイムかどうかのフラグ + UsageLimit = 783, // ワンタイムでない場合の最大読み取り回数 + ExpiresAt = "2021-04-18T03:44:15.000000Z", // チャージQRコード自体の失効日時 + PointExpiresAt = "2020-12-06T19:49:13.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + PointExpiresInDays = 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + BearPointAccount = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID + IsDisabled = true, // 無効化されているかどうかのフラグ +}; +Response.Check response = await request.Send(client); +``` + + + +### Parameters +**`check_id`** + + +更新対象のチャージQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`money_amount`** + + +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_amount`** + + +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 + + +```json +{ + "type": "number", + "format": "decimal", + "minimum": 0 +} +``` + +**`description`** + + +チャージQRコードの説明文です。 +チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`is_onetime`** + + +チャージQRコードが一度の読み取りで失効するときに`true`にします。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 + + +```json +{ + "type": "boolean" +} +``` + +**`usage_limit`** + + +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 + + +```json +{ + "type": "integer" +} +``` + +**`expires_at`** + + +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_at`** + + +チャージQRコードによって付与されるポイント残高の有効起源を指定します。 + +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`point_expires_in_days`** + + +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +`point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`bear_point_account`** + + +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_disabled`** + + +チャージQRコードを無効化するときに`true`にします。 +`false`の場合は無効化されているチャージQRコードを再有効化します。 + + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[Check](./responses.md#check) +を返します + + +--- + + + +## CreateTopupTransactionWithCheck: チャージQRコードを読み取ることでチャージする +通常チャージQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがチャージQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 + +エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。 + + +```csharp +Request.CreateTopupTransactionWithCheck request = new Request.CreateTopupTransactionWithCheck( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージ用QRコードのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // エンドユーザーのID +) { + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`check_id`** + + +チャージ用QRコードのIDです。 + +QRコード生成時に送金元店舗のウォレット情報や、送金額などが登録されています。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +送金先のエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + diff --git a/docs/coupon.md b/docs/coupon.md new file mode 100644 index 0000000..fdeefb9 --- /dev/null +++ b/docs/coupon.md @@ -0,0 +1,710 @@ +# Coupon +Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 +Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 + + + +## ListCoupons: クーポン一覧の取得 +指定したマネーのクーポン一覧を取得します + +```csharp +Request.ListCoupons request = new Request.ListCoupons( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 対象クーポンのマネーID +) { + CouponId = "bkQVRY8Muh", // クーポンID + CouponName = "wDy", // クーポン名 + IssuedShopName = "lFo5mD", // 発行店舗名 + AvailableShopName = "Jw8V3XaTOk", // 利用可能店舗名 + AvailableFrom = "2022-05-02T17:52:06.000000Z", // 利用可能期間 (開始日時) + AvailableTo = "2023-06-21T19:23:15.000000Z", // 利用可能期間 (終了日時) + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取得数 +}; +Response.PaginatedCoupons response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +対象クーポンのマネーIDです(必須項目)。 +存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`coupon_id`** + + +指定されたクーポンIDで結果をフィルターします。 +部分一致(前方一致)します。 + + +```json +{ + "type": "string" +} +``` + +**`coupon_name`** + + +指定されたクーポン名で結果をフィルターします。 + + +```json +{ + "type": "string" +} +``` + +**`issued_shop_name`** + + +指定された発行店舗で結果をフィルターします。 + + +```json +{ + "type": "string" +} +``` + +**`available_shop_name`** + + +指定された利用可能店舗で結果をフィルターします。 + + +```json +{ + "type": "string" +} +``` + +**`available_from`** + + +利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`available_to`** + + +利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedCoupons](./responses.md#paginated-coupons) +を返します + + +--- + + + +## CreateCoupon: クーポンの登録 +新しいクーポンを登録します + +```csharp +Request.CreateCoupon request = new Request.CreateCoupon( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "DFDXkJRYuzmNrD0IPFMYcPpoEq", + "2023-02-03T19:51:10.000000Z", + "2021-11-27T11:49:55.000000Z", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 発行元の店舗ID +) { + Description = "qYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxd", + DiscountAmount = 8182, + DiscountPercentage = 1010.0, + DiscountUpperLimit = 4673, + DisplayStartsAt = "2022-12-25T05:08:47.000000Z", // クーポンの掲載期間(開始日時) + DisplayEndsAt = "2021-10-02T17:22:12.000000Z", // クーポンの掲載期間(終了日時) + IsDisabled = false, // 無効化フラグ + IsHidden = true, // クーポン一覧に掲載されるかどうか + IsPublic = true, // アプリ配信なしで受け取れるかどうか + Code = "n", // クーポン受け取りコード + UsageLimit = 1090, // ユーザごとの利用可能回数(NULLの場合は無制限) + MinAmount = 3250, // クーポン適用可能な最小取引額 + IsShopSpecified = true, // 特定店舗限定のクーポンかどうか + AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト + StorageId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID +}; +Response.CouponDetail response = await request.Send(client); +``` + +`is_shop_specified`と`available_shop_ids`は同時に指定する必要があります。 + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 128 +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`discount_amount`** + + + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`discount_percentage`** + + + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +**`discount_upper_limit`** + + + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`starts_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`ends_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`display_starts_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`display_ends_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`is_disabled`** + + + +```json +{ + "type": "boolean" +} +``` + +**`is_hidden`** + + +アプリに表示されるクーポン一覧に掲載されるかどうか。 +主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_public`** + + + +```json +{ + "type": "boolean" +} +``` + +**`code`** + + + +```json +{ + "type": "string" +} +``` + +**`usage_limit`** + + + +```json +{ + "type": "integer" +} +``` + +**`min_amount`** + + + +```json +{ + "type": "integer" +} +``` + +**`issued_shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_shop_specified`** + + + +```json +{ + "type": "boolean" +} +``` + +**`available_shop_ids`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`storage_id`** + + +Storage APIでアップロードしたクーポン画像のStorage IDを指定します + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + +--- + + + +## GetCoupon: クーポンの取得 +指定したIDを持つクーポンを取得します + +```csharp +Request.GetCoupon request = new Request.GetCoupon( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // クーポンID +); +Response.CouponDetail response = await request.Send(client); +``` + + + +### Parameters +**`coupon_id`** + + +取得するクーポンのIDです。 +UUIDv4フォーマットである必要があり、フォーマットが異なる場合は InvalidParametersエラー(400)が返ります。 +指定したIDのクーポンが存在しない場合はCouponNotFoundエラー(422)が返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + +--- + + + +## UpdateCoupon: クーポンの更新 +指定したクーポンを更新します + +```csharp +Request.UpdateCoupon request = new Request.UpdateCoupon( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // クーポンID +) { + Name = "JrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0u", + Description = "guDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P", + DiscountAmount = 1159, + DiscountPercentage = 1312.0, + DiscountUpperLimit = 1476, + StartsAt = "2023-04-10T09:31:34.000000Z", + EndsAt = "2023-02-12T20:04:21.000000Z", + DisplayStartsAt = "2024-01-04T08:26:32.000000Z", // クーポンの掲載期間(開始日時) + DisplayEndsAt = "2023-07-30T04:28:05.000000Z", // クーポンの掲載期間(終了日時) + IsDisabled = true, // 無効化フラグ + IsHidden = true, // クーポン一覧に掲載されるかどうか + IsPublic = false, // アプリ配信なしで受け取れるかどうか + Code = "j", // クーポン受け取りコード + UsageLimit = 9892, // ユーザごとの利用可能回数(NULLの場合は無制限) + MinAmount = 8114, // クーポン適用可能な最小取引額 + IsShopSpecified = true, // 特定店舗限定のクーポンかどうか + AvailableShopIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 利用可能店舗リスト + StorageId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID +}; +Response.CouponDetail response = await request.Send(client); +``` + + +`discount_amount`と`discount_percentage`の少なくとも一方は指定する必要があります。 + + + +### Parameters +**`coupon_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 128 +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`discount_amount`** + + + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`discount_percentage`** + + + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +**`discount_upper_limit`** + + + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`starts_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`ends_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`display_starts_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`display_ends_at`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`is_disabled`** + + + +```json +{ + "type": "boolean" +} +``` + +**`is_hidden`** + + +アプリに表示されるクーポン一覧に掲載されるかどうか。 +主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_public`** + + + +```json +{ + "type": "boolean" +} +``` + +**`code`** + + + +```json +{ + "type": "string" +} +``` + +**`usage_limit`** + + + +```json +{ + "type": "integer" +} +``` + +**`min_amount`** + + + +```json +{ + "type": "integer" +} +``` + +**`is_shop_specified`** + + + +```json +{ + "type": "boolean" +} +``` + +**`available_shop_ids`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`storage_id`** + + +Storage APIでアップロードしたクーポン画像のStorage IDを指定します + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[CouponDetail](./responses.md#coupon-detail) +を返します + + +--- + + + diff --git a/docs/customer.md b/docs/customer.md new file mode 100644 index 0000000..a5d3538 --- /dev/null +++ b/docs/customer.md @@ -0,0 +1,1020 @@ +# Customer + + +## GetAccount: ウォレット情報を表示する +ウォレットを取得します。 + +```csharp +Request.GetAccount request = new Request.GetAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +); +Response.AccountDetail response = await request.Send(client); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +フィルターとして使われ、指定したウォレットIDのウォレットを取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + +--- + + + +## UpdateAccount: ウォレット情報を更新する +ウォレットの状態を更新します。 +以下の項目が変更できます。 + +- ウォレットの凍結/凍結解除の切り替え(エンドユーザー、店舗ユーザー共通) +- 店舗でチャージ可能かどうか(店舗ユーザのみ) + +エンドユーザーのウォレット情報更新には UpdateCustomerAccount が使用できます。 + +```csharp +Request.UpdateAccount request = new Request.UpdateAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +) { + IsSuspended = true, // ウォレットが凍結されているかどうか + Status = "active", // ウォレット状態 + CanTransferTopup = true, // チャージ可能かどうか +}; +Response.AccountDetail response = await request.Send(client); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットの状態を更新します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_suspended`** + + +ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。 + +```json +{ + "type": "boolean" +} +``` + +**`status`** + + +ウォレットの状態です。 + +```json +{ + "type": "string", + "enum": [ + "active", + "suspended", + "pre-closed" + ] +} +``` + +**`can_transfer_topup`** + + +店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[AccountDetail](./responses.md#account-detail) +を返します + + +--- + + + +## DeleteAccount: ウォレットを退会する +ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 + +```csharp +Request.DeleteAccount request = new Request.DeleteAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +) { + Cashback = false, // 返金有無 +}; +Response.AccountDeleted response = await request.Send(client); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットを退会します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`cashback`** + + +退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[AccountDeleted](./responses.md#account-deleted) +を返します + + +--- + + + +## ListAccountBalances: エンドユーザーの残高内訳を表示する +エンドユーザーのウォレット毎の残高を有効期限別のリストとして取得します。 + +```csharp +Request.ListAccountBalances request = new Request.ListAccountBalances( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +) { + Page = 4864, // ページ番号 + PerPage = 2363, // 1ページ分の取引数 + ExpiresAtFrom = "2022-10-29T13:58:49.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresAtTo = "2022-12-20T05:38:25.000000Z", // 有効期限の期間によるフィルター(終了時点) + Direction = "desc", // 有効期限によるソート順序 +}; +Response.PaginatedAccountBalance response = await request.Send(client); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分のウォレット残高数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`expires_at_from`** + + +有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`expires_at_to`** + + +有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`direction`** + + +有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。 + +```json +{ + "type": "string", + "enum": [ + "asc", + "desc" + ] +} +``` + + + +成功したときは +[PaginatedAccountBalance](./responses.md#paginated-account-balance) +を返します + + +--- + + + +## ListAccountExpiredBalances: エンドユーザーの失効済みの残高内訳を表示する +エンドユーザーのウォレット毎の失効済みの残高を有効期限別のリストとして取得します。 + +```csharp +Request.ListAccountExpiredBalances request = new Request.ListAccountExpiredBalances( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +) { + Page = 9610, // ページ番号 + PerPage = 2603, // 1ページ分の取引数 + ExpiresAtFrom = "2020-05-11T07:12:37.000000Z", // 有効期限の期間によるフィルター(開始時点) + ExpiresAtTo = "2022-01-18T11:04:15.000000Z", // 有効期限の期間によるフィルター(終了時点) + Direction = "asc", // 有効期限によるソート順序 +}; +Response.PaginatedAccountBalance response = await request.Send(client); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分のウォレット残高数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`expires_at_from`** + + +有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`expires_at_to`** + + +有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`direction`** + + +有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。 + +```json +{ + "type": "string", + "enum": [ + "asc", + "desc" + ] +} +``` + + + +成功したときは +[PaginatedAccountBalance](./responses.md#paginated-account-balance) +を返します + + +--- + + + +## UpdateCustomerAccount: エンドユーザーのウォレット情報を更新する +エンドユーザーのウォレットの状態を更新します。 + +```csharp +Request.UpdateCustomerAccount request = new Request.UpdateCustomerAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +) { + Status = "pre-closed", // ウォレット状態 + AccountName = "kLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbee", // アカウント名 + ExternalId = "KUX", // 外部ID + Metadata = "{\"key1\":\"foo\",\"key2\":\"bar\"}", // ウォレットに付加するメタデータ +}; +Response.AccountWithUser response = await request.Send(client); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットの状態を更新します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`status`** + + +ウォレットの状態です。 + +```json +{ + "type": "string", + "enum": [ + "active", + "suspended", + "pre-closed" + ] +} +``` + +**`account_name`** + + +変更するウォレット名です。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`external_id`** + + +変更する外部IDです。 + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + +**`metadata`** + + +ウォレットに付加するメタデータをJSON文字列で指定します。 +指定できるJSON文字列には以下のような制約があります。 +- フラットな構造のJSONを文字列化したものであること。 +- keyは最大32文字の文字列(同じkeyを複数指定することはできません) +- valueには128文字以下の文字列が指定できます + +更新時に指定した内容でメタデータ全体が置き換えられることに注意してください。 +例えば、元々のメタデータが以下だったときに、 + +'{"key1":"foo","key2":"bar"}' + +更新APIで以下のように更新するとします。 + +'{"key1":"baz"}' + +このときkey1はfooからbazに更新され、key2に対するデータは消去されます。 + +```json +{ + "type": "string", + "format": "json" +} +``` + + + +成功したときは +[AccountWithUser](./responses.md#account-with-user) +を返します + + +--- + + + +## GetCustomerAccounts: エンドユーザーのウォレット一覧を表示する +マネーを指定してエンドユーザーのウォレット一覧を取得します。 + +```csharp +Request.GetCustomerAccounts request = new Request.GetCustomerAccounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + Page = 8901, // ページ番号 + PerPage = 9982, // 1ページ分のウォレット数 + CreatedAtFrom = "2022-05-12T14:01:20.000000Z", // ウォレット作成日によるフィルター(開始時点) + CreatedAtTo = "2021-08-01T07:54:25.000000Z", // ウォレット作成日によるフィルター(終了時点) + IsSuspended = true, // ウォレットが凍結状態かどうかでフィルターする + Status = "active", // ウォレット状態 + ExternalId = "vqgIch5W6XuTL0vlIdvd", // 外部ID + Tel = "072777-896", // エンドユーザーの電話番号 + Email = "BXoKUl0tR0@7369.com", // エンドユーザーのメールアドレス +}; +Response.PaginatedAccountWithUsers response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +一覧するウォレットのマネーを指定します。このパラメータは必須です。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分のウォレット数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`created_at_from`** + + +ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`created_at_to`** + + +ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`is_suspended`** + + +このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 + +```json +{ + "type": "boolean" +} +``` + +**`status`** + + +このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "enum": [ + "active", + "suspended", + "pre-closed" + ] +} +``` + +**`external_id`** + + +外部IDでのフィルタリングです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + +**`tel`** + + +エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`email`** + + +エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "email" +} +``` + + + +成功したときは +[PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) +を返します + + +--- + + + +## CreateCustomerAccount: 新規エンドユーザーをウォレットと共に追加する +指定したマネーのウォレットを作成し、同時にそのウォレットを保有するユーザも新規に作成します。 +このAPIにより作成されたユーザは認証情報を持たないため、モバイルSDKやポケペイ標準アプリからはログインすることはできません。 +Partner APIのみから操作可能な特殊なユーザになります。 +システム全体をPartner APIのみで構成する場合にのみ使用してください。 + +```csharp +Request.CreateCustomerAccount request = new Request.CreateCustomerAccount( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + UserName = "ポケペイ太郎", // ユーザー名 + AccountName = "ポケペイ太郎のアカウント", // アカウント名 + ExternalId = "BiPR32MXZafz3jf", // 外部ID +}; +Response.AccountWithUser response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +これによって作成するウォレットのマネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`user_name`** + + +ウォレットと共に作成するユーザ名です。省略した場合は空文字となります。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`account_name`** + + +作成するウォレット名です。省略した場合は空文字となります。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`external_id`** + + +PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "maxLength": 50 +} +``` + + + +成功したときは +[AccountWithUser](./responses.md#account-with-user) +を返します + + +--- + + + +## GetShopAccounts: 店舗ユーザーのウォレット一覧を表示する +マネーを指定して店舗ユーザーのウォレット一覧を取得します。 + +```csharp +Request.GetShopAccounts request = new Request.GetShopAccounts( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + Page = 5375, // ページ番号 + PerPage = 7186, // 1ページ分のウォレット数 + CreatedAtFrom = "2020-02-09T06:31:25.000000Z", // ウォレット作成日によるフィルター(開始時点) + CreatedAtTo = "2020-04-03T10:25:10.000000Z", // ウォレット作成日によるフィルター(終了時点) + IsSuspended = false, // ウォレットが凍結状態かどうかでフィルターする +}; +Response.PaginatedAccountWithUsers response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +一覧するウォレットのマネーを指定します。このパラメータは必須です。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。デフォルト値は1です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分のウォレット数です。デフォルト値は30です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`created_at_from`** + + +ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`created_at_to`** + + +ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`is_suspended`** + + +このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) +を返します + + +--- + + + +## ListCustomerTransactions: 取引履歴を取得する +取引一覧を返します。 + +```csharp +Request.ListCustomerTransactions request = new Request.ListCustomerTransactions( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + SenderCustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金エンドユーザーID + ReceiverCustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取エンドユーザーID + Type = "topup", // 取引種別 + IsModified = false, // キャンセル済みかどうか + From = "2021-06-10T14:16:07.000000Z", // 開始日時 + To = "2022-04-02T20:02:52.000000Z", // 終了日時 + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取引数 +}; +Response.PaginatedTransaction response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 +フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`sender_customer_id`** + + +送金ユーザーIDです。 + +フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_customer_id`** + + +受取ユーザーIDです。 + +フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`type`** + + +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) +2. payment + エンドユーザーから店舗への送金取引(支払い) +3. exchange + 他マネーへの流出(outflow)/他マネーからの流入(inflow) +4. transfer + 個人間送金 +5. cashback + ウォレット退会時返金 +6. expire + ウォレット退会時失効 + +```json +{ + "type": "string", + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "cashback", + "expire" + ] +} +``` + +**`is_modified`** + + +キャンセル済みかどうかを判定するフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +falseを指定するとキャンセルされていない取引のみ一覧に表示されます +何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedTransaction](./responses.md#paginated-transaction) +を返します + + +--- + + + diff --git a/docs/error-response.csv b/docs/error-response.csv index 63c2c89..6cb1bc5 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -387,6 +387,7 @@ GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限があ ,,422,private_money_not_found,,Private money not found 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 @@ -395,6 +396,7 @@ POST,/checks,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_ ,,422,account_private_money_is_not_issued_by_organization,,The account's private money is not issued by this organization ,,422,shop_account_not_found,,The shop account is not found ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,bear_point_account_not_found,"ポイントを負担する店舗アカウントが見つかりません",Bear point account not found. 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 @@ -750,7 +752,8 @@ GET,/user-devices/:uuid/banks,403,unpermitted_admin_user,"この管理ユーザ ,,403,forbidden,,Forbidden ,,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,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +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 @@ -789,6 +792,5 @@ POST,/user-devices/:uuid/banks/topup,403,unpermitted_admin_user,"この管理ユ ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available -,,503,paytree_request_failure,"銀行口座の残高不足または、銀行の外部サービス起因により、チャージに失敗しました",Failure to topup due to external services of the bank ,,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." diff --git a/docs/event.md b/docs/event.md new file mode 100644 index 0000000..9e9141e --- /dev/null +++ b/docs/event.md @@ -0,0 +1,211 @@ +# Event + + +## CreateExternalTransaction: ポケペイ外部取引を作成する +ポケペイ外部取引を作成します。 + +ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 + + +```csharp +Request.CreateExternalTransaction request = new Request.CreateExternalTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + 9453 // 取引額 +) { + Description = "たい焼き(小倉)", // 取引説明文 + Metadata = "{\"key\":\"value\"}", // ポケペイ外部取引メタデータ + Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID +}; +Response.ExternalTransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`shop_id`** + + +店舗IDです。 + +ポケペイ外部取引が行なう店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +エンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +取引金額です。 + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`description`** + + +取引説明文です。 + +任意入力で、取引履歴に表示される説明文です。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`metadata`** + + +ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`products`** + + +一つの取引に含まれる商品情報データです。 +以下の内容からなるJSONオブジェクトの配列で指定します。 + +- `jan_code`: JANコード。64字以下の文字列 +- `name`: 商品名。256字以下の文字列 +- `unit_price`: 商品単価。0以上の数値 +- `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean +- `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[ExternalTransactionDetail](./responses.md#external-transaction-detail) +を返します + + +--- + + + +## RefundExternalTransaction: ポケペイ外部取引をキャンセルする +取引IDを指定して取引をキャンセルします。 + +発行体の管理者は自組織の直営店、または発行しているマネーの決済加盟店組織での取引をキャンセルできます。 +キャンセル対象のポケペイ外部取引に付随するポイント還元キャンペーンも取り消されます。 + +取引をキャンセルできるのは1回きりです。既にキャンセルされた取引を重ねてキャンセルしようとすると `transaction_already_refunded (422)` エラーが返ります。 + +```csharp +Request.RefundExternalTransaction request = new Request.RefundExternalTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 取引ID +) { + Description = "返品対応のため", // 取引履歴に表示する返金事由 +}; +Response.ExternalTransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`event_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[ExternalTransactionDetail](./responses.md#external-transaction-detail) +を返します + + +--- + + + diff --git a/docs/organization.md b/docs/organization.md new file mode 100644 index 0000000..6412fd9 --- /dev/null +++ b/docs/organization.md @@ -0,0 +1,277 @@ +# Organization + + +## ListOrganizations: 加盟店組織の一覧を取得する + +```csharp +Request.ListOrganizations request = new Request.ListOrganizations( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取引数 + Name = "GERnFdcW", // 組織名 + Code = "SdaJfJ60D", // 組織コード +}; +Response.PaginatedOrganizations response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 +このマネーに加盟している加盟組織がフィルターされます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`name`** + + + +```json +{ + "type": "string" +} +``` + +**`code`** + + + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[PaginatedOrganizations](./responses.md#paginated-organizations) +を返します + + +--- + + + +## CreateOrganization: 新規加盟店組織を追加する + +```csharp +Request.CreateOrganization request = new Request.CreateOrganization( + "ox-supermarket", // 新規組織コード + "oxスーパー", // 新規組織名 + new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 加盟店組織で有効にするマネーIDの配列 + "H2T0aKhnL3@FlnA.com", // 発行体担当者メールアドレス + "D82QrpYaKu@slNr.com" // 新規組織担当者メールアドレス +) { + BankName = "XYZ銀行", // 銀行名 + BankCode = "1234", // 銀行金融機関コード + BankBranchName = "ABC支店", // 銀行支店名 + BankBranchCode = "123", // 銀行支店コード + BankAccountType = "current", // 銀行口座種別 (普通=saving, 当座=current, その他=other) + BankAccount = "1234567", // 銀行口座番号 + BankAccountHolderName = "フクザワユキチ", // 口座名義人名 + ContactName = "佐藤清", // 担当者名 +}; +Response.Organization response = await request.Send(client); +``` + + + +### Parameters +**`code`** + + + +```json +{ + "type": "string", + "maxLength": 32 +} +``` + +**`name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`private_money_ids`** + + + +```json +{ + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`issuer_admin_user_email`** + + + +```json +{ + "type": "string", + "format": "email" +} +``` + +**`member_admin_user_email`** + + + +```json +{ + "type": "string", + "format": "email" +} +``` + +**`bank_name`** + + + +```json +{ + "type": "string", + "maxLength": 64 +} +``` + +**`bank_code`** + + + +```json +{ + "type": "string", + "pattern": "^$|^[0-9]{4}$" +} +``` + +**`bank_branch_name`** + + + +```json +{ + "type": "string", + "maxLength": 64 +} +``` + +**`bank_branch_code`** + + + +```json +{ + "type": "string", + "pattern": "^(|[0-9]{3})$" +} +``` + +**`bank_account_type`** + + + +```json +{ + "type": "string", + "enum": [ + "saving", + "current", + "other" + ] +} +``` + +**`bank_account`** + + + +```json +{ + "type": "string", + "maxLength": 7, + "pattern": "[0-9]{0,7}" +} +``` + +**`bank_account_holder_name`** + + + +```json +{ + "type": "string", + "maxLength": 30, + "pattern": "^[0-9A-Zヲア-゚ (-),-/\\\\「-」]$" +} +``` + +**`contact_name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + + + +成功したときは +[Organization](./responses.md#organization) +を返します + + +--- + + + diff --git a/docs/private_money.md b/docs/private_money.md new file mode 100644 index 0000000..0b9993b --- /dev/null +++ b/docs/private_money.md @@ -0,0 +1,209 @@ +# Private Money + + +## GetPrivateMoneys: マネー一覧を取得する +マネーの一覧を取得します。 +パートナーキーの管理者が発行体組織に属している場合、自組織が加盟または発行しているマネーの一覧を返します。また、`organization_code`として決済加盟店の組織コードを指定した場合、発行マネーのうち、その決済加盟店組織が加盟しているマネーの一覧を返します。 +パートナーキーの管理者が決済加盟店組織に属している場合は、自組織が加盟しているマネーの一覧を返します。 + +```csharp +Request.GetPrivateMoneys request = new Request.GetPrivateMoneys() { + OrganizationCode = "ox-supermarket", // 組織コード + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取得数 +}; +Response.PaginatedPrivateMoneys response = await request.Send(client); +``` + + + +### Parameters +**`organization_code`** + + +パートナーキーの管理者が発行体組織に属している場合、発行マネーのうち、この組織コードで指定した決済加盟店組織が加盟しているマネーの一覧を返します。決済加盟店組織の管理者は自組織以外を指定することはできません。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedPrivateMoneys](./responses.md#paginated-private-moneys) +を返します + + +--- + + + +## GetPrivateMoneyOrganizationSummaries: 決済加盟店の取引サマリを取得する + +```csharp +Request.GetPrivateMoneyOrganizationSummaries request = new Request.GetPrivateMoneyOrganizationSummaries( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + From = "2020-03-27T12:54:11.000000Z", // 開始日時(toと同時に指定する必要有) + To = "2020-05-10T02:22:04.000000Z", // 終了日時(fromと同時に指定する必要有) + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取引数 +}; +Response.PaginatedPrivateMoneyOrganizationSummaries response = await request.Send(client); +``` + +`from`と`to`は同時に指定する必要があります。 + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`from`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedPrivateMoneyOrganizationSummaries](./responses.md#paginated-private-money-organization-summaries) +を返します + + +--- + + + +## GetPrivateMoneySummary: 取引サマリを取得する + +```csharp +Request.GetPrivateMoneySummary request = new Request.GetPrivateMoneySummary( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + From = "2020-04-17T04:38:29.000000Z", // 開始日時 + To = "2022-03-25T04:16:14.000000Z", // 終了日時 +}; +Response.PrivateMoneySummary response = await request.Send(client); +``` + + + +### Parameters +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`from`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + + + +成功したときは +[PrivateMoneySummary](./responses.md#private-money-summary) +を返します + + +--- + + + diff --git a/docs/responses.md b/docs/responses.md new file mode 100644 index 0000000..0191f14 --- /dev/null +++ b/docs/responses.md @@ -0,0 +1,728 @@ +# 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)`: +* `Name (string)`: +* `IsSuspended (bool)`: +* `Status (string)`: +* `PrivateMoney (PrivateMoney)`: +* `User (User)`: + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + +`user`は [User](#user) オブジェクトを返します。 + + +## AccountDetail +* `Id (string)`: +* `Name (string)`: +* `IsSuspended (bool)`: +* `Status (string)`: +* `Balance (double)`: +* `MoneyBalance (double)`: +* `PointBalance (double)`: +* `PointDebt (double)`: +* `PrivateMoney (PrivateMoney)`: +* `User (User)`: +* `ExternalId (string)`: + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + +`user`は [User](#user) オブジェクトを返します。 + + +## AccountDeleted + + +## Bill +* `Id (string)`: 支払いQRコードのID +* `Amount (double)`: 支払い額 +* `MaxAmount (double)`: 支払い額を範囲指定した場合の上限 +* `MinAmount (double)`: 支払い額を範囲指定した場合の下限 +* `Description (string)`: 支払いQRコードの説明文(アプリ上で取引の説明文として表示される) +* `Account (AccountWithUser)`: 支払いQRコード発行ウォレット +* `IsDisabled (bool)`: 無効化されているかどうか +* `Token (string)`: 支払いQRコードを解析したときに出てくるURL + +`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 + + +## Check +* `Id (string)`: チャージQRコードのID +* `CreatedAt (string)`: チャージQRコードの作成日時 +* `Amount (double)`: チャージマネー額 (deprecated) +* `MoneyAmount (double)`: チャージマネー額 +* `PointAmount (double)`: チャージポイント額 +* `Description (string)`: チャージQRコードの説明文(アプリ上で取引の説明文として表示される) +* `User (User)`: 送金元ユーザ情報 +* `IsOnetime (bool)`: 使用回数が一回限りかどうか +* `IsDisabled (bool)`: 無効化されているかどうか +* `ExpiresAt (string)`: チャージQRコード自体の失効日時 +* `LastUsedAt (string)`: +* `PrivateMoney (PrivateMoney)`: 対象マネー情報 +* `UsageLimit (int)`: 一回限りでない場合の最大読み取り回数 +* `UsageCount (double)`: 一回限りでない場合の現在までに読み取られた回数 +* `PointExpiresAt (string)`: ポイント有効期限(絶対日数指定) +* `PointExpiresInDays (int)`: ポイント有効期限(相対日数指定) +* `Token (string)`: チャージQRコードを解析したときに出てくるURL + +`user`は [User](#user) オブジェクトを返します。 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## PaginatedChecks +* `Rows (Check[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [Check](#check) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## CpmToken +* `CpmToken (string)`: +* `Account (AccountDetail)`: +* `Transaction (Transaction)`: +* `Event (ExternalTransaction)`: +* `Scopes (string[])`: 許可された取引種別 +* `ExpiresAt (string)`: CPMトークンの失効日時 +* `Metadata (string)`: エンドユーザー側メタデータ + +`account`は [AccountDetail](#account-detail) オブジェクトを返します。 + +`transaction`は [Transaction](#transaction) オブジェクトを返します。 + +`event`は [ExternalTransaction](#external-transaction) オブジェクトを返します。 + + +## Cashtray +* `Id (string)`: Cashtray自体のIDです。 +* `Amount (double)`: 取引金額 +* `Description (string)`: Cashtrayの説明文 +* `Account (AccountWithUser)`: 発行店舗のウォレット +* `ExpiresAt (string)`: Cashtrayの失効日時 +* `CanceledAt (string)`: Cashtrayの無効化日時。NULLの場合は無効化されていません +* `Token (string)`: CashtrayのQRコードを解析したときに出てくるURL + +`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 + + +## CashtrayWithResult +* `Id (string)`: CashtrayのID +* `Amount (double)`: 取引金額 +* `Description (string)`: Cashtrayの説明文(アプリ上で取引の説明文として表示される) +* `Account (AccountWithUser)`: 発行店舗のウォレット +* `ExpiresAt (string)`: Cashtrayの失効日時 +* `CanceledAt (string)`: Cashtrayの無効化日時。NULLの場合は無効化されていません +* `Token (string)`: CashtrayのQRコードを解析したときに出てくるURL +* `Attempt (CashtrayAttempt)`: Cashtray読み取り結果 +* `Transaction (Transaction)`: 取引結果 + +`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 + +`attempt`は [CashtrayAttempt](#cashtray-attempt) オブジェクトを返します。 + +`transaction`は [Transaction](#transaction) オブジェクトを返します。 + + +## User +* `Id (string)`: ユーザー (または店舗) ID +* `Name (string)`: ユーザー (または店舗) 名 +* `IsMerchant (bool)`: 店舗ユーザーかどうか + + +## Organization +* `Code (string)`: 組織コード +* `Name (string)`: 組織名 + + +## TransactionDetail +* `Id (string)`: 取引ID +* `Type (string)`: 取引種別 +* `IsModified (bool)`: 返金された取引かどうか +* `Sender (User)`: 送金者情報 +* `SenderAccount (Account)`: 送金ウォレット情報 +* `Receiver (User)`: 受取者情報 +* `ReceiverAccount (Account)`: 受取ウォレット情報 +* `Amount (double)`: 取引総額 (マネー額 + ポイント額) +* `MoneyAmount (double)`: 取引マネー額 +* `PointAmount (double)`: 取引ポイント額(キャンペーン付与ポイント合算) +* `RawPointAmount (double)`: 取引ポイント額 +* `CampaignPointAmount (double)`: キャンペーンによるポイント付与額 +* `DoneAt (string)`: 取引日時 +* `Description (string)`: 取引説明文 +* `Transfers (Transfer[])`: + +`receiver`と`sender`は [User](#user) オブジェクトを返します。 + +`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 + +`transfers`は [Transfer](#transfer) オブジェクトの配列を返します。 + + +## ShopWithAccounts +* `Id (string)`: 店舗ID +* `Name (string)`: 店舗名 +* `OrganizationCode (string)`: 組織コード +* `Status (string)`: 店舗の状態 +* `PostalCode (string)`: 店舗の郵便番号 +* `Address (string)`: 店舗の住所 +* `Tel (string)`: 店舗の電話番号 +* `Email (string)`: 店舗のメールアドレス +* `ExternalId (string)`: 店舗の外部ID +* `Accounts (ShopAccount[])`: + +`accounts`は [ShopAccount](#shop-account) オブジェクトの配列を返します。 + + +## BulkTransaction +* `Id (string)`: +* `RequestId (string)`: リクエストID +* `Name (string)`: バルク取引管理用の名前 +* `Description (string)`: バルク取引管理用の説明文 +* `Status (string)`: バルク取引の状態 +* `Error (string)`: バルク取引のエラー種別 +* `ErrorLineno (int)`: バルク取引のエラーが発生した行番号 +* `SubmittedAt (string)`: バルク取引が登録された日時 +* `UpdatedAt (string)`: バルク取引が更新された日時 + + +## PaginatedBulkTransactionJob +* `Rows (BulkTransactionJob[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [BulkTransactionJob](#bulk-transaction-job) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## ExternalTransactionDetail +* `Id (string)`: ポケペイ外部取引ID +* `IsModified (bool)`: 返金された取引かどうか +* `Sender (User)`: 送金者情報 +* `SenderAccount (Account)`: 送金ウォレット情報 +* `Receiver (User)`: 受取者情報 +* `ReceiverAccount (Account)`: 受取ウォレット情報 +* `Amount (double)`: 決済額 +* `DoneAt (string)`: 取引日時 +* `Description (string)`: 取引説明文 +* `Transaction (TransactionDetail)`: 関連ポケペイ取引詳細 + +`receiver`と`sender`は [User](#user) オブジェクトを返します。 + +`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 + +`transaction`は [TransactionDetail](#transaction-detail) オブジェクトを返します。 + + +## PaginatedPrivateMoneyOrganizationSummaries +* `Rows (PrivateMoneyOrganizationSummary[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [PrivateMoneyOrganizationSummary](#private-money-organization-summary) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PrivateMoneySummary +* `TopupAmount (double)`: +* `RefundedTopupAmount (double)`: +* `PaymentAmount (double)`: +* `RefundedPaymentAmount (double)`: +* `AddedPointAmount (double)`: +* `TopupPointAmount (double)`: +* `CampaignPointAmount (double)`: +* `RefundedAddedPointAmount (double)`: +* `ExchangeInflowAmount (double)`: +* `ExchangeOutflowAmount (double)`: +* `TransactionCount (int)`: + + +## UserStatsOperation +* `Id (string)`: 集計処理ID +* `From (string)`: 集計期間の開始時刻 +* `To (string)`: 集計期間の終了時刻 +* `Status (string)`: 集計処理の実行ステータス +* `ErrorReason (string)`: エラーとなった理由 +* `DoneAt (string)`: 集計処理の完了時刻 +* `FileUrl (string)`: 集計結果のCSVのダウンロードURL +* `RequestedAt (string)`: 集計リクエストを行った時刻 + + +## UserDevice +* `Id (string)`: デバイスID +* `User (User)`: デバイスを使用するユーザ +* `IsActive (bool)`: デバイスが有効か +* `Metadata (string)`: デバイスのメタデータ + +`user`は [User](#user) オブジェクトを返します。 + + +## BankRegisteringInfo +* `RedirectUrl (string)`: +* `PaytreeCustomerNumber (string)`: + + +## Banks +* `Rows (Bank[])`: +* `Count (int)`: + +`rows`は [Bank](#bank) オブジェクトの配列を返します。 + + +## PaginatedTransaction +* `Rows (Transaction[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [Transaction](#transaction) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedTransactionV2 +* `Rows (Transaction[])`: +* `PerPage (int)`: +* `Count (int)`: +* `NextPageCursorId (string)`: +* `PrevPageCursorId (string)`: + +`rows`は [Transaction](#transaction) オブジェクトの配列を返します。 + + +## PaginatedTransfers +* `Rows (Transfer[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [Transfer](#transfer) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedTransfersV2 +* `Rows (Transfer[])`: +* `PerPage (int)`: +* `Count (int)`: +* `NextPageCursorId (string)`: +* `PrevPageCursorId (string)`: + +`rows`は [Transfer](#transfer) オブジェクトの配列を返します。 + + +## PaginatedAccountWithUsers +* `Rows (AccountWithUser[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [AccountWithUser](#account-with-user) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedAccountDetails +* `Rows (AccountDetail[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [AccountDetail](#account-detail) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedAccountBalance +* `Rows (AccountBalance[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [AccountBalance](#account-balance) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedShops +* `Rows (ShopWithMetadata[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [ShopWithMetadata](#shop-with-metadata) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedBills +* `Rows (Bill[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [Bill](#bill) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedPrivateMoneys +* `Rows (PrivateMoney[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [PrivateMoney](#private-money) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## Campaign +* `Id (string)`: キャンペーンID +* `Name (string)`: キャペーン名 +* `ApplicableShops (User[])`: キャンペーン適用対象の店舗リスト +* `IsExclusive (bool)`: キャンペーンの重複を許すかどうかのフラグ +* `StartsAt (string)`: キャンペーン開始日時 +* `EndsAt (string)`: キャンペーン終了日時 +* `PointExpiresAt (string)`: キャンペーンによって付与されるポイントの失効日時 +* `PointExpiresInDays (int)`: キャンペーンによって付与されるポイントの有効期限(相対指定、単位は日) +* `Priority (int)`: キャンペーンの優先順位 +* `Description (string)`: キャンペーン説明文 +* `BearPointShop (User)`: ポイントを負担する店舗 +* `PrivateMoney (PrivateMoney)`: キャンペーンを適用するマネー +* `DestPrivateMoney (PrivateMoney)`: ポイントを付与するマネー +* `MaxTotalPointAmount (int)`: 一人当たりの累計ポイント上限 +* `PointCalculationRule (string)`: ポイント計算ルール (banklisp表記) +* `PointCalculationRuleObject (string)`: ポイント計算ルール (JSON文字列による表記) +* `Status (string)`: キャンペーンの現在の状態 +* `BudgetCapsAmount (int)`: キャンペーンの予算上限額 +* `BudgetCurrentAmount (int)`: キャンペーンの付与合計額 +* `BudgetCurrentTime (string)`: キャンペーンの付与集計日時 + +`applicable-shops`は [User](#user) オブジェクトの配列を返します。 + +`bear_point_shop`は [User](#user) オブジェクトを返します。 + +`dest_private_money`と`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## PaginatedCampaigns +* `Rows (Campaign[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [Campaign](#campaign) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## AccountTransferSummary +* `Summaries (AccountTransferSummaryElement[])`: + +`summaries`は [AccountTransferSummaryElement](#account-transfer-summary-element) オブジェクトの配列を返します。 + + +## OrganizationWorkerTaskWebhook +* `Id (string)`: +* `OrganizationCode (string)`: +* `Task (string)`: +* `Url (string)`: +* `ContentType (string)`: +* `IsActive (bool)`: + + +## PaginatedOrganizationWorkerTaskWebhook +* `Rows (OrganizationWorkerTaskWebhook[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [OrganizationWorkerTaskWebhook](#organization-worker-task-webhook) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## CouponDetail +* `Id (string)`: クーポンID +* `Name (string)`: クーポン名 +* `IssuedShop (User)`: クーポン発行店舗 +* `Description (string)`: クーポンの説明文 +* `DiscountAmount (int)`: クーポンによる値引き額(絶対値指定) +* `DiscountPercentage (double)`: クーポンによる値引き率 +* `DiscountUpperLimit (int)`: クーポンによる値引き上限(値引き率が指定された場合の値引き上限額) +* `StartsAt (string)`: クーポンの利用可能期間(開始日時) +* `EndsAt (string)`: クーポンの利用可能期間(終了日時) +* `DisplayStartsAt (string)`: クーポンの掲載期間(開始日時) +* `DisplayEndsAt (string)`: クーポンの掲載期間(終了日時) +* `UsageLimit (int)`: ユーザごとの利用可能回数(NULLの場合は無制限) +* `MinAmount (int)`: クーポン適用可能な最小取引額 +* `IsShopSpecified (bool)`: 特定店舗限定のクーポンかどうか +* `IsHidden (bool)`: クーポン一覧に掲載されるかどうか +* `IsPublic (bool)`: アプリ配信なしで受け取れるかどうか +* `Code (string)`: クーポン受け取りコード +* `IsDisabled (bool)`: 無効化フラグ +* `Token (string)`: クーポンを特定するためのトークン +* `CouponImage (string)`: クーポン画像のURL +* `AvailableShops (User[])`: 利用可能店舗リスト +* `PrivateMoney (PrivateMoney)`: クーポンのマネー + +`issued_shop`は [User](#user) オブジェクトを返します。 + +`available-shops`は [User](#user) オブジェクトの配列を返します。 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## PaginatedCoupons +* `Rows (Coupon[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [Coupon](#coupon) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PaginatedOrganizations +* `Rows (Organization[])`: +* `Count (int)`: +* `Pagination (Pagination)`: + +`rows`は [Organization](#organization) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## PrivateMoney +* `Id (string)`: マネーID +* `Name (string)`: マネー名 +* `Unit (string)`: マネー単位 (例: 円) +* `IsExclusive (bool)`: 会員制のマネーかどうか +* `Description (string)`: マネー説明文 +* `OnelineMessage (string)`: マネーの要約 +* `Organization (Organization)`: マネーを発行した組織 +* `MaxBalance (double)`: ウォレットの上限金額 +* `TransferLimit (double)`: マネーの取引上限額 +* `MoneyTopupTransferLimit (double)`: マネーチャージ取引上限額 +* `Type (string)`: マネー種別 (自家型=own, 第三者型=third-party) +* `ExpirationType (string)`: 有効期限種別 (チャージ日起算=static, 最終利用日起算=last-update, 最終チャージ日起算=last-topup-update) +* `EnableTopupByMember (bool)`: (deprecated) +* `DisplayMoneyAndPoint (string)`: + +`organization`は [Organization](#organization) オブジェクトを返します。 + + +## Pagination +* `Current (int)`: +* `PerPage (int)`: +* `MaxPage (int)`: +* `HasPrev (bool)`: +* `HasNext (bool)`: + + +## Transaction +* `Id (string)`: 取引ID +* `Type (string)`: 取引種別 +* `IsModified (bool)`: 返金された取引かどうか +* `Sender (User)`: 送金者情報 +* `SenderAccount (Account)`: 送金ウォレット情報 +* `Receiver (User)`: 受取者情報 +* `ReceiverAccount (Account)`: 受取ウォレット情報 +* `Amount (double)`: 取引総額 (マネー額 + ポイント額) +* `MoneyAmount (double)`: 取引マネー額 +* `PointAmount (double)`: 取引ポイント額(キャンペーン付与ポイント合算) +* `RawPointAmount (double)`: 取引ポイント額 +* `CampaignPointAmount (double)`: キャンペーンによるポイント付与額 +* `DoneAt (string)`: 取引日時 +* `Description (string)`: 取引説明文 + +`receiver`と`sender`は [User](#user) オブジェクトを返します。 + +`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 + + +## ExternalTransaction +* `Id (string)`: ポケペイ外部取引ID +* `IsModified (bool)`: 返金された取引かどうか +* `Sender (User)`: 送金者情報 +* `SenderAccount (Account)`: 送金ウォレット情報 +* `Receiver (User)`: 受取者情報 +* `ReceiverAccount (Account)`: 受取ウォレット情報 +* `Amount (double)`: 決済額 +* `DoneAt (string)`: 取引日時 +* `Description (string)`: 取引説明文 + +`receiver`と`sender`は [User](#user) オブジェクトを返します。 + +`receiver_account`と`sender_account`は [Account](#account) オブジェクトを返します。 + + +## CashtrayAttempt +* `Account (AccountWithUser)`: エンドユーザーのウォレット +* `StatusCode (double)`: ステータスコード +* `ErrorType (string)`: エラー型 +* `ErrorMessage (string)`: エラーメッセージ +* `CreatedAt (string)`: Cashtray読み取り記録の作成日時 + +`account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 + + +## Account +* `Id (string)`: ウォレットID +* `Name (string)`: ウォレット名 +* `IsSuspended (bool)`: ウォレットが凍結されているかどうか +* `Status (string)`: +* `PrivateMoney (PrivateMoney)`: 設定マネー情報 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## Transfer +* `Id (string)`: +* `SenderAccount (AccountWithoutPrivateMoneyDetail)`: +* `ReceiverAccount (AccountWithoutPrivateMoneyDetail)`: +* `Amount (double)`: +* `MoneyAmount (double)`: +* `PointAmount (double)`: +* `DoneAt (string)`: +* `Type (string)`: +* `Description (string)`: +* `TransactionId (string)`: + +`receiver_account`と`sender_account`は [AccountWithoutPrivateMoneyDetail](#account-without-private-money-detail) オブジェクトを返します。 + + +## ShopAccount +* `Id (string)`: ウォレットID +* `Name (string)`: ウォレット名 +* `IsSuspended (bool)`: ウォレットが凍結されているかどうか +* `CanTransferTopup (bool)`: チャージ可能かどうか +* `PrivateMoney (PrivateMoney)`: 設定マネー情報 + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## BulkTransactionJob +* `Id (int)`: +* `BulkTransaction (BulkTransaction)`: +* `Type (string)`: 取引種別 +* `SenderAccountId (string)`: +* `ReceiverAccountId (string)`: +* `MoneyAmount (double)`: +* `PointAmount (double)`: +* `Description (string)`: バルク取引ジョブ管理用の説明文 +* `BearPointAccountId (string)`: +* `PointExpiresAt (string)`: ポイント有効期限 +* `Status (string)`: バルク取引ジョブの状態 +* `Error (string)`: バルク取引のエラー種別 +* `Lineno (int)`: バルク取引のエラーが発生した行番号 +* `TransactionId (string)`: +* `CreatedAt (string)`: バルク取引ジョブが登録された日時 +* `UpdatedAt (string)`: バルク取引ジョブが更新された日時 + +`bulk_transaction`は [BulkTransaction](#bulk-transaction) オブジェクトを返します。 + + +## PrivateMoneyOrganizationSummary +* `OrganizationCode (string)`: +* `Topup (OrganizationSummary)`: +* `Payment (OrganizationSummary)`: + +`payment`と`topup`は [OrganizationSummary](#organization-summary) オブジェクトを返します。 + + +## Bank +* `Id (string)`: +* `PrivateMoney (PrivateMoney)`: +* `BankName (string)`: +* `BankCode (string)`: +* `BranchNumber (string)`: +* `BranchName (string)`: +* `DepositType (string)`: +* `MaskedAccountNumber (string)`: +* `AccountName (string)`: + +`private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 + + +## AccountBalance +* `ExpiresAt (string)`: +* `MoneyAmount (double)`: +* `PointAmount (double)`: + + +## ShopWithMetadata +* `Id (string)`: 店舗ID +* `Name (string)`: 店舗名 +* `OrganizationCode (string)`: 組織コード +* `Status (string)`: 店舗の状態 +* `PostalCode (string)`: 店舗の郵便番号 +* `Address (string)`: 店舗の住所 +* `Tel (string)`: 店舗の電話番号 +* `Email (string)`: 店舗のメールアドレス +* `ExternalId (string)`: 店舗の外部ID + + +## AccountTransferSummaryElement +* `TransferType (string)`: +* `MoneyAmount (double)`: +* `PointAmount (double)`: +* `Count (double)`: + + +## Coupon +* `Id (string)`: クーポンID +* `Name (string)`: クーポン名 +* `IssuedShop (User)`: クーポン発行店舗 +* `Description (string)`: クーポンの説明文 +* `DiscountAmount (int)`: クーポンによる値引き額(絶対値指定) +* `DiscountPercentage (double)`: クーポンによる値引き率 +* `DiscountUpperLimit (int)`: クーポンによる値引き上限(値引き率が指定された場合の値引き上限額) +* `StartsAt (string)`: クーポンの利用可能期間(開始日時) +* `EndsAt (string)`: クーポンの利用可能期間(終了日時) +* `DisplayStartsAt (string)`: クーポンの掲載期間(開始日時) +* `DisplayEndsAt (string)`: クーポンの掲載期間(終了日時) +* `UsageLimit (int)`: ユーザごとの利用可能回数(NULLの場合は無制限) +* `MinAmount (int)`: クーポン適用可能な最小取引額 +* `IsShopSpecified (bool)`: 特定店舗限定のクーポンかどうか +* `IsHidden (bool)`: クーポン一覧に掲載されるかどうか +* `IsPublic (bool)`: アプリ配信なしで受け取れるかどうか +* `Code (string)`: クーポン受け取りコード +* `IsDisabled (bool)`: 無効化フラグ +* `Token (string)`: クーポンを特定するためのトークン + +`issued_shop`は [User](#user) オブジェクトを返します。 + + +## AccountWithoutPrivateMoneyDetail +* `Id (string)`: +* `Name (string)`: +* `IsSuspended (bool)`: +* `Status (string)`: +* `PrivateMoneyId (string)`: +* `User (User)`: + +`user`は [User](#user) オブジェクトを返します。 + + +## OrganizationSummary +* `Count (int)`: +* `MoneyAmount (double)`: +* `MoneyCount (int)`: +* `PointAmount (double)`: +* `RawPointAmount (double)`: +* `CampaignPointAmount (double)`: +* `PointCount (int)`: diff --git a/docs/shop.md b/docs/shop.md new file mode 100644 index 0000000..6d69220 --- /dev/null +++ b/docs/shop.md @@ -0,0 +1,653 @@ +# Shop + + +## ListShops: 店舗一覧を取得する + +```csharp +Request.ListShops request = new Request.ListShops() { + OrganizationCode = "pocketchange", // 組織コード + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + Name = "oxスーパー三田店", // 店舗名 + PostalCode = "055-8439", // 店舗の郵便番号 + Address = "東京都港区芝...", // 店舗の住所 + Tel = "021-7099-1336", // 店舗の電話番号 + Email = "3bs4OkWhHF@x3P6.com", // 店舗のメールアドレス + ExternalId = "yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5c", // 店舗の外部ID + WithDisabled = true, // 無効な店舗を含める + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取引数 +}; +Response.PaginatedShops response = await request.Send(client); +``` + + + +### Parameters +**`organization_code`** + + +このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 + + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`private_money_id`** + + +このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + +このパラメータを渡すとその名前の店舗のみが返されます。 + + +```json +{ + "type": "string", + "minLength": 1, + "maxLength": 256 +} +``` + +**`postal_code`** + + +このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "pattern": "^[0-9]{3}-?[0-9]{4}$" +} +``` + +**`address`** + + +このパラメータを渡すとその住所が登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`tel`** + + +このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`email`** + + +このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "format": "email", + "maxLength": 256 +} +``` + +**`external_id`** + + +このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 + + +```json +{ + "type": "string", + "maxLength": 36 +} +``` + +**`with_disabled`** + + +このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 + + +```json +{ + "type": "boolean" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedShops](./responses.md#paginated-shops) +を返します + + +--- + + + +## CreateShop: 【廃止】新規店舗を追加する +新規店舗を追加します。このAPIは廃止予定です。以降は `CreateShopV2` を使用してください。 + +```csharp +Request.CreateShop request = new Request.CreateShop( + "oxスーパー三田店" // 店舗名 +) { + ShopPostalCode = "795-2270", // 店舗の郵便番号 + ShopAddress = "東京都港区芝...", // 店舗の住所 + ShopTel = "097-9077320", // 店舗の電話番号 + ShopEmail = "8bfxMId7hF@KERG.com", // 店舗のメールアドレス + ShopExternalId = "a7vbD1cIywVpXocQ5N98CAVKuK", // 店舗の外部ID + OrganizationCode = "ox-supermarket", // 組織コード +}; +Response.User response = await request.Send(client); +``` + + + +### Parameters +**`shop_name`** + + + +```json +{ + "type": "string", + "minLength": 1, + "maxLength": 256 +} +``` + +**`shop_postal_code`** + + + +```json +{ + "type": "string", + "pattern": "^[0-9]{3}-?[0-9]{4}$" +} +``` + +**`shop_address`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`shop_tel`** + + + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`shop_email`** + + + +```json +{ + "type": "string", + "format": "email", + "maxLength": 256 +} +``` + +**`shop_external_id`** + + + +```json +{ + "type": "string", + "maxLength": 36 +} +``` + +**`organization_code`** + + + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + + + +成功したときは +[User](./responses.md#user) +を返します + + +--- + + + +## CreateShopV2: 新規店舗を追加する + +```csharp +Request.CreateShopV2 request = new Request.CreateShopV2( + "oxスーパー三田店" // 店舗名 +) { + PostalCode = "2351924", // 店舗の郵便番号 + Address = "東京都港区芝...", // 店舗の住所 + Tel = "0245976-5965", // 店舗の電話番号 + Email = "I8CNBTqLCZ@99Aj.com", // 店舗のメールアドレス + ExternalId = "bK3l31NeAICSoLJdEVZoJB0", // 店舗の外部ID + OrganizationCode = "ox-supermarket", // 組織コード + PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列 + CanTopupPrivateMoneyIds = new string[]{}, // 店舗でチャージ可能にするマネーIDの配列 +}; +Response.ShopWithAccounts response = await request.Send(client); +``` + + + +### Parameters +**`name`** + + +店舗名です。 + +同一組織内に同名の店舗があった場合は`name_conflict`エラーが返ります。 + +```json +{ + "type": "string", + "minLength": 1, + "maxLength": 256 +} +``` + +**`postal_code`** + + + +```json +{ + "type": "string", + "pattern": "^[0-9]{3}-?[0-9]{4}$" +} +``` + +**`address`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`tel`** + + + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`email`** + + + +```json +{ + "type": "string", + "format": "email", + "maxLength": 256 +} +``` + +**`external_id`** + + + +```json +{ + "type": "string", + "maxLength": 36 +} +``` + +**`organization_code`** + + + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`private_money_ids`** + + +店舗で有効にするマネーIDの配列を指定します。 + +店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 +このパラメータを省略したときは、店舗が所属する組織が発行または加盟している全てのマネーのウォレットができます。 + +```json +{ + "type": "array", + "minItems": 1, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`can_topup_private_money_ids`** + + +店舗でチャージ可能にするマネーIDの配列を指定します。 + +このパラメータは発行体のみが指定でき、自身が発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 +省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 + +```json +{ + "type": "array", + "minItems": 0, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + + + +成功したときは +[ShopWithAccounts](./responses.md#shop-with-accounts) +を返します + + +--- + + + +## GetShop: 店舗情報を表示する +店舗情報を表示します。 + +権限に関わらず自組織の店舗情報は表示可能です。それに加え、発行体は自組織の発行しているマネーの加盟店組織の店舗情報を表示できます。 + +```csharp +Request.GetShop request = new Request.GetShop( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 店舗ユーザーID +); +Response.ShopWithAccounts response = await request.Send(client); +``` + + + +### Parameters +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[ShopWithAccounts](./responses.md#shop-with-accounts) +を返します + + +--- + + + +## UpdateShop: 店舗情報を更新する +店舗情報を更新します。bodyパラメーターは全て省略可能で、指定したもののみ更新されます。 + +```csharp +Request.UpdateShop request = new Request.UpdateShop( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 店舗ユーザーID +) { + Name = "oxスーパー三田店", // 店舗名 + PostalCode = "5495125", // 店舗の郵便番号 + Address = "東京都港区芝...", // 店舗の住所 + Tel = "079238-9452", // 店舗の電話番号 + Email = "zTj3A085y5@hWQ3.com", // 店舗のメールアドレス + ExternalId = "gdeDOWFExGORRYNLJdsZ6n3IGoF44i049", // 店舗の外部ID + PrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗で有効にするマネーIDの配列 + CanTopupPrivateMoneyIds = new string[]{"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}, // 店舗でチャージ可能にするマネーIDの配列 + Status = "active", // 店舗の状態 +}; +Response.ShopWithAccounts response = await request.Send(client); +``` + + + +### Parameters +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`name`** + + +店舗名です。 + +同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。 + +```json +{ + "type": "string", + "minLength": 1, + "maxLength": 256 +} +``` + +**`postal_code`** + + +店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 + +```json +{ + "type": "string", + "pattern": "^[0-9]{3}-?[0-9]{4}$" +} +``` + +**`address`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`tel`** + + +店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 + +```json +{ + "type": "string", + "pattern": "^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$" +} +``` + +**`email`** + + +店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。 + +```json +{ + "type": "string", + "format": "email", + "maxLength": 256 +} +``` + +**`external_id`** + + +店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。 + +```json +{ + "type": "string", + "maxLength": 36 +} +``` + +**`private_money_ids`** + + +店舗で有効にするマネーIDの配列を指定します。 + +店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 +店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。 + +```json +{ + "type": "array", + "minItems": 0, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`can_topup_private_money_ids`** + + +店舗でチャージ可能にするマネーIDの配列を指定します。 + +このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 +省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 + +```json +{ + "type": "array", + "minItems": 0, + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`status`** + + +店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。 + +```json +{ + "type": "string", + "enum": [ + "active", + "disabled" + ] +} +``` + + + +成功したときは +[ShopWithAccounts](./responses.md#shop-with-accounts) +を返します + + +--- + + + diff --git a/docs/transaction.md b/docs/transaction.md new file mode 100644 index 0000000..b1d1605 --- /dev/null +++ b/docs/transaction.md @@ -0,0 +1,1710 @@ +# Transaction + + +## GetCpmToken: CPMトークンの状態取得 +CPMトークンの現在の状態を取得します。CPMトークンの有効期限やCPM取引の状態を返します。 + +```csharp +Request.GetCpmToken request = new Request.GetCpmToken( + "zroFJfg0zCih9qHu842U5S" // CPMトークン +); +Response.CpmToken response = await request.Send(client); +``` + + + +### Parameters +**`cpm_token`** + + +CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。 + +```json +{ + "type": "string", + "minLength": 22, + "maxLength": 22 +} +``` + + + +成功したときは +[CpmToken](./responses.md#cpm-token) +を返します + + +--- + + + +## ListTransactions: 【廃止】取引履歴を取得する +取引一覧を返します。 + +```csharp +Request.ListTransactions request = new Request.ListTransactions() { + From = "2021-06-05T21:00:30.000000Z", // 開始日時 + To = "2020-10-02T07:49:29.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 = "NqipKVsII", // 取引ID + OrganizationCode = "pocketchange", // 組織コード + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + IsModified = false, // キャンセルフラグ + Types = new string[]{"topup", "payment"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + Description = "店頭QRコードによる支払い", // 取引説明文 +}; +Response.PaginatedTransaction response = await request.Send(client); +``` + + + +### Parameters +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`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" +} +``` + +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string" +} +``` + +**`organization_code`** + + +組織コードです。 + +フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 32, + "pattern": "^[a-zA-Z0-9-]*$" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_modified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`types`** + + +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) + +2. payment + エンドユーザーから店舗への送金取引(支払い) + +3. exchange-outflow + 他マネーへの流出 + +4. exchange-inflow + 他マネーからの流入 + +5. cashback + 退会時返金取引 + +6. expire + 退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange_outflow", + "exchange_inflow", + "cashback", + "expire" + ] + } +} +``` + +**`description`** + + +取引を指定の取引説明文でフィルターします。 + +取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[PaginatedTransaction](./responses.md#paginated-transaction) +を返します + + +--- + + + +## CreateTransaction: 【廃止】チャージする +チャージ取引を作成します。このAPIは廃止予定です。以降は `CreateTopupTransaction` を使用してください。 + +```csharp +Request.CreateTransaction request = new Request.CreateTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +) { + MoneyAmount = 362, + PointAmount = 3542, + PointExpiresAt = "2024-03-01T17:10:50.000000Z", // ポイント有効期限 + Description = "x3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVR", +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`money_amount`** + + + +```json +{ + "type": "integer", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_amount`** + + + +```json +{ + "type": "integer", + "format": "decimal", + "minimum": 0 +} +``` + +**`point_expires_at`** + + +ポイントをチャージした場合の、付与されるポイントの有効期限です。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## ListTransactionsV2: 取引履歴を取得する +取引一覧を返します。 + +```csharp +Request.ListTransactionsV2 request = new Request.ListTransactionsV2() { + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + OrganizationCode = "pocketchange", // 組織コード + ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + TerminalId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 端末ID + CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + CustomerName = "太郎", // エンドユーザー名 + Description = "店頭QRコードによる支払い", // 取引説明文 + TransactionId = "1P", // 取引ID + IsModified = true, // キャンセルフラグ + Types = new string[]{"topup", "payment"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + From = "2024-02-04T04:47:18.000000Z", // 開始日時 + To = "2020-03-06T03:10:42.000000Z", // 終了日時 + NextPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransactionのID + PrevPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransactionのID + PerPage = 50, // 1ページ分の取引数 +}; +Response.PaginatedTransactionV2 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" +} +``` + +**`terminal_id`** + + +端末IDです。 + +フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`description`** + + +取引を指定の取引説明文でフィルターします。 + +取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string" +} +``` + +**`is_modified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`types`** + + +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) + +2. payment + エンドユーザーから店舗への送金取引(支払い) + +3. exchange-outflow + 他マネーへの流出 + private_money_idが指定されたとき、そのマネーから見て流出方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +4. exchange-inflow + 他マネーからの流入 + private_money_idが指定されたとき、そのマネーから見て流入方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +5. cashback + 退会時返金取引 + +6. expire + 退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange_outflow", + "exchange_inflow", + "cashback", + "expire" + ] + } +} +``` + +**`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 +} +``` + + + +成功したときは +[PaginatedTransactionV2](./responses.md#paginated-transaction-v2) +を返します + + +--- + + + +## CreateTopupTransaction: チャージする +チャージ取引を作成します。 + +```csharp +Request.CreateTopupTransaction request = new Request.CreateTopupTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID +) { + BearPointShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント支払時の負担店舗ID + MoneyAmount = 4236, // マネー額 + PointAmount = 5322, // ポイント額 + PointExpiresAt = "2021-02-02T23:32:54.000000Z", // ポイント有効期限 + Description = "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 + Metadata = "{\"key\":\"value\"}", // 取引メタデータ + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`shop_id`** + + +店舗IDです。 + +送金元の店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +送金先のエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`bear_point_shop_id`** + + +ポイント支払時の負担店舗IDです。 + +ポイント支払い時に実際お金を負担する店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`money_amount`** + + +マネー額です。 + +送金するマネー額を指定します。 +デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`point_amount`** + + +ポイント額です。 + +送金するポイント額を指定します。 +デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`point_expires_at`** + + +ポイントをチャージした場合の、付与されるポイントの有効期限です。 +省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`description`** + + +取引説明文です。 + +任意入力で、取引履歴に表示される説明文です。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## CreatePaymentTransaction: 支払いする +支払取引を作成します。 +支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + + +```csharp +Request.CreatePaymentTransaction request = new Request.CreatePaymentTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + 8608 // 支払い額 +) { + Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 + Metadata = "{\"key\":\"value\"}", // 取引メタデータ + Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`shop_id`** + + +店舗IDです。 + +送金先の店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +送金元のエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +マネー額です。 + +送金するマネー額を指定します。 + +```json +{ + "type": "integer", + "minimum": 0 +} +``` + +**`description`** + + +取引説明文です。 + +任意入力で、取引履歴に表示される説明文です。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`products`** + + +一つの取引に含まれる商品情報データです。 +以下の内容からなるJSONオブジェクトの配列で指定します。 + +- `jan_code`: JANコード。64字以下の文字列 +- `name`: 商品名。256字以下の文字列 +- `unit_price`: 商品単価。0以上の数値 +- `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean +- `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## CreateCpmTransaction: CPMトークンによる取引作成 +CPMトークンにより取引を作成します。 +CPMトークンに設定されたスコープの取引を作ることができます。 + + +```csharp +Request.CreateCpmTransaction request = new Request.CreateCpmTransaction( + "5SjzUvS2Jlq6P89tC2Mi1P", // CPMトークン + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + 7208.0 // 取引金額 +) { + Description = "たい焼き(小倉)", // 取引説明文 + Metadata = "{\"key\":\"value\"}", // 店舗側メタデータ + Products = new object[]{new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}, new Dictionary(){{"jan_code","abc"}, {"name","name1"}, {"unit_price",100}, {"price",100}, {"is_discounted",false}, {"other","{}"}}}, // 商品情報データ + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`cpm_token`** + + +エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。 + +エンドユーザーによって許可された取引のスコープを持っています。 + +```json +{ + "type": "string", + "minLength": 22, + "maxLength": 22 +} +``` + +**`shop_id`** + + +店舗IDです。 + +支払いやチャージを行う店舗を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +取引金額を指定します。 + +正の値を与えるとチャージになり、負の値を与えると支払いとなります。 + +```json +{ + "type": "number" +} +``` + +**`description`** + + +取引説明文です。 + +エンドユーザーアプリの取引履歴などに表示されます。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`metadata`** + + +取引作成時に店舗側から指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`products`** + + +一つの取引に含まれる商品情報データです。 +以下の内容からなるJSONオブジェクトの配列で指定します。 + +- `jan_code`: JANコード。64字以下の文字列 +- `name`: 商品名。256字以下の文字列 +- `unit_price`: 商品単価。0以上の数値 +- `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean +- `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + +```json +{ + "type": "array", + "items": { + "type": "object" + } +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## CreateTransferTransaction: 個人間送金 +エンドユーザー間での送金取引(個人間送金)を作成します。 +個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。 + + +```csharp +Request.CreateTransferTransaction request = new Request.CreateTransferTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金元ユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取ユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + 686.0 // 送金額 +) { + Metadata = "{\"key\":\"value\"}", // 取引メタデータ + Description = "たい焼き(小倉)", // 取引履歴に表示する説明文 + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`sender_id`** + + +エンドユーザーIDです。 + +送金元のエンドユーザー(送り主)を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_id`** + + +エンドユーザーIDです。 + +送金先のエンドユーザー(受け取り人)を指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +マネーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + +マネー額です。 + +送金するマネー額を指定します。 + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`description`** + + +取引説明文です。 + +任意入力で、取引履歴に表示される説明文です。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## CreateExchangeTransaction + +```csharp +Request.CreateExchangeTransaction request = new Request.CreateExchangeTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + 5541 +) { + Description = "Re6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ9", + RequestId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`sender_private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`receiver_private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`amount`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## GetTransaction: 取引情報を取得する +取引を取得します。 + +```csharp +Request.GetTransaction request = new Request.GetTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 取引ID +); +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定した取引IDの取引を取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## RefundTransaction: 取引をキャンセルする +取引IDを指定して取引をキャンセルします。 + +発行体の管理者は自組織の直営店、または発行しているマネーの決済加盟店組織での取引をキャンセルできます。 +キャンセル対象の取引に付随するポイント還元キャンペーンやクーポン適用も取り消されます。 + +チャージ取引のキャンセル時に返金すべき残高が足りないときは `account_balance_not_enough (422)` エラーが返ります。 +取引をキャンセルできるのは1回きりです。既にキャンセルされた取引を重ねてキャンセルしようとすると `transaction_already_refunded (422)` エラーが返ります。 + +```csharp +Request.RefundTransaction request = new Request.RefundTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 取引ID +) { + Description = "返品対応のため", // 取引履歴に表示する返金事由 + ReturningPointExpiresAt = "2023-04-11T16:40:53.000000Z", // 返却ポイントの有効期限 +}; +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`transaction_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`description`** + + + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`returning_point_expires_at`** + + +ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## GetTransactionByRequestId: リクエストIDから取引情報を取得する +取引を取得します。 + +```csharp +Request.GetTransactionByRequestId request = new Request.GetTransactionByRequestId( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID +); +Response.TransactionDetail response = await request.Send(client); +``` + + + +### Parameters +**`request_id`** + + +取引作成時にクライアントが生成し指定するリクエストIDです。 + +リクエストIDに対応する取引が存在すればその取引を返し、無ければNotFound(404)を返します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + + +--- + + + +## GetBulkTransaction: バルク取引ジョブの実行状況を取得する + +```csharp +Request.GetBulkTransaction request = new Request.GetBulkTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // バルク取引ジョブID +); +Response.BulkTransaction response = await request.Send(client); +``` + + + +### Parameters +**`bulk_transaction_id`** + + +バルク取引ジョブIDです。 +バルク取引ジョブ登録時にレスポンスに含まれます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[BulkTransaction](./responses.md#bulk-transaction) +を返します + + +--- + + + +## ListBulkTransactionJobs: バルク取引ジョブの詳細情報一覧を取得する + +```csharp +Request.ListBulkTransactionJobs request = new Request.ListBulkTransactionJobs( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // バルク取引ジョブID +) { + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取得数 +}; +Response.PaginatedBulkTransactionJob response = await request.Send(client); +``` + + + +### Parameters +**`bulk_transaction_id`** + + +バルク取引ジョブIDです。 +バルク取引ジョブ登録時にレスポンスに含まれます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedBulkTransactionJob](./responses.md#paginated-bulk-transaction-job) +を返します + + +--- + + + +## RequestUserStats: 指定期間内の顧客が行った取引の統計情報をCSVでダウンロードする +期間を指定して、期間内に発行マネーの全顧客が行った取引の総額・回数などをCSVでダウンロードする機能です。 +CSVの作成は非同期で行われるため完了まで少しの間待つ必要がありますが、完了時にダウンロードできるURLをレスポンスとして返します。 +このURLの有効期限はリクエスト日時から7日間です。 + +ダウンロードできるCSVのデータは以下のものです。 + +* organization_code: 取引を行った組織コード +* private_money_id: 取引されたマネーのID +* private_money_name: 取引されたマネーの名前 +* user_id: 決済したユーザーID +* user_external_id: 決済したユーザーの外部ID +* payment_money_amount: 指定期間内に決済に使ったマネーの総額 +* payment_point_amount: 指定期間内に決済に使ったポイントの総額 +* payment_transaction_count: 指定期間内に決済した回数。キャンセルされた取引は含まない + +また、指定期間より前の決済を時間をおいてキャンセルした場合などには payment_money_amount, payment_point_amount, payment_transaction_count が負の値になることもあることに留意してください。 + +```csharp +Request.RequestUserStats request = new Request.RequestUserStats( + "2022-05-20T17:56:49.000000+09:00", // 集計期間の開始時刻 + "2023-12-10T01:16:11.000000+09:00" // 集計期間の終了時刻 +); +Response.UserStatsOperation response = await request.Send(client); +``` + + + +### Parameters +**`from`** + + +集計する期間の開始時刻をISO8601形式で指定します。 +時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +集計する期間の終了時刻をISO8601形式で指定します。 +時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + + + +成功したときは +[UserStatsOperation](./responses.md#user-stats-operation) +を返します + + +--- + + + diff --git a/docs/transfer.md b/docs/transfer.md new file mode 100644 index 0000000..499b1bf --- /dev/null +++ b/docs/transfer.md @@ -0,0 +1,677 @@ +# Transfer + + +## GetAccountTransferSummary: +ウォレットを指定して取引明細種別毎の集計を返す + +```csharp +Request.GetAccountTransferSummary request = new Request.GetAccountTransferSummary( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ウォレットID +) { + From = "2020-05-19T10:22:23.000000Z", // 集計期間の開始時刻 + To = "2022-09-30T14:05:52.000000Z", // 集計期間の終了時刻 + TransferTypes = new string[]{"topup", "payment"}, // 取引明細種別 (複数指定可) +}; +Response.AccountTransferSummary response = await request.Send(client); +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +ここで指定したウォレットIDの取引明細レベルでの集計を取得します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`from`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`transfer_types`** + + +取引明細の種別でフィルターします。 +以下の種別を指定できます。 + +- payment + エンドユーザーから店舗への送金取引(支払い取引) +- topup + 店舗からエンドユーザーへの送金取引(チャージ取引) +- campaign-topup + キャンペーンによるエンドユーザーへのポイント付与取引(ポイントチャージ) +- use-coupon + 支払い時のクーポン使用による値引き取引 +- refund-payment + 支払い取引に対するキャンセル取引 +- refund-topup + チャージ取引に対するキャンセル取引 +- refund-campaign + キャンペーンによるポイント付与取引に対するキャンセル取引 +- refund-coupon + クーポン使用による値引き取引に対するキャンセル取引 +- exchange-inflow + 交換による他マネーからの流入取引 +- exchange-outflow + 交換による他マネーへの流出取引 +- refund-exchange-inflow + 交換による他マネーからの流入取引に対するキャンセル取引 +- refund-exchange-outflow + 交換による他マネーへの流出取引に対するキャンセル取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "payment", + "topup", + "campaign-topup", + "use-coupon", + "refund-payment", + "refund-topup", + "refund-campaign", + "refund-coupon", + "exchange-inflow", + "exchange-outflow", + "refund-exchange-inflow", + "refund-exchange-outflow" + ] + } +} +``` + + + +成功したときは +[AccountTransferSummary](./responses.md#account-transfer-summary) +を返します + + +--- + + + +## ListTransfers + +```csharp +Request.ListTransfers request = new Request.ListTransfers() { + From = "2023-09-04T06:29:07.000000Z", + To = "2024-01-13T03:24:09.000000Z", + Page = 4884, + PerPage = 6195, + ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + ShopName = "C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7k", + CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + CustomerName = "VTYLZtj", + TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + IsModified = true, + TransactionTypes = new string[]{"payment", "topup", "cashback"}, + TransferTypes = new string[]{"coupon", "cashback", "campaign", "payment", "topup", "transfer", "expire", "exchange"}, // 取引明細の種類でフィルターします。 + Description = "店頭QRコードによる支払い", // 取引詳細説明文 +}; +Response.PaginatedTransfers response = await request.Send(client); +``` + + + +### Parameters +**`from`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`shop_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`shop_name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`customer_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`transaction_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_modified`** + + + +```json +{ + "type": "boolean" +} +``` + +**`transaction_types`** + + + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "transfer", + "exchange", + "cashback", + "expire" + ] + } +} +``` + +**`transfer_types`** + + +取引明細の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup +店舗からエンドユーザーへの送金取引(チャージ)、またはそのキャンセル取引 + +2. payment +エンドユーザーから店舗への送金取引(支払い)、またはそのキャンセル取引 + +3. exchange +他マネーへの流出/流入 + +4. campaign +取引に対するポイント還元キャンペーンによるポイント付与、またはそのキャンセル取引 + +5. coupon +クーポンによる値引き処理、またはそのキャンセル取引 + +6. cashback +退会時の返金取引 + +7. expire +退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "coupon", + "campaign", + "cashback", + "expire" + ] + } +} +``` + +**`description`** + + +取引詳細を指定の取引詳細説明文でフィルターします。 + +取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + + + +成功したときは +[PaginatedTransfers](./responses.md#paginated-transfers) +を返します + + +--- + + + +## ListTransfersV2 + +```csharp +Request.ListTransfersV2 request = new Request.ListTransfersV2() { + ShopId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + ShopName = "xB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaT", // 店舗名 + CustomerId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + CustomerName = "lLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EK", // エンドユーザー名 + TransactionId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID + PrivateMoneyId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + IsModified = false, // キャンセルフラグ + TransactionTypes = new string[]{"cashback"}, // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + NextPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransferのID + PrevPageCursorId = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransferのID + PerPage = 50, // 1ページ分の取引数 + TransferTypes = new string[]{"transfer", "exchange"}, // 取引明細種別 (複数指定可) + Description = "店頭QRコードによる支払い", // 取引詳細説明文 + From = "2020-07-02T11:27:30.000000Z", // 開始日時 + To = "2020-07-24T15:07:42.000000Z", // 終了日時 +}; +Response.PaginatedTransfersV2 response = await request.Send(client); +``` + + + +### Parameters +**`shop_id`** + + +店舗IDです。 + +フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`shop_name`** + + +店舗名です。 + +フィルターとして使われ、入力された名前に部分一致する店舗での取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_name`** + + +エンドユーザー名です。 + +フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "maxLength": 256 +} +``` + +**`transaction_id`** + + +取引IDです。 + +フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + +マネーIDです。 + +指定したマネーでの取引が一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_modified`** + + +キャンセルフラグです。 + +これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 +デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 + +```json +{ + "type": "boolean" +} +``` + +**`transaction_types`** + + +取引の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup + 店舗からエンドユーザーへの送金取引(チャージ) + +2. payment + エンドユーザーから店舗への送金取引(支払い) + +3. exchange-outflow + 他マネーへの流出 + private_money_idが指定されたとき、そのマネーから見て流出方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +4. exchange-inflow + 他マネーからの流入 + private_money_idが指定されたとき、そのマネーから見て流入方向の交換取引が抽出されます。 + private_money_idを省略した場合は表示されません。 + +5. cashback + 退会時返金取引 + +6. expire + 退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "transfer", + "exchange", + "cashback", + "expire" + ] + } +} +``` + +**`next_page_cursor_id`** + + +次ページへ遷移する際に起点となるtransferのID(前ページの末尾要素のID)です。 +本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 +UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 + +next_page_cursor_idのtransfer自体は次のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`prev_page_cursor_id`** + + +前ページへ遷移する際に起点となるtransferのID(次ページの先頭要素のID)です。 + +本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 +UUIDである場合は前のページが存在することを意味し、このprev_page_cursor_idをリクエストパラメータに含めることで前ページに遷移します。 + +prev_page_cursor_idのtransfer自体は前のページには含まれません。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`per_page`** + + +1ページ分の取引数です。 + +デフォルト値は50です。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 1000 +} +``` + +**`transfer_types`** + + +取引明細の種類でフィルターします。 + +以下の種類を指定できます。 + +1. topup +店舗からエンドユーザーへの送金取引(チャージ)、またはそのキャンセル取引 + +2. payment +エンドユーザーから店舗への送金取引(支払い)、またはそのキャンセル取引 + +3. exchange +他マネーへの流出/流入 + +4. campaign +取引に対するポイント還元キャンペーンによるポイント付与、またはそのキャンセル取引 + +5. coupon +クーポンによる値引き処理、またはそのキャンセル取引 + +6. cashback +退会時の返金取引 + +7. expire +退会時失効取引 + +```json +{ + "type": "array", + "items": { + "type": "string", + "enum": [ + "topup", + "payment", + "exchange", + "transfer", + "coupon", + "campaign", + "cashback", + "expire" + ] + } +} +``` + +**`description`** + + +取引詳細を指定の取引詳細説明文でフィルターします。 + +取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +**`from`** + + +抽出期間の開始日時です。 + +フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`to`** + + +抽出期間の終了日時です。 + +フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + + + +成功したときは +[PaginatedTransfersV2](./responses.md#paginated-transfers-v2) +を返します + + +--- + + + diff --git a/docs/user.md b/docs/user.md new file mode 100644 index 0000000..47d5c51 --- /dev/null +++ b/docs/user.md @@ -0,0 +1,24 @@ +# 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) +を返します + + +--- + + + diff --git a/docs/user_device.md b/docs/user_device.md new file mode 100644 index 0000000..813f1b0 --- /dev/null +++ b/docs/user_device.md @@ -0,0 +1,129 @@ +# UserDevice +UserDeviceはユーザー毎のデバイスを管理します。 +あるユーザーが使っている端末を区別する必要がある場合に用いられます。 +これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 + + + +## CreateUserDevice: ユーザーのデバイス登録 +ユーザーのデバイスを新規に登録します + +```csharp +Request.CreateUserDevice request = new Request.CreateUserDevice( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーID +) { + Metadata = "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}", // ユーザーデバイスのメタデータ +}; +Response.UserDevice response = await request.Send(client); +``` + + + +### Parameters +**`user_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`metadata`** + + +ユーザーのデバイス用の情報をメタデータを保持するために用います。 +例: 端末の固有情報やブラウザのUser-Agent + + +```json +{ + "type": "string", + "format": "json" +} +``` + + + +成功したときは +[UserDevice](./responses.md#user-device) +を返します + + +--- + + + +## GetUserDevice: ユーザーのデバイスを取得 +ユーザーのデバイスの情報を取得します + +```csharp +Request.GetUserDevice request = new Request.GetUserDevice( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID +); +Response.UserDevice response = await request.Send(client); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserDevice](./responses.md#user-device) +を返します + + +--- + + + +## ActivateUserDevice: デバイスの有効化 +指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 + + +```csharp +Request.ActivateUserDevice request = new Request.ActivateUserDevice( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ユーザーデバイスID +); +Response.UserDevice response = await request.Send(client); +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[UserDevice](./responses.md#user-device) +を返します + + +--- + + + diff --git a/docs/webhook.md b/docs/webhook.md new file mode 100644 index 0000000..1130f9b --- /dev/null +++ b/docs/webhook.md @@ -0,0 +1,221 @@ +# Webhook +Webhookは特定のワーカータスクでの処理が完了した事を通知します。 +WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。 +通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 + + + +## CreateWebhook: webhookの作成 +ワーカータスクの処理が終了したことを通知するためのWebhookを登録します +このAPIにより指定したタスクの終了時に、指定したURLにPOSTリクエストを送信します。 +このとき、リクエストボディは `{"task": <タスク名>}` という値になります。 + +```csharp +Request.CreateWebhook request = new Request.CreateWebhook( + "bulk_shops", // タスク名 + "Bgm1" // URL +); +Response.OrganizationWorkerTaskWebhook response = await request.Send(client); +``` + + + +### Parameters +**`task`** + + +ワーカータスク名を指定します + +```json +{ + "type": "string", + "enum": [ + "bulk_shops", + "process_user_stats_operation" + ] +} +``` + +**`url`** + + +通知先のURLを指定します + +```json +{ + "type": "string" +} +``` + + + +成功したときは +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) +を返します + + +--- + + + +## ListWebhooks: 作成したWebhookの一覧を返す + +```csharp +Request.ListWebhooks request = new Request.ListWebhooks() { + Page = 1, // ページ番号 + PerPage = 50, // 1ページ分の取得数 +}; +Response.PaginatedOrganizationWorkerTaskWebhook response = await request.Send(client); +``` + + + +### Parameters +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook) +を返します + + +--- + + + +## UpdateWebhook: Webhookの更新 +指定したWebhookの内容を更新します + +```csharp +Request.UpdateWebhook request = new Request.UpdateWebhook( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID +) { + Url = "b", // URL + IsActive = false, // 有効/無効 + Task = "bulk_shops", // タスク名 +}; +Response.OrganizationWorkerTaskWebhook response = await request.Send(client); +``` + + + +### Parameters +**`webhook_id`** + + +更新するWebhookのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`url`** + + +変更するURLを指定します + +```json +{ + "type": "string" +} +``` + +**`is_active`** + + +trueならWebhookによる通知が有効になり、falseなら無効になります + +```json +{ + "type": "boolean" +} +``` + +**`task`** + + +指定したタスクが終了したときにWebhookによる通知がされます + +```json +{ + "type": "string", + "enum": [ + "bulk_shops", + "process_user_stats_operation" + ] +} +``` + + + +成功したときは +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) +を返します + + +--- + + + +## DeleteWebhook: Webhookの削除 +指定したWebhookを削除します + +```csharp +Request.DeleteWebhook request = new Request.DeleteWebhook( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // Webhook ID +); +Response.OrganizationWorkerTaskWebhook response = await request.Send(client); +``` + + + +### Parameters +**`webhook_id`** + + +削除するWebhookのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) +を返します + + +--- + + + diff --git a/partner.yaml b/partner.yaml index 12f622d..4619f57 100644 --- a/partner.yaml +++ b/partner.yaml @@ -34,6 +34,7 @@ tags: - name: Customer - name: Organization - name: Shop + - name: User - name: Account - name: Private Money - name: Bulk @@ -1938,6 +1939,8 @@ paths: $ref: '#/components/responses/BadRequest' /user: get: + tags: + - User responses: '200': description: OK @@ -5778,6 +5781,8 @@ paths: $ref: '#/components/responses/UnprocessableEntity' /bulk-transactions/{bulk_transaction_id}: get: + tags: + - Transaction summary: バルク取引ジョブの実行状況を取得する x-pokepay-operator-name: "GetBulkTransaction" x-pokepay-allow-server-side: true @@ -5805,6 +5810,8 @@ paths: $ref: '#/components/responses/NotFound' /bulk-transactions/{bulk_transaction_id}/jobs: get: + tags: + - Transaction summary: バルク取引ジョブの詳細情報一覧を取得する x-pokepay-operator-name: "ListBulkTransactionJobs" x-pokepay-allow-server-side: true @@ -6471,6 +6478,43 @@ paths: ] ``` + blacklisted_product_rules: + type: array + items: + type: object + properties: + product_code: + type: string + maxLength: 64 + title: '対象の製品コード' + description: |- + 対象の製品コード (JANコードやISBNコードなど) を指定します。(必須項目) + + SQLのLIKE文のようにワイルドカードを使った製品コードのパターンを指定することもできます (_ で任意の1文字にマッチし、 % で任意文字列にマッチします。 例: 978-% でISBNコード) + items: + type: string + classification_code: + type: string + maxLength: 64 + title: '対象の商品分類コード' + description: |- + 対象の商品分類コード (書籍のCコードなど) を指定します。(任意項目) + + SQLのLIKE文のようにワイルドカードを使った製品コードのパターンを指定することもできます (_ で任意の1文字にマッチし、 % で任意文字列にマッチします。 例: 978-% でISBNコード) + items: + type: string + example: |- + { + "product_code": "4912345678904", + "classification_code": "c123" + } + + title: '商品情報ベースのキャンペーンで除外対象にする商品リスト' + description: |- + 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 + 除外対象の商品コード、または分類コードのパターンの配列として指定します。 + 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 + applicable_days_of_week: type: array items: @@ -6515,6 +6559,18 @@ paths: describe: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + minimum_number_of_products: + type: integer + minimum: 1 + title: 'キャンペーンを適用する1会計内の商品個数の下限' + description: |- + このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 + minimum_number_of_amount: + type: integer + minimum: 1 + title: 'キャンペーンを適用する1会計内の商品総額の下限' + description: |- + このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 minimum_number_for_combination_purchase: type: integer minimum: 1 @@ -7253,6 +7309,43 @@ paths: ] ``` + blacklisted_product_rules: + type: array + items: + type: object + properties: + product_code: + type: string + maxLength: 64 + title: '対象の製品コード' + description: |- + 対象の製品コード (JANコードやISBNコードなど) を指定します。(必須項目) + + SQLのLIKE文のようにワイルドカードを使った製品コードのパターンを指定することもできます (_ で任意の1文字にマッチし、 % で任意文字列にマッチします。 例: 978-% でISBNコード) + items: + type: string + classification_code: + type: string + maxLength: 64 + title: '対象の商品分類コード' + description: |- + 対象の商品分類コード (書籍のCコードなど) を指定します。(任意項目) + + SQLのLIKE文のようにワイルドカードを使った製品コードのパターンを指定することもできます (_ で任意の1文字にマッチし、 % で任意文字列にマッチします。 例: 978-% でISBNコード) + items: + type: string + example: |- + { + "product_code": "4912345678904", + "classification_code": "c123" + } + + title: '商品情報ベースのキャンペーンで除外対象にする商品リスト' + description: |- + 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 + 除外対象の商品コード、または分類コードのパターンの配列として指定します。 + 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 + applicable_days_of_week: type: array items: @@ -7300,6 +7393,20 @@ paths: describe: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + minimum_number_of_products: + type: integer + minimum: 1 + nullable: true + title: 'キャンペーンを適用する1会計内の商品個数の下限' + description: |- + このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 + minimum_number_of_amount: + type: integer + minimum: 1 + nullable: true + title: 'キャンペーンを適用する1会計内の商品総額の下限' + description: |- + このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 minimum_number_for_combination_purchase: type: integer minimum: 1 diff --git a/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs b/src/PokepayPartnerCsharpSdk.Test/TestActivateUserDevice.cs index 7b3a4e5..341dd58 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( - "011a7372-0000-449b-ba7c-775f7235b236" + "6ae625fc-8f38-4b66-96b5-badc1584cc03" ); Response.UserDevice 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 06d8559..a54f871 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( - "2adffaf5-1a32-40e6-bf0b-34a5f5f586b4" + "f7a80c4b-aba9-43eb-b76d-38580067e846" ); 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 6a4c6c9..ae086a2 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( - "e313491a-dd0b-41fe-acbc-31ffc78608e6", - "1d24ee19-477a-4162-a6f1-389da60ac0cb", - "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", - "WVf0nkI2cpiZrwht02dhTsSxNXBuh" + "5ceabfee-19eb-4683-baf9-d5e1eacd3507", + "809e5b4d-316f-481c-b62c-d410f3bdb948", + "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", + "WDor4IADTHdTPsjhUsWbu" ); 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( - "e313491a-dd0b-41fe-acbc-31ffc78608e6", - "1d24ee19-477a-4162-a6f1-389da60ac0cb", - "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", - "WVf0nkI2cpiZrwht02dhTsSxNXBuh" + "5ceabfee-19eb-4683-baf9-d5e1eacd3507", + "809e5b4d-316f-481c-b62c-d410f3bdb948", + "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", + "WDor4IADTHdTPsjhUsWbu" ) { - Birthdate = "AxPxL", + Birthdate = "hnbI", }; 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( - "e313491a-dd0b-41fe-acbc-31ffc78608e6", - "1d24ee19-477a-4162-a6f1-389da60ac0cb", - "nsG40wZo0RT90mTv9imeNiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9AP", - "WVf0nkI2cpiZrwht02dhTsSxNXBuh" + "5ceabfee-19eb-4683-baf9-d5e1eacd3507", + "809e5b4d-316f-481c-b62c-d410f3bdb948", + "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", + "WDor4IADTHdTPsjhUsWbu" ) { - Email = "gPF7PH9jsP@o3qR.com", - Birthdate = "XC0", + Email = "UFlfvobOcl@FXKf.com", + Birthdate = "dQivs3h", }; 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 04a9663..4b70378 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( - "ee2bc702-0f1f-4fce-b60a-aeacea985e3d", - "074b32f2-5c20-461f-9c53-d4149d475e71", - 1544, - "60df8aaf-23fd-4fec-90db-d611c05931e8", - "fb148318-6fe3-47bc-81a7-c36c55ce455d" + "ca66f5fd-f8ff-406e-bad4-295d6e468868", + "7c2943c5-a1e0-4c8a-9dd1-78fecba543cf", + 6861, + "1cb975f4-046c-470a-abde-2f3addeec9dd", + "f09db652-b3d0-44c9-815e-14123e6a6665" ); Response.TransactionDetail 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 341f59b..d3729d2 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCampaign.cs @@ -25,11 +25,11 @@ public async Task CreateCampaign0() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ); Response.Campaign response = await request.Send(client); @@ -45,14 +45,14 @@ public async Task CreateCampaign1() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - BudgetCapsAmount = 997496788, + BudgetCapsAmount = 826378708, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -67,15 +67,15 @@ public async Task CreateCampaign2() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 517336317, + BudgetCapsAmount = 619822229, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -90,16 +90,16 @@ public async Task CreateCampaign3() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - DestPrivateMoneyId = "0f960c70-0f8a-42c4-afe5-32c718d50ec0", + DestPrivateMoneyId = "874b3279-0484-4c86-ba2f-13d129ee3dc0", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 256536435, + BudgetCapsAmount = 1933776541, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,17 +114,17 @@ public async Task CreateCampaign4() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - MaxTotalPointAmount = 9860, - DestPrivateMoneyId = "f77d6349-4909-4519-9ebd-d035b2b78d5d", + MaxTotalPointAmount = 449, + DestPrivateMoneyId = "7d082cbd-93e5-4654-b823-7e8a24141542", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1024891600, + BudgetCapsAmount = 1764941427, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -139,18 +139,18 @@ public async Task CreateCampaign5() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - MaxPointAmount = 9115, - MaxTotalPointAmount = 9682, - DestPrivateMoneyId = "73aa2839-2c25-4fc7-826f-fa85c994ba9f", + MaxPointAmount = 6740, + MaxTotalPointAmount = 6373, + DestPrivateMoneyId = "c4793847-f9c2-4eff-b4db-68db0b40ce74", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 906820179, + BudgetCapsAmount = 1046979123, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -165,19 +165,19 @@ public async Task CreateCampaign6() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { ExistInEachProductGroups = false, - MaxPointAmount = 7529, - MaxTotalPointAmount = 9233, - DestPrivateMoneyId = "7fd2d2e1-9b1d-4900-8999-f9d312b6fb2b", + MaxPointAmount = 3313, + MaxTotalPointAmount = 1827, + DestPrivateMoneyId = "cc729950-54fb-4d0f-a18b-ab8113d363b3", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 651192846, + BudgetCapsAmount = 204619724, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -192,20 +192,20 @@ public async Task CreateCampaign7() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - MinimumNumberForCombinationPurchase = 2896, + MinimumNumberForCombinationPurchase = 7792, ExistInEachProductGroups = true, - MaxPointAmount = 1437, - MaxTotalPointAmount = 5405, - DestPrivateMoneyId = "0efa2b2f-9401-4e21-8809-96a6b2ba4994", + MaxPointAmount = 720, + MaxTotalPointAmount = 8923, + DestPrivateMoneyId = "300d0313-4c73-4d25-ad41-9627b85011b8", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1415330254, + BudgetCapsAmount = 1187813134, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -220,21 +220,21 @@ public async Task CreateCampaign8() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - ApplicableShopIds = new string[]{"608581e6-b873-4ddb-abe0-e18a66505671", "0fd11a58-03b8-42d7-973e-33e24d0606eb", "466b4978-315f-475d-8a62-70d757e2bf54", "d811acf0-4786-42b6-b6af-94694604075b"}, - MinimumNumberForCombinationPurchase = 3400, + MinimumNumberOfAmount = 7580, + MinimumNumberForCombinationPurchase = 6246, ExistInEachProductGroups = true, - MaxPointAmount = 7346, - MaxTotalPointAmount = 2968, - DestPrivateMoneyId = "ded3fe86-756c-48d2-927c-702fb445fa90", + MaxPointAmount = 3682, + MaxTotalPointAmount = 4593, + DestPrivateMoneyId = "aec63e50-12e2-4040-81e2-b9ebf071400f", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 735107258, + BudgetCapsAmount = 127213637, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -249,22 +249,22 @@ public async Task CreateCampaign9() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"ce2d24a8-c4f5-407b-8d56-502cdec1c4fb"}, - MinimumNumberForCombinationPurchase = 9060, - ExistInEachProductGroups = false, - MaxPointAmount = 3475, - MaxTotalPointAmount = 5299, - DestPrivateMoneyId = "f67f27bf-977a-458b-a585-48d1448d6705", + MinimumNumberOfProducts = 5810, + MinimumNumberOfAmount = 666, + MinimumNumberForCombinationPurchase = 18, + ExistInEachProductGroups = true, + MaxPointAmount = 1706, + MaxTotalPointAmount = 208, + DestPrivateMoneyId = "9840cdab-d0c2-4c8d-a166-1013dd582994", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 980505426, + BudgetCapsAmount = 1283939849, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -279,23 +279,23 @@ public async Task CreateCampaign10() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - ApplicableDaysOfWeek = new int[]{1, 4, 2}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"0749b4bb-df35-45b1-a5ba-651bcda6d07a", "76c31155-8544-4cea-8166-48f9ae7c1721", "41c3ee2a-0ec7-4f02-b09f-13801c897513"}, - MinimumNumberForCombinationPurchase = 2511, - ExistInEachProductGroups = true, - MaxPointAmount = 3807, - MaxTotalPointAmount = 9324, - DestPrivateMoneyId = "c0796849-742b-47e9-8255-d0445ca8f75b", + ApplicableShopIds = new string[]{"d89c76fa-454e-41d4-8291-5cbddb249f87", "c6697a11-6b58-4349-967f-4d915b7302b1", "e48ef5f7-443d-4283-9b18-b7ac761ce9c7", "ed07dcfd-c909-4bf0-8ab1-390c81cf733b", "af6135d2-1886-44ee-b355-4f08d319d194", "404a7398-1c3d-4c09-a1b4-1416fe5dc4cb"}, + MinimumNumberOfProducts = 3903, + MinimumNumberOfAmount = 9760, + MinimumNumberForCombinationPurchase = 7088, + ExistInEachProductGroups = false, + MaxPointAmount = 4034, + MaxTotalPointAmount = 6638, + DestPrivateMoneyId = "cb22f064-4ed6-4327-8918-3813bd641c2a", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1009515673, + BudgetCapsAmount = 1101544356, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -310,24 +310,24 @@ public async Task CreateCampaign11() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "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}}}, - ApplicableDaysOfWeek = new int[]{3, 2, 3, 4}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"39ca6037-abbd-454c-a982-fb338e158dc7"}, - MinimumNumberForCombinationPurchase = 6650, - ExistInEachProductGroups = true, - MaxPointAmount = 2478, - MaxTotalPointAmount = 6791, - DestPrivateMoneyId = "bddc371e-a492-47a2-9245-5de40a36cb74", + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"af1c4822-11a4-413f-9072-310d5945d355", "930b0fbd-881e-47e9-8e12-d168522fcd4e"}, + MinimumNumberOfProducts = 6707, + MinimumNumberOfAmount = 8423, + MinimumNumberForCombinationPurchase = 5760, + ExistInEachProductGroups = false, + MaxPointAmount = 1717, + MaxTotalPointAmount = 3772, + DestPrivateMoneyId = "6694a68b-b428-403c-b6b0-e536ec92f73d", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1280522020, + BudgetCapsAmount = 1994554518, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -342,25 +342,25 @@ public async Task CreateCampaign12() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{1, 2, 1, 2, 0, 5, 0, 6}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"e3e99e50-f684-4da2-adab-009fe5c47a00", "4236f606-6a10-4c26-a9c6-cf2d1294d7ca", "65fc13aa-45f5-451a-be53-b4e3d7272172", "de9ae145-20c7-41e3-99b5-f049f608d7b6", "4d44599d-1176-4923-bebb-27593510b3a1", "2a143e7c-e44a-48aa-9428-3e7ff069bf7c"}, - MinimumNumberForCombinationPurchase = 3398, + ApplicableDaysOfWeek = new int[]{2, 5, 3, 0, 4, 3, 6, 2}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"03a49247-b289-4ebd-8cba-6a7166e3e4d1", "9689cfe9-af82-482b-a3a3-ca9228274a71"}, + MinimumNumberOfProducts = 8418, + MinimumNumberOfAmount = 3644, + MinimumNumberForCombinationPurchase = 5803, ExistInEachProductGroups = false, - MaxPointAmount = 8802, - MaxTotalPointAmount = 2676, - DestPrivateMoneyId = "55c88853-db73-4fd0-b263-2aa3e9cf0887", + MaxPointAmount = 2483, + MaxTotalPointAmount = 4209, + DestPrivateMoneyId = "1da33c39-b581-44e9-8072-64d60b01a80e", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 216425752, + BudgetCapsAmount = 435207887, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -375,26 +375,26 @@ public async Task CreateCampaign13() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{3, 3, 5, 0, 1, 3, 2}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"2845dee1-e5ae-4111-ae0f-01514eafcce2", "aaea48d6-893a-4494-91cd-07398f70a35a", "2b95aab6-6c86-4dd2-87b0-49ebf6138ebc", "0cd7e98f-d043-4418-9873-3f1470955c26", "cbebc1d0-9be4-4922-baf7-0c90e3471f45", "912395f2-bc1d-4e7d-acb5-da116b009b6d", "29590a58-3988-4708-abbe-68296e105dc7", "3333f13f-cbfa-46f5-8c02-e58553d9c527", "4530dad7-5833-4546-abd7-807f3added3e", "83e6959a-1469-448d-b9da-4468386e4949"}, - MinimumNumberForCombinationPurchase = 6652, + 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, 2, 1, 0, 5, 5, 5, 4}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"cbed6dde-5e8b-47c5-b905-9f70d15bd0e6", "ac327f02-05a8-4b81-b2a5-14f30e19f29d", "e22d4b9f-c162-4a05-be4d-3dfa40fa8a06", "f70d1735-35f3-4a5c-a2c7-46b19e1cac0f", "fbf0a4a6-f38e-4f80-8700-5e67590958ff", "460f0ba1-9979-4272-8fb7-1a7d502d6f95", "0d328b2c-4923-44ef-a1fc-6b9130675d92"}, + MinimumNumberOfProducts = 4426, + MinimumNumberOfAmount = 1489, + MinimumNumberForCombinationPurchase = 2070, ExistInEachProductGroups = true, - MaxPointAmount = 9776, - MaxTotalPointAmount = 112, - DestPrivateMoneyId = "0e45d18f-75ea-4cd6-8f5a-0defac9e50c1", + MaxPointAmount = 6059, + MaxTotalPointAmount = 840, + DestPrivateMoneyId = "39408316-624a-4437-8a47-0c42c6b1db7e", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1753818353, + BudgetCapsAmount = 413072068, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -409,27 +409,27 @@ public async Task CreateCampaign14() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - IsExclusive = false, - Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{6, 1, 0, 2, 2, 6, 2}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"429113fd-da05-438a-9b04-db9c2bcb1895", "7b87f493-5001-49ce-9020-12b83332cf27", "60a4fcb1-c009-4ccc-87c9-aefb536ecf8b", "37e0b234-92af-4cb4-b8a4-c68d0b751e27", "c2cc8abb-c67f-424c-b36d-782dda1c5723", "ace724a1-1ce6-4b28-b2c0-1bc63082dc0a", "609b06d0-549c-4110-b582-e0c5058bd53c", "ba2d2f9f-ddcf-4fd6-94fd-f74b8be2cbfe"}, - MinimumNumberForCombinationPurchase = 6641, - ExistInEachProductGroups = true, - MaxPointAmount = 2860, - MaxTotalPointAmount = 3579, - DestPrivateMoneyId = "3fa00044-f543-407e-9979-7afb342178d5", + 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[]{1, 5, 4, 2, 5, 0, 4, 6}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"08ae7609-c839-463e-b677-edbb9446e466", "ef4f316d-778a-40d6-b2d7-22f266970e4b", "99a0b664-64b8-4920-9ae3-9a6b5bb7156e", "80e5d760-c7e4-4796-9750-6e6e386caa1c"}, + MinimumNumberOfProducts = 6769, + MinimumNumberOfAmount = 8351, + MinimumNumberForCombinationPurchase = 32, + ExistInEachProductGroups = false, + MaxPointAmount = 2287, + MaxTotalPointAmount = 297, + DestPrivateMoneyId = "fdccb7a5-4c12-4f12-9b13-bb914f6d6ffc", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 523938115, + BudgetCapsAmount = 405791693, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -444,28 +444,28 @@ public async Task CreateCampaign15() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - PointExpiresInDays = 1573, - IsExclusive = true, - Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{6, 1, 2}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"8791d856-4a85-4d67-a9b5-75ec73e71291", "d63abb80-ac13-4051-a64b-2e7f61ed6d13", "471e978d-1f13-439d-bee9-e83b7c940772", "eb44a8a4-3268-4ef2-bec2-349f7f1711a0"}, - MinimumNumberForCombinationPurchase = 8510, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{4, 5, 6}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"c127b51b-9170-4fcf-a862-b238afbab276"}, + MinimumNumberOfProducts = 4131, + MinimumNumberOfAmount = 7296, + MinimumNumberForCombinationPurchase = 7888, ExistInEachProductGroups = false, - MaxPointAmount = 1006, - MaxTotalPointAmount = 6339, - DestPrivateMoneyId = "91a6ede2-3981-4326-bda9-e91e4e9c0bc6", + MaxPointAmount = 7211, + MaxTotalPointAmount = 2765, + DestPrivateMoneyId = "46343905-42e5-487d-8361-b49b5355045f", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1215529429, + BudgetCapsAmount = 601600727, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -480,29 +480,106 @@ public async Task CreateCampaign16() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, + "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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",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"}}}, + ApplicableDaysOfWeek = new int[]{1, 3, 3}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, 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[]{"7c85eb77-a868-495f-b0b9-d6045bb2c13e", "b78bf37f-ce7d-433c-b627-a9aa6a0d51df", "d8317293-b676-4508-9929-cd40c097e006"}, + MinimumNumberOfProducts = 3930, + MinimumNumberOfAmount = 4844, + MinimumNumberForCombinationPurchase = 3303, + ExistInEachProductGroups = true, + MaxPointAmount = 2802, + MaxTotalPointAmount = 6850, + DestPrivateMoneyId = "c0850b72-6beb-4156-864f-57919bff2c2c", + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 949953665, + }; + Response.Campaign response = await request.Send(client); + Assert.NotNull(response, "Shouldn't be null at least"); + } catch (HttpRequestException e) { + Assert.AreNotEqual((int) e.Data["StatusCode"], (int) HttpStatusCode.BadRequest, "Shouldn't be BadRequest"); + Assert.True((int) e.Data["StatusCode"] >= 300, "Should be larger than 300"); + } + } + + [Test] + public async Task CreateCampaign17() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - PointExpiresAt = "2021-01-03T09:38:27.000000Z", - PointExpiresInDays = 5805, + 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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{6, 1, 1, 0, 4, 2, 1, 2, 5}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"1bd8f4b6-a1de-454b-a056-004689f84ee2"}, + MinimumNumberOfProducts = 3230, + MinimumNumberOfAmount = 7451, + MinimumNumberForCombinationPurchase = 4554, + ExistInEachProductGroups = true, + MaxPointAmount = 7742, + MaxTotalPointAmount = 9479, + DestPrivateMoneyId = "11e29df1-b359-4fe7-826c-6a1b02142139", + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1048575674, + }; + 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 CreateCampaign18() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, + "external-transaction" + ) { + PointExpiresInDays = 9721, IsExclusive = false, Subject = "money", AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{4, 6, 1}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"072bd62c-3552-435b-ae5e-c230546d8d21", "920f1f56-382f-4ffb-b1cb-0ded173cc53f", "8cb6134b-bc16-4dbc-b1dd-0989392e23bb", "aad4bb4e-eee8-47f0-a00b-2df582587e44", "96ee0c86-85b1-4741-9334-3e90515aa6c9", "9206b282-f318-4e78-b670-805bbb1a2822", "ebe5c546-5801-439b-907c-e5a87c0f9847", "a78ce3ae-6082-4a61-a4e0-73546428d187", "10b3e8a0-661a-49c6-983d-55366b330ba7"}, - MinimumNumberForCombinationPurchase = 4200, - ExistInEachProductGroups = false, - MaxPointAmount = 89, - MaxTotalPointAmount = 3292, - DestPrivateMoneyId = "bf9b3264-1533-4398-920b-d2ee2e26dfbd", + 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"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{5, 0, 6, 6, 3, 2, 6, 4}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"af29f425-4c7e-47c8-b716-1d8be8f18f6c", "ce4285ea-7620-4829-8c71-28076bf5b6c5", "f08aaf64-c470-44ba-87aa-fd2a00b03b71", "5ec7a743-2297-42e3-902c-5ccfdaf98fbd"}, + MinimumNumberOfProducts = 6, + MinimumNumberOfAmount = 3953, + MinimumNumberForCombinationPurchase = 7000, + ExistInEachProductGroups = true, + MaxPointAmount = 8742, + MaxTotalPointAmount = 619, + DestPrivateMoneyId = "cfc5f52c-d12f-4f69-b602-fcaaac59caa9", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1439450059, + BudgetCapsAmount = 818977520, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -513,34 +590,36 @@ public async Task CreateCampaign16() } [Test] - public async Task CreateCampaign17() + public async Task CreateCampaign19() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - Status = "disabled", - PointExpiresAt = "2021-12-19T02:03:37.000000Z", - PointExpiresInDays = 2321, - IsExclusive = true, + PointExpiresAt = "2022-01-04T18:02:55.000000Z", + PointExpiresInDays = 5615, + 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}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{4, 5}, + 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[]{6, 4, 5, 4, 5, 6, 4}, ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"5b4da297-9c18-4afb-9000-51e2c8b08476", "5f4ac0a3-dcba-4785-a6de-e946919ea774", "99eed397-6ee0-4fc4-af81-bd6bc48a3601"}, - MinimumNumberForCombinationPurchase = 9647, + ApplicableShopIds = new string[]{"521515bb-9086-4a17-b67d-7aecabf86ce4", "26b04c3b-bab3-403c-8965-1eca8f7c7517", "e35c7111-77f9-4de8-bf2d-6412bb8900af", "73bfd454-da7d-426c-9222-9167c61c77a3", "65018b54-aad4-4fdd-a2bd-c5329d539fba", "7fa3464e-d15e-4178-9369-24f0ad5c1868", "aa30e614-77da-46a4-921c-28ec383fbccc", "9519c782-5f2f-45dc-9910-576fad00152c", "7e9ffe22-b0ab-4b06-8c22-3bfdf1b1243f", "995a029b-d088-421d-aa4d-1514a8e73ded"}, + MinimumNumberOfProducts = 4799, + MinimumNumberOfAmount = 3234, + MinimumNumberForCombinationPurchase = 6996, ExistInEachProductGroups = false, - MaxPointAmount = 3878, - MaxTotalPointAmount = 8549, - DestPrivateMoneyId = "eac7ba0c-adfa-4994-9007-c85f7a46f6d3", + MaxPointAmount = 7422, + MaxTotalPointAmount = 3913, + DestPrivateMoneyId = "ec7e1215-88d1-4216-bf19-230d0eb4d484", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1397504130, + BudgetCapsAmount = 1686759322, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -551,35 +630,37 @@ public async Task CreateCampaign17() } [Test] - public async Task CreateCampaign18() + public async Task CreateCampaign20() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - Description = "PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2EkkP2VIPy7HW7Ee7skB9BB1YNClE0n87A30l6vspNWH9u8x4Yq2mxjIub5W9d4fa79SnOHSfjKkp3QkI11", - Status = "disabled", - PointExpiresAt = "2022-01-26T18:07:39.000000Z", - PointExpiresInDays = 5544, - IsExclusive = false, + Status = "enabled", + PointExpiresAt = "2023-08-09T04:23:09.000000Z", + PointExpiresInDays = 6024, + IsExclusive = true, Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{2, 1, 6, 2, 6, 3, 3, 0}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"b68a9639-b5d8-42be-923c-7460a3d67d9b", "602b3e58-dfd3-4a06-8f60-d6ebbf04e0bd", "0d36dcfd-ad8b-499b-9bd7-f284721f8614", "d9a7709f-86ab-4810-8da2-0f0bb30c8576", "8933d367-45f7-424d-a4fd-7f43eff5a336", "6b5fd159-daf3-441a-a585-941b989bba51", "90841a56-382a-4506-8206-964dff036406", "6f11e2b6-6a82-4331-85b5-b842aa70dd53", "35a63682-cacc-4e52-9442-2fb41a57449c", "4beb9ef0-e49c-4d68-b06a-ff626ca0b6de"}, - MinimumNumberForCombinationPurchase = 5749, - ExistInEachProductGroups = true, - MaxPointAmount = 9986, - MaxTotalPointAmount = 4535, - DestPrivateMoneyId = "6cbe9517-329d-4dab-9dd1-3afdea31d584", + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{4, 0, 3, 0, 6}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"5fccadec-02c0-4c76-8b60-de7852784c8d", "2703a543-6b19-4ebf-b85e-4e10ba37690c", "1985f651-840f-41aa-bb95-9194ab8c0140", "21ac83ef-9e02-416a-88ce-aca9b2e8c3cb", "e6e0277b-00ce-438f-8130-7bae71779ffa"}, + MinimumNumberOfProducts = 9110, + MinimumNumberOfAmount = 1010, + MinimumNumberForCombinationPurchase = 3863, + ExistInEachProductGroups = false, + MaxPointAmount = 4164, + MaxTotalPointAmount = 1671, + DestPrivateMoneyId = "85ecf905-d23b-4c90-9274-9fc06bc89d13", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 531149341, + BudgetCapsAmount = 2086510520, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -590,36 +671,81 @@ public async Task CreateCampaign18() } [Test] - public async Task CreateCampaign19() + public async Task CreateCampaign21() { try { Request.CreateCampaign request = new Request.CreateCampaign( - "xaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3TtkAPfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uu", - "291366db-519c-429e-bf63-0e23dc6061b5", - "2022-10-05T11:24:43.000000Z", - "2021-06-19T15:02:13.000000Z", - 5525, + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, "external-transaction" ) { - BearPointShopId = "440b88ff-2ba0-4dc8-970e-6365cf4ab4af", - Description = "KxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8c", + Description = "PEIsHw9iaxaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3Ttk", Status = "disabled", - PointExpiresAt = "2020-11-20T21:21:50.000000Z", - PointExpiresInDays = 5811, - IsExclusive = false, + PointExpiresAt = "2023-07-08T21:45:49.000000Z", + PointExpiresInDays = 7077, + IsExclusive = true, Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{6, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"a51d3260-0821-456a-9967-c3788176e191", "f93312b3-a62d-4823-93e7-ab548bb88620", "b0dd32ca-35cb-462c-88f9-9a0daf1b7736", "d6883e8c-9b19-4664-908b-1dfef0b7e49c", "421d07c2-5abf-4e0e-87fc-e721a064a981", "c6b446e2-0f33-4df9-ab9e-9b075b5dda7b", "b0caef1d-d9ad-4659-89d9-8356833c55d2", "d3b8cc5a-9194-43b4-aa87-4d646e25439c"}, - MinimumNumberForCombinationPurchase = 3244, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{6, 1, 4, 2, 6, 4, 3, 2, 2, 0}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"19760078-71e1-44d3-92f5-00aa990d70bb", "74899646-7783-4423-a501-fe7667f81c87", "b02d11e3-257c-47ea-b373-c02b8874d80c", "77441aaf-bc1f-41af-95b2-3ad1672e8fee", "cb77e988-6303-4e5e-b833-dee7beb678db", "95ece3be-7ed7-4916-86c8-257f34d20737", "78c9a768-24bc-46bd-8630-aaa689c4450f", "6cee271f-ecd4-4902-8438-ce2742d3e903", "2fa4d94e-c768-4c37-a5ef-3e1f8999785b", "0c6c4b4f-c0a9-4810-97a8-c13a67601118"}, + MinimumNumberOfProducts = 695, + MinimumNumberOfAmount = 3627, + MinimumNumberForCombinationPurchase = 5402, ExistInEachProductGroups = false, - MaxPointAmount = 4231, - MaxTotalPointAmount = 2580, - DestPrivateMoneyId = "c881f9fd-d447-4459-9161-c9a1f6dc1a3d", + MaxPointAmount = 8829, + MaxTotalPointAmount = 4980, + DestPrivateMoneyId = "760504bc-ab2e-43ea-9dcf-838067b7f47b", + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 983324416, + }; + 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 CreateCampaign22() + { + try { + Request.CreateCampaign request = new Request.CreateCampaign( + "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", + "787a93c7-7ceb-460d-a428-a1f98945efe7", + "2020-02-28T15:38:38.000000Z", + "2021-01-29T22:29:35.000000Z", + 5711, + "external-transaction" + ) { + BearPointShopId = "11f10eef-2e78-4cb0-9206-8dd2ef518714", + Description = "gJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8Jtqof", + Status = "disabled", + PointExpiresAt = "2020-03-23T11:05:38.000000Z", + PointExpiresInDays = 5114, + IsExclusive = true, + Subject = "all", + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + 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[]{5, 3, 4, 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"}}, 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[]{"1485bae7-bc91-4b7e-9532-97d31ed5ecfc", "0f960c70-0f8a-42c4-afe5-32c718d50ec0", "8f4a6f72-b920-4379-8abb-2683f77d6349", "fc204909-3519-4d1e-bd35-8d5d3d169acf", "159ee39a-ee51-45d1-b925-4fc7dbd3f582", "1365dc6f-fa85-4a9f-92e5-2926fd531d68"}, + MinimumNumberOfProducts = 9233, + MinimumNumberOfAmount = 4834, + MinimumNumberForCombinationPurchase = 6942, + ExistInEachProductGroups = true, + MaxPointAmount = 2896, + MaxTotalPointAmount = 7167, + DestPrivateMoneyId = "8eac67b2-059c-451c-af01-3e21d210b388", ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 749440476, + BudgetCapsAmount = 1835558922, }; 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 4109df3..a21f88f 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( - "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", - "7737c810-8958-4792-8583-c0078d66fb8b", - 3669.0 + "e30abff5-65d3-40c5-9785-a465e9b3f1cd", + "c04a228a-5738-4402-9615-9e297f57284c", + 2925.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( - "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", - "7737c810-8958-4792-8583-c0078d66fb8b", - 3669.0 + "e30abff5-65d3-40c5-9785-a465e9b3f1cd", + "c04a228a-5738-4402-9615-9e297f57284c", + 2925.0 ) { - ExpiresIn = 3075, + ExpiresIn = 2144, }; 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( - "cb8e4c57-ab89-428f-97fd-9f1c3735d27b", - "7737c810-8958-4792-8583-c0078d66fb8b", - 3669.0 + "e30abff5-65d3-40c5-9785-a465e9b3f1cd", + "c04a228a-5738-4402-9615-9e297f57284c", + 2925.0 ) { - Description = "qg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQr", - ExpiresIn = 4950, + Description = "qznKIn9uBoqN", + ExpiresIn = 6964, }; 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 f909b1e..89b9302 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateCheck.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateCheck.cs @@ -170,8 +170,8 @@ public async Task CreateCheck7() MoneyAmount = 2132.0, BearPointAccount = "564f0633-c088-426c-bfdf-b12916570056", PointExpiresInDays = 4947, - PointExpiresAt = "2024-01-16T03:09:56.000000Z", - ExpiresAt = "2022-08-04T04:38:22.000000Z", + PointExpiresAt = "2024-03-06T17:39:29.000000Z", + ExpiresAt = "2024-01-16T03:09:56.000000Z", UsageLimit = 8911, IsOnetime = true, Description = "23WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6X", diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateCoupon.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateCoupon.cs index 502cafe..77ee65f 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 5887, + DiscountAmount = 7357, }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 2355, - StorageId = "be475e1f-f3f9-44b8-9749-b7f478fe0ac3", + DiscountAmount = 9216, + StorageId = "980727cd-c844-4e89-bd67-9a9679730e08", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 5177, - MinAmount = 8066, - StorageId = "8e954ed6-a859-4b94-a280-5310e78a1060", + DiscountAmount = 9392, + MinAmount = 2436, + StorageId = "b7bc887c-58af-4907-98e9-25c22bc9b844", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 615, - UsageLimit = 6537, - MinAmount = 1811, - StorageId = "ad351f28-6079-42e4-85e1-256c69d8c247", + DiscountAmount = 1044, + UsageLimit = 4882, + MinAmount = 9522, + StorageId = "f77d05e5-1718-4c74-9136-f78c9ca62105", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 8507, - Code = "6qE4T1vO", - UsageLimit = 6603, - MinAmount = 6541, - StorageId = "5854cf41-fa1e-4834-8977-7aa5242f0104", + DiscountAmount = 1041, + Code = "89v", + UsageLimit = 2514, + MinAmount = 4738, + StorageId = "3d504807-f481-4765-a859-1e493ffa0d5a", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 8787, - IsPublic = false, - Code = "gi", - UsageLimit = 2057, - MinAmount = 2858, - StorageId = "d6c4b46a-25d7-4d08-9279-2ca9b40588f8", + DiscountAmount = 7359, + IsPublic = true, + Code = "6MfShA8D4", + UsageLimit = 6464, + MinAmount = 9440, + StorageId = "175165c5-7cf6-42b7-8f1a-bf211aca37cf", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 3608, + DiscountAmount = 4572, IsHidden = false, - IsPublic = false, - Code = "ekV8cI", - UsageLimit = 477, - MinAmount = 5316, - StorageId = "e2cb1bdb-265b-452f-9430-c9a029af4c5e", + IsPublic = true, + Code = "GT70L", + UsageLimit = 815, + MinAmount = 6848, + StorageId = "7a54ee90-750a-4151-9db2-3614f10c6465", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 4762, - IsDisabled = true, + DiscountAmount = 2800, + IsDisabled = false, IsHidden = true, - IsPublic = false, - Code = "8h8evW68NK", - UsageLimit = 1776, - MinAmount = 3221, - StorageId = "a2ee087f-c55e-4c64-ab0b-9471fa211a30", + IsPublic = true, + Code = "XvfJ", + UsageLimit = 4594, + MinAmount = 3039, + StorageId = "02be5ffe-2394-4b71-bf01-93186575231f", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 6224, - DisplayEndsAt = "2021-09-15T04:42:53.000000Z", + DiscountAmount = 6412, + DisplayEndsAt = "2021-04-02T08:24:07.000000Z", IsDisabled = false, - IsHidden = false, - IsPublic = true, - Code = "o6iR", - UsageLimit = 6922, - MinAmount = 8020, - StorageId = "634603de-a741-450b-88f0-e1237598b70b", + IsHidden = true, + IsPublic = false, + Code = "wzvGv5", + UsageLimit = 4980, + MinAmount = 1833, + StorageId = "69d87ffc-5b83-440e-9842-f9399c396eb3", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 1797, - DisplayStartsAt = "2021-04-05T13:18:21.000000Z", - DisplayEndsAt = "2022-04-02T23:15:26.000000Z", - IsDisabled = true, + DiscountAmount = 2045, + DisplayStartsAt = "2022-03-14T05:45:03.000000Z", + DisplayEndsAt = "2021-12-28T19:08:36.000000Z", + IsDisabled = false, IsHidden = false, IsPublic = true, - Code = "TXOxFwqhkp", - UsageLimit = 7770, - MinAmount = 6358, - StorageId = "194600a2-bb96-4c61-8468-100a21e1c3f0", + Code = "QSvr2", + UsageLimit = 5053, + MinAmount = 5610, + StorageId = "a46f64c4-3d32-4e00-9ec3-59d056f6235e", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 7750, - DiscountUpperLimit = 3100, - DisplayStartsAt = "2020-07-12T09:55:31.000000Z", - DisplayEndsAt = "2020-06-18T03:03:23.000000Z", - IsDisabled = true, + DiscountAmount = 9488, + DiscountUpperLimit = 2828, + DisplayStartsAt = "2021-07-09T22:20:53.000000Z", + DisplayEndsAt = "2024-02-07T05:48:18.000000Z", + IsDisabled = false, IsHidden = false, - IsPublic = true, - Code = "p5bfKVt9D", - UsageLimit = 1488, - MinAmount = 2085, - StorageId = "9ad990d6-defa-4f56-80b6-6c9db1029295", + IsPublic = false, + Code = "qDXhSH8", + UsageLimit = 7272, + MinAmount = 7265, + StorageId = "f7c3fa5b-2066-47ca-8984-82f9add52405", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 374, - Description = "yI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYu", - DiscountUpperLimit = 3253, - DisplayStartsAt = "2022-01-17T11:30:12.000000Z", - DisplayEndsAt = "2020-02-02T19:16:06.000000Z", - IsDisabled = true, - IsHidden = false, + DiscountAmount = 304, + Description = "sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14x", + DiscountUpperLimit = 8514, + DisplayStartsAt = "2021-02-08T09:28:24.000000Z", + DisplayEndsAt = "2021-08-09T03:36:25.000000Z", + IsDisabled = false, + IsHidden = true, IsPublic = true, - Code = "n8lh", - UsageLimit = 1339, - MinAmount = 1865, - StorageId = "ab264084-1055-49a0-a30d-307e9ab05a67", + Code = "V", + UsageLimit = 8759, + MinAmount = 838, + StorageId = "fa1a063e-3263-4064-8721-dd08de992644", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 7369, + DiscountAmount = 7013, IsShopSpecified = true, - AvailableShopIds = new string[]{"aeb859b0-cfae-446f-8e60-a0885720cc84", "b6f0068a-70a8-4555-9234-0e082de60bfd", "4797d3bb-6924-4512-80a4-b11bfffb57da", "054c1ef4-990e-48da-91da-d6cf389cc0e2", "657156c8-059d-43a6-ad64-a97275646730", "ce24fd00-247b-4fce-8207-2836adcfaf94", "5b631576-4ff9-41ec-a009-7e1c53d3927d", "28cb5c94-0c0c-4aee-ac5e-fada8c446052", "398df768-72c7-43a1-a4c4-014d8dabcd02", "f3c9e73b-74f8-4703-82aa-86f54c8abfea"}, + AvailableShopIds = new string[]{"d9b922de-c15b-4ec2-b631-7676b9077163"}, }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 9231, - IsShopSpecified = false, - AvailableShopIds = new string[]{"14352341-1522-45b7-ad65-32a2a431bd92", "4311e0a5-8cc4-452b-9b2a-09a65d3eac3d", "af629f84-ffcf-4403-81ab-d003c5759a98", "f25ab157-7cab-4a11-a5af-7aef734c8015", "ccbbf4c4-eaf0-4465-93c6-3bdf84ce1ee0", "2152fa0b-1036-4803-b6e3-f453400bb3f9", "319ef67b-b41b-40e7-9c31-4cce8fac1e39", "146e7b91-e870-4d94-ac78-ca37bd64587c", "7f97ce2f-3dea-4019-9c6a-6cc8f65646cb"}, - StorageId = "40b2b7a0-1531-4545-96fb-2631261b8750", + DiscountAmount = 511, + IsShopSpecified = true, + AvailableShopIds = new string[]{"0fc680a2-e4cf-44da-a09d-84b11ab73dbc", "81d0530a-aa75-45bf-8e20-f41cc7d6be88", "1231e502-dc42-4394-a141-1064011a7372", "ab5c0000-949b-4dba-bc5f-b236e313491a", "dfcadd0b-81fe-45ec-bce6-ee193fe0477a"}, + StorageId = "74124162-ace6-41f1-9dcb-06ec07ca066e", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 8533, + DiscountAmount = 3071, IsShopSpecified = false, - AvailableShopIds = new string[]{"6a264609-5e2b-4175-967f-0ffab378b03a", "8d34de8f-67fc-4792-a40d-62542ca59b80", "03573026-6816-445b-a0a1-15b2ee307e06", "15eb5690-31be-4a59-9656-7c3b8047dbce", "1613d2a1-d667-420b-9d5d-a96b141ed168", "7843dec7-5c5b-423e-897e-f8e9b28173cf", "221091e1-d024-494a-966b-b5b8597d6512", "69be73a4-3023-4d27-8857-255713274b9f", "66188be2-f3d8-4c4f-9e92-5c4df788de73", "a4e113f9-bc1a-44cd-8cde-f2d6d2fa8a90"}, - MinAmount = 5122, - StorageId = "e2a1890b-32a3-4a91-a81b-e89171f35dcc", + AvailableShopIds = new string[]{"6391deb4-e2bf-4c2e-b003-f3ac5dd2ecf7", "0f0145da-64ef-4182-b052-3e02814b8d80", "da94a5db-3e54-4304-b930-702d13e966ed", "4125cdd4-bd76-4e80-bc39-218c3bb01669", "9f641011-3c1f-407c-ad3f-0d6d7d0fe965", "5dffd7ce-f68a-42e9-a63e-8359d9772bb6", "0549d4b2-3a42-4063-b08f-2b6e0e655735", "ec7a2179-1178-435f-aea7-fba70106c378"}, + MinAmount = 1910, + StorageId = "50ad7ebb-354b-4006-a4df-2144aaba6be1", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 4401, + DiscountAmount = 9002, IsShopSpecified = true, - AvailableShopIds = new string[]{"e8daf159-ac0f-4830-a85f-639b908a2646", "83f0ff3e-8f13-4a26-897a-b78d46c24eaa", "4f431e0b-782f-4ed6-87e0-1504196c1490", "dc60e31b-0eab-4af1-8fcb-e5c657e5156f", "d7a3fe55-3833-4217-b893-84ca3202aace", "b7533690-eb4b-4360-ad75-4d7fae2206e1", "19b6bf44-f4f2-43a2-9e34-cd3f8836d5e3", "7b41a313-9d80-4b2a-bd7e-222c471f01a0", "d8b394cd-8153-40ab-8108-a400d7d95667", "c7be4dc8-42c4-4a14-8140-586cec7d39cc"}, - UsageLimit = 6034, - MinAmount = 2830, - StorageId = "1d001a50-ea36-42cc-af1a-6b11f68f5d07", + AvailableShopIds = new string[]{"704a7f0d-aa5f-4563-97b2-94760e99ed35"}, + UsageLimit = 1596, + MinAmount = 1102, + StorageId = "dcaa7cf6-7bbe-4fc5-92d2-3c1b39de888f", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 7861, - IsShopSpecified = true, - AvailableShopIds = new string[]{"a93a3179-012f-4b53-832a-f7b12d940d94", "30d98b10-d7f6-4237-8804-414c71377bb6", "3ef65e3d-e46c-4a43-8d34-5ef996b2c940", "1a5a5186-589a-4812-b271-00bbeb417ab4"}, - Code = "3mHyvfAo1Z", - UsageLimit = 7065, - MinAmount = 631, - StorageId = "e96c086b-5918-4064-a4b2-3001a1f872c1", + DiscountAmount = 7601, + IsShopSpecified = false, + AvailableShopIds = new string[]{"cae95ad5-2d3b-4a6f-9053-9a4debeaa614", "ce9f70f8-2289-4775-abf7-7414776b113c", "91eb071f-46ef-4569-b3b4-3f33614c8f0c", "6cb4933d-8886-4115-a8cb-b0cf4b56778e", "7836c574-d008-4741-af3f-462928db048d", "ce507f58-ca88-49a7-b727-306f1ce20970", "4cde362c-0814-4df5-a1e5-fb237a6c2c37"}, + Code = "O", + UsageLimit = 6702, + MinAmount = 2741, + StorageId = "e3c517ad-8e38-43c1-bd22-8a7cebf34ee5", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 6167, - IsShopSpecified = true, - AvailableShopIds = new string[]{"f732fd8b-ff79-444e-b132-85a0883470bc", "d101cbd0-8ad7-439d-b9e5-aed0364c695a", "988b178f-7c48-4687-9f5c-3eb192de26d6"}, - IsPublic = false, - Code = "DlcE5mr", - UsageLimit = 9908, - MinAmount = 8344, - StorageId = "edd9e114-4d49-4aad-bbb9-532d06880809", + DiscountAmount = 8872, + IsShopSpecified = false, + AvailableShopIds = new string[]{"692e0554-bfee-48a1-bdf2-d029382227c6", "b17c6bd3-a36a-4f62-82fd-91bae229141c", "6380028e-9f97-4eb1-ad0e-99e8d8d0cd69", "93562b52-44ea-4493-9854-9597019950ce", "219a7cd3-5da7-4c15-9528-115516a36881", "b79d84b4-05a8-41dc-b6c4-02cb90f9a9d0", "e84c3aa2-7c07-4d0f-b62d-19f928a54c8b", "660c57ab-e119-450f-aba1-c2f4210b4a9b", "f627d5cb-a51d-4481-a163-c7192f4e9d18"}, + IsPublic = true, + Code = "CyKm4tG2", + UsageLimit = 4038, + MinAmount = 2789, + StorageId = "747a7c03-cdae-4adf-9758-597836eb65d0", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 3582, - IsShopSpecified = false, - AvailableShopIds = new string[]{"e175cad0-74dd-45f1-bf86-e0317118449a", "72ac22eb-356c-4bfe-a58e-987dc5facb29", "e970cad0-7a1a-480f-86d9-e1c9a735bb85", "03a74be9-f7b4-4d7e-a61c-1367a873a25a"}, - IsHidden = true, + DiscountAmount = 2894, + IsShopSpecified = true, + AvailableShopIds = new string[]{"2529f2e9-0ecd-4256-a886-6fdab38969ed", "998e8a1f-9482-4990-ad47-baea293b505e", "d69f3130-d611-4354-8d4d-7c91bcb37a0e"}, + IsHidden = false, IsPublic = true, Code = "F", - UsageLimit = 9607, - MinAmount = 4994, - StorageId = "0e275e39-db99-4f76-bb5d-ac844cb86720", + UsageLimit = 6408, + MinAmount = 7960, + StorageId = "fe9a95cd-0b2b-4b1e-b05c-168f46148abe", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 6226, + DiscountAmount = 8388, IsShopSpecified = true, - AvailableShopIds = new string[]{"e3e4242c-9d8d-4c94-84a5-c75584cdb638", "a3dcb9ca-3bb5-4539-9e4f-305bb01b001c", "f84498f4-d4e3-41ef-9feb-243c4bc11f86", "9feb237f-4e1d-4b2b-bea8-b5c5a6cda5df", "27d27a84-f216-42a8-8d4d-38d601024e5e", "23140d9b-985d-4389-a86d-cacb6a3ee0db", "4cef74fa-54b2-4a8b-a97b-6cdb22b0c82c"}, - IsDisabled = false, + AvailableShopIds = new string[]{"b433f764-07f7-42c0-9556-6fd87988f124", "09d015a2-2b31-45aa-a41f-923f2b2d4de0", "18cd3bee-e2bf-4866-905a-5b1e0b4dfef4", "24139a88-20fa-4747-b56e-fcd67d093088", "76f6d9ca-1ea8-4ce2-bc74-87c3abbac41f", "d13cc483-a8ee-4773-9a2f-b5e01ab7d7ff", "75bc6ffc-70e4-490d-a52c-924688e7ebbd", "9b0ce214-03d6-478f-addf-ff63443ca883", "27a71bdc-1aea-4fc6-b82e-a720bf8fbdf0"}, + IsDisabled = true, IsHidden = false, - IsPublic = true, - Code = "oGU", - UsageLimit = 5553, - MinAmount = 4303, - StorageId = "f4657b8d-1103-44f8-9f81-4a55e26667c0", + IsPublic = false, + Code = "7nB", + UsageLimit = 5865, + MinAmount = 6058, + StorageId = "dc9400ae-536a-49e1-a134-4e75f7f1491a", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 2849, + DiscountAmount = 8154, IsShopSpecified = false, - AvailableShopIds = new string[]{"0357376c-163a-4406-81b7-6a094660d76a", "08f6d53d-1502-456c-9cd7-6e787359ddc0", "9b1fbd99-d9f2-4c66-8394-6a10c8674f45", "5d77d74b-d84d-475f-9182-6738bf14bec6", "7c0274a7-d99e-4643-b3b0-cba871f0518f", "1e17f736-87b2-4b50-8c62-083500584439", "3096f979-ad2d-4366-ba6e-e769b9f4e0f7", "a6286e1a-a71a-4a38-ae5a-0b60ac43cdae", "ba336eaa-c8b7-4c54-b2af-81eafd716822", "3e4557d7-d900-4d68-935e-8fb0ff54fc91"}, - DisplayEndsAt = "2020-06-20T00:24:34.000000Z", - IsDisabled = true, - IsHidden = false, - IsPublic = false, - Code = "rr7bO", - UsageLimit = 1572, - MinAmount = 6485, - StorageId = "86034266-1a4a-4417-9bee-f97d70258996", + AvailableShopIds = new string[]{"66d53e70-5212-47c8-a2d1-a9c072aaedd4", "4be39234-68fe-4b13-ad8f-2fda5f237151", "8e51fe3b-d25e-4b9e-a728-d89b81dc7144"}, + DisplayEndsAt = "2021-06-06T14:05:51.000000Z", + IsDisabled = false, + IsHidden = true, + IsPublic = true, + Code = "1kMJt8", + UsageLimit = 8180, + MinAmount = 8024, + StorageId = "0e0ca2cc-d84d-468d-b7dd-54e0fa6e0c69", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 730, - IsShopSpecified = true, - AvailableShopIds = new string[]{"2e16e56f-0267-4878-9365-c143ee94cb9e", "b408127e-a90e-4357-b81f-ad8e80ccf0e2", "d1c4b363-53b4-48a8-b75d-f8eccac7f85d", "92bc7786-5c3d-4fbd-b050-e7b2b796cbc4"}, - DisplayStartsAt = "2020-05-21T00:45:30.000000Z", - DisplayEndsAt = "2023-09-27T14:09:03.000000Z", - IsDisabled = true, - IsHidden = false, - IsPublic = true, - Code = "DSK2", - UsageLimit = 1971, - MinAmount = 6605, - StorageId = "a4e76683-6980-4edd-ab3f-2b38ff753a16", + DiscountAmount = 3402, + IsShopSpecified = false, + AvailableShopIds = new string[]{"f67037cd-d21f-4e69-b350-19a8573ccdd4", "0695de81-53d8-403b-b6fe-99ca5843f5b9", "013b0a99-f0c1-4450-bebc-59276a539257", "fb6937d6-44fd-4d2c-a6b0-16a592992ac0", "5991d5a1-f95c-4c8d-aeeb-5f4963c3c6b2", "eaf58ae3-5c70-45db-a9da-d2726b4fe55f", "f466ca77-d82f-4ce8-b4e0-198210a8cb90"}, + DisplayStartsAt = "2021-05-19T15:51:25.000000Z", + DisplayEndsAt = "2022-03-07T03:21:20.000000Z", + IsDisabled = false, + IsHidden = true, + IsPublic = false, + Code = "dhT", + UsageLimit = 6259, + MinAmount = 4233, + StorageId = "0dd17f90-bf18-4753-bb3a-310cd42e4f78", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 9092, - IsShopSpecified = false, - AvailableShopIds = new string[]{"757b9ac3-4bec-4dee-9d28-c030ff79b96e", "4d4efb8a-00e5-4293-b878-50352b484c8d", "caa77ac3-8045-49f7-b57e-a404750c1c12", "9e3df9b8-7633-403c-8a32-72d770a2385f", "ce5efc45-1f42-4069-a9dc-dacf175cd196", "7f542ac6-327b-4c10-b577-7d6e034b0e80", "7c52413f-4187-461b-ad65-ee3b097df35b"}, - DiscountUpperLimit = 1288, - DisplayStartsAt = "2024-02-01T23:55:52.000000Z", - DisplayEndsAt = "2022-06-16T23:20:52.000000Z", + DiscountAmount = 7055, + IsShopSpecified = true, + AvailableShopIds = new string[]{"275127d8-8784-4ea7-82f5-dcc0c1d07f89", "cd4bf5e8-c04c-491b-81f8-d403dc2586af", "c95875d0-e03b-4df8-824c-bfa677b05288"}, + DiscountUpperLimit = 1426, + DisplayStartsAt = "2023-01-10T01:53:40.000000Z", + DisplayEndsAt = "2023-12-28T16:04:43.000000Z", IsDisabled = false, IsHidden = false, - IsPublic = true, - Code = "H1pqqlIh", - UsageLimit = 7688, - MinAmount = 2304, - StorageId = "eff9f69d-34cb-4beb-924f-b6ee68c7b650", + IsPublic = false, + Code = "F", + UsageLimit = 1079, + MinAmount = 976, + StorageId = "f95a6c48-852d-4e39-9bbc-126a8cc8f50f", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountAmount = 3739, - IsShopSpecified = true, - AvailableShopIds = new string[]{"a21ed365-d0b3-4967-88b3-5c4f5a1751f1", "44314f59-c120-4fcd-bc86-367fbd47aa44", "77a55c36-d540-40d9-a737-f91ccd8b502f", "49b3b702-c566-4f1d-aa10-e189b772e76c", "d3e3cbba-506f-4770-8a70-96dcdc5c834c", "68b87730-ef03-4d9f-b684-a8f73e0c8d52", "a71836cf-e7d1-4496-bf5a-1d2b6acfd233", "d8e3a817-4d8e-4e33-a41c-5453a0a2a88a"}, - Description = "51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magR", - DiscountUpperLimit = 4440, - DisplayStartsAt = "2021-11-29T02:34:42.000000Z", - DisplayEndsAt = "2022-05-31T06:28:06.000000Z", - IsDisabled = true, + DiscountAmount = 8307, + IsShopSpecified = false, + AvailableShopIds = new string[]{"1b26b3bd-f4ff-42ef-ab29-d7b3c9bab7f1"}, + Description = "bXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMyd", + DiscountUpperLimit = 9580, + DisplayStartsAt = "2020-12-24T14:18:47.000000Z", + DisplayEndsAt = "2021-11-23T19:34:19.000000Z", + IsDisabled = false, IsHidden = false, IsPublic = true, - Code = "N1", - UsageLimit = 2481, - MinAmount = 421, - StorageId = "6e51bde4-f77f-4069-a454-254921597d50", + Code = "qE4", + UsageLimit = 1281, + MinAmount = 2260, + StorageId = "347c6031-7ff6-414f-b20c-b482317519cb", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 7961.0, + DiscountPercentage = 6541.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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 9549.0, - StorageId = "fda064a7-5e79-4bfc-a326-231c5edf658a", + DiscountPercentage = 3905.0, + StorageId = "2c2afa1e-4834-4c49-b7a5-01046f5627e7", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 2284.0, - MinAmount = 2735, - StorageId = "af42ed24-b7d0-4937-b8d8-214a5287d249", + DiscountPercentage = 8787.0, + MinAmount = 4289, + StorageId = "4521aa01-0767-4121-a909-b38b24913d5b", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 3890.0, - UsageLimit = 9952, - MinAmount = 4966, - StorageId = "35149deb-f3ef-418b-998d-7611adbaff07", + DiscountPercentage = 2858.0, + UsageLimit = 9687, + MinAmount = 2296, + StorageId = "149d8e18-385b-439d-ae65-6f88745a3d65", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 7060.0, - Code = "uaeWPZ9", - UsageLimit = 5663, - MinAmount = 5409, - StorageId = "eb89a999-202d-4332-9d12-27cb488fccb6", + DiscountPercentage = 2667.0, + Code = "V8cI", + UsageLimit = 477, + MinAmount = 5316, + StorageId = "e2cb1bdb-265b-452f-9430-c9a029af4c5e", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -800,18 +800,18 @@ public async Task CreateCoupon29() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 8794.0, + DiscountPercentage = 4762.0, IsPublic = true, - Code = "1zTkBm", - UsageLimit = 8190, - MinAmount = 3281, - StorageId = "b0d3005b-4ffb-4409-bff3-e055d340694a", + Code = "8h8evW68NK", + UsageLimit = 1776, + MinAmount = 3221, + StorageId = "a2ee087f-c55e-4c64-ab0b-9471fa211a30", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -826,19 +826,19 @@ public async Task CreateCoupon30() { try { Request.CreateCoupon request = new Request.CreateCoupon( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 3167.0, + DiscountPercentage = 6224.0, IsHidden = false, - IsPublic = true, - Code = "79pUjuQLW", - UsageLimit = 6154, - MinAmount = 4554, - StorageId = "0fa512d1-9515-4ac1-88ec-fce3225aea29", + IsPublic = false, + Code = "o6", + UsageLimit = 5353, + MinAmount = 3410, + StorageId = "72f76b31-5b0a-4b31-94de-a741089e050b", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 2224.0, + DiscountPercentage = 7664.0, IsDisabled = false, - IsHidden = true, + IsHidden = false, IsPublic = false, - Code = "fIBEGWMOe", - UsageLimit = 6539, - MinAmount = 8342, - StorageId = "5bde6687-5f8c-4efb-96fe-907a56916a8a", + Code = "gNTXOxF", + UsageLimit = 8322, + MinAmount = 2721, + StorageId = "f287c4bd-7526-4777-b193-d6273bae16e8", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 7542.0, - DisplayEndsAt = "2021-11-04T16:20:23.000000Z", + DiscountPercentage = 5483.0, + DisplayEndsAt = "2023-03-21T06:19:56.000000Z", IsDisabled = false, IsHidden = false, - IsPublic = false, - Code = "f46VZC1gRO", - UsageLimit = 8119, - MinAmount = 7551, - StorageId = "b431fa85-9887-43f9-bcdb-8bc4de099877", + IsPublic = true, + Code = "pZV", + UsageLimit = 162, + MinAmount = 4106, + StorageId = "21e1c3f0-1e46-4c1c-937b-de026597e01b", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 6135.0, - DisplayStartsAt = "2022-02-14T00:49:50.000000Z", - DisplayEndsAt = "2021-05-19T14:59:28.000000Z", - IsDisabled = false, - IsHidden = false, - IsPublic = false, - Code = "r", - UsageLimit = 326, - MinAmount = 2796, - StorageId = "3e5abddd-282f-4612-9b28-1bb05661efbe", + DiscountPercentage = 9168.0, + DisplayStartsAt = "2023-07-19T00:14:52.000000Z", + DisplayEndsAt = "2022-03-27T10:37:51.000000Z", + IsDisabled = true, + IsHidden = true, + IsPublic = true, + Code = "p5bfKV", + UsageLimit = 1158, + MinAmount = 9785, + StorageId = "e2b3a15d-b52a-46c4-90d9-b1ca5326759d", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 4408.0, - DiscountUpperLimit = 7777, - DisplayStartsAt = "2022-12-18T11:53:07.000000Z", - DisplayEndsAt = "2023-12-27T21:12:28.000000Z", + DiscountPercentage = 2085.0, + DiscountUpperLimit = 4310, + DisplayStartsAt = "2021-04-29T14:17:30.000000Z", + DisplayEndsAt = "2020-04-13T12:51:34.000000Z", IsDisabled = true, IsHidden = true, - IsPublic = true, - Code = "qydMn", - UsageLimit = 3684, - MinAmount = 3115, - StorageId = "c761280a-09a5-4489-a7a8-ae3cee2dc6e0", + IsPublic = false, + Code = "vyI6yw", + UsageLimit = 5391, + MinAmount = 6057, + StorageId = "a2aa4979-3f4b-4c69-a723-36ec32ea14bd", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 2106.0, - Description = "sD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEe", - DiscountUpperLimit = 1336, - DisplayStartsAt = "2020-09-14T07:21:18.000000Z", - DisplayEndsAt = "2023-06-01T20:38:59.000000Z", + DiscountPercentage = 9194.0, + Description = "5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac", + DiscountUpperLimit = 1593, + DisplayStartsAt = "2022-09-20T16:39:04.000000Z", + DisplayEndsAt = "2023-01-28T15:06:04.000000Z", IsDisabled = false, IsHidden = true, IsPublic = false, - Code = "oSB", - UsageLimit = 5890, - MinAmount = 7047, - StorageId = "49dab42c-3348-492d-bc93-adbcdd2caee5", + Code = "Bqh0SVIl", + UsageLimit = 7423, + MinAmount = 9087, + StorageId = "0239f926-855b-49ba-aa9d-e9212eecd940", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 8998.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"e926cede-9074-4e3d-be47-88e831f7ba96", "1ec55f27-dcc6-4b67-bb85-ff4a3a5d3c22", "76bb3bad-e5e4-49f8-88dd-c26c12486a73", "c22019eb-c167-4967-b64c-b3a645c3184d", "1969a8b7-d089-4b7f-8489-ae4833196868", "8880ff57-fd49-47d1-b286-b261e8e8645c"}, + DiscountPercentage = 7220.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"3ed2b3cb-a4d8-4f55-bfb1-8b72a9ec6188", "d37b6756-03cc-459a-a636-6c55d3ade527", "8d89a530-ac4b-4934-87e0-b990bfcdeb5f", "2c6ff334-cfc2-40ef-a2f6-43112b12a4ab", "ad682780-8848-4a21-bf89-db2aa556904b"}, }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 2070.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"a6c160b7-4515-4070-97bc-4d9e04b70235", "5b3b93a6-0bf4-4f88-8cbd-84c43d001682", "21b46bd3-82cc-4733-9c3e-20fe32359a98", "32829cae-a545-477c-907f-dd59b53c32fb", "1e68af05-3a58-4376-98dc-e84d0fc9be2b", "ec37eb8f-15d8-4364-acfc-b74970ad2558", "33814ddc-7d06-4ff8-9fc7-14c1e72f9b7b", "011c5838-a93c-4c65-bb4f-dd11b8312089"}, - StorageId = "49b22993-7d74-43be-9d64-f5c436dbbe67", + DiscountPercentage = 2673.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"b0ef9f12-9460-4bbe-a922-37c750bbcd01", "26587642-7e83-4dad-857f-4a96db039b47", "65eec6ba-1a1f-4a26-bdb1-55c46de1cfa1", "176f785a-01fe-44fd-8bea-0eb276bf0274", "8c1fd087-cec2-4752-acc6-35e5242599a0", "ab108388-64a5-4016-a02f-7e72a5a4aee8", "ca541eff-d653-40f5-8cb2-3e9718582200", "c4acf214-7522-44b2-be21-c36792bb9347"}, + StorageId = "4d1524bc-2fa2-4de7-bee1-b237640b19f0", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 2824.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"69ac7627-42dd-48de-9a3d-3c143aa0ec1c"}, - MinAmount = 6518, - StorageId = "6ea37fbe-d076-400e-b360-fc5525a9ae7a", + DiscountPercentage = 2819.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"6b704930-82ee-4fed-8c4d-bd1a0e23a0e6", "73c81adc-16ee-4307-ab49-e3af6fae341c", "cde1e159-42d4-4710-bbd1-f7648f03267e", "3d66de1e-50ba-4c9b-b192-4c837014ccbc", "b58e551d-f0c8-4100-bf24-634a9fb397da", "1094b925-6ab8-45d7-896e-b6c0b19c0844", "abdd9b18-5d48-4a8f-85bc-abd6ff3a35be"}, + MinAmount = 102, + StorageId = "e68deb01-c827-45dc-b0c9-d628c02dc8be", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 8057.0, + DiscountPercentage = 9282.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"f2619f98-688a-447d-aaeb-325027b300d0", "9dbdfee5-7bcc-4a33-91df-e25386354a22", "44ff5ae5-4248-42a2-ac73-b43eda88e901", "10bb385e-0b3d-4c0b-a0fa-2d4b7a84ce61", "d2d55b9c-dbec-45b8-954a-b32bfc8c4337", "6704b400-a16d-4e5f-b6ea-9b89404b4554", "d44effc6-43bb-4755-b077-6ad72abb12fc", "ace5ccc1-8dcd-4505-bff5-66a86e5b1db8", "8be34139-750a-496d-84b0-acbfd026f388"}, - UsageLimit = 7764, - MinAmount = 8458, - StorageId = "754736bd-c6f8-4e5c-ae25-d3d7a05bbfa2", + AvailableShopIds = new string[]{"0db33645-0aa1-4bcf-8dfb-19ad163ddad0", "f7b56332-2780-463b-81a6-03d526cebe92", "8f919827-e437-4f2a-896b-a6d99236eef9", "ab37e6dc-302b-489f-a0e7-d60f9c490d01", "dc28b76d-876b-4ea7-ab44-ec9f3a81ac87"}, + UsageLimit = 6156, + MinAmount = 3629, + StorageId = "9b088bf8-5805-481e-9164-0984c5a23833", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 1795.0, + DiscountPercentage = 832.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"9be7f5d1-fc80-4d55-9379-6c98cb700fd7", "f9549461-e256-4ae7-820b-f0612d119b4c"}, - Code = "MWptjgf0", - UsageLimit = 966, - MinAmount = 8041, - StorageId = "d9aea15a-31da-4b03-8493-0c601fa20991", + AvailableShopIds = new string[]{"cf2be07a-693b-42f0-ab7a-c5f6a39beb9e", "1215befc-0dbe-4650-ba3e-a9f3d0e94ad0", "3cf579ef-5eb2-42f6-abbf-6ce36c4fbcda", "02d413f6-534b-4484-a861-72bb0e196f9c", "4bfe0466-be34-4037-b00d-6c4459f40c77", "ec02ff91-ea86-43b5-99df-cb9e87d0edac"}, + Code = "I6", + UsageLimit = 8677, + MinAmount = 8325, + StorageId = "eb47ec15-ed41-4fa6-a2ad-9426485df6a4", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 1243.0, + DiscountPercentage = 8399.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"73f83ac5-c04f-45b2-bcfb-7050cc7526da", "0bdca3ad-03dc-40c1-a0b9-68e29a6de9e9", "18d9c289-baef-4484-912b-6e5fc1e4d7cd", "22906b88-0350-4247-9331-9f2b24ffac94", "450483c5-83b8-4bb1-ae6a-ce96e9939a2c", "1b9d918b-cac3-41c1-a0d2-29fd77437129", "45ab5b60-a95c-46d8-bce2-716b36a133b7"}, - IsPublic = false, - Code = "17C", - UsageLimit = 5458, - MinAmount = 1500, - StorageId = "b28af5af-9a46-42b6-8c79-980cc6cd1f4d", + AvailableShopIds = new string[]{"4705f294-b0c4-4e2b-82e7-01525eb1c595", "1cca2b96-a6fc-4e14-9141-dc671d8693ed", "06f35eea-ef85-44de-b890-d640eb8954bf"}, + IsPublic = true, + Code = "GCqaBwJ9", + UsageLimit = 8536, + MinAmount = 5610, + StorageId = "c7307dd8-6abc-4c53-85e6-016284b2676b", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 4600.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"606192c2-c841-470f-9aa6-fff8ece17406", "c7a869af-9010-442c-8e3b-1d83cdaea6f2", "992a2241-8d9e-49d3-846a-2ddbfd0255b9", "41531856-02c7-4d7b-b2b6-d9f28a0ac851", "4f216c15-1ebe-4ed7-852b-a766361f40ac", "2150c145-bd28-42d0-bb01-eb37dc2a7773", "2afcef97-e396-47b2-a619-e9b75626559d", "fe828b66-42b5-45f2-8a54-91a03c604534"}, - IsHidden = false, - IsPublic = false, - Code = "2Cz81XNouc", - UsageLimit = 1665, - MinAmount = 9615, - StorageId = "939209e2-1c45-48a9-88f0-db8fd62e7f87", + DiscountPercentage = 5085.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"862a6910-cb88-4d92-b376-02ec46d1e9aa"}, + IsHidden = true, + IsPublic = true, + Code = "1NOUE", + UsageLimit = 8157, + MinAmount = 6669, + StorageId = "77a128ff-3da3-4c55-a6cf-7b9dc665c8c0", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 3832.0, - IsShopSpecified = true, - AvailableShopIds = new string[]{"1c3722c6-fa2f-4a5c-afd8-5f23c60a500f", "4c56c0b7-012d-44d0-88af-dd440b482109", "82a7e1e7-4d98-4b2d-a772-eafa695c876e", "72cc23ce-0757-4f8a-8256-02097379a4b0"}, + DiscountPercentage = 1412.0, + IsShopSpecified = false, + AvailableShopIds = new string[]{"85fe33d4-74e5-4f59-b5e1-ccb55bd97244", "902b3ef6-110c-48e5-8af3-a4ee7c4c6e38", "5e129fa7-74a6-4dec-a8c0-053bad574749", "ab264084-1055-49a0-a30d-307e9ab05a67", "29e3dcc9-3908-4f6b-99b0-cfae11f6946f", "6672ea4e-4360-4088-848a-70a8aaa40555", "426d5912-9a34-4e08-bdbb-69247c37a512", "d0480440-cca4-411b-9af4-990ecf02b8da"}, IsDisabled = false, - IsHidden = false, - IsPublic = true, - Code = "BBTTp6AGpM", - UsageLimit = 4878, - MinAmount = 5581, - StorageId = "35039622-eaa3-4ae0-8f9d-0e3e8a4c09cf", + IsHidden = true, + IsPublic = false, + Code = "Hmd", + UsageLimit = 9339, + MinAmount = 5494, + StorageId = "48064ff9-31ec-4aa0-891c-927d28cb5c94", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 4254.0, + DiscountPercentage = 3084.0, IsShopSpecified = true, - AvailableShopIds = new string[]{"b0fe2133-5ce2-4774-8048-daad4fb5bf59", "eb4bfca3-6f9c-4617-87e9-f5aa038b2dc2"}, - DisplayEndsAt = "2021-08-10T20:48:40.000000Z", - IsDisabled = true, - IsHidden = true, - IsPublic = true, - Code = "al", - UsageLimit = 8194, - MinAmount = 7029, - StorageId = "1662b1b6-af03-429c-8012-789e3c0c4263", + AvailableShopIds = new string[]{"398df768-72c7-43a1-a4c4-014d8dabcd02", "f3c9e73b-74f8-4703-82aa-86f54c8abfea", "40e3a40f-f417-462f-9c0f-02b814352341"}, + DisplayEndsAt = "2021-12-21T15:43:30.000000Z", + IsDisabled = false, + IsHidden = false, + IsPublic = false, + Code = "DOA", + UsageLimit = 6315, + MinAmount = 4099, + StorageId = "c5759a98-b157-4cab-91e5-abaff2a27aef", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 360.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"a369adc4-0317-4bd6-b220-18d0eb4a55e3", "08abf01a-b1ea-4a0d-940c-8bdca1423ca4", "bdc0f29e-7601-43b2-a3f4-76913c8e20f6"}, - DisplayStartsAt = "2022-05-03T00:48:45.000000Z", - DisplayEndsAt = "2022-07-29T04:38:50.000000Z", - IsDisabled = true, - IsHidden = true, + DiscountPercentage = 21.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"47915465-a013-43c6-9fe0-fa0b9c291036"}, + DisplayStartsAt = "2020-06-23T10:27:15.000000Z", + DisplayEndsAt = "2022-01-25T23:08:38.000000Z", + IsDisabled = false, + IsHidden = false, IsPublic = false, - Code = "uG53qZW", - UsageLimit = 3328, - MinAmount = 1658, - StorageId = "8d68c302-5210-4ea0-8721-b113b98f6eef", + Code = "1N9plx7j", + UsageLimit = 4121, + MinAmount = 5020, + StorageId = "3a1b1b6a-6cc8-46cb-a031-7545636c6696", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 6944.0, + DiscountPercentage = 9979.0, IsShopSpecified = false, - AvailableShopIds = new string[]{"36a6f82a-b023-4175-8075-f54278575cdd", "e63fda58-b3b6-41a1-8cfd-e2dc465eedd5", "7d744ad5-4b5f-4f8c-a0d5-b3c2f4507fc5", "fdd6f8ce-d1fa-48bf-b952-caa6838cc431", "c997380a-2538-409c-b2ce-b60f3f1618d1", "d1727302-c76a-4c54-81bb-fbd259de9f78", "c4714663-ddcb-475f-89bf-acd7c943f0e3", "c3451d24-92e2-4208-8920-4a31932f18ee", "811b8379-4fcc-4dcc-9688-30c9160693ad"}, - DiscountUpperLimit = 5799, - DisplayStartsAt = "2020-08-15T06:31:23.000000Z", - DisplayEndsAt = "2023-05-22T07:07:16.000000Z", - IsDisabled = true, - IsHidden = false, + AvailableShopIds = new string[]{"e5f26155-ded1-4869-892b-517522354cd6"}, + DiscountUpperLimit = 3967, + DisplayStartsAt = "2021-01-05T23:06:34.000000Z", + DisplayEndsAt = "2021-11-05T02:04:42.000000Z", + IsDisabled = false, + IsHidden = true, IsPublic = true, - Code = "PKIYR", - UsageLimit = 7361, - MinAmount = 4972, - StorageId = "c4afa331-685d-4955-8375-0ddc9ccdf993", + Code = "T2YVV", + UsageLimit = 7118, + MinAmount = 4769, + StorageId = "79ced667-920b-431d-9d6b-d1687843dec7", }; 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( - "901ca15e-13ad-4082-bb64-8a93ee34f22c", - "cpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm3", - "2021-01-02T06:39:44.000000Z", - "2021-06-09T15:15:05.000000Z", - "a2034002-634b-4989-9a5b-9213447539bd" + "bd103d21-a16d-4654-931f-6ca445ab6949", + "s3sss0bSZ", + "2021-01-14T23:41:37.000000Z", + "2020-09-06T06:55:56.000000Z", + "5cb12b63-c3a0-47d2-8735-ba7295336d04" ) { - DiscountPercentage = 9681.0, - IsShopSpecified = false, - AvailableShopIds = new string[]{"700af5e3-ddd7-4b67-9846-2f6ca99c995b", "ee279551-dcf2-4b94-9ec7-8a2f3e83bc2d", "23746f5b-a15c-4de4-9bd2-6e8f6939c371", "ee21a37f-b22d-4856-a433-42c386afe982", "c7c944fd-9649-4996-acc5-f8b359a968a0", "9127d928-3be0-46ab-a4a5-c24ffbe3d5ac", "55a1cbb8-c8c8-4e92-a47d-eae9453d1f81", "be39fdaf-5840-482f-a8b7-7c2b4efba1d0", "87c07719-7129-4f83-8ae1-27ff5b05fb28", "c642fe5d-b701-4579-82d4-8ab567c9ee3e"}, - Description = "IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokX", - DiscountUpperLimit = 4816, - DisplayStartsAt = "2022-03-02T22:41:12.000000Z", - DisplayEndsAt = "2022-06-01T20:56:17.000000Z", - IsDisabled = true, - IsHidden = false, - IsPublic = true, - Code = "coqfiAU", - UsageLimit = 3590, - MinAmount = 6951, - StorageId = "f10f2ad8-6c78-4e91-a346-d59dc58fd3df", + DiscountPercentage = 7259.0, + IsShopSpecified = true, + AvailableShopIds = new string[]{"83e9307e-f8e9-43cf-a124-494a14fa6f96", "b768a76b-b5b8-4512-a423-3d2753f778c8", "8a472157-2557-4b9f-a2d8-0c4fd4b6461e", "43662892-5c4d-4e73-b91a-a4cd2a1f3e8c", "d8330cde-f2d6-4a90-9802-890beab432a3", "1a395a91-f0a8-451b-91cc-d1313ff0cb08", "6835311d-4489-4159-8f30-31a83c1d095f", "961a639b-2646-4f3e-9326-d989b143b97a", "042db78d-4eaa-4e0b-afd6-57c7d92fb8e0", "71011504-1490-431b-abf1-284ff43bcecb"}, + Description = "oU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr4I9qCPq1klPYIi4fgZzpFf9vCRDU8J59OtcokEMMVhmKz2iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZn", + DiscountUpperLimit = 6299, + DisplayStartsAt = "2024-01-27T13:55:31.000000Z", + DisplayEndsAt = "2023-03-28T10:50:23.000000Z", + IsDisabled = false, + IsHidden = true, + IsPublic = false, + Code = "CWxbc4", + UsageLimit = 6312, + MinAmount = 7229, + StorageId = "79e59fbd-ceb0-4e50-b2c4-ee2a4708567f", }; Response.CouponDetail 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 baa4288..4a71980 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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.com" ) { - ContactName = "GJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O", + ContactName = "ASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5", }; 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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.com" ) { - BankAccountHolderName = "\\", - ContactName = "lAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeK", + BankAccountHolderName = "7", + ContactName = "WZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4", }; 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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.com" ) { - BankAccount = "15538", - BankAccountHolderName = ")", - ContactName = "22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5pa", + BankAccount = "", + BankAccountHolderName = "X", + ContactName = "453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh", }; 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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.com" ) { - BankAccountType = "saving", - BankAccount = "843", - BankAccountHolderName = ".", - ContactName = "yMo26iqol80j1t4n3lpn", + BankAccountType = "other", + BankAccount = "5", + BankAccountHolderName = "/", + ContactName = "Adcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsX", }; 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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.com" ) { - BankBranchCode = "", - BankAccountType = "current", - BankAccount = "843486", - BankAccountHolderName = ".", - ContactName = "eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperY", + BankBranchCode = "280", + BankAccountType = "saving", + BankAccount = "4217", + BankAccountHolderName = "ル", + ContactName = "pIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8", }; 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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.com" ) { - BankBranchName = "hU5vbLxW8", - BankBranchCode = "", - BankAccountType = "current", - BankAccount = "580", - BankAccountHolderName = "ヲ", - ContactName = "u89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMl", + BankBranchName = "diYCurcmVOPZzwM", + BankBranchCode = "871", + BankAccountType = "saving", + BankAccount = "", + BankAccountHolderName = "キ", + ContactName = "pW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8", }; 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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.com" ) { - BankCode = "9677", - BankBranchName = "oPmNQWU6zl3h", - BankBranchCode = "", - BankAccountType = "saving", - BankAccount = "37", - BankAccountHolderName = ")", - ContactName = "IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KR", + BankCode = "", + BankBranchName = "q15XpRuu89q3NykiRPYO2oQiAY", + BankBranchCode = "382", + BankAccountType = "other", + BankAccount = "589", + BankAccountHolderName = "「", + ContactName = "SjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV", }; 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( - "WEjltqaYkhp7caXjUtBcNe9XyY4wthFo", - "glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlV", - new string[]{"f29b0be7-8830-4a3c-810c-5acec4f37445", "262d2048-91c3-4c23-bd6a-5f3ea7574db5", "b986c995-84ff-443d-9d5e-631998ae891d", "4856285f-619d-47e5-a7cd-a2197b4bb22c", "da4e4b2f-0d5d-4db8-9db0-af35e4b2ff53", "3f2b2a77-a3f4-4373-9c67-405b61f28eb2", "8fe43d06-f0ce-426b-87ca-83c26028602b", "4f514916-2cbe-4384-84f6-bb75bfe2a478"}, - "WoqdLq3QmH@RbZp.com", - "wbPRidVG7B@6haj.com" + "M3mKKWyblmmAHRS", + "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + new string[]{"c162839b-9e5f-4047-9ea9-3e480c0210b7", "76573a0f-38a9-4258-8b03-f77eaed499ce", "3f42ae17-176f-452e-877e-fc44d08801ac", "806d367c-5f7b-4a70-b171-6518af67b3ea", "cf8860d9-1eba-4b55-a134-28b2a935ccce", "e7ca0592-bd20-413b-8e98-6337c02f2f1f", "1381cbea-cee0-433f-90d7-802b62852894", "13909617-cfe2-4dd4-8c5b-13c1aebf60aa", "588c51db-d5b8-4af3-8528-8d8de287cdd4"}, + "9CjYdhYyR9@ZtWh.com", + "MAKSZHQ2Tj@ahc0.com" ) { - BankName = "DxSSppVORQLy6PO73cHGKqjz0v27dHE8", - BankCode = "", - BankBranchName = "eh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2F", + BankName = "uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSp", + BankCode = "0682", + BankBranchName = "QLy6PO73cHGKqjz0v27dHE8reh", BankBranchCode = "", - BankAccountType = "other", - BankAccount = "9652717", - BankAccountHolderName = "ム", - ContactName = "RCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VU", + BankAccountType = "current", + BankAccount = "09", + BankAccountHolderName = "テ", + ContactName = "2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJ", }; Response.Organization response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestCreateShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestCreateShop.cs index 7fe2ca3..e06a083 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( - "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" + "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" ); 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( - "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" + "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" ) { - OrganizationCode = "8GKA8B--Yx--7Lw-HR09g---0--6", + OrganizationCode = "5f--P--", }; 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( - "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" + "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" ) { - ShopExternalId = "DH6cAdyVZn4o55A5DS", - OrganizationCode = "M---aZN9aTZ-MACo-8Dz", + ShopExternalId = "wwlNZ", + OrganizationCode = "cv3786tt-8b-tR--", }; 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( - "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" + "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" ) { - ShopEmail = "R94JgHtiXr@fi45.com", - ShopExternalId = "gdORj3Jla3Pfb8OgNhhqnfBQjV", - OrganizationCode = "-l4", + ShopEmail = "x8cOR3TFR9@a8hM.com", + ShopExternalId = "Mtt7RdIKeKSciqwdkkgvqZ", + OrganizationCode = "Z0-50-gK-d-ZQh66q", }; 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( - "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" + "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" ) { - ShopTel = "03069596-8709", - ShopEmail = "eVkLQLhc7h@buv3.com", - ShopExternalId = "B8S8pH3eqOx8cOR3TFR9a8hM", - OrganizationCode = "-8l--M2-R-1f--Bayj6cu", + ShopTel = "0268705290", + ShopEmail = "29oTCv16fP@XjhV.com", + ShopExternalId = "pKgtr0aXml0I8", + OrganizationCode = "KYD6-Qy-02Yp----iy-A0", }; 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( - "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" + "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" ) { - ShopAddress = "ryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4L", - ShopTel = "090991535", - ShopEmail = "GHUnCvc4A5@HlCo.com", - ShopExternalId = "2a7OllUlOCGYapVIyu0", - OrganizationCode = "-J-7--VX-Vq-xE", + ShopAddress = "8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNj", + ShopTel = "0109-309718", + ShopEmail = "ADYEWxDRpy@5o7r.com", + ShopExternalId = "N4eiDq", + OrganizationCode = "Y2lJz-JS2K-H-k4Jp2m---", }; 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( - "hqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIh" + "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" ) { - ShopPostalCode = "640-8980", - ShopAddress = "VYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2g", - ShopTel = "07-3343-3491", - ShopEmail = "gSjd1Lu4N1@G4Dl.com", - ShopExternalId = "fWLsx2", - OrganizationCode = "-RiV-tm-7-0-", + ShopPostalCode = "850-7917", + ShopAddress = "tSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9", + ShopTel = "0848-097", + ShopEmail = "3fT2ekfbMy@pSoZ.com", + ShopExternalId = "rm", + OrganizationCode = "k610S7NJ-u-h9D0B79-", }; 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 fa8e499..e0853ed 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( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ); 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( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ) { - CanTopupPrivateMoneyIds = new string[]{}, + CanTopupPrivateMoneyIds = new string[]{"a97e4d57-f3f0-40db-bc7b-690dac7645e5", "dc252447-0dd6-4ba1-95f4-41ad2f0d6d37", "0fffc042-3507-4d1a-a3d4-ba3a7d64a460", "93d3b47f-349f-4e74-a7cb-933395ef0809", "aa7b09ad-7f5d-42ac-a116-923b71619f9c", "f28dcdd6-c177-49be-bb24-810bc594df8b", "136d8162-a009-4755-9367-dc5f76c294d8", "2d640bc9-d190-4e47-a6c4-003b3b7d2250"}, }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task CreateShopV22() { try { Request.CreateShopV2 request = new Request.CreateShopV2( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ) { - PrivateMoneyIds = new string[]{"021a463d-0616-440a-b26d-2fbeb9ac8b3d", "aa2644fd-d013-4976-8f4f-3611110f19ed", "14a00056-65f1-47c0-b9b7-d0e0a5c529cc", "9cb66f3a-45a3-4ac8-8c49-52ad2c40b85b", "e21b0a54-be90-47f0-aa43-c3538d100963", "57ac104d-1d3c-4335-b084-42db48ed679e", "d2f1506f-ed1c-4c8a-b69e-3e26cd9b2b7a", "03a015d1-99f2-4f5b-a0d5-3fbac3180492"}, - CanTopupPrivateMoneyIds = new string[]{"34fbea0b-c607-47b5-8df9-4a89a9816cbf", "e27477c8-cdf4-4e6f-80fc-d9df74d46d47"}, + PrivateMoneyIds = new string[]{"f88b5ed0-6726-4f18-b748-530dd7a66cc5", "72710844-5a5f-422e-9d30-bd4b7a49c5be", "0ede1a74-0d28-4195-adad-fb44a3d4eb5e", "26378601-c10a-4efa-b8cc-f1d5ab6d912c", "d1e5462f-0962-49d5-9c24-b08dd6e27765", "1a6f71e7-8bb7-4ef7-a138-9c08250f055b"}, + CanTopupPrivateMoneyIds = new string[]{"9aaf2bc0-b87d-4a13-9695-36fb7866477d", "dc24ec29-5e49-40d5-8837-2e5502fe084b", "7a298ce8-2189-4b9d-bc21-2bf88f125b4c"}, }; 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( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ) { - OrganizationCode = "l----D-ctVbMJ61W9htR-3Va0Ay", - PrivateMoneyIds = new string[]{"05596275-2289-4aa4-af88-88a7b98cd11f", "2d8d01fe-4087-48f8-9e61-57abac7207a3", "e334e339-321f-4163-a6a6-962c429b088c", "a3219471-ab64-44c2-ba8a-7cdab8b6dc5e", "ceca6d8d-4f42-457e-933b-435370383001", "aeeeb279-bda5-4df5-bb15-88d055e6c840", "85284173-8d4c-4867-a3b1-b9b48004810a", "472b45ea-322f-4852-a9c8-e43148ba70dd", "e19cf3e4-f461-4e83-81ca-9757b16f2c6b"}, - CanTopupPrivateMoneyIds = new string[]{"a97e4d57-f3f0-40db-bc7b-690dac7645e5", "dc252447-0dd6-4ba1-95f4-41ad2f0d6d37", "0fffc042-3507-4d1a-a3d4-ba3a7d64a460", "93d3b47f-349f-4e74-a7cb-933395ef0809", "aa7b09ad-7f5d-42ac-a116-923b71619f9c", "f28dcdd6-c177-49be-bb24-810bc594df8b", "136d8162-a009-4755-9367-dc5f76c294d8", "2d640bc9-d190-4e47-a6c4-003b3b7d2250"}, + OrganizationCode = "-HQ-Ro6-Ya7W2---", + PrivateMoneyIds = new string[]{"9ead6d97-097b-487e-9714-3c57c7d00812"}, + CanTopupPrivateMoneyIds = new string[]{"3fad58e5-2ab6-4b26-b949-2f938743bbdf", "d9346ac8-abc3-400a-a790-66840a64a5ab"}, }; 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( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ) { - ExternalId = "PwHED0", - OrganizationCode = "I-LjBmQNU-8", - PrivateMoneyIds = new string[]{"54a3bfb3-4c30-4334-b1e3-77e03818377a", "2abe7376-5b55-4937-b47c-2a69ec5e4ad4", "b56f1029-3e14-4e47-abce-7895c7242b83", "13a9ed59-c901-4484-977e-24eceb302044", "bb113279-533b-4152-ab33-4761d6ff3a7e", "0475f147-e14d-409e-b0f3-6205b5da1331", "10689348-129e-41ce-b2cf-12acaa1d6e3b", "44b4a686-1c17-4169-b828-c70092b5ceae", "3e86457b-340c-4ec7-9d16-dc7a7e2e6b82"}, - CanTopupPrivateMoneyIds = new string[]{"949746a3-a10f-43c0-977b-787e78f7cc17", "76f38c14-3c57-4812-b2e5-2ab6dcabbb26", "c0344cf9-5b49-4f93-9fc8-abc3e700300a"}, + ExternalId = "e3KvTMWtvAOdqc6t46b4EgFIpDVk", + OrganizationCode = "X6-rt-3sy-LB256zJw7T--EY-869Y", + PrivateMoneyIds = new string[]{"5f64556a-c481-4d81-9cf0-b2afb61ffd6f", "8bc071d9-6c4f-4ceb-864c-c959c3730c89", "644070e2-865d-484a-8d34-fe9c46da04b6", "30ebe918-39d9-4a47-ae12-a5a0762b58dd", "c0c20b4b-0944-47ca-a125-051757bd511a", "538cf11e-232a-4e56-91c1-599da68087ce", "091c0808-1ef4-4d66-a69b-08d5355c3a64", "cacfacc8-bfa8-45d6-a3f3-1e6fd1018075", "63e177fc-22f8-4a96-9833-b986e1080778"}, + CanTopupPrivateMoneyIds = new string[]{"de6731b9-ba12-40c3-a6c8-981305bcf564", "4e91d35a-f95f-4747-bd6b-7f45ee2eed17", "f93abace-e809-483f-92c4-d88173ca89d3", "670635eb-36a4-4952-b966-a9d7e78f9099", "a4f89b60-f14b-4e41-b86a-c98c69dc5424", "c36d46fc-11d1-4c88-97ea-798e105e3243", "68ec2842-b0b8-4492-9a1f-3140097e73ee", "af9522c6-e63f-4c2f-907c-1563c21e4c82", "3b5350f1-5912-48ed-8586-bca6c60bce98"}, }; 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( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ) { - Email = "ge3KvTMWtv@AOdq.com", - ExternalId = "c6t46b4EgFIpDVk2sqQhlA", - OrganizationCode = "56zJw7T--EY-869YkBq--", - PrivateMoneyIds = new string[]{"788b6c4f-1ceb-4986-8c59-0c89644070e2", "3b67865d-784a-40cd-b49c-04b630ebe918", "179039d9-8a47-4eae-92a0-58ddc0c20b4b", "50fd0944-b7ca-4021-a517-511a538cf11e", "6fbd232a-fe56-4151-819d-87ce091c0808", "876d1ef4-8d66-4926-9bd5-3a64cacfacc8", "be42bfa8-f5d6-4c63-b36f-807563e177fc", "fef022f8-5a96-4258-b386-07781431df49", "de6731b9-ba12-40c3-a6c8-981305bcf564", "4e91d35a-f95f-4747-bd6b-7f45ee2eed17"}, - CanTopupPrivateMoneyIds = new string[]{"6107883f-9012-4fc4-81d3-35eb718836a4", "b776e952-f479-4466-9799-9b60f974f14b", "033eae41-2378-406a-8c24-46fc52cf11d1", "b5934c88-afd7-43ea-8e43-2842315ab0b8", "0c506492-f39a-461f-80ee-22c688b2e63f", "3f574c2f-d090-4c7c-a382-50f1c5915912", "622c28ed-d045-4886-a698-564eda5c0c05", "37f0b966-7ec4-486f-bb95-5cbf014cddf2", "1bef7931-a6fa-45ac-a721-c0f74887ae3f"}, + Email = "NfDor1zgwF@9x3x.com", + ExternalId = "ZsR", + OrganizationCode = "3BAr-7-G9lrl", + PrivateMoneyIds = new string[]{"7eaa259f-ef33-4a4f-90ab-d8a1ef2b2df5", "29f04be4-3593-4ad8-b095-67048a140784", "82633b59-d0e8-4e2f-8ef7-7446a7bdf8d7", "c2628355-1841-45cb-8f3c-f0ee2f5845d7", "f670a0ec-b0e8-49ee-8cfc-1ce1a0a044a9", "5c482a30-01ec-4911-9e59-3703918782ce"}, + CanTopupPrivateMoneyIds = new string[]{"3bbff11f-d80d-453c-a2c5-f87d98f4575e"}, }; 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( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ) { - Tel = "09833002-082", - Email = "hH3FEHzbfU@4cD6.com", - ExternalId = "smAeqngifjNikqD", - OrganizationCode = "1-CO7", - PrivateMoneyIds = new string[]{"83f7244d-b0af-4356-9311-78e427eca4e2"}, - CanTopupPrivateMoneyIds = new string[]{"79717c39-c511-4680-8e3a-e9477cc25c35", "2b09a25d-1b61-4bc5-9b2a-dd33bd04f271", "fc8dcc34-a8a4-47e7-94ce-213913029686", "e1c79326-2633-4023-a748-32cacb75dca2", "f0654427-e741-40aa-bc3b-bf31e5ede99a", "0b3b8099-3dc6-422c-a6ab-be063fd4446e", "b3fd0b21-3582-452b-a558-901f38a834fe", "eefa4c86-9ed9-45d2-968d-20a2e96d2bb1", "65148f46-26a5-4bc2-b539-7bdbaaf636d6"}, + Tel = "0706-299-751", + Email = "E3q4gTN93g@HJA1.com", + ExternalId = "FfneXYRV1FBu9VqwmK2QWEkaIk3", + OrganizationCode = "-aH1U8-oB0RsBu", + PrivateMoneyIds = new string[]{"ae82df74-2702-4972-afa7-f8369df0cddf", "02b4209f-80b5-47d2-bacd-ae3c00e4c100", "46361234-8f53-43d9-9979-c8d7848404d0"}, + CanTopupPrivateMoneyIds = new string[]{"14b223a4-54b4-4804-a2b5-e24506be7ef6"}, }; 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( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ) { - Address = "wmK2QWEkaIk3Nf304AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJx", - Tel = "00557643485", - Email = "b1QYmVCtk7@8Jxd.com", - ExternalId = "gtNZkgpDcQrvPvYu9rBG", - OrganizationCode = "RSvLJo", - PrivateMoneyIds = new string[]{"5eafa213-c341-428b-9f0d-e57be53ebae0", "3586a578-aa08-48d5-b87e-889150ee8278", "f1a4cbab-596f-454a-b3ed-4fb2f361cc63", "fe57dc18-4d00-497e-9c4f-e4d92b48fe46", "af610609-147c-43a3-8eb3-e86622b1d44a", "3272d559-2305-4b5d-b75d-db16ef1990a6", "56d06feb-4f8f-484c-82db-45695f2d360e"}, - CanTopupPrivateMoneyIds = new string[]{"70ea7ac0-0661-4f96-9e04-510fe3e1533f", "b309dec0-6ca8-4b0b-810b-fcf30660fa4e", "e9468349-c018-4733-94d1-df347268d855", "70783ee2-e5e2-4424-9f14-493813bdfb9c", "3cab1f40-b123-49d5-bf34-5e4cc80b38ef"}, + Address = "FhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWy", + Tel = "0258643-2381", + Email = "fyfPvqbgkb@gVyE.com", + ExternalId = "xJx", + OrganizationCode = "z2xJYke----Du6670x3", + PrivateMoneyIds = new string[]{"cafc81d1-aef2-4076-833e-7e999db852fb"}, + 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( - "5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZA" + "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" ) { - PostalCode = "5755698", - Address = "VQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmfQbT09Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFM", - Tel = "055048-196", - Email = "yxvlj5Kalq@xA7H.com", - ExternalId = "qvdSNveWz", - OrganizationCode = "24-hS-Xw8u0Ph2Nc97g-LP-", - PrivateMoneyIds = new string[]{"1ce90ba7-0bb7-4ab6-add4-f66f8482615c", "544ea624-91c8-4c2e-a3e3-5f7cda8dcba1", "5e046b89-5708-498d-ac00-36b877ee30e4", "94dfeef4-9522-4a2a-ba3f-e615a2685b63", "3449b0f1-882d-4fc4-b6f2-9a713770462e", "e37dbe40-107f-45f7-8726-29448a57f2fd", "f7623a88-6a56-46d2-a46f-c5a019ca9cea"}, - CanTopupPrivateMoneyIds = new string[]{"34361b47-5a6a-447b-a967-6648a560cc70", "dd98a114-451f-46da-bb04-a36cbf8a121b", "99048d9d-8392-4838-896e-c315c506f9a5", "7c3481a6-a82d-46c8-a213-c6d1731a8542", "b9625ee8-fecd-403b-897b-428eea6f2172"}, + PostalCode = "5669559", + Address = "rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClW", + Tel = "09370795-600", + Email = "6qorRSF9NZ@ATmh.com", + ExternalId = "oWmfQbT09Lp665rg0d7eG", + OrganizationCode = "toK78LG2-", + PrivateMoneyIds = new string[]{"3722fedb-fcc9-4e09-9167-d75d534492f7", "53930cf8-7113-4e23-b86f-3deff057915d", "1043c491-d7fc-4cf3-8acc-fecbb246bab5"}, + CanTopupPrivateMoneyIds = new string[]{"3bad8971-45b6-40a8-beb7-1e2a4bd1a5a9", "70984756-99ac-4c18-984d-a9057f5454f0"}, }; Response.ShopWithAccounts 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 43f6f97..d8d4a7b 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( - "1ab73dbc-530a-4a75-bfce-3f20a4f4f41c" + "3ef0155b-df73-4fe6-95b3-029be84e5c80" ); 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( - "1ab73dbc-530a-4a75-bfce-3f20a4f4f41c" + "3ef0155b-df73-4fe6-95b3-029be84e5c80" ) { 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 fcac755..490a7a7 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestCreateWebhook.cs @@ -26,7 +26,7 @@ public async Task CreateWebhook0() try { Request.CreateWebhook request = new Request.CreateWebhook( "process_user_stats_operation", - "B891rPV7F" + "oF" ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestDeleteWebhook.cs b/src/PokepayPartnerCsharpSdk.Test/TestDeleteWebhook.cs index 1605ca2..714ff74 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( - "f09ba024-80a2-44cf-9a60-7e9d56f684b1" + "757ac34d-0129-43a0-b828-78c4e69be2aa" ); Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetBulkTransaction.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetBulkTransaction.cs index 6e75495..cd34269 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( - "3ed176a1-e054-42ad-80a1-789f9f6323fd" + "9ad02669-f2ce-43aa-878d-0615fd1d73ab" ); 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 2fce4c4..569354c 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( - "271b4b7b-4908-4820-81af-8b927793bea2" + "663770d7-bf54-4cf0-86b6-9fb6e0dc55af" ); 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 0c8d17b..ba9b832 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( - "930b0fbd-881e-47e9-8e12-d168522fcd4e" + "5512a3ba-aadc-4358-870a-6d9abd7d2b7c" ); Response.CashtrayWithResult 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 cf3cc68..846328f 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( - "b8a9e22b-b9d2-427a-a40f-9b3c5ce58991" + "37ca2208-5d71-4368-b393-e89b31863544" ); Response.CouponDetail 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 fb668b8..042dbdc 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( - "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" + "d131a915-2939-44d5-b344-449adb4679be" ); 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( - "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" + "d131a915-2939-44d5-b344-449adb4679be" ) { - Page = 3171, + Page = 6767, }; 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( - "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" + "d131a915-2939-44d5-b344-449adb4679be" ) { - PerPage = 3815, - Page = 8720, + PerPage = 8597, + Page = 1535, }; 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( - "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" + "d131a915-2939-44d5-b344-449adb4679be" ) { - From = "2022-05-07T10:50:17.000000Z", - To = "2020-06-21T04:11:02.000000Z", + From = "2023-04-08T17:43:14.000000Z", + To = "2020-02-26T11:52:13.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( - "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" + "d131a915-2939-44d5-b344-449adb4679be" ) { - From = "2021-11-09T07:50:51.000000Z", - To = "2020-02-07T11:49:14.000000Z", - Page = 9542, + From = "2021-08-23T00:04:33.000000Z", + To = "2021-05-06T17:07:04.000000Z", + Page = 7960, }; 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( - "d8b99c9b-157c-4c26-b8cb-a653d242dd9c" + "d131a915-2939-44d5-b344-449adb4679be" ) { - From = "2023-03-29T21:09:55.000000Z", - To = "2023-12-24T11:05:04.000000Z", - PerPage = 8558, - Page = 4876, + From = "2021-08-12T01:57:43.000000Z", + To = "2022-03-26T03:33:02.000000Z", + PerPage = 9256, + Page = 7137, }; 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 ba2d9d3..ec3b670 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( - "f3db3178-c932-44fa-939a-ee7eab246f13" + "e7cd26a1-9168-425c-9d09-636dbe75dd68" ); 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( - "f3db3178-c932-44fa-939a-ee7eab246f13" + "e7cd26a1-9168-425c-9d09-636dbe75dd68" ) { - To = "2023-03-31T23:23:39.000000Z", + To = "2021-11-10T15:25:11.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( - "f3db3178-c932-44fa-939a-ee7eab246f13" + "e7cd26a1-9168-425c-9d09-636dbe75dd68" ) { - From = "2020-05-17T23:35:35.000000Z", - To = "2021-05-12T16:59:00.000000Z", + From = "2022-12-25T19:43:41.000000Z", + To = "2020-08-05T15:13:26.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 94219fd..699f7bc 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 = 8186, + PerPage = 5471, }; 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 = 5810, - PerPage = 4290, + Page = 3814, + PerPage = 6679, }; 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 = "3----MH-9o-yfn-lICQwSF6", - Page = 1459, - PerPage = 8245, + OrganizationCode = "2-0H-3-2f7yZ-n9----e-30kbsk2H-5J", + Page = 9536, + PerPage = 6615, }; Response.PaginatedPrivateMoneys response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestGetShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestGetShop.cs index f1283e4..8f3a22a 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( - "638ae364-4dda-474a-8c54-0198b0d9e027" + "fc39bb18-ffda-4647-a8cd-4553857aa692" ); Response.ShopWithAccounts 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 560797c..c99107b 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( - "c7d6be88-e502-4c42-94a1-cd410a9c1064" + "97103bd4-55aa-4e14-838c-d7b19e377bc1" ); Response.UserDevice 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 4700cab..81c1db9 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( - "0399760e-177b-4721-abb6-9da85b2a76e8" + "9e9585ea-3721-4a9d-b41f-db2253895544" ); 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( - "0399760e-177b-4721-abb6-9da85b2a76e8" + "9e9585ea-3721-4a9d-b41f-db2253895544" ) { - PrivateMoneyId = "602e3bc8-a0b5-4ff1-abb5-6710ad5b63db", + PrivateMoneyId = "cec34104-64b1-4b8c-96a5-4f590e92a4fb", }; Response.Banks 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 01977a4..10a8c5b 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( - "396b57b8-9918-46a2-9917-1332bb970e27" + "8d19d42d-8c55-410d-a223-f18af8702f99" ); 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( - "396b57b8-9918-46a2-9917-1332bb970e27" + "8d19d42d-8c55-410d-a223-f18af8702f99" ) { - PerPage = 9248, + PerPage = 5933, }; 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( - "396b57b8-9918-46a2-9917-1332bb970e27" + "8d19d42d-8c55-410d-a223-f18af8702f99" ) { - Page = 8273, - PerPage = 8353, + Page = 6622, + PerPage = 3346, }; 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 d2f8b5f..0487c98 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( - "1029f3a2-29b0-4851-9740-e009da5deadf" + "e97d96a6-4994-49cd-9ab3-81e6fe93b873" ); 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( - "1029f3a2-29b0-4851-9740-e009da5deadf" + "e97d96a6-4994-49cd-9ab3-81e6fe93b873" ) { - PerPage = 17, + PerPage = 28, }; 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( - "1029f3a2-29b0-4851-9740-e009da5deadf" + "e97d96a6-4994-49cd-9ab3-81e6fe93b873" ) { - Page = 6468, - PerPage = 35, + Page = 8812, + PerPage = 33, }; 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( - "1029f3a2-29b0-4851-9740-e009da5deadf" + "e97d96a6-4994-49cd-9ab3-81e6fe93b873" ) { - AvailableTo = "2023-10-26T19:25:16.000000Z", - Page = 3633, - PerPage = 37, + AvailableTo = "2020-07-14T14:34:50.000000Z", + Page = 5746, + PerPage = 25, }; 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( - "1029f3a2-29b0-4851-9740-e009da5deadf" + "e97d96a6-4994-49cd-9ab3-81e6fe93b873" ) { - AvailableFrom = "2023-02-14T10:16:52.000000Z", - AvailableTo = "2020-06-07T11:35:32.000000Z", - Page = 6089, - PerPage = 21, + AvailableFrom = "2022-02-21T01:02:48.000000Z", + AvailableTo = "2022-04-09T08:29:11.000000Z", + Page = 408, + PerPage = 35, }; 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( - "1029f3a2-29b0-4851-9740-e009da5deadf" + "e97d96a6-4994-49cd-9ab3-81e6fe93b873" ) { - IsOngoing = true, - AvailableFrom = "2022-03-30T07:03:15.000000Z", - AvailableTo = "2023-05-29T03:53:29.000000Z", - Page = 2268, - PerPage = 1, + IsOngoing = false, + AvailableFrom = "2023-05-31T11:07:36.000000Z", + AvailableTo = "2022-07-22T02:58:39.000000Z", + Page = 3467, + PerPage = 35, }; Response.PaginatedCampaigns 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 ec7dffc..76e7344 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ); 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ) { - PerPage = 8608, + PerPage = 4036, }; 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ) { - Page = 8394, - PerPage = 9522, + Page = 2610, + PerPage = 3564, }; 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ) { - AvailableTo = "2023-12-24T18:42:20.000000Z", - Page = 369, - PerPage = 1597, + AvailableTo = "2022-10-30T15:41:29.000000Z", + Page = 1343, + PerPage = 5852, }; 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ) { - AvailableFrom = "2023-12-02T09:22:37.000000Z", - AvailableTo = "2021-07-05T19:20:23.000000Z", - Page = 804, - PerPage = 537, + AvailableFrom = "2022-07-23T12:05:11.000000Z", + AvailableTo = "2023-12-25T11:20:15.000000Z", + Page = 4692, + PerPage = 6987, }; 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ) { - AvailableShopName = "NkX1wbt", - AvailableFrom = "2020-05-03T12:17:12.000000Z", - AvailableTo = "2021-09-16T20:37:30.000000Z", - Page = 7209, - PerPage = 8097, + AvailableShopName = "t", + AvailableFrom = "2022-09-20T11:42:56.000000Z", + AvailableTo = "2020-10-04T03:55:03.000000Z", + Page = 177, + PerPage = 6137, }; 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ) { - IssuedShopName = "h4XHkBbx", - AvailableShopName = "0Rn", - AvailableFrom = "2021-05-10T03:01:31.000000Z", - AvailableTo = "2020-05-26T09:28:44.000000Z", - Page = 117, - PerPage = 1374, + IssuedShopName = "zgZ3SAsj", + AvailableShopName = "A", + AvailableFrom = "2022-11-23T12:41:58.000000Z", + AvailableTo = "2021-11-05T17:31:33.000000Z", + Page = 849, + PerPage = 7307, }; 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ) { - CouponName = "rGJS2N5S6E", - IssuedShopName = "EO5Bp0T", - AvailableShopName = "aBrmndiCNx", - AvailableFrom = "2023-10-31T02:15:52.000000Z", - AvailableTo = "2022-11-25T09:52:24.000000Z", - Page = 5377, - PerPage = 9080, + CouponName = "wO", + IssuedShopName = "MEx", + AvailableShopName = "C1w6", + AvailableFrom = "2023-07-14T05:00:25.000000Z", + AvailableTo = "2021-01-18T09:29:10.000000Z", + Page = 826, + PerPage = 1755, }; 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( - "ce18681e-5c83-427d-b862-0de280711893" + "b369ca49-cb16-4318-8c81-b9b3476e6801" ) { - CouponId = "aRAeTxf", - CouponName = "0YQCHz", - IssuedShopName = "OG8zcqkOx", - AvailableShopName = "GcWZjjM6j3", - AvailableFrom = "2022-02-02T14:30:51.000000Z", - AvailableTo = "2022-08-14T20:03:11.000000Z", - Page = 5094, - PerPage = 2991, + CouponId = "stqj7j", + CouponName = "J1Xazd0M0", + IssuedShopName = "E8", + AvailableShopName = "si7", + AvailableFrom = "2021-03-21T03:47:10.000000Z", + AvailableTo = "2022-02-22T01:50:15.000000Z", + Page = 2183, + PerPage = 7920, }; 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 99cf081..dc5fa01 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ); 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ) { - PerPage = 1705, + PerPage = 8256, }; 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ) { - Page = 3943, - PerPage = 2309, + Page = 2206, + PerPage = 7490, }; 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ) { - To = "2022-02-22T06:42:36.000000Z", - Page = 4910, - PerPage = 3622, + To = "2020-01-20T01:11:03.000000Z", + Page = 9694, + PerPage = 9903, }; 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ) { - From = "2020-09-17T07:45:03.000000Z", - To = "2021-02-15T21:51:48.000000Z", - Page = 5516, - PerPage = 2876, + From = "2020-02-01T11:11:06.000000Z", + To = "2020-11-08T11:23:32.000000Z", + Page = 5385, + PerPage = 4709, }; 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ) { - IsModified = false, - From = "2021-05-27T16:30:20.000000Z", - To = "2022-05-15T11:26:21.000000Z", - Page = 5666, - PerPage = 5023, + IsModified = true, + From = "2022-10-29T14:50:22.000000Z", + To = "2021-04-30T22:35:59.000000Z", + Page = 7609, + PerPage = 8380, }; 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ) { - Type = "transfer", - IsModified = true, - From = "2022-07-15T16:04:22.000000Z", - To = "2020-10-11T01:56:26.000000Z", - Page = 1575, - PerPage = 5242, + Type = "expire", + IsModified = false, + From = "2021-08-04T03:54:08.000000Z", + To = "2022-10-12T21:59:05.000000Z", + Page = 8858, + PerPage = 4413, }; 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ) { - ReceiverCustomerId = "5ff1fa3b-b242-4f49-9085-9d71f75a9164", - Type = "transfer", - IsModified = false, - From = "2021-06-14T09:43:26.000000Z", - To = "2021-11-27T10:53:29.000000Z", - Page = 5317, - PerPage = 119, + ReceiverCustomerId = "9087f23e-f2a7-441c-b433-8d14b39040e8", + Type = "payment", + IsModified = true, + From = "2020-10-31T17:38:56.000000Z", + To = "2020-10-11T05:03:35.000000Z", + Page = 5983, + PerPage = 6393, }; 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( - "fbf34e5c-b131-4778-8208-3d289e0d477c" + "ec30906c-a4c4-4703-b5df-0ca652008481" ) { - SenderCustomerId = "18859557-4c3d-4189-a76e-8cd4f6340d52", - ReceiverCustomerId = "93051b76-fff2-4c8b-a9be-caa0c3ca72cd", + SenderCustomerId = "1e6c77d7-74a1-40cb-b0a5-1af95b4f3dbc", + ReceiverCustomerId = "81f23c66-355d-4806-bbfd-cd9a8c0411d3", Type = "cashback", IsModified = false, - From = "2020-01-13T01:47:09.000000Z", - To = "2020-01-16T02:05:37.000000Z", - Page = 7306, - PerPage = 7712, + From = "2021-06-10T12:34:18.000000Z", + To = "2022-06-18T07:50:48.000000Z", + Page = 6706, + PerPage = 1232, }; 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 fe0d1b4..526f41a 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( - "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + "fd11d67f-90f1-4aea-bfe7-8524bf4859f6" ); 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( - "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + "fd11d67f-90f1-4aea-bfe7-8524bf4859f6" ) { - Code = "jwDm", + Code = "Ncs", }; 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( - "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + "fd11d67f-90f1-4aea-bfe7-8524bf4859f6" ) { - Name = "dL", - Code = "IlDiaOh78", + Name = "QLQxA", + Code = "tJmVTcXWtK", }; 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( - "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + "fd11d67f-90f1-4aea-bfe7-8524bf4859f6" ) { - PerPage = 1885, - Name = "fh", - Code = "bZ3YfG", + PerPage = 5974, + Name = "kN", + Code = "d35", }; 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( - "2b583e72-c6e1-42c4-b5f5-b5a4d9f9a55f" + "fd11d67f-90f1-4aea-bfe7-8524bf4859f6" ) { - Page = 6140, - PerPage = 6311, - Name = "hlbqaOE", - Code = "lvScjtjkG1", + Page = 4321, + PerPage = 9262, + Name = "uBKlwozbM8", + Code = "BIp6WWFto", }; 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 ae9485a..2d71722 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 = 2642, + PerPage = 7130, }; 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 = 7164, - PerPage = 807, + Page = 7961, + PerPage = 6131, }; Response.PaginatedShops response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -70,8 +70,8 @@ public async Task ListShops3() try { Request.ListShops request = new Request.ListShops() { WithDisabled = true, - Page = 659, - PerPage = 3135, + Page = 3741, + PerPage = 4684, }; 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 = "r7fsBnFuG56tOVY8vi9Z9lrbTG", - WithDisabled = false, - Page = 2467, - PerPage = 1897, + ExternalId = "48UyLazcda", + WithDisabled = true, + Page = 4543, + PerPage = 8830, }; 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 = "4QbdPS2DfL@ew9j.com", - ExternalId = "cXjFRqAsdyU0E", - WithDisabled = true, - Page = 6790, - PerPage = 8997, + Email = "g9M9b56VUQ@zIG7.com", + ExternalId = "r7fsBnFuG56tOVY8vi9Z9lrbTG", + WithDisabled = false, + Page = 2467, + PerPage = 1897, }; 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 = "0896-96-5661", - Email = "09yrlyTlHc@xkp2.com", - ExternalId = "d", - WithDisabled = false, - Page = 3659, - PerPage = 5040, + Tel = "03-19-6229", + Email = "dPS2DfLew9@jsvL.com", + ExternalId = "XjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp", + WithDisabled = true, + Page = 5759, + PerPage = 8627, }; 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 = "s83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM", - Tel = "091-03463", - Email = "yAShBlCJPj@tVj6.com", - ExternalId = "A58jW2j8noWbhryHKQA", + Address = "diJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAS", + Tel = "028204669152", + Email = "8jW2j8noWb@hryH.com", + ExternalId = "KQAP2bBeZkmIh2UeN7", WithDisabled = true, - Page = 9827, - PerPage = 1799, + Page = 4607, + PerPage = 4277, }; 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 = "362-6999", - Address = "h2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtix", - Tel = "006203-8111", - Email = "0tz4EzkuhU@CHWp.com", - ExternalId = "5qyAYWUJWst1yIlHOt0", - WithDisabled = false, - Page = 4700, - PerPage = 6417, + PostalCode = "7747550", + Address = "MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0S", + Tel = "02-2481879", + Email = "xGHxi6f0cu@W1Zh.com", + ExternalId = "tCHCm7yUfJm7F", + WithDisabled = true, + Page = 9576, + PerPage = 403, }; 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 = "XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxG", - PostalCode = "0488969", - Address = "0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB", - Tel = "089081-725", - Email = "VYsbDyysRi@sRQ9.com", - ExternalId = "ectqoj4yKOsEPCrpQPvSjUDltH57", - WithDisabled = true, - Page = 4251, - PerPage = 1967, + Name = "8YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5N", + PostalCode = "0389723", + Address = "qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9", + Tel = "0728819628", + Email = "VF2gH7EAnl@FEgM.com", + ExternalId = "mBN0T80aLvrKoRyTXgPVT4AzeoZ", + WithDisabled = false, + Page = 9020, + PerPage = 9500, }; 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 = "0f619cdb-6882-4a79-b39c-6ac4d59ea4bf", - Name = "pO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI", - PostalCode = "470-8763", - Address = "tIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJ", - Tel = "0962274594", - Email = "rH7Ml90Eeu@ZgaP.com", - ExternalId = "20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq", + PrivateMoneyId = "ee4d51fd-5a4f-4a59-be75-cef5577dd231", + Name = "RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcN", + PostalCode = "282-5219", + Address = "0lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuw", + Tel = "013981-0924", + Email = "HLBFs4pFpu@xUcI.com", + ExternalId = "rb43g0nK7tb3btHVGJJQejQb3sdWf", WithDisabled = false, - Page = 3137, - PerPage = 6059, + Page = 344, + PerPage = 9090, }; 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 = "-325e-", - PrivateMoneyId = "1246ac4e-2bb0-4a00-9438-e8822439b330", - Name = "aLvrKoRyTXgPVT4AzeoZEOYu", - PostalCode = "5179201", - Address = "lWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90", - Tel = "092612595", - Email = "yLgJllatyS@0exo.com", - ExternalId = "ZwnX2Y3MjJVkSKFu78PD8Ns", - WithDisabled = true, - Page = 177, - PerPage = 5901, + OrganizationCode = "RfZph94--4G--48o-gVrg65t-Su", + PrivateMoneyId = "f6bd24bc-8d9a-4506-8eed-2dac62e4700e", + Name = "p3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", + PostalCode = "6777462", + Address = "eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKi", + Tel = "060673665", + Email = "qDH6cAdyVZ@n4o5.com", + ExternalId = "A5DSTN7FZ8Y8t8MIK7", + WithDisabled = false, + Page = 1530, + PerPage = 78, }; Response.PaginatedShops 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 ff0feaa..17162db 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestListTransfers.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestListTransfers.cs @@ -312,19 +312,19 @@ public async Task ListTransfers14() try { Request.ListTransfers request = new Request.ListTransfers() { From = "2021-06-05T17:48:04.000000Z", - To = "2020-12-26T02:42:27.000000Z", - Page = 218, - PerPage = 6793, - ShopId = "66729419-18d7-478c-8d83-149b011f45e1", - ShopName = "6BMdHbor9Bi8VjYj", - CustomerId = "ed0ac265-39c1-40c6-9eb8-7fe0ee0b134e", - CustomerName = "8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU", - TransactionId = "d59e9431-15a1-4f54-944e-4e02a1dc8d30", - PrivateMoneyId = "d8651879-e2d8-4d24-b687-def752387178", + To = "2024-02-27T08:22:21.000000Z", + Page = 532, + PerPage = 218, + ShopId = "51a32931-1a88-4419-978c-b74df4025183", + ShopName = "a6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYH", + CustomerId = "97e5ea88-c68d-491f-bca8-f848de508515", + CustomerName = "Or63hjnglJCcSZdRjCOwy", + TransactionId = "1e9be219-1b86-4e61-be70-00be2900f515", + PrivateMoneyId = "8a7d7a30-269c-476c-8ef3-9ae2daaeea9e", IsModified = false, - TransactionTypes = new string[]{"cashback"}, - TransferTypes = new string[]{"expire", "payment", "topup"}, - Description = "klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCId", + TransactionTypes = new string[]{"topup", "expire", "transfer", "exchange", "cashback"}, + TransferTypes = new string[]{"transfer", "exchange", "coupon"}, + Description = "U1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqI", }; 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 bdd3032..1e3f54b 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-08-19T09:40:54.000000Z", + To = "2023-04-24T11:52:04.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 = "2021-06-29T12:37:03.000000Z", - To = "2021-12-08T00:35:28.000000Z", + From = "2021-02-28T21:44:07.000000Z", + To = "2020-06-20T16:05:34.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 = "yGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1Uy", - From = "2023-05-04T18:11:47.000000Z", - To = "2021-03-13T04:02:07.000000Z", + Description = "L8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcL", + From = "2022-05-07T07:33:39.000000Z", + To = "2021-02-26T05:13:40.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[]{"exchange"}, - Description = "e7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4", - From = "2020-06-04T08:56:37.000000Z", - To = "2020-09-02T23:21:56.000000Z", + TransferTypes = new string[]{"expire", "cashback", "transfer", "campaign", "coupon"}, + Description = "IrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRf", + From = "2023-07-21T11:26:44.000000Z", + To = "2022-11-23T03:12:25.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 = 297, - TransferTypes = new string[]{"payment", "topup", "transfer", "exchange"}, - Description = "jBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSs", - From = "2022-06-21T00:34:38.000000Z", - To = "2023-01-26T05:28:13.000000Z", + PerPage = 717, + TransferTypes = new string[]{"transfer"}, + Description = "Ds9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98", + From = "2020-02-11T04:00:02.000000Z", + To = "2022-05-07T17:02:15.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 = "65886f64-2c16-4b5e-99fb-6b8d8458ed96", - PerPage = 177, - TransferTypes = new string[]{"campaign", "coupon"}, - Description = "UMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3", - From = "2022-01-05T07:30:06.000000Z", - To = "2022-09-20T11:11:38.000000Z", + PrevPageCursorId = "1e74191c-0e2d-4e1e-895f-03afddabfe94", + PerPage = 181, + TransferTypes = new string[]{"exchange", "campaign", "cashback", "expire", "payment", "transfer", "topup", "coupon"}, + Description = "5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVY", + From = "2023-09-25T07:38:16.000000Z", + To = "2021-08-28T00:48:34.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 = "672d3cd6-b0a8-4d1c-99e8-a6e2786c5ce8", - PrevPageCursorId = "d2e01834-8f52-4a8d-ac00-450c88ec6fd7", - PerPage = 677, - TransferTypes = new string[]{"coupon", "topup", "payment", "campaign"}, - Description = "Hu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBp", - From = "2021-12-11T01:14:52.000000Z", - To = "2023-07-19T13:57:18.000000Z", + NextPageCursorId = "786c5ce8-1834-4f52-8dac-dc000b29450c", + PrevPageCursorId = "88ec6fd7-f6a4-46b4-936a-840a0cb35793", + PerPage = 654, + TransferTypes = new string[]{"coupon"}, + Description = "u2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCb", + From = "2021-10-04T22:51:31.000000Z", + To = "2021-07-25T03:11:47.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[]{"cashback", "transfer", "topup"}, - NextPageCursorId = "71a10e9c-187a-4707-b33a-b446ff587ac8", - PrevPageCursorId = "627187ae-eb4c-4e7b-b9d0-62683691a03d", - PerPage = 496, - TransferTypes = new string[]{"transfer", "exchange", "coupon", "cashback", "expire", "payment"}, - Description = "kH0DrThI9ndCARX9iZh", - From = "2023-04-15T01:18:56.000000Z", - To = "2020-06-27T04:09:49.000000Z", + TransactionTypes = new string[]{"cashback", "topup", "exchange"}, + NextPageCursorId = "49e56398-02f9-498f-8bd5-da82a90641a4", + PrevPageCursorId = "a07d9779-cbfd-47c2-b08c-0abeb39dde94", + PerPage = 136, + TransferTypes = new string[]{"payment", "transfer", "cashback", "campaign"}, + Description = "FHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhq", + From = "2023-01-09T23:52:41.000000Z", + To = "2022-09-23T13:00:01.000000Z", }; Response.PaginatedTransfersV2 response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -187,14 +187,14 @@ public async Task ListTransfersV29() try { Request.ListTransfersV2 request = new Request.ListTransfersV2() { IsModified = false, - TransactionTypes = new string[]{"payment"}, - NextPageCursorId = "edffb40e-1a9b-43bb-9db8-cf55d7d5c222", - PrevPageCursorId = "c89b84e9-ec6a-4f1f-850f-3693c4fe4126", - PerPage = 351, - TransferTypes = new string[]{"expire", "cashback"}, - Description = "iBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUA", - From = "2022-06-10T13:23:32.000000Z", - To = "2022-04-23T08:03:19.000000Z", + TransactionTypes = new string[]{"payment", "expire", "cashback", "transfer"}, + NextPageCursorId = "0f0a9aca-721a-493c-a8d7-34c6b7765b7c", + PrevPageCursorId = "3b9d9ff7-83a3-413b-8106-37d301940baa", + PerPage = 604, + TransferTypes = new string[]{"expire", "campaign", "cashback", "payment", "coupon", "transfer", "exchange", "topup"}, + Description = "Ezja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQ", + From = "2022-05-16T21:50:12.000000Z", + To = "2021-03-30T17:45:55.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 = "e56cdcc7-1bfc-447a-bb2c-7e9111b2eb35", + PrivateMoneyId = "8325ccc8-e2f9-4169-862b-4f22fde3c66f", IsModified = false, - TransactionTypes = new string[]{"topup", "expire", "transfer", "exchange", "cashback"}, - NextPageCursorId = "5d38423f-2fe8-46a4-b5e3-6fa2e3178dbd", - PrevPageCursorId = "cc78835a-29a4-4328-a4b4-2aa7de9c2765", - PerPage = 957, - TransferTypes = new string[]{"topup", "expire"}, - Description = "0f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJ", - From = "2023-02-21T18:00:02.000000Z", - To = "2020-05-02T07:51:01.000000Z", + TransactionTypes = new string[]{"expire", "topup", "payment", "cashback", "transfer", "exchange"}, + NextPageCursorId = "cc574e88-c45d-4bc8-a0f1-e2fb9e931459", + PrevPageCursorId = "48e8f195-8779-4825-9f4b-dc1509dc54b8", + PerPage = 200, + TransferTypes = new string[]{"transfer", "exchange"}, + Description = "GU45uzPdd", + From = "2024-01-01T18:14:23.000000Z", + To = "2023-10-07T02:12:34.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 = "9c7e72ce-9e99-46ce-8094-8676f95241d5", - PrivateMoneyId = "7e366dc3-7d1e-4b30-a271-44099d6dc000", + TransactionId = "5301ba98-1230-42e4-830f-34cafde925a2", + PrivateMoneyId = "10a14565-72ce-4e99-8e80-3094f99e8676", IsModified = false, TransactionTypes = new string[]{"exchange"}, - NextPageCursorId = "16cc8c94-13f6-42df-9219-346dde3ce47e", - PrevPageCursorId = "0f6eaf64-0989-4e35-80c9-d304590cdca9", - PerPage = 185, - TransferTypes = new string[]{"coupon", "cashback"}, - Description = "GpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwi", - From = "2021-12-13T09:20:57.000000Z", - To = "2022-07-11T16:53:15.000000Z", + NextPageCursorId = "786b5f8f-7973-4931-a896-fb3fcb85de98", + PrevPageCursorId = "16cc8c94-13f6-42df-9219-346dde3ce47e", + PerPage = 869, + TransferTypes = new string[]{"payment", "cashback", "exchange", "coupon", "transfer"}, + Description = "brAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0", + From = "2022-07-17T06:33:19.000000Z", + To = "2024-01-06T19:53:08.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 = "v4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRW", - TransactionId = "bc1e782c-abc3-4059-ad73-53f73a4ea6df", - PrivateMoneyId = "da553f85-d736-4a56-92c2-0f95e9bc6266", + CustomerName = "G0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvT", + TransactionId = "67f248ff-d3ed-4517-a61d-d1eb3ef959d3", + PrivateMoneyId = "39bd4c70-3764-4ee3-bf9d-7a9147de42cc", IsModified = true, - TransactionTypes = new string[]{"topup"}, - NextPageCursorId = "28058465-86ae-48ef-a0d4-aca810e6a992", - PrevPageCursorId = "75d6bb30-4079-4e2f-ad0f-4bb6f0b251ae", - PerPage = 109, - TransferTypes = new string[]{"cashback", "topup", "payment", "expire", "exchange", "campaign"}, - Description = "yMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vUL", - From = "2020-04-15T05:25:39.000000Z", - To = "2023-08-01T18:44:38.000000Z", + TransactionTypes = new string[]{"payment", "cashback", "topup", "expire"}, + NextPageCursorId = "d66771ca-a929-4b51-891c-68523389333e", + PrevPageCursorId = "ded5f4e9-a29c-4ffc-b55f-47f6f497bed7", + PerPage = 222, + TransferTypes = new string[]{"transfer", "payment", "coupon", "cashback", "exchange", "campaign", "topup"}, + Description = "qbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EE", + From = "2022-12-30T12:00:08.000000Z", + To = "2022-09-01T12:57:42.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 = "f9e3f1bf-b679-4331-8689-01cb37ded2e4", - CustomerName = "Ttu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6Amswd", - TransactionId = "7c9090c0-2b41-4ecd-a81c-611f42162e33", - PrivateMoneyId = "8d8c83c9-134a-42f2-af77-70d6ac0fd2e2", - IsModified = false, - TransactionTypes = new string[]{"payment", "topup"}, - NextPageCursorId = "886f57cd-b8c3-4574-bf68-1c8c6d131169", - PrevPageCursorId = "b3d7d3fd-6bf6-44bb-b124-78e1020de332", - PerPage = 838, - TransferTypes = new string[]{"cashback", "topup", "exchange", "payment", "campaign"}, - Description = "mJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5o", - From = "2023-02-06T21:30:34.000000Z", - To = "2021-07-10T19:40:56.000000Z", + CustomerId = "9e4cd36d-0aae-429b-9dd1-a677220fb134", + CustomerName = "mJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5o", + TransactionId = "d5d5907a-16c8-4c44-aea2-a38ae2e9b1b0", + PrivateMoneyId = "0ce2db90-10e9-4892-bc8f-099326e0609a", + IsModified = true, + TransactionTypes = new string[]{"expire", "transfer", "cashback", "topup", "exchange"}, + NextPageCursorId = "9859849b-0e1b-438a-b9d2-cfaa3919a430", + PrevPageCursorId = "1e4c8d6e-961c-411b-81aa-20a7606e9f51", + PerPage = 236, + TransferTypes = new string[]{"topup", "exchange", "payment"}, + Description = "z7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvf", + From = "2022-03-09T22:13:49.000000Z", + To = "2024-01-10T05:02:11.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 = "n0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THno", - CustomerId = "e39440a4-a963-49e9-baeb-a2423dd79910", - CustomerName = "JOk", - TransactionId = "852fd018-fd23-481b-9cc4-a333ad15e046", - PrivateMoneyId = "1589b225-610f-4e5b-b677-e4abeeaa079e", - IsModified = true, - TransactionTypes = new string[]{"payment", "transfer", "topup", "cashback", "expire"}, - NextPageCursorId = "39868594-5690-4157-a312-0714d16fcf5b", - PrevPageCursorId = "523ae08d-4892-443c-8a10-e7edffe29c6d", - PerPage = 681, - TransferTypes = new string[]{"coupon", "cashback"}, - Description = "he3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNa", - From = "2021-09-22T02:26:26.000000Z", - To = "2023-06-20T15:39:02.000000Z", + ShopName = "Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8", + CustomerId = "f84c0fae-8671-4045-92fb-a25e36318b3e", + CustomerName = "1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9", + TransactionId = "b8368dc9-3490-4e44-8490-6d93394d4095", + PrivateMoneyId = "2934a934-e0c6-4d1a-bccc-945b27afb95d", + IsModified = false, + TransactionTypes = new string[]{"expire", "cashback", "transfer", "payment", "exchange"}, + NextPageCursorId = "ce4f63a2-a763-4e54-8425-62c3458bbd61", + PrevPageCursorId = "577317e6-a2f5-4b06-a30d-6e0764523ce0", + PerPage = 591, + TransferTypes = new string[]{"topup", "campaign", "expire"}, + Description = "50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MW", + From = "2021-05-31T10:22:22.000000Z", + To = "2022-11-13T18:05:41.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 = "9e72d8c4-4848-4989-b378-16e1c362db35", - ShopName = "ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyK", - CustomerId = "03721c8e-3199-4ccc-9e08-7f5b43c17edf", - CustomerName = "nZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU", - TransactionId = "1adae630-42ec-4a6e-8a93-fabd82af7659", - PrivateMoneyId = "5b332c25-6f7f-43d7-b7db-2bcd67e65e57", - IsModified = true, - TransactionTypes = new string[]{"expire", "topup"}, - NextPageCursorId = "8b5b9e65-d196-4f6a-bc45-6407db70a31d", - PrevPageCursorId = "f7242d6f-92ad-43ac-98e9-548625533f65", - PerPage = 921, - TransferTypes = new string[]{"campaign", "cashback", "coupon"}, - Description = "TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6K", - From = "2023-04-01T18:42:52.000000Z", - To = "2022-12-31T00:33:54.000000Z", + ShopId = "dd34396c-10f8-414a-8d71-9e655904d196", + ShopName = "EoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4", + CustomerId = "930a0e29-6b6a-428f-b718-6f7099d5e3fb", + CustomerName = "0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPM", + TransactionId = "30175c7a-6f58-456e-8164-bbc4f6b1b872", + PrivateMoneyId = "7af290dc-8205-40d9-b95b-59828e008db6", + IsModified = false, + TransactionTypes = new string[]{"expire", "payment", "topup"}, + NextPageCursorId = "478f9181-11d1-4fb9-b8bd-80fb6c039586", + PrevPageCursorId = "ae842453-150a-42ce-9830-a07a3220169b", + PerPage = 153, + TransferTypes = new string[]{"cashback", "coupon", "exchange", "expire", "transfer", "topup", "campaign"}, + Description = "ix", + From = "2022-05-30T00:08:09.000000Z", + To = "2023-12-14T02:17:58.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 a47f575..fbaca5a 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 = 1599, + PerPage = 6869, }; 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 = 8293, - PerPage = 6946, + Page = 7472, + PerPage = 2731, }; Response.PaginatedOrganizationWorkerTaskWebhook 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 3f1b6b5..dee5de5 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestRequestUserStats.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestRequestUserStats.cs @@ -25,8 +25,8 @@ public async Task RequestUserStats0() { try { Request.RequestUserStats request = new Request.RequestUserStats( - "2023-11-17T15:01:05.000000Z", - "2024-01-10T09:29:09.000000Z" + "2020-09-24T12:21:11.000000Z", + "2021-08-29T03:04:32.000000Z" ); Response.UserStatsOperation 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 6773478..72a75da 100644 --- a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCampaign.cs @@ -25,7 +25,7 @@ public async Task UpdateCampaign0() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ); Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,9 +40,9 @@ public async Task UpdateCampaign1() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - BudgetCapsAmount = 1827247006, + BudgetCapsAmount = 1846048109, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -57,10 +57,10 @@ public async Task UpdateCampaign2() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1019556332, + BudgetCapsAmount = 1161308371, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task UpdateCampaign3() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - MaxTotalPointAmount = 8352, + MaxTotalPointAmount = 5715, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 712591019, + BudgetCapsAmount = 1062068093, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -94,12 +94,12 @@ public async Task UpdateCampaign4() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - MaxPointAmount = 5025, - MaxTotalPointAmount = 3969, + MaxPointAmount = 6330, + MaxTotalPointAmount = 8831, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 981138288, + BudgetCapsAmount = 769812961, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -114,13 +114,13 @@ public async Task UpdateCampaign5() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { ExistInEachProductGroups = true, - MaxPointAmount = 9684, - MaxTotalPointAmount = 9375, + MaxPointAmount = 1270, + MaxTotalPointAmount = 124, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1031147602, + BudgetCapsAmount = 173694542, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -135,14 +135,14 @@ public async Task UpdateCampaign6() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - MinimumNumberForCombinationPurchase = 2340, + MinimumNumberForCombinationPurchase = 2135, ExistInEachProductGroups = true, - MaxPointAmount = 1626, - MaxTotalPointAmount = 5953, + MaxPointAmount = 1276, + MaxTotalPointAmount = 9060, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 384433878, + BudgetCapsAmount = 1165020838, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -157,15 +157,15 @@ public async Task UpdateCampaign7() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - ApplicableShopIds = new string[]{"f934281f-712c-470b-8810-edf5defae4c7"}, - MinimumNumberForCombinationPurchase = 1075, + MinimumNumberOfAmount = 3475, + MinimumNumberForCombinationPurchase = 5299, ExistInEachProductGroups = false, - MaxPointAmount = 1754, - MaxTotalPointAmount = 997, + MaxPointAmount = 6011, + MaxTotalPointAmount = 5516, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 586908290, + BudgetCapsAmount = 1777436902, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,16 +180,16 @@ public async Task UpdateCampaign8() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"c07475ff-69d1-4d9f-a59a-b4c3fb061e0f", "8287ffb3-d8dd-40b9-8160-fda2aedeae97", "dfd8438c-4abb-4f6e-9a84-c942c72bd255", "0a12ce76-c634-4e15-8746-702cf4e47138", "8aa40edf-eede-4003-8bca-0ddd6539b922", "85395937-f655-46af-97fa-ccf96ccd7806"}, - MinimumNumberForCombinationPurchase = 4499, + MinimumNumberOfProducts = 2258, + MinimumNumberOfAmount = 9990, + MinimumNumberForCombinationPurchase = 4946, ExistInEachProductGroups = true, - MaxPointAmount = 3600, - MaxTotalPointAmount = 7071, + MaxPointAmount = 3456, + MaxTotalPointAmount = 7634, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 2667324, + BudgetCapsAmount = 1301092573, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -204,17 +204,17 @@ public async Task UpdateCampaign9() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - ApplicableDaysOfWeek = new int[]{3, 1, 5, 6, 4, 1, 2, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"dddd63af-fde3-486d-90c9-4571c3cdcfe4", "c95b2ba7-3998-43ed-8076-001fc0eaa9a0", "67fa75ba-82d4-473c-9638-899ef669e4d2", "ffbbc042-f8fa-4aa3-991a-425ffa6bdd70", "25556a15-a6de-4e08-b080-46e7eb6c87aa"}, - MinimumNumberForCombinationPurchase = 618, + ApplicableShopIds = new string[]{"4bbd3162-b4bb-4f35-b1a5-46ba6148651b", "cda6d07a-1155-4544-aa81-b166dcba48f9", "ae7c1721-ee2a-4ec7-8270-e69fcc091380", "1c897513-09ce-47a6-9e6b-68493eed742b", "ac9ee7e9-c302-4e55-845b-fc98e531b5ae", "1e361976-63f3-4583-baab-1764889ba0a5", "b57c3e30-6037-4bbd-8c69-5b82ea40fb33", "8e158dc7-99f9-4fbc-99ad-1a86bddc371e"}, + MinimumNumberOfProducts = 9363, + MinimumNumberOfAmount = 1299, + MinimumNumberForCombinationPurchase = 4422, ExistInEachProductGroups = true, - MaxPointAmount = 8579, - MaxTotalPointAmount = 2970, + MaxPointAmount = 2933, + MaxTotalPointAmount = 6728, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 945599052, + BudgetCapsAmount = 233495880, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -229,18 +229,18 @@ public async Task UpdateCampaign10() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{5, 3, 3, 5, 2, 2, 4, 1}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"b51020a3-76ad-44d1-9f3e-7d4426219476", "67d3e939-405b-4e54-8ed7-95b3ed4fd8df", "002e5c04-762f-46f4-af97-f56eecab59f2", "0c10f216-bbf5-44b5-843d-ac0159bd5f2e", "0cd2aef8-9e78-4f9b-92a7-f78d8c1b9d97", "d973c19d-9522-4edc-8731-d22eff86566b", "95479d96-ef22-497d-88e9-aa5200c399b4", "cd651564-4b61-44d4-9304-ed5456fd4db4", "75d3759f-b13f-4830-b1fb-a893c52a265e"}, - MinimumNumberForCombinationPurchase = 641, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"1ed1f2c7-d3a2-4058-af35-53e03c81bd2e", "f3b70088-e1ba-4a0f-9550-f6843e6f4da2"}, + MinimumNumberOfProducts = 1838, + MinimumNumberOfAmount = 5548, + MinimumNumberForCombinationPurchase = 160, ExistInEachProductGroups = true, - MaxPointAmount = 8666, - MaxTotalPointAmount = 3771, + MaxPointAmount = 7207, + MaxTotalPointAmount = 2538, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1970190781, + BudgetCapsAmount = 39477703, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -255,19 +255,19 @@ public async Task UpdateCampaign11() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{5, 3, 1, 2, 5, 0}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"9472aaef-7889-4004-b503-169ce226f420", "442ccffc-fa52-4cb8-a594-2c92aef5f4c8", "bded2d5b-1c2b-49c4-a521-1549582c3172", "09208be7-cd33-4a08-b83b-df143b10c829", "a7cbdf55-307b-4944-9c69-60f828163ca1", "2011ccde-7f52-47fb-825e-7ed14b48fd20", "98228a9f-6d1f-4f95-93a1-d14fb04b8819"}, - MinimumNumberForCombinationPurchase = 6753, - ExistInEachProductGroups = false, - MaxPointAmount = 3616, - MaxTotalPointAmount = 8953, + ApplicableDaysOfWeek = new int[]{2, 6, 3, 3, 2, 5}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"4632bf59-dcb5-4049-b69d-11762472c923", "11cf33fe-56bb-4759-a17c-e44a9d4338aa", "5f77f094-7128-4e7f-bc71-8d454c8014e3", "0cafe261-eeee-4a73-9373-1fd0940982b2"}, + MinimumNumberOfProducts = 2184, + MinimumNumberOfAmount = 9496, + MinimumNumberForCombinationPurchase = 5902, + ExistInEachProductGroups = true, + MaxPointAmount = 8382, + MaxTotalPointAmount = 230, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 2007692491, + BudgetCapsAmount = 144380158, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -282,20 +282,20 @@ public async Task UpdateCampaign12() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - 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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{2, 1, 1, 6, 4, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"3ca2b36f-445f-4388-9206-17a809bf05f3"}, - MinimumNumberForCombinationPurchase = 4360, + 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, 3, 5, 0, 1, 3, 2}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"2845dee1-e5ae-4111-ae0f-01514eafcce2", "aaea48d6-893a-4494-91cd-07398f70a35a", "2b95aab6-6c86-4dd2-87b0-49ebf6138ebc", "0cd7e98f-d043-4418-9873-3f1470955c26", "cbebc1d0-9be4-4922-baf7-0c90e3471f45", "912395f2-bc1d-4e7d-acb5-da116b009b6d", "29590a58-3988-4708-abbe-68296e105dc7", "3333f13f-cbfa-46f5-8c02-e58553d9c527", "4530dad7-5833-4546-abd7-807f3added3e", "83e6959a-1469-448d-b9da-4468386e4949"}, + MinimumNumberOfProducts = 6652, + MinimumNumberOfAmount = 3899, + MinimumNumberForCombinationPurchase = 9776, ExistInEachProductGroups = false, - MaxPointAmount = 205, - MaxTotalPointAmount = 1554, + MaxPointAmount = 4496, + MaxTotalPointAmount = 7383, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1273944928, + BudgetCapsAmount = 1025667088, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -310,21 +310,21 @@ public async Task UpdateCampaign13() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - 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}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{2, 6, 6, 4, 1}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"944f2b9a-63a3-4bce-af22-1b7f000d4946", "79e8a56c-c102-4cfd-8d84-85a9dc1fcc47", "ffd9c668-871b-4acf-8037-b0cdc78f776a", "57527f0a-d005-4fef-8d9f-45ae768bb684", "cc5754a9-a046-48e9-884c-6ca252efadf4", "0a61a44e-620d-4739-99bb-43f1a5f9db79", "fbc3dfb7-0fa0-418d-92de-2ab5ad53f953"}, - MinimumNumberForCombinationPurchase = 7142, + 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[]{0, 6, 3, 6, 6, 1}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"0e2aad56-794a-4929-8ea7-13fd509cda05", "6aae338a-e89b-4004-9c95-f4936f465001", "92c529ce-c410-4920-b827-fcb108e1c009"}, + MinimumNumberOfProducts = 7373, + MinimumNumberOfAmount = 1994, + MinimumNumberForCombinationPurchase = 3980, ExistInEachProductGroups = true, - MaxPointAmount = 1583, - MaxTotalPointAmount = 380, + MaxPointAmount = 4784, + MaxTotalPointAmount = 889, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 758756205, + BudgetCapsAmount = 148336805, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -339,22 +339,53 @@ public async Task UpdateCampaign14() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" + ) { + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + 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[]{6, 0}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"f0621bc6-dc0a-46d0-9c10-7175df743982"}, + MinimumNumberOfProducts = 8390, + MinimumNumberOfAmount = 5437, + MinimumNumberForCombinationPurchase = 7632, + ExistInEachProductGroups = true, + MaxPointAmount = 1278, + MaxTotalPointAmount = 3071, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1972410865, + }; + 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 UpdateCampaign15() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - PointExpiresInDays = 4021, - IsExclusive = true, Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{4, 6}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"9d8eff32-0a67-46be-aba9-107ac7504cab", "61133e28-ac19-4e28-b046-45c994583ee4", "fa490dce-6453-4da9-80e2-f47c7ebc6e9d"}, - MinimumNumberForCombinationPurchase = 2461, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{6, 1, 1, 3}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"60548624-851e-43e7-b391-1a02842e45d6", "4b08f189-379a-49e1-a356-4a858f1f9d67", "776b0929-65b5-45ec-9180-ac134a935051"}, + MinimumNumberOfProducts = 3660, + MinimumNumberOfAmount = 6030, + MinimumNumberForCombinationPurchase = 7956, ExistInEachProductGroups = false, - MaxPointAmount = 2718, - MaxTotalPointAmount = 6131, + MaxPointAmount = 3775, + MaxTotalPointAmount = 1907, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1008028717, + BudgetCapsAmount = 1799661733, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -365,27 +396,28 @@ public async Task UpdateCampaign14() } [Test] - public async Task UpdateCampaign15() + public async Task UpdateCampaign16() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - PointExpiresAt = "2023-04-13T09:18:16.000000Z", - PointExpiresInDays = 7711, IsExclusive = true, - Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{3, 0, 0, 0, 2, 2, 6, 4, 4, 0}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"bfc5f093-73b5-4d99-b675-3f55f4a83851", "a630f16c-daff-46c8-88d7-61bde20bf32c", "a181a801-e19d-4c28-88e4-ef8b901c577b", "66bc007e-3ce6-44ca-877c-e54ba04921ca", "8b280d0c-f61f-4247-8acf-e45bf951b312"}, - MinimumNumberForCombinationPurchase = 4454, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{5, 2, 2, 1, 6, 5, 1, 6, 6, 4}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"cf34b680-c8a3-4b72-9b32-14b45c721506", "aefa6b11-0f76-40a8-ac52-c35b24629dee", "d6b7305e-c230-4d21-962f-dffbde8af631", "438843cb-0ded-453f-8b16-edbcf104e971", "7292d4dd-0989-43bb-8ee8-17f0d817fba0", "e6b55b0b-2df5-4e44-86b1-d741c0791253", "3fcab134-3e90-46c9-8218-4e789c6709f6", "44b73670-805b-4822-8601-f39ba5f626d0"}, + MinimumNumberOfProducts = 9641, + MinimumNumberOfAmount = 6216, + MinimumNumberForCombinationPurchase = 9135, ExistInEachProductGroups = true, - MaxPointAmount = 1008, - MaxTotalPointAmount = 948, + MaxPointAmount = 2658, + MaxTotalPointAmount = 4133, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1535860290, + BudgetCapsAmount = 1540138721, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -396,28 +428,98 @@ public async Task UpdateCampaign15() } [Test] - public async Task UpdateCampaign16() + public async Task UpdateCampaign17() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" + ) { + PointExpiresInDays = 4488, + 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}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{1, 5, 0, 0, 4, 3, 4, 3}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"665e330b-d2ee-4fbd-8af9-b1f972c70910", "ad5607ce-f065-40b7-9fbe-17b45591cf51", "ebc4bf5c-c5a7-4215-80b2-a29760739c18"}, + MinimumNumberOfProducts = 1681, + MinimumNumberOfAmount = 1025, + MinimumNumberForCombinationPurchase = 4579, + ExistInEachProductGroups = true, + MaxPointAmount = 164, + MaxTotalPointAmount = 7355, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 963819398, + }; + 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 UpdateCampaign18() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" + ) { + PointExpiresAt = "2023-08-03T16:56:06.000000Z", + PointExpiresInDays = 991, + 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"}}}, + ApplicableDaysOfWeek = new int[]{3, 1}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"d4babf2f-2164-4a0c-ba94-dfd0e22c3507", "814cc85f-f6d3-4881-b71e-95505508260e", "8d8b0a12-704a-4730-bd85-57b951e42c95", "e35a3a0b-3f99-4b77-a9e8-be1278e0f1ec", "9b21671b-11c6-4a36-948a-dcc31598c522", "c7fa359d-2e56-4f6c-8d2b-904b7b5a3cc6"}, + MinimumNumberOfProducts = 6191, + MinimumNumberOfAmount = 876, + MinimumNumberForCombinationPurchase = 853, + ExistInEachProductGroups = true, + MaxPointAmount = 4550, + MaxTotalPointAmount = 2401, + ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, + BudgetCapsAmount = 1380771656, + }; + 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 UpdateCampaign19() + { + try { + Request.UpdateCampaign request = new Request.UpdateCampaign( + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { Status = "disabled", - PointExpiresAt = "2021-07-26T18:15:19.000000Z", - PointExpiresInDays = 1584, + PointExpiresAt = "2022-11-11T20:49:22.000000Z", + PointExpiresInDays = 2090, 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}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{6, 6, 2, 0, 3, 3, 5, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"a9d5b496-d67c-46f7-8a7d-122105f13f99", "9eec184d-c5d1-4662-9ef0-4903b4deb376", "cc61a1d7-3f64-4b8c-9218-e0db50c9a915", "109928c9-01be-4ee6-b0ea-619488a621b2", "c6ff9025-3d2d-414e-a347-9789832241f0", "74610764-1bb9-4e3a-abd4-6b3c53261b99"}, - MinimumNumberForCombinationPurchase = 9576, + 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"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, 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, 1, 1, 3, 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[]{"1753db78-907a-461f-9f1a-014665548214", "b5afe7d5-30c6-42b6-82e9-c0683867ad2c"}, + MinimumNumberOfProducts = 109, + MinimumNumberOfAmount = 8590, + MinimumNumberForCombinationPurchase = 970, ExistInEachProductGroups = false, - MaxPointAmount = 8807, - MaxTotalPointAmount = 5129, + MaxPointAmount = 4732, + MaxTotalPointAmount = 1589, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1983410747, + BudgetCapsAmount = 1833154823, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -428,29 +530,32 @@ public async Task UpdateCampaign16() } [Test] - public async Task UpdateCampaign17() + public async Task UpdateCampaign20() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - Description = "bzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEW", - Status = "enabled", - PointExpiresAt = "2024-01-15T11:19:12.000000Z", - PointExpiresInDays = 8185, + Description = "uoOEnKraNjpsN9SjDxtxrgs7e0dkiAA", + Status = "disabled", + PointExpiresAt = "2023-04-14T04:35:38.000000Z", + PointExpiresInDays = 5177, IsExclusive = true, Subject = "all", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{3, 3}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"be4482f2-19a8-4bbf-b4d8-21e429fa81df", "ff911128-3feb-456a-830b-3c5a614a3ab6", "29cb2e06-054b-46de-8f94-8e15e0a7ed10", "03f1cb58-9114-46ad-abe9-3e4db23386f8", "db6524b1-25eb-437f-bd48-f496da81ff14"}, - MinimumNumberForCombinationPurchase = 2005, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, + ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{1, 6, 4, 3, 2, 3, 1}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"df324786-3dde-44dd-ac76-217ac2ccd605", "9d1e1b42-cd11-4461-babe-2e53af301fc3", "46fbbc45-b028-423d-bbba-fb9f27fbb731", "7661bbe8-a8bd-4360-850c-24479f5b5086", "340bfda0-a3bc-4bb2-a7c5-7c0633462791", "c59cf76b-5deb-42dd-9e0c-ebd05bd30532", "5678ba0d-93ae-4f56-a508-f31dad866a49", "78367916-efd0-41f9-823e-8b372ff08d7b", "8edb5d48-aa3e-4e89-8557-96b7c19cdb24"}, + MinimumNumberOfProducts = 7775, + MinimumNumberOfAmount = 6886, + MinimumNumberForCombinationPurchase = 4520, ExistInEachProductGroups = true, - MaxPointAmount = 3646, - MaxTotalPointAmount = 7047, + MaxPointAmount = 5876, + MaxTotalPointAmount = 963, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1013151459, + BudgetCapsAmount = 1405008058, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -461,30 +566,33 @@ public async Task UpdateCampaign17() } [Test] - public async Task UpdateCampaign18() + public async Task UpdateCampaign21() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - Event = "topup", - Description = "Rx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A", + Event = "external-transaction", + Description = "BB1YNClE0n87A30l6vspNWH9u8x4Yq2mx", Status = "enabled", - PointExpiresAt = "2023-07-09T08:30:48.000000Z", - PointExpiresInDays = 9175, + PointExpiresAt = "2023-05-16T03:50:44.000000Z", + PointExpiresInDays = 74, IsExclusive = false, Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{1, 5, 4, 6, 4, 0, 0, 6, 3, 6}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"4209664d-71f4-4131-8e17-970797eeb9ce", "b4debd2e-9988-44de-bca4-ebfbdf4dde86", "366f3ad4-f330-4692-97cc-595bfb320709", "65140396-a9d3-45ee-979b-28f984eaa320", "b57a6fcc-cc43-4549-a9e1-10531e325c6d", "e449f5f8-c302-4da1-8f19-28e959b4c261", "86f68ee2-d2f9-4f81-832c-b146b6aec9bd"}, - MinimumNumberForCombinationPurchase = 8359, - ExistInEachProductGroups = false, - MaxPointAmount = 1987, - MaxTotalPointAmount = 7704, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{5, 4, 6, 1, 5}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"f8574894-d553-4f6e-8f48-87d3ab29e466"}, + MinimumNumberOfProducts = 5099, + MinimumNumberOfAmount = 348, + MinimumNumberForCombinationPurchase = 180, + ExistInEachProductGroups = true, + MaxPointAmount = 4204, + MaxTotalPointAmount = 8618, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1377059414, + BudgetCapsAmount = 1222220490, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -495,31 +603,34 @@ public async Task UpdateCampaign18() } [Test] - public async Task UpdateCampaign19() + public async Task UpdateCampaign22() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - Priority = 3198, + Priority = 7836, Event = "payment", - Description = "wMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z", - Status = "enabled", - PointExpiresAt = "2021-09-09T22:47:13.000000Z", - PointExpiresInDays = 8459, + Description = "11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfD", + Status = "disabled", + PointExpiresAt = "2020-04-08T14:09:01.000000Z", + PointExpiresInDays = 5192, IsExclusive = false, - Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{2, 1}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"5b0a0651-0022-4737-b75b-702fbcc88cc2", "167e148a-f60d-4028-b971-afe9e382d27b", "ac0c702a-f3fa-4bab-8656-cfd1e7757485", "c6ef7a6f-5b16-4007-a53e-d10e90a9d33a", "f1fdb986-0a32-4cdc-a006-f6d824e8e2bd"}, - MinimumNumberForCombinationPurchase = 8762, + 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}}}, + 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}, + 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[]{"2749e009-eadf-4e50-8343-a022772edc1c"}, + MinimumNumberOfProducts = 3633, + MinimumNumberOfAmount = 933, + MinimumNumberForCombinationPurchase = 6089, ExistInEachProductGroups = true, - MaxPointAmount = 3842, - MaxTotalPointAmount = 2335, + MaxPointAmount = 2813, + MaxTotalPointAmount = 8116, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1928834827, + BudgetCapsAmount = 1181237434, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -530,32 +641,35 @@ public async Task UpdateCampaign19() } [Test] - public async Task UpdateCampaign20() + public async Task UpdateCampaign23() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - EndsAt = "2023-09-01T15:24:58.000000Z", - Priority = 105, - Event = "payment", - Description = "LVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTH", - Status = "enabled", - PointExpiresAt = "2023-07-17T21:45:47.000000Z", - PointExpiresInDays = 9056, + EndsAt = "2021-09-25T13:53:31.000000Z", + Priority = 4029, + Event = "topup", + Description = "9N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsKZWoUeORL98QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8", + Status = "disabled", + PointExpiresAt = "2021-12-03T15:45:24.000000Z", + PointExpiresInDays = 7212, IsExclusive = true, - Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{2}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"98824c24-130e-49f3-bed7-bfe264b39175", "1aac2b3b-f01e-4795-a807-7c6e8a28f4e2", "fe882e92-953f-4649-9546-57bbd3e5dc6c", "784790ff-bb28-4966-8076-ca6ffc993de2", "f10e83a4-adcf-4220-9f9b-0b94919b3ce3", "0321583a-4e5d-44ec-86d8-244b2aca5de6"}, - MinimumNumberForCombinationPurchase = 4727, - ExistInEachProductGroups = false, - MaxPointAmount = 4370, - MaxTotalPointAmount = 6752, + 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}}, 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, 0, 0, 3, 4, 1, 5, 3}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"aad860f8-3ca1-4cde-92fb-5d82b3eac05e", "757a7ed1-fd20-4a9f-9f95-1593d5af36a1", "458ad14f-8819-4a60-b31f-e882be0574cf", "b89422f8-f4ca-4679-8e28-a53a9bd28a69", "6b74bc75-730a-4491-a106-a774b08c8733", "bae993de-4f04-4ab0-af5f-338866e78052", "3f1dbc06-17a8-45f3-8753-40ccce9c2a23", "bf738611-db5f-4c60-a926-45a8c22edb34", "10b24f0a-0e46-4816-94c1-15d756dd79de", "fee124ea-6476-4b9a-a3ce-382feab35f22"}, + MinimumNumberOfProducts = 7040, + MinimumNumberOfAmount = 2375, + MinimumNumberForCombinationPurchase = 9581, + ExistInEachProductGroups = true, + MaxPointAmount = 8654, + MaxTotalPointAmount = 8581, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 853454565, + BudgetCapsAmount = 1869645226, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -566,33 +680,36 @@ public async Task UpdateCampaign20() } [Test] - public async Task UpdateCampaign21() + public async Task UpdateCampaign24() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - StartsAt = "2022-02-08T07:54:57.000000Z", - EndsAt = "2020-09-07T11:07:21.000000Z", - Priority = 6831, + StartsAt = "2022-03-11T20:12:55.000000Z", + EndsAt = "2024-03-04T10:50:16.000000Z", + Priority = 1819, Event = "topup", - Description = "3hjtD1VYnThEQOLtlkRPIAeI3C1kLwoSJ0t0xwzgZ3SAsjpAuPQwOMExC1w6ifl9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1cR5rMDg0iBD", - Status = "enabled", - PointExpiresAt = "2023-04-07T15:17:38.000000Z", - PointExpiresInDays = 9523, - IsExclusive = false, + Description = "MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuU", + Status = "disabled", + PointExpiresAt = "2023-04-17T05:00:28.000000Z", + PointExpiresInDays = 6912, + 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}}}, + AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{4, 5, 1, 2, 0, 1, 6}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"3d504807-f481-4765-a859-1e493ffa0d5a", "11327ae2-dcbf-427c-8d68-ee363a41cf25", "1e3e25cd-b710-462f-a6bf-f1a5becf2803"}, - MinimumNumberForCombinationPurchase = 956, + 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, 3, 3, 6, 6, 2, 4, 3, 2}, + ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, + ApplicableShopIds = new string[]{"bcea9165-c034-43ef-b341-bca1eaf31ab7", "407f462f-c7c1-49f3-b4b7-7dc71bce209e", "d4fac0de-4a5a-4460-8b03-cd7d9d4a64cb"}, + MinimumNumberOfProducts = 391, + MinimumNumberOfAmount = 2150, + MinimumNumberForCombinationPurchase = 5757, ExistInEachProductGroups = false, - MaxPointAmount = 1195, - MaxTotalPointAmount = 5716, + MaxPointAmount = 2699, + MaxTotalPointAmount = 4642, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 1065507945, + BudgetCapsAmount = 99696538, }; Response.Campaign response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -603,34 +720,37 @@ public async Task UpdateCampaign21() } [Test] - public async Task UpdateCampaign22() + public async Task UpdateCampaign25() { try { Request.UpdateCampaign request = new Request.UpdateCampaign( - "60426a39-a2a2-46ce-81b8-2ba4c472a9e8" + "b1dc9469-075b-4d47-aab1-8b97ded3fe86" ) { - Name = "8D4Ev7O7TGT70LQ2epxhXvfJrqwCwzvGv5tXB9341AdQSvr2jD2CPBEg6qDXhSH8ha", - StartsAt = "2020-08-30T01:31:18.000000Z", - EndsAt = "2023-01-24T22:16:42.000000Z", - Priority = 132, - Event = "payment", - Description = "0sDTnM", - Status = "enabled", - PointExpiresAt = "2023-09-05T03:26:52.000000Z", - PointExpiresInDays = 5501, + Name = "QbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uY", + StartsAt = "2021-04-23T02:58:38.000000Z", + EndsAt = "2022-05-06T16:35:51.000000Z", + Priority = 2645, + Event = "external-transaction", + Description = "2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6b", + Status = "disabled", + PointExpiresAt = "2022-02-27T09:09:30.000000Z", + PointExpiresInDays = 3006, IsExclusive = true, Subject = "money", - AmountBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"subject_more_than_or_equal",1000}, {"subject_less_than",5000}}}, - ProductBasedPointRules = new object[]{new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}, new Dictionary(){{"point_amount",5}, {"point_amount_unit","percent"}, {"product_code","4912345678904"}, {"is_multiply_by_count",true}, {"required_count",2}}}, - ApplicableDaysOfWeek = new int[]{4, 0, 2, 5, 3, 4, 5}, - ApplicableTimeRanges = new object[]{new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}, new Dictionary(){{"from","12:00"}, {"to","23:59"}}}, - ApplicableShopIds = new string[]{"038ae224-1e11-4ec3-a480-679b5f9bb9b8", "3ff61aca-7aa0-405a-a31b-9df1690d0316", "87a1b3c9-e163-4b19-b15a-d62993f765c2", "fe70eb32-1f6e-4c7b-ab3e-941e87943882", "4492bd68-41ad-4777-b5d6-c2f5a680676e", "91621e6e-e6a4-4ee8-b239-6b1ac96133ac"}, - MinimumNumberForCombinationPurchase = 6654, - ExistInEachProductGroups = false, - MaxPointAmount = 7890, - MaxTotalPointAmount = 3579, + 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}}}, + BlacklistedProductRules = new object[]{new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}, new Dictionary(){{"product_code","4912345678904"}, {"classification_code","c123"}}}, + ApplicableDaysOfWeek = new int[]{5, 3, 6, 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[]{"5eed2a5a-33b0-4ff8-bc87-d7bd3bb16283", "7cc65c22-1a01-4e6b-af9b-97354412ef2c", "b20969ff-299f-47a4-b2a8-dbbf4edda3f4", "b36db3d8-21e4-41df-a8eb-756aa2aaba43", "619bcd0b-3c5a-4ab6-864b-c6de4440448f", "d2a73794-8e15-4d10-9814-66ada42426eb", "d47cf6e9-3e4d-46f8-b1eb-137f6d912f3d", "07e56a48-f496-4f14-9456-ce3d7c629b86"}, + MinimumNumberOfProducts = 9329, + MinimumNumberOfAmount = 2850, + MinimumNumberForCombinationPurchase = 531, + ExistInEachProductGroups = true, + MaxPointAmount = 3974, + MaxTotalPointAmount = 393, ApplicableAccountMetadata = new Dictionary(){{"key","sex"}, {"value","male"}}, - BudgetCapsAmount = 286258961, + BudgetCapsAmount = 467110137, }; 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 06cfb0d..0682d66 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( - "a93d4ebb-a68b-4428-bc36-21b0137be536" + "20ece2a9-ff06-420d-9b6e-77022062b188" ); 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( - "a93d4ebb-a68b-4428-bc36-21b0137be536" + "20ece2a9-ff06-420d-9b6e-77022062b188" ) { - ExpiresIn = 4781, + ExpiresIn = 3917, }; 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( - "a93d4ebb-a68b-4428-bc36-21b0137be536" + "20ece2a9-ff06-420d-9b6e-77022062b188" ) { - Description = "w3XOfvqGLqQiqaG2p9irVNMOOMEypf2sbMz5sG1GgyrO7oaIPGJ7JGBC1o5Rc96wfmVrWrKd8ZckndPnp3nLoMele3p", - ExpiresIn = 4465, + Description = "L0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46D", + ExpiresIn = 1061, }; 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( - "a93d4ebb-a68b-4428-bc36-21b0137be536" + "20ece2a9-ff06-420d-9b6e-77022062b188" ) { - Amount = 4047.0, - Description = "b8vOALeCaVZzJ21Wkjwh096vY0YkfqArkVOxtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zqICt7BPEIsHw9i", - ExpiresIn = 2530, + Amount = 1484.0, + Description = "EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30J", + ExpiresIn = 1575, }; Response.Cashtray response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateCoupon.cs index 18747ef..4834d58 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 4008, + DiscountAmount = 1971, }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 1135, - Name = "uqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzm", + DiscountAmount = 6605, + Name = "k8m6", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 7874, - Description = "IXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROF", - Name = "3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57ns", + DiscountAmount = 6851, + Description = "n0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3", + Name = "JQAlc0mxfIBE", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 6739, - DiscountUpperLimit = 3768, - Description = "T7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRsc", - Name = "SaTD", + DiscountAmount = 3624, + DiscountUpperLimit = 8519, + Description = "WMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqyd", + Name = "ndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEe", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 7708, - StartsAt = "2022-08-05T00:50:13.000000Z", - DiscountUpperLimit = 895, - Description = "UxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc", - Name = "wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPS", + DiscountAmount = 1336, + StartsAt = "2020-09-14T07:21:18.000000Z", + DiscountUpperLimit = 8419, + Description = "L5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxF", + Name = "X7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2P", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 9379, - EndsAt = "2021-12-12T06:52:59.000000Z", - StartsAt = "2023-05-03T02:56:24.000000Z", - DiscountUpperLimit = 207, - Description = "z8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHd", - Name = "hvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHL", + DiscountAmount = 5603, + EndsAt = "2020-05-10T10:02:02.000000Z", + StartsAt = "2022-03-03T10:05:30.000000Z", + DiscountUpperLimit = 6669, + Description = "2ctvmZzuG53qZWTYzGouu", + Name = "X6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3C", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 7503, - DisplayStartsAt = "2023-03-18T23:40:54.000000Z", - EndsAt = "2023-05-25T04:41:06.000000Z", - StartsAt = "2023-01-02T01:11:18.000000Z", - DiscountUpperLimit = 5761, - Description = "c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxl", - Name = "E1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLm", + DiscountAmount = 1277, + DisplayStartsAt = "2020-09-05T11:32:25.000000Z", + EndsAt = "2020-05-20T02:48:54.000000Z", + StartsAt = "2020-04-15T18:37:32.000000Z", + DiscountUpperLimit = 9669, + Description = "dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8u", + Name = "okXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3Po", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 958, - DisplayEndsAt = "2023-02-24T03:06:35.000000Z", - DisplayStartsAt = "2020-05-07T20:47:00.000000Z", - EndsAt = "2022-09-30T23:08:11.000000Z", - StartsAt = "2020-12-27T04:31:53.000000Z", - DiscountUpperLimit = 8069, - Description = "cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6", - Name = "zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZr", + DiscountAmount = 5999, + DisplayEndsAt = "2023-10-18T01:36:24.000000Z", + DisplayStartsAt = "2020-09-02T00:29:43.000000Z", + EndsAt = "2022-04-26T07:44:48.000000Z", + StartsAt = "2022-07-12T10:34:51.000000Z", + DiscountUpperLimit = 4289, + Description = "3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9C", + Name = "N5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 1595, + DiscountAmount = 6369, IsDisabled = false, - DisplayEndsAt = "2022-07-31T04:45:49.000000Z", - DisplayStartsAt = "2021-06-01T04:13:09.000000Z", - EndsAt = "2023-11-16T22:56:36.000000Z", - StartsAt = "2022-09-30T10:26:58.000000Z", - DiscountUpperLimit = 5229, - Description = "NU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN", - Name = "AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZn", + DisplayEndsAt = "2021-05-15T22:02:56.000000Z", + DisplayStartsAt = "2023-05-10T05:55:37.000000Z", + EndsAt = "2023-07-22T16:36:18.000000Z", + StartsAt = "2023-01-12T10:59:04.000000Z", + DiscountUpperLimit = 1185, + Description = "gOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw", + Name = "eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslT", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 4441, - IsHidden = false, + DiscountAmount = 2342, + IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2021-10-13T10:15:58.000000Z", - DisplayStartsAt = "2023-10-05T04:37:14.000000Z", - EndsAt = "2020-06-23T13:16:45.000000Z", - StartsAt = "2022-10-30T00:24:12.000000Z", - DiscountUpperLimit = 6683, - Description = "zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5L", - Name = "wfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O", + DisplayEndsAt = "2022-04-20T01:25:25.000000Z", + DisplayStartsAt = "2023-10-08T13:53:12.000000Z", + EndsAt = "2022-03-18T09:03:54.000000Z", + StartsAt = "2021-06-30T22:02:05.000000Z", + DiscountUpperLimit = 432, + Description = "0PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFum", + Name = "QVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IA", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 6583, - IsPublic = false, + DiscountAmount = 5337, + IsPublic = true, IsHidden = false, - IsDisabled = false, - DisplayEndsAt = "2021-05-26T05:29:54.000000Z", - DisplayStartsAt = "2021-04-09T21:59:10.000000Z", - EndsAt = "2024-01-28T22:17:32.000000Z", - StartsAt = "2022-06-04T00:21:11.000000Z", - DiscountUpperLimit = 8981, - Description = "RgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs", - Name = "5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uS", + IsDisabled = true, + DisplayEndsAt = "2023-08-26T20:02:34.000000Z", + DisplayStartsAt = "2021-08-13T21:31:53.000000Z", + EndsAt = "2022-02-14T12:55:29.000000Z", + StartsAt = "2022-10-19T08:05:31.000000Z", + DiscountUpperLimit = 3488, + Description = "HAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVf", + Name = "L5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3Px", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 1259, - Code = "6uS", + DiscountAmount = 7058, + Code = "v", IsPublic = true, - IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2021-12-07T18:56:24.000000Z", - DisplayStartsAt = "2022-12-01T12:21:10.000000Z", - EndsAt = "2021-04-13T17:22:08.000000Z", - StartsAt = "2023-12-10T04:38:42.000000Z", - DiscountUpperLimit = 4190, - Description = "x7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12", - Name = "UeT7ThuLLgJ9PT2", + IsHidden = false, + IsDisabled = true, + DisplayEndsAt = "2023-09-17T19:01:04.000000Z", + DisplayStartsAt = "2023-01-19T19:29:08.000000Z", + EndsAt = "2021-03-21T02:48:14.000000Z", + StartsAt = "2024-02-22T15:55:19.000000Z", + DiscountUpperLimit = 3031, + Description = "A6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizY", + Name = "vZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnIC", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 8843, - UsageLimit = 6677, - Code = "kxOOzhTp", + DiscountAmount = 6693, + UsageLimit = 7178, + Code = "BJimGKiop", IsPublic = true, IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2021-08-11T18:49:09.000000Z", - DisplayStartsAt = "2022-05-10T06:49:18.000000Z", - EndsAt = "2023-07-24T01:52:21.000000Z", - StartsAt = "2020-02-14T14:38:53.000000Z", - DiscountUpperLimit = 4031, - Description = "QXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26", - Name = "LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWm", + DisplayEndsAt = "2020-01-24T01:52:50.000000Z", + DisplayStartsAt = "2020-07-24T06:27:09.000000Z", + EndsAt = "2022-10-23T01:58:06.000000Z", + StartsAt = "2023-10-07T12:21:53.000000Z", + DiscountUpperLimit = 8662, + Description = "9", + Name = "u47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7Rr", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 6224, - MinAmount = 6137, - UsageLimit = 9527, - Code = "E", - IsPublic = true, - IsHidden = false, - IsDisabled = false, - DisplayEndsAt = "2020-10-22T16:12:16.000000Z", - DisplayStartsAt = "2022-03-14T00:38:05.000000Z", - EndsAt = "2020-03-22T09:11:10.000000Z", - StartsAt = "2020-05-06T07:45:07.000000Z", - DiscountUpperLimit = 138, - Description = "WruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz3", - Name = "7PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oN", + DiscountAmount = 3320, + MinAmount = 8177, + UsageLimit = 2786, + Code = "xY5", + IsPublic = false, + IsHidden = true, + IsDisabled = true, + DisplayEndsAt = "2020-10-28T00:05:23.000000Z", + DisplayStartsAt = "2022-12-20T18:53:15.000000Z", + EndsAt = "2022-01-27T12:10:21.000000Z", + StartsAt = "2020-06-26T00:50:42.000000Z", + DiscountUpperLimit = 3192, + Description = "b35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKI", + Name = "dqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzma", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 6126, - IsShopSpecified = true, - MinAmount = 4663, - UsageLimit = 1724, - Code = "uTKN6", - IsPublic = false, + DiscountAmount = 4030, + IsShopSpecified = false, + MinAmount = 3120, + UsageLimit = 2135, + Code = "VCj", + IsPublic = true, IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2022-07-06T08:44:01.000000Z", - DisplayStartsAt = "2022-03-18T15:54:29.000000Z", - EndsAt = "2021-11-19T12:04:56.000000Z", - StartsAt = "2022-11-23T13:55:03.000000Z", - DiscountUpperLimit = 9195, - Description = "N0paU2HC64wcGrUcdcRO2Sa3zE9qA6Jl", - Name = "qvTos7SrIAldP5taDahvoqIf3H7H22Xm9qyh", + DisplayEndsAt = "2022-01-10T01:07:38.000000Z", + DisplayStartsAt = "2022-11-04T10:45:55.000000Z", + EndsAt = "2021-07-18T22:29:58.000000Z", + StartsAt = "2020-04-25T13:22:39.000000Z", + DiscountUpperLimit = 2424, + Description = "XnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4", + Name = "bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 768, - AvailableShopIds = new string[]{"8cbd798b-b6f2-4acb-897a-fa8c6e0d0b0c", "1790102e-90e7-456c-8a8f-158ba23481c5"}, - IsShopSpecified = false, - MinAmount = 6717, - UsageLimit = 676, - Code = "hNrgMO", - IsPublic = false, - IsHidden = false, + DiscountAmount = 5168, + AvailableShopIds = new string[]{"ae9ec8ff-29c5-49a8-8f92-10271208b93e", "f131a284-cd80-4a1c-bb49-c4bc595b4e25", "539e4b17-9b22-4ff1-8fa3-bfc66b9fbe87", "9f38494c-5371-4c6e-8cb2-f6a0929a205a", "8905f6de-9c17-4f75-8c2f-92eb57d9f297"}, + IsShopSpecified = true, + MinAmount = 6069, + UsageLimit = 7334, + Code = "F2FUuyDVU", + IsPublic = true, + IsHidden = true, IsDisabled = false, - DisplayEndsAt = "2021-10-28T22:30:43.000000Z", - DisplayStartsAt = "2021-11-09T17:41:59.000000Z", - EndsAt = "2023-09-27T15:53:22.000000Z", - StartsAt = "2023-11-14T18:53:05.000000Z", - DiscountUpperLimit = 8247, - Description = "ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqq", - Name = "ow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz", + DisplayEndsAt = "2022-11-09T23:59:22.000000Z", + DisplayStartsAt = "2021-11-05T06:38:38.000000Z", + EndsAt = "2022-05-08T04:57:11.000000Z", + StartsAt = "2024-02-25T02:06:59.000000Z", + DiscountUpperLimit = 4441, + Description = "ez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOy", + Name = "21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 8248, - StorageId = "be758937-d390-446b-a45e-77c961c6259b", - AvailableShopIds = new string[]{"9179cf1e-5003-489d-adcf-a8cc361157d7", "47cc4ce0-7110-4a3a-b96e-291bd9d094da", "4f9fd637-e62e-4c20-b39c-d354a19fdf27", "77a2b0a4-331b-467f-80f1-6c9c9cecbaa3", "af4389fb-eb3b-4753-8ca0-486b2476e04f", "d460c0d7-7701-4d8f-97c4-824cb158285f", "5b6cfd1f-1eda-4f6d-a9a4-060511452d79", "bc7eed84-2fd9-493b-9934-0497211073f1", "85263c2a-4d53-4344-8363-64e5de6c85b1"}, + DiscountAmount = 5301, + StorageId = "9e17eafe-e8c0-4808-a1f1-0a131d9f69c7", + AvailableShopIds = new string[]{"4a09ea83-13e7-46ce-ace0-a60afb82a391", "0ee8b57c-ff5b-40ad-8bec-be2483e12a15", "a790d814-2e1d-43a2-bd6b-3c8f88a6faa6", "ba9417f6-0e08-4eb5-9008-f1f663e72045", "a61bd28f-6afd-4686-ab63-61df7d4ad05c", "3a5ede3b-c989-4cc5-af22-a0cd605b1d06", "05a09d6a-f0ba-433f-a254-de34c88a4656", "3263c9d0-38b8-415d-acda-09c65ff0bcad", "3b0fc2b0-5641-4a68-9bfb-19892e81341f"}, IsShopSpecified = true, - MinAmount = 1448, - UsageLimit = 7713, - Code = "GC4wPtL", + MinAmount = 4725, + UsageLimit = 5902, + Code = "hoXC", IsPublic = false, IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2022-12-14T09:31:57.000000Z", - DisplayStartsAt = "2021-04-01T23:30:59.000000Z", - EndsAt = "2020-04-05T00:04:54.000000Z", - StartsAt = "2023-06-17T02:45:47.000000Z", - DiscountUpperLimit = 9583, - Description = "4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4X", - Name = "u22Okprhq", + DisplayEndsAt = "2023-10-29T09:57:30.000000Z", + DisplayStartsAt = "2023-04-05T21:15:37.000000Z", + EndsAt = "2022-12-29T01:49:43.000000Z", + StartsAt = "2023-11-22T00:07:21.000000Z", + DiscountUpperLimit = 6630, + Description = "Yfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vF", + Name = "ea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 1256, - DiscountPercentage = 8182.0, + DiscountAmount = 3851, + DiscountPercentage = 4745.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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 2447, - DiscountPercentage = 3329.0, - Name = "MEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n", + DiscountAmount = 40, + DiscountPercentage = 4085.0, + Name = "kk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 941, - DiscountPercentage = 9649.0, - Description = "m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99", - Name = "ROsTZK65zQOhilbvDcAlCpIpPo9knGn", + DiscountAmount = 9484, + DiscountPercentage = 8601.0, + Description = "BlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4", + Name = "fUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruI", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 3169, - DiscountPercentage = 4018.0, - DiscountUpperLimit = 497, - Description = "U0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2", - Name = "YA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDW", + DiscountAmount = 1367, + DiscountPercentage = 115.0, + DiscountUpperLimit = 3331, + Description = "4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5", + Name = "t8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6Jlqv", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 1258, - DiscountPercentage = 9313.0, - StartsAt = "2023-09-18T08:13:54.000000Z", - DiscountUpperLimit = 2543, - Description = "z7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4Af", - Name = "uwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6", + DiscountAmount = 1149, + DiscountPercentage = 9556.0, + StartsAt = "2021-02-16T11:41:35.000000Z", + DiscountUpperLimit = 9715, + Description = "7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhS", + Name = "bUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 5867, - DiscountPercentage = 8761.0, - EndsAt = "2023-03-09T03:28:35.000000Z", - StartsAt = "2023-07-12T16:09:38.000000Z", - DiscountUpperLimit = 1992, - Description = "dXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9D", - Name = "PsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMra", + DiscountAmount = 8884, + DiscountPercentage = 8369.0, + EndsAt = "2023-02-02T05:10:51.000000Z", + StartsAt = "2022-01-16T00:07:17.000000Z", + DiscountUpperLimit = 8450, + Description = "Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kI", + Name = "mOLWynZ7sTqSkOWWDLZmiyY4qSDc", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 258, - DiscountPercentage = 8455.0, - DisplayStartsAt = "2021-05-03T01:55:17.000000Z", - EndsAt = "2021-12-05T03:40:10.000000Z", - StartsAt = "2020-03-07T23:33:30.000000Z", - DiscountUpperLimit = 736, - Description = "iLHRNzuSt", - Name = "ZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biu", + DiscountAmount = 9445, + DiscountPercentage = 1457.0, + DisplayStartsAt = "2021-09-01T21:03:10.000000Z", + EndsAt = "2022-10-12T02:30:00.000000Z", + StartsAt = "2022-08-30T12:14:25.000000Z", + DiscountUpperLimit = 3894, + Description = "C4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22", + Name = "kprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxA", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 2927, - DiscountPercentage = 3704.0, - DisplayEndsAt = "2022-07-20T19:37:37.000000Z", - DisplayStartsAt = "2021-07-14T19:17:22.000000Z", - EndsAt = "2022-01-11T20:44:45.000000Z", - StartsAt = "2020-08-06T01:38:14.000000Z", - DiscountUpperLimit = 1499, - Description = "aoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a", - Name = "rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcU", + DiscountAmount = 1704, + DiscountPercentage = 5062.0, + DisplayEndsAt = "2023-06-06T13:41:03.000000Z", + DisplayStartsAt = "2021-08-29T08:59:32.000000Z", + EndsAt = "2021-10-09T22:51:23.000000Z", + StartsAt = "2023-06-03T00:22:24.000000Z", + DiscountUpperLimit = 5770, + Description = "GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bn", + Name = "X1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6C", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 8821, - DiscountPercentage = 1990.0, + DiscountAmount = 5594, + DiscountPercentage = 3235.0, IsDisabled = false, - DisplayEndsAt = "2020-02-28T03:47:20.000000Z", - DisplayStartsAt = "2024-02-09T11:43:54.000000Z", - EndsAt = "2023-08-07T02:47:43.000000Z", - StartsAt = "2021-01-22T02:10:35.000000Z", - DiscountUpperLimit = 1308, - Description = "gogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQU", - Name = "9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S", + DisplayEndsAt = "2022-11-21T04:50:37.000000Z", + DisplayStartsAt = "2022-07-09T19:17:30.000000Z", + EndsAt = "2024-02-29T07:46:53.000000Z", + StartsAt = "2022-08-19T04:51:51.000000Z", + DiscountUpperLimit = 6857, + Description = "HDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQO", + Name = "hilbvDcAlCpIpPo9knGna2qU0GmaUmeizg", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 358, - DiscountPercentage = 4560.0, - IsHidden = true, + DiscountAmount = 8488, + DiscountPercentage = 4489.0, + IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2023-07-25T03:35:04.000000Z", - DisplayStartsAt = "2021-10-04T01:56:11.000000Z", - EndsAt = "2022-01-26T08:17:29.000000Z", - StartsAt = "2020-08-08T01:13:26.000000Z", - DiscountUpperLimit = 2278, - Description = "y135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfg", - Name = "lG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDH", + DisplayEndsAt = "2022-07-02T11:13:06.000000Z", + DisplayStartsAt = "2022-12-23T01:36:40.000000Z", + EndsAt = "2022-06-22T06:35:17.000000Z", + StartsAt = "2021-03-06T08:34:30.000000Z", + DiscountUpperLimit = 9478, + Description = "wqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536", + Name = "2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0k", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 3879, - DiscountPercentage = 6597.0, + DiscountAmount = 8252, + DiscountPercentage = 7917.0, IsPublic = true, - IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2021-06-24T10:33:33.000000Z", - DisplayStartsAt = "2022-04-30T18:44:41.000000Z", - EndsAt = "2020-02-22T20:20:16.000000Z", - StartsAt = "2022-04-05T13:58:19.000000Z", - DiscountUpperLimit = 4901, - Description = "UcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7b", - Name = "cdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99On", + IsHidden = true, + IsDisabled = false, + DisplayEndsAt = "2022-08-08T12:14:12.000000Z", + DisplayStartsAt = "2023-01-03T03:55:08.000000Z", + EndsAt = "2023-08-01T12:14:38.000000Z", + StartsAt = "2022-11-25T20:14:21.000000Z", + DiscountUpperLimit = 3684, + Description = "8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2", + Name = "Y3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 8689, - DiscountPercentage = 6241.0, - Code = "5iTxaKH", + DiscountAmount = 4076, + DiscountPercentage = 30.0, + Code = "qy4kEKJ1Q", IsPublic = false, - IsHidden = true, - IsDisabled = true, - DisplayEndsAt = "2021-07-06T05:01:40.000000Z", - DisplayStartsAt = "2022-04-30T02:17:19.000000Z", - EndsAt = "2023-12-14T21:37:33.000000Z", - StartsAt = "2021-12-08T04:36:24.000000Z", - DiscountUpperLimit = 8664, - Description = "xpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb", - Name = "YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8", + IsHidden = false, + IsDisabled = false, + DisplayEndsAt = "2022-10-27T14:43:36.000000Z", + DisplayStartsAt = "2023-05-01T01:15:06.000000Z", + EndsAt = "2022-06-15T14:56:21.000000Z", + StartsAt = "2023-01-18T20:31:52.000000Z", + DiscountUpperLimit = 2992, + Description = "ZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlk", + Name = "s1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSH", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 9861, - DiscountPercentage = 8122.0, - UsageLimit = 2123, - Code = "wqzGZ", - IsPublic = true, - IsHidden = false, - IsDisabled = false, - DisplayEndsAt = "2023-01-08T01:54:59.000000Z", - DisplayStartsAt = "2020-09-20T15:59:46.000000Z", - EndsAt = "2023-01-28T03:10:24.000000Z", - StartsAt = "2022-02-05T00:48:30.000000Z", - DiscountUpperLimit = 8266, - Description = "TtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjp", - Name = "NeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9", + DiscountAmount = 6507, + DiscountPercentage = 4332.0, + UsageLimit = 3122, + Code = "NjfKFk3x", + IsPublic = false, + IsHidden = true, + IsDisabled = true, + DisplayEndsAt = "2020-09-22T13:07:47.000000Z", + DisplayStartsAt = "2020-06-18T03:09:02.000000Z", + EndsAt = "2020-03-30T20:40:11.000000Z", + StartsAt = "2022-10-24T02:13:06.000000Z", + DiscountUpperLimit = 581, + Description = "uZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2Q", + Name = "qNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 3244, - DiscountPercentage = 4783.0, - MinAmount = 2050, - UsageLimit = 2538, - Code = "n", - IsPublic = true, + DiscountAmount = 9357, + DiscountPercentage = 273.0, + MinAmount = 4197, + UsageLimit = 4929, + Code = "Ni4DCh9E1p", + IsPublic = false, IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2021-12-29T19:59:33.000000Z", - DisplayStartsAt = "2022-07-16T17:40:09.000000Z", - EndsAt = "2020-11-14T20:24:01.000000Z", - StartsAt = "2021-07-06T09:38:59.000000Z", - DiscountUpperLimit = 2353, - Description = "KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyR", - Name = "XgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCW", + DisplayEndsAt = "2021-11-12T14:41:44.000000Z", + DisplayStartsAt = "2021-10-07T02:21:04.000000Z", + EndsAt = "2020-06-09T11:54:21.000000Z", + StartsAt = "2023-07-25T06:56:05.000000Z", + DiscountUpperLimit = 1921, + Description = "vY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xx", + Name = "Ci9aS7pUn8sHDE4F3kcf0hr", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 8861, - DiscountPercentage = 2922.0, - IsShopSpecified = true, - MinAmount = 2093, - UsageLimit = 639, - Code = "PmFGWkh7DM", - IsPublic = true, - IsHidden = false, - IsDisabled = false, - DisplayEndsAt = "2022-05-29T16:12:03.000000Z", - DisplayStartsAt = "2020-07-01T14:25:53.000000Z", - EndsAt = "2021-08-14T22:25:52.000000Z", - StartsAt = "2023-05-21T06:48:20.000000Z", - DiscountUpperLimit = 1491, - Description = "Wi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp", - Name = "lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4", + DiscountAmount = 1617, + DiscountPercentage = 993.0, + IsShopSpecified = false, + MinAmount = 6258, + UsageLimit = 4233, + Code = "ThS8KkZC", + IsPublic = false, + IsHidden = true, + IsDisabled = true, + DisplayEndsAt = "2020-04-10T21:59:54.000000Z", + DisplayStartsAt = "2023-01-27T17:43:26.000000Z", + EndsAt = "2022-02-24T15:14:25.000000Z", + StartsAt = "2020-11-24T16:48:56.000000Z", + DiscountUpperLimit = 479, + Description = "SP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH", + Name = "9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoa", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 8384, - DiscountPercentage = 2778.0, - AvailableShopIds = new string[]{"780583b6-fef2-46ea-a160-9046d15644cb", "5e3cd67e-178b-4ace-94c8-ae933b155491"}, - IsShopSpecified = false, - MinAmount = 1130, - UsageLimit = 7224, - Code = "HL", + DiscountAmount = 2731, + DiscountPercentage = 3077.0, + AvailableShopIds = new string[]{"e0581ca4-3554-4c5e-ad56-9e9e0de1fa58", "e5178e30-4f58-4f71-b14c-12075b19deb2", "b312d144-581b-4688-bdc4-fd436355c0e4"}, + IsShopSpecified = true, + MinAmount = 3143, + UsageLimit = 7158, + Code = "9Q", IsPublic = false, - IsHidden = true, + IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2021-12-05T22:07:16.000000Z", - DisplayStartsAt = "2022-08-13T06:41:44.000000Z", - EndsAt = "2022-01-05T08:14:20.000000Z", - StartsAt = "2020-10-24T02:22:33.000000Z", - DiscountUpperLimit = 7320, - Description = "c4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx5", - Name = "0Yf2M71M8zENOSGlzUlDT", + DisplayEndsAt = "2020-07-23T09:39:26.000000Z", + DisplayStartsAt = "2021-11-29T08:02:08.000000Z", + EndsAt = "2023-11-09T10:42:06.000000Z", + StartsAt = "2022-02-25T16:39:41.000000Z", + DiscountUpperLimit = 7405, + Description = "X2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy", + Name = "00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamO", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountAmount = 1203, - DiscountPercentage = 1595.0, - StorageId = "61fb7933-9e0b-4615-905d-0f9650173d83", - AvailableShopIds = new string[]{"2b06e5b2-2d72-454a-b134-eafbcbe61959"}, + DiscountAmount = 8605, + DiscountPercentage = 9224.0, + StorageId = "1320b152-d5ed-4fd7-a373-0cf317deafa4", + AvailableShopIds = new string[]{"43cf93b2-cb11-4ba6-bdc6-14c657d58eb3", "35d74648-b29b-46c1-bae8-56406379f474", "c38bf3f4-623b-44b1-b875-961fa976023e", "4fdb232e-2c94-4612-aa20-02e0f9410421", "eb5ccaae-c1b7-4d1a-8d6f-ba115ff4df6f", "c589f3d5-5f07-4d04-b58f-4cfbfa60fbe5", "bbc4b156-21d7-4cef-b8db-d6d4675cad9f", "34d3a7b9-e364-4fd2-824e-84f646fcb51c", "e2481ce6-3df5-4033-a73b-b0f1c5b86c9b", "be221607-38eb-4977-9442-3d4479a58d8a"}, IsShopSpecified = true, - MinAmount = 4323, - UsageLimit = 3118, - Code = "JK", - IsPublic = true, - IsHidden = false, + MinAmount = 122, + UsageLimit = 6460, + Code = "QpgEVips", + IsPublic = false, + IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2020-12-24T19:28:03.000000Z", - DisplayStartsAt = "2021-08-20T19:25:24.000000Z", - EndsAt = "2022-02-12T01:20:38.000000Z", - StartsAt = "2022-05-08T16:43:29.000000Z", - DiscountUpperLimit = 945, - Description = "IN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3s", - Name = "rgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyA", + DisplayEndsAt = "2022-04-24T23:41:04.000000Z", + DisplayStartsAt = "2022-08-27T01:34:21.000000Z", + EndsAt = "2021-11-30T06:35:29.000000Z", + StartsAt = "2020-09-02T19:20:31.000000Z", + DiscountUpperLimit = 4207, + Description = "pS", + Name = "XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 5818.0, + DiscountPercentage = 9396.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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 1188.0, - Name = "BnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYd", + DiscountPercentage = 1788.0, + Name = "zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2F", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 7935.0, - Description = "ecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2g", - Name = "nx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr", + DiscountPercentage = 4050.0, + Description = "RBCtapsc2OJEtIYHTkPMCnHWRh", + Name = "K3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 5922.0, - DiscountUpperLimit = 4714, - Description = "GxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyG", - Name = "MxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4", + DiscountPercentage = 3886.0, + DiscountUpperLimit = 8232, + Description = "J6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8", + Name = "v3XGoxNYBzQF26RR", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 8815.0, - StartsAt = "2020-11-01T22:01:57.000000Z", - DiscountUpperLimit = 8638, - Description = "di9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ", - Name = "wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14c", + DiscountPercentage = 2030.0, + StartsAt = "2021-07-18T03:46:21.000000Z", + DiscountUpperLimit = 1227, + Description = "M2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxO", + Name = "gNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 7296.0, - EndsAt = "2021-09-20T03:31:47.000000Z", - StartsAt = "2022-06-02T05:56:55.000000Z", - DiscountUpperLimit = 7542, - Description = "vqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmV", - Name = "3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqT", + DiscountPercentage = 4342.0, + EndsAt = "2023-10-08T17:08:20.000000Z", + StartsAt = "2022-08-07T16:45:00.000000Z", + DiscountUpperLimit = 7091, + Description = "yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4s", + Name = "tkoPc7UXRyRiV8P", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 2330.0, - DisplayStartsAt = "2020-07-22T21:57:26.000000Z", - EndsAt = "2024-02-06T10:43:19.000000Z", - StartsAt = "2020-01-29T15:22:48.000000Z", - DiscountUpperLimit = 8, - Description = "ldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQ", - Name = "ZGPMXFo6oI", + DiscountPercentage = 2986.0, + DisplayStartsAt = "2020-03-03T08:39:56.000000Z", + EndsAt = "2020-11-03T02:57:26.000000Z", + StartsAt = "2021-10-24T06:28:19.000000Z", + DiscountUpperLimit = 7304, + Description = "x53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzh", + Name = "bkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKN", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 8478.0, - DisplayEndsAt = "2022-10-07T01:23:27.000000Z", - DisplayStartsAt = "2020-11-03T09:46:30.000000Z", - EndsAt = "2022-05-11T18:45:46.000000Z", - StartsAt = "2020-09-04T22:22:21.000000Z", - DiscountUpperLimit = 7232, - Description = "xUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hM", - Name = "qGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q", + DiscountPercentage = 6856.0, + DisplayEndsAt = "2020-12-11T15:26:11.000000Z", + DisplayStartsAt = "2021-08-21T17:19:13.000000Z", + EndsAt = "2022-11-22T01:22:29.000000Z", + StartsAt = "2021-08-31T06:48:48.000000Z", + DiscountUpperLimit = 1130, + Description = "8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNT", + Name = "sv2Llex1ej", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 6199.0, - IsDisabled = true, - DisplayEndsAt = "2020-12-02T01:56:58.000000Z", - DisplayStartsAt = "2020-08-12T00:00:14.000000Z", - EndsAt = "2022-02-15T18:53:30.000000Z", - StartsAt = "2023-01-08T07:25:15.000000Z", - DiscountUpperLimit = 4089, - Description = "jEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMs", - Name = "A1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSkn", + DiscountPercentage = 7424.0, + IsDisabled = false, + DisplayEndsAt = "2021-07-22T17:27:26.000000Z", + DisplayStartsAt = "2023-10-23T01:56:33.000000Z", + EndsAt = "2022-02-25T09:09:49.000000Z", + StartsAt = "2022-12-09T07:26:19.000000Z", + DiscountUpperLimit = 1629, + Description = "2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3", + Name = "OsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnU", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 6019.0, + DiscountPercentage = 2045.0, IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2021-02-23T18:14:02.000000Z", - DisplayStartsAt = "2022-10-22T07:05:19.000000Z", - EndsAt = "2022-02-17T16:54:47.000000Z", - StartsAt = "2021-01-29T00:52:35.000000Z", - DiscountUpperLimit = 5428, - Description = "aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsT", - Name = "xqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjq", + IsDisabled = true, + DisplayEndsAt = "2023-03-21T12:04:18.000000Z", + DisplayStartsAt = "2022-05-30T04:00:12.000000Z", + EndsAt = "2022-04-06T02:14:53.000000Z", + StartsAt = "2021-12-10T15:31:13.000000Z", + DiscountUpperLimit = 8278, + Description = "97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQP", + Name = "L0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM0", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 9743.0, + DiscountPercentage = 5926.0, IsPublic = true, - IsHidden = true, - IsDisabled = false, - DisplayEndsAt = "2023-07-24T23:18:14.000000Z", - DisplayStartsAt = "2021-04-22T12:28:18.000000Z", - EndsAt = "2022-09-23T16:27:24.000000Z", - StartsAt = "2021-01-24T12:52:37.000000Z", - DiscountUpperLimit = 606, - Description = "NXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ8", - Name = "p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZO", + IsHidden = false, + IsDisabled = true, + DisplayEndsAt = "2024-01-01T04:51:29.000000Z", + DisplayStartsAt = "2023-12-19T12:56:00.000000Z", + EndsAt = "2020-01-25T17:00:23.000000Z", + StartsAt = "2020-08-27T08:24:51.000000Z", + DiscountUpperLimit = 2265, + Description = "kecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvC", + Name = "pCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 8405.0, - Code = "0zGq4PpZBc", - IsPublic = false, - IsHidden = false, + DiscountPercentage = 2345.0, + Code = "cd", + IsPublic = true, + IsHidden = true, IsDisabled = true, - DisplayEndsAt = "2023-08-26T05:56:22.000000Z", - DisplayStartsAt = "2023-09-30T11:22:26.000000Z", - EndsAt = "2023-01-31T10:52:46.000000Z", - StartsAt = "2021-06-22T23:31:22.000000Z", - DiscountUpperLimit = 848, - Description = "stD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7", - Name = "5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz", + DisplayEndsAt = "2022-01-25T22:26:12.000000Z", + DisplayStartsAt = "2020-01-27T18:47:21.000000Z", + EndsAt = "2023-07-17T16:34:48.000000Z", + StartsAt = "2020-09-13T22:04:01.000000Z", + DiscountUpperLimit = 4885, + Description = "1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQN", + Name = "H3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsG", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 9651.0, - UsageLimit = 3352, - Code = "fpT8lgG", + DiscountPercentage = 2030.0, + UsageLimit = 3614, + Code = "PtZOQ7w", IsPublic = true, IsHidden = false, IsDisabled = false, - DisplayEndsAt = "2021-06-02T05:42:42.000000Z", - DisplayStartsAt = "2021-01-25T22:40:46.000000Z", - EndsAt = "2022-03-01T13:27:34.000000Z", - StartsAt = "2022-02-25T10:45:56.000000Z", - DiscountUpperLimit = 3159, - Description = "SdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5c", - Name = "GcBP5wA9GwSB8bfxMId7hFKERGvYa", + DisplayEndsAt = "2020-08-09T06:07:33.000000Z", + DisplayStartsAt = "2022-07-26T14:13:54.000000Z", + EndsAt = "2022-10-02T01:58:02.000000Z", + StartsAt = "2023-05-23T01:51:38.000000Z", + DiscountUpperLimit = 209, + Description = "MzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5s", + Name = "OcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNe", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 9149.0, - MinAmount = 2231, - UsageLimit = 6653, - Code = "bD1cIyw", - IsPublic = true, + DiscountPercentage = 8824.0, + MinAmount = 5682, + UsageLimit = 3583, + Code = "B", + IsPublic = false, IsHidden = false, IsDisabled = true, - DisplayEndsAt = "2023-07-03T17:15:20.000000Z", - DisplayStartsAt = "2021-08-20T09:11:22.000000Z", - EndsAt = "2021-06-13T20:21:16.000000Z", - StartsAt = "2022-12-19T18:04:08.000000Z", - DiscountUpperLimit = 1549, - Description = "cQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPv", - Name = "tQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iH", + DisplayEndsAt = "2021-08-26T15:14:52.000000Z", + DisplayStartsAt = "2020-04-26T05:03:43.000000Z", + EndsAt = "2020-03-19T14:35:15.000000Z", + StartsAt = "2023-05-13T15:00:56.000000Z", + DiscountUpperLimit = 4194, + Description = "lTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs", + Name = "D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 4770.0, + DiscountPercentage = 5367.0, IsShopSpecified = false, - MinAmount = 7922, - UsageLimit = 9929, - Code = "swPc2", - IsPublic = true, - IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2020-03-27T12:54:11.000000Z", - DisplayStartsAt = "2020-05-10T02:22:04.000000Z", - EndsAt = "2020-04-17T04:38:29.000000Z", - StartsAt = "2022-03-25T04:16:14.000000Z", - DiscountUpperLimit = 4958, - Description = "kU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNR", - Name = "CHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDw", + MinAmount = 522, + UsageLimit = 947, + Code = "jv", + IsPublic = false, + IsHidden = true, + IsDisabled = false, + DisplayEndsAt = "2022-12-21T03:52:49.000000Z", + DisplayStartsAt = "2021-06-29T07:22:40.000000Z", + EndsAt = "2023-06-08T17:17:20.000000Z", + StartsAt = "2022-06-26T07:30:54.000000Z", + DiscountUpperLimit = 520, + Description = "WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md", + Name = "8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYw", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 6342.0, - AvailableShopIds = new string[]{"42761e86-170f-4746-a5dd-1166e55ee0a2", "da1330e3-754e-48ce-8c41-1d7ff794db93", "3f6cf7e6-fb07-49d4-b036-3e60ae980196", "678f86c7-1933-48ed-b29e-8453f9a41db1", "285bb3ba-1fb1-479c-9f80-01c8d1134c1b", "7b416a00-e792-402f-9744-192e78c7af69", "4fc6c6ce-da91-48c3-b25f-b0547fa396b6", "86db4725-51da-4f31-bb03-52084a666b85"}, + DiscountPercentage = 3664.0, + AvailableShopIds = new string[]{"99cf987e-da3a-45da-95b5-5fad8f958ade", "9a76d1c7-07db-4714-b96f-48892c7f1d82", "f8818ddf-c183-4959-9986-dea8ac560563", "180914e7-edd0-41d0-899a-3efcfe0e54ae"}, IsShopSpecified = true, - MinAmount = 9374, - UsageLimit = 2246, - Code = "Wi9xNJq", - IsPublic = true, + MinAmount = 6579, + UsageLimit = 6318, + Code = "chqik", + IsPublic = false, IsHidden = false, - IsDisabled = true, - DisplayEndsAt = "2021-02-22T21:43:44.000000Z", - DisplayStartsAt = "2022-08-14T04:38:13.000000Z", - EndsAt = "2023-08-01T15:33:49.000000Z", - StartsAt = "2022-09-08T13:08:36.000000Z", - DiscountUpperLimit = 7305, - Description = "G4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhv", - Name = "p3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkr", + IsDisabled = false, + DisplayEndsAt = "2023-03-17T04:01:58.000000Z", + DisplayStartsAt = "2023-01-02T11:21:04.000000Z", + EndsAt = "2023-07-15T18:38:42.000000Z", + StartsAt = "2020-07-09T19:15:58.000000Z", + DiscountUpperLimit = 5457, + Description = "J7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78", + Name = "CpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRr", }; 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( - "0141503f-c0ce-43b5-953d-d98d85dd6745" + "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab" ) { - DiscountPercentage = 7309.0, - StorageId = "15dcc571-fa3b-4727-ae82-bd92b528c9ba", - AvailableShopIds = new string[]{"6160df3a-d2a1-4b0d-9363-007aa169cba4", "405f6334-0db3-4aa3-9daa-795de6a959e4", "265693ac-b5a9-472f-82a3-b06d681948b2", "ec9dfab6-8506-4b8e-8f9a-503a3d7cd78f", "cb34a0f2-1a37-4960-86a4-102d93d03b45", "e255b237-eeef-4e78-98f7-0311f60f4509"}, - IsShopSpecified = false, - MinAmount = 6385, - UsageLimit = 2847, - Code = "eP95WFsrDT", - IsPublic = true, + DiscountPercentage = 4465.0, + StorageId = "ce3bcc09-acfc-4779-b346-1ceff62df628", + AvailableShopIds = new string[]{"1b9bda8d-b38a-4af2-9d52-685ef1c58318", "01966d81-08af-46e9-9c87-bd48f6730fe2", "3ea677e6-839c-4994-b4ce-f527763c799d", "24cd7a97-a737-49b7-bc45-ca04ac597b90", "1948f3a3-e32a-4589-9139-f206be16d483", "ce7d3695-4873-494b-8b11-e5de39d53829", "711576a0-ac9e-4c19-9d0d-7cd0caa0a41f", "37453a1b-af9f-4f26-b24c-9edfd5614e19", "e1553fd7-ab86-4654-88ad-4cd1202bf3eb"}, + IsShopSpecified = true, + MinAmount = 9809, + UsageLimit = 3094, + Code = "TkmfS", + IsPublic = false, IsHidden = false, - IsDisabled = false, - DisplayEndsAt = "2024-02-03T06:31:48.000000Z", - DisplayStartsAt = "2020-08-15T14:35:18.000000Z", - EndsAt = "2021-10-31T14:42:36.000000Z", - StartsAt = "2022-04-12T10:51:52.000000Z", - DiscountUpperLimit = 8652, - Description = "Ax4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8M", - Name = "hwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnP", + IsDisabled = true, + DisplayEndsAt = "2023-07-03T10:11:19.000000Z", + DisplayStartsAt = "2021-07-30T18:26:40.000000Z", + EndsAt = "2022-09-30T10:55:01.000000Z", + StartsAt = "2022-06-20T02:34:59.000000Z", + DiscountUpperLimit = 710, + Description = "mTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLq", + Name = "eRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWF", }; Response.CouponDetail response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateShop.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateShop.cs index 74472dc..13c893c 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( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ); Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -40,7 +40,7 @@ public async Task UpdateShop1() { try { Request.UpdateShop request = new Request.UpdateShop( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { Status = "disabled", }; @@ -57,10 +57,10 @@ public async Task UpdateShop2() { try { Request.UpdateShop request = new Request.UpdateShop( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { - CanTopupPrivateMoneyIds = new string[]{"5fa90a67-3047-4dfe-878a-eee672a5e923"}, - Status = "active", + CanTopupPrivateMoneyIds = new string[]{"b641d85b-3ca4-4710-88d9-85d21e42d16a", "2f93d07a-3629-4c41-92da-738c009370de", "b11d6899-71f7-4630-857c-5b35524dabd4", "d67ba291-9cf9-4c30-801f-52fe8a8d0707", "be9d8702-b5ee-4ee5-aef7-5c2394fb0f7a", "20f018c8-664f-4b7f-a1c9-64d649d982f7", "055db824-ca0d-4aa8-8e0b-c14d74005b0e", "443a0c54-749a-4b91-88ea-5d9f33b2bdd0"}, + Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -75,11 +75,11 @@ public async Task UpdateShop3() { try { Request.UpdateShop request = new Request.UpdateShop( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { - PrivateMoneyIds = new string[]{"29fb46c5-b0ec-48aa-abd3-7c63c52755f4", "3d0263b5-85ab-4040-b6f4-d34283f789b3", "3eb85d40-a0d1-4c76-9b40-60d90f7262ea", "69c91f11-9ef9-4138-adfb-1f556ce4fe92"}, - CanTopupPrivateMoneyIds = new string[]{"5051c900-a3e7-4fc4-b995-18d8133f5e2e", "2aa5f88e-fc51-4f3a-a314-3c59ffd68307", "2484e9cf-4d8e-45aa-9801-0fd37fd97073", "bca5ddae-a968-4818-99f0-8bbddafef847", "b75cabcd-3a43-4e6b-a5b1-d8b082e4543c", "95fb439b-4fe6-47c1-a0f0-760b37469215", "d15d3b23-df99-41a0-8b8b-f9a98e80cf6a", "74f519ad-bc22-4f14-82a5-4dc81236f1fc", "1ab9e96e-582c-4dc1-ad64-546c230b35cb", "c071107f-4991-4a69-9c8b-51d59157551d"}, - Status = "active", + PrivateMoneyIds = new string[]{"4b7d345e-13c6-4e94-9f4d-7f04f85d3647", "1c45aa1a-91e5-4376-a713-c0f714edd5d6", "9295abcd-c59f-4365-80da-781df7cf65df", "aaee20fb-f7ab-490a-8ff4-c03888f3fac5", "b1806aa8-1f71-409b-9faf-227ee7d8abc9", "326fac9b-1e76-453e-898e-fa09cb96c892"}, + CanTopupPrivateMoneyIds = new string[]{"695a3ff8-327c-48f6-81fe-80ecbca5126a", "3a30c4b5-c24b-4be1-ac8b-91f1220b3dbc", "5b5eaff8-e42c-4b0c-a418-1a034c73bb41", "33f65219-2a29-49fe-b748-56f526e1472a", "dd005588-4e1e-435c-9f91-a03f8a4b4492", "0f15b3fd-5c7b-4171-a3f6-f4293fcaaf9f", "cc2df764-af18-4b91-934e-0d1ceeb25c5b", "c05683f6-9ee5-48d7-bad7-6ec908a01f2e", "ac6a7a35-f5cc-4a93-8097-b88d36f43bb6"}, + 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( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { - ExternalId = "9Jq", - PrivateMoneyIds = new string[]{"c68e4efb-1f16-49fc-8222-1f61bb680fa0", "c74a61ee-3a0c-4cc9-94aa-775ca1bc5a7e", "1c5cc500-ba0c-43bc-85b8-ce255910bbc6", "7b24ba89-06f1-4dc9-98f1-dafa999c5565", "cb769e89-7619-47a1-ac82-5bc7d0a85d7e", "aafdc9be-a129-40da-bbc4-3c4f5d81e904", "7492fb87-0ace-4855-9f25-3f2c6bb56041", "a230f8bd-092d-45a6-8a20-31e6d3d9be5e", "ce8674ec-f832-47c8-8df4-b5dbffb072a0"}, - CanTopupPrivateMoneyIds = new string[]{"777ab079-f261-418c-9301-5a57e5916930", "1ea06047-daeb-46f4-86b1-3970ddcfbe8f", "7e85e68f-01cf-4593-8cc2-9da4168c7a5a", "399d3c81-38fb-4d17-9efb-70bae03a6f81", "7785ce08-d1ef-4bfe-b3f8-b96381658f55", "e308a894-e9df-4eb6-bbd7-bf311836ad5e", "2563113d-6f76-4128-bbc6-b89be1307722"}, - Status = "disabled", + ExternalId = "QvZvRJLln3CmVmPz2bcH2x", + PrivateMoneyIds = new string[]{"47f387c2-4048-427c-94e2-6980a843eee9", "f7ec771e-0bcf-4ac8-a7a2-ca1268fe0c59", "8724bc8d-bc14-435c-a2fa-b25f6dc092a9", "307f775e-0bd7-4720-86b7-9445bb04c59d", "b2791b2b-74d9-4b0f-83ae-30661ce90ba7", "0f4e0bb7-bab6-45ad-946f-615c544ea624"}, + CanTopupPrivateMoneyIds = new string[]{"451b0c2e-dea3-47e3-bca1-6b896ea55708", "4744398d-0eec-4100-b8e4-eef4c9589522", "abd40a2a-d67a-443f-9563-b0f13639882d", "edc5efc4-95b6-41f2-b12e-be405b3f107f", "933685f7-b147-4426-84fd-3a88da476a56", "dd9456d2-19e4-4c6f-a0ea-328534361b47", "556f5a6a-947b-46e9-a748-cc70dd98a114", "70b6451f-96da-4ebb-846c-121b99048d9d"}, + 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( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { - Email = "KN952VUdQ3@t63W.com", - ExternalId = "20fNhPhFK8mUwq4sfxVOVqIgogobrlT", - PrivateMoneyIds = new string[]{"9823cf2b-f381-44ae-b60b-d5f20e5219cb", "55a1f4f2-b119-4bf5-a9fb-b769884cf7fc"}, - CanTopupPrivateMoneyIds = new string[]{"636c1820-9a26-4773-907b-90477b34d0e3", "007be46a-5552-4278-a4bb-e5914e4db0cb", "5493bc2b-50fc-485f-ba23-a77a6d468db0", "019d7afd-7968-4dee-8821-680672124bf4", "4813a6d0-78bb-4722-853d-0c6ddd1fa49f", "cff5a1a7-2a10-45cf-951a-700da84524c6", "38ad6c7b-5b7a-4e79-a565-9231bd0531bd", "12ff47b0-6b84-44f3-8dee-3f8ccf24f131"}, + Email = "8InHQBhMIr@dZJT.com", + ExternalId = "9MnQgGfElkSct56tB3QvYjy8m", + PrivateMoneyIds = new string[]{"6ce4fe92-b0aa-4900-a7c4-5679cd343c95", "0b0218d8-5e2e-488e-913a-62a382675314", "d48a3c59-8307-49cf-8eaa-ce182f38af01", "3bf70fd3-7073-4dae-a818-c1199f4aa6f0", "27138bbd-f847-4bcd-836b-6fe5a7c4cdb1"}, + CanTopupPrivateMoneyIds = new string[]{}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -135,13 +135,13 @@ public async Task UpdateShop6() { try { Request.UpdateShop request = new Request.UpdateShop( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { - Tel = "00-745-336", - Email = "lk2JdjznjO@ojFz.com", - ExternalId = "yYyUwwyS9B5htgNIDpUpzK", - PrivateMoneyIds = new string[]{"3bc1ff09-4879-44ea-bb33-454222aabdc5", "370e4c3f-9576-4059-be3e-40f0c8aff2bf", "202a04bf-151e-4b31-ada7-673efe94eadc", "1ac3a6d4-78e2-401e-b5f9-e1531fd257c9", "81047840-cfa6-4018-b901-717decbe0290", "935a3139-1bf6-424d-a8e0-a3bd759a830f", "0bd62426-11e6-416a-9201-127dd63638f3", "407b3139-7a52-4d53-9b56-c01791224d49", "eff36d7c-af75-4621-92db-74cca06ff8ca"}, - CanTopupPrivateMoneyIds = new string[]{"06c38321-09ed-49d5-a76f-19e4592a9639"}, + Tel = "0005-9248141", + Email = "iUj9JqianI@8FqI.com", + ExternalId = "qzelGZDONUAJfl2HMto7yaW0G", + PrivateMoneyIds = new string[]{"38efd286-ccb1-4970-8f8f-01cf76094593", "14b8b70c-2bc2-4da4-9a81-38fb67363d17", "6608ae1e-43fb-40ba-8108-d1efdbb8fbfe", "6ee8ecf3-d0f8-4963-9594-e9dff17a2eb6"}, + CanTopupPrivateMoneyIds = new string[]{"f873bf31-ad5e-413d-b628-9abb4f324bc6", "652db89b-7722-4f4d-8b27-0b4e5c64db39", "44f54ca8-c540-4a35-aa97-ea322987e4bf", "a250df56-3a2f-45ff-9564-17d1d2de9c33", "a3baf25f-8e7c-497e-863c-0a8bda44ad74", "80b438b6-bb08-4e33-bf09-6c9c6d7a8dd7", "54220f70-fb7f-4b79-b3e7-d55e4b891b07"}, Status = "active", }; Response.ShopWithAccounts response = await request.Send(client); @@ -157,15 +157,15 @@ public async Task UpdateShop7() { try { Request.UpdateShop request = new Request.UpdateShop( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { - Address = "RMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6p", - Tel = "08746216-4489", - Email = "oBOihdHvej@Lf7H.com", - ExternalId = "UNUhMpEnczy", - PrivateMoneyIds = new string[]{"7588d1e0-d04d-4d0a-97c1-9f7e33de2401", "719dfe50-f1af-4ee2-88d8-e003f62f85f9", "67b7fd3a-8ef4-4613-a483-feea17e06d5b", "826a47d5-8154-42b8-8619-e66be8fb3345", "bc3ff43d-ba36-4857-985c-934454f230e5", "9eaeeded-d2b2-4606-b267-afd321cbf6fa", "8b51258a-8c1d-4883-befc-3bfaa98cd7b3", "884f68b5-bbe1-48dd-bb22-24252c015f51"}, - CanTopupPrivateMoneyIds = new string[]{"4a941bb4-f044-498e-b912-e3b4e1884c6b", "1aa98052-8615-42b9-9330-a4d8e967e62f", "0d630554-b82e-4de4-a4ed-a54817458563", "80181943-76b0-4263-87fe-0c4612f3d73c", "98aeea40-c484-481e-9541-c88fe92b5693"}, - Status = "active", + Address = "20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7", + Tel = "037409056", + Email = "BC2Sel2Qni@qdOC.com", + ExternalId = "9my1YOO8Cj", + PrivateMoneyIds = new string[]{"40a9195b-e812-449b-8c30-80fbd0f9ae59", "4787c17c-e346-4bed-b6b4-07308a3c7e5f"}, + CanTopupPrivateMoneyIds = new string[]{"61851016-24d5-4e2e-afcd-6635e2edb077", "80343906-659b-4c85-94a6-44011287311e", "471eac5a-a4e7-4001-b5e5-069aa4784324", "dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515"}, + Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); @@ -180,15 +180,15 @@ public async Task UpdateShop8() { try { Request.UpdateShop request = new Request.UpdateShop( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { - PostalCode = "2576971", - Address = "FofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBW", - Tel = "01-6918789", - Email = "KNgsodWT1k@P64c.com", - ExternalId = "hZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5", - PrivateMoneyIds = new string[]{"ab36d9f0-1794-4c21-99e9-521cc876a0ab", "adda7660-557a-491a-a56c-9888103f5578", "fe3a9b7f-aa36-418e-bdda-d6f780992ab3", "ead5fdc1-eace-405d-ab24-f9a7ec283ddf"}, - CanTopupPrivateMoneyIds = new string[]{"c8dd41ae-0a04-4ce5-8e4d-d25356c9c581", "1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599"}, + PostalCode = "8609258", + Address = "E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ", + Tel = "09-16923", + Email = "YZY4p9bZgs@cBV3.com", + ExternalId = "pXiPPiW2qUm4F", + PrivateMoneyIds = new string[]{"427fc08c-0851-4c85-b5e3-ab2d687ff6f3", "1a4e61fc-15ac-43ed-bab0-77c75a672c59"}, + CanTopupPrivateMoneyIds = new string[]{"056a8ddb-0ef7-40d9-847f-2c38b86fd813"}, Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); @@ -204,17 +204,17 @@ public async Task UpdateShop9() { try { Request.UpdateShop request = new Request.UpdateShop( - "f955ad39-a505-4cae-bcab-3898474d3cff" + "375fa126-c77a-44bf-b786-a86bc10796f6" ) { - Name = "igb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3hyN", - PostalCode = "0717105", - Address = "fSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9Dfg2K2KSBJ32yceHkpeJS53", - Tel = "0196952029", - Email = "uNlhP5RwfR@sdmS.com", - ExternalId = "nsKFojcLOuuurZaaP5z", - PrivateMoneyIds = new string[]{"f79d17f5-c6e9-4074-8ac1-0c57e8a7a542", "923d5e6e-f9cd-4954-9108-2183bf1ddb07", "da32a409-5072-49f1-914c-fd6240e5be18", "964449b4-4a0a-4186-a786-a54641f375b2", "5b20ebff-7414-4925-b75f-ab9215b0fa39", "50788947-c563-4e05-8773-ef64881eb210"}, - CanTopupPrivateMoneyIds = new string[]{"cf9981f4-70bc-46a6-834d-d1b3c74ccdac", "c5c87499-e6f5-432c-97c0-408bc5a6a98c", "9eb27d88-aa5e-4c53-a11d-87c540654e59", "c1060862-d4f5-4d98-a17e-eeba284b644f"}, - Status = "active", + Name = "K8kF9CcO2FCZ7wQECuE", + PostalCode = "987-8945", + Address = "4l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", + Tel = "047-4531-939", + Email = "gb4Yb3t6km@vyhj.com", + ExternalId = "D7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJ", + PrivateMoneyIds = new string[]{}, + CanTopupPrivateMoneyIds = new string[]{"13e59d9d-b8b0-40fc-83fc-c2046b3661c8", "d2330960-b1b1-472b-9530-bcc74e9936d1", "c9e06b62-7a39-4297-9f36-18cae73755fa"}, + Status = "disabled", }; Response.ShopWithAccounts response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk.Test/TestUpdateWebhook.cs b/src/PokepayPartnerCsharpSdk.Test/TestUpdateWebhook.cs index 525f560..1bed2fd 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( - "1357dd08-2644-4a80-a512-1e10d9b922de" + "a7551e28-11d6-40e9-97de-ecc70a6d636b" ); 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( - "1357dd08-2644-4a80-a512-1e10d9b922de" + "a7551e28-11d6-40e9-97de-ecc70a6d636b" ) { Task = "process_user_stats_operation", }; @@ -57,9 +57,9 @@ public async Task UpdateWebhook2() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "1357dd08-2644-4a80-a512-1e10d9b922de" + "a7551e28-11d6-40e9-97de-ecc70a6d636b" ) { - IsActive = true, + IsActive = false, Task = "bulk_shops", }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); @@ -75,11 +75,11 @@ public async Task UpdateWebhook3() { try { Request.UpdateWebhook request = new Request.UpdateWebhook( - "1357dd08-2644-4a80-a512-1e10d9b922de" + "a7551e28-11d6-40e9-97de-ecc70a6d636b" ) { - Url = "vc", - IsActive = false, - Task = "bulk_shops", + Url = "rsKgu2ih", + IsActive = true, + Task = "process_user_stats_operation", }; Response.OrganizationWorkerTaskWebhook response = await request.Send(client); Assert.NotNull(response, "Shouldn't be null at least"); diff --git a/src/PokepayPartnerCsharpSdk/PokepayPartnerCsharpSdk.csproj b/src/PokepayPartnerCsharpSdk/PokepayPartnerCsharpSdk.csproj index 87e9bce..8e96a98 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.5 + 1.3.6 Library True True diff --git a/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs b/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs index 7ed492e..1eb0367 100644 --- a/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk/Request/CreateCampaign.cs @@ -26,9 +26,12 @@ public class CreateCampaign public string Subject { get; set; } public object[] AmountBasedPointRules { get; set; } public object[] ProductBasedPointRules { get; set; } + public object[] BlacklistedProductRules { get; set; } public int[] ApplicableDaysOfWeek { get; set; } public object[] ApplicableTimeRanges { get; set; } public string[] ApplicableShopIds { get; set; } + public System.Nullable MinimumNumberOfProducts { get; set; } + public System.Nullable MinimumNumberOfAmount { get; set; } public System.Nullable MinimumNumberForCombinationPurchase { get; set; } public System.Nullable ExistInEachProductGroups { get; set; } public System.Nullable MaxPointAmount { get; set; } @@ -62,12 +65,18 @@ public class CreateCampaign #nullable enable public object[]? ProductBasedPointRules { get; set; } #nullable enable + public object[]? BlacklistedProductRules { get; set; } + #nullable enable public int[]? ApplicableDaysOfWeek { get; set; } #nullable enable public object[]? ApplicableTimeRanges { get; set; } #nullable enable public string[]? ApplicableShopIds { get; set; } #nullable enable + public int? MinimumNumberOfProducts { get; set; } + #nullable enable + public int? MinimumNumberOfAmount { get; set; } + #nullable enable public int? MinimumNumberForCombinationPurchase { get; set; } #nullable enable public bool? ExistInEachProductGroups { get; set; } diff --git a/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs b/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs index 5bbdc73..e78e2ad 100644 --- a/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs +++ b/src/PokepayPartnerCsharpSdk/Request/UpdateCampaign.cs @@ -25,9 +25,12 @@ public class UpdateCampaign public string Subject { get; set; } public object[] AmountBasedPointRules { get; set; } public object[] ProductBasedPointRules { get; set; } + public object[] BlacklistedProductRules { get; set; } public int[] ApplicableDaysOfWeek { get; set; } public object[] ApplicableTimeRanges { get; set; } public string[] ApplicableShopIds { get; set; } + public System.Nullable MinimumNumberOfProducts { get; set; } + public System.Nullable MinimumNumberOfAmount { get; set; } public System.Nullable MinimumNumberForCombinationPurchase { get; set; } public System.Nullable ExistInEachProductGroups { get; set; } public System.Nullable MaxPointAmount { get; set; } @@ -62,12 +65,18 @@ public class UpdateCampaign #nullable enable public object[]? ProductBasedPointRules { get; set; } #nullable enable + public object[]? BlacklistedProductRules { get; set; } + #nullable enable public int[]? ApplicableDaysOfWeek { get; set; } #nullable enable public object[]? ApplicableTimeRanges { get; set; } #nullable enable public string[]? ApplicableShopIds { get; set; } #nullable enable + public int? MinimumNumberOfProducts { get; set; } + #nullable enable + public int? MinimumNumberOfAmount { get; set; } + #nullable enable public int? MinimumNumberForCombinationPurchase { get; set; } #nullable enable public bool? ExistInEachProductGroups { get; set; }