From df01d7f200bf1e42587d230cd1d6188df5640bf0 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Thu, 25 Apr 2024 12:27:43 +0000 Subject: [PATCH] generate --- docs/README.md | 15 +- docs/account.md | 10 +- docs/bank_pay.md | 97 +- docs/bill.md | 43 +- docs/bulk.md | 18 +- docs/campaign.md | 420 +- docs/cashtray.md | 93 +- docs/check.md | 383 +- docs/coupon.md | 93 +- docs/customer.md | 197 +- docs/event.md | 85 +- docs/organization.md | 31 +- docs/private_money.md | 17 +- docs/shop.md | 71 +- docs/transaction.md | 328 +- docs/transfer.md | 45 +- docs/user.md | 6 + docs/user_device.md | 9 + docs/webhook.md | 135 +- lib/pokepay_partner_ruby_sdk.rb | 15 +- .../get_external_transaction_by_request_id.rb | 15 + .../response/product.rb | 2 + partner.yaml | 350 +- test/request_validation_test.rb | 8621 +++++++++-------- 24 files changed, 6186 insertions(+), 4913 deletions(-) create mode 100644 lib/pokepay_partner_ruby_sdk/request/get_external_transaction_by_request_id.rb diff --git a/docs/README.md b/docs/README.md index 51c5a45..e7c3696 100644 --- a/docs/README.md +++ b/docs/README.md @@ -179,8 +179,8 @@ response.body - [ListTransfersV2](./transfer.md#list-transfers-v2): ### Check -- [CreateCheck](./check.md#create-check): チャージQRコードの発行 - [ListChecks](./check.md#list-checks): チャージQRコード一覧の取得 +- [CreateCheck](./check.md#create-check): チャージQRコードの発行 - [GetCheck](./check.md#get-check): チャージQRコードの表示 - [UpdateCheck](./check.md#update-check): チャージQRコードの更新 - [CreateTopupTransactionWithCheck](./check.md#create-topup-transaction-with-check): チャージQRコードを読み取ることでチャージする @@ -192,14 +192,14 @@ response.body ### Cashtray - [CreateCashtray](./cashtray.md#create-cashtray): Cashtrayを作る -- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する - [CancelCashtray](./cashtray.md#cancel-cashtray): Cashtrayを無効化する +- [GetCashtray](./cashtray.md#get-cashtray): Cashtrayの情報を取得する - [UpdateCashtray](./cashtray.md#update-cashtray): Cashtrayの情報を更新する ### Customer +- [DeleteAccount](./customer.md#delete-account): ウォレットを退会する - [GetAccount](./customer.md#get-account): ウォレット情報を表示する - [UpdateAccount](./customer.md#update-account): ウォレット情報を更新する -- [DeleteAccount](./customer.md#delete-account): ウォレットを退会する - [ListAccountBalances](./customer.md#list-account-balances): エンドユーザーの残高内訳を表示する - [ListAccountExpiredBalances](./customer.md#list-account-expired-balances): エンドユーザーの失効済みの残高内訳を表示する - [UpdateCustomerAccount](./customer.md#update-customer-account): エンドユーザーのウォレット情報を更新する @@ -237,18 +237,19 @@ response.body ### Event - [CreateExternalTransaction](./event.md#create-external-transaction): ポケペイ外部取引を作成する - [RefundExternalTransaction](./event.md#refund-external-transaction): ポケペイ外部取引をキャンセルする +- [GetExternalTransactionByRequestId](./event.md#get-external-transaction-by-request-id): リクエストIDからポケペイ外部取引を取得する ### Campaign -- [CreateCampaign](./campaign.md#create-campaign): ポイント付与キャンペーンを作る - [ListCampaigns](./campaign.md#list-campaigns): キャンペーン一覧を取得する +- [CreateCampaign](./campaign.md#create-campaign): ポイント付与キャンペーンを作る - [GetCampaign](./campaign.md#get-campaign): キャンペーンを取得する - [UpdateCampaign](./campaign.md#update-campaign): ポイント付与キャンペーンを更新する ### Webhook -- [CreateWebhook](./webhook.md#create-webhook): webhookの作成 - [ListWebhooks](./webhook.md#list-webhooks): 作成したWebhookの一覧を返す -- [UpdateWebhook](./webhook.md#update-webhook): Webhookの更新 +- [CreateWebhook](./webhook.md#create-webhook): webhookの作成 - [DeleteWebhook](./webhook.md#delete-webhook): Webhookの削除 +- [UpdateWebhook](./webhook.md#update-webhook): Webhookの更新 ### Coupon - [ListCoupons](./coupon.md#list-coupons): クーポン一覧の取得 @@ -262,7 +263,7 @@ response.body - [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 ### BankPay -- [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 +- [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ diff --git a/docs/account.md b/docs/account.md index 6608ddd..0fd98ab 100644 --- a/docs/account.md +++ b/docs/account.md @@ -7,8 +7,8 @@ ```RUBY response = $client.send(Pokepay::Request::ListUserAccounts.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_id: ユーザーID - page: 9970, # ページ番号 - per_page: 7800 # 1ページ分の取引数 + page: 3981, # ページ番号 + per_page: 6981 # 1ページ分の取引数 )) ``` @@ -60,6 +60,7 @@ response = $client.send(Pokepay::Request::ListUserAccounts.new( を返します + --- @@ -71,8 +72,8 @@ response = $client.send(Pokepay::Request::ListUserAccounts.new( response = $client.send(Pokepay::Request::CreateUserAccount.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_id: ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - name: "musaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqor", # ウォレット名 - external_id: "IswPc2cB", # 外部ID + name: "8UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM6", # ウォレット名 + external_id: "4iLpLDhctAZixWvzCjvZGuuLmpXA", # 外部ID metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" # ウォレットに付加するメタデータ )) ``` @@ -151,6 +152,7 @@ response = $client.send(Pokepay::Request::CreateUserAccount.new( を返します + --- diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 0129a65..f0afb3e 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -2,6 +2,53 @@ BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 + +## ListBanks: 登録した銀行の一覧 +登録した銀行を一覧します + +```RUBY +response = $client.send(Pokepay::Request::ListBanks.new( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_device_id: デバイスID + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" +)) +``` + + + +### Parameters +**`user_device_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`private_money_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Banks](./responses.md#banks) +を返します + + + +--- + + ## CreateBank: 銀行口座の登録 銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 @@ -16,7 +63,7 @@ response = $client.send(Pokepay::Request::CreateBank.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID "", # callback_url: コールバックURL "ポケペイタロウ", # kana: ユーザーの氏名 (片仮名で指定) - email: "qC15yVJZpc@8KVp.com", # ユーザーのメールアドレス + email: "gJk8ucSDE2@uEYU.com", # ユーザーのメールアドレス birthdate: "19901142" # 生年月日 )) ``` @@ -98,51 +145,6 @@ response = $client.send(Pokepay::Request::CreateBank.new( を返します ---- - - - -## ListBanks: 登録した銀行の一覧 -登録した銀行を一覧します - -```RUBY -response = $client.send(Pokepay::Request::ListBanks.new( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_device_id: デバイスID - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" -)) -``` - - - -### Parameters -**`user_device_id`** - - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`private_money_id`** - - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[Banks](./responses.md#banks) -を返します - --- @@ -155,7 +157,7 @@ response = $client.send(Pokepay::Request::ListBanks.new( response = $client.send(Pokepay::Request::CreateBankTopupTransaction.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # user_device_id: デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - 7742, # amount: チャージ金額 + 3425, # amount: チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # bank_id: 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # request_id: リクエストID )) @@ -226,6 +228,7 @@ response = $client.send(Pokepay::Request::CreateBankTopupTransaction.new( を返します + --- diff --git a/docs/bill.md b/docs/bill.md index 203fc91..0acc295 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -7,19 +7,19 @@ ```RUBY response = $client.send(Pokepay::Request::ListBills.new( - page: 8308, # ページ番号 - per_page: 5622, # 1ページの表示数 - bill_id: "laKx", # 支払いQRコードのID + page: 3267, # ページ番号 + per_page: 86, # 1ページの表示数 + bill_id: "ahT", # 支払いQRコードのID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID - organization_code: "CMf-9Tbr-uA-3dv2K1u-t2aU848H--", # 組織コード + organization_code: "Yn---3HQAgb-2e7-", # 組織コード description: "test bill", # 取引説明文 - created_from: "2020-01-14T03:21:13.000000Z", # 作成日時(起点) - created_to: "2020-09-03T11:53:51.000000Z", # 作成日時(終点) + created_from: "2021-04-21T09:05:36.000000Z", # 作成日時(起点) + created_to: "2024-01-07T03:40:33.000000Z", # 作成日時(終点) shop_name: "bill test shop1", # 店舗名 shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID - lower_limit_amount: 3745, # 金額の範囲によるフィルタ(下限) - upper_limit_amount: 6172, # 金額の範囲によるフィルタ(上限) - is_disabled: true # 支払いQRコードが無効化されているかどうか + lower_limit_amount: 3478, # 金額の範囲によるフィルタ(下限) + upper_limit_amount: 765, # 金額の範囲によるフィルタ(上限) + is_disabled: false # 支払いQRコードが無効化されているかどうか )) ``` @@ -193,6 +193,12 @@ response = $client.send(Pokepay::Request::ListBills.new( [PaginatedBills](./responses.md#paginated-bills) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- @@ -205,7 +211,7 @@ response = $client.send(Pokepay::Request::ListBills.new( response = $client.send(Pokepay::Request::CreateBill.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 支払い先(受け取り人)の店舗ID - amount: 6991.0, # 支払い額 + amount: 3166.0, # 支払い額 description: "test bill" # 説明文(アプリ上で取引の説明文として表示される) )) ``` @@ -265,6 +271,18 @@ response = $client.send(Pokepay::Request::CreateBill.new( [Bill](./responses.md#bill) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_suspended|アカウントは停止されています|The account is suspended| + + --- @@ -276,9 +294,9 @@ response = $client.send(Pokepay::Request::CreateBill.new( ```RUBY response = $client.send(Pokepay::Request::UpdateBill.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # bill_id: 支払いQRコードのID - amount: 3919.0, # 支払い額 + amount: 8218.0, # 支払い額 description: "test bill", # 説明文 - is_disabled: true # 無効化されているかどうか + is_disabled: false # 無効化されているかどうか )) ``` @@ -340,6 +358,7 @@ response = $client.send(Pokepay::Request::UpdateBill.new( を返します + --- diff --git a/docs/bulk.md b/docs/bulk.md index dddaf86..69fe261 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -6,10 +6,10 @@ CSVファイルから一括取引をします。 ```RUBY response = $client.send(Pokepay::Request::BulkCreateTransaction.new( - "skU0m8hSr1melepO9LnwIsUc", # name: 一括取引タスク名 - "mvb4", # content: 取引する情報のCSV - "GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P3", # request_id: リクエストID - description: "35Nv6jpCTg7cI", # 一括取引の説明 + "Jua2paAAkUgzb5zEsMYGbx", # name: 一括取引タスク名 + "IV2r2", # content: 取引する情報のCSV + "JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1EN", # request_id: リクエストID + description: "WOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCe", # 一括取引の説明 private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # マネーID )) ``` @@ -104,6 +104,16 @@ response = $client.send(Pokepay::Request::BulkCreateTransaction.new( [BulkTransaction](./responses.md#bulk-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.| +|409|NULL|NULL|NULL| +|422|private_money_not_found||Private money not found| +|422|bulk_transaction_invalid_csv_format|入力されたCSVデータに誤りがあります|Invalid csv format| + + --- diff --git a/docs/campaign.md b/docs/campaign.md index b9c6b90..10ce2bd 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -1,5 +1,119 @@ # Campaign + +## ListCampaigns: キャンペーン一覧を取得する +マネーIDを指定してキャンペーンを取得します。 +発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 +閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 + +```RUBY +response = $client.send(Pokepay::Request::ListCampaigns.new( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID + is_ongoing: true, # 現在適用可能なキャンペーンかどうか + available_from: "2021-11-30T05:42:47.000000Z", # 指定された日時以降に適用可能期間が含まれているか + available_to: "2021-07-03T22:34:35.000000Z", # 指定された日時以前に適用可能期間が含まれているか + page: 1, # ページ番号 + per_page: 20 # 1ページ分の取得数 +)) +``` + + + +### Parameters +**`private_money_id`** + + +マネーIDです。 + +フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`is_ongoing`** + + +有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 +真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "boolean" +} +``` + +**`available_from`** + + +キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`available_to`** + + +キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 +デフォルトでは未指定(フィルターなし)です。 + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 20 になっています。 + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 50 +} +``` + + + +成功したときは +[PaginatedCampaigns](./responses.md#paginated-campaigns) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + + +--- + + ## CreateCampaign: ポイント付与キャンペーンを作る ポイント付与キャンペーンを作成します。 @@ -7,19 +121,19 @@ ```RUBY response = $client.send(Pokepay::Request::CreateCampaign.new( - "jgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31R", # name: キャンペーン名 + "3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnxitPJhteZ9v4lYIFr", # name: キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - "2020-01-23T17:23:33.000000Z", # starts_at: キャンペーン開始日時 - "2023-11-29T10:51:14.000000Z", # ends_at: キャンペーン終了日時 - 9775, # priority: キャンペーンの適用優先度 + "2023-02-08T14:41:03.000000Z", # starts_at: キャンペーン開始日時 + "2022-08-12T21:34:24.000000Z", # ends_at: キャンペーン終了日時 + 786, # priority: キャンペーンの適用優先度 "external-transaction", # event: イベント種別 bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント負担先店舗ID - description: "FcTjCHIRk6EOKDYDfh7IyYBf", # キャンペーンの説明文 - status: "disabled", # キャンペーン作成時の状態 - point_expires_at: "2022-05-31T13:43:18.000000Z", # ポイント有効期限(絶対日時指定) - point_expires_in_days: 1075, # ポイント有効期限(相対日数指定) - is_exclusive: false, # キャンペーンの重複設定 - subject: "money", # ポイント付与の対象金額の種別 + description: "V35pBMGK", # キャンペーンの説明文 + status: "enabled", # キャンペーン作成時の状態 + point_expires_at: "2023-11-07T05:53:14.000000Z", # ポイント有効期限(絶対日時指定) + point_expires_in_days: 8195, # ポイント有効期限(相対日数指定) + is_exclusive: true, # キャンペーンの重複設定 + subject: "all", # ポイント付与の対象金額の種別 amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -45,24 +159,29 @@ response = $client.send(Pokepay::Request::CreateCampaign.new( "product_code": "4912345678904", "classification_code": "c123" }], # 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [4, 5, 2], # キャンペーンを適用する曜日 (複数指定) + applicable_days_of_week: [3, 0, 6], # キャンペーンを適用する曜日 (複数指定) applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }], # キャンペーンを適用する時間帯 (複数指定) - applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象となる店舗IDのリスト - minimum_number_of_products: 3677, # キャンペーンを適用する1会計内の商品個数の下限 - minimum_number_of_amount: 9333, # キャンペーンを適用する1会計内の商品総額の下限 - minimum_number_for_combination_purchase: 1069, # 複数種類の商品を同時購入するときの商品種別数の下限 + applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象となる店舗IDのリスト + blacklisted_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products: 1058, # キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount: 8316, # キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase: 6765, # 複数種類の商品を同時購入するときの商品種別数の下限 exist_in_each_product_groups: true, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 7906, # キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 1642, # キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + max_point_amount: 8328, # キャンペーンによって付与されるポイントの上限 + max_total_point_amount: 1192, # キャンペーンによって付与されるの1人当たりの累計ポイントの上限 dest_private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント付与先となるマネーID applicable_account_metadata: { "key": "sex", "value": "male" }, # ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - budget_caps_amount: 1315895000 # キャンペーン予算上限 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" +}, # 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount: 965868858 # キャンペーン予算上限 )) ``` @@ -386,6 +505,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_days_of_week`** +キャンペーンを適用する曜日を指定します (複数指定)。 +曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 +指定しなかった場合は全日を対象にします (曜日による適用条件なし) ```json { @@ -401,6 +523,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_time_ranges`** +キャンペーンを適用する時間帯を指定します (複数指定可)。 +時間帯はfromとtoからなるオブジェクトで指定します。 +fromとtoは両方必要です。 ```json { @@ -414,6 +539,25 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_shop_ids`** +キャンペーンを適用する店舗IDを指定します (複数指定)。 +指定しなかった場合は全店舗が対象になります。 + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`blacklisted_shop_ids`** + + +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 ```json { @@ -704,136 +848,76 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`budget_caps_amount`** +**`applicable_transaction_metadata`** -キャンペーンの予算上限を指定します。デフォルトは未指定です。 - -このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 -一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 - -```json -{ - "type": "integer", - "minimum": 1, - "maximum": 10000000000 -} -``` - - - -成功したときは -[Campaign](./responses.md#campaign) -を返します - - ---- - - - -## ListCampaigns: キャンペーン一覧を取得する -マネーIDを指定してキャンペーンを取得します。 -発行体の組織マネージャ権限で、自組織が発行するマネーのキャンペーンについてのみ閲覧可能です。 -閲覧権限がない場合は unpermitted_admin_user エラー(422)が返ります。 - -```RUBY -response = $client.send(Pokepay::Request::ListCampaigns.new( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - is_ongoing: true, # 現在適用可能なキャンペーンかどうか - available_from: "2021-02-12T14:30:23.000000Z", # 指定された日時以降に適用可能期間が含まれているか - available_to: "2021-11-23T20:11:23.000000Z", # 指定された日時以前に適用可能期間が含まれているか - page: 1, # ページ番号 - per_page: 20 # 1ページ分の取得数 -)) -``` - - - -### Parameters -**`private_money_id`** - - -マネーIDです。 - -フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` +取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 -**`is_ongoing`** - +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 -有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 -真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 -デフォルトでは未指定(フィルターなし)です。 +例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 -```json +```javascript { - "type": "boolean" + "key": "rank", + "value": "bronze" } ``` -**`available_from`** - +例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 -キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 -デフォルトでは未指定(フィルターなし)です。 - -```json +```javascript { - "type": "string", - "format": "date-time" + "key": "rank", + "value": "bronze", + "test": "not-equal" } ``` -**`available_to`** - - -キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 -デフォルトでは未指定(フィルターなし)です。 - ```json { - "type": "string", - "format": "date-time" + "type": "object" } ``` -**`page`** +**`budget_caps_amount`** -取得したいページ番号です。 - -```json -{ - "type": "integer", - "minimum": 1 -} -``` - -**`per_page`** - +キャンペーンの予算上限を指定します。デフォルトは未指定です。 -1ページ分の取得数です。デフォルトでは 20 になっています。 +このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 +一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 ```json { "type": "integer", "minimum": 1, - "maximum": 50 + "maximum": 10000000000 } ``` 成功したときは -[PaginatedCampaigns](./responses.md#paginated-campaigns) +[Campaign](./responses.md#campaign) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|campaign_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| +|422|shop_account_not_found||The shop account is not found| +|422|campaign_period_overlaps|同期間に開催されるキャンペーン間で優先度が重複してます|The campaign period overlaps under the same private-money / type / priority| +|422|campaign_invalid_period||Invalid campaign period starts_at later than ends_at| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| + + --- @@ -874,6 +958,7 @@ response = $client.send(Pokepay::Request::GetCampaign.new( を返します + --- @@ -885,17 +970,17 @@ response = $client.send(Pokepay::Request::GetCampaign.new( ```RUBY response = $client.send(Pokepay::Request::UpdateCampaign.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # campaign_id: キャンペーンID - name: "eLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTz", # キャンペーン名 - starts_at: "2022-04-04T12:36:17.000000Z", # キャンペーン開始日時 - ends_at: "2020-11-10T23:55:36.000000Z", # キャンペーン終了日時 - priority: 4845, # キャンペーンの適用優先度 - event: "external-transaction", # イベント種別 - description: "uCtm4tM4rQ7TMWwQQegAiqW5G", # キャンペーンの説明文 + name: "tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnI", # キャンペーン名 + starts_at: "2023-04-19T01:49:56.000000Z", # キャンペーン開始日時 + ends_at: "2020-02-17T14:03:19.000000Z", # キャンペーン終了日時 + priority: 4652, # キャンペーンの適用優先度 + event: "payment", # イベント種別 + description: "js1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5", # キャンペーンの説明文 status: "enabled", # キャンペーン作成時の状態 - point_expires_at: "2023-01-16T12:50:59.000000Z", # ポイント有効期限(絶対日時指定) - point_expires_in_days: 1695, # ポイント有効期限(相対日数指定) + point_expires_at: "2021-01-31T01:10:11.000000Z", # ポイント有効期限(絶対日時指定) + point_expires_in_days: 7679, # ポイント有効期限(相対日数指定) is_exclusive: true, # キャンペーンの重複設定 - subject: "money", # ポイント付与の対象金額の種別 + subject: "all", # ポイント付与の対象金額の種別 amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -913,6 +998,12 @@ response = $client.send(Pokepay::Request::UpdateCampaign.new( "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 +}, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], # 商品情報ベースのポイント付与ルール blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -920,24 +1011,32 @@ response = $client.send(Pokepay::Request::UpdateCampaign.new( }, { "product_code": "4912345678904", "classification_code": "c123" +}, { + "product_code": "4912345678904", + "classification_code": "c123" }], # 商品情報ベースのキャンペーンで除外対象にする商品リスト - applicable_days_of_week: [3, 5, 3], # キャンペーンを適用する曜日 (複数指定) + applicable_days_of_week: [0, 0, 6], # キャンペーンを適用する曜日 (複数指定) applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }], # キャンペーンを適用する時間帯 (複数指定) - applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象となる店舗IDのリスト - minimum_number_of_products: 3650, # キャンペーンを適用する1会計内の商品個数の下限 - minimum_number_of_amount: 7375, # キャンペーンを適用する1会計内の商品総額の下限 - minimum_number_for_combination_purchase: 3509, # 複数種類の商品を同時購入するときの商品種別数の下限 + applicable_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象となる店舗IDのリスト + blacklisted_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + minimum_number_of_products: 7585, # キャンペーンを適用する1会計内の商品個数の下限 + minimum_number_of_amount: 8176, # キャンペーンを適用する1会計内の商品総額の下限 + minimum_number_for_combination_purchase: 9067, # 複数種類の商品を同時購入するときの商品種別数の下限 exist_in_each_product_groups: true, # 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - max_point_amount: 3498, # キャンペーンによって付与されるポイントの上限 - max_total_point_amount: 6455, # キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + max_point_amount: 7738, # キャンペーンによって付与されるポイントの上限 + max_total_point_amount: 5597, # キャンペーンによって付与されるの1人当たりの累計ポイントの上限 applicable_account_metadata: { "key": "sex", "value": "male" }, # ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - budget_caps_amount: 976430174 # キャンペーン予算上限 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" +}, # 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + budget_caps_amount: 1916888645 # キャンペーン予算上限 )) ``` @@ -1250,6 +1349,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_days_of_week`** +キャンペーンを適用する曜日を指定します (複数指定)。 +曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 +指定しなかった場合は全日を対象にします (曜日による適用条件なし) ```json { @@ -1265,6 +1367,9 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_time_ranges`** +キャンペーンを適用する時間帯を指定します (複数指定可)。 +時間帯はfromとtoからなるオブジェクトで指定します。 +fromとtoは両方必要です。 ```json { @@ -1278,6 +1383,25 @@ event が payment か external-transaction の時のみ有効です。 **`applicable_shop_ids`** +キャンペーンを適用する店舗IDを指定します (複数指定)。 +指定しなかった場合は全店舗が対象になります。 + +```json +{ + "type": "array", + "items": { + "type": "string", + "format": "uuid" + } +} +``` + +**`blacklisted_shop_ids`** + + +キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 +このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 +blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 ```json { @@ -1548,6 +1672,41 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +**`applicable_transaction_metadata`** + + +取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 +メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 +取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + +オプショナルパラメータtestによって比較方法を指定することができます。 +デフォルトは equal で、その他に not-equalを指定可能です。 + +例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + +```javascript +{ + "key": "rank", + "value": "bronze" +} +``` + +例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + +```javascript +{ + "key": "rank", + "value": "bronze", + "test": "not-equal" +} +``` + +```json +{ + "type": "object" +} +``` + **`budget_caps_amount`** @@ -1573,6 +1732,7 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 を返します + --- diff --git a/docs/cashtray.md b/docs/cashtray.md index d9a5e0f..eb90cd4 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -19,9 +19,9 @@ Cashtrayを作成します。 response = $client.send(Pokepay::Request::CreateCashtray.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ユーザーID - 1704.0, # amount: 金額 + 2043.0, # amount: 金額 description: "たい焼き(小倉)", # 取引履歴に表示する説明文 - expires_in: 9821 # 失効時間(秒) + expires_in: 9512 # 失効時間(秒) )) ``` @@ -95,6 +95,53 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項 [Cashtray](./responses.md#cashtray) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| + + + +--- + + + +## CancelCashtray: Cashtrayを無効化する +Cashtrayを無効化します。 + +これにより、 `GetCashtray` のレスポンス中の `canceled_at` に無効化時点での現在時刻が入るようになります。 +エンドユーザーが無効化されたQRコードを読み取ると `cashtray_already_canceled` エラーとなり、取引は失敗します。 + +```RUBY +response = $client.send(Pokepay::Request::CancelCashtray.new( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # cashtray_id: CashtrayのID +)) +``` + + + +### Parameters +**`cashtray_id`** + + +無効化するCashtrayのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Cashtray](./responses.md#cashtray) +を返します + + --- @@ -188,43 +235,6 @@ response = $client.send(Pokepay::Request::GetCashtray.new( を返します ---- - - - -## CancelCashtray: Cashtrayを無効化する -Cashtrayを無効化します。 - -これにより、 `GetCashtray` のレスポンス中の `canceled_at` に無効化時点での現在時刻が入るようになります。 -エンドユーザーが無効化されたQRコードを読み取ると `cashtray_already_canceled` エラーとなり、取引は失敗します。 - -```RUBY -response = $client.send(Pokepay::Request::CancelCashtray.new( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # cashtray_id: CashtrayのID -)) -``` - - - -### Parameters -**`cashtray_id`** - - -無効化するCashtrayのIDです。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[Cashtray](./responses.md#cashtray) -を返します - --- @@ -236,9 +246,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 ```RUBY response = $client.send(Pokepay::Request::UpdateCashtray.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # cashtray_id: CashtrayのID - amount: 3126.0, # 金額 + amount: 2738.0, # 金額 description: "たい焼き(小倉)", # 取引履歴に表示する説明文 - expires_in: 5432 # 失効時間(秒) + expires_in: 5 # 失効時間(秒) )) ``` @@ -301,6 +311,7 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、 を返します + --- diff --git a/docs/check.md b/docs/check.md index d25b721..bd92d80 100644 --- a/docs/check.md +++ b/docs/check.md @@ -8,63 +8,57 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - -## CreateCheck: チャージQRコードの発行 + +## ListChecks: チャージQRコード一覧の取得 ```RUBY -response = $client.send(Pokepay::Request::CreateCheck.new( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: 送金元の店舗アカウントID - money_amount: 5226.0, # 付与マネー額 - point_amount: 465.0, # 付与ポイント額 - description: "test check", # 説明文(アプリ上で取引の説明文として表示される) - is_onetime: false, # ワンタイムかどうかのフラグ - usage_limit: 8334, # ワンタイムでない場合の最大読み取り回数 - expires_at: "2020-10-23T06:09:39.000000Z", # チャージQRコード自体の失効日時 - point_expires_at: "2023-06-27T19:49:26.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 - point_expires_in_days: 60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) - bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # ポイント額を負担する店舗のウォレットID +response = $client.send(Pokepay::Request::ListChecks.new( + page: 926, # ページ番号 + per_page: 50, # 1ページの表示数 + private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID + organization_code: "bliv7UIdhUMzObVJcG5btiH5rur7G", # 組織コード + expires_from: "2022-05-19T04:57:31.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_to: "2024-02-01T15:45:46.000000Z", # 有効期限の期間によるフィルター(終了時点) + created_from: "2020-05-29T03:11:03.000000Z", # 作成日時の期間によるフィルター(開始時点) + created_to: "2020-06-17T08:35:32.000000Z", # 作成日時の期間によるフィルター(終了時点) + issuer_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 発行店舗ID + description: "jIcOXKD9o", # チャージQRコードの説明文 + is_onetime: true, # ワンタイムのチャージQRコードかどうか + is_disabled: true # 無効化されたチャージQRコードかどうか )) ``` -`money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 - - ### Parameters -**`money_amount`** +**`page`** -チャージQRコードによって付与されるマネー額です。 -`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 - ```json { - "type": "number", - "format": "decimal", - "minimum": 0 + "type": "integer", + "minimum": 1 } ``` -**`point_amount`** +**`per_page`** -チャージQRコードによって付与されるポイント額です。 -`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 - +1ページ当たり表示数です。デフォルト値は50です。 ```json { - "type": "number", - "format": "decimal", - "minimum": 0 + "type": "integer", + "minimum": 1 } ``` -**`account_id`** +**`private_money_id`** +チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 + ```json { @@ -73,52 +67,52 @@ response = $client.send(Pokepay::Request::CreateCheck.new( } ``` -**`description`** +**`organization_code`** +チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 +デフォルトでは未指定です。 ```json { "type": "string", - "maxLength": 200 + "maxLength": 32 } ``` -**`is_onetime`** +**`expires_from`** -チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 -`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 -ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +有効期限の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json { - "type": "boolean" + "type": "string", + "format": "date-time" } ``` -**`usage_limit`** +**`expires_to`** -複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 -NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 -デフォルト値はNULLです。 -ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +有効期限の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json { - "type": "integer" + "type": "string", + "format": "date-time" } ``` -**`expires_at`** +**`created_from`** -チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 - -チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +作成日時の期間によるフィルターの開始時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json @@ -128,12 +122,11 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_at`** +**`created_to`** -チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 - -チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +作成日時の期間によるフィルターの終了時点のタイムスタンプです。 +デフォルトでは未指定です。 ```json @@ -143,164 +136,193 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_in_days`** +**`issuer_shop_id`** -チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 -1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 -`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +チャージQRコードを発行した店舗IDによってフィルターします。 +デフォルトでは未指定です。 ```json { - "type": "integer", - "minimum": 1 + "type": "string", + "format": "uuid" } ``` -**`bear_point_account`** +**`description`** -ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 -デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 +チャージQRコードの説明文(description)によってフィルターします。 +部分一致(前方一致)したものを表示します。 +デフォルトでは未指定です。 ```json { - "type": "string", - "format": "uuid" + "type": "string" +} +``` + +**`is_onetime`** + + +チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 +`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" +} +``` + +**`is_disabled`** + + +チャージQRコードが無効化されているかどうかでフィルターします。 +`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 +未指定の場合はフィルターしません。 +デフォルトでは未指定です。 + + +```json +{ + "type": "boolean" } ``` 成功したときは -[Check](./responses.md#check) +[PaginatedChecks](./responses.md#paginated-checks) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|organization_not_found||Organization not found| +|422|private_money_not_found||Private money not found| + + --- - -## ListChecks: チャージQRコード一覧の取得 + +## CreateCheck: チャージQRコードの発行 ```RUBY -response = $client.send(Pokepay::Request::ListChecks.new( - page: 4590, # ページ番号 - per_page: 50, # 1ページの表示数 - private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID - organization_code: "4vZ", # 組織コード - expires_from: "2022-07-06T19:27:10.000000Z", # 有効期限の期間によるフィルター(開始時点) - expires_to: "2023-12-18T20:25:22.000000Z", # 有効期限の期間によるフィルター(終了時点) - created_from: "2022-01-02T00:20:43.000000Z", # 作成日時の期間によるフィルター(開始時点) - created_to: "2022-02-12T08:10:50.000000Z", # 作成日時の期間によるフィルター(終了時点) - issuer_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 発行店舗ID - description: "HzNm8wd", # チャージQRコードの説明文 - is_onetime: false, # ワンタイムのチャージQRコードかどうか - is_disabled: true # 無効化されたチャージQRコードかどうか +response = $client.send(Pokepay::Request::CreateCheck.new( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: 送金元の店舗アカウントID + money_amount: 6859.0, # 付与マネー額 + point_amount: 5771.0, # 付与ポイント額 + description: "test check", # 説明文(アプリ上で取引の説明文として表示される) + is_onetime: true, # ワンタイムかどうかのフラグ + usage_limit: 5947, # ワンタイムでない場合の最大読み取り回数 + expires_at: "2020-11-02T04:00:31.000000Z", # チャージQRコード自体の失効日時 + point_expires_at: "2021-03-19T07:01:07.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 + point_expires_in_days: 60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) + bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # ポイント額を負担する店舗のウォレットID )) ``` +`money_amount`と`point_amount`の少なくとも一方は指定する必要があります。 -### Parameters -**`page`** - -```json -{ - "type": "integer", - "minimum": 1 -} -``` - -**`per_page`** +### Parameters +**`money_amount`** -1ページ当たり表示数です。デフォルト値は50です。 +チャージQRコードによって付与されるマネー額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 + ```json { - "type": "integer", - "minimum": 1 + "type": "number", + "format": "decimal", + "minimum": 0 } ``` -**`private_money_id`** +**`point_amount`** -チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 +チャージQRコードによって付与されるポイント額です。 +`money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 ```json { - "type": "string", - "format": "uuid" + "type": "number", + "format": "decimal", + "minimum": 0 } ``` -**`organization_code`** +**`account_id`** -チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 -デフォルトでは未指定です。 ```json { "type": "string", - "maxLength": 32 + "format": "uuid" } ``` -**`expires_from`** +**`description`** -有効期限の期間によるフィルターの開始時点のタイムスタンプです。 -デフォルトでは未指定です。 - ```json { "type": "string", - "format": "date-time" + "maxLength": 200 } ``` -**`expires_to`** +**`is_onetime`** -有効期限の期間によるフィルターの終了時点のタイムスタンプです。 -デフォルトでは未指定です。 +チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 +`false`の場合、複数ユーザによって読み取り可能なQRコードになります。 +ただし、その場合も1ユーザにつき1回のみしか読み取れません。 ```json { - "type": "string", - "format": "date-time" + "type": "boolean" } ``` -**`created_from`** +**`usage_limit`** -作成日時の期間によるフィルターの開始時点のタイムスタンプです。 -デフォルトでは未指定です。 +複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 +NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 +デフォルト値はNULLです。 +ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 ```json { - "type": "string", - "format": "date-time" + "type": "integer" } ``` -**`created_to`** +**`expires_at`** -作成日時の期間によるフィルターの終了時点のタイムスタンプです。 -デフォルトでは未指定です。 +チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 + +チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 ```json @@ -310,70 +332,73 @@ response = $client.send(Pokepay::Request::ListChecks.new( } ``` -**`issuer_shop_id`** +**`point_expires_at`** -チャージQRコードを発行した店舗IDによってフィルターします。 -デフォルトでは未指定です。 - - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`description`** - +チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 -チャージQRコードの説明文(description)によってフィルターします。 -部分一致(前方一致)したものを表示します。 -デフォルトでは未指定です。 +チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 ```json { - "type": "string" + "type": "string", + "format": "date-time" } ``` -**`is_onetime`** +**`point_expires_in_days`** -チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 -`true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 -未指定の場合はフィルターしません。 -デフォルトでは未指定です。 +チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 +1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 +`point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 ```json { - "type": "boolean" + "type": "integer", + "minimum": 1 } ``` -**`is_disabled`** +**`bear_point_account`** -チャージQRコードが無効化されているかどうかでフィルターします。 -`true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 -未指定の場合はフィルターしません。 -デフォルトでは未指定です。 +ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 ```json { - "type": "boolean" + "type": "string", + "format": "uuid" } ``` 成功したときは -[PaginatedChecks](./responses.md#paginated-checks) +[Check](./responses.md#check) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| +|400|invalid_parameter_only_merchants_can_attach_points_to_check||Only merchants can attach points to check| +|400|invalid_parameter_bear_point_account_identification_item_not_unique|ポイントを負担する店舗アカウントを指定するリクエストパラメータには、アカウントID、またはユーザIDのどちらかを含めることができます|Request parameters include either bear_point_account or bear_point_shop_id.| +|400|invalid_parameter_combination_usage_limit_and_is_onetime||'usage_limit' can not be specified if 'is_onetime' is true.| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|400|invalid_parameter_expires_at||'expires_at' must be in the future| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_private_money_is_not_issued_by_organization||The account's private money is not issued by this organization| +|422|shop_account_not_found||The shop account is not found| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|bear_point_account_not_found|ポイントを負担する店舗アカウントが見つかりません|Bear point account not found.| + + --- @@ -409,6 +434,7 @@ response = $client.send(Pokepay::Request::GetCheck.new( を返します + --- @@ -418,16 +444,16 @@ response = $client.send(Pokepay::Request::GetCheck.new( ```RUBY response = $client.send(Pokepay::Request::UpdateCheck.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # check_id: チャージQRコードのID - money_amount: 2931.0, # 付与マネー額 - point_amount: 9794.0, # 付与ポイント額 + money_amount: 5890.0, # 付与マネー額 + point_amount: 4488.0, # 付与ポイント額 description: "test check", # チャージQRコードの説明文 - is_onetime: false, # ワンタイムかどうかのフラグ - usage_limit: 783, # ワンタイムでない場合の最大読み取り回数 - expires_at: "2021-04-18T03:44:15.000000Z", # チャージQRコード自体の失効日時 - point_expires_at: "2020-12-06T19:49:13.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 + is_onetime: true, # ワンタイムかどうかのフラグ + usage_limit: 5487, # ワンタイムでない場合の最大読み取り回数 + expires_at: "2022-06-30T21:15:53.000000Z", # チャージQRコード自体の失効日時 + point_expires_at: "2021-09-08T22:35:51.000000Z", # チャージQRコードによって付与されるポイント残高の有効期限 point_expires_in_days: 60, # チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) bear_point_account: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント額を負担する店舗のウォレットID - is_disabled: true # 無効化されているかどうかのフラグ + is_disabled: false # 無効化されているかどうかのフラグ )) ``` @@ -597,6 +623,7 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード を返します + --- @@ -668,6 +695,48 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|check_already_received|このチャージQRコードは既に受取済みの為、チャージ出来ませんでした|Check is already received| +|422|check_unavailable|このチャージQRコードは利用できません|The topup QR code is not available| +|503|temporarily_unavailable||Service Unavailable| + + --- diff --git a/docs/coupon.md b/docs/coupon.md index cd61fdd..6e3cef7 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -10,12 +10,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 ```RUBY response = $client.send(Pokepay::Request::ListCoupons.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: 対象クーポンのマネーID - coupon_id: "bkQVRY8Muh", # クーポンID - coupon_name: "wDy", # クーポン名 - issued_shop_name: "lFo5mD", # 発行店舗名 - available_shop_name: "Jw8V3XaTOk", # 利用可能店舗名 - available_from: "2022-05-02T17:52:06.000000Z", # 利用可能期間 (開始日時) - available_to: "2023-06-21T19:23:15.000000Z", # 利用可能期間 (終了日時) + coupon_id: "HK5W", # クーポンID + coupon_name: "86hTWo47qb", # クーポン名 + issued_shop_name: "nSKNBR3Ljz", # 発行店舗名 + available_shop_name: "dQo4", # 利用可能店舗名 + available_from: "2020-09-01T07:38:37.000000Z", # 利用可能期間 (開始日時) + available_to: "2024-03-21T02:25:01.000000Z", # 利用可能期間 (終了日時) page: 1, # ページ番号 per_page: 50 # 1ページ分の取得数 )) @@ -143,6 +143,14 @@ response = $client.send(Pokepay::Request::ListCoupons.new( [PaginatedCoupons](./responses.md#paginated-coupons) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| + + --- @@ -154,23 +162,23 @@ response = $client.send(Pokepay::Request::ListCoupons.new( ```RUBY response = $client.send(Pokepay::Request::CreateCoupon.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "DFDXkJRYuzmNrD0IPFMYcPpoEq", - "2023-02-03T19:51:10.000000Z", - "2021-11-27T11:49:55.000000Z", + "7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQI", + "2023-04-04T04:54:12.000000Z", + "2023-09-06T06:44:50.000000Z", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # issued_shop_id: 発行元の店舗ID - description: "qYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxd", - discount_amount: 8182, - discount_percentage: 1010.0, - discount_upper_limit: 4673, - display_starts_at: "2022-12-25T05:08:47.000000Z", # クーポンの掲載期間(開始日時) - display_ends_at: "2021-10-02T17:22:12.000000Z", # クーポンの掲載期間(終了日時) - is_disabled: false, # 無効化フラグ - is_hidden: true, # クーポン一覧に掲載されるかどうか + description: "JApNFNbizZqSEKvNBsiLTmRsG1pcvzPf", + discount_amount: 4363, + discount_percentage: 7552.0, + discount_upper_limit: 5055, + display_starts_at: "2022-08-26T19:53:30.000000Z", # クーポンの掲載期間(開始日時) + display_ends_at: "2023-01-20T16:38:40.000000Z", # クーポンの掲載期間(終了日時) + is_disabled: true, # 無効化フラグ + is_hidden: false, # クーポン一覧に掲載されるかどうか is_public: true, # アプリ配信なしで受け取れるかどうか - code: "n", # クーポン受け取りコード - usage_limit: 1090, # ユーザごとの利用可能回数(NULLの場合は無制限) - min_amount: 3250, # クーポン適用可能な最小取引額 - is_shop_specified: true, # 特定店舗限定のクーポンかどうか + code: "g", # クーポン受け取りコード + usage_limit: 4320, # ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount: 4095, # クーポン適用可能な最小取引額 + is_shop_specified: false, # 特定店舗限定のクーポンかどうか available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 利用可能店舗リスト storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # ストレージID )) @@ -406,6 +414,17 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 [CouponDetail](./responses.md#coupon-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|404|partner_storage_not_found|指定したIDのデータは保存されていません|Not found by storage_id| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|coupon_image_storage_conflict|クーポン画像のストレージIDは既に存在します|The coupon image storage_id is already exists| + + --- @@ -444,6 +463,7 @@ UUIDv4フォーマットである必要があり、フォーマットが異な を返します + --- @@ -454,23 +474,23 @@ UUIDv4フォーマットである必要があり、フォーマットが異な ```RUBY response = $client.send(Pokepay::Request::UpdateCoupon.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # coupon_id: クーポンID - name: "JrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0u", - description: "guDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P", - discount_amount: 1159, - discount_percentage: 1312.0, - discount_upper_limit: 1476, - starts_at: "2023-04-10T09:31:34.000000Z", - ends_at: "2023-02-12T20:04:21.000000Z", - display_starts_at: "2024-01-04T08:26:32.000000Z", # クーポンの掲載期間(開始日時) - display_ends_at: "2023-07-30T04:28:05.000000Z", # クーポンの掲載期間(終了日時) + name: "3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6n", + description: "LJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8m", + discount_amount: 4310, + discount_percentage: 4257.0, + discount_upper_limit: 8409, + starts_at: "2023-08-08T19:44:34.000000Z", + ends_at: "2021-10-10T04:33:40.000000Z", + display_starts_at: "2022-07-31T00:02:56.000000Z", # クーポンの掲載期間(開始日時) + display_ends_at: "2022-06-09T10:17:09.000000Z", # クーポンの掲載期間(終了日時) is_disabled: true, # 無効化フラグ is_hidden: true, # クーポン一覧に掲載されるかどうか - is_public: false, # アプリ配信なしで受け取れるかどうか - code: "j", # クーポン受け取りコード - usage_limit: 9892, # ユーザごとの利用可能回数(NULLの場合は無制限) - min_amount: 8114, # クーポン適用可能な最小取引額 - is_shop_specified: true, # 特定店舗限定のクーポンかどうか - available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 利用可能店舗リスト + is_public: true, # アプリ配信なしで受け取れるかどうか + code: "LaYAQQnN", # クーポン受け取りコード + usage_limit: 2903, # ユーザごとの利用可能回数(NULLの場合は無制限) + min_amount: 6641, # クーポン適用可能な最小取引額 + is_shop_specified: false, # 特定店舗限定のクーポンかどうか + available_shop_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 利用可能店舗リスト storage_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # ストレージID )) ``` @@ -697,6 +717,7 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 を返します + --- diff --git a/docs/customer.md b/docs/customer.md index 2d657cd..a0a72af 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -1,5 +1,55 @@ # Customer + +## DeleteAccount: ウォレットを退会する +ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 + +```RUBY +response = $client.send(Pokepay::Request::DeleteAccount.new( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID + cashback: true # 返金有無 +)) +``` + + + +### Parameters +**`account_id`** + + +ウォレットIDです。 + +指定したウォレットIDのウォレットを退会します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`cashback`** + + +退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 + +```json +{ + "type": "boolean" +} +``` + + + +成功したときは +[AccountDeleted](./responses.md#account-deleted) +を返します + + + +--- + + ## GetAccount: ウォレット情報を表示する ウォレットを取得します。 @@ -34,6 +84,7 @@ response = $client.send(Pokepay::Request::GetAccount.new( を返します + --- @@ -50,9 +101,9 @@ response = $client.send(Pokepay::Request::GetAccount.new( ```RUBY response = $client.send(Pokepay::Request::UpdateAccount.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID - is_suspended: true, # ウォレットが凍結されているかどうか - status: "active", # ウォレット状態 - can_transfer_topup: true # チャージ可能かどうか + is_suspended: false, # ウォレットが凍結されているかどうか + status: "pre-closed", # ウォレット状態 + can_transfer_topup: false # チャージ可能かどうか )) ``` @@ -118,54 +169,6 @@ response = $client.send(Pokepay::Request::UpdateAccount.new( を返します ---- - - - -## DeleteAccount: ウォレットを退会する -ウォレットを退会します。一度ウォレットを退会した後は、そのウォレットを再び利用可能な状態に戻すことは出来ません。 - -```RUBY -response = $client.send(Pokepay::Request::DeleteAccount.new( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID - cashback: false # 返金有無 -)) -``` - - - -### Parameters -**`account_id`** - - -ウォレットIDです。 - -指定したウォレットIDのウォレットを退会します。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - -**`cashback`** - - -退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 - -```json -{ - "type": "boolean" -} -``` - - - -成功したときは -[AccountDeleted](./responses.md#account-deleted) -を返します - --- @@ -177,11 +180,11 @@ response = $client.send(Pokepay::Request::DeleteAccount.new( ```RUBY response = $client.send(Pokepay::Request::ListAccountBalances.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID - page: 4864, # ページ番号 - per_page: 2363, # 1ページ分の取引数 - expires_at_from: "2022-10-29T13:58:49.000000Z", # 有効期限の期間によるフィルター(開始時点) - expires_at_to: "2022-12-20T05:38:25.000000Z", # 有効期限の期間によるフィルター(終了時点) - direction: "desc" # 有効期限によるソート順序 + page: 2798, # ページ番号 + per_page: 7868, # 1ページ分の取引数 + expires_at_from: "2023-01-15T14:37:09.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_at_to: "2021-07-29T08:30:50.000000Z", # 有効期限の期間によるフィルター(終了時点) + direction: "asc" # 有効期限によるソート順序 )) ``` @@ -272,6 +275,7 @@ response = $client.send(Pokepay::Request::ListAccountBalances.new( を返します + --- @@ -282,10 +286,10 @@ response = $client.send(Pokepay::Request::ListAccountBalances.new( ```RUBY response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID - page: 9610, # ページ番号 - per_page: 2603, # 1ページ分の取引数 - expires_at_from: "2020-05-11T07:12:37.000000Z", # 有効期限の期間によるフィルター(開始時点) - expires_at_to: "2022-01-18T11:04:15.000000Z", # 有効期限の期間によるフィルター(終了時点) + page: 8994, # ページ番号 + per_page: 6903, # 1ページ分の取引数 + expires_at_from: "2022-09-22T01:52:19.000000Z", # 有効期限の期間によるフィルター(開始時点) + expires_at_to: "2021-10-24T17:02:46.000000Z", # 有効期限の期間によるフィルター(終了時点) direction: "asc" # 有効期限によるソート順序 )) ``` @@ -377,6 +381,7 @@ response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( を返します + --- @@ -387,9 +392,9 @@ response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( ```RUBY response = $client.send(Pokepay::Request::UpdateCustomerAccount.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID - status: "pre-closed", # ウォレット状態 - account_name: "kLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbee", # アカウント名 - external_id: "KUX", # 外部ID + status: "suspended", # ウォレット状態 + account_name: "JUWIFuWHi", # アカウント名 + external_id: "fSCeHqDX4Oov", # 外部ID metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" # ウォレットに付加するメタデータ )) ``` @@ -485,6 +490,7 @@ response = $client.send(Pokepay::Request::UpdateCustomerAccount.new( を返します + --- @@ -495,15 +501,15 @@ response = $client.send(Pokepay::Request::UpdateCustomerAccount.new( ```RUBY response = $client.send(Pokepay::Request::GetCustomerAccounts.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - page: 8901, # ページ番号 - per_page: 9982, # 1ページ分のウォレット数 - created_at_from: "2022-05-12T14:01:20.000000Z", # ウォレット作成日によるフィルター(開始時点) - created_at_to: "2021-08-01T07:54:25.000000Z", # ウォレット作成日によるフィルター(終了時点) + page: 1341, # ページ番号 + per_page: 2119, # 1ページ分のウォレット数 + created_at_from: "2023-06-15T04:36:59.000000Z", # ウォレット作成日によるフィルター(開始時点) + created_at_to: "2020-03-13T08:14:20.000000Z", # ウォレット作成日によるフィルター(終了時点) is_suspended: true, # ウォレットが凍結状態かどうかでフィルターする status: "active", # ウォレット状態 - external_id: "vqgIch5W6XuTL0vlIdvd", # 外部ID - tel: "072777-896", # エンドユーザーの電話番号 - email: "BXoKUl0tR0@7369.com" # エンドユーザーのメールアドレス + external_id: "sfFAfUD6hedBMnO5c5siBhPS0PdEUgl", # 外部ID + tel: "033-8520935", # エンドユーザーの電話番号 + email: "yLzg5USUF0@acnA.com" # エンドユーザーのメールアドレス )) ``` @@ -641,6 +647,13 @@ response = $client.send(Pokepay::Request::GetCustomerAccounts.new( [PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -657,7 +670,7 @@ response = $client.send(Pokepay::Request::CreateCustomerAccount.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID user_name: "ポケペイ太郎", # ユーザー名 account_name: "ポケペイ太郎のアカウント", # アカウント名 - external_id: "BiPR32MXZafz3jf" # 外部ID + external_id: "Yj9bCB7rUqwv3jfmweeo8gmjkrV" # 外部ID )) ``` @@ -720,6 +733,19 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで [AccountWithUser](./responses.md#account-with-user) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_not_found||The user is not found| +|422|private_money_not_found||Private money not found| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|user_attributes_external_id_not_match|ユーザー属性情報の外部IDが一致しません|Not match external id of user attributes| +|422|user_attributes_not_found|ユーザー属性情報が存在しません|Not found the user attrubtes| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_can_not_create|このマネーに新規アカウントを作る事は出来ません|Can not create an account with this money| + + --- @@ -731,10 +757,10 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで ```RUBY response = $client.send(Pokepay::Request::GetShopAccounts.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - page: 5375, # ページ番号 - per_page: 7186, # 1ページ分のウォレット数 - created_at_from: "2020-02-09T06:31:25.000000Z", # ウォレット作成日によるフィルター(開始時点) - created_at_to: "2020-04-03T10:25:10.000000Z", # ウォレット作成日によるフィルター(終了時点) + page: 6883, # ページ番号 + per_page: 3918, # 1ページ分のウォレット数 + created_at_from: "2022-09-19T16:28:11.000000Z", # ウォレット作成日によるフィルター(開始時点) + created_at_to: "2021-11-14T22:06:49.000000Z", # ウォレット作成日によるフィルター(終了時点) is_suspended: false # ウォレットが凍結状態かどうかでフィルターする )) ``` @@ -821,6 +847,13 @@ response = $client.send(Pokepay::Request::GetShopAccounts.new( [PaginatedAccountWithUsers](./responses.md#paginated-account-with-users) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -834,10 +867,10 @@ response = $client.send(Pokepay::Request::ListCustomerTransactions.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID sender_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 送金エンドユーザーID receiver_customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 受取エンドユーザーID - type: "topup", # 取引種別 + type: "exchange", # 取引種別 is_modified: false, # キャンセル済みかどうか - from: "2021-06-10T14:16:07.000000Z", # 開始日時 - to: "2022-04-02T20:02:52.000000Z", # 終了日時 + from: "2024-03-16T20:19:18.000000Z", # 開始日時 + to: "2023-07-18T10:25:03.000000Z", # 終了日時 page: 1, # ページ番号 per_page: 50 # 1ページ分の取引数 )) @@ -994,6 +1027,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 [PaginatedTransaction](./responses.md#paginated-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|customer_user_not_found||The customer user is not found| +|422|private_money_not_found||Private money not found| + + --- diff --git a/docs/event.md b/docs/event.md index 64f45ba..bef4b86 100644 --- a/docs/event.md +++ b/docs/event.md @@ -12,23 +12,26 @@ response = $client.send(Pokepay::Request::CreateExternalTransaction.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - 9453, # amount: 取引額 + 7875, # amount: 取引額 description: "たい焼き(小倉)", # 取引説明文 metadata: "{\"key\":\"value\"}", # ポケペイ外部取引メタデータ products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], # 商品情報データ request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID @@ -130,6 +133,7 @@ response = $client.send(Pokepay::Request::CreateExternalTransaction.new( - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -164,6 +168,47 @@ response = $client.send(Pokepay::Request::CreateExternalTransaction.new( [ExternalTransactionDetail](./responses.md#external-transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -216,6 +261,44 @@ response = $client.send(Pokepay::Request::RefundExternalTransaction.new( を返します + +--- + + + +## GetExternalTransactionByRequestId: リクエストIDからポケペイ外部取引を取得する +リクエストIDを指定してポケペイ外部取引を取得します。 + +発行体の管理者は自組織発行のマネーに紐付くポケペイ外部取引を取得できます。 + +```RUBY +response = $client.send(Pokepay::Request::GetExternalTransactionByRequestId.new( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # request_id: リクエストID +)) +``` + + + +### Parameters +**`request_id`** + + + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[ExternalTransactionDetail](./responses.md#external-transaction-detail) +を返します + + + --- diff --git a/docs/organization.md b/docs/organization.md index 5240b1c..abb2c59 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -8,8 +8,8 @@ response = $client.send(Pokepay::Request::ListOrganizations.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID page: 1, # ページ番号 per_page: 50, # 1ページ分の取引数 - name: "GERnFdcW", # 組織名 - code: "SdaJfJ60D" # 組織コード + name: "YRl", # 組織名 + code: "e" # 組織コード )) ``` @@ -79,6 +79,14 @@ response = $client.send(Pokepay::Request::ListOrganizations.new( [PaginatedOrganizations](./responses.md#paginated-organizations) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| + + --- @@ -90,14 +98,14 @@ response = $client.send(Pokepay::Request::ListOrganizations.new( response = $client.send(Pokepay::Request::CreateOrganization.new( "ox-supermarket", # code: 新規組織コード "oxスーパー", # name: 新規組織名 - ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # private_money_ids: 加盟店組織で有効にするマネーIDの配列 - "H2T0aKhnL3@FlnA.com", # issuer_admin_user_email: 発行体担当者メールアドレス - "D82QrpYaKu@slNr.com", # member_admin_user_email: 新規組織担当者メールアドレス + ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # private_money_ids: 加盟店組織で有効にするマネーIDの配列 + "9KOkq0RFzj@JHwR.com", # issuer_admin_user_email: 発行体担当者メールアドレス + "ArvOU8komJ@1Atk.com", # member_admin_user_email: 新規組織担当者メールアドレス bank_name: "XYZ銀行", # 銀行名 bank_code: "1234", # 銀行金融機関コード bank_branch_name: "ABC支店", # 銀行支店名 bank_branch_code: "123", # 銀行支店コード - bank_account_type: "current", # 銀行口座種別 (普通=saving, 当座=current, その他=other) + bank_account_type: "saving", # 銀行口座種別 (普通=saving, 当座=current, その他=other) bank_account: "1234567", # 銀行口座番号 bank_account_holder_name: "フクザワユキチ", # 口座名義人名 contact_name: "佐藤清" # 担当者名 @@ -266,6 +274,17 @@ response = $client.send(Pokepay::Request::CreateOrganization.new( [Organization](./responses.md#organization) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| +|409|organization_conflict||The organization code is already used| +|409|shop_name_conflict||The shop name is already used| +|422|organization_private_money_not_found||Issuer organization does not have private-money| +|422|unavailable_private_money||Given private money(s) is/are not available| +|503|failed_to_send_email||Failed to send an E-mail.| + + --- diff --git a/docs/private_money.md b/docs/private_money.md index 41a6c1b..b14d1c3 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -58,6 +58,13 @@ response = $client.send(Pokepay::Request::GetPrivateMoneys.new( [PaginatedPrivateMoneys](./responses.md#paginated-private-moneys) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|organization_not_found||Organization not found| + + --- @@ -68,8 +75,8 @@ response = $client.send(Pokepay::Request::GetPrivateMoneys.new( ```RUBY response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - from: "2020-03-27T12:54:11.000000Z", # 開始日時(toと同時に指定する必要有) - to: "2020-05-10T02:22:04.000000Z", # 終了日時(fromと同時に指定する必要有) + from: "2023-11-09T14:31:56.000000Z", # 開始日時(toと同時に指定する必要有) + to: "2020-04-22T11:12:38.000000Z", # 終了日時(fromと同時に指定する必要有) page: 1, # ページ番号 per_page: 50 # 1ページ分の取引数 )) @@ -141,6 +148,7 @@ response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.n を返します + --- @@ -150,8 +158,8 @@ response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.n ```RUBY response = $client.send(Pokepay::Request::GetPrivateMoneySummary.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - from: "2020-04-17T04:38:29.000000Z", # 開始日時 - to: "2022-03-25T04:16:14.000000Z" # 終了日時 + from: "2021-11-06T09:13:43.000000Z", # 開始日時 + to: "2021-02-10T15:47:42.000000Z" # 終了日時 )) ``` @@ -198,6 +206,7 @@ response = $client.send(Pokepay::Request::GetPrivateMoneySummary.new( を返します + --- diff --git a/docs/shop.md b/docs/shop.md index ab53d6c..8357095 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -8,12 +8,12 @@ response = $client.send(Pokepay::Request::ListShops.new( organization_code: "pocketchange", # 組織コード private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID name: "oxスーパー三田店", # 店舗名 - postal_code: "055-8439", # 店舗の郵便番号 + postal_code: "6525977", # 店舗の郵便番号 address: "東京都港区芝...", # 店舗の住所 - tel: "021-7099-1336", # 店舗の電話番号 - email: "3bs4OkWhHF@x3P6.com", # 店舗のメールアドレス - external_id: "yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5c", # 店舗の外部ID - with_disabled: true, # 無効な店舗を含める + tel: "0245-7879-271", # 店舗の電話番号 + email: "EwxvEfxvbf@oaYN.com", # 店舗のメールアドレス + external_id: "mS964bSnGq", # 店舗の外部ID + with_disabled: false, # 無効な店舗を含める page: 1, # ページ番号 per_page: 50 # 1ページ分の取引数 )) @@ -171,6 +171,14 @@ response = $client.send(Pokepay::Request::ListShops.new( [PaginatedShops](./responses.md#paginated-shops) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|private_money_not_found||Private money not found| +|422|organization_not_found||Organization not found| + + --- @@ -182,11 +190,11 @@ response = $client.send(Pokepay::Request::ListShops.new( ```RUBY response = $client.send(Pokepay::Request::CreateShop.new( "oxスーパー三田店", # shop_name: 店舗名 - shop_postal_code: "795-2270", # 店舗の郵便番号 + shop_postal_code: "7042009", # 店舗の郵便番号 shop_address: "東京都港区芝...", # 店舗の住所 - shop_tel: "097-9077320", # 店舗の電話番号 - shop_email: "8bfxMId7hF@KERG.com", # 店舗のメールアドレス - shop_external_id: "a7vbD1cIywVpXocQ5N98CAVKuK", # 店舗の外部ID + shop_tel: "077660-8701", # 店舗の電話番号 + shop_email: "kXmsTMdugD@smRt.com", # 店舗のメールアドレス + shop_external_id: "nF7L4kFC", # 店舗の外部ID organization_code: "ox-supermarket" # 組織コード )) ``` @@ -280,6 +288,17 @@ response = $client.send(Pokepay::Request::CreateShop.new( [User](./responses.md#user) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| +|409|email_conflict|このメールアドレスは既に使われています|The E-mail address is already registered| +|409|shop_name_conflict||The shop name is already used| +|422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API| +|422|organization_not_found||Organization not found| +|422|unavailable_private_money||Given private money(s) is/are not available| + + --- @@ -290,14 +309,14 @@ response = $client.send(Pokepay::Request::CreateShop.new( ```RUBY response = $client.send(Pokepay::Request::CreateShopV2.new( "oxスーパー三田店", # name: 店舗名 - postal_code: "2351924", # 店舗の郵便番号 + postal_code: "759-2266", # 店舗の郵便番号 address: "東京都港区芝...", # 店舗の住所 - tel: "0245976-5965", # 店舗の電話番号 - email: "I8CNBTqLCZ@99Aj.com", # 店舗のメールアドレス - external_id: "bK3l31NeAICSoLJdEVZoJB0", # 店舗の外部ID + tel: "072-32-018", # 店舗の電話番号 + email: "cIyayD2aKj@XN0N.com", # 店舗のメールアドレス + external_id: "WyT", # 店舗の外部ID organization_code: "ox-supermarket", # 組織コード private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列 - can_topup_private_money_ids: [] # 店舗でチャージ可能にするマネーIDの配列 + can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"] # 店舗でチャージ可能にするマネーIDの配列 )) ``` @@ -431,6 +450,18 @@ response = $client.send(Pokepay::Request::CreateShopV2.new( [ShopWithAccounts](./responses.md#shop-with-accounts) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|409|shop_name_conflict||The shop name is already used| +|422|organization_not_found||Organization not found| +|422|unpermitted_private_money|このマネーは使えません|This money is not available| +|422|unavailable_private_money||Given private money(s) is/are not available| +|422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API| + + --- @@ -468,6 +499,7 @@ response = $client.send(Pokepay::Request::GetShop.new( を返します + --- @@ -479,13 +511,13 @@ response = $client.send(Pokepay::Request::GetShop.new( response = $client.send(Pokepay::Request::UpdateShop.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ユーザーID name: "oxスーパー三田店", # 店舗名 - postal_code: "5495125", # 店舗の郵便番号 + postal_code: "080-7636", # 店舗の郵便番号 address: "東京都港区芝...", # 店舗の住所 - tel: "079238-9452", # 店舗の電話番号 - email: "zTj3A085y5@hWQ3.com", # 店舗のメールアドレス - external_id: "gdeDOWFExGORRYNLJdsZ6n3IGoF44i049", # 店舗の外部ID + tel: "02-485-036", # 店舗の電話番号 + email: "73t7vuEmir@lewY.com", # 店舗のメールアドレス + external_id: "I5WNi6AMJzfUo3", # 店舗の外部ID private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗で有効にするマネーIDの配列 - can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗でチャージ可能にするマネーIDの配列 + can_topup_private_money_ids: ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], # 店舗でチャージ可能にするマネーIDの配列 status: "active" # 店舗の状態 )) ``` @@ -639,6 +671,7 @@ response = $client.send(Pokepay::Request::UpdateShop.new( を返します + --- diff --git a/docs/transaction.md b/docs/transaction.md index afbd630..a60499f 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -6,7 +6,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```RUBY response = $client.send(Pokepay::Request::GetCpmToken.new( - "zroFJfg0zCih9qHu842U5S" # cpm_token: CPMトークン + "iVZ5m5eyekXLeKtBuImxNn" # cpm_token: CPMトークン )) ``` @@ -33,6 +33,7 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを を返します + --- @@ -42,15 +43,15 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```RUBY response = $client.send(Pokepay::Request::ListTransactions.new( - from: "2021-06-05T21:00:30.000000Z", # 開始日時 - to: "2020-10-02T07:49:29.000000Z", # 終了日時 + from: "2020-07-15T01:19:16.000000Z", # 開始日時 + to: "2024-04-03T13:30:43.000000Z", # 終了日時 page: 1, # ページ番号 per_page: 50, # 1ページ分の取引数 shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # エンドユーザーID customer_name: "太郎", # エンドユーザー名 terminal_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 端末ID - transaction_id: "NqipKVsII", # 取引ID + transaction_id: "4", # 取引ID organization_code: "pocketchange", # 組織コード private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID is_modified: false, # キャンセルフラグ @@ -288,6 +289,12 @@ response = $client.send(Pokepay::Request::ListTransactions.new( [PaginatedTransaction](./responses.md#paginated-transaction) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| + + --- @@ -301,10 +308,10 @@ response = $client.send(Pokepay::Request::CreateTransaction.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - money_amount: 362, - point_amount: 3542, - point_expires_at: "2024-03-01T17:10:50.000000Z", # ポイント有効期限 - description: "x3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVR" + money_amount: 7838, + point_amount: 5173, + point_expires_at: "2024-03-26T19:43:14.000000Z", # ポイント有効期限 + description: "ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTH" )) ``` @@ -398,6 +405,47 @@ response = $client.send(Pokepay::Request::CreateTransaction.new( [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|NULL|NULL|NULL| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -415,11 +463,11 @@ response = $client.send(Pokepay::Request::ListTransactionsV2.new( customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # エンドユーザーID customer_name: "太郎", # エンドユーザー名 description: "店頭QRコードによる支払い", # 取引説明文 - transaction_id: "1P", # 取引ID - is_modified: true, # キャンセルフラグ + transaction_id: "LM", # 取引ID + is_modified: false, # キャンセルフラグ types: ["topup", "payment"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment - from: "2024-02-04T04:47:18.000000Z", # 開始日時 - to: "2020-03-06T03:10:42.000000Z", # 終了日時 + from: "2022-02-10T06:58:47.000000Z", # 開始日時 + to: "2020-04-03T04:43:39.000000Z", # 終了日時 next_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 次ページへ遷移する際に起点となるtransactionのID prev_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 前ページへ遷移する際に起点となるtransactionのID per_page: 50 # 1ページ分の取引数 @@ -683,6 +731,12 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ [PaginatedTransactionV2](./responses.md#paginated-transaction-v2) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- @@ -697,9 +751,9 @@ response = $client.send(Pokepay::Request::CreateTopupTransaction.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーのID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID bear_point_shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # ポイント支払時の負担店舗ID - money_amount: 4236, # マネー額 - point_amount: 5322, # ポイント額 - point_expires_at: "2021-02-02T23:32:54.000000Z", # ポイント有効期限 + money_amount: 8834, # マネー額 + point_amount: 5250, # ポイント額 + point_expires_at: "2023-10-13T22:16:08.000000Z", # ポイント有効期限 description: "初夏のチャージキャンペーン", # 取引履歴に表示する説明文 metadata: "{\"key\":\"value\"}", # 取引メタデータ request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID @@ -858,6 +912,46 @@ response = $client.send(Pokepay::Request::CreateTopupTransaction.new( [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameter_both_point_and_money_are_zero||One of 'money_amount' or 'point_amount' must be a positive (>0) number| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -873,13 +967,14 @@ response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # customer_id: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - 8608, # amount: 支払い額 + 7135, # amount: 支払い額 description: "たい焼き(小倉)", # 取引履歴に表示する説明文 metadata: "{\"key\":\"value\"}", # 取引メタデータ products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], # 商品情報データ request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID @@ -983,6 +1078,7 @@ response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -1017,6 +1113,45 @@ response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|private_money_not_found||Private money not found| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1029,25 +1164,16 @@ CPMトークンに設定されたスコープの取引を作ることができ ```RUBY response = $client.send(Pokepay::Request::CreateCpmTransaction.new( - "5SjzUvS2Jlq6P89tC2Mi1P", # cpm_token: CPMトークン + "hJmPNb2Vt3kMgTzAxm3nuC", # cpm_token: CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # shop_id: 店舗ID - 7208.0, # amount: 取引金額 + 4717.0, # amount: 取引金額 description: "たい焼き(小倉)", # 取引説明文 metadata: "{\"key\":\"value\"}", # 店舗側メタデータ products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], # 商品情報データ request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID @@ -1137,6 +1263,7 @@ response = $client.send(Pokepay::Request::CreateCpmTransaction.new( - `name`: 商品名。256字以下の文字列 - `unit_price`: 商品単価。0以上の数値 - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 +- `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 @@ -1171,6 +1298,50 @@ response = $client.send(Pokepay::Request::CreateCpmTransaction.new( [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|cpm_unacceptable_amount|このCPMトークンに対して許可されていない金額です。|The amount is unacceptable for the CPM token| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|shop_user_not_found|店舗が見つかりません|The shop user is not found| +|422|private_money_not_found||Private money not found| +|422|cpm_token_already_proceed|このCPMトークンは既に処理されています。|The CPM token is already proceed| +|422|cpm_token_already_expired|このCPMトークンは既に失効しています。|The CPM token is already expired| +|422|cpm_token_not_found|CPMトークンが見つかりませんでした。|The CPM token is not found.| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1186,7 +1357,7 @@ response = $client.send(Pokepay::Request::CreateTransferTransaction.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # sender_id: 送金元ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # receiver_id: 受取ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # private_money_id: マネーID - 686.0, # amount: 送金額 + 1780.0, # amount: 送金額 metadata: "{\"key\":\"value\"}", # 取引メタデータ description: "たい焼き(小倉)", # 取引履歴に表示する説明文 request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID @@ -1302,6 +1473,46 @@ response = $client.send(Pokepay::Request::CreateTransferTransaction.new( [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|customer_user_not_found||The customer user is not found| +|422|private_money_not_found||Private money not found| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found||The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1314,8 +1525,8 @@ response = $client.send(Pokepay::Request::CreateExchangeTransaction.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 5541, - description: "Re6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ9", + 7361, + description: "4rQ7TMWwQQegAiqW5Gh3EedIVko", request_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # リクエストID )) ``` @@ -1400,6 +1611,44 @@ response = $client.send(Pokepay::Request::CreateExchangeTransaction.new( [TransactionDetail](./responses.md#transaction-detail) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|410|transaction_canceled|取引がキャンセルされました|Transaction was canceled| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|transaction_restricted||Transaction is not allowed| +|422|can_not_exchange_between_same_private_money|同じマネーとの交換はできません|| +|422|can_not_exchange_between_users|異なるユーザー間での交換は出来ません|| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_total_topup_limit_range|期間内での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|account_total_topup_limit_entire_period|全期間での合計チャージ額上限に達しました|Entire period topup limit reached| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_closed|アカウントは退会しています|The account is closed| +|503|temporarily_unavailable||Service Unavailable| + + --- @@ -1438,6 +1687,7 @@ response = $client.send(Pokepay::Request::GetTransaction.new( を返します + --- @@ -1455,7 +1705,7 @@ response = $client.send(Pokepay::Request::GetTransaction.new( response = $client.send(Pokepay::Request::RefundTransaction.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # transaction_id: 取引ID description: "返品対応のため", # 取引履歴に表示する返金事由 - returning_point_expires_at: "2023-04-11T16:40:53.000000Z" # 返却ポイントの有効期限 + returning_point_expires_at: "2021-03-26T23:31:00.000000Z" # 返却ポイントの有効期限 )) ``` @@ -1503,6 +1753,7 @@ response = $client.send(Pokepay::Request::RefundTransaction.new( を返します + --- @@ -1540,6 +1791,7 @@ response = $client.send(Pokepay::Request::GetTransactionByRequestId.new( を返します + --- @@ -1575,6 +1827,7 @@ response = $client.send(Pokepay::Request::GetBulkTransaction.new( を返します + --- @@ -1636,6 +1889,7 @@ response = $client.send(Pokepay::Request::ListBulkTransactionJobs.new( を返します + --- @@ -1700,6 +1954,16 @@ response = $client.send(Pokepay::Request::RequestUserStats.new( [UserStatsOperation](./responses.md#user-stats-operation) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|invalid_promotional_operation_user|ユーザーの指定に不正な値が含まれています|Invalid user data is specified| +|422|invalid_promotional_operation_status|不正な処理ステータスです|Invalid operation status is specified| +|503|user_stats_operation_service_unavailable|一時的にユーザー統計サービスが利用不能です|User stats service is temporarily unavailable| + + --- diff --git a/docs/transfer.md b/docs/transfer.md index 6a9fe8f..274801a 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -7,8 +7,8 @@ ```RUBY response = $client.send(Pokepay::Request::GetAccountTransferSummary.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # account_id: ウォレットID - from: "2020-05-19T10:22:23.000000Z", # 集計期間の開始時刻 - to: "2022-09-30T14:05:52.000000Z", # 集計期間の終了時刻 + from: "2023-12-29T00:39:46.000000Z", # 集計期間の開始時刻 + to: "2020-09-05T10:55:37.000000Z", # 集計期間の終了時刻 transfer_types: ["topup", "payment"] # 取引明細種別 (複数指定可) )) ``` @@ -113,6 +113,7 @@ response = $client.send(Pokepay::Request::GetAccountTransferSummary.new( を返します + --- @@ -121,19 +122,19 @@ response = $client.send(Pokepay::Request::GetAccountTransferSummary.new( ```RUBY response = $client.send(Pokepay::Request::ListTransfers.new( - from: "2023-09-04T06:29:07.000000Z", - to: "2024-01-13T03:24:09.000000Z", - page: 4884, - per_page: 6195, + from: "2023-07-28T11:17:36.000000Z", + to: "2024-03-20T13:24:35.000000Z", + page: 3907, + per_page: 2475, shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - shop_name: "C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7k", + shop_name: "1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnv", customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - customer_name: "VTYLZtj", + customer_name: "24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRh", transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", is_modified: true, - transaction_types: ["payment", "topup", "cashback"], - transfer_types: ["coupon", "cashback", "campaign", "payment", "topup", "transfer", "expire", "exchange"], # 取引明細の種類でフィルターします。 + transaction_types: ["transfer", "payment", "cashback", "exchange"], + transfer_types: ["expire", "exchange", "payment", "campaign", "cashback", "topup", "transfer", "coupon"], # 取引明細の種類でフィルターします。 description: "店頭QRコードによる支払い" # 取引詳細説明文 )) ``` @@ -349,6 +350,12 @@ response = $client.send(Pokepay::Request::ListTransfers.new( [PaginatedTransfers](./responses.md#paginated-transfers) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|NULL|NULL|NULL| + + --- @@ -359,20 +366,20 @@ response = $client.send(Pokepay::Request::ListTransfers.new( ```RUBY response = $client.send(Pokepay::Request::ListTransfersV2.new( shop_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 店舗ID - shop_name: "xB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaT", # 店舗名 + shop_name: "T8Jn6tKv842hmK", # 店舗名 customer_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # エンドユーザーID - customer_name: "lLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EK", # エンドユーザー名 + customer_name: "tJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnv", # エンドユーザー名 transaction_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 取引ID private_money_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # マネーID - is_modified: false, # キャンセルフラグ + is_modified: true, # キャンセルフラグ transaction_types: ["cashback"], # 取引種別 (複数指定可)、チャージ=topup、支払い=payment next_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 次ページへ遷移する際に起点となるtransferのID prev_page_cursor_id: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # 前ページへ遷移する際に起点となるtransferのID per_page: 50, # 1ページ分の取引数 - transfer_types: ["transfer", "exchange"], # 取引明細種別 (複数指定可) + transfer_types: ["expire"], # 取引明細種別 (複数指定可) description: "店頭QRコードによる支払い", # 取引詳細説明文 - from: "2020-07-02T11:27:30.000000Z", # 開始日時 - to: "2020-07-24T15:07:42.000000Z" # 終了日時 + from: "2021-11-01T11:41:20.000000Z", # 開始日時 + to: "2020-01-08T12:53:28.000000Z" # 終了日時 )) ``` @@ -666,6 +673,12 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません [PaginatedTransfersV2](./responses.md#paginated-transfers-v2) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- diff --git a/docs/user.md b/docs/user.md index b47fa3d..bab8644 100644 --- a/docs/user.md +++ b/docs/user.md @@ -17,6 +17,12 @@ response = $client.send(Pokepay::Request::GetUser.new( [AdminUserWithShopsAndPrivateMoneys](./responses.md#admin-user-with-shops-and-private-moneys) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + --- diff --git a/docs/user_device.md b/docs/user_device.md index e997d6c..b474274 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -49,6 +49,13 @@ response = $client.send(Pokepay::Request::CreateUserDevice.new( [UserDevice](./responses.md#user-device) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|user_not_found||The user is not found| + + --- @@ -84,6 +91,7 @@ response = $client.send(Pokepay::Request::GetUserDevice.new( を返します + --- @@ -119,6 +127,7 @@ response = $client.send(Pokepay::Request::ActivateUserDevice.new( を返します + --- diff --git a/docs/webhook.md b/docs/webhook.md index e2a3b0c..fae4340 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -4,6 +4,59 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 + +## ListWebhooks: 作成したWebhookの一覧を返す + +```RUBY +response = $client.send(Pokepay::Request::ListWebhooks.new( + page: 1, # ページ番号 + per_page: 50 # 1ページ分の取得数 +)) +``` + + + +### Parameters +**`page`** + + +取得したいページ番号です。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +**`per_page`** + + +1ページ分の取得数です。デフォルトでは 50 になっています。 + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + + + +成功したときは +[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| + + + +--- + + ## CreateWebhook: webhookの作成 ワーカータスクの処理が終了したことを通知するためのWebhookを登録します @@ -13,7 +66,7 @@ WebHookにはURLとタスク名、有効化されているかを設定するこ ```RUBY response = $client.send(Pokepay::Request::CreateWebhook.new( "bulk_shops", # task: タスク名 - "Bgm1" # url: URL + "4Zp" # url: URL )) ``` @@ -52,54 +105,50 @@ response = $client.send(Pokepay::Request::CreateWebhook.new( [OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) を返します +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|409|organization_worker_task_finish_webhook_conflict|そのwebhookは既に登録されています|The webhook is already registered| + + --- - -## ListWebhooks: 作成したWebhookの一覧を返す + +## DeleteWebhook: Webhookの削除 +指定したWebhookを削除します ```RUBY -response = $client.send(Pokepay::Request::ListWebhooks.new( - page: 1, # ページ番号 - per_page: 50 # 1ページ分の取得数 +response = $client.send(Pokepay::Request::DeleteWebhook.new( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # webhook_id: Webhook ID )) ``` ### Parameters -**`page`** - - -取得したいページ番号です。 - -```json -{ - "type": "integer", - "minimum": 1 -} -``` - -**`per_page`** +**`webhook_id`** -1ページ分の取得数です。デフォルトでは 50 になっています。 +削除するWebhookのIDです。 ```json { - "type": "integer", - "minimum": 1 + "type": "string", + "format": "uuid" } ``` 成功したときは -[PaginatedOrganizationWorkerTaskWebhook](./responses.md#paginated-organization-worker-task-webhook) +[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) を返します + --- @@ -110,9 +159,9 @@ response = $client.send(Pokepay::Request::ListWebhooks.new( ```RUBY response = $client.send(Pokepay::Request::UpdateWebhook.new( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", # webhook_id: Webhook ID - url: "b", # URL - is_active: false, # 有効/無効 - task: "bulk_shops" # タスク名 + url: "Jqp2", # URL + is_active: true, # 有効/無効 + task: "process_user_stats_operation" # タスク名 )) ``` @@ -175,40 +224,6 @@ trueならWebhookによる通知が有効になり、falseなら無効になり を返します ---- - - - -## DeleteWebhook: Webhookの削除 -指定したWebhookを削除します - -```RUBY -response = $client.send(Pokepay::Request::DeleteWebhook.new( - "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" # webhook_id: Webhook ID -)) -``` - - - -### Parameters -**`webhook_id`** - - -削除するWebhookのIDです。 - -```json -{ - "type": "string", - "format": "uuid" -} -``` - - - -成功したときは -[OrganizationWorkerTaskWebhook](./responses.md#organization-worker-task-webhook) -を返します - --- diff --git a/lib/pokepay_partner_ruby_sdk.rb b/lib/pokepay_partner_ruby_sdk.rb index ea7ced7..f4fce32 100644 --- a/lib/pokepay_partner_ruby_sdk.rb +++ b/lib/pokepay_partner_ruby_sdk.rb @@ -10,9 +10,9 @@ require "pokepay_partner_ruby_sdk/request/get_user" require "pokepay_partner_ruby_sdk/request/list_user_accounts" require "pokepay_partner_ruby_sdk/request/create_user_account" +require "pokepay_partner_ruby_sdk/request/delete_account" require "pokepay_partner_ruby_sdk/request/get_account" require "pokepay_partner_ruby_sdk/request/update_account" -require "pokepay_partner_ruby_sdk/request/delete_account" require "pokepay_partner_ruby_sdk/request/list_account_balances" require "pokepay_partner_ruby_sdk/request/list_account_expired_balances" require "pokepay_partner_ruby_sdk/request/update_customer_account" @@ -23,8 +23,8 @@ require "pokepay_partner_ruby_sdk/request/list_bills" require "pokepay_partner_ruby_sdk/request/create_bill" require "pokepay_partner_ruby_sdk/request/update_bill" -require "pokepay_partner_ruby_sdk/request/create_check" require "pokepay_partner_ruby_sdk/request/list_checks" +require "pokepay_partner_ruby_sdk/request/create_check" require "pokepay_partner_ruby_sdk/request/get_check" require "pokepay_partner_ruby_sdk/request/update_check" require "pokepay_partner_ruby_sdk/request/get_cpm_token" @@ -43,6 +43,7 @@ require "pokepay_partner_ruby_sdk/request/get_transaction_by_request_id" require "pokepay_partner_ruby_sdk/request/create_external_transaction" require "pokepay_partner_ruby_sdk/request/refund_external_transaction" +require "pokepay_partner_ruby_sdk/request/get_external_transaction_by_request_id" require "pokepay_partner_ruby_sdk/request/list_transfers" require "pokepay_partner_ruby_sdk/request/list_transfers_v2" require "pokepay_partner_ruby_sdk/request/list_organizations" @@ -59,23 +60,23 @@ require "pokepay_partner_ruby_sdk/request/get_bulk_transaction" require "pokepay_partner_ruby_sdk/request/list_bulk_transaction_jobs" require "pokepay_partner_ruby_sdk/request/create_cashtray" -require "pokepay_partner_ruby_sdk/request/get_cashtray" require "pokepay_partner_ruby_sdk/request/cancel_cashtray" +require "pokepay_partner_ruby_sdk/request/get_cashtray" require "pokepay_partner_ruby_sdk/request/update_cashtray" -require "pokepay_partner_ruby_sdk/request/create_campaign" require "pokepay_partner_ruby_sdk/request/list_campaigns" +require "pokepay_partner_ruby_sdk/request/create_campaign" require "pokepay_partner_ruby_sdk/request/get_campaign" require "pokepay_partner_ruby_sdk/request/update_campaign" require "pokepay_partner_ruby_sdk/request/request_user_stats" -require "pokepay_partner_ruby_sdk/request/create_webhook" require "pokepay_partner_ruby_sdk/request/list_webhooks" -require "pokepay_partner_ruby_sdk/request/update_webhook" +require "pokepay_partner_ruby_sdk/request/create_webhook" require "pokepay_partner_ruby_sdk/request/delete_webhook" +require "pokepay_partner_ruby_sdk/request/update_webhook" require "pokepay_partner_ruby_sdk/request/create_user_device" require "pokepay_partner_ruby_sdk/request/get_user_device" require "pokepay_partner_ruby_sdk/request/activate_user_device" -require "pokepay_partner_ruby_sdk/request/create_bank" require "pokepay_partner_ruby_sdk/request/list_banks" +require "pokepay_partner_ruby_sdk/request/create_bank" require "pokepay_partner_ruby_sdk/request/create_bank_topup_transaction" require "pokepay_partner_ruby_sdk/request/list_coupons" require "pokepay_partner_ruby_sdk/request/create_coupon" diff --git a/lib/pokepay_partner_ruby_sdk/request/get_external_transaction_by_request_id.rb b/lib/pokepay_partner_ruby_sdk/request/get_external_transaction_by_request_id.rb new file mode 100644 index 0000000..e0f3597 --- /dev/null +++ b/lib/pokepay_partner_ruby_sdk/request/get_external_transaction_by_request_id.rb @@ -0,0 +1,15 @@ +# DO NOT EDIT: File is generated by code generator. + +require "pokepay_partner_ruby_sdk/response/external_transaction_detail" + +module Pokepay::Request + class GetExternalTransactionByRequestId < Request + def initialize(request_id) + @path = "/external-transactions" + "/requests" + "/" + request_id + @method = "GET" + @body_params = { } + @response_class = Pokepay::Response::ExternalTransactionDetail + end + attr_reader :response_class + end +end diff --git a/lib/pokepay_partner_ruby_sdk/response/product.rb b/lib/pokepay_partner_ruby_sdk/response/product.rb index a51151e..da6ec28 100644 --- a/lib/pokepay_partner_ruby_sdk/response/product.rb +++ b/lib/pokepay_partner_ruby_sdk/response/product.rb @@ -8,6 +8,7 @@ def initialize(row) @name = row["name"] @unit_price = row["unit_price"] @price = row["price"] + @quantity = row["quantity"] @is_discounted = row["is_discounted"] @other = row["other"] end @@ -15,6 +16,7 @@ def initialize(row) attr_reader :name attr_reader :unit_price attr_reader :price + attr_reader :quantity attr_reader :is_discounted attr_reader :other end diff --git a/partner.yaml b/partner.yaml index 4619f57..1675d77 100644 --- a/partner.yaml +++ b/partner.yaml @@ -8,7 +8,7 @@ info: description: >- Partner APIs title: Partner APIs - version: 0.0.0 + version: 24.3.26 tags: - name: Transaction @@ -1021,6 +1021,55 @@ components: 例えば、キャンペーンによるポイント付与取引やキャンセル状況などの情報が含まれます。 ポケペイ取引が存在しない場合はnullが設定されます。 + Products: + type: array + items: + type: object + properties: + jan_code: + type: string + maxLength: 64 + classification_code: + type: string + maxLength: 64 + name: + type: string + maxLength: 256 + unit_price: + type: number + minimum: 0 + price: + type: number + minimum: 0 + quantity: + type: integer + minimum: 1 + is_discounted: + type: boolean + other: + type: string + format: json + example: |- + {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"} + title: '商品情報データ' + description: |- + 一つの取引に含まれる商品情報データです。 + 以下の内容からなるJSONオブジェクトの配列で指定します。 + + - `jan_code`: JANコード。64字以下の文字列 + - `name`: 商品名。256字以下の文字列 + - `unit_price`: 商品単価。0以上の数値 + - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 + - `quantity`: 商品の個数。この値が指定された場合、priceから算出される個数よりも優先されます。 + - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean + - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + Product: x-pokepay-schema-type: "response" properties: @@ -1036,6 +1085,10 @@ components: price: type: number minimum: 0 + quantity: + type: integer + minimum: 1 + nullable: true is_discounted: type: boolean other: @@ -3904,48 +3957,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: '商品情報データ' - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -4031,48 +4043,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: 商品情報データ - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -4566,48 +4537,7 @@ paths: example: |- {"key":"value"} products: - type: array - items: - type: object - properties: - jan_code: - type: string - maxLength: 64 - classification_code: - type: string - maxLength: 64 - name: - type: string - maxLength: 256 - unit_price: - type: number - minimum: 0 - price: - type: number - minimum: 0 - is_discounted: - type: boolean - other: - type: string - format: json - example: |- - {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"} - title: '商品情報データ' - description: |- - 一つの取引に含まれる商品情報データです。 - 以下の内容からなるJSONオブジェクトの配列で指定します。 - - - `jan_code`: JANコード。64字以下の文字列 - - `name`: 商品名。256字以下の文字列 - - `unit_price`: 商品単価。0以上の数値 - - `price`: 全体の金額(例: 商品単価 × 個数)。0以上の数値 - - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 + $ref: '#/components/schemas/Products' request_id: type: string format: uuid @@ -4676,6 +4606,37 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /external-transactions/requests/{request_id}: + get: + tags: + - Event + summary: 'リクエストIDからポケペイ外部取引を取得する' + description: |- + リクエストIDを指定してポケペイ外部取引を取得します。 + + 発行体の管理者は自組織発行のマネーに紐付くポケペイ外部取引を取得できます。 + + x-pokepay-operator-name: GetExternalTransactionByRequestId + x-pokepay-allow-server-side: true + parameters: + - in: path + name: request_id + required: true + schema: + type: string + format: uuid + title: 'リクエストID' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/ExternalTransactionDetail' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' /transfers: get: tags: @@ -6522,7 +6483,7 @@ paths: minimum: 0 maximum: 6 title: 'キャンペーンを適用する曜日 (複数指定)' - describe: |- + description: |- キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) @@ -6546,7 +6507,7 @@ paths: } title: 'キャンペーンを適用する時間帯 (複数指定)' - describe: |- + description: |- キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 @@ -6556,9 +6517,19 @@ paths: type: string format: uuid title: 'キャンペーン適用対象となる店舗IDのリスト' - describe: |- + description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + blacklisted_shop_ids: + type: array + items: + type: string + format: uuid + title: 'キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)' + description: |- + キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 + このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 + blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 minimum_number_of_products: type: integer minimum: 1 @@ -6761,6 +6732,7 @@ paths: デフォルトではポイント付与先はキャンペーンを駆動するイベントのマネー(private_money_idで指定したマネー)になります。 別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 + applicable_account_metadata: description: |- ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 @@ -6810,6 +6782,55 @@ paths: "value": "male" } + applicable_transaction_metadata: + description: |- + 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 + 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + + オプショナルパラメータtestによって比較方法を指定することができます。 + デフォルトは equal で、その他に not-equalを指定可能です。 + + 例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze" + } + ``` + + 例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze", + "test": "not-equal" + } + ``` + + type: object + properties: + key: + type: string + description: |- + メタデータの属性名 + value: + type: string + description: |- + メタデータの値 + test: + type: string + enum: [equal, not-equal] + description: |- + メタデータの値の比較方法。デフォルトはequal + example: |- + { + "key": "rank", + "value": "bronze" + } + budget_caps_amount: title: 'キャンペーン予算上限' type: integer @@ -7354,7 +7375,7 @@ paths: maximum: 6 nullable: true title: 'キャンペーンを適用する曜日 (複数指定)' - describe: |- + description: |- キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) @@ -7379,7 +7400,7 @@ paths: nullable: true title: 'キャンペーンを適用する時間帯 (複数指定)' - describe: |- + description: |- キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 @@ -7390,9 +7411,20 @@ paths: format: uuid nullable: true title: 'キャンペーン適用対象となる店舗IDのリスト' - describe: |- + description: |- キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 + blacklisted_shop_ids: + type: array + items: + type: string + format: uuid + nullable: true + title: 'キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式)' + description: |- + キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 + このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 + blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 minimum_number_of_products: type: integer minimum: 1 @@ -7586,6 +7618,7 @@ paths: このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 + applicable_account_metadata: description: |- ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 @@ -7636,6 +7669,56 @@ paths: "value": "male" } + applicable_transaction_metadata: + description: |- + 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 + メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 + 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 + + オプショナルパラメータtestによって比較方法を指定することができます。 + デフォルトは equal で、その他に not-equalを指定可能です。 + + 例1: 取引のメタデータに会員ランクとしてbronzeが指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze" + } + ``` + + 例2: 取引のメタデータに会員ランクとしてbronze以外が指定されているときのみ発火 + + ```javascript + { + "key": "rank", + "value": "bronze", + "test": "not-equal" + } + ``` + + type: object + nullable: true + properties: + key: + type: string + description: |- + メタデータの属性名 + value: + type: string + description: |- + メタデータの値 + test: + type: string + enum: [equal, not-equal] + description: |- + メタデータの値の比較方法。デフォルトはequal + example: |- + { + "key": "rank", + "value": "bronze" + } + budget_caps_amount: title: 'キャンペーン予算上限' type: integer @@ -7726,6 +7809,7 @@ paths: $ref: '#/components/responses/UnpermittedAdminUser' '503': $ref: '#/components/responses/UserStatsOperationServiceUnavailable' + /webhooks: post: x-pokepay-operator-name: "CreateWebhook" diff --git a/test/request_validation_test.rb b/test/request_validation_test.rb index 44634bb..7971fac 100644 --- a/test/request_validation_test.rb +++ b/test/request_validation_test.rb @@ -95,31 +95,46 @@ def test_create_user_account_3 assert response.code != "400" end + def test_delete_account_0 + response = $client.send(Pokepay::Request::DeleteAccount.new( + "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" + )) + assert response.code != "400" + end + + def test_delete_account_1 + response = $client.send(Pokepay::Request::DeleteAccount.new( + "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d", + cashback: true + )) + assert response.code != "400" + end + def test_get_account_0 response = $client.send(Pokepay::Request::GetAccount.new( - "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" + "e2f27231-d218-406e-b371-622b2afd45f7" )) assert response.code != "400" end def test_update_account_0 response = $client.send(Pokepay::Request::UpdateAccount.new( - "553fd4da-7231-4218-aeb3-2d714f66622b" + "f687016b-d0b3-46f2-8833-e8985291851f" )) assert response.code != "400" end def test_update_account_1 response = $client.send(Pokepay::Request::UpdateAccount.new( - "553fd4da-7231-4218-aeb3-2d714f66622b", - can_transfer_topup: false + "f687016b-d0b3-46f2-8833-e8985291851f", + can_transfer_topup: true )) assert response.code != "400" end def test_update_account_2 response = $client.send(Pokepay::Request::UpdateAccount.new( - "553fd4da-7231-4218-aeb3-2d714f66622b", + "f687016b-d0b3-46f2-8833-e8985291851f", status: "pre-closed", can_transfer_topup: true )) @@ -128,39 +143,24 @@ def test_update_account_2 def test_update_account_3 response = $client.send(Pokepay::Request::UpdateAccount.new( - "553fd4da-7231-4218-aeb3-2d714f66622b", - is_suspended: false, + "f687016b-d0b3-46f2-8833-e8985291851f", + is_suspended: true, status: "active", can_transfer_topup: false )) assert response.code != "400" end - def test_delete_account_0 - response = $client.send(Pokepay::Request::DeleteAccount.new( - "78993f7e-a95e-4e84-8ce0-7a7b0adcc451" - )) - assert response.code != "400" - end - - def test_delete_account_1 - response = $client.send(Pokepay::Request::DeleteAccount.new( - "78993f7e-a95e-4e84-8ce0-7a7b0adcc451", - cashback: false - )) - assert response.code != "400" - end - def test_list_account_balances_0 response = $client.send(Pokepay::Request::ListAccountBalances.new( - "124a3fe8-1e88-4803-9195-15bbd1722f1a" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95" )) assert response.code != "400" end def test_list_account_balances_1 response = $client.send(Pokepay::Request::ListAccountBalances.new( - "124a3fe8-1e88-4803-9195-15bbd1722f1a", + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", direction: "desc" )) assert response.code != "400" @@ -168,17 +168,17 @@ def test_list_account_balances_1 def test_list_account_balances_2 response = $client.send(Pokepay::Request::ListAccountBalances.new( - "124a3fe8-1e88-4803-9195-15bbd1722f1a", - expires_at_to: "2020-09-07T21:25:03.000000Z", - direction: "asc" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + expires_at_to: "2020-10-07T18:59:38.000000Z", + direction: "desc" )) assert response.code != "400" end def test_list_account_balances_3 response = $client.send(Pokepay::Request::ListAccountBalances.new( - "124a3fe8-1e88-4803-9195-15bbd1722f1a", - expires_at_from: "2020-07-02T09:51:09.000000Z", + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + expires_at_from: "2020-09-07T21:25:03.000000Z", expires_at_to: "2022-05-06T04:41:55.000000Z", direction: "desc" )) @@ -187,46 +187,46 @@ def test_list_account_balances_3 def test_list_account_balances_4 response = $client.send(Pokepay::Request::ListAccountBalances.new( - "124a3fe8-1e88-4803-9195-15bbd1722f1a", + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", per_page: 3844, - expires_at_from: "2020-06-15T18:58:37.000000Z", - expires_at_to: "2022-03-04T19:01:47.000000Z", - direction: "desc" + expires_at_from: "2022-07-13T08:37:39.000000Z", + expires_at_to: "2022-05-05T20:55:29.000000Z", + direction: "asc" )) assert response.code != "400" end def test_list_account_balances_5 response = $client.send(Pokepay::Request::ListAccountBalances.new( - "124a3fe8-1e88-4803-9195-15bbd1722f1a", - page: 3584, - per_page: 7257, - expires_at_from: "2022-05-05T20:55:29.000000Z", - expires_at_to: "2023-04-07T14:57:44.000000Z", - direction: "asc" + "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + page: 677, + per_page: 5673, + expires_at_from: "2021-09-28T23:27:27.000000Z", + expires_at_to: "2020-10-21T06:08:14.000000Z", + direction: "desc" )) assert response.code != "400" end def test_list_account_expired_balances_0 response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434" )) assert response.code != "400" end def test_list_account_expired_balances_1 response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( - "cce276f9-f936-4628-91b6-bb60d347c3df", - direction: "asc" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + direction: "desc" )) assert response.code != "400" end def test_list_account_expired_balances_2 response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( - "cce276f9-f936-4628-91b6-bb60d347c3df", - expires_at_to: "2022-11-08T09:57:39.000000Z", + "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + expires_at_to: "2020-03-19T18:01:03.000000Z", direction: "desc" )) assert response.code != "400" @@ -234,9 +234,9 @@ def test_list_account_expired_balances_2 def test_list_account_expired_balances_3 response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( - "cce276f9-f936-4628-91b6-bb60d347c3df", - expires_at_from: "2021-02-10T04:23:33.000000Z", - expires_at_to: "2021-11-27T03:23:28.000000Z", + "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + expires_at_from: "2022-12-28T17:18:58.000000Z", + expires_at_to: "2023-10-07T04:30:21.000000Z", direction: "desc" )) assert response.code != "400" @@ -244,37 +244,37 @@ def test_list_account_expired_balances_3 def test_list_account_expired_balances_4 response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( - "cce276f9-f936-4628-91b6-bb60d347c3df", - per_page: 9269, - expires_at_from: "2022-07-27T12:24:37.000000Z", - expires_at_to: "2020-03-19T18:01:03.000000Z", - direction: "desc" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + per_page: 9557, + expires_at_from: "2023-08-29T00:06:37.000000Z", + expires_at_to: "2020-05-27T19:21:15.000000Z", + direction: "asc" )) assert response.code != "400" end def test_list_account_expired_balances_5 response = $client.send(Pokepay::Request::ListAccountExpiredBalances.new( - "cce276f9-f936-4628-91b6-bb60d347c3df", - page: 6531, - per_page: 2579, - expires_at_from: "2023-10-07T04:30:21.000000Z", - expires_at_to: "2023-04-20T20:38:29.000000Z", - direction: "asc" + "e82d7cf3-7ec5-43b0-a747-7fff9e012434", + page: 4163, + per_page: 2955, + expires_at_from: "2021-01-23T23:18:48.000000Z", + expires_at_to: "2021-06-11T20:14:34.000000Z", + direction: "desc" )) assert response.code != "400" end def test_update_customer_account_0 response = $client.send(Pokepay::Request::UpdateCustomerAccount.new( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161" )) assert response.code != "400" end def test_update_customer_account_1 response = $client.send(Pokepay::Request::UpdateCustomerAccount.new( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161", metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" )) assert response.code != "400" @@ -282,8 +282,8 @@ def test_update_customer_account_1 def test_update_customer_account_2 response = $client.send(Pokepay::Request::UpdateCustomerAccount.new( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab", - external_id: "hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq", + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161", + external_id: "N9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2q", metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" )) assert response.code != "400" @@ -291,9 +291,9 @@ def test_update_customer_account_2 def test_update_customer_account_3 response = $client.send(Pokepay::Request::UpdateCustomerAccount.new( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab", - account_name: "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd", - external_id: "KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb", + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161", + account_name: "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCbHnT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC", + external_id: "ahSG576Yk", metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" )) assert response.code != "400" @@ -301,10 +301,10 @@ def test_update_customer_account_3 def test_update_customer_account_4 response = $client.send(Pokepay::Request::UpdateCustomerAccount.new( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + "7d5c2b5b-43f9-4a5f-97c7-ebbfeb9ae161", status: "pre-closed", - account_name: "nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc", - external_id: "KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj", + account_name: "67hNuqsd2aOEu5ugI0fcKmGRUw7sMhCFW8ODbHkZSUPXBsmObvn", + external_id: "UjDTSSciw", metadata: "{\"key1\":\"foo\",\"key2\":\"bar\"}" )) assert response.code != "400" @@ -312,65 +312,65 @@ def test_update_customer_account_4 def test_get_account_transfer_summary_0 response = $client.send(Pokepay::Request::GetAccountTransferSummary.new( - "d79ada44-2554-41d3-a753-5725590e9c63" + "0de2a38c-c7bc-4b5d-be03-229e54b13590" )) assert response.code != "400" end def test_get_account_transfer_summary_1 response = $client.send(Pokepay::Request::GetAccountTransferSummary.new( - "d79ada44-2554-41d3-a753-5725590e9c63", - transfer_types: ["exchange-outflow", "exchange-inflow", "refund-topup", "use-coupon", "refund-coupon", "payment", "refund-campaign", "campaign-topup", "refund-exchange-outflow"] + "0de2a38c-c7bc-4b5d-be03-229e54b13590", + transfer_types: ["use-coupon", "topup", "refund-payment", "refund-exchange-outflow"] )) assert response.code != "400" end def test_get_account_transfer_summary_2 response = $client.send(Pokepay::Request::GetAccountTransferSummary.new( - "d79ada44-2554-41d3-a753-5725590e9c63", - to: "2022-08-23T05:52:55.000000Z", - transfer_types: ["exchange-outflow", "use-coupon", "refund-payment", "topup", "payment", "exchange-inflow", "refund-exchange-outflow"] + "0de2a38c-c7bc-4b5d-be03-229e54b13590", + to: "2021-11-24T19:26:35.000000Z", + transfer_types: ["refund-campaign", "campaign-topup"] )) assert response.code != "400" end def test_get_account_transfer_summary_3 response = $client.send(Pokepay::Request::GetAccountTransferSummary.new( - "d79ada44-2554-41d3-a753-5725590e9c63", - from: "2022-12-23T00:17:08.000000Z", - to: "2023-06-07T07:45:11.000000Z", - transfer_types: ["exchange-outflow", "refund-campaign", "exchange-inflow", "topup", "refund-topup", "refund-payment", "refund-exchange-inflow", "refund-coupon", "refund-exchange-outflow", "use-coupon"] + "0de2a38c-c7bc-4b5d-be03-229e54b13590", + from: "2022-12-02T02:52:24.000000Z", + to: "2024-02-07T22:36:01.000000Z", + transfer_types: ["refund-payment", "refund-exchange-inflow", "refund-coupon", "exchange-inflow"] )) assert response.code != "400" end def test_get_customer_accounts_0 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3" )) assert response.code != "400" end def test_get_customer_accounts_1 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", - email: "Icm0Sp2Rlu@FOAx.com" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", + email: "p2RluFOAxJ@TKKl.com" )) assert response.code != "400" end def test_get_customer_accounts_2 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", - tel: "047-0551-2657", - email: "TcJlnsa7zu@y1tu.com" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", + tel: "00555265714", + email: "cJlnsa7zuy@1tus.com" )) assert response.code != "400" end def test_get_customer_accounts_3 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", external_id: "dw", tel: "071-69745487", email: "fKkMLwrBpO@RQ9L.com" @@ -380,7 +380,7 @@ def test_get_customer_accounts_3 def test_get_customer_accounts_4 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", status: "suspended", external_id: "lnKRmCd4n", tel: "045-981479", @@ -391,7 +391,7 @@ def test_get_customer_accounts_4 def test_get_customer_accounts_5 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", is_suspended: false, status: "active", external_id: "W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA", @@ -403,7 +403,7 @@ def test_get_customer_accounts_5 def test_get_customer_accounts_6 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", created_at_to: "2022-07-27T22:59:50.000000Z", is_suspended: true, status: "pre-closed", @@ -416,93 +416,93 @@ def test_get_customer_accounts_6 def test_get_customer_accounts_7 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", created_at_from: "2021-03-24T19:42:09.000000Z", - created_at_to: "2023-05-02T07:02:07.000000Z", + created_at_to: "2020-09-24T18:38:11.000000Z", is_suspended: true, - status: "pre-closed", - external_id: "XfPASw8jPQ0h", - tel: "062-07305693", - email: "xkUSOX0vTg@yFK1.com" + status: "active", + external_id: "PASw8jPQ0hMJ4nPgNJOUuVI3xkUSOX0vTgyFK1F", + tel: "002-97-992", + email: "exAarzlUll@rgsQ.com" )) assert response.code != "400" end def test_get_customer_accounts_8 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", - per_page: 6034, - created_at_from: "2022-02-08T11:59:01.000000Z", - created_at_to: "2021-10-26T00:50:23.000000Z", + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", + per_page: 6435, + created_at_from: "2022-12-18T13:21:30.000000Z", + created_at_to: "2022-10-28T02:45:21.000000Z", is_suspended: true, - status: "pre-closed", - external_id: "7pl9MWii2exAarzlUllr", - tel: "01-1105-7098", - email: "bZQuPYAKNL@vTyM.com" + status: "active", + external_id: "YeKIbZQuPYAKNLvTyMcIYl", + tel: "079352848", + email: "Pv9LO3MtPy@t1wT.com" )) assert response.code != "400" end def test_get_customer_accounts_9 response = $client.send(Pokepay::Request::GetCustomerAccounts.new( - "55543535-882b-44f5-9f30-80a440a9c1d9", - page: 7048, - per_page: 7330, - created_at_from: "2022-02-14T10:49:45.000000Z", - created_at_to: "2023-05-04T06:41:23.000000Z", - is_suspended: false, - status: "suspended", - external_id: "LoYSz5jRHNPv9LO3MtPyt1wTnktL8AYkBvD7caRgncONv", - tel: "085-5471-045", - email: "87oiAkJDB6@ZsUU.com" + "8fd6266d-a71c-4830-9cd3-391d4cc8aba3", + page: 8687, + per_page: 8494, + created_at_from: "2024-02-11T20:15:48.000000Z", + created_at_to: "2023-10-06T20:45:00.000000Z", + is_suspended: true, + status: "active", + external_id: "Yk", + tel: "004073-175", + email: "ncONv8Kje2@pUTW.com" )) assert response.code != "400" end def test_create_customer_account_0 response = $client.send(Pokepay::Request::CreateCustomerAccount.new( - "19fe1ff3-9f6b-4e97-91df-6f0f805413b6" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c" )) assert response.code != "400" end def test_create_customer_account_1 response = $client.send(Pokepay::Request::CreateCustomerAccount.new( - "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", - external_id: "umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + external_id: "e87oi" )) assert response.code != "400" end def test_create_customer_account_2 response = $client.send(Pokepay::Request::CreateCustomerAccount.new( - "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", - account_name: "e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7Mi", - external_id: "Gr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBC" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + account_name: "kJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXh", + external_id: "26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5" )) assert response.code != "400" end def test_create_customer_account_3 response = $client.send(Pokepay::Request::CreateCustomerAccount.new( - "19fe1ff3-9f6b-4e97-91df-6f0f805413b6", - user_name: "Ym4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH9e", - account_name: "mhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Z", - external_id: "po5LBba7yo5q8iS" + "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + user_name: "bgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH", + account_name: "emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdW", + external_id: "jKy82N74m" )) assert response.code != "400" end def test_get_shop_accounts_0 response = $client.send(Pokepay::Request::GetShopAccounts.new( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a" + "31ecb769-3144-4a83-95a2-b72406deb863" )) assert response.code != "400" end def test_get_shop_accounts_1 response = $client.send(Pokepay::Request::GetShopAccounts.new( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", + "31ecb769-3144-4a83-95a2-b72406deb863", is_suspended: false )) assert response.code != "400" @@ -510,18 +510,18 @@ def test_get_shop_accounts_1 def test_get_shop_accounts_2 response = $client.send(Pokepay::Request::GetShopAccounts.new( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", - created_at_to: "2023-10-10T07:01:36.000000Z", - is_suspended: false + "31ecb769-3144-4a83-95a2-b72406deb863", + created_at_to: "2020-05-06T02:02:55.000000Z", + is_suspended: true )) assert response.code != "400" end def test_get_shop_accounts_3 response = $client.send(Pokepay::Request::GetShopAccounts.new( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", - created_at_from: "2022-03-15T18:57:12.000000Z", - created_at_to: "2022-11-02T09:39:16.000000Z", + "31ecb769-3144-4a83-95a2-b72406deb863", + created_at_from: "2023-03-17T16:04:05.000000Z", + created_at_to: "2024-03-19T06:01:45.000000Z", is_suspended: false )) assert response.code != "400" @@ -529,10 +529,10 @@ def test_get_shop_accounts_3 def test_get_shop_accounts_4 response = $client.send(Pokepay::Request::GetShopAccounts.new( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", - per_page: 2047, - created_at_from: "2020-10-29T13:03:08.000000Z", - created_at_to: "2022-09-06T09:13:55.000000Z", + "31ecb769-3144-4a83-95a2-b72406deb863", + per_page: 4823, + created_at_from: "2023-07-22T08:29:37.000000Z", + created_at_to: "2020-07-29T13:51:14.000000Z", is_suspended: false )) assert response.code != "400" @@ -540,12 +540,12 @@ def test_get_shop_accounts_4 def test_get_shop_accounts_5 response = $client.send(Pokepay::Request::GetShopAccounts.new( - "ca2616e9-5ed4-477c-bcc2-cc53b62f225a", - page: 9914, - per_page: 9044, - created_at_from: "2023-03-04T08:24:04.000000Z", - created_at_to: "2021-01-14T14:41:40.000000Z", - is_suspended: false + "31ecb769-3144-4a83-95a2-b72406deb863", + page: 4360, + per_page: 8484, + created_at_from: "2022-04-08T21:42:45.000000Z", + created_at_to: "2023-03-08T17:36:02.000000Z", + is_suspended: true )) assert response.code != "400" end @@ -565,37 +565,37 @@ def test_list_bills_1 def test_list_bills_2 response = $client.send(Pokepay::Request::ListBills.new( - upper_limit_amount: 8374, - is_disabled: true + upper_limit_amount: 3460, + is_disabled: false )) assert response.code != "400" end def test_list_bills_3 response = $client.send(Pokepay::Request::ListBills.new( - lower_limit_amount: 414, - upper_limit_amount: 3796, - is_disabled: false + lower_limit_amount: 3003, + upper_limit_amount: 2795, + is_disabled: true )) assert response.code != "400" end def test_list_bills_4 response = $client.send(Pokepay::Request::ListBills.new( - shop_id: "db454cdb-2563-4ac8-b0e7-d118290fa6e1", - lower_limit_amount: 937, - upper_limit_amount: 3109, - is_disabled: true + shop_id: "a9696cec-9a6a-4ba0-b1b1-beff32bea9d1", + lower_limit_amount: 6740, + upper_limit_amount: 874, + is_disabled: false )) assert response.code != "400" end def test_list_bills_5 response = $client.send(Pokepay::Request::ListBills.new( - shop_name: "j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYY", - shop_id: "94cc5713-2995-4c41-89a2-4575114060c5", - lower_limit_amount: 3553, - upper_limit_amount: 5130, + shop_name: "kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kX", + shop_id: "52fbc519-17e0-450f-a1fb-f1be62dd6c3d", + lower_limit_amount: 6587, + upper_limit_amount: 4324, is_disabled: true )) assert response.code != "400" @@ -603,11 +603,11 @@ def test_list_bills_5 def test_list_bills_6 response = $client.send(Pokepay::Request::ListBills.new( - created_to: "2023-10-09T22:21:55.000000Z", - shop_name: "yo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4", - shop_id: "874fa5ed-b7f0-49db-8954-3ad99a1b5897", - lower_limit_amount: 9824, - upper_limit_amount: 8975, + created_to: "2024-04-18T15:33:35.000000Z", + shop_name: "stCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25u", + shop_id: "8767767b-8976-455e-afdf-74728b146513", + lower_limit_amount: 6765, + upper_limit_amount: 7751, is_disabled: true )) assert response.code != "400" @@ -615,12 +615,12 @@ def test_list_bills_6 def test_list_bills_7 response = $client.send(Pokepay::Request::ListBills.new( - created_from: "2020-04-02T18:45:34.000000Z", - created_to: "2021-04-23T15:02:20.000000Z", - shop_name: "PcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCX", - shop_id: "fdbe7b8b-788f-4c00-a578-5635ad054457", - lower_limit_amount: 2310, - upper_limit_amount: 5672, + created_from: "2022-07-30T05:48:44.000000Z", + created_to: "2020-11-03T12:14:03.000000Z", + shop_name: "GKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q", + shop_id: "3752130a-b436-4bf1-a9f6-e7809624e470", + lower_limit_amount: 452, + upper_limit_amount: 5404, is_disabled: false )) assert response.code != "400" @@ -628,44 +628,44 @@ def test_list_bills_7 def test_list_bills_8 response = $client.send(Pokepay::Request::ListBills.new( - description: "s7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cp", - created_from: "2020-08-28T22:18:38.000000Z", - created_to: "2022-11-20T18:31:07.000000Z", - shop_name: "GDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f", - shop_id: "f11af890-deb6-4b64-a11b-8551a0684435", - lower_limit_amount: 7259, - upper_limit_amount: 2726, - is_disabled: true + description: "ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O", + created_from: "2022-03-17T01:45:50.000000Z", + created_to: "2023-10-26T09:45:48.000000Z", + shop_name: "zG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH", + shop_id: "383b5f1b-2538-4659-8caa-a2a88e28a3f6", + lower_limit_amount: 1391, + upper_limit_amount: 6869, + is_disabled: false )) assert response.code != "400" end def test_list_bills_9 response = $client.send(Pokepay::Request::ListBills.new( - organization_code: "9-7z-8w3g4i0s-qc68-o8Z-X1I", - description: "0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKy", - created_from: "2022-08-08T09:36:18.000000Z", - created_to: "2021-09-29T13:05:19.000000Z", - shop_name: "jnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8Ler", - shop_id: "cdeffdd8-4f1b-4bd1-9f2d-70233a2b1ca4", - lower_limit_amount: 3165, - upper_limit_amount: 4670, - is_disabled: true + organization_code: "H54G51-a8", + description: "7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMI", + created_from: "2022-05-28T22:33:06.000000Z", + created_to: "2023-06-03T18:28:37.000000Z", + shop_name: "OIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3om", + shop_id: "36462a8a-4f44-430f-8239-ccb25f087860", + lower_limit_amount: 1266, + upper_limit_amount: 9333, + is_disabled: false )) assert response.code != "400" end def test_list_bills_10 response = $client.send(Pokepay::Request::ListBills.new( - private_money_id: "eac43b3c-974c-496a-8638-e118119cc1d1", - organization_code: "r---Y8Go7-", - description: "CMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB", - created_from: "2023-06-27T03:44:29.000000Z", - created_to: "2023-09-25T17:59:46.000000Z", - shop_name: "2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSI", - shop_id: "08ce28e1-09fb-46f8-9d2f-f55ae957baa9", - lower_limit_amount: 2816, - upper_limit_amount: 5711, + private_money_id: "f5b45ff1-ac93-415f-ac92-7896ea3e7ec0", + organization_code: "-sx-d8l6i---y--o-z6T4-Jv-", + description: "AI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T", + created_from: "2022-06-04T02:02:29.000000Z", + created_to: "2023-05-31T06:26:58.000000Z", + shop_name: "dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6ab", + shop_id: "bebe6bc5-9a0c-4e91-bc63-a16322289586", + lower_limit_amount: 8916, + upper_limit_amount: 8661, is_disabled: false )) assert response.code != "400" @@ -673,34 +673,34 @@ def test_list_bills_10 def test_list_bills_11 response = $client.send(Pokepay::Request::ListBills.new( - bill_id: "SLz", - private_money_id: "db39cdc7-1a93-4896-b321-119f13b4e6aa", - organization_code: "r1--l0PC2-YF-u9-1n-N-hH17XZ7e", - description: "C9RfQiSpTWZrd0hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN5", - created_from: "2023-11-11T11:34:52.000000Z", - created_to: "2020-04-08T02:23:53.000000Z", - shop_name: "s59xI", - shop_id: "fcb6a957-11c7-4b2c-87bf-1702d83dcc75", - lower_limit_amount: 4067, - upper_limit_amount: 7962, - is_disabled: true + bill_id: "FU", + private_money_id: "ad7f612d-fe47-4a83-b946-6282f4b596ed", + organization_code: "-1r1UJny-F-k1eAp-f", + description: "2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArT", + created_from: "2021-05-21T08:49:11.000000Z", + created_to: "2022-10-19T13:23:19.000000Z", + shop_name: "UPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOe", + shop_id: "36ce0ac1-3ca9-45ac-b9b8-297899dcacd9", + lower_limit_amount: 4246, + upper_limit_amount: 3047, + is_disabled: false )) assert response.code != "400" end def test_list_bills_12 response = $client.send(Pokepay::Request::ListBills.new( - per_page: 7637, - bill_id: "FFrrXyLyM", - private_money_id: "967b698e-4ccf-4173-a274-e440aeed4465", - organization_code: "e-rUFv-xFCvH54G51-", - description: "t7Q5BMcC1v73v60y8DMLWrlnr061xWZsz", - created_from: "2020-09-12T06:07:45.000000Z", - created_to: "2022-03-16T12:50:50.000000Z", - shop_name: "ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7", - shop_id: "851944d1-637b-4de0-a2cd-9d8271642a8f", - lower_limit_amount: 5132, - upper_limit_amount: 1439, + per_page: 4312, + bill_id: "6nFdH", + private_money_id: "dfc2d6dd-6c04-413c-809a-54a40747397a", + organization_code: "fqF5--9BUNoWz1y8-I31Stmp7-zr", + description: "3rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXm", + created_from: "2022-11-30T01:02:48.000000Z", + created_to: "2021-07-06T18:23:42.000000Z", + shop_name: "u8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm", + shop_id: "236ba3b2-ad10-4e01-bd48-5df91840631e", + lower_limit_amount: 6685, + upper_limit_amount: 4288, is_disabled: false )) assert response.code != "400" @@ -708,60 +708,60 @@ def test_list_bills_12 def test_list_bills_13 response = $client.send(Pokepay::Request::ListBills.new( - page: 7626, - per_page: 7612, - bill_id: "bzCAj1GsSv", - private_money_id: "c24c2166-3189-461c-987e-f204c0bb4a9f", - organization_code: "T1--v-G724-7qs-0fqD1J46-L", - description: "z7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcYeFwcP7ZmLygXYRtjxN2aIco6xNkWo0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yot", - created_from: "2020-03-03T04:15:12.000000Z", - created_to: "2022-02-09T13:42:21.000000Z", - shop_name: "hlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9", - shop_id: "028de0f4-4a0b-499c-9550-af757adb9f62", - lower_limit_amount: 6879, - upper_limit_amount: 3373, - is_disabled: false + page: 1550, + per_page: 1907, + bill_id: "BRsFTyEvn", + private_money_id: "0e381325-5265-4baf-b762-9e593c2117e4", + organization_code: "yB-1X-my6laX6C", + description: "DQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUh", + created_from: "2020-11-25T06:41:43.000000Z", + created_to: "2021-05-02T05:10:08.000000Z", + shop_name: "OiwEvovxL7L6kZ3KaNu", + shop_id: "e22909e2-152c-4d31-9bfa-1c8cc33dc177", + lower_limit_amount: 8730, + upper_limit_amount: 4222, + is_disabled: true )) assert response.code != "400" end def test_create_bill_0 response = $client.send(Pokepay::Request::CreateBill.new( - "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", - "460688ba-b35d-4d0f-af63-7640929518b5" + "b04c40e4-fadb-4387-88af-a629df89a3a8", + "17fe188d-4fe7-475d-be86-91ea6a7d38b8" )) assert response.code != "400" end def test_create_bill_1 response = $client.send(Pokepay::Request::CreateBill.new( - "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", - "460688ba-b35d-4d0f-af63-7640929518b5", - description: "HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgS" + "b04c40e4-fadb-4387-88af-a629df89a3a8", + "17fe188d-4fe7-475d-be86-91ea6a7d38b8", + description: "ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDyHKg7jf7" )) assert response.code != "400" end def test_create_bill_2 response = $client.send(Pokepay::Request::CreateBill.new( - "0c713354-c78c-4e7c-9a93-bcdc32aa3bd5", - "460688ba-b35d-4d0f-af63-7640929518b5", - amount: 8640.0, - description: "pyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55W" + "b04c40e4-fadb-4387-88af-a629df89a3a8", + "17fe188d-4fe7-475d-be86-91ea6a7d38b8", + amount: 5972.0, + description: "BDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7L" )) assert response.code != "400" end def test_update_bill_0 response = $client.send(Pokepay::Request::UpdateBill.new( - "7b13563f-52a4-4ad9-a683-55c84cee1a90" + "ccf730fc-5278-4019-a1e1-30862fbaa806" )) assert response.code != "400" end def test_update_bill_1 response = $client.send(Pokepay::Request::UpdateBill.new( - "7b13563f-52a4-4ad9-a683-55c84cee1a90", + "ccf730fc-5278-4019-a1e1-30862fbaa806", is_disabled: true )) assert response.code != "400" @@ -769,8 +769,8 @@ def test_update_bill_1 def test_update_bill_2 response = $client.send(Pokepay::Request::UpdateBill.new( - "7b13563f-52a4-4ad9-a683-55c84cee1a90", - description: "vN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFW", + "ccf730fc-5278-4019-a1e1-30862fbaa806", + description: "sEiZ4h1kUtLESZUqCMHUv6WI9Wl", is_disabled: true )) assert response.code != "400" @@ -778,471 +778,471 @@ def test_update_bill_2 def test_update_bill_3 response = $client.send(Pokepay::Request::UpdateBill.new( - "7b13563f-52a4-4ad9-a683-55c84cee1a90", - amount: 4820.0, - description: "1hvVt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2p", - is_disabled: true + "ccf730fc-5278-4019-a1e1-30862fbaa806", + amount: 1228.0, + description: "AjFFVtovIA3w7if4YoZJ6x", + is_disabled: false )) assert response.code != "400" end - def test_create_check_0 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 8380.0 + def test_list_checks_0 + response = $client.send(Pokepay::Request::ListChecks.new( )) assert response.code != "400" end - def test_create_check_1 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 6406.0, - description: "36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBDQiRCyVT" + def test_list_checks_1 + response = $client.send(Pokepay::Request::ListChecks.new( + is_disabled: true )) assert response.code != "400" end - def test_create_check_2 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 8734.0, + def test_list_checks_2 + response = $client.send(Pokepay::Request::ListChecks.new( is_onetime: true, - description: "3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1" + is_disabled: true )) assert response.code != "400" end - def test_create_check_3 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 7574.0, - usage_limit: 138, - is_onetime: true, - description: "jZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO" + def test_list_checks_3 + response = $client.send(Pokepay::Request::ListChecks.new( + description: "p4uCN", + is_onetime: false, + is_disabled: true )) assert response.code != "400" end - def test_create_check_4 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 7859.0, - expires_at: "2023-05-07T23:01:35.000000Z", - usage_limit: 3057, - is_onetime: true, - description: "SQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJf" + def test_list_checks_4 + response = $client.send(Pokepay::Request::ListChecks.new( + issuer_shop_id: "20a1aaae-c59c-405a-bc61-8e88941d74dc", + description: "gRp11i", + is_onetime: false, + is_disabled: false )) assert response.code != "400" end - def test_create_check_5 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 7124.0, - point_expires_at: "2023-05-07T19:04:42.000000Z", - expires_at: "2021-04-03T08:49:41.000000Z", - usage_limit: 5919, + def test_list_checks_5 + response = $client.send(Pokepay::Request::ListChecks.new( + created_to: "2021-09-27T23:36:37.000000Z", + issuer_shop_id: "82f70ddc-46a4-478d-a3f2-6f6617a74dbb", + description: "LoN8ZP7287", is_onetime: true, - description: "v94bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8" + is_disabled: false )) assert response.code != "400" end - def test_create_check_6 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 5070.0, - point_expires_in_days: 6716, - point_expires_at: "2023-03-31T08:24:20.000000Z", - expires_at: "2020-11-28T02:54:40.000000Z", - usage_limit: 2977, - is_onetime: false, - description: "ZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0nsRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6By" + def test_list_checks_6 + response = $client.send(Pokepay::Request::ListChecks.new( + created_from: "2021-10-17T11:29:16.000000Z", + created_to: "2023-06-06T17:55:10.000000Z", + issuer_shop_id: "a1c57406-4bca-40aa-a11a-8bef6d450e59", + description: "b", + is_onetime: true, + is_disabled: false )) assert response.code != "400" end - def test_create_check_7 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 2132.0, - bear_point_account: "564f0633-c088-426c-bfdf-b12916570056", - point_expires_in_days: 4947, - point_expires_at: "2024-03-06T17:39:29.000000Z", - expires_at: "2024-01-16T03:09:56.000000Z", - usage_limit: 8911, + def test_list_checks_7 + response = $client.send(Pokepay::Request::ListChecks.new( + expires_to: "2020-04-22T20:45:39.000000Z", + created_from: "2020-04-25T15:49:04.000000Z", + created_to: "2020-11-12T10:09:58.000000Z", + issuer_shop_id: "bb634523-69e0-4331-9746-7c6380cd7193", + description: "Yx", is_onetime: true, - description: "23WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6X" + is_disabled: false )) assert response.code != "400" end - def test_create_check_8 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 2943.0, - point_amount: 6616.0 + def test_list_checks_8 + response = $client.send(Pokepay::Request::ListChecks.new( + expires_from: "2023-01-15T12:33:00.000000Z", + expires_to: "2021-04-29T11:14:49.000000Z", + created_from: "2021-02-14T00:09:23.000000Z", + created_to: "2021-10-07T05:07:51.000000Z", + issuer_shop_id: "e26b7637-6992-459e-8b81-5cb2e501e9c2", + description: "oQEom", + is_onetime: true, + is_disabled: false )) assert response.code != "400" end - def test_create_check_9 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 4440.0, - point_amount: 2094.0, - description: "3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNC" + def test_list_checks_9 + response = $client.send(Pokepay::Request::ListChecks.new( + organization_code: "dvzxKVxdoit0nsRdkY", + expires_from: "2020-01-23T06:56:05.000000Z", + expires_to: "2023-03-30T03:17:10.000000Z", + created_from: "2020-12-30T16:38:46.000000Z", + created_to: "2023-11-13T00:58:08.000000Z", + issuer_shop_id: "5d298ea4-fd3c-4309-89d2-8379ec4de414", + description: "9", + is_onetime: true, + is_disabled: true )) assert response.code != "400" end - def test_create_check_10 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 1341.0, - point_amount: 3944.0, + def test_list_checks_10 + response = $client.send(Pokepay::Request::ListChecks.new( + private_money_id: "d8cb2007-6135-47c0-be75-0fcb07e82708", + organization_code: "Yj6aDVb3qDkr4zF", + expires_from: "2021-12-19T15:34:12.000000Z", + expires_to: "2020-04-20T07:38:28.000000Z", + created_from: "2021-09-27T13:41:10.000000Z", + created_to: "2021-04-27T06:58:11.000000Z", + issuer_shop_id: "3d3dada0-1cdd-4e37-95f4-09b46e4e81ce", + description: "9wkd", is_onetime: false, - description: "ERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOE" + is_disabled: false )) assert response.code != "400" end - def test_create_check_11 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 1020.0, - point_amount: 7368.0, - usage_limit: 6710, + def test_list_checks_11 + response = $client.send(Pokepay::Request::ListChecks.new( + per_page: 6158, + private_money_id: "d288eccf-ea05-46db-98f7-1ee90733c2fe", + organization_code: "DpfXuzoNbRpuKefj", + expires_from: "2020-07-05T02:08:05.000000Z", + expires_to: "2021-12-01T17:11:21.000000Z", + created_from: "2024-02-14T04:50:02.000000Z", + created_to: "2021-07-17T00:24:56.000000Z", + issuer_shop_id: "1e198140-f7b2-4c58-a0ef-216e0e65db05", + description: "zQcO5QE", is_onetime: false, - description: "NdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzN" + is_disabled: false )) assert response.code != "400" end - def test_create_check_12 - response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 5196.0, - point_amount: 8782.0, - expires_at: "2023-04-24T17:55:07.000000Z", - usage_limit: 3819, - is_onetime: true, - description: "oAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZ" + def test_list_checks_12 + response = $client.send(Pokepay::Request::ListChecks.new( + page: 750, + per_page: 8968, + private_money_id: "d783198e-8b81-42d5-9e6d-abfe2754f0ad", + organization_code: "3I2kFchNQksZB6ByT3lVRQ7O", + expires_from: "2021-04-08T07:08:50.000000Z", + expires_to: "2023-04-27T07:09:39.000000Z", + created_from: "2020-07-02T07:20:55.000000Z", + created_to: "2022-03-16T05:43:50.000000Z", + issuer_shop_id: "31ef2546-9fba-4c8e-a515-f5a485b79c21", + description: "X", + is_onetime: false, + is_disabled: true )) assert response.code != "400" end - def test_create_check_13 + def test_create_check_0 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 5465.0, - point_amount: 9473.0, - point_expires_at: "2023-01-06T00:46:39.000000Z", - expires_at: "2023-12-11T07:46:43.000000Z", - usage_limit: 1602, - is_onetime: true, - description: "tgwRL" + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 92.0 )) assert response.code != "400" end - def test_create_check_14 + def test_create_check_1 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 778.0, - point_amount: 5777.0, - point_expires_in_days: 5743, - point_expires_at: "2020-09-11T08:09:37.000000Z", - expires_at: "2020-06-24T07:15:37.000000Z", - usage_limit: 6025, - is_onetime: true, - description: "1" + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 3686.0, + description: "eWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc" )) assert response.code != "400" end - def test_create_check_15 + def test_create_check_2 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - money_amount: 3271.0, - point_amount: 1239.0, - bear_point_account: "d98f9df1-5a7b-4001-a67e-7d325bfa80fc", - point_expires_in_days: 1933, - point_expires_at: "2022-10-06T14:18:40.000000Z", - expires_at: "2021-10-09T18:26:18.000000Z", - usage_limit: 2848, - is_onetime: true, - description: "amqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHs" + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 7821.0, + is_onetime: false, + description: "6XSXXM3Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS405" )) assert response.code != "400" end - def test_create_check_16 + def test_create_check_3 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 4728.0 + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 5668.0, + usage_limit: 933, + is_onetime: true, + description: "hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrf" )) assert response.code != "400" end - def test_create_check_17 + def test_create_check_4 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 4232.0, - description: "1kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvR" + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 6792.0, + expires_at: "2020-05-28T04:42:11.000000Z", + usage_limit: 6316, + is_onetime: false, + description: "hpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKx" )) assert response.code != "400" end - def test_create_check_18 + def test_create_check_5 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 5863.0, + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 1620.0, + point_expires_at: "2022-01-10T06:42:11.000000Z", + expires_at: "2023-04-07T23:24:13.000000Z", + usage_limit: 4667, is_onetime: true, - description: "fjTir1eeHpnGAvFN5uVHKI7mM3plgJR5" + description: "CMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cD" )) assert response.code != "400" end - def test_create_check_19 + def test_create_check_6 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 8844.0, - usage_limit: 6043, + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 3364.0, + point_expires_in_days: 3294, + point_expires_at: "2023-11-24T09:07:27.000000Z", + expires_at: "2023-06-27T20:40:34.000000Z", + usage_limit: 9278, is_onetime: false, - description: "wzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0" + description: "EvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j" )) assert response.code != "400" end - def test_create_check_20 + def test_create_check_7 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 5779.0, - expires_at: "2021-08-19T06:24:40.000000Z", - usage_limit: 6812, + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 3506.0, + bear_point_account: "592eabea-73ff-4333-a5b3-cb71b4415516", + point_expires_in_days: 6206, + point_expires_at: "2024-02-13T11:48:50.000000Z", + expires_at: "2021-03-20T16:28:36.000000Z", + usage_limit: 8762, is_onetime: false, - description: "KDvZ2PuoFKU33PYYZTEIyRn" + description: "N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0" )) assert response.code != "400" end - def test_create_check_21 + def test_create_check_8 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 7103.0, - point_expires_at: "2022-04-14T03:54:12.000000Z", - expires_at: "2023-11-18T08:53:29.000000Z", - usage_limit: 8965, - is_onetime: false, - description: "mm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLm" + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 3565.0, + point_amount: 2513.0 )) assert response.code != "400" end - def test_create_check_22 + def test_create_check_9 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 9717.0, - point_expires_in_days: 8378, - point_expires_at: "2022-01-29T08:19:17.000000Z", - expires_at: "2020-01-09T22:54:37.000000Z", - usage_limit: 2484, - is_onetime: false, - description: "TQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvg" + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 1926.0, + point_amount: 1737.0, + description: "1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9" )) assert response.code != "400" end - def test_create_check_23 + def test_create_check_10 response = $client.send(Pokepay::Request::CreateCheck.new( - "daf2d002-f16e-4d5c-81f5-532f11a3f3f2", - point_amount: 5112.0, - bear_point_account: "3b5cf612-fb24-4648-ba09-81a28c59f07a", - point_expires_in_days: 2879, - point_expires_at: "2020-05-16T22:29:02.000000Z", - expires_at: "2020-03-08T04:01:31.000000Z", - usage_limit: 8140, - is_onetime: false, - description: "gPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnf" + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 8435.0, + point_amount: 3156.0, + is_onetime: true, + description: "jbq8Wo22UU1er3T1gBtfr20CiDsCwy" )) assert response.code != "400" end - def test_list_checks_0 - response = $client.send(Pokepay::Request::ListChecks.new( + def test_create_check_11 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 1356.0, + point_amount: 7767.0, + usage_limit: 6325, + is_onetime: false, + description: "EeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZ" )) assert response.code != "400" end - def test_list_checks_1 - response = $client.send(Pokepay::Request::ListChecks.new( - is_disabled: false + def test_create_check_12 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 5701.0, + point_amount: 3356.0, + expires_at: "2024-02-12T02:13:34.000000Z", + usage_limit: 4256, + is_onetime: true, + description: "7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJy" )) assert response.code != "400" end - def test_list_checks_2 - response = $client.send(Pokepay::Request::ListChecks.new( - is_onetime: true, - is_disabled: false + def test_create_check_13 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 1018.0, + point_amount: 9142.0, + point_expires_at: "2022-11-05T11:38:29.000000Z", + expires_at: "2024-01-30T06:00:19.000000Z", + usage_limit: 3496, + is_onetime: false, + description: "npU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCV" )) assert response.code != "400" end - def test_list_checks_3 - response = $client.send(Pokepay::Request::ListChecks.new( - description: "HR", - is_onetime: false, - is_disabled: false + def test_create_check_14 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 2682.0, + point_amount: 1701.0, + point_expires_in_days: 6901, + point_expires_at: "2021-02-13T20:25:17.000000Z", + expires_at: "2022-12-08T17:28:30.000000Z", + usage_limit: 4228, + is_onetime: true, + description: "lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4" )) assert response.code != "400" end - def test_list_checks_4 - response = $client.send(Pokepay::Request::ListChecks.new( - issuer_shop_id: "c09173a9-38c4-47ae-a6cd-1dbf767be412", - description: "3LCAS", + def test_create_check_15 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + money_amount: 9325.0, + point_amount: 8503.0, + bear_point_account: "c707c6ee-4a6f-4837-b7aa-cd8ad365debd", + point_expires_in_days: 2972, + point_expires_at: "2023-05-24T11:08:22.000000Z", + expires_at: "2020-03-06T02:08:38.000000Z", + usage_limit: 2130, is_onetime: true, - is_disabled: false + description: "AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3N5ZGrmU0unMp" )) assert response.code != "400" end - def test_list_checks_5 - response = $client.send(Pokepay::Request::ListChecks.new( - created_to: "2020-11-29T18:13:57.000000Z", - issuer_shop_id: "a95626e0-cc96-42e5-98b9-08e292a990d9", - description: "sHOG", - is_onetime: true, - is_disabled: true + def test_create_check_16 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + point_amount: 6772.0 )) assert response.code != "400" end - def test_list_checks_6 - response = $client.send(Pokepay::Request::ListChecks.new( - created_from: "2021-09-30T14:14:20.000000Z", - created_to: "2023-01-10T03:03:49.000000Z", - issuer_shop_id: "3ff659a5-a0b3-4a2a-8d85-c516ed220bfc", - description: "i4", - is_onetime: true, - is_disabled: false + def test_create_check_17 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + point_amount: 37.0, + description: "oBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tj" )) assert response.code != "400" end - def test_list_checks_7 - response = $client.send(Pokepay::Request::ListChecks.new( - expires_to: "2023-04-26T10:51:35.000000Z", - created_from: "2023-09-27T03:56:30.000000Z", - created_to: "2022-05-30T20:39:11.000000Z", - issuer_shop_id: "a83d2837-4b37-41aa-8abd-0b9bf6620f26", - description: "RN8AasC", + def test_create_check_18 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + point_amount: 5652.0, is_onetime: false, - is_disabled: true + description: "xBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSK" )) assert response.code != "400" end - def test_list_checks_8 - response = $client.send(Pokepay::Request::ListChecks.new( - expires_from: "2020-07-04T15:44:08.000000Z", - expires_to: "2023-04-23T18:30:13.000000Z", - created_from: "2020-12-04T19:50:30.000000Z", - created_to: "2022-06-14T21:14:35.000000Z", - issuer_shop_id: "c09b2bad-6cb6-49e7-addd-0a6e4351aa9f", - description: "uHFpFsNPJm", + def test_create_check_19 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + point_amount: 36.0, + usage_limit: 7320, is_onetime: true, - is_disabled: false + description: "cJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAud" )) assert response.code != "400" end - def test_list_checks_9 - response = $client.send(Pokepay::Request::ListChecks.new( - organization_code: "uH1GHYOOmiUvKwy", - expires_from: "2023-09-04T23:43:12.000000Z", - expires_to: "2022-06-02T14:38:33.000000Z", - created_from: "2023-01-01T15:46:03.000000Z", - created_to: "2020-06-18T01:18:09.000000Z", - issuer_shop_id: "6f04fcd9-d253-4bac-9253-25ef4e15462b", - description: "K", + def test_create_check_20 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + point_amount: 2603.0, + expires_at: "2020-06-13T04:17:12.000000Z", + usage_limit: 9627, is_onetime: true, - is_disabled: false + description: "hALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem" )) assert response.code != "400" end - def test_list_checks_10 - response = $client.send(Pokepay::Request::ListChecks.new( - private_money_id: "055fb6ce-ce08-4e0a-b55a-3c9826318e47", - organization_code: "mU0unMptspEioBBqGcJ", - expires_from: "2023-12-14T08:42:56.000000Z", - expires_to: "2022-11-30T14:16:44.000000Z", - created_from: "2021-08-24T14:05:27.000000Z", - created_to: "2021-03-13T03:07:07.000000Z", - issuer_shop_id: "0f38b0e1-af01-4fd8-a3e0-a8928df81f84", - description: "pDTPRH", - is_onetime: true, - is_disabled: false + def test_create_check_21 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + point_amount: 9987.0, + point_expires_at: "2023-06-02T07:28:51.000000Z", + expires_at: "2020-06-09T13:42:21.000000Z", + usage_limit: 2273, + is_onetime: false, + description: "Pio5o0q9x0iUy" )) assert response.code != "400" end - def test_list_checks_11 - response = $client.send(Pokepay::Request::ListChecks.new( - per_page: 3853, - private_money_id: "899befc5-fe6c-4be0-ac9b-ccde0397b840", - organization_code: "NQrvWUnk17KWA", - expires_from: "2022-08-12T19:43:37.000000Z", - expires_to: "2021-07-13T02:37:35.000000Z", - created_from: "2020-04-20T01:38:22.000000Z", - created_to: "2021-07-31T11:29:45.000000Z", - issuer_shop_id: "f33264e9-eec6-4bc9-8e47-e2e01c125c48", - description: "shpxz5S2", + def test_create_check_22 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + point_amount: 2690.0, + point_expires_in_days: 5158, + point_expires_at: "2020-02-18T23:17:42.000000Z", + expires_at: "2021-12-16T22:15:37.000000Z", + usage_limit: 6374, is_onetime: true, - is_disabled: true + description: "PlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRM" )) assert response.code != "400" end - def test_list_checks_12 - response = $client.send(Pokepay::Request::ListChecks.new( - page: 2202, - per_page: 4497, - private_money_id: "03afc5f2-3a5d-44a1-b485-0daea0b50c43", - organization_code: "ar2DsC6IO", - expires_from: "2022-05-13T22:07:21.000000Z", - expires_to: "2021-11-23T07:06:20.000000Z", - created_from: "2023-05-22T07:06:37.000000Z", - created_to: "2021-05-19T00:39:45.000000Z", - issuer_shop_id: "deb706e0-5aaf-4db3-98da-7543ffb37461", - description: "lZmMT5mAF", - is_onetime: true, - is_disabled: true + def test_create_check_23 + response = $client.send(Pokepay::Request::CreateCheck.new( + "00421e29-c9f3-48c1-8493-d40683d3e1aa", + point_amount: 4950.0, + bear_point_account: "58a67821-8f38-45ec-96a7-138739d6658c", + point_expires_in_days: 5220, + point_expires_at: "2021-04-14T11:48:16.000000Z", + expires_at: "2022-10-30T21:05:03.000000Z", + usage_limit: 6991, + is_onetime: false, + description: "GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7" )) assert response.code != "400" end def test_get_check_0 response = $client.send(Pokepay::Request::GetCheck.new( - "8893f8dc-e441-4a3d-bdc9-d19c00308720" + "0034fe52-18bf-4e2a-b971-157912e7e66a" )) assert response.code != "400" end def test_update_check_0 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29" + "d869f644-0851-4143-b649-08190f207281" )) assert response.code != "400" end def test_update_check_1 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", + "d869f644-0851-4143-b649-08190f207281", is_disabled: false )) assert response.code != "400" @@ -1250,18 +1250,18 @@ def test_update_check_1 def test_update_check_2 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - bear_point_account: "877b6ac5-dc4f-457a-9802-506ec699da52", - is_disabled: false + "d869f644-0851-4143-b649-08190f207281", + bear_point_account: "eb42c91c-e73f-40d6-834c-99ef543c85e8", + is_disabled: true )) assert response.code != "400" end def test_update_check_3 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - point_expires_in_days: 8804, - bear_point_account: "783b74e2-59cc-40cf-b329-934d2f2b98e9", + "d869f644-0851-4143-b649-08190f207281", + point_expires_in_days: 4792, + bear_point_account: "cc3833d9-2dae-41d8-b74c-15fcfeb77149", is_disabled: true )) assert response.code != "400" @@ -1269,10 +1269,10 @@ def test_update_check_3 def test_update_check_4 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - point_expires_at: "2021-05-12T14:03:42.000000Z", - point_expires_in_days: 6709, - bear_point_account: "dcab8474-6c03-4cad-a76a-bf096ff41614", + "d869f644-0851-4143-b649-08190f207281", + point_expires_at: "2024-02-05T18:41:14.000000Z", + point_expires_in_days: 9760, + bear_point_account: "14e25200-003a-483f-be1b-60f6edcaf1fd", is_disabled: false )) assert response.code != "400" @@ -1280,24 +1280,24 @@ def test_update_check_4 def test_update_check_5 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - expires_at: "2022-07-26T06:58:09.000000Z", - point_expires_at: "2021-02-21T06:43:04.000000Z", - point_expires_in_days: 9667, - bear_point_account: "260816a3-b8c1-4552-9cae-d24f7d536370", - is_disabled: true + "d869f644-0851-4143-b649-08190f207281", + expires_at: "2022-07-11T01:08:29.000000Z", + point_expires_at: "2020-02-24T21:12:04.000000Z", + point_expires_in_days: 3017, + bear_point_account: "93da2485-558e-44c9-84df-dd48a2f5772e", + is_disabled: false )) assert response.code != "400" end def test_update_check_6 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - usage_limit: 2172, - expires_at: "2022-12-08T17:40:49.000000Z", - point_expires_at: "2022-10-26T23:49:24.000000Z", - point_expires_in_days: 2345, - bear_point_account: "462b5b24-ccd2-465f-a5e3-3830ca957fea", + "d869f644-0851-4143-b649-08190f207281", + usage_limit: 3789, + expires_at: "2020-06-23T21:23:01.000000Z", + point_expires_at: "2020-01-21T20:05:30.000000Z", + point_expires_in_days: 7264, + bear_point_account: "dbd1aeae-be97-4976-ab1e-5350b051a77b", is_disabled: false )) assert response.code != "400" @@ -1305,44 +1305,44 @@ def test_update_check_6 def test_update_check_7 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - is_onetime: false, - usage_limit: 1372, - expires_at: "2021-09-09T13:14:33.000000Z", - point_expires_at: "2021-12-26T21:39:57.000000Z", - point_expires_in_days: 3119, - bear_point_account: "861533ef-cd50-464e-a8eb-a55d2caf6f01", - is_disabled: true + "d869f644-0851-4143-b649-08190f207281", + is_onetime: true, + usage_limit: 9205, + expires_at: "2024-04-16T08:25:47.000000Z", + point_expires_at: "2020-04-23T09:18:59.000000Z", + point_expires_in_days: 8780, + bear_point_account: "0230f239-3798-4121-aaba-20653712a6e8", + is_disabled: false )) assert response.code != "400" end def test_update_check_8 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - description: "FwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ", - is_onetime: false, - usage_limit: 9059, - expires_at: "2021-10-07T02:28:08.000000Z", - point_expires_at: "2021-04-24T12:53:16.000000Z", - point_expires_in_days: 3008, - bear_point_account: "0e137a4b-5f86-48b9-9f04-9d3aaee341d6", - is_disabled: true + "d869f644-0851-4143-b649-08190f207281", + description: "FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLyZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6", + is_onetime: true, + usage_limit: 1393, + expires_at: "2023-04-03T19:01:29.000000Z", + point_expires_at: "2022-09-18T18:20:04.000000Z", + point_expires_in_days: 143, + bear_point_account: "9a14a861-462c-46e0-9b1e-8d83b2c7873d", + is_disabled: false )) assert response.code != "400" end def test_update_check_9 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - point_amount: 3447.0, - description: "N6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51", - is_onetime: true, - usage_limit: 1057, - expires_at: "2020-12-19T17:53:33.000000Z", - point_expires_at: "2023-07-04T09:11:48.000000Z", - point_expires_in_days: 3649, - bear_point_account: "591280a7-f0a7-40d5-b028-aa35a4710bd6", + "d869f644-0851-4143-b649-08190f207281", + point_amount: 7443.0, + description: "H11", + is_onetime: false, + usage_limit: 9434, + expires_at: "2023-04-04T19:27:17.000000Z", + point_expires_at: "2020-02-28T16:37:53.000000Z", + point_expires_in_days: 8425, + bear_point_account: "f0070bd7-9477-49aa-b45b-82decf946ca5", is_disabled: true )) assert response.code != "400" @@ -1350,16 +1350,16 @@ def test_update_check_9 def test_update_check_10 response = $client.send(Pokepay::Request::UpdateCheck.new( - "7d79a965-78ad-4583-8e8a-7d887f966b29", - money_amount: 7176.0, - point_amount: 3177.0, - description: "AQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeu", - is_onetime: false, - usage_limit: 3852, - expires_at: "2021-06-20T12:42:25.000000Z", - point_expires_at: "2023-11-26T07:29:58.000000Z", - point_expires_in_days: 720, - bear_point_account: "a503d874-d430-4934-9da8-bd9696e081ca", + "d869f644-0851-4143-b649-08190f207281", + money_amount: 8395.0, + point_amount: 2627.0, + description: "w4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDebROkI568", + is_onetime: true, + usage_limit: 6777, + expires_at: "2021-09-17T02:17:00.000000Z", + point_expires_at: "2020-03-24T17:53:25.000000Z", + point_expires_in_days: 2338, + bear_point_account: "4a714c3c-dc8d-4d76-8164-2d67637a06b2", is_disabled: false )) assert response.code != "400" @@ -1367,7 +1367,7 @@ def test_update_check_10 def test_get_cpm_token_0 response = $client.send(Pokepay::Request::GetCpmToken.new( - "jRtKJ3Y50yRgOZb7LyYKRM" + "zE6cQfJbdKVhYmdIeaGtyZ" )) assert response.code != "400" end @@ -1380,15 +1380,15 @@ def test_list_transactions_0 def test_list_transactions_1 response = $client.send(Pokepay::Request::ListTransactions.new( - description: "PV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7Ry" + description: "iVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taF" )) assert response.code != "400" end def test_list_transactions_2 response = $client.send(Pokepay::Request::ListTransactions.new( - types: ["payment", "exchange_outflow", "cashback", "exchange_inflow"], - description: "IVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0" + types: ["exchange_outflow", "exchange_inflow", "topup", "payment", "cashback"], + description: "9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPcXHRn98CcSXK5Zlq5PBZ9" )) assert response.code != "400" end @@ -1396,228 +1396,228 @@ def test_list_transactions_2 def test_list_transactions_3 response = $client.send(Pokepay::Request::ListTransactions.new( is_modified: true, - types: ["expire", "exchange_outflow", "topup", "exchange_inflow", "cashback", "payment"], - description: "ZpFNZ79bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qL" + types: ["exchange_inflow"], + description: "dBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSX" )) assert response.code != "400" end def test_list_transactions_4 response = $client.send(Pokepay::Request::ListTransactions.new( - private_money_id: "62c302d4-35f1-4e7e-87c4-3215645cc062", - is_modified: false, - types: ["exchange_outflow", "topup"], - description: "v4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPy" + private_money_id: "1bfabd2b-5962-4497-b24c-4af2758fb4db", + is_modified: true, + types: ["expire", "payment", "exchange_inflow"], + description: "tyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGK" )) assert response.code != "400" end def test_list_transactions_5 response = $client.send(Pokepay::Request::ListTransactions.new( - organization_code: "k1SSX-r", - private_money_id: "311bd1b2-821b-4fe2-94e0-f5a4694a8a3d", + organization_code: "-GI", + private_money_id: "830c45b4-a66d-4268-8cd6-30c6bccb7394", is_modified: false, - types: ["payment", "exchange_inflow", "expire", "topup", "exchange_outflow", "cashback"], - description: "FSWXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhY" + types: ["expire", "cashback", "exchange_outflow"], + description: "emCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k" )) assert response.code != "400" end def test_list_transactions_6 response = $client.send(Pokepay::Request::ListTransactions.new( - transaction_id: "IeaGt", - organization_code: "D9A--UB-y5Wn--5I--9u393gS--s3", - private_money_id: "fe6213e7-e07d-4a7e-adfe-2cf43ac6f070", - is_modified: true, - types: ["expire", "topup", "cashback", "payment", "exchange_outflow", "exchange_inflow"], - description: "BR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8S" + transaction_id: "x", + organization_code: "gB--MYcX6--VwOC4A-8B-7-9r6", + private_money_id: "7e847f87-3aba-46e0-9c0f-eef1dfd1264e", + is_modified: false, + types: ["expire", "cashback", "topup", "payment", "exchange_outflow"], + description: "hBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiT" )) assert response.code != "400" end def test_list_transactions_7 response = $client.send(Pokepay::Request::ListTransactions.new( - terminal_id: "9b31a3e7-fc60-4e5d-9839-b6718f656803", - transaction_id: "O6", - organization_code: "3iJ-9dD---7-YolA58m-Vc-996y5l", - private_money_id: "1750ab2f-d7c2-480d-842e-9bc53e6fa6aa", - is_modified: true, - types: ["cashback"], - description: "S5KI84n4B4JwtxMbsrynF" + terminal_id: "70c4bdbf-87c5-41e4-a352-7aecfbbb8f67", + transaction_id: "P", + organization_code: "-R--VY6Id6z7n97", + private_money_id: "d35dcc20-07f6-4e6c-bde6-90d087e77b5a", + is_modified: false, + types: ["topup", "exchange_inflow", "expire", "cashback"], + description: "Rs2DjUex8FZcru468uiy2IBQsKNbECUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DC" )) assert response.code != "400" end def test_list_transactions_8 response = $client.send(Pokepay::Request::ListTransactions.new( - customer_name: "zleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2L", - terminal_id: "0cdc7118-47d0-4396-a2a9-9f8c6a148ab0", - transaction_id: "vCf", - organization_code: "U8m-EI8MS8hII-tI", - private_money_id: "26687349-3c16-4178-b708-abe5d4699ac8", + customer_name: "6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPaGHVkyMSdme", + terminal_id: "430728ed-f65a-4efe-ae25-13a668e4d098", + transaction_id: "covbEUc9", + organization_code: "m--8-6yqH--v6f-2-N8a", + private_money_id: "abaaad6e-6afb-495f-a252-64e190197b0a", is_modified: true, - types: ["expire"], - description: "VFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVj" + types: ["cashback", "expire"], + description: "KHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFw" )) assert response.code != "400" end def test_list_transactions_9 response = $client.send(Pokepay::Request::ListTransactions.new( - customer_id: "05b57152-289f-42cc-99c3-c34692786d8b", - customer_name: "S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixL", - terminal_id: "8df7af26-c41d-4788-b003-3d76867b583d", - transaction_id: "lY8MFYZ", - organization_code: "Y03-2UWgF9", - private_money_id: "0e260079-0ae0-4332-921a-f0180b856949", + customer_id: "0bb110d6-754c-4e8f-895a-361c6368ab20", + customer_name: "nC6rD", + terminal_id: "0c68d1f9-0059-4ef5-95f5-4d47e49c0fa8", + transaction_id: "Xn", + organization_code: "-2-2vc3u-SL-UVy-1J-4", + private_money_id: "96962c2b-a843-425b-b078-4b4e72e0c1ac", is_modified: true, - types: ["exchange_outflow", "topup", "expire", "payment", "cashback", "exchange_inflow"], - description: "CUonyUv3nTPZ701h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6f" + types: ["cashback", "topup"], + description: "usYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQaj" )) assert response.code != "400" end def test_list_transactions_10 response = $client.send(Pokepay::Request::ListTransactions.new( - shop_id: "977e2b08-a061-4a79-8a06-64febe0d9c5a", - customer_id: "1bff689c-8cfb-475b-a32a-95326e526f27", - customer_name: "E32vm3RMvvWttu1PJb3d04IfskzbRh2", - terminal_id: "f52d39cb-6a2d-48aa-9358-6123c140ac44", - transaction_id: "Jqy1UyPaGH", - organization_code: "v39jFTlu-XkApk--324-FW3m--8", - private_money_id: "d897650b-e0a6-4c4f-b61c-e2d8149b3754", + shop_id: "1f208b29-29aa-4618-b05e-d06c2b0d15b0", + customer_id: "31d3b385-1539-4e26-95a7-0464e92e41b6", + customer_name: "IiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr", + terminal_id: "debfe830-8f46-4855-b3c4-d9eea2df1a57", + transaction_id: "KqsDEee", + organization_code: "-iW73r1Y-bvxv", + private_money_id: "2c87a899-7567-45b2-b6a0-45c2556c6174", is_modified: false, - types: ["topup", "cashback", "expire"], - description: "PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI" + types: ["topup", "exchange_outflow", "expire", "payment"], + description: "lEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8Z" )) assert response.code != "400" end def test_list_transactions_11 response = $client.send(Pokepay::Request::ListTransactions.new( - per_page: 2395, - shop_id: "7b52361c-ab20-4604-aea4-95c333415836", - customer_id: "cd4922a1-cbf2-4319-84f9-005989664ef5", - customer_name: "uG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYM", - terminal_id: "2743e2fa-a1c8-49fc-8065-9650cee5841f", - transaction_id: "RHJLPebY", - organization_code: "-Cq10S-E8gQ----jDNN98mfGHwMEIBk", - private_money_id: "34e88dfc-36bd-404c-9bb5-d4e327efddb4", + per_page: 7693, + shop_id: "fbd6a0e0-3372-4d23-ab95-b071eef4d2bb", + customer_id: "e9ff71e6-bb4e-4dbe-a7a4-8cffa2826d0d", + customer_name: "GAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5Bazm", + terminal_id: "dcc9becb-ce3e-47f1-897d-62a08961c648", + transaction_id: "UlvI3TLRDU", + organization_code: "1T54RprF9e", + private_money_id: "9921668a-1c8c-4b66-a8c6-1f5b26c71db0", is_modified: true, - types: ["exchange_outflow", "cashback", "topup", "exchange_inflow"], - description: "Pi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1" + types: ["payment", "exchange_outflow", "cashback", "topup", "expire", "exchange_inflow"], + description: "Rg4eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyB" )) assert response.code != "400" end def test_list_transactions_12 response = $client.send(Pokepay::Request::ListTransactions.new( - page: 7539, - per_page: 8246, - shop_id: "7261d6a9-1fb2-463f-8e20-eb786615d1ed", - customer_id: "66eb1f15-3d9c-431d-9b12-329d5a93ed89", - customer_name: "So3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oa", - terminal_id: "bf1043fa-ff9c-4b4f-a0a9-5aeedb4aaf53", - transaction_id: "RVBAD", - organization_code: "-i2w-XaN03-R-7n", - private_money_id: "b5e91b2f-b889-4b22-a38e-7bc7310df541", + page: 5957, + per_page: 1458, + shop_id: "25a1b673-3f5f-40a3-914a-98fc7e5cba0a", + customer_id: "e3566da9-311c-4e37-916b-d3b6fa03dae4", + customer_name: "P6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFr", + terminal_id: "8b340176-3230-4a84-86f0-96b569f2b4d6", + transaction_id: "2XFS", + organization_code: "80-tv9Fy1", + private_money_id: "ffac6395-94ec-438f-9b99-6ee786500033", is_modified: false, - types: ["exchange_outflow", "exchange_inflow", "payment", "expire", "cashback"], - description: "AIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4A" + types: ["topup", "exchange_inflow"], + description: "jzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUt" )) assert response.code != "400" end def test_list_transactions_13 response = $client.send(Pokepay::Request::ListTransactions.new( - to: "2020-07-26T10:55:21.000000Z", - page: 2784, - per_page: 4219, - shop_id: "f98b4df5-c995-408a-bb6b-47a2f3349e71", - customer_id: "7bdf35a9-2b58-4e69-a9b0-1b92641220af", - customer_name: "wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrG", - terminal_id: "f8b5d8eb-2220-422d-88af-8fc79f2630a0", - transaction_id: "nz7dW1L", - organization_code: "e--Pwgc9HmVBlTce5-o-6v-Mx23q", - private_money_id: "87fcfd6b-5fb5-49b5-9cdb-6529a6653d70", - is_modified: true, - types: ["expire"], - description: "BmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YX" + to: "2022-02-07T22:47:04.000000Z", + page: 812, + per_page: 771, + shop_id: "8e5fd89b-2b53-49bb-b81f-9d5341ae038f", + customer_id: "63f4bd61-127c-44de-b53e-1571a8764f09", + customer_name: "YfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua", + terminal_id: "8e1a411c-2bbb-45e0-855b-273288fccdd7", + transaction_id: "PHw1U", + organization_code: "99q-L-I7f5-U2--fa-Lleb-7e-5-", + private_money_id: "de760078-73fb-4ab5-8577-64070047582e", + is_modified: false, + types: ["exchange_inflow", "exchange_outflow", "payment", "expire", "cashback"], + description: "5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiX" )) assert response.code != "400" end def test_list_transactions_14 response = $client.send(Pokepay::Request::ListTransactions.new( - from: "2024-02-05T13:13:38.000000Z", - to: "2023-03-16T23:25:29.000000Z", - page: 3546, - per_page: 3920, - shop_id: "9b3545d7-4db0-4b06-8d6f-09019542ff11", - customer_id: "4423a488-860a-46e1-85ac-dc3b1dddcc1f", - customer_name: "SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK7", - terminal_id: "f1c2eeb7-2535-44a0-8655-b1ea851422ca", - transaction_id: "wWsCFU", - organization_code: "LYQf-X-6--oZ", - private_money_id: "4591de5a-0210-4461-a6c3-1e458e9de94d", - is_modified: false, - types: ["exchange_outflow", "payment", "expire"], - description: "u8UbXHSU9E0Qlg3gebv" + from: "2020-01-17T01:48:18.000000Z", + to: "2024-01-29T13:43:49.000000Z", + page: 6653, + per_page: 2394, + shop_id: "e5765496-b9f4-4a3c-b6ae-7ccf355db2df", + customer_id: "d439ed9d-2f6e-4e2d-a774-9fb0d215028b", + customer_name: "eqhymEV4KDx3FmD9kbbl", + terminal_id: "edd0a327-471e-43fb-9169-b228050f1eab", + transaction_id: "vO", + organization_code: "6O6xGulu", + private_money_id: "99b44e59-1a40-4b5a-b846-48c4944eec87", + is_modified: true, + types: ["topup", "exchange_inflow"], + description: "QjYlB42oGAhylpmFOwCdKPABZdrgh98RslD" )) assert response.code != "400" end def test_create_transaction_0 response = $client.send(Pokepay::Request::CreateTransaction.new( - "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - "a387e891-8847-4c38-9559-5e87acab0e1d", - "d044b25e-2b03-4761-acdb-0b70e9a91604" + "1d3831bb-a724-4804-9fc2-8a14d55c4475", + "8e35ccbe-6def-4224-814a-7e84feedf9d3", + "54834b5c-2549-4c46-95f2-4d29e2e821d4" )) assert response.code != "400" end def test_create_transaction_1 response = $client.send(Pokepay::Request::CreateTransaction.new( - "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - "a387e891-8847-4c38-9559-5e87acab0e1d", - "d044b25e-2b03-4761-acdb-0b70e9a91604", - description: "gA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2J" + "1d3831bb-a724-4804-9fc2-8a14d55c4475", + "8e35ccbe-6def-4224-814a-7e84feedf9d3", + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + description: "1u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxw" )) assert response.code != "400" end def test_create_transaction_2 response = $client.send(Pokepay::Request::CreateTransaction.new( - "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - "a387e891-8847-4c38-9559-5e87acab0e1d", - "d044b25e-2b03-4761-acdb-0b70e9a91604", - point_expires_at: "2023-11-18T10:39:42.000000Z", - description: "K33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQd" + "1d3831bb-a724-4804-9fc2-8a14d55c4475", + "8e35ccbe-6def-4224-814a-7e84feedf9d3", + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + point_expires_at: "2021-09-24T18:10:59.000000Z", + description: "U0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5h" )) assert response.code != "400" end def test_create_transaction_3 response = $client.send(Pokepay::Request::CreateTransaction.new( - "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - "a387e891-8847-4c38-9559-5e87acab0e1d", - "d044b25e-2b03-4761-acdb-0b70e9a91604", - point_amount: 676, - point_expires_at: "2020-08-14T23:35:01.000000Z", - description: "ofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kb" + "1d3831bb-a724-4804-9fc2-8a14d55c4475", + "8e35ccbe-6def-4224-814a-7e84feedf9d3", + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + point_amount: 704, + point_expires_at: "2023-02-11T11:10:11.000000Z", + description: "61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUIL" )) assert response.code != "400" end def test_create_transaction_4 response = $client.send(Pokepay::Request::CreateTransaction.new( - "8a480fc1-4577-4907-9d6a-c87cf26f7afa", - "a387e891-8847-4c38-9559-5e87acab0e1d", - "d044b25e-2b03-4761-acdb-0b70e9a91604", - money_amount: 7778, - point_amount: 5824, - point_expires_at: "2024-01-26T18:25:24.000000Z", - description: "i1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFD" + "1d3831bb-a724-4804-9fc2-8a14d55c4475", + "8e35ccbe-6def-4224-814a-7e84feedf9d3", + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + money_amount: 6062, + point_amount: 4712, + point_expires_at: "2020-08-18T18:30:44.000000Z", + description: "tRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr07" )) assert response.code != "400" end @@ -1630,57 +1630,57 @@ def test_list_transactions_v2_0 def test_list_transactions_v2_1 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - per_page: 136 + per_page: 697 )) assert response.code != "400" end def test_list_transactions_v2_2 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - prev_page_cursor_id: "fc527984-a5e8-44f2-a31f-4c7f0cdfdd95", - per_page: 313 + prev_page_cursor_id: "3fcfb8fc-d9f9-4c57-9f95-3ff24cf326f0", + per_page: 379 )) assert response.code != "400" end def test_list_transactions_v2_3 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - next_page_cursor_id: "fb22ffa1-f122-40d1-a829-257fab34ceea", - prev_page_cursor_id: "3ccd8c04-5759-4eec-bb42-5cb460baa4a3", - per_page: 307 + next_page_cursor_id: "2721888a-c9fd-4f4b-9205-13fb3266cbbc", + prev_page_cursor_id: "7bfca784-d95b-45c9-8a72-5927ea00f442", + per_page: 37 )) assert response.code != "400" end def test_list_transactions_v2_4 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - to: "2022-06-12T16:45:46.000000Z", - next_page_cursor_id: "b59dafbc-912c-4bef-bb8d-474796f0ec41", - prev_page_cursor_id: "61cefb16-141f-40a0-a8bf-97792c4e46ec", - per_page: 369 + to: "2022-05-18T09:00:52.000000Z", + next_page_cursor_id: "c6e3a6b5-3f44-492f-b743-528e605ba694", + prev_page_cursor_id: "a82442f0-30ae-4220-be4b-166a0f6792e5", + per_page: 536 )) assert response.code != "400" end def test_list_transactions_v2_5 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - from: "2022-05-13T22:51:50.000000Z", - to: "2021-03-13T23:51:09.000000Z", - next_page_cursor_id: "fece7a94-33ac-43dd-8b1b-1ec60b163d4f", - prev_page_cursor_id: "4caa26ae-5ef7-4ec3-a49f-d4a4805d1b3f", - per_page: 831 + from: "2022-09-20T22:29:02.000000Z", + to: "2020-12-23T13:40:03.000000Z", + next_page_cursor_id: "bead0d81-2eaa-4c16-9870-a97fddb35a99", + prev_page_cursor_id: "f558e5a2-3f61-495c-acbb-8e68013fd794", + per_page: 894 )) assert response.code != "400" end def test_list_transactions_v2_6 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - types: ["exchange_outflow", "expire"], - from: "2023-05-12T04:41:04.000000Z", - to: "2021-06-07T00:06:19.000000Z", - next_page_cursor_id: "8cf2e07e-679f-4d8f-821f-65dac7d4c4e4", - prev_page_cursor_id: "f2538a72-d81e-4e67-9198-2d9d4a0aa3e8", - per_page: 442 + types: ["topup", "payment", "expire", "cashback", "exchange_outflow"], + from: "2021-11-14T19:02:39.000000Z", + to: "2023-11-28T00:29:07.000000Z", + next_page_cursor_id: "f01a0f14-0f87-4561-afcc-cf03a2af77e5", + prev_page_cursor_id: "683e521c-5a89-4ff4-b570-4ae9409745cc", + per_page: 8 )) assert response.code != "400" end @@ -1688,856 +1688,895 @@ def test_list_transactions_v2_6 def test_list_transactions_v2_7 response = $client.send(Pokepay::Request::ListTransactionsV2.new( is_modified: true, - types: ["topup", "cashback", "exchange_inflow", "payment"], - from: "2022-10-11T10:49:34.000000Z", - to: "2021-12-28T16:25:23.000000Z", - next_page_cursor_id: "cb3e846c-d7c4-41bb-a404-c55fc895efc2", - prev_page_cursor_id: "27a88a14-4475-4cbe-af24-ad0171a19d4a", - per_page: 645 + types: ["exchange_outflow", "cashback", "topup", "exchange_inflow", "expire"], + from: "2020-02-09T21:48:14.000000Z", + to: "2020-02-16T12:17:36.000000Z", + next_page_cursor_id: "f1e301b0-c881-4760-bb00-809198f21d82", + prev_page_cursor_id: "f09d4bba-df26-4a38-abd5-d43dce0a2b83", + per_page: 205 )) assert response.code != "400" end def test_list_transactions_v2_8 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - transaction_id: "IFUr", - is_modified: false, - types: ["cashback", "exchange_inflow", "topup"], - from: "2021-09-05T06:44:01.000000Z", - to: "2020-10-14T01:18:45.000000Z", - next_page_cursor_id: "6dd14e7e-5638-4902-81cb-a0185959ff6d", - prev_page_cursor_id: "e93949cf-e08a-46ce-bbd9-55031442dcd8", - per_page: 281 + transaction_id: "DXm7m", + is_modified: true, + types: ["payment", "exchange_inflow", "cashback", "topup"], + from: "2020-09-18T14:58:40.000000Z", + to: "2023-04-02T18:54:27.000000Z", + next_page_cursor_id: "a90bceff-0963-4ef1-994f-bec6098d70f4", + prev_page_cursor_id: "2ca0a17b-489e-4ca8-b1e8-ea5dfa9de85f", + per_page: 933 )) assert response.code != "400" end def test_list_transactions_v2_9 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - description: "ce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzry", - transaction_id: "GRNkAeSH", + description: "Ly1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZium", + transaction_id: "u", is_modified: false, - types: ["expire", "topup", "payment"], - from: "2020-05-01T18:04:20.000000Z", - to: "2021-09-07T23:55:30.000000Z", - next_page_cursor_id: "5fcd5437-265b-46d8-8081-5f3706143e05", - prev_page_cursor_id: "1a0a7af2-ad93-4e89-9e39-0928d69b0d5c", - per_page: 423 + types: ["exchange_outflow", "expire", "cashback"], + from: "2020-08-26T23:48:30.000000Z", + to: "2023-07-04T16:54:34.000000Z", + next_page_cursor_id: "bd783681-47e3-4ca2-8a47-fae0f2291276", + prev_page_cursor_id: "a4077e05-f38c-4fd3-adeb-7914ca738c73", + per_page: 834 )) assert response.code != "400" end def test_list_transactions_v2_10 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - customer_name: "8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98", - description: "f3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRt", - transaction_id: "mknLVk7hQO", - is_modified: false, - types: ["exchange_outflow", "exchange_inflow", "cashback", "expire", "payment"], - from: "2020-12-02T05:29:29.000000Z", - to: "2022-02-09T17:20:58.000000Z", - next_page_cursor_id: "e5b630a8-6881-4a04-8d83-81465bf9cfa5", - prev_page_cursor_id: "bdbe4cff-86e8-422a-a0a9-f10b73fdd11b", - per_page: 827 + customer_name: "MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0", + description: "EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIIS", + transaction_id: "prQ3cmpI6", + is_modified: true, + types: ["topup", "payment", "exchange_inflow", "expire"], + from: "2024-04-09T13:16:04.000000Z", + to: "2020-09-20T09:58:02.000000Z", + next_page_cursor_id: "ee41dfa1-e857-4328-8753-96041a5befe7", + prev_page_cursor_id: "02a48fe8-18c4-402b-a894-594362ea025f", + per_page: 888 )) assert response.code != "400" end def test_list_transactions_v2_11 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - customer_id: "9d99c341-5555-4bb2-894c-ad6eb8ec2dca", - customer_name: "GL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpK", - description: "eG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG", - transaction_id: "9bLFf", + customer_id: "1d340d31-5a24-4287-afd5-19ee545d2eb7", + customer_name: "nnaTSFczRArCskatgTSAk3a8TcT", + description: "2JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkpYWE", + transaction_id: "uyvbNk", is_modified: true, - types: ["payment", "cashback", "topup", "exchange_inflow"], - from: "2022-09-13T20:18:07.000000Z", - to: "2023-09-26T20:31:25.000000Z", - next_page_cursor_id: "6abc9db9-7c38-4cdd-9601-a9f053d20a4f", - prev_page_cursor_id: "ab3f5867-04a3-49bb-ad88-c58f0213e999", - per_page: 868 + types: ["payment", "cashback"], + from: "2023-06-10T03:30:44.000000Z", + to: "2020-08-29T03:42:26.000000Z", + next_page_cursor_id: "242ed247-7f7c-4ea2-a0cf-5712cb850259", + prev_page_cursor_id: "a4fb9162-0961-4534-b274-c597d5b19888", + per_page: 816 )) assert response.code != "400" end def test_list_transactions_v2_12 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - terminal_id: "15cbab96-7008-4b38-b0fc-29ae27c00c53", - customer_id: "98d4869b-13b7-42d7-955d-8695dbb97e9d", - customer_name: "iumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3", - description: "9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf", - transaction_id: "ESdF", + terminal_id: "8bbd03cb-0db1-485d-bb45-afd47eb45797", + customer_id: "d56626da-02df-4ad6-bdf2-62694a68b223", + customer_name: "mXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GB", + description: "WTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJF", + transaction_id: "7RUR", is_modified: true, - types: ["exchange_inflow", "payment", "expire", "exchange_outflow", "topup"], - from: "2022-06-06T10:38:03.000000Z", - to: "2022-11-23T05:39:52.000000Z", - next_page_cursor_id: "5d685570-9b2e-403c-850a-60b143b8297c", - prev_page_cursor_id: "bd2b7e86-c9fd-459e-b9e7-5db8278cb9b9", - per_page: 627 + types: ["payment", "exchange_inflow", "exchange_outflow", "expire", "topup", "cashback"], + from: "2022-03-12T13:26:06.000000Z", + to: "2022-09-13T17:02:30.000000Z", + next_page_cursor_id: "1818cd67-6dab-4823-bf05-a4aa1c9e2f9b", + prev_page_cursor_id: "60bfa46c-e707-4592-96bb-e1e704570ccb", + per_page: 834 )) assert response.code != "400" end def test_list_transactions_v2_13 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - shop_id: "006d11ab-04d5-4f0b-bf1d-902772835f67", - terminal_id: "55325684-d1fd-4d11-96b8-2131a83d9ba4", - customer_id: "95901060-912a-477d-9314-936851642711", - customer_name: "6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un", - description: "nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHG", - transaction_id: "ImjW3", + shop_id: "566b69b3-b424-4f74-9db5-ea1e3a5e6227", + terminal_id: "e5b0748c-37bc-4f0e-8435-9ab16d4fff98", + customer_id: "b0330ba6-8ac1-4d57-9979-9d05a0b9b2b2", + customer_name: "EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemz", + description: "dROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3", + transaction_id: "boA1VaXQq", is_modified: true, - types: ["exchange_outflow", "expire", "exchange_inflow"], - from: "2022-04-02T04:19:54.000000Z", - to: "2022-09-02T08:24:37.000000Z", - next_page_cursor_id: "63e5715b-e038-487b-9715-19b9ff9442aa", - prev_page_cursor_id: "9a3946e8-cfe8-49eb-b09f-c5596e9aa017", - per_page: 728 + types: ["exchange_inflow", "exchange_outflow", "topup", "payment"], + from: "2020-01-09T10:00:20.000000Z", + to: "2020-10-20T03:36:23.000000Z", + next_page_cursor_id: "c03d9bc8-8238-4876-a635-c6cf6301ce59", + prev_page_cursor_id: "4baa4cd8-2a8e-4781-b2c2-a49a0bf28e5d", + per_page: 766 )) assert response.code != "400" end def test_list_transactions_v2_14 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - organization_code: "1sxp-", - shop_id: "5afd0db1-785d-48fb-85d4-5797d56626da", - terminal_id: "713d02df-bad6-45fd-b269-b22386f4452e", - customer_id: "4ac97787-846d-4758-99bc-153beaf7ae51", - customer_name: "2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4Uw", - description: "xtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5", - transaction_id: "UqQsbMF", - is_modified: false, - types: ["topup", "expire", "exchange_inflow", "exchange_outflow", "cashback", "payment"], - from: "2020-02-03T08:11:05.000000Z", - to: "2023-06-29T18:25:12.000000Z", - next_page_cursor_id: "30f1ff9d-ef59-4f88-953a-1d6e057e9d65", - prev_page_cursor_id: "4860306d-5194-4efa-9c52-df967e6670e4", - per_page: 861 + organization_code: "469-xrU--0eU1", + shop_id: "7fd3464e-b7a1-408d-9e74-826b05b316d9", + terminal_id: "e9ed32a8-4b14-43ea-85d0-041a7e6c2d3e", + customer_id: "22eacfac-2002-477c-ba58-38558d8d9879", + customer_name: "1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxg", + description: "f0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNfSRiXLw6IXxof4N3", + transaction_id: "b", + is_modified: true, + types: ["cashback", "exchange_inflow", "payment"], + from: "2020-12-03T06:40:14.000000Z", + to: "2020-05-16T04:34:19.000000Z", + next_page_cursor_id: "5b86a321-4a3e-4a4d-9905-d3a8050307fb", + prev_page_cursor_id: "47ad2773-a22a-44d2-8066-65db981607b9", + per_page: 887 )) assert response.code != "400" end def test_list_transactions_v2_15 response = $client.send(Pokepay::Request::ListTransactionsV2.new( - private_money_id: "037875d2-a2cf-48cb-a21d-4c4705c5bba4", - organization_code: "-X2-C07GVrnb4d-B4--", - shop_id: "34dc55ac-a31b-4d3e-ad69-82ee07a1bdec", - terminal_id: "301a1fbb-1b9e-48be-938a-00ff3831334a", - customer_id: "41652a06-e107-4103-a2df-97e77f4ab73e", - customer_name: "COpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXf", - description: "zIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTq", - transaction_id: "NfSRiXL", + private_money_id: "13ea8a00-1672-42e9-8759-7ae9b93c833d", + organization_code: "-Af-3QQb-j0Nu-R-", + shop_id: "6a4d1551-1551-4901-8bc8-2f62ddc93afc", + terminal_id: "fd3baf24-c636-4ce6-a96b-6fa7973a11ae", + customer_id: "bf9290dd-ead6-43e7-b8d5-872b327bbbbe", + customer_name: "XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZ", + description: "VwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtu", + transaction_id: "fb", is_modified: false, - types: ["exchange_outflow", "payment", "cashback", "topup", "exchange_inflow", "expire"], - from: "2020-03-21T03:35:25.000000Z", - to: "2021-01-28T09:27:41.000000Z", - next_page_cursor_id: "eb184385-8def-41e0-a634-4d0f5c103d4e", - prev_page_cursor_id: "1c990833-aae0-4762-985c-e437b7a43332", - per_page: 122 + types: ["topup", "cashback", "exchange_inflow", "payment", "expire"], + from: "2022-10-07T00:18:07.000000Z", + to: "2020-03-19T07:53:45.000000Z", + next_page_cursor_id: "e4260d86-cba2-49b2-9e3e-ee9f6da479d5", + prev_page_cursor_id: "bdfb8964-c41b-482b-bd65-5ba87e27c027", + per_page: 574 )) assert response.code != "400" end def test_create_topup_transaction_0 response = $client.send(Pokepay::Request::CreateTopupTransaction.new( - "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - "bd51d245-8c4b-4321-be4d-9459c0099b05", - "6d4ad3a8-07fb-4773-aad2-cc8044238a66" + "335bba75-60e0-431e-9b35-9b3b6e0a3b1c", + "be7bd00a-99c3-45ff-9c20-26ec46099f2c", + "4a3bd8a9-4e9b-4742-951d-c16edd640c4e" )) assert response.code != "400" end def test_create_topup_transaction_1 response = $client.send(Pokepay::Request::CreateTopupTransaction.new( - "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - "bd51d245-8c4b-4321-be4d-9459c0099b05", - "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - request_id: "590665db-07b9-4f76-8072-72e918278a87" + "335bba75-60e0-431e-9b35-9b3b6e0a3b1c", + "be7bd00a-99c3-45ff-9c20-26ec46099f2c", + "4a3bd8a9-4e9b-4742-951d-c16edd640c4e", + request_id: "5d1f48f3-b3bd-4825-b147-91091288f174" )) assert response.code != "400" end def test_create_topup_transaction_2 response = $client.send(Pokepay::Request::CreateTopupTransaction.new( - "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - "bd51d245-8c4b-4321-be4d-9459c0099b05", - "6d4ad3a8-07fb-4773-aad2-cc8044238a66", + "335bba75-60e0-431e-9b35-9b3b6e0a3b1c", + "be7bd00a-99c3-45ff-9c20-26ec46099f2c", + "4a3bd8a9-4e9b-4742-951d-c16edd640c4e", metadata: "{\"key\":\"value\"}", - request_id: "030cd959-7ae9-433d-907b-8d0018d356a9" + request_id: "ac15d37f-fff7-4df6-869a-b5184b7af6c1" )) assert response.code != "400" end def test_create_topup_transaction_3 response = $client.send(Pokepay::Request::CreateTopupTransaction.new( - "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - "bd51d245-8c4b-4321-be4d-9459c0099b05", - "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - description: "8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01c", + "335bba75-60e0-431e-9b35-9b3b6e0a3b1c", + "be7bd00a-99c3-45ff-9c20-26ec46099f2c", + "4a3bd8a9-4e9b-4742-951d-c16edd640c4e", + description: "jO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUY", metadata: "{\"key\":\"value\"}", - request_id: "7061914c-07b7-4315-a564-a305d539bee8" + request_id: "eacfad8f-b770-4276-b000-6f77b375fa57" )) assert response.code != "400" end def test_create_topup_transaction_4 response = $client.send(Pokepay::Request::CreateTopupTransaction.new( - "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - "bd51d245-8c4b-4321-be4d-9459c0099b05", - "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - point_expires_at: "2020-09-15T01:10:05.000000Z", - description: "i5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8J", + "335bba75-60e0-431e-9b35-9b3b6e0a3b1c", + "be7bd00a-99c3-45ff-9c20-26ec46099f2c", + "4a3bd8a9-4e9b-4742-951d-c16edd640c4e", + point_expires_at: "2023-02-03T11:38:34.000000Z", + description: "JTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyN", metadata: "{\"key\":\"value\"}", - request_id: "3859c46b-1a83-4a4c-b64b-2e24d6c94e1d" + request_id: "c3c2985a-6a35-4b19-919b-09bbae07df37" )) assert response.code != "400" end def test_create_topup_transaction_5 response = $client.send(Pokepay::Request::CreateTopupTransaction.new( - "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - "bd51d245-8c4b-4321-be4d-9459c0099b05", - "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - point_amount: 5478, - point_expires_at: "2021-01-21T20:23:24.000000Z", - description: "UtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQ", + "335bba75-60e0-431e-9b35-9b3b6e0a3b1c", + "be7bd00a-99c3-45ff-9c20-26ec46099f2c", + "4a3bd8a9-4e9b-4742-951d-c16edd640c4e", + point_amount: 4118, + point_expires_at: "2022-03-04T10:25:59.000000Z", + description: "U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytN", metadata: "{\"key\":\"value\"}", - request_id: "b17cfe53-f624-4d0a-a77d-66734f88b581" + request_id: "a6e7bfdc-401f-43bc-985d-34e41fed6cb3" )) assert response.code != "400" end def test_create_topup_transaction_6 response = $client.send(Pokepay::Request::CreateTopupTransaction.new( - "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - "bd51d245-8c4b-4321-be4d-9459c0099b05", - "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - money_amount: 4875, - point_amount: 5757, - point_expires_at: "2022-07-23T01:40:42.000000Z", - description: "cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy2qiGNeSDJueWNAF2iLh", + "335bba75-60e0-431e-9b35-9b3b6e0a3b1c", + "be7bd00a-99c3-45ff-9c20-26ec46099f2c", + "4a3bd8a9-4e9b-4742-951d-c16edd640c4e", + money_amount: 4434, + point_amount: 810, + point_expires_at: "2023-04-19T10:06:51.000000Z", + description: "nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ks", metadata: "{\"key\":\"value\"}", - request_id: "8c138815-f8eb-46c2-8330-e7b84bbc97ed" + request_id: "863896c8-5cb4-4152-b24d-c209ffa39367" )) assert response.code != "400" end def test_create_topup_transaction_7 response = $client.send(Pokepay::Request::CreateTopupTransaction.new( - "9af3b345-8ee5-4ff2-8c4e-7127a8577917", - "bd51d245-8c4b-4321-be4d-9459c0099b05", - "6d4ad3a8-07fb-4773-aad2-cc8044238a66", - bear_point_shop_id: "10405a8e-bc57-4118-816f-fc5d8281775d", - money_amount: 339, - point_amount: 7237, - point_expires_at: "2022-04-12T16:41:10.000000Z", - description: "4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNm", + "335bba75-60e0-431e-9b35-9b3b6e0a3b1c", + "be7bd00a-99c3-45ff-9c20-26ec46099f2c", + "4a3bd8a9-4e9b-4742-951d-c16edd640c4e", + bear_point_shop_id: "e182b608-fd79-45d7-a4bf-bab626f635fa", + money_amount: 5169, + point_amount: 8116, + point_expires_at: "2023-03-23T14:29:13.000000Z", + description: "RZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLes", metadata: "{\"key\":\"value\"}", - request_id: "51ebc46a-bd9a-49dd-8bd7-5914be8dc5d0" + request_id: "daaeae93-14ef-4aa3-8e37-569fe6361d41" )) assert response.code != "400" end def test_create_topup_transaction_with_check_0 response = $client.send(Pokepay::Request::CreateTopupTransactionWithCheck.new( - "868e5c11-4cc4-49bc-85fa-63810b85da65", - "3918ac9a-e7ee-40b9-9e25-c17d02968c56" + "ef555887-490e-46f3-a981-291461f2d778", + "73c37e6a-b99a-471d-a628-d1db6775c961" )) assert response.code != "400" end def test_create_topup_transaction_with_check_1 response = $client.send(Pokepay::Request::CreateTopupTransactionWithCheck.new( - "868e5c11-4cc4-49bc-85fa-63810b85da65", - "3918ac9a-e7ee-40b9-9e25-c17d02968c56", - request_id: "d58acfa1-dd8e-4945-8d68-d739993bb8bc" + "ef555887-490e-46f3-a981-291461f2d778", + "73c37e6a-b99a-471d-a628-d1db6775c961", + request_id: "a7332758-e534-4702-ae62-77bbc17286eb" )) assert response.code != "400" end def test_create_payment_transaction_0 response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( - "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - "18784388-b8a1-407c-bad5-2a6c5339a77a", - "bdf3cc73-c818-4ef8-a203-60ff592792fe", - 7737 + "2806f201-ed13-4586-80fa-326f0a398c57", + "2fb5b67c-28a4-4735-9302-5a82239f71d3", + "7ce74391-6603-493e-abfa-38c6cfc90a43", + 5344 )) assert response.code != "400" end def test_create_payment_transaction_1 response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( - "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - "18784388-b8a1-407c-bad5-2a6c5339a77a", - "bdf3cc73-c818-4ef8-a203-60ff592792fe", - 7737, - request_id: "f3cbd8f4-fd23-4591-91cb-a58906a761d3" + "2806f201-ed13-4586-80fa-326f0a398c57", + "2fb5b67c-28a4-4735-9302-5a82239f71d3", + "7ce74391-6603-493e-abfa-38c6cfc90a43", + 5344, + request_id: "2fbb3f1f-54ff-404b-816a-68dfa9b2db4f" )) assert response.code != "400" end def test_create_payment_transaction_2 response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( - "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - "18784388-b8a1-407c-bad5-2a6c5339a77a", - "bdf3cc73-c818-4ef8-a203-60ff592792fe", - 7737, + "2806f201-ed13-4586-80fa-326f0a398c57", + "2fb5b67c-28a4-4735-9302-5a82239f71d3", + "7ce74391-6603-493e-abfa-38c6cfc90a43", + 5344, products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}], - request_id: "7d67f75a-5c8b-4264-ba4d-a220bf88c88e" - )) - assert response.code != "400" - end - - def test_create_payment_transaction_3 - response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( - "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - "18784388-b8a1-407c-bad5-2a6c5339a77a", - "bdf3cc73-c818-4ef8-a203-60ff592792fe", - 7737, - metadata: "{\"key\":\"value\"}", - products: [{"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", + "other":"{}"}], + request_id: "5b20cbc5-795e-463e-bc9c-d645317a46b8" + )) + assert response.code != "400" + end + + def test_create_payment_transaction_3 + response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( + "2806f201-ed13-4586-80fa-326f0a398c57", + "2fb5b67c-28a4-4735-9302-5a82239f71d3", + "7ce74391-6603-493e-abfa-38c6cfc90a43", + 5344, + metadata: "{\"key\":\"value\"}", + products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "42165fc1-ad2b-422c-9ad4-7a2b06f5a10f" + request_id: "8414273b-f9b9-4d7c-9016-a811660a23ca" )) assert response.code != "400" end def test_create_payment_transaction_4 response = $client.send(Pokepay::Request::CreatePaymentTransaction.new( - "9f861c26-f0ca-4b2b-8b7d-1b2f394557f7", - "18784388-b8a1-407c-bad5-2a6c5339a77a", - "bdf3cc73-c818-4ef8-a203-60ff592792fe", - 7737, - description: "HlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9", + "2806f201-ed13-4586-80fa-326f0a398c57", + "2fb5b67c-28a4-4735-9302-5a82239f71d3", + "7ce74391-6603-493e-abfa-38c6cfc90a43", + 5344, + description: "q44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5", metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "6ad79f33-4be6-4e00-99b9-eca699fa8e64" + request_id: "144dff31-7143-44a8-8fb5-ce884961b3a8" )) assert response.code != "400" end def test_create_cpm_transaction_0 response = $client.send(Pokepay::Request::CreateCpmTransaction.new( - "jMgk8QSZwJ1udEIb7zDJ6K", - "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - 4884.0 + "TSFyNtopqI6bCrDgQTiBz8", + "14fc35e8-a5e0-4e8c-aeef-3970553942ba", + 6389.0 )) assert response.code != "400" end def test_create_cpm_transaction_1 response = $client.send(Pokepay::Request::CreateCpmTransaction.new( - "jMgk8QSZwJ1udEIb7zDJ6K", - "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - 4884.0, - request_id: "fb9e0f30-8d3a-4e08-ad27-35c422d3be7f" + "TSFyNtopqI6bCrDgQTiBz8", + "14fc35e8-a5e0-4e8c-aeef-3970553942ba", + 6389.0, + request_id: "21495329-42f6-4c21-a731-fa2de14eb408" )) assert response.code != "400" end def test_create_cpm_transaction_2 response = $client.send(Pokepay::Request::CreateCpmTransaction.new( - "jMgk8QSZwJ1udEIb7zDJ6K", - "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - 4884.0, + "TSFyNtopqI6bCrDgQTiBz8", + "14fc35e8-a5e0-4e8c-aeef-3970553942ba", + 6389.0, products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, - "is_discounted": false, - "other":"{}"}, {"jan_code":"abc", - "name":"name1", - "unit_price":100, - "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "23667b47-a8f1-46bf-a438-206a38759b97" + request_id: "7191fee4-1fba-4226-8299-b2a5a1b71efa" )) assert response.code != "400" end def test_create_cpm_transaction_3 response = $client.send(Pokepay::Request::CreateCpmTransaction.new( - "jMgk8QSZwJ1udEIb7zDJ6K", - "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - 4884.0, + "TSFyNtopqI6bCrDgQTiBz8", + "14fc35e8-a5e0-4e8c-aeef-3970553942ba", + 6389.0, metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "d06e9347-04e9-4b68-8632-23298ca3f192" + request_id: "1bca217e-629a-4283-911d-00be90c727fe" )) assert response.code != "400" end def test_create_cpm_transaction_4 response = $client.send(Pokepay::Request::CreateCpmTransaction.new( - "jMgk8QSZwJ1udEIb7zDJ6K", - "18bed4da-27d4-4c23-91db-b3c5b1944e6b", - 4884.0, - description: "zo2GN3QYDG6CZS1PVe5LZzi2NmWBluHrzflOytNd3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pP", + "TSFyNtopqI6bCrDgQTiBz8", + "14fc35e8-a5e0-4e8c-aeef-3970553942ba", + 6389.0, + description: "DmxXKufPIjjJpz", metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "338ac73d-0ec8-4345-b5b7-80b49109483c" + request_id: "57a1b62e-e405-4dd8-8bd0-daa541ddc4d3" )) assert response.code != "400" end def test_create_transfer_transaction_0 response = $client.send(Pokepay::Request::CreateTransferTransaction.new( - "3a769fe5-ee23-42bf-947c-a065feae4e58", - "25fadf3a-fb31-4d02-ab0e-d173863896c8", - "01bf5cb4-a152-4eb2-8d09-9367e182b608", - 9687.0 + "0e45ff1e-39d2-4f5c-8385-d41f53e917ab", + "8013a725-4b4d-458c-96bf-ae19402967d9", + "60908aa5-88a3-487e-9d4d-d95602faa57e", + 2680.0 )) assert response.code != "400" end def test_create_transfer_transaction_1 response = $client.send(Pokepay::Request::CreateTransferTransaction.new( - "3a769fe5-ee23-42bf-947c-a065feae4e58", - "25fadf3a-fb31-4d02-ab0e-d173863896c8", - "01bf5cb4-a152-4eb2-8d09-9367e182b608", - 9687.0, - request_id: "37d4c4a4-dabf-4ab6-ba31-5fb48e82ab0b" + "0e45ff1e-39d2-4f5c-8385-d41f53e917ab", + "8013a725-4b4d-458c-96bf-ae19402967d9", + "60908aa5-88a3-487e-9d4d-d95602faa57e", + 2680.0, + request_id: "38c1bbee-3409-4e1a-80e9-4a5ee03d38c1" )) assert response.code != "400" end def test_create_transfer_transaction_2 response = $client.send(Pokepay::Request::CreateTransferTransaction.new( - "3a769fe5-ee23-42bf-947c-a065feae4e58", - "25fadf3a-fb31-4d02-ab0e-d173863896c8", - "01bf5cb4-a152-4eb2-8d09-9367e182b608", - 9687.0, - description: "JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1", - request_id: "832b55cb-dc90-46d1-ac8d-0fb44328a863" + "0e45ff1e-39d2-4f5c-8385-d41f53e917ab", + "8013a725-4b4d-458c-96bf-ae19402967d9", + "60908aa5-88a3-487e-9d4d-d95602faa57e", + 2680.0, + description: "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uX", + request_id: "0bbd101f-7e4c-4663-8836-878cc1210ebe" )) assert response.code != "400" end def test_create_transfer_transaction_3 response = $client.send(Pokepay::Request::CreateTransferTransaction.new( - "3a769fe5-ee23-42bf-947c-a065feae4e58", - "25fadf3a-fb31-4d02-ab0e-d173863896c8", - "01bf5cb4-a152-4eb2-8d09-9367e182b608", - 9687.0, + "0e45ff1e-39d2-4f5c-8385-d41f53e917ab", + "8013a725-4b4d-458c-96bf-ae19402967d9", + "60908aa5-88a3-487e-9d4d-d95602faa57e", + 2680.0, metadata: "{\"key\":\"value\"}", - description: "6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdz", - request_id: "d7a5de29-8fda-47c0-ba8e-5e36d9e5fbff" + description: "e8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9Q", + request_id: "e1aa7179-7408-40a0-88d6-48feedf376aa" )) assert response.code != "400" end def test_create_exchange_transaction_0 response = $client.send(Pokepay::Request::CreateExchangeTransaction.new( - "20b64fab-07cb-4869-b736-77309ace2f45", - "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", - "1581d02e-d446-49dd-9ccc-47304c371c1c", - 4278 + "29af506f-9072-433f-9dc5-adf190c6ceb6", + "0dfe05ac-9e7b-44fa-ad98-1d4c01acf0a7", + "d910fda9-2d27-407b-8e19-bb249777445a", + 5288 )) assert response.code != "400" end def test_create_exchange_transaction_1 response = $client.send(Pokepay::Request::CreateExchangeTransaction.new( - "20b64fab-07cb-4869-b736-77309ace2f45", - "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", - "1581d02e-d446-49dd-9ccc-47304c371c1c", - 4278, - request_id: "2d65e7db-21c1-49d2-9916-3e538fbebde9" + "29af506f-9072-433f-9dc5-adf190c6ceb6", + "0dfe05ac-9e7b-44fa-ad98-1d4c01acf0a7", + "d910fda9-2d27-407b-8e19-bb249777445a", + 5288, + request_id: "4b788af9-2519-4e03-88e7-03888de2041b" )) assert response.code != "400" end def test_create_exchange_transaction_2 response = $client.send(Pokepay::Request::CreateExchangeTransaction.new( - "20b64fab-07cb-4869-b736-77309ace2f45", - "7760bacb-448b-498e-b0cf-e1a7d8d57bb7", - "1581d02e-d446-49dd-9ccc-47304c371c1c", - 4278, - description: "G2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJ", - request_id: "21073e70-f299-4d1a-ba1e-51d357a1b62e" + "29af506f-9072-433f-9dc5-adf190c6ceb6", + "0dfe05ac-9e7b-44fa-ad98-1d4c01acf0a7", + "d910fda9-2d27-407b-8e19-bb249777445a", + 5288, + description: "3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6", + request_id: "ccb3c780-4174-418b-ba61-e87d22ab14da" )) assert response.code != "400" end def test_bulk_create_transaction_0 response = $client.send(Pokepay::Request::BulkCreateTransaction.new( - "XKPSRM", - "YMVxniA", - "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH" + "sbYKCNybmAlkaNJiOvuR", + "sww", + "QSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06F" )) assert response.code != "400" end def test_bulk_create_transaction_1 response = $client.send(Pokepay::Request::BulkCreateTransaction.new( - "XKPSRM", - "YMVxniA", - "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH", - private_money_id: "19a91c59-b734-4147-80d0-a82a1224a44d" + "sbYKCNybmAlkaNJiOvuR", + "sww", + "QSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06F", + private_money_id: "e7f8843e-095f-4f45-b806-c700bcf9d201" )) assert response.code != "400" end def test_bulk_create_transaction_2 response = $client.send(Pokepay::Request::BulkCreateTransaction.new( - "XKPSRM", - "YMVxniA", - "NdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwH", - description: "gqa4p3NBV6jnDEmNin", - private_money_id: "2eb7b49f-ffed-4618-99fc-e4e0ce656897" + "sbYKCNybmAlkaNJiOvuR", + "sww", + "QSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06F", + description: "juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNB", + private_money_id: "258deac5-89bc-4788-8690-5bfe96d9f17a" )) assert response.code != "400" end def test_get_transaction_0 response = $client.send(Pokepay::Request::GetTransaction.new( - "3c306e03-fc9f-4742-819e-76eb7dc7271d" + "8c8656fb-9cb1-41a8-b4e6-7091d987bdb9" )) assert response.code != "400" end def test_refund_transaction_0 response = $client.send(Pokepay::Request::RefundTransaction.new( - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1" + "eef8d142-3597-4749-b0d4-fe3adaa1f8a6" )) assert response.code != "400" end def test_refund_transaction_1 response = $client.send(Pokepay::Request::RefundTransaction.new( - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - returning_point_expires_at: "2021-05-18T00:32:02.000000Z" + "eef8d142-3597-4749-b0d4-fe3adaa1f8a6", + returning_point_expires_at: "2024-01-19T16:11:15.000000Z" )) assert response.code != "400" end def test_refund_transaction_2 response = $client.send(Pokepay::Request::RefundTransaction.new( - "2af43fc3-7bfd-4ed1-a6ec-b0d747bdc8f1", - description: "4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2Jl", - returning_point_expires_at: "2021-08-12T02:32:59.000000Z" + "eef8d142-3597-4749-b0d4-fe3adaa1f8a6", + description: "2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TO", + returning_point_expires_at: "2020-02-07T15:42:15.000000Z" )) assert response.code != "400" end def test_get_transaction_by_request_id_0 response = $client.send(Pokepay::Request::GetTransactionByRequestId.new( - "0ed68ecd-85d3-4714-bcd1-033669dd0e2b" + "8bfa1c08-f556-4d4e-b1be-6a03ad5ebfcb" )) assert response.code != "400" end def test_create_external_transaction_0 response = $client.send(Pokepay::Request::CreateExternalTransaction.new( - "82bbdb9d-8356-4e38-9c97-731155d767e4", - "c161298b-00af-49d2-88d9-03531d9fc0c6", - "4d772685-d144-4ae9-a7e7-6873865779e1", - 7886 + "4cea0c5c-5d43-4d59-abe7-5d61e5c67c4e", + "8929edac-bbfb-4c89-b6ed-86864817cea7", + "fd2f77e1-c3d3-4dda-97aa-5aca812cc3ee", + 1927 )) assert response.code != "400" end def test_create_external_transaction_1 response = $client.send(Pokepay::Request::CreateExternalTransaction.new( - "82bbdb9d-8356-4e38-9c97-731155d767e4", - "c161298b-00af-49d2-88d9-03531d9fc0c6", - "4d772685-d144-4ae9-a7e7-6873865779e1", - 7886, - request_id: "7cbf90a1-a822-4b22-adc0-bc343a43ad50" + "4cea0c5c-5d43-4d59-abe7-5d61e5c67c4e", + "8929edac-bbfb-4c89-b6ed-86864817cea7", + "fd2f77e1-c3d3-4dda-97aa-5aca812cc3ee", + 1927, + request_id: "ae11e487-1431-4090-ac2a-9fbf0b9e4384" )) assert response.code != "400" end def test_create_external_transaction_2 response = $client.send(Pokepay::Request::CreateExternalTransaction.new( - "82bbdb9d-8356-4e38-9c97-731155d767e4", - "c161298b-00af-49d2-88d9-03531d9fc0c6", - "4d772685-d144-4ae9-a7e7-6873865779e1", - 7886, + "4cea0c5c-5d43-4d59-abe7-5d61e5c67c4e", + "8929edac-bbfb-4c89-b6ed-86864817cea7", + "fd2f77e1-c3d3-4dda-97aa-5aca812cc3ee", + 1927, products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, - "other":"{}"}], - request_id: "ce67ec62-5417-4af1-9aee-5c30fdbb3e95" - )) - assert response.code != "400" - end - - def test_create_external_transaction_3 - response = $client.send(Pokepay::Request::CreateExternalTransaction.new( - "82bbdb9d-8356-4e38-9c97-731155d767e4", - "c161298b-00af-49d2-88d9-03531d9fc0c6", - "4d772685-d144-4ae9-a7e7-6873865779e1", - 7886, - metadata: "{\"key\":\"value\"}", - products: [{"jan_code":"abc", + "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"}], + request_id: "8dce3908-94bc-4793-b211-760788136513" + )) + assert response.code != "400" + end + + def test_create_external_transaction_3 + response = $client.send(Pokepay::Request::CreateExternalTransaction.new( + "4cea0c5c-5d43-4d59-abe7-5d61e5c67c4e", + "8929edac-bbfb-4c89-b6ed-86864817cea7", + "fd2f77e1-c3d3-4dda-97aa-5aca812cc3ee", + 1927, + metadata: "{\"key\":\"value\"}", + products: [{"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "e8a6fd63-0375-4a18-818a-9fc9e853672a" + request_id: "f601655d-5b79-4e2d-a8d6-346a53269159" )) assert response.code != "400" end def test_create_external_transaction_4 response = $client.send(Pokepay::Request::CreateExternalTransaction.new( - "82bbdb9d-8356-4e38-9c97-731155d767e4", - "c161298b-00af-49d2-88d9-03531d9fc0c6", - "4d772685-d144-4ae9-a7e7-6873865779e1", - 7886, - description: "8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJ", + "4cea0c5c-5d43-4d59-abe7-5d61e5c67c4e", + "8929edac-bbfb-4c89-b6ed-86864817cea7", + "fd2f77e1-c3d3-4dda-97aa-5aca812cc3ee", + 1927, + description: "ZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYe", metadata: "{\"key\":\"value\"}", products: [{"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, + "is_discounted": false, + "other":"{}"}, {"jan_code":"abc", + "name":"name1", + "unit_price":100, + "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}, {"jan_code":"abc", "name":"name1", "unit_price":100, "price": 100, + "quantity": 1, "is_discounted": false, "other":"{}"}], - request_id: "750722eb-dd49-47f6-949b-24da4059d2ee" + request_id: "7d1fa0ce-bfae-4d37-95c3-b33438410b0c" )) assert response.code != "400" end def test_refund_external_transaction_0 response = $client.send(Pokepay::Request::RefundExternalTransaction.new( - "7141b1d2-93ce-4ba0-8ec1-1cf697f2e9b7" + "96eee591-12e4-414f-8d68-9f3ed087ec07" )) assert response.code != "400" end def test_refund_external_transaction_1 response = $client.send(Pokepay::Request::RefundExternalTransaction.new( - "7141b1d2-93ce-4ba0-8ec1-1cf697f2e9b7", - description: "oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4h" + "96eee591-12e4-414f-8d68-9f3ed087ec07", + description: "cXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5k" + )) + assert response.code != "400" + end + + def test_get_external_transaction_by_request_id_0 + response = $client.send(Pokepay::Request::GetExternalTransactionByRequestId.new( + "bf8ef162-059c-4ae7-b39c-c69deccaaa20" )) assert response.code != "400" end @@ -2550,189 +2589,189 @@ def test_list_transfers_0 def test_list_transfers_1 response = $client.send(Pokepay::Request::ListTransfers.new( - description: "G6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV" + description: "6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8E" )) assert response.code != "400" end def test_list_transfers_2 response = $client.send(Pokepay::Request::ListTransfers.new( - transfer_types: ["campaign", "transfer", "coupon", "cashback", "payment"], - description: "z14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOWVNqKCYgaN6maSZWJn127yVjYZzSkjksojB4PnV9sBfF1BkHf1A8" + transfer_types: ["transfer", "campaign"], + description: "62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMM" )) assert response.code != "400" end def test_list_transfers_3 response = $client.send(Pokepay::Request::ListTransfers.new( - transaction_types: ["cashback", "transfer", "expire", "topup"], - transfer_types: ["payment", "campaign", "exchange", "topup", "expire", "coupon", "cashback", "transfer"], - description: "I5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C" + transaction_types: ["payment", "cashback", "exchange", "topup", "transfer"], + transfer_types: ["transfer", "exchange", "payment", "cashback", "expire"], + description: "DeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp" )) assert response.code != "400" end def test_list_transfers_4 response = $client.send(Pokepay::Request::ListTransfers.new( - is_modified: true, - transaction_types: ["cashback", "transfer", "payment", "topup"], - transfer_types: ["topup", "payment", "cashback"], - description: "hZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fLxPU1GvU5" + is_modified: false, + transaction_types: ["transfer", "expire"], + transfer_types: ["transfer"], + description: "h1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9a" )) assert response.code != "400" end def test_list_transfers_5 response = $client.send(Pokepay::Request::ListTransfers.new( - private_money_id: "756e8b6f-d54a-4a6e-8836-7b9aa432b39e", + private_money_id: "fb16ae71-09a5-4ea9-b2f0-9f5999151ebd", is_modified: true, - transaction_types: ["cashback", "payment"], - transfer_types: ["expire", "topup", "exchange", "coupon", "cashback", "payment", "campaign", "transfer"], - description: "mDSuxOmphkziTG6p4H" + transaction_types: ["expire", "topup", "payment", "exchange"], + transfer_types: ["payment", "exchange", "campaign", "expire", "coupon", "transfer", "topup"], + description: "7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2Hv" )) assert response.code != "400" end def test_list_transfers_6 response = $client.send(Pokepay::Request::ListTransfers.new( - transaction_id: "6c924988-2fac-4d73-be4c-ba65f1e586c9", - private_money_id: "f563105d-0b63-433c-8e19-9089b8670c72", + transaction_id: "88835889-9ec0-494b-a1c9-7cf9aa271e93", + private_money_id: "18333db1-da64-40de-924b-0875311e672f", is_modified: true, - transaction_types: ["topup", "cashback"], - transfer_types: ["exchange", "expire"], - description: "JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9Yu" + transaction_types: ["cashback", "expire", "exchange", "transfer", "payment"], + transfer_types: ["campaign", "expire", "exchange", "transfer", "topup", "coupon"], + description: "mdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkj" )) assert response.code != "400" end def test_list_transfers_7 response = $client.send(Pokepay::Request::ListTransfers.new( - customer_name: "KsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1wnjIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXH", - transaction_id: "fcbcc1a5-4a92-4a8d-870a-23d365c8b97d", - private_money_id: "1b07a123-ec2d-4656-9767-ecd67903e927", - is_modified: false, - transaction_types: ["exchange", "expire", "payment", "cashback", "transfer"], - transfer_types: ["topup", "exchange", "coupon", "expire", "cashback", "campaign", "payment"], - description: "1wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Ho" + customer_name: "cagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbT", + transaction_id: "97d8027c-d1df-4b1b-9a98-b22b550a3192", + private_money_id: "5a533d72-30e8-4590-aedc-1c5cfb747dfb", + is_modified: true, + transaction_types: ["transfer"], + transfer_types: ["campaign", "exchange", "payment", "transfer", "topup"], + description: "zlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4" )) assert response.code != "400" end def test_list_transfers_8 response = $client.send(Pokepay::Request::ListTransfers.new( - customer_id: "78bb4967-bd05-4214-a6b0-e86b4f1fab38", - customer_name: "xuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8", - transaction_id: "9e59eb11-cf66-4d10-9b6d-c40f4e141921", - private_money_id: "a7d8b2b3-88bd-41e0-8651-e9feedc2402f", + customer_id: "7618b7bc-70c2-4b54-b2c9-72e48765ff4c", + customer_name: "JZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4", + transaction_id: "aebafc95-d346-4ddd-b2de-6c1f709882a1", + private_money_id: "a462f935-e5c5-476e-b7ed-4a73fdd082a8", is_modified: true, - transaction_types: ["transfer", "expire", "cashback", "exchange"], - transfer_types: ["expire", "exchange", "transfer", "payment", "topup"], - description: "bGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsird" + transaction_types: ["exchange", "cashback", "payment", "topup", "expire"], + transfer_types: ["payment", "expire", "coupon", "topup", "campaign", "cashback", "transfer", "exchange"], + description: "P7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4s" )) assert response.code != "400" end def test_list_transfers_9 response = $client.send(Pokepay::Request::ListTransfers.new( - shop_name: "b8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe", - customer_id: "293c3c2c-1733-429b-b035-fcc211734ff2", - customer_name: "uF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLv", - transaction_id: "a76fc7ae-3bca-4b02-8064-e3b10a1d36b8", - private_money_id: "d3fa4246-66b7-4ced-a773-de567fb84543", - is_modified: true, - transaction_types: ["payment", "transfer"], - transfer_types: ["exchange", "topup", "cashback", "campaign"], - description: "3pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7" + shop_name: "IXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gF", + customer_id: "a05fa2a0-821b-41c9-8b3c-be834e4c2b22", + customer_name: "1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9C", + transaction_id: "276861d1-333d-4d5f-9f2a-9206b00ae910", + private_money_id: "50ddae93-11bb-4880-9771-43f6c293fe36", + is_modified: false, + transaction_types: ["cashback", "topup"], + transfer_types: ["payment", "topup"], + description: "d8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8" )) assert response.code != "400" end def test_list_transfers_10 response = $client.send(Pokepay::Request::ListTransfers.new( - shop_id: "96063097-7148-4834-bcc2-2b542745e7b2", - shop_name: "dLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eH", - customer_id: "98d160ee-3bce-4079-9cb5-1a0601a109b4", - customer_name: "9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnl", - transaction_id: "0834f167-d21f-4e27-8704-a0188cb3bb01", - private_money_id: "e5797c89-913d-4d0e-a2b8-40a6168f505d", + shop_id: "3f3f40a6-505d-40ed-a888-d0998f411bef", + shop_name: "qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5", + customer_id: "0a5d469c-cf3a-4bd2-ae35-d7769da3f599", + customer_name: "eMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra", + transaction_id: "f3d53414-b9b1-4642-8d45-e672258d5f36", + private_money_id: "89cf97a2-7ee0-47a6-bdb2-5ba0b7f396e7", is_modified: false, - transaction_types: ["topup", "payment", "exchange", "expire", "transfer", "cashback"], - transfer_types: ["exchange", "topup", "coupon", "cashback"], - description: "eP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNH" + transaction_types: ["cashback", "topup", "transfer", "expire", "payment", "exchange"], + transfer_types: ["expire", "exchange", "payment", "coupon", "transfer", "campaign", "topup"], + description: "nkoel9aDgdNSfmE5De5bTvMyH" )) assert response.code != "400" end def test_list_transfers_11 response = $client.send(Pokepay::Request::ListTransfers.new( - per_page: 9411, - shop_id: "e38a02c1-943f-4a12-956e-343d0dab3e81", - shop_name: "qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26kEZNJtfvLzUTMMVxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015U", - customer_id: "4ee9c33e-9bc4-4039-b171-0fe0c2f5e900", - customer_name: "TdX", - transaction_id: "b90d6aa9-883e-4480-84ee-d9ebc868e291", - private_money_id: "d5469691-3f11-44c0-8c1e-e05bc3c7b948", - is_modified: true, - transaction_types: ["expire", "payment", "exchange", "transfer", "topup"], - transfer_types: ["payment", "cashback", "coupon", "transfer", "expire", "campaign", "topup", "exchange"], - description: "28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S" + per_page: 9500, + shop_id: "f2e34398-29f0-42e4-92b2-c05347aff9a5", + shop_name: "WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7", + customer_id: "0c99275a-0918-4558-92a8-7ad4bdd55de6", + customer_name: "NFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ7", + transaction_id: "690d1c80-d2a5-49b1-951a-ba24c2bf351a", + private_money_id: "3180df2a-96c3-414c-abfd-578c81837bae", + is_modified: false, + transaction_types: ["transfer"], + transfer_types: ["coupon"], + description: "HUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2UL" )) assert response.code != "400" end def test_list_transfers_12 response = $client.send(Pokepay::Request::ListTransfers.new( - page: 3297, - per_page: 441, - shop_id: "955006fc-2f46-4207-9653-5e4434697ccd", - shop_name: "5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5r", - customer_id: "7eb27e58-03c0-4fb0-9b72-e8561aec20a1", - customer_name: "mpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDf", - transaction_id: "1f3e21d5-f316-4cf4-807d-2fb459bdb925", - private_money_id: "982f1d5e-d2d9-4167-8979-01da54ab9d00", - is_modified: false, - transaction_types: ["cashback", "payment", "expire", "topup", "transfer"], - transfer_types: ["exchange", "payment", "expire", "campaign"], - description: "ShoExxXDz" + page: 2347, + per_page: 1781, + shop_id: "4795060b-12e6-4db3-8b7f-914cb8b56a94", + shop_name: "Om0u6OdTYvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkE", + customer_id: "5d7c5eaa-f7f7-4b48-9642-40af7cf3843a", + customer_name: "WOqOmjPQjCJIqduyEzf", + transaction_id: "ecdad846-1834-4769-a83d-b6a3b8ddc6a2", + private_money_id: "889f92c5-0dcd-49ee-b1c9-8c64aa302da7", + is_modified: true, + transaction_types: ["cashback", "topup", "exchange", "transfer", "payment"], + transfer_types: ["coupon", "cashback", "campaign", "expire"], + description: "Tmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3u" )) assert response.code != "400" end def test_list_transfers_13 response = $client.send(Pokepay::Request::ListTransfers.new( - to: "2022-04-04T13:09:11.000000Z", - page: 622, - per_page: 5213, - shop_id: "84ad7475-84bd-4aaa-9f30-bd4020d89d8a", - shop_name: "mtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq", - customer_id: "b20ca7b2-a03e-49c3-90a5-b390f50ba945", - customer_name: "ph5LyiHrKKZ", - transaction_id: "3fedc792-2f3a-46c8-8090-5459edb3ce95", - private_money_id: "46ffd7a7-b5e5-4add-acc1-a3090d5b7b9d", - is_modified: true, - transaction_types: ["cashback", "topup", "transfer", "payment"], - transfer_types: ["exchange", "coupon", "payment"], - description: "fNhFwjSSUkqouGV2ULftf3KLiOm0u6Od" + to: "2024-01-14T05:29:03.000000Z", + page: 1476, + per_page: 3400, + shop_id: "205e3ebd-da43-4409-a4a0-6f1a212ae5c5", + shop_name: "3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTY", + customer_id: "c884d81c-e079-4643-956f-ec8785993e20", + customer_name: "Ea9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt", + transaction_id: "222b6c33-7a49-4c0f-9520-d25668c91d0e", + private_money_id: "eb816512-2ccc-447f-b56a-e8e671200aef", + is_modified: false, + transaction_types: ["cashback", "payment"], + transfer_types: ["cashback", "exchange", "transfer", "coupon", "campaign", "topup", "expire", "payment"], + description: "821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUm" )) assert response.code != "400" end def test_list_transfers_14 response = $client.send(Pokepay::Request::ListTransfers.new( - from: "2021-06-05T17:48:04.000000Z", - to: "2024-02-27T08:22:21.000000Z", - page: 532, - per_page: 218, - shop_id: "51a32931-1a88-4419-978c-b74df4025183", - shop_name: "a6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYH", - customer_id: "97e5ea88-c68d-491f-bca8-f848de508515", - customer_name: "Or63hjnglJCcSZdRjCOwy", - transaction_id: "1e9be219-1b86-4e61-be70-00be2900f515", - private_money_id: "8a7d7a30-269c-476c-8ef3-9ae2daaeea9e", + from: "2022-12-10T09:24:52.000000Z", + to: "2021-07-25T19:32:46.000000Z", + page: 6618, + per_page: 3324, + shop_id: "ba286b8d-ed96-40b0-a543-52ccbc8bdf9f", + shop_name: "foUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZ", + customer_id: "7afd2ae8-1a80-458d-9549-3a776cc20ad5", + customer_name: "rsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dt", + transaction_id: "26c5edc2-8a24-423f-a8a4-b3751a2517e3", + private_money_id: "22566fa2-8dbd-435a-a428-c3241f164cb4", is_modified: false, - transaction_types: ["topup", "expire", "transfer", "exchange", "cashback"], - transfer_types: ["transfer", "exchange", "coupon"], - description: "U1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqI" + transaction_types: ["expire", "topup", "transfer", "payment", "cashback"], + transfer_types: ["exchange", "topup", "transfer"], + description: "mxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uva" )) assert response.code != "400" end @@ -2745,390 +2784,390 @@ def test_list_transfers_v2_0 def test_list_transfers_v2_1 response = $client.send(Pokepay::Request::ListTransfersV2.new( - to: "2023-04-24T11:52:04.000000Z" + to: "2023-05-03T19:18:45.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_2 response = $client.send(Pokepay::Request::ListTransfersV2.new( - from: "2021-02-28T21:44:07.000000Z", - to: "2020-06-20T16:05:34.000000Z" + from: "2020-06-21T14:46:24.000000Z", + to: "2021-11-24T11:20:02.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_3 response = $client.send(Pokepay::Request::ListTransfersV2.new( - description: "L8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcL", - from: "2022-05-07T07:33:39.000000Z", - to: "2021-02-26T05:13:40.000000Z" + description: "2Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zum", + from: "2021-06-17T22:57:58.000000Z", + to: "2020-05-02T02:10:38.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_4 response = $client.send(Pokepay::Request::ListTransfersV2.new( - transfer_types: ["expire", "cashback", "transfer", "campaign", "coupon"], - description: "IrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRf", - from: "2023-07-21T11:26:44.000000Z", - to: "2022-11-23T03:12:25.000000Z" + transfer_types: ["expire", "cashback", "campaign", "coupon", "exchange", "topup", "transfer", "payment"], + description: "mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowq", + from: "2020-06-14T10:18:31.000000Z", + to: "2022-08-27T21:00:31.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_5 response = $client.send(Pokepay::Request::ListTransfersV2.new( - per_page: 717, - transfer_types: ["transfer"], - description: "Ds9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98", - from: "2020-02-11T04:00:02.000000Z", - to: "2022-05-07T17:02:15.000000Z" + per_page: 867, + transfer_types: ["payment", "expire", "exchange"], + description: "K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6N", + from: "2022-09-16T09:16:26.000000Z", + to: "2023-08-15T02:45:41.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_6 response = $client.send(Pokepay::Request::ListTransfersV2.new( - prev_page_cursor_id: "1e74191c-0e2d-4e1e-895f-03afddabfe94", - per_page: 181, - transfer_types: ["exchange", "campaign", "cashback", "expire", "payment", "transfer", "topup", "coupon"], - description: "5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVY", - from: "2023-09-25T07:38:16.000000Z", - to: "2021-08-28T00:48:34.000000Z" + prev_page_cursor_id: "3e379615-3622-40e1-a9ab-5ac4da3f4b3a", + per_page: 157, + transfer_types: ["coupon", "transfer"], + description: "7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR", + from: "2021-04-05T06:39:38.000000Z", + to: "2020-02-17T22:22:19.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_7 response = $client.send(Pokepay::Request::ListTransfersV2.new( - next_page_cursor_id: "786c5ce8-1834-4f52-8dac-dc000b29450c", - prev_page_cursor_id: "88ec6fd7-f6a4-46b4-936a-840a0cb35793", - per_page: 654, - transfer_types: ["coupon"], - description: "u2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCb", - from: "2021-10-04T22:51:31.000000Z", - to: "2021-07-25T03:11:47.000000Z" + next_page_cursor_id: "8cb21b81-e7aa-40a7-91eb-df802a5c5881", + prev_page_cursor_id: "d8c043e8-4eb8-465e-a11b-8dda7a8dfa23", + per_page: 299, + transfer_types: ["exchange", "cashback"], + description: "OPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u", + from: "2021-06-03T11:54:54.000000Z", + to: "2023-02-10T00:37:35.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_8 response = $client.send(Pokepay::Request::ListTransfersV2.new( - transaction_types: ["cashback", "topup", "exchange"], - next_page_cursor_id: "49e56398-02f9-498f-8bd5-da82a90641a4", - prev_page_cursor_id: "a07d9779-cbfd-47c2-b08c-0abeb39dde94", - per_page: 136, - transfer_types: ["payment", "transfer", "cashback", "campaign"], - description: "FHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhq", - from: "2023-01-09T23:52:41.000000Z", - to: "2022-09-23T13:00:01.000000Z" + transaction_types: ["topup", "payment", "expire", "cashback", "transfer", "exchange"], + next_page_cursor_id: "5bec4cee-6f81-4bde-a5dc-47dd217737ce", + prev_page_cursor_id: "bb855f61-1a74-4e47-a8de-6dbfb8c6c606", + per_page: 637, + transfer_types: ["expire", "campaign", "payment", "topup", "exchange", "transfer", "coupon"], + description: "SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8", + from: "2021-11-27T05:19:55.000000Z", + to: "2023-11-24T11:05:02.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_9 response = $client.send(Pokepay::Request::ListTransfersV2.new( - is_modified: false, - transaction_types: ["payment", "expire", "cashback", "transfer"], - next_page_cursor_id: "0f0a9aca-721a-493c-a8d7-34c6b7765b7c", - prev_page_cursor_id: "3b9d9ff7-83a3-413b-8106-37d301940baa", - per_page: 604, - transfer_types: ["expire", "campaign", "cashback", "payment", "coupon", "transfer", "exchange", "topup"], - description: "Ezja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQ", - from: "2022-05-16T21:50:12.000000Z", - to: "2021-03-30T17:45:55.000000Z" + is_modified: true, + transaction_types: ["payment", "expire"], + next_page_cursor_id: "3405f240-8da3-4c0a-aac9-83e9c7fb400a", + prev_page_cursor_id: "ac2d57bd-0f35-4b3d-b1d9-31545b075671", + per_page: 409, + transfer_types: ["exchange", "cashback", "transfer"], + description: "ftsBTkZDKCnQigIBcgyeH", + from: "2020-05-21T18:04:32.000000Z", + to: "2021-12-18T22:38:42.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_10 response = $client.send(Pokepay::Request::ListTransfersV2.new( - private_money_id: "8325ccc8-e2f9-4169-862b-4f22fde3c66f", + private_money_id: "c5f8a9aa-5e59-4142-a71f-ff58bbe5baa7", is_modified: false, - transaction_types: ["expire", "topup", "payment", "cashback", "transfer", "exchange"], - next_page_cursor_id: "cc574e88-c45d-4bc8-a0f1-e2fb9e931459", - prev_page_cursor_id: "48e8f195-8779-4825-9f4b-dc1509dc54b8", - per_page: 200, - transfer_types: ["transfer", "exchange"], - description: "GU45uzPdd", - from: "2024-01-01T18:14:23.000000Z", - to: "2023-10-07T02:12:34.000000Z" + transaction_types: ["topup", "exchange", "payment", "expire", "cashback"], + next_page_cursor_id: "746118e1-b352-4716-8448-99896c751b33", + prev_page_cursor_id: "cd354978-16e1-4b35-9d5d-d2da81e9c794", + per_page: 473, + transfer_types: ["campaign", "payment", "cashback", "expire", "transfer"], + description: "kmDiQZVmfdCV9wGJUROgp1VTN", + from: "2022-09-01T17:25:32.000000Z", + to: "2023-05-17T17:53:40.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_11 response = $client.send(Pokepay::Request::ListTransfersV2.new( - transaction_id: "5301ba98-1230-42e4-830f-34cafde925a2", - private_money_id: "10a14565-72ce-4e99-8e80-3094f99e8676", + transaction_id: "4d00454b-83dd-473e-b35e-378fe7e694e2", + private_money_id: "e4e51c6b-efb2-4ff7-b68c-d33dc6558cda", is_modified: false, - transaction_types: ["exchange"], - next_page_cursor_id: "786b5f8f-7973-4931-a896-fb3fcb85de98", - prev_page_cursor_id: "16cc8c94-13f6-42df-9219-346dde3ce47e", - per_page: 869, - transfer_types: ["payment", "cashback", "exchange", "coupon", "transfer"], - description: "brAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0", - from: "2022-07-17T06:33:19.000000Z", - to: "2024-01-06T19:53:08.000000Z" + transaction_types: ["cashback", "exchange", "payment", "topup", "transfer"], + next_page_cursor_id: "18f7768c-ad87-4008-bc06-b1dedd718fa9", + prev_page_cursor_id: "535854c3-8a80-4f5a-b775-f61caba12f7d", + per_page: 293, + transfer_types: ["campaign", "topup", "expire"], + description: "vag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBW", + from: "2022-04-03T13:05:47.000000Z", + to: "2024-04-05T13:30:11.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_12 response = $client.send(Pokepay::Request::ListTransfersV2.new( - customer_name: "G0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvT", - transaction_id: "67f248ff-d3ed-4517-a61d-d1eb3ef959d3", - private_money_id: "39bd4c70-3764-4ee3-bf9d-7a9147de42cc", - is_modified: true, - transaction_types: ["payment", "cashback", "topup", "expire"], - next_page_cursor_id: "d66771ca-a929-4b51-891c-68523389333e", - prev_page_cursor_id: "ded5f4e9-a29c-4ffc-b55f-47f6f497bed7", - per_page: 222, - transfer_types: ["transfer", "payment", "coupon", "cashback", "exchange", "campaign", "topup"], - description: "qbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EE", - from: "2022-12-30T12:00:08.000000Z", - to: "2022-09-01T12:57:42.000000Z" + customer_name: "dXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2w", + transaction_id: "269b4e76-5740-4702-9e11-cdb3b42129b6", + private_money_id: "6f5b11d9-0a3a-4a2c-9c75-0945346f70b4", + is_modified: false, + transaction_types: ["transfer"], + next_page_cursor_id: "3c8b65bf-35b0-472f-8969-cc83cf27bba4", + prev_page_cursor_id: "fc4fad85-a10e-48d2-b4dc-9f34aaaa3814", + per_page: 202, + transfer_types: ["campaign", "expire", "topup", "payment", "transfer", "exchange", "coupon", "cashback"], + description: "OrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXW", + from: "2023-05-07T02:16:20.000000Z", + to: "2023-10-08T23:00:15.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_13 response = $client.send(Pokepay::Request::ListTransfersV2.new( - customer_id: "9e4cd36d-0aae-429b-9dd1-a677220fb134", - customer_name: "mJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5o", - transaction_id: "d5d5907a-16c8-4c44-aea2-a38ae2e9b1b0", - private_money_id: "0ce2db90-10e9-4892-bc8f-099326e0609a", + customer_id: "5113ba87-694b-49fd-957a-5381174e078a", + customer_name: "kNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajG", + transaction_id: "bd3e233c-75ca-4ef2-bb86-0229952c428f", + private_money_id: "175ea31e-fa9b-4fc3-80ca-f63e9e4dc526", is_modified: true, - transaction_types: ["expire", "transfer", "cashback", "topup", "exchange"], - next_page_cursor_id: "9859849b-0e1b-438a-b9d2-cfaa3919a430", - prev_page_cursor_id: "1e4c8d6e-961c-411b-81aa-20a7606e9f51", - per_page: 236, - transfer_types: ["topup", "exchange", "payment"], - description: "z7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvf", - from: "2022-03-09T22:13:49.000000Z", - to: "2024-01-10T05:02:11.000000Z" + transaction_types: ["topup", "expire", "payment"], + next_page_cursor_id: "4a83ca5b-c230-442d-8e9e-62d90c18e6d5", + prev_page_cursor_id: "a1005a57-c2de-4a2b-96ad-55a354f344df", + per_page: 441, + transfer_types: ["expire", "exchange", "payment", "coupon", "topup", "transfer", "cashback"], + description: "uJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ", + from: "2024-02-18T10:47:40.000000Z", + to: "2023-12-04T20:12:21.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_14 response = $client.send(Pokepay::Request::ListTransfersV2.new( - shop_name: "Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8", - customer_id: "f84c0fae-8671-4045-92fb-a25e36318b3e", - customer_name: "1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9", - transaction_id: "b8368dc9-3490-4e44-8490-6d93394d4095", - private_money_id: "2934a934-e0c6-4d1a-bccc-945b27afb95d", + shop_name: "bTy", + customer_id: "e0991056-3b14-4b90-89e7-2d09b188aed6", + customer_name: "7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxob", + transaction_id: "71a7105a-a739-4725-9a43-da3f5bacfdf0", + private_money_id: "c0c4ac4e-81ca-4a47-9adc-a8a4fb07eb8c", is_modified: false, - transaction_types: ["expire", "cashback", "transfer", "payment", "exchange"], - next_page_cursor_id: "ce4f63a2-a763-4e54-8425-62c3458bbd61", - prev_page_cursor_id: "577317e6-a2f5-4b06-a30d-6e0764523ce0", - per_page: 591, - transfer_types: ["topup", "campaign", "expire"], - description: "50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MW", - from: "2021-05-31T10:22:22.000000Z", - to: "2022-11-13T18:05:41.000000Z" + transaction_types: ["payment"], + next_page_cursor_id: "a412eaab-aa22-4936-8c9e-6dfa9b256054", + prev_page_cursor_id: "adaed457-6903-43be-895d-2ee2d3616293", + per_page: 101, + transfer_types: ["topup", "transfer"], + description: "afdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGx", + from: "2022-11-25T05:47:02.000000Z", + to: "2024-03-14T01:51:23.000000Z" )) assert response.code != "400" end def test_list_transfers_v2_15 response = $client.send(Pokepay::Request::ListTransfersV2.new( - shop_id: "dd34396c-10f8-414a-8d71-9e655904d196", - shop_name: "EoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4", - customer_id: "930a0e29-6b6a-428f-b718-6f7099d5e3fb", - customer_name: "0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPM", - transaction_id: "30175c7a-6f58-456e-8164-bbc4f6b1b872", - private_money_id: "7af290dc-8205-40d9-b95b-59828e008db6", + shop_id: "0485304a-f9ac-4400-8f2f-8d0eceedec3d", + shop_name: "NTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12", + customer_id: "c668b0dc-584d-45de-a899-5a0cb7d2aaa1", + customer_name: "V2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2", + transaction_id: "88fb4def-3727-4351-8f5c-f1fb364f8b23", + private_money_id: "1c2353a2-3e69-407d-8159-c0cd26e472e3", is_modified: false, - transaction_types: ["expire", "payment", "topup"], - next_page_cursor_id: "478f9181-11d1-4fb9-b8bd-80fb6c039586", - prev_page_cursor_id: "ae842453-150a-42ce-9830-a07a3220169b", - per_page: 153, - transfer_types: ["cashback", "coupon", "exchange", "expire", "transfer", "topup", "campaign"], - description: "ix", - from: "2022-05-30T00:08:09.000000Z", - to: "2023-12-14T02:17:58.000000Z" + transaction_types: ["transfer", "expire", "payment"], + next_page_cursor_id: "697af85b-f88e-4bd7-8917-667b37d78588", + prev_page_cursor_id: "5de39281-fe45-489a-aef5-e2085672a299", + per_page: 681, + transfer_types: ["coupon"], + description: "CW3jFlgob7yobgqdqF", + from: "2021-02-08T17:48:13.000000Z", + to: "2022-07-25T16:35:49.000000Z" )) assert response.code != "400" end def test_list_organizations_0 response = $client.send(Pokepay::Request::ListOrganizations.new( - "fd11d67f-90f1-4aea-bfe7-8524bf4859f6" + "654f5056-d996-4868-bef0-1890baeca3c3" )) assert response.code != "400" end def test_list_organizations_1 response = $client.send(Pokepay::Request::ListOrganizations.new( - "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", - code: "Ncs" + "654f5056-d996-4868-bef0-1890baeca3c3", + code: "bdmmx3" )) assert response.code != "400" end def test_list_organizations_2 response = $client.send(Pokepay::Request::ListOrganizations.new( - "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", - name: "QLQxA", - code: "tJmVTcXWtK" + "654f5056-d996-4868-bef0-1890baeca3c3", + name: "jJ", + code: "Yo72YjP" )) assert response.code != "400" end def test_list_organizations_3 response = $client.send(Pokepay::Request::ListOrganizations.new( - "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", - per_page: 5974, - name: "kN", - code: "d35" + "654f5056-d996-4868-bef0-1890baeca3c3", + per_page: 5388, + name: "pod5QaLC", + code: "TmFLxumOn" )) assert response.code != "400" end def test_list_organizations_4 response = $client.send(Pokepay::Request::ListOrganizations.new( - "fd11d67f-90f1-4aea-bfe7-8524bf4859f6", - page: 4321, - per_page: 9262, - name: "uBKlwozbM8", - code: "BIp6WWFto" + "654f5056-d996-4868-bef0-1890baeca3c3", + page: 4761, + per_page: 6007, + name: "upx", + code: "16" )) assert response.code != "400" end def test_create_organization_0 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com" )) assert response.code != "400" end def test_create_organization_1 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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", - contact_name: "ASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com", + contact_name: "PBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpV" )) assert response.code != "400" end def test_create_organization_2 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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", - bank_account_holder_name: "7", - contact_name: "WZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com", + bank_account_holder_name: "」", + contact_name: "4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJYrKI48Uy" )) assert response.code != "400" end def test_create_organization_3 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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", - bank_account: "", - bank_account_holder_name: "X", - contact_name: "453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com", + bank_account: "4111", + bank_account_holder_name: "\\", + contact_name: "9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEe" )) assert response.code != "400" end def test_create_organization_4 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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", + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com", bank_account_type: "other", - bank_account: "5", - bank_account_holder_name: "/", - contact_name: "Adcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsX" + bank_account: "1898749", + bank_account_holder_name: ",", + contact_name: "43AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchk" )) assert response.code != "400" end def test_create_organization_5 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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", - bank_branch_code: "280", + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com", + bank_branch_code: "165", bank_account_type: "saving", - bank_account: "4217", - bank_account_holder_name: "ル", - contact_name: "pIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8" + bank_account: "300", + bank_account_holder_name: "ラ", + contact_name: "ZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RI" )) assert response.code != "400" end def test_create_organization_6 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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", - bank_branch_name: "diYCurcmVOPZzwM", - bank_branch_code: "871", + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com", + bank_branch_name: "GwbFSZ2qU3L", + bank_branch_code: "624", bank_account_type: "saving", - bank_account: "", - bank_account_holder_name: "キ", - contact_name: "pW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8" + bank_account: "5", + bank_account_holder_name: "\\", + contact_name: "3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7" )) assert response.code != "400" end def test_create_organization_7 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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", - bank_code: "", - bank_branch_name: "q15XpRuu89q3NykiRPYO2oQiAY", - bank_branch_code: "382", + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com", + bank_code: "4615", + bank_branch_name: "klIR5ig74Fkbtbb0Sl", + bank_branch_code: "219", bank_account_type: "other", - bank_account: "589", - bank_account_holder_name: "「", - contact_name: "SjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV" + bank_account: "7948", + bank_account_holder_name: "\\", + contact_name: "Hxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp9" )) assert response.code != "400" end def test_create_organization_8 response = $client.send(Pokepay::Request::CreateOrganization.new( - "M3mKKWyblmmAHRS", - "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", - ["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", - bank_name: "uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSp", - bank_code: "0682", - bank_branch_name: "QLy6PO73cHGKqjz0v27dHE8reh", - bank_branch_code: "", - bank_account_type: "current", - bank_account: "09", - bank_account_holder_name: "テ", - contact_name: "2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatDjCcJfOMaGd4kHySUJ" + "EXCUXyPfCabj", + "tMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGK", + ["f5fcbeea-2a7a-46a5-beb0-f376e4475ab2", "2319fabb-cdb7-4f64-a948-27455b78af2d"], + "8reh9b3v7z@qeYS.com", + "2n0EGsPPbv@QvYk.com", + bank_name: "ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5Y", + bank_code: "", + bank_branch_name: "VquVYsbDyy", + bank_branch_code: "292", + bank_account_type: "other", + bank_account: "534", + bank_account_holder_name: ".", + contact_name: "qoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJ" )) assert response.code != "400" end @@ -3141,15 +3180,15 @@ def test_list_shops_0 def test_list_shops_1 response = $client.send(Pokepay::Request::ListShops.new( - per_page: 7130 + per_page: 5064 )) assert response.code != "400" end def test_list_shops_2 response = $client.send(Pokepay::Request::ListShops.new( - page: 7961, - per_page: 6131 + page: 6150, + per_page: 1031 )) assert response.code != "400" end @@ -3157,325 +3196,325 @@ def test_list_shops_2 def test_list_shops_3 response = $client.send(Pokepay::Request::ListShops.new( with_disabled: true, - page: 3741, - per_page: 4684 + page: 516, + per_page: 3314 )) assert response.code != "400" end def test_list_shops_4 response = $client.send(Pokepay::Request::ListShops.new( - external_id: "48UyLazcda", - with_disabled: true, - page: 4543, - per_page: 8830 + external_id: "w", + with_disabled: false, + page: 986, + per_page: 1660 )) assert response.code != "400" end def test_list_shops_5 response = $client.send(Pokepay::Request::ListShops.new( - email: "g9M9b56VUQ@zIG7.com", - external_id: "r7fsBnFuG56tOVY8vi9Z9lrbTG", + email: "75stQD6SAh@41fZ.com", + external_id: "i84vybd1Jsf0jR3rzbwtxyn2FAh1zUed", with_disabled: false, - page: 2467, - per_page: 1897 + page: 4934, + per_page: 8487 )) assert response.code != "400" end def test_list_shops_6 response = $client.send(Pokepay::Request::ListShops.new( - tel: "03-19-6229", - email: "dPS2DfLew9@jsvL.com", - external_id: "XjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp", - with_disabled: true, - page: 5759, - per_page: 8627 + tel: "04934109886", + email: "vHVgjPvTnT@RbAG.com", + external_id: "JFBzSB", + with_disabled: false, + page: 5349, + per_page: 5597 )) assert response.code != "400" end def test_list_shops_7 response = $client.send(Pokepay::Request::ListShops.new( - address: "diJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAS", - tel: "028204669152", - email: "8jW2j8noWb@hryH.com", - external_id: "KQAP2bBeZkmIh2UeN7", + address: "N9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH", + tel: "064-399-326", + email: "N0T80aLvrK@oRyT.com", + external_id: "gPVT4AzeoZEOYuu1RyqlWwyCN", with_disabled: true, - page: 4607, - per_page: 4277 + page: 9062, + per_page: 6597 )) assert response.code != "400" end def test_list_shops_8 response = $client.send(Pokepay::Request::ListShops.new( - postal_code: "7747550", - address: "MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0S", - tel: "02-2481879", - email: "xGHxi6f0cu@W1Zh.com", - external_id: "tCHCm7yUfJm7F", - with_disabled: true, - page: 9576, - per_page: 403 + postal_code: "483-3967", + address: "00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0Yor", + tel: "0322631", + email: "4pFpuxUcIr@b43g.com", + external_id: "0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx", + with_disabled: false, + page: 1942, + per_page: 1073 )) assert response.code != "400" end def test_list_shops_9 response = $client.send(Pokepay::Request::ListShops.new( - name: "8YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5N", - postal_code: "0389723", - address: "qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9", - tel: "0728819628", - email: "VF2gH7EAnl@FEgM.com", - external_id: "mBN0T80aLvrKoRyTXgPVT4AzeoZ", - with_disabled: false, - page: 9020, - per_page: 9500 + name: "qLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhC", + postal_code: "4322619", + address: "FeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MI", + tel: "0518-4313", + email: "TlXa99m3El@a8zc.com", + external_id: "R94JgHtiXrfi45gdORj3Jla3Pfb8OgNhh", + with_disabled: true, + page: 9357, + per_page: 3629 )) assert response.code != "400" end def test_list_shops_10 response = $client.send(Pokepay::Request::ListShops.new( - private_money_id: "ee4d51fd-5a4f-4a59-be75-cef5577dd231", - name: "RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcN", - postal_code: "282-5219", - address: "0lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuw", - tel: "013981-0924", - email: "HLBFs4pFpu@xUcI.com", - external_id: "rb43g0nK7tb3btHVGJJQejQb3sdWf", - with_disabled: false, - page: 344, - per_page: 9090 + private_money_id: "4294a866-e4fb-4ddb-8251-6a6a3228145f", + name: "sClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqw", + postal_code: "5487162", + address: "qZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcG", + tel: "0080-547599", + email: "gPlxnzpf9X@cHDi.com", + external_id: "w8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNj", + with_disabled: true, + page: 7375, + per_page: 4400 )) assert response.code != "400" end def test_list_shops_11 response = $client.send(Pokepay::Request::ListShops.new( - organization_code: "RfZph94--4G--48o-gVrg65t-Su", - private_money_id: "f6bd24bc-8d9a-4506-8eed-2dac62e4700e", - name: "p3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDV", - postal_code: "6777462", - address: "eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKi", - tel: "060673665", - email: "qDH6cAdyVZ@n4o5.com", - external_id: "A5DSTN7FZ8Y8t8MIK7", - with_disabled: false, - page: 1530, - per_page: 78 + organization_code: "3O3UbVmd-", + private_money_id: "6c582c7c-e112-45b2-8024-7261075be237", + name: "llUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACIt", + postal_code: "946-1005", + address: "NfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa", + tel: "0939137673", + email: "qnjKtXS5ct@b0sU.com", + external_id: "amQiJ", + with_disabled: true, + page: 2018, + per_page: 9438 )) assert response.code != "400" end def test_create_shop_0 response = $client.send(Pokepay::Request::CreateShop.new( - "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV" )) assert response.code != "400" end def test_create_shop_1 response = $client.send(Pokepay::Request::CreateShop.new( - "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - organization_code: "5f--P--" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV", + organization_code: "T-sG-A-Y4rx3806--" )) assert response.code != "400" end def test_create_shop_2 response = $client.send(Pokepay::Request::CreateShop.new( - "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_external_id: "wwlNZ", - organization_code: "cv3786tt-8b-tR--" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV", + shop_external_id: "cqmENfDor1zgwF9x3", + organization_code: "2-" )) assert response.code != "400" end def test_create_shop_3 response = $client.send(Pokepay::Request::CreateShop.new( - "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_email: "x8cOR3TFR9@a8hM.com", - shop_external_id: "Mtt7RdIKeKSciqwdkkgvqZ", - organization_code: "Z0-50-gK-d-ZQh66q" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV", + shop_email: "fU4cD6smAe@qngi.com", + shop_external_id: "ikqDE3OudXpYhNw", + organization_code: "ZA7BK-" )) assert response.code != "400" end def test_create_shop_4 response = $client.send(Pokepay::Request::CreateShop.new( - "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_tel: "0268705290", - shop_email: "29oTCv16fP@XjhV.com", - shop_external_id: "pKgtr0aXml0I8", - organization_code: "KYD6-Qy-02Yp----iy-A0" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV", + shop_tel: "0476633-271", + shop_email: "1FfneXYRV1@FBu9.com", + shop_external_id: "VqwmK2QWEkaIk3Nf304AeRoMBnYR", + organization_code: "I-sc750tZXruc" )) assert response.code != "400" end def test_create_shop_5 response = $client.send(Pokepay::Request::CreateShop.new( - "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_address: "8sqMTw9CGMrpupnZP3tXLGdI4BQeMKNjNC6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNj", - shop_tel: "0109-309718", - shop_email: "ADYEWxDRpy@5o7r.com", - shop_external_id: "N4eiDq", - organization_code: "Y2lJz-JS2K-H-k4Jp2m---" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV", + shop_address: "EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqbgkbgVyEBxJ", + shop_tel: "02557640", + shop_email: "g3h5b1QYmV@Ctk7.com", + shop_external_id: "JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspa", + organization_code: "Y1l-3S-a99d39XW2-OAW4--i" )) assert response.code != "400" end def test_create_shop_6 response = $client.send(Pokepay::Request::CreateShop.new( - "0XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNh", - shop_postal_code: "850-7917", - shop_address: "tSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4PwJOyIcULWzrNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9", - shop_tel: "0848-097", - shop_email: "3fT2ekfbMy@pSoZ.com", - shop_external_id: "rm", - organization_code: "k610S7NJ-u-h9D0B79-" + "fIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJV", + shop_postal_code: "1393414", + shop_address: "bb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd", + shop_tel: "0061231408", + shop_email: "qoWmfQbT09@Lp66.com", + shop_external_id: "g0d7eGITtIklkYFTO7OJe9dSEOGAL", + organization_code: "t518798nQhn-67" )) assert response.code != "400" end def test_create_shop_v2_0 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk" + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq" )) assert response.code != "400" end def test_create_shop_v2_1 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - can_topup_private_money_ids: ["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"] + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq", + can_topup_private_money_ids: [] )) assert response.code != "400" end def test_create_shop_v2_2 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - private_money_ids: ["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"], - can_topup_private_money_ids: ["9aaf2bc0-b87d-4a13-9695-36fb7866477d", "dc24ec29-5e49-40d5-8837-2e5502fe084b", "7a298ce8-2189-4b9d-bc21-2bf88f125b4c"] + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq", + private_money_ids: ["f30fb147-1426-4944-bd88-6a56dd9456d2", "38fb19e4-5c6f-45a0-aa85-1b47556f5a6a", "233f947b-36e9-4067-8870-a11470b6451f", "c69e96da-3ebb-4104-ac1b-8d9d9ff28392", "b1c0c838-6e49-426e-95a5-81a6f2d8a82d", "92f1a6c8-9fa2-4e13-9142-5ee846a8fecd", "a780f03b-a949-4c7b-8e72-e364b7864dda", "9b1e774a-a60c-4f54-9827-ad3976c8a505"], + can_topup_private_money_ids: ["474d3cff-204d-4f6e-9167-3047572dcdfe", "19307487-c38a-4ee6-a380-ad8429fb46c5", "793eb0ec-38aa-4feb-9363-55f43d0263b5", "fc1685ab-b040-48b6-b442-89b33eb85d40", "eef3a0d1-0c76-4c9b-80d9-62ea69c91f11", "42909ef9-8138-486d-bb55-fe9242f0b0aa", "5051c900-a3e7-4fc4-b995-18d8133f5e2e", "2aa5f88e-fc51-4f3a-a314-3c59ffd68307"] )) assert response.code != "400" end def test_create_shop_v2_3 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - organization_code: "-HQ-Ro6-Ya7W2---", - private_money_ids: ["9ead6d97-097b-487e-9714-3c57c7d00812"], - can_topup_private_money_ids: ["3fad58e5-2ab6-4b26-b949-2f938743bbdf", "d9346ac8-abc3-400a-a790-66840a64a5ab"] + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq", + organization_code: "45obEl-JlK8KJ-2", + private_money_ids: ["571c1f61-0fa0-41ee-8cc9-4014511f14aa", "b04c775c-5a7e-4500-8cbc-420599d77cb8", "4509ce25-bbc6-4a89-b1c9-a858198be5f1"], + can_topup_private_money_ids: ["999c5565-9e89-4619-a1ec-1c820b465bc7", "d0a85d7e-c9be-4129-9a3b-75c475e93c4f", "5d81e904-fb87-4ace-95df-2025879f3f2c", "6bb56041-f8bd-492d-a64a-26208cb731e6", "d3d9be5e-74ec-4832-88cd-10f47969b5db", "ffb072a0-7a1f-456f-b779-f2619dcda18c", "3b2d6593-9601-4a57-b047-daebe29536f4", "38efd286-ccb1-4970-8f8f-01cf76094593", "14b8b70c-2bc2-4da4-9a81-38fb67363d17", "6608ae1e-43fb-40ba-8108-d1efdbb8fbfe"] )) assert response.code != "400" end def test_create_shop_v2_4 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - external_id: "e3KvTMWtvAOdqc6t46b4EgFIpDVk", - organization_code: "X6-rt-3sy-LB256zJw7T--EY-869Y", - private_money_ids: ["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"], - can_topup_private_money_ids: ["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"] + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq", + external_id: "U6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8m", + organization_code: "J-Ig-h-2e-L-d0I8Gq-5N", + private_money_ids: ["cdc42a10-65cf-4515-9a0d-24c638ad6c7b", "ce865b7a-8e79-4325-a531-31bd12ff47b0", "0d816b84-b4f3-474d-ae8c-f13152031a68", "fa56a64c-9171-449c-a085-a297ec0a0da1", "9100008d-87e7-4ada-b45b-e3a57c5e040d", "20b0ca98-f8d3-41e3-a62b-08ec5295176b", "c57e1c2c-7086-4bb2-8a9d-2be4e4b0c66a", "84c83a7a-2889-4191-ae6a-23c0db27f082"], + can_topup_private_money_ids: ["a0a0e846-1697-4d83-a5be-621a4342ee7a", "17f3abf4-bca8-4055-b9ab-f20992e0278a", "f17efb92-c7be-4285-9979-655c9e462199", "5a7371d5-3b92-432d-9312-4b2d6eebc7f7", "ddb098f7-d640-45f9-9313-5718cc8da6b9", "180e68c2-ec35-4a0d-a87d-9bbb6ae12140", "5404cc2a-38f4-49e7-8e26-d8c92c3622c4", "98bb9170-833d-49d5-aa80-ccf06bc3038a", "95de72fa-49cb-450e-a909-4879e24374ea", "e43cfd3b-9433-4542-853f-9576a0117059"] )) assert response.code != "400" end def test_create_shop_v2_5 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - email: "NfDor1zgwF@9x3x.com", - external_id: "ZsR", - organization_code: "3BAr-7-G9lrl", - private_money_ids: ["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"], - can_topup_private_money_ids: ["3bbff11f-d80d-453c-a2c5-f87d98f4575e"] + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq", + email: "p1TbuySIy9@vMfj.com", + external_id: "s9RSVIuRLJamUgod9vJ", + organization_code: "5sO0P-En--Zn-CZ--ga-2-0-GWq-wO-V", + private_money_ids: ["80343906-659b-4c85-94a6-44011287311e", "471eac5a-a4e7-4001-b5e5-069aa4784324", "dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515", "40ca7903-b5a8-43a6-b09e-e0d90b79398a", "c602736c-62f2-4d05-acfb-415d36716a4f", "4240bbaa-243e-4838-8a45-351b9762407c", "f4eb71a9-671b-4c89-b34c-c8b7ecc0c5e7", "015b5bd7-36b6-4870-96ad-594f9f064d0d"], + can_topup_private_money_ids: ["6c0731ae-4a87-465a-b480-0b6a722a52d2", "44d1e5c6-8082-4ece-a136-c67f8cf3f71d", "ec607884-0f24-49e8-a97b-312518633a6f", "a24d5b42-f44f-421b-be94-89e9dd964268", "10b5069b-d493-4ba0-9bbc-fce4da842b7f", "fc34212d-dc04-4248-a776-f2e5ab2ae0ea", "a379ed96-2990-463b-a210-521b6c634923", "0d0da1cc-01fe-4ae6-a837-84c8abca658a"] )) assert response.code != "400" end def test_create_shop_v2_6 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - tel: "0706-299-751", - email: "E3q4gTN93g@HJA1.com", - external_id: "FfneXYRV1FBu9VqwmK2QWEkaIk3", - organization_code: "-aH1U8-oB0RsBu", - private_money_ids: ["ae82df74-2702-4972-afa7-f8369df0cddf", "02b4209f-80b5-47d2-bacd-ae3c00e4c100", "46361234-8f53-43d9-9979-c8d7848404d0"], - can_topup_private_money_ids: ["14b223a4-54b4-4804-a2b5-e24506be7ef6"] + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq", + tel: "058821-568", + email: "czyOhMWAPb@HXyt.com", + external_id: "djUT8FkE6WXDem2rgSzz", + organization_code: "P-25--m-O-9-G-66p--7x-3KKsm18", + private_money_ids: ["cdadda4c-ae3d-44a8-b1b6-71efe4f7ffab", "2dee894e-6e41-4933-a3ba-e57c1b159dbe", "249aeca6-98da-4e34-8eee-aabbd48f12de"], + can_topup_private_money_ids: ["6235a749-7afc-4245-aae1-f94e471e7536", "8e7b5480-1964-49a9-a223-ff59d72762a2", "3d989b06-fd85-495a-94d9-8e20c1af50df", "085af4b4-8713-4dfc-81df-90f0b1a40500", "703d2439-fdaf-4f06-9a62-4b5aeca7db67", "f3b46622-ce73-4e88-a6e3-f88f56d19b42", "71355128-2756-40c0-9d8a-bbb3377d5e0c", "e76bc070-fe58-4c69-90d0-a4feed9ff3e9", "819bbbd7-f3b2-4519-be9f-358065f1e097"] )) assert response.code != "400" end def test_create_shop_v2_7 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - address: "FhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWy", - tel: "0258643-2381", - email: "fyfPvqbgkb@gVyE.com", - external_id: "xJx", - organization_code: "z2xJYke----Du6670x3", - private_money_ids: ["cafc81d1-aef2-4076-833e-7e999db852fb"], - can_topup_private_money_ids: [] + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq", + address: "Um4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQ", + tel: "05-7596-791", + email: "BJMiWPv5dA@bUBW.com", + external_id: "ta68v79KNgsodWT1kP64c", + organization_code: "KR7nb", + private_money_ids: ["e5b4f3eb-3362-484e-9f8a-2b5798d5df14", "e11f2da7-242a-4907-b418-5a80213c7f3f", "b7ee6134-0178-42b5-ac5b-9714ab36d9f0", "1ddf1794-cc21-4319-a91c-a0abadda7660"], + can_topup_private_money_ids: ["9c78491a-8c65-4f6c-8878-9b7f00f1aa36", "06feb18e-bb7d-47da-b7b3-fdc15ea2eace", "0b6bd05d-ebeb-4524-a7df-657bdb1f1b72", "c8dd41ae-0a04-4ce5-8e4d-d25356c9c581", "1dea5adb-bc3a-4b7f-ad3d-e0ee5be50599", "af424593-329d-4569-a70e-99627c770734", "0df948d9-f062-4033-b436-71eb9bc7586d", "c2885e76-1879-4e8f-a87c-eba8c16c4d7c", "c3f1c30e-a60f-4103-aa22-17c4e2a21637", "bd8577a2-1109-49d9-a186-62fe51976f2d"] )) assert response.code != "400" end def test_create_shop_v2_8 response = $client.send(Pokepay::Request::CreateShopV2.new( - "QCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWk", - postal_code: "5669559", - address: "rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClW", - tel: "09370795-600", - email: "6qorRSF9NZ@ATmh.com", - external_id: "oWmfQbT09Lp665rg0d7eG", - organization_code: "toK78LG2-", - private_money_ids: ["3722fedb-fcc9-4e09-9167-d75d534492f7", "53930cf8-7113-4e23-b86f-3deff057915d", "1043c491-d7fc-4cf3-8acc-fecbb246bab5"], - can_topup_private_money_ids: ["3bad8971-45b6-40a8-beb7-1e2a4bd1a5a9", "70984756-99ac-4c18-984d-a9057f5454f0"] + "kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5KalqxA7HuqvdSNveWzWI5L6stQvZvRJLln3CmVmPz2bcH2xVBHTbiOHYbzW7EYCf76ToHcl8dtzcqD6rq", + postal_code: "1601719", + address: "h5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3", + tel: "0918-0596", + email: "SJX1OiNUbq@HXuS.com", + external_id: "WeM8VL", + organization_code: "oq8n09-S2v-Go", + private_money_ids: ["3cd1c838-0bd6-489d-86ee-5eeaaa745ac6", "b5fd5c91-025b-4fef-8589-6d7d373b6973"], + can_topup_private_money_ids: ["c4e163e6-5eab-43bf-879e-cd3652d0d908", "d20e9714-2bb4-4809-ad76-157c12616dd8", "2ad2094b-2a0e-43bd-83a3-de3027d6a479", "760dccc9-318b-422e-a02f-c03a2245ef08", "3364f713-fcd9-4644-b2a2-1dcf33e448ed"] )) assert response.code != "400" end def test_get_shop_0 response = $client.send(Pokepay::Request::GetShop.new( - "fc39bb18-ffda-4647-a8cd-4553857aa692" + "026fffa8-2866-4283-98da-548e8efcfc76" )) assert response.code != "400" end def test_update_shop_0 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6" + "a91dc663-99e6-4380-8321-0b2523e86c7b" )) assert response.code != "400" end def test_update_shop_1 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - status: "disabled" + "a91dc663-99e6-4380-8321-0b2523e86c7b", + status: "active" )) assert response.code != "400" end def test_update_shop_2 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - can_topup_private_money_ids: ["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" + "a91dc663-99e6-4380-8321-0b2523e86c7b", + can_topup_private_money_ids: ["9852d914-b345-425b-93b8-dca15f403b48", "1bf8aaff-f5ff-4748-8aad-f96094ec44a3", "ae46d9dc-d41d-4508-be66-c4bc7a989435", "b2a9a4a4-0eb0-4cd4-9582-72df747d59c3", "81904a92-37b5-4b79-9c90-37b26d46d548", "6d8e4e09-16a2-4e13-8e81-ae1e8e0837f2"], + status: "active" )) assert response.code != "400" end def test_update_shop_3 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - private_money_ids: ["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"], - can_topup_private_money_ids: ["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"], + "a91dc663-99e6-4380-8321-0b2523e86c7b", + private_money_ids: [], + can_topup_private_money_ids: ["5728d3b3-a034-4f8b-a8a8-b744bd59d03b", "ee49f0b1-f1f5-4d78-af49-cbe26410ef5f", "1d6f1f75-aba0-4964-9080-53e7f02256cb", "a3c1cb63-065f-48c1-8834-47ccddca635e", "02d62971-ba05-4da9-b476-808e999c7787", "ed6de882-f06e-4259-93e4-d9027866f90f", "b002ff05-e505-4cfc-928c-07ca0164397f"], status: "disabled" )) assert response.code != "400" @@ -3483,22 +3522,22 @@ def test_update_shop_3 def test_update_shop_4 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - external_id: "QvZvRJLln3CmVmPz2bcH2x", - private_money_ids: ["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"], - can_topup_private_money_ids: ["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" + "a91dc663-99e6-4380-8321-0b2523e86c7b", + external_id: "VxWy0PirB5ccKSjPsnaJy0xSUaUZ3K", + private_money_ids: ["67971269-72bb-4b70-ae5d-2347d45e0383", "07e91f76-d9e5-4618-8ef0-d9b153d44db1", "9b1e1f5f-eed7-4f27-870d-c4e9dfcb6d96", "86f77bd3-6b72-4db0-9a29-9cb8c1440675", "6e6cf586-7f1b-4e43-baa5-2eae1952f6c2", "7d1294c0-6b30-463e-9dfc-a91e270b838f", "cc70784a-2f84-49d3-9eac-60f400b15928", "72200037-d68b-459a-a807-5cda45b9949c", "3f345ead-5c4e-41cc-b663-1b76f0c059ff"], + can_topup_private_money_ids: ["904eec3b-0c89-4b3a-b1c2-656e2f941c68", "e86447ac-6bc7-4fee-a725-45793daf15d2", "6cb8fb12-1ea2-4073-a4b1-95daf3408162"], + status: "disabled" )) assert response.code != "400" end def test_update_shop_5 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - email: "8InHQBhMIr@dZJT.com", - external_id: "9MnQgGfElkSct56tB3QvYjy8m", - private_money_ids: ["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"], - can_topup_private_money_ids: [], + "a91dc663-99e6-4380-8321-0b2523e86c7b", + email: "EX46DL0EY9@Dfg2.com", + external_id: "2KSBJ32yceHk", + private_money_ids: [], + can_topup_private_money_ids: ["47031610-468f-480e-8a03-0701ad16ffd3", "51f19c19-1d35-422e-b372-bbdffd022a2a", "07488c1a-ee51-45d9-8672-84a561fc77fd", "1aebc8c9-61c5-4052-b61c-25ecad8e7cb0", "e5d8604b-05f2-4cfd-9be9-d4f575f3e55f"], status: "active" )) assert response.code != "400" @@ -3506,26 +3545,26 @@ def test_update_shop_5 def test_update_shop_6 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - tel: "0005-9248141", - email: "iUj9JqianI@8FqI.com", - external_id: "qzelGZDONUAJfl2HMto7yaW0G", - private_money_ids: ["38efd286-ccb1-4970-8f8f-01cf76094593", "14b8b70c-2bc2-4da4-9a81-38fb67363d17", "6608ae1e-43fb-40ba-8108-d1efdbb8fbfe", "6ee8ecf3-d0f8-4963-9594-e9dff17a2eb6"], - can_topup_private_money_ids: ["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" + "a91dc663-99e6-4380-8321-0b2523e86c7b", + tel: "01813768343", + email: "nnsKFojcLO@uuur.com", + external_id: "aaP5zVuitJAWBnMTQrqQLb4F279", + private_money_ids: ["fc9ec563-0e05-4b07-b364-b2108203d244", "cf9981f4-70bc-46a6-834d-d1b3c74ccdac", "c5c87499-e6f5-432c-97c0-408bc5a6a98c", "9eb27d88-aa5e-4c53-a11d-87c540654e59", "c1060862-d4f5-4d98-a17e-eeba284b644f", "3286cee0-dff9-42a7-b1c1-12973aca16f4", "3532624a-9219-4014-aa9c-16a002783062"], + can_topup_private_money_ids: ["5ca9c410-3c7b-41da-a08c-9999113a20dc", "47f4bac6-40f6-4985-988c-e63440782044", "0d9d74dc-5ed4-45f2-a5db-d2807b407e6e", "bd9d470d-f19b-4b59-bcac-89ea1922f35b", "7d0459ff-ad9a-4710-b6bb-a3f2f35533c5", "a3efa5b9-d4e0-4348-b55e-1c93e807f32b"], + status: "disabled" )) assert response.code != "400" end def test_update_shop_7 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - address: "20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKruisPGcjRxKz0hnHtPEmOFzye10sMn1hLqgZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7", - tel: "037409056", - email: "BC2Sel2Qni@qdOC.com", - external_id: "9my1YOO8Cj", - private_money_ids: ["40a9195b-e812-449b-8c30-80fbd0f9ae59", "4787c17c-e346-4bed-b6b4-07308a3c7e5f"], - can_topup_private_money_ids: ["61851016-24d5-4e2e-afcd-6635e2edb077", "80343906-659b-4c85-94a6-44011287311e", "471eac5a-a4e7-4001-b5e5-069aa4784324", "dcb5e80a-8b0d-45b6-95b7-56e5c9b3c515"], + "a91dc663-99e6-4380-8321-0b2523e86c7b", + address: "Gm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y", + tel: "070697-082", + email: "EUoqg0zXsu@vc8L.com", + external_id: "4mbP1hy", + private_money_ids: ["62f6f59d-b5d0-4582-84af-aa2ba2787ce2", "2ae8bbce-0a80-4956-aae3-6b9d4ff9bbbe", "9b28ea88-92ba-4c93-89e0-ed13e3122e9f", "f799f274-b4af-4935-b951-2ba77e63ed01", "4addd0ce-9a1c-4c00-a9e0-9da37efd6119", "cd0f48ea-4356-40db-aebf-1d9c92faf87d"], + can_topup_private_money_ids: [], status: "disabled" )) assert response.code != "400" @@ -3533,30 +3572,30 @@ def test_update_shop_7 def test_update_shop_8 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - postal_code: "8609258", - address: "E3L7gW6pVOxZ4jRFNa6hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgSzz35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ", - tel: "09-16923", - email: "YZY4p9bZgs@cBV3.com", - external_id: "pXiPPiW2qUm4F", - private_money_ids: ["427fc08c-0851-4c85-b5e3-ab2d687ff6f3", "1a4e61fc-15ac-43ed-bab0-77c75a672c59"], - can_topup_private_money_ids: ["056a8ddb-0ef7-40d9-847f-2c38b86fd813"], - status: "disabled" + "a91dc663-99e6-4380-8321-0b2523e86c7b", + postal_code: "3254867", + address: "40vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmdVQrUihNu2f4606Zw3XOfvqGLqQiqaG2p9irVNMOOMEyp", + tel: "0812-256-2716", + email: "GgyrO7oaIP@GJ7J.com", + external_id: "BC1o5Rc9", + private_money_ids: ["9a97ec77-edbb-4466-ad8a-60d6f4c9e8f2", "3cdf80d7-22f2-4e4b-a4b8-892059fc8dda", "39c4f4e3-9a6b-456e-a0e4-77968729de97", "d8ab7c50-6e6e-4a1c-b09e-001fbe9d0ab3", "34ecc8ee-2dbf-4128-a512-4f123e4c0adb", "9e2cc413-bb91-4ffc-8c6f-56cde6c42624"], + can_topup_private_money_ids: ["099843e5-94af-4002-ace5-e48ef262e4b3"], + status: "active" )) assert response.code != "400" end def test_update_shop_9 response = $client.send(Pokepay::Request::UpdateShop.new( - "375fa126-c77a-44bf-b786-a86bc10796f6", - name: "K8kF9CcO2FCZ7wQECuE", - postal_code: "987-8945", - address: "4l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3", - tel: "047-4531-939", - email: "gb4Yb3t6km@vyhj.com", - external_id: "D7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJ", - private_money_ids: [], - can_topup_private_money_ids: ["13e59d9d-b8b0-40fc-83fc-c2046b3661c8", "d2330960-b1b1-472b-9530-bcc74e9936d1", "c9e06b62-7a39-4297-9f36-18cae73755fa"], + "a91dc663-99e6-4380-8321-0b2523e86c7b", + name: "pOb8vOALeCaVZzJ21Wkjwh096vY0", + postal_code: "7961126", + address: "OxtHaQb", + tel: "05860669461", + email: "YgBl99xXSI@Gv3O.com", + external_id: "n3SH7ljqEdpqCcPOpWjivoOnvdw0Y", + private_money_ids: ["cbe99a17-ac76-4c7d-ace4-4c3b5e7dbab3", "b7aaa03c-b649-4565-8a17-711186b577f9", "022dade8-883f-412d-92af-d454cb75da7d", "7d88e26c-81d2-4022-a7a3-8b545cd4aad4", "1c373fdd-b6a2-4abd-b2ba-464e6e9bd15e", "32548178-5ed3-4769-b068-e614e5a677da"], + can_topup_private_money_ids: ["9a2d9c52-141c-48ec-8c82-5f2f7a19f5dc", "e8460319-2210-476f-ac22-b0ab2144bb06", "e156e2cc-0722-4bfd-bf9b-d0882f60821d", "38553eea-774d-4514-ad91-d2bea7a7afcc"], status: "disabled" )) assert response.code != "400" @@ -3570,628 +3609,683 @@ def test_get_private_moneys_0 def test_get_private_moneys_1 response = $client.send(Pokepay::Request::GetPrivateMoneys.new( - per_page: 5471 + per_page: 6996 )) assert response.code != "400" end def test_get_private_moneys_2 response = $client.send(Pokepay::Request::GetPrivateMoneys.new( - page: 3814, - per_page: 6679 + page: 2568, + per_page: 7422 )) assert response.code != "400" end def test_get_private_moneys_3 response = $client.send(Pokepay::Request::GetPrivateMoneys.new( - organization_code: "2-0H-3-2f7yZ-n9----e-30kbsk2H-5J", - page: 9536, - per_page: 6615 + organization_code: "qr-5a-89", + page: 972, + per_page: 207 )) assert response.code != "400" end def test_get_private_money_organization_summaries_0 response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.new( - "d131a915-2939-44d5-b344-449adb4679be" + "25c2238f-cf81-4930-aefa-23951ca983f1" )) assert response.code != "400" end def test_get_private_money_organization_summaries_1 response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.new( - "d131a915-2939-44d5-b344-449adb4679be", - page: 6767 + "25c2238f-cf81-4930-aefa-23951ca983f1", + page: 3863 )) assert response.code != "400" end def test_get_private_money_organization_summaries_2 response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.new( - "d131a915-2939-44d5-b344-449adb4679be", - per_page: 8597, - page: 1535 + "25c2238f-cf81-4930-aefa-23951ca983f1", + per_page: 4164, + page: 1671 )) assert response.code != "400" end def test_get_private_money_organization_summaries_3 response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.new( - "d131a915-2939-44d5-b344-449adb4679be", - from: "2023-04-08T17:43:14.000000Z", - to: "2020-02-26T11:52:13.000000Z" + "25c2238f-cf81-4930-aefa-23951ca983f1", + from: "2023-02-24T15:38:45.000000Z", + to: "2020-06-01T22:27:12.000000Z" )) assert response.code != "400" end def test_get_private_money_organization_summaries_4 response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.new( - "d131a915-2939-44d5-b344-449adb4679be", - from: "2021-08-23T00:04:33.000000Z", - to: "2021-05-06T17:07:04.000000Z", - page: 7960 + "25c2238f-cf81-4930-aefa-23951ca983f1", + from: "2022-04-29T04:44:50.000000Z", + to: "2023-02-28T01:22:24.000000Z", + page: 2940 )) assert response.code != "400" end def test_get_private_money_organization_summaries_5 response = $client.send(Pokepay::Request::GetPrivateMoneyOrganizationSummaries.new( - "d131a915-2939-44d5-b344-449adb4679be", - from: "2021-08-12T01:57:43.000000Z", - to: "2022-03-26T03:33:02.000000Z", - per_page: 9256, - page: 7137 + "25c2238f-cf81-4930-aefa-23951ca983f1", + from: "2020-06-22T06:48:08.000000Z", + to: "2023-10-27T22:37:01.000000Z", + per_page: 1815, + page: 1792 )) assert response.code != "400" end def test_get_private_money_summary_0 response = $client.send(Pokepay::Request::GetPrivateMoneySummary.new( - "e7cd26a1-9168-425c-9d09-636dbe75dd68" + "ff19d13e-32f3-4315-a0c8-db1c10293429" )) assert response.code != "400" end def test_get_private_money_summary_1 response = $client.send(Pokepay::Request::GetPrivateMoneySummary.new( - "e7cd26a1-9168-425c-9d09-636dbe75dd68", - to: "2021-11-10T15:25:11.000000Z" + "ff19d13e-32f3-4315-a0c8-db1c10293429", + to: "2023-06-06T15:44:55.000000Z" )) assert response.code != "400" end def test_get_private_money_summary_2 response = $client.send(Pokepay::Request::GetPrivateMoneySummary.new( - "e7cd26a1-9168-425c-9d09-636dbe75dd68", - from: "2022-12-25T19:43:41.000000Z", - to: "2020-08-05T15:13:26.000000Z" + "ff19d13e-32f3-4315-a0c8-db1c10293429", + from: "2022-07-27T19:34:17.000000Z", + to: "2022-10-30T18:15:11.000000Z" )) assert response.code != "400" end def test_list_customer_transactions_0 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481" + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d" )) assert response.code != "400" end def test_list_customer_transactions_1 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481", - per_page: 8256 + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d", + per_page: 3721 )) assert response.code != "400" end def test_list_customer_transactions_2 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481", - page: 2206, - per_page: 7490 + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d", + page: 1673, + per_page: 8569 )) assert response.code != "400" end def test_list_customer_transactions_3 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481", - to: "2020-01-20T01:11:03.000000Z", - page: 9694, - per_page: 9903 + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d", + to: "2020-06-09T08:43:25.000000Z", + page: 2641, + per_page: 1403 )) assert response.code != "400" end def test_list_customer_transactions_4 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481", - from: "2020-02-01T11:11:06.000000Z", - to: "2020-11-08T11:23:32.000000Z", - page: 5385, - per_page: 4709 + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d", + from: "2023-08-31T11:35:24.000000Z", + to: "2021-11-27T00:17:30.000000Z", + page: 6128, + per_page: 9468 )) assert response.code != "400" end def test_list_customer_transactions_5 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481", + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d", is_modified: true, - from: "2022-10-29T14:50:22.000000Z", - to: "2021-04-30T22:35:59.000000Z", - page: 7609, - per_page: 8380 + from: "2021-10-15T20:46:20.000000Z", + to: "2023-11-14T17:02:46.000000Z", + page: 8406, + per_page: 1440 )) assert response.code != "400" end def test_list_customer_transactions_6 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481", - type: "expire", - is_modified: false, - from: "2021-08-04T03:54:08.000000Z", - to: "2022-10-12T21:59:05.000000Z", - page: 8858, - per_page: 4413 + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d", + type: "transfer", + is_modified: true, + from: "2022-03-30T21:58:48.000000Z", + to: "2024-01-29T17:38:21.000000Z", + page: 786, + per_page: 2848 )) assert response.code != "400" end def test_list_customer_transactions_7 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481", - receiver_customer_id: "9087f23e-f2a7-441c-b433-8d14b39040e8", - type: "payment", + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d", + receiver_customer_id: "476067c0-5180-472f-9748-fbe19e693314", + type: "cashback", is_modified: true, - from: "2020-10-31T17:38:56.000000Z", - to: "2020-10-11T05:03:35.000000Z", - page: 5983, - per_page: 6393 + from: "2020-07-04T11:49:13.000000Z", + to: "2020-10-22T23:48:51.000000Z", + page: 4783, + per_page: 8752 )) assert response.code != "400" end def test_list_customer_transactions_8 response = $client.send(Pokepay::Request::ListCustomerTransactions.new( - "ec30906c-a4c4-4703-b5df-0ca652008481", - sender_customer_id: "1e6c77d7-74a1-40cb-b0a5-1af95b4f3dbc", - receiver_customer_id: "81f23c66-355d-4806-bbfd-cd9a8c0411d3", - type: "cashback", + "05d4da0c-f8ac-43e9-a1a8-54df0786da2d", + sender_customer_id: "d2869b53-2e22-4d40-bc23-f9d272cd44e5", + receiver_customer_id: "03a89a91-73ea-4831-99d4-32f7b9069362", + type: "exchange", is_modified: false, - from: "2021-06-10T12:34:18.000000Z", - to: "2022-06-18T07:50:48.000000Z", - page: 6706, - per_page: 1232 + from: "2020-01-13T05:00:34.000000Z", + to: "2020-03-01T04:56:22.000000Z", + page: 5098, + per_page: 7841 )) assert response.code != "400" end def test_get_bulk_transaction_0 response = $client.send(Pokepay::Request::GetBulkTransaction.new( - "9ad02669-f2ce-43aa-878d-0615fd1d73ab" + "e58bf7ca-9507-4ca7-8c7c-f29834f6cc7b" )) assert response.code != "400" end def test_list_bulk_transaction_jobs_0 response = $client.send(Pokepay::Request::ListBulkTransactionJobs.new( - "8d19d42d-8c55-410d-a223-f18af8702f99" + "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1" )) assert response.code != "400" end def test_list_bulk_transaction_jobs_1 response = $client.send(Pokepay::Request::ListBulkTransactionJobs.new( - "8d19d42d-8c55-410d-a223-f18af8702f99", - per_page: 5933 + "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1", + per_page: 986 )) assert response.code != "400" end def test_list_bulk_transaction_jobs_2 response = $client.send(Pokepay::Request::ListBulkTransactionJobs.new( - "8d19d42d-8c55-410d-a223-f18af8702f99", - page: 6622, - per_page: 3346 + "df2ec8bc-ffd3-4ef9-a8fc-e6efc0fc73f1", + page: 9569, + per_page: 6767 )) assert response.code != "400" end def test_create_cashtray_0 response = $client.send(Pokepay::Request::CreateCashtray.new( - "e30abff5-65d3-40c5-9785-a465e9b3f1cd", - "c04a228a-5738-4402-9615-9e297f57284c", - 2925.0 + "044202f7-3525-4117-8dd7-0ded95240fda", + "48aeadc5-538d-4ee4-af33-69d46096e93b", + 5771.0 )) assert response.code != "400" end def test_create_cashtray_1 response = $client.send(Pokepay::Request::CreateCashtray.new( - "e30abff5-65d3-40c5-9785-a465e9b3f1cd", - "c04a228a-5738-4402-9615-9e297f57284c", - 2925.0, - expires_in: 2144 + "044202f7-3525-4117-8dd7-0ded95240fda", + "48aeadc5-538d-4ee4-af33-69d46096e93b", + 5771.0, + expires_in: 5237 )) assert response.code != "400" end def test_create_cashtray_2 response = $client.send(Pokepay::Request::CreateCashtray.new( - "e30abff5-65d3-40c5-9785-a465e9b3f1cd", - "c04a228a-5738-4402-9615-9e297f57284c", - 2925.0, - description: "qznKIn9uBoqN", - expires_in: 6964 + "044202f7-3525-4117-8dd7-0ded95240fda", + "48aeadc5-538d-4ee4-af33-69d46096e93b", + 5771.0, + description: "PfziyB2HYxaSuFevcjssU2Qn83gWH7hF0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMg", + expires_in: 1558 )) assert response.code != "400" end - def test_get_cashtray_0 - response = $client.send(Pokepay::Request::GetCashtray.new( - "5512a3ba-aadc-4358-870a-6d9abd7d2b7c" + def test_cancel_cashtray_0 + response = $client.send(Pokepay::Request::CancelCashtray.new( + "aaf6a586-88af-4705-b315-e668c4144e0c" )) assert response.code != "400" end - def test_cancel_cashtray_0 - response = $client.send(Pokepay::Request::CancelCashtray.new( - "f7a80c4b-aba9-43eb-b76d-38580067e846" + def test_get_cashtray_0 + response = $client.send(Pokepay::Request::GetCashtray.new( + "889cfd0f-1711-4dc9-901f-71072893803b" )) assert response.code != "400" end def test_update_cashtray_0 response = $client.send(Pokepay::Request::UpdateCashtray.new( - "20ece2a9-ff06-420d-9b6e-77022062b188" + "5dac37c8-967a-4962-8818-43f58aac4ee3" )) assert response.code != "400" end def test_update_cashtray_1 response = $client.send(Pokepay::Request::UpdateCashtray.new( - "20ece2a9-ff06-420d-9b6e-77022062b188", - expires_in: 3917 + "5dac37c8-967a-4962-8818-43f58aac4ee3", + expires_in: 2373 )) assert response.code != "400" end def test_update_cashtray_2 response = $client.send(Pokepay::Request::UpdateCashtray.new( - "20ece2a9-ff06-420d-9b6e-77022062b188", - description: "L0vhZmz7rucmF8n8VnjFoEs5f64mvXKC0yIYDrOmfZvcfCdES8HHJf50TC5y2HNrP34hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46D", - expires_in: 1061 + "5dac37c8-967a-4962-8818-43f58aac4ee3", + description: "hID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UPiFJuScrEGcY5", + expires_in: 6071 )) assert response.code != "400" end def test_update_cashtray_3 response = $client.send(Pokepay::Request::UpdateCashtray.new( - "20ece2a9-ff06-420d-9b6e-77022062b188", - amount: 1484.0, - description: "EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnMTQrqQLb4F279GcsdDtM3uSEYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5xmBEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30J", - expires_in: 1575 + "5dac37c8-967a-4962-8818-43f58aac4ee3", + amount: 6557.0, + description: "YJqEcansSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPdzwEr5mXGzuLW3FkWi9ZhIojVZoApe0VcAXVJNN81LI44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhr", + expires_in: 9919 + )) + assert response.code != "400" + end + + def test_list_campaigns_0 + response = $client.send(Pokepay::Request::ListCampaigns.new( + "f3463bc2-349f-41a0-bdd1-7649fd7843ed" + )) + assert response.code != "400" + end + + def test_list_campaigns_1 + response = $client.send(Pokepay::Request::ListCampaigns.new( + "f3463bc2-349f-41a0-bdd1-7649fd7843ed", + per_page: 3 + )) + assert response.code != "400" + end + + def test_list_campaigns_2 + response = $client.send(Pokepay::Request::ListCampaigns.new( + "f3463bc2-349f-41a0-bdd1-7649fd7843ed", + page: 4010, + per_page: 31 + )) + assert response.code != "400" + end + + def test_list_campaigns_3 + response = $client.send(Pokepay::Request::ListCampaigns.new( + "f3463bc2-349f-41a0-bdd1-7649fd7843ed", + available_to: "2020-03-21T02:19:51.000000Z", + page: 2212, + per_page: 28 + )) + assert response.code != "400" + end + + def test_list_campaigns_4 + response = $client.send(Pokepay::Request::ListCampaigns.new( + "f3463bc2-349f-41a0-bdd1-7649fd7843ed", + available_from: "2020-01-12T10:32:20.000000Z", + available_to: "2023-11-03T13:07:02.000000Z", + page: 5677, + per_page: 19 + )) + assert response.code != "400" + end + + def test_list_campaigns_5 + response = $client.send(Pokepay::Request::ListCampaigns.new( + "f3463bc2-349f-41a0-bdd1-7649fd7843ed", + is_ongoing: false, + available_from: "2022-05-01T12:37:02.000000Z", + available_to: "2023-07-28T00:52:46.000000Z", + page: 561, + per_page: 34 )) assert response.code != "400" end def test_create_campaign_0 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup" )) assert response.code != "400" end def test_create_campaign_1 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - budget_caps_amount: 826378708 + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + budget_caps_amount: 1009088247 )) assert response.code != "400" end def test_create_campaign_2 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - applicable_account_metadata: { - "key": "sex", - "value": "male" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" }, - budget_caps_amount: 619822229 + budget_caps_amount: 784220269 )) assert response.code != "400" end def test_create_campaign_3 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - dest_private_money_id: "874b3279-0484-4c86-ba2f-13d129ee3dc0", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1933776541 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1554964878 )) assert response.code != "400" end def test_create_campaign_4 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - max_total_point_amount: 449, - dest_private_money_id: "7d082cbd-93e5-4654-b823-7e8a24141542", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + dest_private_money_id: "558d6d5d-6d7d-43c9-bf7b-311bb4aa8634", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1764941427 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1833154823 )) assert response.code != "400" end def test_create_campaign_5 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - max_point_amount: 6740, - max_total_point_amount: 6373, - dest_private_money_id: "c4793847-f9c2-4eff-b4db-68db0b40ce74", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + max_total_point_amount: 9503, + dest_private_money_id: "d0acb405-ad1a-46dc-b5af-db6f42754a4f", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1046979123 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 333829830 )) assert response.code != "400" end def test_create_campaign_6 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - exist_in_each_product_groups: false, - max_point_amount: 3313, - max_total_point_amount: 1827, - dest_private_money_id: "cc729950-54fb-4d0f-a18b-ab8113d363b3", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + max_point_amount: 6161, + max_total_point_amount: 1120, + dest_private_money_id: "c629c6c0-0429-45bf-8bf2-89615559e2ce", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 204619724 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1233458079 )) assert response.code != "400" end def test_create_campaign_7 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - minimum_number_for_combination_purchase: 7792, - exist_in_each_product_groups: true, - max_point_amount: 720, - max_total_point_amount: 8923, - dest_private_money_id: "300d0313-4c73-4d25-ad41-9627b85011b8", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + exist_in_each_product_groups: false, + max_point_amount: 747, + max_total_point_amount: 1030, + dest_private_money_id: "67f6463f-333a-4e92-a12d-667043eef62a", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1187813134 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1496436754 )) assert response.code != "400" end def test_create_campaign_8 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - minimum_number_of_amount: 7580, - minimum_number_for_combination_purchase: 6246, - exist_in_each_product_groups: true, - max_point_amount: 3682, - max_total_point_amount: 4593, - dest_private_money_id: "aec63e50-12e2-4040-81e2-b9ebf071400f", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + minimum_number_for_combination_purchase: 1840, + exist_in_each_product_groups: false, + max_point_amount: 2127, + max_total_point_amount: 7738, + dest_private_money_id: "8c7d46d3-3f18-467f-a96a-4b8a600daa44", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 127213637 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1837780759 )) assert response.code != "400" end def test_create_campaign_9 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - minimum_number_of_products: 5810, - minimum_number_of_amount: 666, - minimum_number_for_combination_purchase: 18, + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + minimum_number_of_amount: 5881, + minimum_number_for_combination_purchase: 3957, exist_in_each_product_groups: true, - max_point_amount: 1706, - max_total_point_amount: 208, - dest_private_money_id: "9840cdab-d0c2-4c8d-a166-1013dd582994", + max_point_amount: 9971, + max_total_point_amount: 616, + dest_private_money_id: "e97de3f3-4c37-4c2d-a508-8cfea6540930", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1283939849 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 2109625183 )) assert response.code != "400" end def test_create_campaign_10 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - applicable_shop_ids: ["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"], - minimum_number_of_products: 3903, - minimum_number_of_amount: 9760, - minimum_number_for_combination_purchase: 7088, + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + minimum_number_of_products: 4883, + minimum_number_of_amount: 7709, + minimum_number_for_combination_purchase: 1770, exist_in_each_product_groups: false, - max_point_amount: 4034, - max_total_point_amount: 6638, - dest_private_money_id: "cb22f064-4ed6-4327-8918-3813bd641c2a", + max_point_amount: 5314, + max_total_point_amount: 8130, + dest_private_money_id: "95bdf2e1-f71a-4438-aa77-f1d87095212f", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1101544356 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1604707511 )) assert response.code != "400" end def test_create_campaign_11 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["af1c4822-11a4-413f-9072-310d5945d355", "930b0fbd-881e-47e9-8e12-d168522fcd4e"], - minimum_number_of_products: 6707, - minimum_number_of_amount: 8423, - minimum_number_for_combination_purchase: 5760, + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + blacklisted_shop_ids: ["a49fcbdd-a2a6-4929-86cc-b543cf5ea942", "bd03b1df-cfdf-405b-b13e-ad18fec38858", "df324786-3dde-44dd-ac76-217ac2ccd605", "9d1e1b42-cd11-4461-babe-2e53af301fc3", "46fbbc45-b028-423d-bbba-fb9f27fbb731", "7661bbe8-a8bd-4360-850c-24479f5b5086", "340bfda0-a3bc-4bb2-a7c5-7c0633462791", "c59cf76b-5deb-42dd-9e0c-ebd05bd30532", "5678ba0d-93ae-4f56-a508-f31dad866a49", "78367916-efd0-41f9-823e-8b372ff08d7b"], + minimum_number_of_products: 7497, + minimum_number_of_amount: 8326, + minimum_number_for_combination_purchase: 9560, exist_in_each_product_groups: false, - max_point_amount: 1717, - max_total_point_amount: 3772, - dest_private_money_id: "6694a68b-b428-403c-b6b0-e536ec92f73d", + max_point_amount: 6949, + max_total_point_amount: 7775, + dest_private_money_id: "3b7a5ae5-91a7-4d5c-b7a8-a9a9b52a70fe", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1994554518 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1553487604 )) assert response.code != "400" end def test_create_campaign_12 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - applicable_days_of_week: [2, 5, 3, 0, 4, 3, 6, 2], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["03a49247-b289-4ebd-8cba-6a7166e3e4d1", "9689cfe9-af82-482b-a3a3-ca9228274a71"], - minimum_number_of_products: 8418, - minimum_number_of_amount: 3644, - minimum_number_for_combination_purchase: 5803, - exist_in_each_product_groups: false, - max_point_amount: 2483, - max_total_point_amount: 4209, - dest_private_money_id: "1da33c39-b581-44e9-8072-64d60b01a80e", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + applicable_shop_ids: ["d3beb8b9-c73a-4edd-a008-7bbc7537621f", "345c0d12-b142-4029-8228-74b1531a389e", "f1c39d18-8fd9-4983-8e2f-6943a50f66ec"], + blacklisted_shop_ids: ["fd836e3a-ebc5-4830-a86e-a33bde898838", "15c39237-a4c1-4633-8a92-2f0632d42e89", "dd781830-560c-476c-b6c0-e10b6c8ee176", "66eb225c-86db-4773-90f0-d85c0515f6be"], + minimum_number_of_products: 5967, + minimum_number_of_amount: 9276, + minimum_number_for_combination_purchase: 8540, + exist_in_each_product_groups: true, + max_point_amount: 4062, + max_total_point_amount: 8969, + dest_private_money_id: "fdc3d6bf-66c8-41b9-8875-6e38ab3091ae", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 435207887 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 530332153 )) assert response.code != "400" end def test_create_campaign_13 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - blacklisted_product_rules: [{ - "product_code": "4912345678904", - "classification_code": "c123" + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" - }], - applicable_days_of_week: [3, 2, 1, 0, 5, 5, 5, 4], - applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -4201,46 +4295,37 @@ def test_create_campaign_13 "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 4426, - minimum_number_of_amount: 1489, - minimum_number_for_combination_purchase: 2070, - exist_in_each_product_groups: true, - max_point_amount: 6059, - max_total_point_amount: 840, - dest_private_money_id: "39408316-624a-4437-8a47-0c42c6b1db7e", + applicable_shop_ids: ["18bcc7a6-42df-4471-8c96-80325b2c3b3c", "40697392-26ed-4578-aa94-b6ddd5ed4049", "3369bd75-6a62-4fb5-9739-da64704ff78d", "a9f18db4-11e6-4061-b72d-3339c8cbe9e0", "f8574894-d553-4f6e-8f48-87d3ab29e466", "d104fc5b-13ea-4b0a-8b5b-ebebdee2f570", "8d2780b3-927c-4951-9f97-d06bd0e061a9", "48d99ac9-9e9c-429d-9fb1-aeb18bd20add", "43e5aceb-15a7-46ab-90d5-82cf5da6793b", "6ed4a1a2-b257-482a-891e-ed975f5eb38a"], + blacklisted_shop_ids: ["f8058f43-c2a0-46a6-8939-b5d89548b2be", "a9720b52-2c3c-4460-9b58-dfd34200ba06", "6d6c178f-5a60-46eb-bdfd-ad8bb695699b", "5d0693db-a9d7-4284-949f-86abab0d2810"], + minimum_number_of_products: 6819, + minimum_number_of_amount: 3852, + minimum_number_for_combination_purchase: 1399, + exist_in_each_product_groups: false, + max_point_amount: 1528, + max_total_point_amount: 9015, + dest_private_money_id: "6b5fd159-daf3-441a-a585-941b989bba51", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 413072068 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 277092951 )) assert response.code != "400" end def test_create_campaign_14 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - blacklisted_product_rules: [{ - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }], - applicable_days_of_week: [1, 5, 4, 2, 5, 0, 4, 6], + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + applicable_days_of_week: [2, 6, 5, 6, 6, 2, 1], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -4260,71 +4345,49 @@ def test_create_campaign_14 "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["08ae7609-c839-463e-b677-edbb9446e466", "ef4f316d-778a-40d6-b2d7-22f266970e4b", "99a0b664-64b8-4920-9ae3-9a6b5bb7156e", "80e5d760-c7e4-4796-9750-6e6e386caa1c"], - minimum_number_of_products: 6769, - minimum_number_of_amount: 8351, - minimum_number_for_combination_purchase: 32, + applicable_shop_ids: ["69fab842-dd53-4682-8c52-5154675ac042", "6d5b2fb4-449c-4ef0-9c68-9bf04ce7836a", "9fb4ff62-b6de-4674-8201-51b66cbe9517", "22c7329d-8dab-491d-91fd-d5849fa8b21c", "440b88ff-2ba0-4dc8-970e-6365cf4ab4af", "2b09da44-002e-4da8-8bac-b58320d33981"], + blacklisted_shop_ids: ["c725bbde-0bd8-4296-a41f-6bc5dc6a7fe7", "74a4e426-0f8a-4360-b34f-c6ff86b32d97", "a23ee378-4efb-4928-9f47-846c94418ef3", "727f8e5a-16e1-4d56-a453-0e3ff45fd670", "a71eadaf-4805-4f88-9d5d-3b8f66ce191b", "f155101a-24ea-41ef-bb8f-d4173f7b60d1", "43bef5b6-d001-47e6-9d66-0b5951aac3c1", "294d4b65-6b5f-45ab-8036-5d15bdd50904", "d647966b-8dbb-4e70-ae1a-6dd8c180197c"], + minimum_number_of_products: 6463, + minimum_number_of_amount: 234, + minimum_number_for_combination_purchase: 5512, exist_in_each_product_groups: false, - max_point_amount: 2287, - max_total_point_amount: 297, - dest_private_money_id: "fdccb7a5-4c12-4f12-9b13-bb914f6d6ffc", + max_point_amount: 7253, + max_total_point_amount: 2627, + dest_private_money_id: "99beac55-06c9-4865-b52d-b269489eb4db", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 405791693 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1370835570 )) assert response.code != "400" end def test_create_campaign_15 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - amount_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - blacklisted_product_rules: [{ + "classification_code": "c123" + }, { "product_code": "4912345678904", "classification_code": "c123" }, { @@ -4343,7 +4406,7 @@ def test_create_campaign_15 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [4, 5, 6], + applicable_days_of_week: [2, 5, 3, 2, 1, 1, 5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -4353,85 +4416,52 @@ def test_create_campaign_15 }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["c127b51b-9170-4fcf-a862-b238afbab276"], - minimum_number_of_products: 4131, - minimum_number_of_amount: 7296, - minimum_number_for_combination_purchase: 7888, + applicable_shop_ids: ["48eaa446-11c7-4e7c-a08a-5c4c5b7d6e20", "8d76b3f5-ef24-4fbd-ac98-7517bfef2df1", "523230bc-0744-4796-ae91-73b24dbcb46f", "7727d195-cd4d-4b86-bd40-bc59ebfdc2d2"], + blacklisted_shop_ids: ["6b8fb90c-f506-49a4-9dc6-2685ae0a0a68", "ea2c9baa-feb8-4dfe-a1ab-a663cc974c71", "01ac526e-fc56-46b2-9bbc-41f338f7b2f0", "4b2a7e91-c6c6-4def-8b62-952a5f1622b7"], + minimum_number_of_products: 2082, + minimum_number_of_amount: 5483, + minimum_number_for_combination_purchase: 346, exist_in_each_product_groups: false, - max_point_amount: 7211, - max_total_point_amount: 2765, - dest_private_money_id: "46343905-42e5-487d-8361-b49b5355045f", + max_point_amount: 889, + max_total_point_amount: 8594, + dest_private_money_id: "f93312b3-a62d-4823-93e7-ab548bb88620", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 601600727 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 819802827 )) assert response.code != "400" end def test_create_campaign_16 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - subject: "all", - amount_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 @@ -4481,30 +4511,30 @@ def test_create_campaign_16 }, { "product_code": "4912345678904", "classification_code": "c123" - }], - applicable_days_of_week: [1, 3, 3], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { - "from": "12:00", - "to": "23:59" + "product_code": "4912345678904", + "classification_code": "c123" }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [4, 1, 4, 0, 3, 6, 4], + applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { @@ -4514,33 +4544,36 @@ def test_create_campaign_16 "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["7c85eb77-a868-495f-b0b9-d6045bb2c13e", "b78bf37f-ce7d-433c-b627-a9aa6a0d51df", "d8317293-b676-4508-9929-cd40c097e006"], - minimum_number_of_products: 3930, - minimum_number_of_amount: 4844, - minimum_number_for_combination_purchase: 3303, + applicable_shop_ids: ["731fc7fc-e721-4981-a233-ddf99fbc27eb", "9b54fa9e-9b07-4a7b-9dad-e6596586f889", "ba324ad9-8356-45d2-9a94-f3b4b8ea7aff", "e7bd636a-a787-4d64-9cab-bcf9339fd086", "747fae14-af66-4921-a5c4-8a13c881f9fd", "9659d447-1459-45d1-a1a1-1a3d2cab8ddb", "1029f3a2-29b0-4851-9740-e009da5deadf", "0fbd8e50-f3c3-4943-a21c-73b6765dbe99"], + blacklisted_shop_ids: ["e8ca43a4-7e94-4004-8854-cafcac381fb3"], + minimum_number_of_products: 186, + minimum_number_of_amount: 2268, + minimum_number_for_combination_purchase: 4030, exist_in_each_product_groups: true, - max_point_amount: 2802, - max_total_point_amount: 6850, - dest_private_money_id: "c0850b72-6beb-4156-864f-57919bff2c2c", + max_point_amount: 2940, + max_total_point_amount: 2313, + dest_private_money_id: "bbb7f820-b301-43af-92a2-6a3915e9a2a2", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 949953665 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1541686991 )) assert response.code != "400" end def test_create_campaign_17 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - is_exclusive: false, - subject: "all", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -4551,41 +4584,6 @@ def test_create_campaign_17 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -4658,63 +4656,45 @@ def test_create_campaign_17 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [6, 1, 1, 0, 4, 2, 1, 2, 5], + applicable_days_of_week: [5, 3, 2, 0, 0, 0, 6, 3, 6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["1bd8f4b6-a1de-454b-a056-004689f84ee2"], - minimum_number_of_products: 3230, - minimum_number_of_amount: 7451, - minimum_number_for_combination_purchase: 4554, - exist_in_each_product_groups: true, - max_point_amount: 7742, - max_total_point_amount: 9479, - dest_private_money_id: "11e29df1-b359-4fe7-826c-6a1b02142139", + applicable_shop_ids: ["a4ff10c6-c659-44c4-9540-fed56b0854b0", "f934281f-712c-470b-8810-edf5defae4c7", "8c893f33-6b33-4432-abd9-83e4a2fb8281", "bbe92ed2-81c5-45ff-919f-b6253a1ca59a"], + blacklisted_shop_ids: ["fb061e0f-ffb3-48dd-b901-616061cffda2", "aedeae97-438c-4abb-aeda-e684fd90c942", "c72bd255-ce76-4634-9507-6346352f702c", "f4e47138-0edf-4ede-830b-3bffcb1852ca"], + minimum_number_of_products: 3550, + minimum_number_of_amount: 6456, + minimum_number_for_combination_purchase: 9904, + exist_in_each_product_groups: false, + max_point_amount: 3322, + max_total_point_amount: 4499, + dest_private_money_id: "2f8ee6bc-4e0f-4ddb-849e-b33b51788907", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1048575674 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 270788988 )) assert response.code != "400" end def test_create_campaign_18 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - point_expires_in_days: 9721, - is_exclusive: false, - subject: "money", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -4735,28 +4715,20 @@ def test_create_campaign_18 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }], - product_based_point_rules: [{ + }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 @@ -4821,14 +4793,8 @@ def test_create_campaign_18 }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [5, 0, 6, 6, 3, 2, 6, 4], + applicable_days_of_week: [2, 3, 0, 4, 3, 5, 0, 1, 1, 4], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -4841,34 +4807,49 @@ def test_create_campaign_18 }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["af29f425-4c7e-47c8-b716-1d8be8f18f6c", "ce4285ea-7620-4829-8c71-28076bf5b6c5", "f08aaf64-c470-44ba-87aa-fd2a00b03b71", "5ec7a743-2297-42e3-902c-5ccfdaf98fbd"], - minimum_number_of_products: 6, - minimum_number_of_amount: 3953, - minimum_number_for_combination_purchase: 7000, - exist_in_each_product_groups: true, - max_point_amount: 8742, - max_total_point_amount: 619, - dest_private_money_id: "cfc5f52c-d12f-4f69-b602-fcaaac59caa9", + applicable_shop_ids: ["5ac313ed-69c0-4976-9fa0-75baa08f82d4", "94ea973c-8356-4a38-9ed2-c042ff96f8fa", "d8341aa3-8899-4d1a-9f70-6a15390ea6de", "2fd4ee08-b5b0-4380-a7aa-426914e7b178", "1ae93bf3-7304-4182-994b-845a3bef9510", "530aa3d7-386f-4155-ab93-34e55129d44f", "4fef0152-4a3a-4acc-b914-2f38b51020a3", "1ed476ad-c4d1-419f-be44-947667d3e939", "14dd405b-8e54-400e-97b3-d8df002e5c04"], + blacklisted_shop_ids: ["391e4aff-6fef-4297-aef2-f2164d0bbbf5", "00cf94b5-6fc4-483d-812e-aef8298c9e78", "35ffbf9b-bf52-47a7-8d97-c19d5d9e9522", "66c1cedc-ef07-4e31-ae6b-9d960b12ef22", "57b5297d-e008-49e9-92b4-1564cac44b61"], + minimum_number_of_products: 1237, + minimum_number_of_amount: 212, + minimum_number_for_combination_purchase: 3509, + exist_in_each_product_groups: false, + max_point_amount: 2097, + max_total_point_amount: 1586, + dest_private_money_id: "518c61fb-a893-465e-80fa-61d94b8dceba", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 818977520 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1970190781 )) assert response.code != "400" end def test_create_campaign_19 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - point_expires_at: "2022-01-04T18:02:55.000000Z", - point_expires_in_days: 5615, + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", is_exclusive: false, subject: "all", amount_based_point_rules: [{ @@ -4901,16 +4882,6 @@ def test_create_campaign_19 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -4948,30 +4919,6 @@ def test_create_campaign_19 "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -4979,46 +4926,58 @@ def test_create_campaign_19 }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [6, 4, 5, 4, 5, 6, 4], + applicable_days_of_week: [5, 0, 5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 4799, - minimum_number_of_amount: 3234, - minimum_number_for_combination_purchase: 6996, + applicable_shop_ids: ["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"], + blacklisted_shop_ids: ["092bc3f3-ce1f-4882-8ff8-f4cab95ab679"], + minimum_number_of_products: 7183, + minimum_number_of_amount: 7465, + minimum_number_for_combination_purchase: 9531, exist_in_each_product_groups: false, - max_point_amount: 7422, - max_total_point_amount: 3913, - dest_private_money_id: "ec7e1215-88d1-4216-bf19-230d0eb4d484", + max_point_amount: 9362, + max_total_point_amount: 9122, + dest_private_money_id: "5ce9d506-a774-4733-9e04-bab03ca2b36f", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1686759322 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 32261216 )) assert response.code != "400" end def test_create_campaign_20 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - status: "enabled", - point_expires_at: "2023-08-09T04:23:09.000000Z", - point_expires_in_days: 6024, + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + point_expires_in_days: 83, is_exclusive: true, subject: "money", amount_based_point_rules: [{ @@ -5041,35 +5000,34 @@ def test_create_campaign_20 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 @@ -5104,14 +5062,8 @@ def test_create_campaign_20 }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [4, 0, 3, 0, 6], + applicable_days_of_week: [1, 0, 1, 6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -5140,58 +5092,161 @@ def test_create_campaign_20 "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 9110, - minimum_number_of_amount: 1010, - minimum_number_for_combination_purchase: 3863, - exist_in_each_product_groups: false, - max_point_amount: 4164, - max_total_point_amount: 1671, - dest_private_money_id: "85ecf905-d23b-4c90-9274-9fc06bc89d13", + applicable_shop_ids: ["10b24f0a-0e46-4816-94c1-15d756dd79de", "fee124ea-6476-4b9a-a3ce-382feab35f22", "9d191b7f-4946-456c-82fd-21cd96a7a184", "ef7085a9-cc47-4668-9bcf-4c0058b02637", "83bbb0cd-776a-4f0a-85ef-5e0d14f2c89f"], + blacklisted_shop_ids: ["cc5754a9-a046-48e9-884c-6ca252efadf4", "0a61a44e-620d-4739-99bb-43f1a5f9db79", "fbc3dfb7-0fa0-418d-92de-2ab5ad53f953", "090a782d-dbe5-4c98-ae7b-b36c936e8fb4", "10f9b122-ff7c-4df2-b1ea-e4714663db44"], + minimum_number_of_products: 3054, + minimum_number_of_amount: 6430, + minimum_number_for_combination_purchase: 5955, + exist_in_each_product_groups: true, + max_point_amount: 2664, + max_total_point_amount: 5036, + dest_private_money_id: "d643d3a9-107a-4cab-a819-7e2832801030", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 2086510520 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 943920199 )) assert response.code != "400" end def test_create_campaign_21 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - description: "PEIsHw9iaxaPzoaDv6U6SXLkHad9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZEdo3Ttk", - status: "disabled", - point_expires_at: "2023-07-08T21:45:49.000000Z", - point_expires_in_days: 7077, - is_exclusive: true, - subject: "money", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + point_expires_at: "2022-04-18T08:52:25.000000Z", + point_expires_in_days: 3535, + is_exclusive: false, + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [2], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["0cfa3b2c-1e1e-4e04-9def-afb12ed3c65e", "914750c9-ca89-4533-a0a8-291846d3fa72", "414d35a2-bdbe-4484-a4c0-526b79f486cc"], + blacklisted_shop_ids: ["5456ba84-f093-43b5-99f6-af7520ee3f55", "f4a83851-f16c-4aff-88c8-4ed70d9f61bd", "e20bf32c-a801-419d-a848-95e4d432ef8b"], + minimum_number_of_products: 6012, + minimum_number_of_amount: 127, + minimum_number_for_combination_purchase: 3336, + exist_in_each_product_groups: true, + max_point_amount: 9548, + max_total_point_amount: 8651, + dest_private_money_id: "8b280d0c-f61f-4247-8acf-e45bf951b312", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1022005606 + )) + assert response.code != "400" + end + + def test_create_campaign_22 + response = $client.send(Pokepay::Request::CreateCampaign.new( + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + status: "enabled", + point_expires_at: "2021-10-23T05:29:05.000000Z", + point_expires_in_days: 6840, + is_exclusive: false, + subject: "all", + amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, @@ -5242,18 +5297,6 @@ def test_create_campaign_21 "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -5276,8 +5319,11 @@ def test_create_campaign_21 }, { "product_code": "4912345678904", "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [6, 1, 4, 2, 6, 4, 3, 2, 2, 0], + applicable_days_of_week: [6, 6, 2, 0, 3, 3, 5, 3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -5290,39 +5336,52 @@ def test_create_campaign_21 }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 695, - minimum_number_of_amount: 3627, - minimum_number_for_combination_purchase: 5402, - exist_in_each_product_groups: false, - max_point_amount: 8829, - max_total_point_amount: 4980, - dest_private_money_id: "760504bc-ab2e-43ea-9dcf-838067b7f47b", + applicable_shop_ids: ["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"], + blacklisted_shop_ids: ["e3735137-a266-4408-ba7c-2f6222d6d722", "609f047a-da81-49d7-b59a-c681ad2ae724", "ff02d2c7-a06a-4b15-b207-581e5082508d", "9da7a4fe-f6db-4726-b80d-59e2429c9611", "a4c9b73f-4903-4afc-aa0f-b3fa8c760b6f", "1fb6814d-6d60-4f0d-abd5-60e6706da151", "27f2bc02-47a5-49da-b9c7-6bae786f6bb6", "727b4eba-5711-47f1-ac39-1e6b0b3c2c76"], + minimum_number_of_products: 3914, + minimum_number_of_amount: 4479, + minimum_number_for_combination_purchase: 2491, + exist_in_each_product_groups: true, + max_point_amount: 1204, + max_total_point_amount: 4491, + dest_private_money_id: "3b224ee7-a1d1-4682-8815-e72f29b0d066", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 983324416 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 123269079 )) assert response.code != "400" end - def test_create_campaign_22 + def test_create_campaign_23 response = $client.send(Pokepay::Request::CreateCampaign.new( - "BIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3", - "787a93c7-7ceb-460d-a428-a1f98945efe7", - "2020-02-28T15:38:38.000000Z", - "2021-01-29T22:29:35.000000Z", - 5711, - "external-transaction", - bear_point_shop_id: "11f10eef-2e78-4cb0-9206-8dd2ef518714", - description: "gJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8Jtqof", + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + description: "cwKE", status: "disabled", - point_expires_at: "2020-03-23T11:05:38.000000Z", - point_expires_in_days: 5114, + point_expires_at: "2021-07-16T03:00:15.000000Z", + point_expires_in_days: 7234, is_exclusive: true, - subject: "all", + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -5353,6 +5412,143 @@ def test_create_campaign_22 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [4, 1, 2, 4, 3], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["ec7492ca-f155-4d5d-a0f7-767cfaf400a3", "cefaa82b-949c-44b5-b595-af85ca1483ba", "0961668f-9f3a-4f12-9ea4-9159427656de", "c4696d67-3ccc-4a55-aa3a-e095f9385aac", "367cba8d-7132-4824-8c5b-ef28546eb457", "8f62d70f-e9c9-44ad-bcc8-cfe32fc051da", "f82f0b29-d37f-40b5-9fa9-89904669fe4b", "03c48207-e99a-4e26-86e8-fbb75d54ab93", "63316655-4a01-492d-b0de-40f4d688adb9"], + blacklisted_shop_ids: ["98915bcd-c4df-44a7-bf8e-5e32b3cd8754", "639f85e8-ea64-46fd-ac80-2397ea2346c6", "ec73891b-c6d2-49ff-af34-7cdce9686a5a", "9cb13182-8eae-44c7-ad1d-39c302745c33", "d18d0d9c-fb6c-45d9-9a53-b6dc71855f64", "00fcae6b-a27e-40d2-ace4-04bd45af2c49", "55ec36c8-2e6c-43c2-afb7-e490a1081ce9"], + minimum_number_of_products: 1629, + minimum_number_of_amount: 2126, + minimum_number_for_combination_purchase: 5016, + exist_in_each_product_groups: true, + max_point_amount: 402, + max_total_point_amount: 9702, + dest_private_money_id: "2d878d4c-d2fa-49d4-a739-88465e95c68e", + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 556567614 + )) + assert response.code != "400" + end + + def test_create_campaign_24 + response = $client.send(Pokepay::Request::CreateCampaign.new( + "1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAx", + "5c77907a-e61f-40df-9a46-8214b5afe7d5", + "2023-05-26T13:27:18.000000Z", + "2022-12-03T22:38:33.000000Z", + 104, + "topup", + bear_point_shop_id: "78fa46be-99fd-4a43-9036-aee231bb23ef", + description: "kANEWZ0xko5rtXdkjCZ6KXkiMx1kHTVbpRx79qoFTViWGk7rsKgu2ihoMxDsfU3T", + status: "enabled", + point_expires_at: "2022-12-11T13:10:27.000000Z", + point_expires_in_days: 6066, + is_exclusive: false, + subject: "money", + amount_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", @@ -5370,12 +5566,66 @@ def test_create_campaign_22 "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [5, 3, 4, 6, 3, 3], + applicable_days_of_week: [4, 3, 6, 3, 3, 2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -5394,395 +5644,287 @@ def test_create_campaign_22 }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 9233, - minimum_number_of_amount: 4834, - minimum_number_for_combination_purchase: 6942, - exist_in_each_product_groups: true, - max_point_amount: 2896, - max_total_point_amount: 7167, - dest_private_money_id: "8eac67b2-059c-451c-af01-3e21d210b388", + applicable_shop_ids: ["eacd3507-5b4d-416f-9c36-412c6bd7d410", "f3bdb948-23ce-40ff-8b46-c9eae53b51ce"], + blacklisted_shop_ids: ["5b997cb6-664d-41f4-b14e-ca176fc69707", "97eeb9ce-bd2e-4988-9efc-eaa46e9bebfb"], + minimum_number_of_products: 7815, + minimum_number_of_amount: 1683, + minimum_number_for_combination_purchase: 6492, + exist_in_each_product_groups: false, + max_point_amount: 919, + max_total_point_amount: 3544, + dest_private_money_id: "ca20ee9b-28f9-4320-8c43-15497e5859e9", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1835558922 - )) - assert response.code != "400" - end - - def test_list_campaigns_0 - response = $client.send(Pokepay::Request::ListCampaigns.new( - "e97d96a6-4994-49cd-9ab3-81e6fe93b873" - )) - assert response.code != "400" - end - - def test_list_campaigns_1 - response = $client.send(Pokepay::Request::ListCampaigns.new( - "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - per_page: 28 - )) - assert response.code != "400" - end - - def test_list_campaigns_2 - response = $client.send(Pokepay::Request::ListCampaigns.new( - "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - page: 8812, - per_page: 33 - )) - assert response.code != "400" - end - - def test_list_campaigns_3 - response = $client.send(Pokepay::Request::ListCampaigns.new( - "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - available_to: "2020-07-14T14:34:50.000000Z", - page: 5746, - per_page: 25 - )) - assert response.code != "400" - end - - def test_list_campaigns_4 - response = $client.send(Pokepay::Request::ListCampaigns.new( - "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - available_from: "2022-02-21T01:02:48.000000Z", - available_to: "2022-04-09T08:29:11.000000Z", - page: 408, - per_page: 35 - )) - assert response.code != "400" - end - - def test_list_campaigns_5 - response = $client.send(Pokepay::Request::ListCampaigns.new( - "e97d96a6-4994-49cd-9ab3-81e6fe93b873", - is_ongoing: false, - available_from: "2023-05-31T11:07:36.000000Z", - available_to: "2022-07-22T02:58:39.000000Z", - page: 3467, - per_page: 35 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 546285026 )) assert response.code != "400" end def test_get_campaign_0 response = $client.send(Pokepay::Request::GetCampaign.new( - "663770d7-bf54-4cf0-86b6-9fb6e0dc55af" + "ef731053-5c6d-45f8-82a1-46cf83be1e19" )) assert response.code != "400" end def test_update_campaign_0 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86" + "00a528e9-c261-4ee2-b981-bdc3d4377e2c" )) assert response.code != "400" end def test_update_campaign_1 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - budget_caps_amount: 1846048109 + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + budget_caps_amount: 647868743 )) assert response.code != "400" end def test_update_campaign_2 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - applicable_account_metadata: { - "key": "sex", - "value": "male" + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" }, - budget_caps_amount: 1161308371 + budget_caps_amount: 917424574 )) assert response.code != "400" end def test_update_campaign_3 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - max_total_point_amount: 5715, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1062068093 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 568729767 )) assert response.code != "400" end def test_update_campaign_4 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - max_point_amount: 6330, - max_total_point_amount: 8831, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + max_total_point_amount: 1987, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 769812961 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1599807000 )) assert response.code != "400" end def test_update_campaign_5 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - exist_in_each_product_groups: true, - max_point_amount: 1270, - max_total_point_amount: 124, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + max_point_amount: 598, + max_total_point_amount: 3199, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 173694542 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1547814124 )) assert response.code != "400" end def test_update_campaign_6 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - minimum_number_for_combination_purchase: 2135, - exist_in_each_product_groups: true, - max_point_amount: 1276, - max_total_point_amount: 9060, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + exist_in_each_product_groups: false, + max_point_amount: 9036, + max_total_point_amount: 4779, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1165020838 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1580378378 )) assert response.code != "400" end def test_update_campaign_7 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - minimum_number_of_amount: 3475, - minimum_number_for_combination_purchase: 5299, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + minimum_number_for_combination_purchase: 4381, exist_in_each_product_groups: false, - max_point_amount: 6011, - max_total_point_amount: 5516, + max_point_amount: 8567, + max_total_point_amount: 4091, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1777436902 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1485835025 )) assert response.code != "400" end def test_update_campaign_8 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - minimum_number_of_products: 2258, - minimum_number_of_amount: 9990, - minimum_number_for_combination_purchase: 4946, - exist_in_each_product_groups: true, - max_point_amount: 3456, - max_total_point_amount: 7634, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + minimum_number_of_amount: 723, + minimum_number_for_combination_purchase: 4265, + exist_in_each_product_groups: false, + max_point_amount: 5419, + max_total_point_amount: 687, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1301092573 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1363226621 )) assert response.code != "400" end def test_update_campaign_9 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - applicable_shop_ids: ["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"], - minimum_number_of_products: 9363, - minimum_number_of_amount: 1299, - minimum_number_for_combination_purchase: 4422, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + minimum_number_of_products: 6590, + minimum_number_of_amount: 3759, + minimum_number_for_combination_purchase: 2267, exist_in_each_product_groups: true, - max_point_amount: 2933, - max_total_point_amount: 6728, + max_point_amount: 1280, + max_total_point_amount: 6724, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 233495880 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 393054879 )) assert response.code != "400" end def test_update_campaign_10 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["1ed1f2c7-d3a2-4058-af35-53e03c81bd2e", "f3b70088-e1ba-4a0f-9550-f6843e6f4da2"], - minimum_number_of_products: 1838, - minimum_number_of_amount: 5548, - minimum_number_for_combination_purchase: 160, - exist_in_each_product_groups: true, - max_point_amount: 7207, - max_total_point_amount: 2538, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + blacklisted_shop_ids: ["a535270c-a3d0-42c9-8be2-d3f8f566a79b", "9f58e9ff-3452-4949-afeb-9e097a0ff43d", "5f6f82ae-5772-4815-93cd-fdbea30dd904", "61f2b8ab-0e63-4cc1-ae24-69e54241a7b6", "9a913e19-60c4-4edc-910c-9bdf49f7e798", "d09c8e0b-6989-45ac-8c70-9796ee4ab866", "14e117e8-15bb-4f25-b73b-551f39ebbaac", "06c15c96-9d9a-4fab-966a-6168ee21fb11", "174881ef-b139-419c-b141-b6eaaf607901", "51d4bfbd-efb0-4303-9bb3-9da59737867b"], + minimum_number_of_products: 7862, + minimum_number_of_amount: 4710, + minimum_number_for_combination_purchase: 3756, + exist_in_each_product_groups: false, + max_point_amount: 8738, + max_total_point_amount: 2867, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 39477703 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 2002502568 )) assert response.code != "400" end def test_update_campaign_11 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - applicable_days_of_week: [2, 6, 3, 3, 2, 5], - applicable_time_ranges: [{ - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }], - applicable_shop_ids: ["4632bf59-dcb5-4049-b69d-11762472c923", "11cf33fe-56bb-4759-a17c-e44a9d4338aa", "5f77f094-7128-4e7f-bc71-8d454c8014e3", "0cafe261-eeee-4a73-9373-1fd0940982b2"], - minimum_number_of_products: 2184, - minimum_number_of_amount: 9496, - minimum_number_for_combination_purchase: 5902, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + applicable_shop_ids: ["5a215f06-9b3c-4dc2-8bdd-cdb005bf7365", "773df90f-b0be-4b31-bbbb-a0fa674df37f", "29aa6399-7c0a-4151-9cbe-90f8d04f971b", "5cf7d75d-8482-40cc-b43b-ea25cb93003d", "008710cc-64d7-4a25-972e-c2f2c14e81c5", "4e803ceb-cbd5-4ef2-8b5d-74d55fa15309", "12a5c541-4144-4cac-9924-16613b46ced5", "c04d01ff-a0cd-4140-9334-0e8af8a23517"], + blacklisted_shop_ids: ["0014f60b-bf31-48af-9bf8-f8594e81ae30", "e53f8a03-5a03-437a-b6f1-610a60381ab9", "01574e52-acbc-4c6c-aae9-5275a172db71", "5c5220cf-a642-4529-bf49-6dce0556416d", "1508f3b4-0651-4022-b737-9d5b2511702f", "bcc88cc2-148a-460d-a879-72712500afe9", "e382d27b-702a-43fa-ab86-03561620cfd1"], + minimum_number_of_products: 6935, + minimum_number_of_amount: 9830, + minimum_number_for_combination_purchase: 6207, exist_in_each_product_groups: true, - max_point_amount: 8382, - max_total_point_amount: 230, + max_point_amount: 4923, + max_total_point_amount: 2611, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 144380158 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 534879453 )) assert response.code != "400" end def test_update_campaign_12 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - blacklisted_product_rules: [{ - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }], - applicable_days_of_week: [3, 3, 5, 0, 1, 3, 2], + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 6652, - minimum_number_of_amount: 3899, - minimum_number_for_combination_purchase: 9776, - exist_in_each_product_groups: false, - max_point_amount: 4496, - max_total_point_amount: 7383, + applicable_shop_ids: ["7fb7f6d8-e2bd-4239-aa01-706d784d2a2b", "92247ed1-091e-4f0a-8a69-4fc5a255d145", "20181a4c-232c-4d14-96fd-94ba565aacec", "eeab11f9-f184-461d-a35b-e98f4100048e", "a0469b66-fb5b-41e4-bc7e-f7246ab83491", "6e686da4-d528-45ae-8841-02b0b39caa73", "f433346e-7daa-4f31-8add-f9702791768b"], + blacklisted_shop_ids: ["41b8ec39-ab63-4374-8209-c2765eb4e058"], + minimum_number_of_products: 5107, + minimum_number_of_amount: 6496, + minimum_number_for_combination_purchase: 4729, + exist_in_each_product_groups: true, + max_point_amount: 7793, + max_total_point_amount: 3542, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1025667088 - )) - assert response.code != "400" - end - - def test_update_campaign_13 - response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - blacklisted_product_rules: [{ - "product_code": "4912345678904", - "classification_code": "c123" - }], - applicable_days_of_week: [0, 6, 3, 6, 6, 1], + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 582908392 + )) + assert response.code != "400" + end + + def test_update_campaign_13 + response = $client.send(Pokepay::Request::UpdateCampaign.new( + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + applicable_days_of_week: [4, 2, 2], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -5804,99 +5946,35 @@ def test_update_campaign_13 }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["0e2aad56-794a-4929-8ea7-13fd509cda05", "6aae338a-e89b-4004-9c95-f4936f465001", "92c529ce-c410-4920-b827-fcb108e1c009"], - minimum_number_of_products: 7373, - minimum_number_of_amount: 1994, - minimum_number_for_combination_purchase: 3980, + applicable_shop_ids: ["b2211d94-41e2-48ad-a511-1de684ffed64", "03d70405-43b8-487c-ac99-2ec99abef437", "723311e3-7461-46b3-afef-a3794099be51"], + blacklisted_shop_ids: ["54ec41c9-ba73-4800-929c-77d53619efec", "fe0403b3-ccba-48f2-83cd-c21f4d5aa21f"], + minimum_number_of_products: 4881, + minimum_number_of_amount: 3547, + minimum_number_for_combination_purchase: 5676, exist_in_each_product_groups: true, - max_point_amount: 4784, - max_total_point_amount: 889, + max_point_amount: 3353, + max_total_point_amount: 8470, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 148336805 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 432354392 )) assert response.code != "400" end def test_update_campaign_14 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - amount_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + blacklisted_product_rules: [{ "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "classification_code": "c123" }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" }, { @@ -5909,7 +5987,7 @@ def test_update_campaign_14 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [6, 0], + applicable_days_of_week: [5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -5919,38 +5997,34 @@ def test_update_campaign_14 }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["f0621bc6-dc0a-46d0-9c10-7175df743982"], - minimum_number_of_products: 8390, - minimum_number_of_amount: 5437, - minimum_number_for_combination_purchase: 7632, - exist_in_each_product_groups: true, - max_point_amount: 1278, - max_total_point_amount: 3071, + applicable_shop_ids: ["ebf5c9fb-a834-41a2-8941-b84400214e54", "0c040048-8096-458b-9f64-845449d83ed0", "f92c5073-2310-47ea-a80d-c02da5b58855"], + blacklisted_shop_ids: ["280e130e-39f3-4cbe-97e2-91751aac2b3b", "0e15f01e-9795-4de8-876e-f4e2fe882e92", "78d1953f-5649-4955-86bb-dc6c784790ff", "1cfebb28-e966-4bc0-b66f-3de2f10e83a4", "f0cdadcf-9220-45df-9b94-3ce30321583a"], + minimum_number_of_products: 3678, + minimum_number_of_amount: 1261, + minimum_number_for_combination_purchase: 985, + exist_in_each_product_groups: false, + max_point_amount: 7655, + max_total_point_amount: 4727, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1972410865 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1564986024 )) assert response.code != "400" end def test_update_campaign_15 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - subject: "money", - amount_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -5980,7 +6054,7 @@ def test_update_campaign_15 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [6, 1, 1, 3], + applicable_days_of_week: [5, 1], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -5999,28 +6073,34 @@ def test_update_campaign_15 }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["60548624-851e-43e7-b391-1a02842e45d6", "4b08f189-379a-49e1-a356-4a858f1f9d67", "776b0929-65b5-45ec-9180-ac134a935051"], - minimum_number_of_products: 3660, - minimum_number_of_amount: 6030, - minimum_number_for_combination_purchase: 7956, + applicable_shop_ids: ["c8946e96-32b3-417b-a8ea-37212adf9a9d", "3118c374-4a1f-4b22-8404-64b1aaddbb8c", "58080a56-7ea5-4f59-bbfd-f8ff349aa06e", "ac05a43a-bbd4-495d-a8c5-a1e09074fc8a"], + blacklisted_shop_ids: ["af0a78fe-43cf-4acc-b46c-e70a73af16eb", "11dc2fde-2f3a-49dd-92d0-84c9e4243741"], + minimum_number_of_products: 3935, + minimum_number_of_amount: 5139, + minimum_number_for_combination_purchase: 9830, exist_in_each_product_groups: false, - max_point_amount: 3775, - max_total_point_amount: 1907, + max_point_amount: 2839, + max_total_point_amount: 4889, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1799661733 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 473495181 )) assert response.code != "400" end def test_update_campaign_16 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - is_exclusive: true, - subject: "money", + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -6031,13 +6111,26 @@ def test_update_campaign_16 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -6051,7 +6144,7 @@ def test_update_campaign_16 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [5, 2, 2, 1, 6, 5, 1, 6, 6, 4], + applicable_days_of_week: [3, 1, 6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -6064,28 +6157,49 @@ def test_update_campaign_16 }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 9641, - minimum_number_of_amount: 6216, - minimum_number_for_combination_purchase: 9135, + applicable_shop_ids: ["f77d846f-d253-4b4a-b02b-57a7e55fc8f4", "ed1dc640-6697-40b0-8cf8-c9f7665a8397", "f992738e-d6fa-413b-8067-e69fa1d313da", "825937ad-569c-4b33-bd00-9b1c8bfc85a8", "19ea0ed3-4ac1-46f3-aaf0-b2032ff1fc41", "6d723416-8975-4350-8aad-ddd13724ff20", "c8571477-0fcf-4e92-8d45-c378a5811193", "b7c826ba-6643-48b1-b7b6-f56919f973e6"], + blacklisted_shop_ids: ["be8e46da-3855-45a7-9615-b21012e47910", "88c91073-8df4-420a-829d-fe151579e4a9", "51e099f1-776a-4237-836a-3ca830f7dbca", "b5686faf-5db1-4558-a818-e9617e571b7a", "8c3f4ce4-5db0-4005-807f-fb4ddf067697", "5bfae930-d5d1-4615-8515-00b802c3b2a2", "151a6787-a926-4ff3-a991-56b7aa4ae0be", "f4086057-fdeb-4886-b4fb-5eefbd103d21", "cd53a16d-f654-4e53-9fa4-694951527188", "26900bfd-b62d-4cf3-b300-e773cc6e8b06"], + minimum_number_of_products: 9972, + minimum_number_of_amount: 4411, + minimum_number_for_combination_purchase: 5041, exist_in_each_product_groups: true, - max_point_amount: 2658, - max_total_point_amount: 4133, + max_point_amount: 3540, + max_total_point_amount: 9981, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1540138721 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1555114852 )) assert response.code != "400" end def test_update_campaign_17 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - point_expires_in_days: 4488, - is_exclusive: true, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", subject: "money", amount_based_point_rules: [{ "point_amount": 5, @@ -6102,26 +6216,6 @@ def test_update_campaign_17 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -6171,12 +6265,6 @@ def test_update_campaign_17 "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 }], blacklisted_product_rules: [{ "product_code": "4912345678904", @@ -6196,62 +6284,38 @@ def test_update_campaign_17 }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [1, 5, 0, 0, 4, 3, 4, 3], + applicable_days_of_week: [4, 5, 5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["665e330b-d2ee-4fbd-8af9-b1f972c70910", "ad5607ce-f065-40b7-9fbe-17b45591cf51", "ebc4bf5c-c5a7-4215-80b2-a29760739c18"], - minimum_number_of_products: 1681, - minimum_number_of_amount: 1025, - minimum_number_for_combination_purchase: 4579, + applicable_shop_ids: ["29d82e89-98bd-4a67-9608-bc85328964b0", "4b43c984-887c-48af-8718-2ee9923525c2", "2bc9b844-4414-4312-b2e5-17182cffdc74", "b6dccb11-6e36-478c-8511-dad23193dd38", "717c9339-01f6-49d2-8207-f481f806a765"], + blacklisted_shop_ids: ["e06f4559-1e49-4d5a-a2bf-e27c609bb9cd", "36ba6268-ee36-4f25-8d10-262fb67449e6", "cff4f7bf-f1a5-4803-bb7d-ed1ecda504aa", "7ebe5653-5c68-4941-b844-65b4b949d940", "f7bde4e0-65c5-4cf6-b70f-1e1a035bbf21", "1aca37cf-d1dc-43b7-80be-b4d47066cd14", "9885c747-0754-4b37-b04c-832f9d1167a1", "81201ac0-ee90-450a-915d-92b283a73614", "f10c6465-4af0-4511-b868-148e76a70713"], + minimum_number_of_products: 2965, + minimum_number_of_amount: 7599, + minimum_number_for_combination_purchase: 4967, exist_in_each_product_groups: true, - max_point_amount: 164, - max_total_point_amount: 7355, + max_point_amount: 4595, + max_total_point_amount: 3040, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 963819398 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 46030847 )) assert response.code != "400" end def test_update_campaign_18 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - point_expires_at: "2023-08-03T16:56:06.000000Z", - point_expires_in_days: 991, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", is_exclusive: true, - subject: "money", + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -6262,38 +6326,56 @@ def test_update_campaign_18 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -6315,8 +6397,17 @@ def test_update_campaign_18 }, { "product_code": "4912345678904", "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" }], - applicable_days_of_week: [3, 1], + applicable_days_of_week: [4, 3, 2, 5, 3, 3, 2, 5], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -6335,31 +6426,37 @@ def test_update_campaign_18 }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 6191, - minimum_number_of_amount: 876, - minimum_number_for_combination_purchase: 853, + applicable_shop_ids: ["9e128976-b31b-4203-b574-472969d87ffc", "c4095b83-840e-4558-8239-6eb3dcf807fd", "0422f55f-7fb4-4eb1-81e4-47abf004a41b", "8553ad04-955d-41d1-a11c-aee08c443ba6", "019037ba-2f8a-4e53-8e76-5a7215bf69b2", "7a48d3bd-6e00-45ea-8432-6e0091e6bede", "d602ffc3-59d0-435e-8210-8b0c3adceac5", "17b738a2-bee7-4311-ab36-67ab68d33271"], + blacklisted_shop_ids: ["c42f00d8-aa68-41d3-88b8-ed1c71ce9c68", "21dd9c61-fa5b-4066-8a09-008441de82f9", "add52405-f93b-4130-ad1d-850d488705c0", "76df3573-a344-4589-a83e-f1824302712e", "59bddd54-186e-444d-90fc-557c6edba810"], + minimum_number_of_products: 8287, + minimum_number_of_amount: 6695, + minimum_number_for_combination_purchase: 1425, exist_in_each_product_groups: true, - max_point_amount: 4550, - max_total_point_amount: 2401, + max_point_amount: 5428, + max_total_point_amount: 5509, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1380771656 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1928643782 )) assert response.code != "400" end def test_update_campaign_19 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - status: "disabled", - point_expires_at: "2022-11-11T20:49:22.000000Z", - point_expires_in_days: 2090, - is_exclusive: false, - subject: "all", + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + point_expires_in_days: 6831, + is_exclusive: true, + subject: "money", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -6375,6 +6472,21 @@ def test_update_campaign_19 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -6388,64 +6500,64 @@ def test_update_campaign_19 "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 - }], - blacklisted_product_rules: [{ - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }, { + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" + "is_multiply_by_count": true, + "required_count": 2 }, { + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" + "is_multiply_by_count": true, + "required_count": 2 }, { + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" - }, { + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" }, { "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [2, 3, 1, 1, 3, 6], + applicable_days_of_week: [4, 0, 3, 0], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["1753db78-907a-461f-9f1a-014665548214", "b5afe7d5-30c6-42b6-82e9-c0683867ad2c"], - minimum_number_of_products: 109, - minimum_number_of_amount: 8590, - minimum_number_for_combination_purchase: 970, - exist_in_each_product_groups: false, - max_point_amount: 4732, - max_total_point_amount: 1589, + applicable_shop_ids: ["7ca1081b-9df1-4316-8963-fb197ca72571", "d6cb615a-d629-45c2-b26e-bc7bb7ce886b", "7d36db3e-941e-4882-a8ad-c7777a9a3fb5", "65b784d6-c2f5-476e-aea4-bee83ff40a32"], + blacklisted_shop_ids: ["4f796b1a-33ac-4c98-b1fd-cbd749a2ded1", "eefcbb5a-4dfa-4710-b1ab-e334332ce201", "72e82ef8-e142-4338-b9b1-0cf21e3b01d0", "de7e7de0-5cd6-4237-863e-3263330fe064", "9e6e7b87-db21-4d08-8480-1b65130e4012", "9bc51e10-22de-415b-82b6-253170117676", "b9077163-01ff-473a-a4a2-e4cfa9d764da", "74275e60-7e9d-44b1-bc0a-aa757b9715bf", "98fa8dce-3f20-441c-8802-dc42f4eb1394", "4adcfca1-cd41-4064-b200-949b236a9dba"], + minimum_number_of_products: 6781, + minimum_number_of_amount: 2331, + minimum_number_for_combination_purchase: 7436, + exist_in_each_product_groups: true, + max_point_amount: 9709, + max_total_point_amount: 2279, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1833154823 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 488959514 )) assert response.code != "400" end def test_update_campaign_20 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - description: "uoOEnKraNjpsN9SjDxtxrgs7e0dkiAA", - status: "disabled", - point_expires_at: "2023-04-14T04:35:38.000000Z", - point_expires_in_days: 5177, - is_exclusive: true, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + point_expires_at: "2022-03-01T13:40:50.000000Z", + point_expires_in_days: 498, + is_exclusive: false, subject: "all", amount_based_point_rules: [{ "point_amount": 5, @@ -6467,35 +6579,16 @@ def test_update_campaign_20 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { - "point_amount": 5, - "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }, { + }], + product_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ - "point_amount": 5, - "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 @@ -6551,23 +6644,8 @@ def test_update_campaign_20 }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [1, 6, 4, 3, 2, 3, 1], + applicable_days_of_week: [3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -6592,35 +6670,35 @@ def test_update_campaign_20 }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 7775, - minimum_number_of_amount: 6886, - minimum_number_for_combination_purchase: 4520, - exist_in_each_product_groups: true, - max_point_amount: 5876, - max_total_point_amount: 963, + applicable_shop_ids: ["700c8230-0552-4e02-80db-3e5425332304", "174be639-2230-402d-add4-bd769749be80", "6100fe7c-5f39-418c-a911-3c1fe703f07c"], + blacklisted_shop_ids: ["5dffd7ce-f68a-42e9-a63e-8359d9772bb6", "0549d4b2-3a42-4063-b08f-2b6e0e655735", "ec7a2179-1178-435f-aea7-fba70106c378", "ad783258-c776-4ebb-8b06-3b240a53cddf", "43502144-6be1-432a-9830-7f0d2391aa5f", "f0a50563-f317-47b2-b635-c63cf103c44e"], + minimum_number_of_products: 8403, + minimum_number_of_amount: 2192, + minimum_number_for_combination_purchase: 7602, + exist_in_each_product_groups: false, + max_point_amount: 1271, + max_total_point_amount: 6870, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1405008058 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1161375036 )) assert response.code != "400" end def test_update_campaign_21 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - event: "external-transaction", - description: "BB1YNClE0n87A30l6vspNWH9u8x4Yq2mx", - status: "enabled", - point_expires_at: "2023-05-16T03:50:44.000000Z", - point_expires_in_days: 74, - is_exclusive: false, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + status: "disabled", + point_expires_at: "2022-07-02T08:26:59.000000Z", + point_expires_in_days: 6734, + is_exclusive: true, subject: "money", amount_based_point_rules: [{ "point_amount": 5, @@ -6652,22 +6730,30 @@ def test_update_campaign_21 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 - }], - product_based_point_rules: [{ + }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", - "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { "point_amount": 5, "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", "is_multiply_by_count": true, "required_count": 2 @@ -6726,14 +6812,8 @@ def test_update_campaign_21 }, { "product_code": "4912345678904", "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" - }, { - "product_code": "4912345678904", - "classification_code": "c123" }], - applicable_days_of_week: [5, 4, 6, 1, 5], + applicable_days_of_week: [4, 1, 3, 4, 3], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -6755,6 +6835,70 @@ def test_update_campaign_21 }, { "from": "12:00", "to": "23:59" + }], + applicable_shop_ids: ["59ceb168-fbcb-40cf-8e74-d00843ae0741", "81d87bef-283f-4629-8d58-ca88a86289a7", "319c3137-7d27-406f-b02c-08143b373df5", "089bb261-44e5-4b23-b76c-e79a6ecb2710", "6e8f75cf-1a2e-4ab5-ad38-33c1066efe3d", "57810222-8a7c-4ee5-b6a8-6a3b4c284a68"], + blacklisted_shop_ids: ["71f4bfee-98a1-417d-b229-27c6b17c6bd3", "e368a36a-ff62-4dc2-bdba-141c6380028e", "96649f97-eeb1-462d-8ee8-cd6993562b52", "2d8c44ea-2493-4518-9497-50ce219a7cd3", "2ffc5da7-0c15-4095-a855-6881b79d84b4"], + minimum_number_of_products: 1449, + minimum_number_of_amount: 1733, + minimum_number_for_combination_purchase: 716, + exist_in_each_product_groups: true, + max_point_amount: 4983, + max_total_point_amount: 4910, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 241703418 + )) + assert response.code != "400" + end + + def test_update_campaign_22 + response = $client.send(Pokepay::Request::UpdateCampaign.new( + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + description: "ktKcWCyKm4tG2FzeWXxPN6RiMVhZmmGj0TMjPFLM0DLdwVX1nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZ", + status: "enabled", + point_expires_at: "2022-05-04T16:36:07.000000Z", + point_expires_in_days: 6192, + is_exclusive: true, + subject: "money", + amount_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }], + applicable_days_of_week: [5], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" }, { "from": "12:00", "to": "23:59" @@ -6765,32 +6909,36 @@ def test_update_campaign_21 "from": "12:00", "to": "23:59" }], - applicable_shop_ids: ["f8574894-d553-4f6e-8f48-87d3ab29e466"], - minimum_number_of_products: 5099, - minimum_number_of_amount: 348, - minimum_number_for_combination_purchase: 180, - exist_in_each_product_groups: true, - max_point_amount: 4204, - max_total_point_amount: 8618, + applicable_shop_ids: ["bb7603e4-3a68-41d4-9c82-9873fb019089", "0dd17f90-bf18-4753-bb3a-310cd42e4f78", "83721b8f-6918-4ece-9fba-2dbd834be33e"], + blacklisted_shop_ids: ["275127d8-8784-4ea7-82f5-dcc0c1d07f89", "cd4bf5e8-c04c-491b-81f8-d403dc2586af", "c95875d0-e03b-4df8-824c-bfa677b05288"], + minimum_number_of_products: 1427, + minimum_number_of_amount: 9253, + minimum_number_for_combination_purchase: 4132, + exist_in_each_product_groups: false, + max_point_amount: 1000, + max_total_point_amount: 2597, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1222220490 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1797489055 )) assert response.code != "400" end - def test_update_campaign_22 + def test_update_campaign_23 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - priority: 7836, - event: "payment", - description: "11kPUOWIOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QHeDKxXdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfD", - status: "disabled", - point_expires_at: "2020-04-08T14:09:01.000000Z", - point_expires_in_days: 5192, - is_exclusive: false, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + event: "external-transaction", + description: "7PH9jsPo3qRbXC", + status: "enabled", + point_expires_at: "2023-03-30T07:04:34.000000Z", + point_expires_in_days: 689, + is_exclusive: true, subject: "all", amount_based_point_rules: [{ "point_amount": 5, @@ -6813,10 +6961,58 @@ def test_update_campaign_22 "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", - "is_multiply_by_count": true, - "required_count": 2 - }], - blacklisted_product_rules: [{ + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { + "product_code": "4912345678904", + "classification_code": "c123" + }, { "product_code": "4912345678904", "classification_code": "c123" }, { @@ -6826,7 +7022,7 @@ def test_update_campaign_22 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [1], + applicable_days_of_week: [0, 5, 1, 3, 5, 0, 3, 2, 6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -6848,36 +7044,37 @@ def test_update_campaign_22 }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["2749e009-eadf-4e50-8343-a022772edc1c"], - minimum_number_of_products: 3633, - minimum_number_of_amount: 933, - minimum_number_for_combination_purchase: 6089, + applicable_shop_ids: ["59785c20-161f-431c-9314-5e7172e10607", "60df8aaf-23fd-4fec-90db-d611c05931e8", "fb148318-6fe3-47bc-81a7-c36c55ce455d"], + blacklisted_shop_ids: ["b9a4b27d-72f8-4762-a293-219fed97e0c9", "d1daa531-9a8c-4170-84bb-863c6f5f165d", "3ad77a77-4323-4218-8e56-1a1fb32d127f", "ea928f4e-12eb-4f58-b177-059449f08a62"], + minimum_number_of_products: 5500, + minimum_number_of_amount: 5449, + minimum_number_for_combination_purchase: 2571, exist_in_each_product_groups: true, - max_point_amount: 2813, - max_total_point_amount: 8116, + max_point_amount: 8097, + max_total_point_amount: 2094, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1181237434 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 324213244 )) assert response.code != "400" end - def test_update_campaign_23 + def test_update_campaign_24 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - ends_at: "2021-09-25T13:53:31.000000Z", - priority: 4029, + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + priority: 9751, event: "topup", - description: "9N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsKZWoUeORL98QDv9TW3tonru5DxxR1kiR4daTST401zYU9O5bmxo5R8", - status: "disabled", - point_expires_at: "2021-12-03T15:45:24.000000Z", - point_expires_in_days: 7212, + description: "h4XHkB", + status: "enabled", + point_expires_at: "2021-09-01T11:45:22.000000Z", + point_expires_in_days: 8710, is_exclusive: true, subject: "all", amount_based_point_rules: [{ @@ -6890,6 +7087,21 @@ def test_update_campaign_23 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }], product_based_point_rules: [{ "point_amount": 5, @@ -6962,7 +7174,7 @@ def test_update_campaign_23 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [3, 0, 0, 3, 4, 1, 5, 3], + applicable_days_of_week: [2, 6, 5, 3, 2, 0, 3, 4], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" @@ -6978,34 +7190,41 @@ def test_update_campaign_23 }, { "from": "12:00", "to": "23:59" + }, { + "from": "12:00", + "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 7040, - minimum_number_of_amount: 2375, - minimum_number_for_combination_purchase: 9581, - exist_in_each_product_groups: true, - max_point_amount: 8654, - max_total_point_amount: 8581, + applicable_shop_ids: ["6677ef5f-1cd3-47b6-9c5d-5745450f857b", "7fb03f0d-d316-4ddb-8045-b84f64659729", "be23edbc-e20a-4eb5-8297-93a251c113f0", "93257eac-0ab0-4154-8961-2d3dc674afa1", "06278b8d-1599-4ca9-8415-848cd3c1fcbc", "95aea291-b619-4ac2-b293-bfede2a9346e", "2edae2bd-4d64-4769-82c3-070dd8e9d3be", "15f6844e-2f1d-4c78-9858-d50058832377"], + blacklisted_shop_ids: ["b37b48e1-c926-4cd2-9bc1-580a3b683987", "5c625afb-e6bd-4865-9e54-62ae608aa8ae", "bf21c3f8-98a4-48a6-9f3d-5c9381d309e6", "c57304e5-f630-4359-9c9e-7010fc21e989", "15885351-8993-4a43-9ac8-3b7aedbbc1fc", "9d229aed-732e-4edb-b816-272832a00a7d", "9d661f9b-cd85-444f-877b-dd5d963d2747"], + minimum_number_of_products: 6806, + minimum_number_of_amount: 5689, + minimum_number_for_combination_purchase: 507, + exist_in_each_product_groups: false, + max_point_amount: 3843, + max_total_point_amount: 2532, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 1869645226 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 495746459 )) assert response.code != "400" end - def test_update_campaign_24 + def test_update_campaign_25 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - starts_at: "2022-03-11T20:12:55.000000Z", - ends_at: "2024-03-04T10:50:16.000000Z", - priority: 1819, - event: "topup", - description: "MjoFiHLtN9Yqy7R5Sel4rqjqD6mB2gz0FIdNSbIrXOBo1I3rdkLB5vuU", + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + ends_at: "2021-05-04T05:00:15.000000Z", + priority: 8216, + event: "payment", + description: "OxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG7", status: "disabled", - point_expires_at: "2023-04-17T05:00:28.000000Z", - point_expires_in_days: 6912, + point_expires_at: "2020-03-04T19:00:06.000000Z", + point_expires_in_days: 1469, is_exclusive: true, subject: "money", amount_based_point_rules: [{ @@ -7038,18 +7257,26 @@ def test_update_campaign_24 "point_amount_unit": "percent", "subject_more_than_or_equal": 1000, "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -7068,16 +7295,114 @@ def test_update_campaign_24 }, { "product_code": "4912345678904", "classification_code": "c123" + }], + applicable_days_of_week: [1, 6, 2, 4, 2], + applicable_time_ranges: [{ + "from": "12:00", + "to": "23:59" }, { - "product_code": "4912345678904", - "classification_code": "c123" + "from": "12:00", + "to": "23:59" + }], + applicable_shop_ids: ["154c8c49-e277-4aa5-84e7-f619a479e253", "9f49b3b5-10c1-4a01-a721-e0697fd30809", "fe52b38b-3d5b-44a7-aa6a-25d70c76ed08", "335b29d2-7179-4ca9-b818-385b32f5339d", "6c59dbee-eb65-4f88-a56b-15233cee9121"], + blacklisted_shop_ids: ["a027c686-881e-47b8-a307-2f497d4181dd", "adf594c4-1bdb-465b-afd4-033028b8c9a0", "29af4c5e-129a-4a68-aeed-0389997b213b", "79b635b8-9ce8-4b24-b8fb-441ea093b2e5", "9b7866f6-1bdb-4557-aab6-d4265f7ea604", "7e03a7b8-6f1b-40df-8e3e-0bbd0aa50803", "7537fb18-d702-414b-b095-087f8d59c55e"], + minimum_number_of_products: 364, + minimum_number_of_amount: 8716, + minimum_number_for_combination_purchase: 5234, + exist_in_each_product_groups: true, + max_point_amount: 6225, + max_total_point_amount: 6350, + applicable_account_metadata: { + "key": "sex", + "value": "male" + }, + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 403686996 + )) + assert response.code != "400" + end + + def test_update_campaign_26 + response = $client.send(Pokepay::Request::UpdateCampaign.new( + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + starts_at: "2024-02-27T09:42:41.000000Z", + ends_at: "2020-06-09T06:14:06.000000Z", + priority: 653, + event: "external-transaction", + description: "o6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiF", + status: "enabled", + point_expires_at: "2021-10-13T12:35:36.000000Z", + point_expires_in_days: 2936, + is_exclusive: false, + subject: "all", + amount_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { - "product_code": "4912345678904", - "classification_code": "c123" + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", "product_code": "4912345678904", - "classification_code": "c123" + "is_multiply_by_count": true, + "required_count": 2 }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }], + blacklisted_product_rules: [{ "product_code": "4912345678904", "classification_code": "c123" }, { @@ -7090,62 +7415,46 @@ def test_update_campaign_24 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [4, 3, 3, 6, 6, 2, 4, 3, 2], + applicable_days_of_week: [0, 4, 1, 2, 1, 2, 3, 1, 5, 0], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["bcea9165-c034-43ef-b341-bca1eaf31ab7", "407f462f-c7c1-49f3-b4b7-7dc71bce209e", "d4fac0de-4a5a-4460-8b03-cd7d9d4a64cb"], - minimum_number_of_products: 391, - minimum_number_of_amount: 2150, - minimum_number_for_combination_purchase: 5757, + applicable_shop_ids: ["66ff67d3-018d-4a56-89ec-f13b503d3e39", "f2f65cff-6bcd-430e-b17d-b3736d626870", "7568237f-f926-455b-ba6a-ef9dfd4de921", "2eecd940-f0f6-4c34-adba-e7843ed2b3cb", "ea8da4d8-af55-41bf-b172-6188d37b6756"], + blacklisted_shop_ids: ["5788ab36-6c55-4527-b04b-093491710987", "5cc3d9e0-b990-4b5f-b4c2-00ef99c743a2", "044e8df6-4311-44ab-8048-da213d99363f", "8be9e089-db2a-404b-ab88-e819a7dc8a71", "da16bdd9-2f7a-4e6b-b712-946074911bbe", "7626c529-3122-47c7-8142-7e831dc15dad", "03d38885-4c7f-4a96-87ba-1a1fcee74a26"], + minimum_number_of_products: 5573, + minimum_number_of_amount: 4002, + minimum_number_for_combination_purchase: 511, exist_in_each_product_groups: false, - max_point_amount: 2699, - max_total_point_amount: 4642, + max_point_amount: 3763, + max_total_point_amount: 629, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 99696538 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 203411592 )) assert response.code != "400" end - def test_update_campaign_25 + def test_update_campaign_27 response = $client.send(Pokepay::Request::UpdateCampaign.new( - "b1dc9469-075b-4d47-aab1-8b97ded3fe86", - name: "QbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uY", - starts_at: "2021-04-23T02:58:38.000000Z", - ends_at: "2022-05-06T16:35:51.000000Z", - priority: 2645, - event: "external-transaction", - description: "2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6b", + "00a528e9-c261-4ee2-b981-bdc3d4377e2c", + name: "RFerhSuL22gGga7pF0nmLMfnIYTQdqHJZ8WnDHEVfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8", + starts_at: "2022-03-28T00:41:37.000000Z", + ends_at: "2024-03-03T16:35:03.000000Z", + priority: 8877, + event: "payment", + description: "DOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2ADoyNq2PW9ePZH1V16DlcE5mr", status: "disabled", - point_expires_at: "2022-02-27T09:09:30.000000Z", - point_expires_in_days: 3006, + point_expires_at: "2020-03-25T02:53:40.000000Z", + point_expires_in_days: 8345, is_exclusive: true, - subject: "money", + subject: "all", amount_based_point_rules: [{ "point_amount": 5, "point_amount_unit": "percent", @@ -7159,15 +7468,99 @@ def test_update_campaign_25 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "subject_more_than_or_equal": 1000, + "subject_less_than": 5000 + }], + product_based_point_rules: [{ + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { + "point_amount": 5, + "point_amount_unit": "percent", + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 }, { "point_amount": 5, "point_amount_unit": "percent", - "subject_more_than_or_equal": 1000, - "subject_less_than": 5000 - }], - product_based_point_rules: [{ + "product_code": "4912345678904", + "is_multiply_by_count": true, + "required_count": 2 + }, { "point_amount": 5, "point_amount_unit": "percent", "product_code": "4912345678904", @@ -7181,57 +7574,39 @@ def test_update_campaign_25 "product_code": "4912345678904", "classification_code": "c123" }], - applicable_days_of_week: [5, 3, 6, 5, 1], + applicable_days_of_week: [0, 5, 1, 6], applicable_time_ranges: [{ "from": "12:00", "to": "23:59" }, { "from": "12:00", "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" - }, { - "from": "12:00", - "to": "23:59" }], - applicable_shop_ids: ["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"], - minimum_number_of_products: 9329, - minimum_number_of_amount: 2850, - minimum_number_for_combination_purchase: 531, - exist_in_each_product_groups: true, - max_point_amount: 3974, - max_total_point_amount: 393, + applicable_shop_ids: ["4c0d8d8e-987d-4b29-901a-180ff8905d86", "8b389fd9-e1c9-4b85-a9b4-5d7efc1b0366", "4a1d1c1c-1367-425a-bade-3c2e8946fa70", "8e901cbb-f90d-432e-869e-b5e672572587", "d2915382-5e39-4b99-b63b-745dd95cac84", "4cb86720-acc3-4852-9a96-242c91429d8d"], + blacklisted_shop_ids: ["442187c4-9fa5-4755-b8ca-3bb599d4b539", "babc919e-b84f-405b-9cf4-d4e3934101ef", "6d2ef45f-26eb-443c-867f-4e1dc8d81b2b", "cf6a2b3e-7aa8-45c5-9f84-f2161bf162a8", "28be3b4d-ea4d-48d6-9e9b-985d485cd389"], + minimum_number_of_products: 9449, + minimum_number_of_amount: 5230, + minimum_number_for_combination_purchase: 2764, + exist_in_each_product_groups: false, + max_point_amount: 5299, + max_total_point_amount: 6796, applicable_account_metadata: { "key": "sex", "value": "male" }, - budget_caps_amount: 467110137 + applicable_transaction_metadata: { + "key": "rank", + "value": "bronze" + }, + budget_caps_amount: 1005094122 )) assert response.code != "400" end def test_request_user_stats_0 response = $client.send(Pokepay::Request::RequestUserStats.new( - "2020-09-24T12:21:11.000000Z", - "2021-08-29T03:04:32.000000Z" - )) - assert response.code != "400" - end - - def test_create_webhook_0 - response = $client.send(Pokepay::Request::CreateWebhook.new( - "process_user_stats_operation", - "oF" + "2021-03-08T11:03:23.000000Z", + "2022-12-27T04:15:18.000000Z" )) assert response.code != "400" end @@ -7244,70 +7619,78 @@ def test_list_webhooks_0 def test_list_webhooks_1 response = $client.send(Pokepay::Request::ListWebhooks.new( - per_page: 6869 + per_page: 2093 )) assert response.code != "400" end def test_list_webhooks_2 response = $client.send(Pokepay::Request::ListWebhooks.new( - page: 7472, - per_page: 2731 + page: 7856, + per_page: 3627 )) assert response.code != "400" end - def test_update_webhook_0 - response = $client.send(Pokepay::Request::UpdateWebhook.new( - "a7551e28-11d6-40e9-97de-ecc70a6d636b" + def test_create_webhook_0 + response = $client.send(Pokepay::Request::CreateWebhook.new( + "bulk_shops", + "U1OxUmIl" )) assert response.code != "400" end - def test_update_webhook_1 + def test_delete_webhook_0 + response = $client.send(Pokepay::Request::DeleteWebhook.new( + "277e163a-6406-4a81-b709-d76a08f6d53d" + )) + assert response.code != "400" + end + + def test_update_webhook_0 response = $client.send(Pokepay::Request::UpdateWebhook.new( - "a7551e28-11d6-40e9-97de-ecc70a6d636b", - task: "process_user_stats_operation" + "55d41502-856c-449c-9778-ddc09b1fbd99" )) assert response.code != "400" end - def test_update_webhook_2 + def test_update_webhook_1 response = $client.send(Pokepay::Request::UpdateWebhook.new( - "a7551e28-11d6-40e9-97de-ecc70a6d636b", - is_active: false, + "55d41502-856c-449c-9778-ddc09b1fbd99", task: "bulk_shops" )) assert response.code != "400" end - def test_update_webhook_3 + def test_update_webhook_2 response = $client.send(Pokepay::Request::UpdateWebhook.new( - "a7551e28-11d6-40e9-97de-ecc70a6d636b", - url: "rsKgu2ih", + "55d41502-856c-449c-9778-ddc09b1fbd99", is_active: true, task: "process_user_stats_operation" )) assert response.code != "400" end - def test_delete_webhook_0 - response = $client.send(Pokepay::Request::DeleteWebhook.new( - "757ac34d-0129-43a0-b828-78c4e69be2aa" + def test_update_webhook_3 + response = $client.send(Pokepay::Request::UpdateWebhook.new( + "55d41502-856c-449c-9778-ddc09b1fbd99", + url: "EKMQ8", + is_active: true, + task: "process_user_stats_operation" )) assert response.code != "400" end def test_create_user_device_0 response = $client.send(Pokepay::Request::CreateUserDevice.new( - "3ef0155b-df73-4fe6-95b3-029be84e5c80" + "9edfd99e-5643-4573-b0a8-518f1e17f736" )) assert response.code != "400" end def test_create_user_device_1 response = $client.send(Pokepay::Request::CreateUserDevice.new( - "3ef0155b-df73-4fe6-95b3-029be84e5c80", + "9edfd99e-5643-4573-b0a8-518f1e17f736", metadata: "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" )) assert response.code != "400" @@ -7315,1900 +7698,1900 @@ def test_create_user_device_1 def test_get_user_device_0 response = $client.send(Pokepay::Request::GetUserDevice.new( - "97103bd4-55aa-4e14-838c-d7b19e377bc1" + "768c87b2-9b50-4d4c-a235-44393096f979" )) assert response.code != "400" end def test_activate_user_device_0 response = $client.send(Pokepay::Request::ActivateUserDevice.new( - "6ae625fc-8f38-4b66-96b5-badc1584cc03" + "4e81ad2d-b366-4ffa-ae69-e0f7a6286e1a" )) assert response.code != "400" end - def test_create_bank_0 - response = $client.send(Pokepay::Request::CreateBank.new( - "5ceabfee-19eb-4683-baf9-d5e1eacd3507", - "809e5b4d-316f-481c-b62c-d410f3bdb948", - "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", - "WDor4IADTHdTPsjhUsWbu" + def test_list_banks_0 + response = $client.send(Pokepay::Request::ListBanks.new( + "36eda71a-7a38-412e-9a60-cdaeba336eaa" )) assert response.code != "400" end - def test_create_bank_1 - response = $client.send(Pokepay::Request::CreateBank.new( - "5ceabfee-19eb-4683-baf9-d5e1eacd3507", - "809e5b4d-316f-481c-b62c-d410f3bdb948", - "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", - "WDor4IADTHdTPsjhUsWbu", - birthdate: "hnbI" + def test_list_banks_1 + response = $client.send(Pokepay::Request::ListBanks.new( + "36eda71a-7a38-412e-9a60-cdaeba336eaa", + private_money_id: "aad0c8b7-4c54-4ff2-afea-68223e4557d7" )) assert response.code != "400" end - def test_create_bank_2 + def test_create_bank_0 response = $client.send(Pokepay::Request::CreateBank.new( - "5ceabfee-19eb-4683-baf9-d5e1eacd3507", - "809e5b4d-316f-481c-b62c-d410f3bdb948", - "FjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE", - "WDor4IADTHdTPsjhUsWbu", - email: "UFlfvobOcl@FXKf.com", - birthdate: "dQivs3h" + "2b45d900-ed68-4b13-9eb0-fc91b0e17642", + "9c1e0ae0-28d1-4c9d-a41f-ae72c991800c", + "7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ3", + "3dSb51CrQZVorM80jAnbL9pF" )) assert response.code != "400" end - def test_list_banks_0 - response = $client.send(Pokepay::Request::ListBanks.new( - "9e9585ea-3721-4a9d-b41f-db2253895544" + def test_create_bank_1 + response = $client.send(Pokepay::Request::CreateBank.new( + "2b45d900-ed68-4b13-9eb0-fc91b0e17642", + "9c1e0ae0-28d1-4c9d-a41f-ae72c991800c", + "7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ3", + "3dSb51CrQZVorM80jAnbL9pF", + birthdate: "Aij" )) assert response.code != "400" end - def test_list_banks_1 - response = $client.send(Pokepay::Request::ListBanks.new( - "9e9585ea-3721-4a9d-b41f-db2253895544", - private_money_id: "cec34104-64b1-4b8c-96a5-4f590e92a4fb" + def test_create_bank_2 + response = $client.send(Pokepay::Request::CreateBank.new( + "2b45d900-ed68-4b13-9eb0-fc91b0e17642", + "9c1e0ae0-28d1-4c9d-a41f-ae72c991800c", + "7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ3", + "3dSb51CrQZVorM80jAnbL9pF", + email: "Yf8ydTws4H@IQ4A.com", + birthdate: "n" )) assert response.code != "400" end def test_create_bank_topup_transaction_0 response = $client.send(Pokepay::Request::CreateBankTopupTransaction.new( - "ca66f5fd-f8ff-406e-bad4-295d6e468868", - "7c2943c5-a1e0-4c8a-9dd1-78fecba543cf", - 6861, - "1cb975f4-046c-470a-abde-2f3addeec9dd", - "f09db652-b3d0-44c9-815e-14123e6a6665" + "4bcf0869-a700-4112-9780-a7d006c7411f", + "127c16fa-03ae-4211-9a44-a31b4284b43f", + 2362, + "c37d37c3-3fcd-4730-af8d-d0de7393193c", + "5f13a588-566f-45cc-8c2f-f49143c3a613" )) assert response.code != "400" end def test_list_coupons_0 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801" + "087b53df-6336-4461-bf04-ea20829b94bb" )) assert response.code != "400" end def test_list_coupons_1 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801", - per_page: 4036 + "087b53df-6336-4461-bf04-ea20829b94bb", + per_page: 1791 )) assert response.code != "400" end def test_list_coupons_2 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801", - page: 2610, - per_page: 3564 + "087b53df-6336-4461-bf04-ea20829b94bb", + page: 5301, + per_page: 3509 )) assert response.code != "400" end def test_list_coupons_3 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801", - available_to: "2022-10-30T15:41:29.000000Z", - page: 1343, - per_page: 5852 + "087b53df-6336-4461-bf04-ea20829b94bb", + available_to: "2023-03-08T12:16:38.000000Z", + page: 9175, + per_page: 7262 )) assert response.code != "400" end def test_list_coupons_4 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801", - available_from: "2022-07-23T12:05:11.000000Z", - available_to: "2023-12-25T11:20:15.000000Z", - page: 4692, - per_page: 6987 + "087b53df-6336-4461-bf04-ea20829b94bb", + available_from: "2022-04-19T06:06:25.000000Z", + available_to: "2022-12-02T00:59:50.000000Z", + page: 8830, + per_page: 4865 )) assert response.code != "400" end def test_list_coupons_5 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801", - available_shop_name: "t", - available_from: "2022-09-20T11:42:56.000000Z", - available_to: "2020-10-04T03:55:03.000000Z", - page: 177, - per_page: 6137 + "087b53df-6336-4461-bf04-ea20829b94bb", + available_shop_name: "Et", + available_from: "2023-09-19T12:19:17.000000Z", + available_to: "2021-07-30T00:02:15.000000Z", + page: 3343, + per_page: 697 )) assert response.code != "400" end def test_list_coupons_6 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801", - issued_shop_name: "zgZ3SAsj", - available_shop_name: "A", - available_from: "2022-11-23T12:41:58.000000Z", - available_to: "2021-11-05T17:31:33.000000Z", - page: 849, - per_page: 7307 + "087b53df-6336-4461-bf04-ea20829b94bb", + issued_shop_name: "bTpd0PiIw", + available_shop_name: "54q6", + available_from: "2020-07-16T08:21:39.000000Z", + available_to: "2022-01-07T09:42:39.000000Z", + page: 2822, + per_page: 5726 )) assert response.code != "400" end def test_list_coupons_7 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801", - coupon_name: "wO", - issued_shop_name: "MEx", - available_shop_name: "C1w6", - available_from: "2023-07-14T05:00:25.000000Z", - available_to: "2021-01-18T09:29:10.000000Z", - page: 826, - per_page: 1755 + "087b53df-6336-4461-bf04-ea20829b94bb", + coupon_name: "WkvfusE3m", + issued_shop_name: "agR", + available_shop_name: "X", + available_from: "2021-11-29T02:34:42.000000Z", + available_to: "2022-05-31T06:28:06.000000Z", + page: 9889, + per_page: 5594 )) assert response.code != "400" end def test_list_coupons_8 response = $client.send(Pokepay::Request::ListCoupons.new( - "b369ca49-cb16-4318-8c81-b9b3476e6801", - coupon_id: "stqj7j", - coupon_name: "J1Xazd0M0", - issued_shop_name: "E8", - available_shop_name: "si7", - available_from: "2021-03-21T03:47:10.000000Z", - available_to: "2022-02-22T01:50:15.000000Z", - page: 2183, - per_page: 7920 + "087b53df-6336-4461-bf04-ea20829b94bb", + coupon_id: "Q", + coupon_name: "11diTIPMyl", + issued_shop_name: "P78XJ", + available_shop_name: "2fkoYuaeWP", + available_from: "2023-07-25T02:22:18.000000Z", + available_to: "2023-10-16T13:14:07.000000Z", + page: 5410, + per_page: 8238 )) assert response.code != "400" end def test_create_coupon_0 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7357 + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 9214 )) assert response.code != "400" end def test_create_coupon_1 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 9216, - storage_id: "980727cd-c844-4e89-bd67-9a9679730e08" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 4218, + storage_id: "56916a8a-f02a-4d76-87ed-31fd5d8db59f" )) assert response.code != "400" end def test_create_coupon_2 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 9392, - min_amount: 2436, - storage_id: "b7bc887c-58af-4907-98e9-25c22bc9b844" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 1510, + min_amount: 1830, + storage_id: "65375f34-3e8e-4b36-965a-bdff150e608f" )) assert response.code != "400" end def test_create_coupon_3 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 1044, - usage_limit: 4882, - min_amount: 9522, - storage_id: "f77d05e5-1718-4c74-9136-f78c9ca62105" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 3505, + usage_limit: 3621, + min_amount: 7263, + storage_id: "e6ca1967-5dd2-4efd-8f6f-9fb7804b5d7f" )) assert response.code != "400" end def test_create_coupon_4 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 1041, - code: "89v", - usage_limit: 2514, - min_amount: 4738, - storage_id: "3d504807-f481-4765-a859-1e493ffa0d5a" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 6279, + code: "DwwPoswLPr", + usage_limit: 326, + min_amount: 2796, + storage_id: "3e5abddd-282f-4612-9b28-1bb05661efbe" )) assert response.code != "400" end def test_create_coupon_5 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7359, - is_public: true, - code: "6MfShA8D4", - usage_limit: 6464, - min_amount: 9440, - storage_id: "175165c5-7cf6-42b7-8f1a-bf211aca37cf" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 4408, + is_public: false, + code: "bqyd", + usage_limit: 4173, + min_amount: 574, + storage_id: "4e0cbaa7-2dfb-431a-9ca0-6b5d2c3a76aa" )) assert response.code != "400" end def test_create_coupon_6 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 4572, - is_hidden: false, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 7565, + is_hidden: true, is_public: true, - code: "GT70L", - usage_limit: 815, - min_amount: 6848, - storage_id: "7a54ee90-750a-4151-9db2-3614f10c6465" + code: "g7MmF", + usage_limit: 6131, + min_amount: 9540, + storage_id: "c10bd9ac-8a32-4997-9aad-63e299ff0fc3" )) assert response.code != "400" end def test_create_coupon_7 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 2800, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 7589, is_disabled: false, - is_hidden: true, + is_hidden: false, is_public: true, - code: "XvfJ", - usage_limit: 4594, - min_amount: 3039, - storage_id: "02be5ffe-2394-4b71-bf01-93186575231f" + code: "f9Kmzx2cS", + usage_limit: 8950, + min_amount: 6499, + storage_id: "90b4fc12-fe73-45e7-a670-c332e2ada6b8" )) assert response.code != "400" end def test_create_coupon_8 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 6412, - display_ends_at: "2021-04-02T08:24:07.000000Z", + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 78, + display_ends_at: "2020-12-22T23:53:31.000000Z", is_disabled: false, - is_hidden: true, + is_hidden: false, is_public: false, - code: "wzvGv5", - usage_limit: 4980, - min_amount: 1833, - storage_id: "69d87ffc-5b83-440e-9842-f9399c396eb3" + code: "XqlqrR9", + usage_limit: 1516, + min_amount: 664, + storage_id: "8b44c6f0-ea93-4df4-ad7a-b7b4a00569ee" )) assert response.code != "400" end def test_create_coupon_9 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 2045, - display_starts_at: "2022-03-14T05:45:03.000000Z", - display_ends_at: "2021-12-28T19:08:36.000000Z", + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 8313, + display_starts_at: "2023-12-03T02:07:18.000000Z", + display_ends_at: "2022-12-23T23:56:31.000000Z", is_disabled: false, is_hidden: false, is_public: true, - code: "QSvr2", - usage_limit: 5053, - min_amount: 5610, - storage_id: "a46f64c4-3d32-4e00-9ec3-59d056f6235e" + code: "S2rGP", + usage_limit: 5577, + min_amount: 6442, + storage_id: "5763cf15-7600-4191-bc0e-37df36d5e838" )) assert response.code != "400" end def test_create_coupon_10 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 9488, - discount_upper_limit: 2828, - display_starts_at: "2021-07-09T22:20:53.000000Z", - display_ends_at: "2024-02-07T05:48:18.000000Z", + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 2514, + discount_upper_limit: 7024, + display_starts_at: "2022-05-10T06:23:01.000000Z", + display_ends_at: "2022-05-30T02:22:44.000000Z", is_disabled: false, is_hidden: false, - is_public: false, - code: "qDXhSH8", - usage_limit: 7272, - min_amount: 7265, - storage_id: "f7c3fa5b-2066-47ca-8984-82f9add52405" + is_public: true, + code: "aYEeN8ncoL", + usage_limit: 4962, + min_amount: 4060, + storage_id: "31e3f4ef-09d3-4a2b-9c42-d702404a9b87" )) assert response.code != "400" end def test_create_coupon_11 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 304, - description: "sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14x", - discount_upper_limit: 8514, - display_starts_at: "2021-02-08T09:28:24.000000Z", - display_ends_at: "2021-08-09T03:36:25.000000Z", - is_disabled: false, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 6445, + description: "erEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdD", + discount_upper_limit: 2824, + display_starts_at: "2020-06-10T12:00:45.000000Z", + display_ends_at: "2020-04-27T12:59:41.000000Z", + is_disabled: true, is_hidden: true, is_public: true, - code: "V", - usage_limit: 8759, - min_amount: 838, - storage_id: "fa1a063e-3263-4064-8721-dd08de992644" + code: "vv3UzyZmk", + usage_limit: 208, + min_amount: 2611, + storage_id: "da578ed1-f3df-4253-a2e5-4248e70d82a2" )) assert response.code != "400" end def test_create_coupon_12 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7013, - is_shop_specified: true, - available_shop_ids: ["d9b922de-c15b-4ec2-b631-7676b9077163"] + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 7852, + is_shop_specified: false, + available_shop_ids: ["10bb385e-0b3d-4c0b-a0fa-2d4b7a84ce61", "d2d55b9c-dbec-45b8-954a-b32bfc8c4337"] )) assert response.code != "400" end def test_create_coupon_13 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 511, - is_shop_specified: true, - available_shop_ids: ["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"], - storage_id: "74124162-ace6-41f1-9dcb-06ec07ca066e" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 8557, + is_shop_specified: false, + available_shop_ids: ["7f91eaea-9b89-4554-86bb-275526cd5130", "f45f1077-6ad7-42fc-81cd-f505f29cce3f", "a57732f5-66a8-4db8-b90a-f96d1a404844", "fd800db0-acbf-4388-a854-baf08f22a10a", "754736bd-c6f8-4e5c-ae25-d3d7a05bbfa2", "24890703-26e3-4efa-a1d1-fc8037bffd55", "89e4ec93-9d79-4c98-9761-e25628052ae7"], + storage_id: "e9df8bc2-980b-4061-8c57-3619ba1d9ecd" )) assert response.code != "400" end def test_create_coupon_14 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 3071, - is_shop_specified: false, - available_shop_ids: ["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"], - min_amount: 1910, - storage_id: "50ad7ebb-354b-4006-a4df-2144aaba6be1" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 4752, + is_shop_specified: true, + available_shop_ids: ["15b859f0-abde-4974-aae7-46bf2d14cb66", "daa4cdb0-43c6-4f69-9ada-2b0315cd9a44", "c2686193-0c60-4991-9b45-c90acfd535ae", "86f4f3ba-4596-4ac5-8fb2-58fc449050fb", "6f4b7050-26da-43ad-9cc1-a2a0667a6bb9", "b19468e2-e9e9-4289-af84-d2d1f9e21f2b", "94026e5f-d7cd-4b88-9047-9893616b1a31", "e92b9f2b-ac94-43c5-b8b1-eaae6f79606a"], + min_amount: 3734, + storage_id: "e9939a2c-918b-4ac3-81e0-9fd2c37e29fd" )) assert response.code != "400" end def test_create_coupon_15 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 9002, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 7008, is_shop_specified: true, - available_shop_ids: ["704a7f0d-aa5f-4563-97b2-94760e99ed35"], - usage_limit: 1596, - min_amount: 1102, - storage_id: "dcaa7cf6-7bbe-4fc5-92d2-3c1b39de888f" + available_shop_ids: ["e1dcd6bc-92e2-416b-b74d-3952f0959724", "aaf070b1-527c-4ab7-bf97-27a0f9ae99c3", "47d77836-9552-45dc-af46-52b606b2394c", "df5ddf79-980c-4f4d-baf8-aaa740b65217", "606192c2-c841-470f-9aa6-fff8ece17406", "c7a869af-9010-442c-8e3b-1d83cdaea6f2", "992a2241-8d9e-49d3-846a-2ddbfd0255b9", "41531856-02c7-4d7b-b2b6-d9f28a0ac851", "4f216c15-1ebe-4ed7-852b-a766361f40ac"], + usage_limit: 325, + min_amount: 5627, + storage_id: "3cc80401-eb37-4773-9796-e7b295c51566" )) assert response.code != "400" end def test_create_coupon_16 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7601, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 7193, is_shop_specified: false, - available_shop_ids: ["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", - usage_limit: 6702, - min_amount: 2741, - storage_id: "e3c517ad-8e38-43c1-bd22-8a7cebf34ee5" + available_shop_ids: ["d0bb42b5-a5f2-440a-94a0-4534b31f2e0f", "bc847f67-998f-44ee-bb4a-5d5a8ea1b429", "7e1ae31a-6084-4d20-a73e-5c24d6587307", "e64dbe40-0888-4b0f-bd32-ca0dd7fbe33a", "f900c343-93fa-4d16-b8de-18baeaa5da8e", "5877a631-b4bb-4718-989d-c19b3cdc1e10", "f8c870ce-5f6f-4975-a379-30427b3a2822"], + code: "bE", + usage_limit: 3464, + min_amount: 1264, + storage_id: "cca9db8f-7f87-4ef8-905b-10831c3722c6" )) assert response.code != "400" end def test_create_coupon_17 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 8872, - is_shop_specified: false, - available_shop_ids: ["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"], + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 5295, + is_shop_specified: true, + available_shop_ids: ["c60a500f-c0b7-412d-9008-18afc41ddd44", "0b482109-e1e7-4d98-ad67-8e721218eafa", "695c876e-23ce-4757-8ac2-085658460209", "7379a4b0-2f5d-4205-b00f-26b9cc760a8d"], is_public: true, - code: "CyKm4tG2", - usage_limit: 4038, - min_amount: 2789, - storage_id: "747a7c03-cdae-4adf-9758-597836eb65d0" + code: "BTT", + usage_limit: 2544, + min_amount: 4779, + storage_id: "348c5d29-80b6-4f9c-81c7-84f09203a94d" )) assert response.code != "400" end def test_create_coupon_18 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 2894, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 4878, is_shop_specified: true, - available_shop_ids: ["2529f2e9-0ecd-4256-a886-6fdab38969ed", "998e8a1f-9482-4990-ad47-baea293b505e", "d69f3130-d611-4354-8d4d-7c91bcb37a0e"], + available_shop_ids: ["2b68eaa3-3ae0-428f-9d3e-09cfdad7109e", "950b447e-4e3d-4e81-b3e2-17745dfcd0c0", "9da3ff48-daad-4f59-a39c-a61729d6e947"], is_hidden: false, is_public: true, - code: "F", - usage_limit: 6408, - min_amount: 7960, - storage_id: "fe9a95cd-0b2b-4b1e-b05c-168f46148abe" + code: "4Qa", + usage_limit: 1260, + min_amount: 8194, + storage_id: "d40a1b75-b1b6-4f03-9c00-85120c5d789e" )) assert response.code != "400" end def test_create_coupon_19 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 8388, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 611, is_shop_specified: true, - available_shop_ids: ["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"], - is_disabled: true, - is_hidden: false, + available_shop_ids: ["e9372fba-ec3b-4ca2-8417-5bd6a5e268b2", "880e6120-18d0-45e3-9aea-5a0d3513c814", "5836580c-8bdc-4ca4-9e01-13b234b7ce63", "f53038ff-1bf4-4691-b6ed-835aba2d3afa", "9e18b688-f22f-49bd-967b-6c75247c5717", "a4ee250d-9f47-4035-b32d-55f125e5dedd", "7cee915a-53d7-4dd4-80d9-b37ffdb0ea02", "eb80c67a-c302-4210-a047-bb215c85b113"], + is_disabled: false, + is_hidden: true, is_public: false, - code: "7nB", - usage_limit: 5865, - min_amount: 6058, - storage_id: "dc9400ae-536a-49e1-a134-4e75f7f1491a" + code: "uuBX6LUUU", + usage_limit: 4602, + min_amount: 3410, + storage_id: "47dfcaa6-c431-480a-b89c-37727d6788ce" )) assert response.code != "400" end def test_create_coupon_20 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 8154, - is_shop_specified: false, - available_shop_ids: ["66d53e70-5212-47c8-a2d1-a9c072aaedd4", "4be39234-68fe-4b13-ad8f-2fda5f237151", "8e51fe3b-d25e-4b9e-a728-d89b81dc7144"], - display_ends_at: "2021-06-06T14:05:51.000000Z", - is_disabled: false, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 6353, + is_shop_specified: true, + available_shop_ids: ["5e094841-f3bb-4bd2-b863-ddcbdbf3d75f", "e35ee889-08bf-4cd7-a324-92e28d64e208", "52639309-7c20-4a31-ae79-4fcc9b91fdcc", "84a859d6-fd88-40c9-ada7-a03bf7f6d0e6", "2e5f33a4-0a40-4837-90ca-d20f5bb0a39a"], + display_ends_at: "2023-04-22T11:57:40.000000Z", + is_disabled: true, is_hidden: true, - is_public: true, - code: "1kMJt8", - usage_limit: 8180, - min_amount: 8024, - storage_id: "0e0ca2cc-d84d-468d-b7dd-54e0fa6e0c69" + is_public: false, + code: "YRAl1UCuQy", + usage_limit: 7639, + min_amount: 2328, + storage_id: "62c78646-2f6c-495b-91f2-bb94fbaad81e" )) assert response.code != "400" end def test_create_coupon_21 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 3402, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 1991, is_shop_specified: false, - available_shop_ids: ["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"], - display_starts_at: "2021-05-19T15:51:25.000000Z", - display_ends_at: "2022-03-07T03:21:20.000000Z", - is_disabled: false, - is_hidden: true, + available_shop_ids: ["57bafadb-0cd2-4e8f-b17f-b22d56634856", "4811f464-3533-42c3-82fd-964958b8b996", "908b736c-65c5-48b3-a028-3be0790b76ab", "f2378be4-86a5-424f-acb8-c8c8e28b0e92", "3ffce2e4-dd7d-4ae9-81af-584082fbe82f"], + display_starts_at: "2022-05-25T11:19:19.000000Z", + display_ends_at: "2020-06-15T11:36:11.000000Z", + is_disabled: true, + is_hidden: false, is_public: false, - code: "dhT", - usage_limit: 6259, - min_amount: 4233, - storage_id: "0dd17f90-bf18-4753-bb3a-310cd42e4f78" + code: "JayB", + usage_limit: 7892, + min_amount: 2741, + storage_id: "67c9ee3e-7fa9-4dc9-a71d-2d24774ad141" )) assert response.code != "400" end def test_create_coupon_22 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 7055, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 8609, is_shop_specified: true, - available_shop_ids: ["275127d8-8784-4ea7-82f5-dcc0c1d07f89", "cd4bf5e8-c04c-491b-81f8-d403dc2586af", "c95875d0-e03b-4df8-824c-bfa677b05288"], - discount_upper_limit: 1426, - display_starts_at: "2023-01-10T01:53:40.000000Z", - display_ends_at: "2023-12-28T16:04:43.000000Z", - is_disabled: false, - is_hidden: false, + available_shop_ids: ["8ec50762-a039-4a9b-ba68-309de3b7a6f9", "c7e9af20-637e-42ba-bc5a-9da940023c01", "795ea3aa-43e8-4f63-9a5f-d1e8a4d90487", "5ea13da1-6d38-4b4d-920a-1975a768db53", "aa4be814-456c-45d6-9291-82232c3854af", "7178a2a2-e23e-4416-9ccb-4b67d1282607"], + discount_upper_limit: 2883, + display_starts_at: "2022-03-17T14:25:52.000000Z", + display_ends_at: "2022-06-23T09:14:55.000000Z", + is_disabled: true, + is_hidden: true, is_public: false, - code: "F", - usage_limit: 1079, - min_amount: 976, - storage_id: "f95a6c48-852d-4e39-9bbc-126a8cc8f50f" + code: "YYuG", + usage_limit: 462, + min_amount: 3377, + storage_id: "46b347b7-8a72-44e6-9439-f8280e0bd922" )) assert response.code != "400" end def test_create_coupon_23 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_amount: 8307, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_amount: 7835, is_shop_specified: false, - available_shop_ids: ["1b26b3bd-f4ff-42ef-ab29-d7b3c9bab7f1"], - description: "bXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrmndiCNxXXwjFaRAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMyd", - discount_upper_limit: 9580, - display_starts_at: "2020-12-24T14:18:47.000000Z", - display_ends_at: "2021-11-23T19:34:19.000000Z", + available_shop_ids: ["c12ab674-b3a9-4bfc-bd43-3fbb379cc402", "d03ecc13-6e5d-40e9-9880-44609bbfdef5", "b0ba8bbf-bb94-4ed3-b870-872d9a7b66b7", "bc7a7294-d969-4fa8-b1f2-f72ac66e9f1d", "77f4bce3-5861-44e3-927d-4fabdb95dc34", "eb1e167e-4e8c-4ec5-976d-e315a305a810"], + description: "JRYE0v", + discount_upper_limit: 2015, + display_starts_at: "2022-02-20T14:18:52.000000Z", + display_ends_at: "2023-07-19T15:05:01.000000Z", is_disabled: false, - is_hidden: false, + is_hidden: true, is_public: true, - code: "qE4", - usage_limit: 1281, - min_amount: 2260, - storage_id: "347c6031-7ff6-414f-b20c-b482317519cb" + code: "n2Odxgxw", + usage_limit: 4413, + min_amount: 2098, + storage_id: "56c56bb9-120a-43e5-9669-4c261a752f00" )) assert response.code != "400" end def test_create_coupon_24 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 6541.0 + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 4864.0 )) assert response.code != "400" end def test_create_coupon_25 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 3905.0, - storage_id: "2c2afa1e-4834-4c49-b7a5-01046f5627e7" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 989.0, + storage_id: "69c087f5-bc0e-46dc-b7cb-dd12da034aa6" )) assert response.code != "400" end def test_create_coupon_26 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 8787.0, - min_amount: 4289, - storage_id: "4521aa01-0767-4121-a909-b38b24913d5b" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 5236.0, + min_amount: 9342, + storage_id: "7b46026a-3df3-49a3-80a9-c2525359d56a" )) assert response.code != "400" end def test_create_coupon_27 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2858.0, - usage_limit: 9687, - min_amount: 2296, - storage_id: "149d8e18-385b-439d-ae65-6f88745a3d65" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 1658.0, + usage_limit: 1188, + min_amount: 4598, + storage_id: "5d05abaa-c8e2-42bf-bf38-fa58c7b7ef28" )) assert response.code != "400" end def test_create_coupon_28 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2667.0, - code: "V8cI", - usage_limit: 477, - min_amount: 5316, - storage_id: "e2cb1bdb-265b-452f-9430-c9a029af4c5e" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 1422.0, + code: "neGNN0", + usage_limit: 2407, + min_amount: 4892, + storage_id: "01fef6e3-c062-465e-8560-87ea746865c8" )) assert response.code != "400" end def test_create_coupon_29 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 4762.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 9925.0, is_public: true, - code: "8h8evW68NK", - usage_limit: 1776, - min_amount: 3221, - storage_id: "a2ee087f-c55e-4c64-ab0b-9471fa211a30" + code: "kOW2yVlHnd", + usage_limit: 8219, + min_amount: 5500, + storage_id: "94b02527-620b-4ebf-8b20-7d1ba337e341" )) assert response.code != "400" end def test_create_coupon_30 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 6224.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 6500.0, is_hidden: false, is_public: false, - code: "o6", - usage_limit: 5353, - min_amount: 3410, - storage_id: "72f76b31-5b0a-4b31-94de-a741089e050b" + code: "9HjNAOFWD0", + usage_limit: 2534, + min_amount: 7986, + storage_id: "0ef05c22-1a38-4f23-868e-980cd02292a6" )) assert response.code != "400" end def test_create_coupon_31 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 7664.0, - is_disabled: false, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 8946.0, + is_disabled: true, is_hidden: false, - is_public: false, - code: "gNTXOxF", - usage_limit: 8322, - min_amount: 2721, - storage_id: "f287c4bd-7526-4777-b193-d6273bae16e8" + is_public: true, + code: "b", + usage_limit: 9498, + min_amount: 3514, + storage_id: "39e8c38c-be2b-47d9-93e2-9e2df1feb570" )) assert response.code != "400" end def test_create_coupon_32 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 5483.0, - display_ends_at: "2023-03-21T06:19:56.000000Z", + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 9422.0, + display_ends_at: "2023-10-08T08:17:01.000000Z", is_disabled: false, is_hidden: false, is_public: true, - code: "pZV", - usage_limit: 162, - min_amount: 4106, - storage_id: "21e1c3f0-1e46-4c1c-937b-de026597e01b" + code: "ET9", + usage_limit: 2640, + min_amount: 320, + storage_id: "edc13169-4c96-44ad-b043-0f863aa39c8f" )) assert response.code != "400" end def test_create_coupon_33 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 9168.0, - display_starts_at: "2023-07-19T00:14:52.000000Z", - display_ends_at: "2022-03-27T10:37:51.000000Z", + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 2312.0, + display_starts_at: "2021-03-08T22:03:01.000000Z", + display_ends_at: "2023-11-21T02:23:55.000000Z", is_disabled: true, - is_hidden: true, + is_hidden: false, is_public: true, - code: "p5bfKV", - usage_limit: 1158, - min_amount: 9785, - storage_id: "e2b3a15d-b52a-46c4-90d9-b1ca5326759d" + code: "u", + usage_limit: 3444, + min_amount: 5359, + storage_id: "b4e1096b-3dd8-42d0-8871-c330032a8631" )) assert response.code != "400" end def test_create_coupon_34 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2085.0, - discount_upper_limit: 4310, - display_starts_at: "2021-04-29T14:17:30.000000Z", - display_ends_at: "2020-04-13T12:51:34.000000Z", + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 4896.0, + discount_upper_limit: 6838, + display_starts_at: "2022-10-31T21:00:19.000000Z", + display_ends_at: "2021-02-13T22:17:41.000000Z", is_disabled: true, - is_hidden: true, + is_hidden: false, is_public: false, - code: "vyI6yw", - usage_limit: 5391, - min_amount: 6057, - storage_id: "a2aa4979-3f4b-4c69-a723-36ec32ea14bd" + code: "qfiA", + usage_limit: 1427, + min_amount: 4736, + storage_id: "d3f237a8-7713-455e-8ba9-1c29782607d5" )) assert response.code != "400" end def test_create_coupon_35 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 9194.0, - description: "5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac", - discount_upper_limit: 1593, - display_starts_at: "2022-09-20T16:39:04.000000Z", - display_ends_at: "2023-01-28T15:06:04.000000Z", - is_disabled: false, - is_hidden: true, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 3590.0, + description: "XxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4oo", + discount_upper_limit: 9259, + display_starts_at: "2024-02-29T04:27:08.000000Z", + display_ends_at: "2020-01-15T06:15:52.000000Z", + is_disabled: true, + is_hidden: false, is_public: false, - code: "Bqh0SVIl", - usage_limit: 7423, - min_amount: 9087, - storage_id: "0239f926-855b-49ba-aa9d-e9212eecd940" + code: "h8egFMYUCN", + usage_limit: 1719, + min_amount: 5652, + storage_id: "cae1d03a-1bd1-4abc-85ca-fab08868d640" )) assert response.code != "400" end def test_create_coupon_36 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 7220.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 1617.0, is_shop_specified: false, - available_shop_ids: ["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"] + available_shop_ids: ["810d0e07-49a1-4917-9c81-9dd79b0ae26c", "bf5c4401-1881-4e71-893f-8f77cf56edf4", "a6d12f3f-eec4-4acc-b838-dc612d772fcc", "f2def566-723f-48ab-9b67-4a2b21a39e29", "f26e6043-fd14-442e-a6e4-89b3f1eea2ac", "5a2bd702-bbed-49f3-a58c-b0cc50b56751", "5d9ff3fd-6d28-4342-ac24-a058b755c049", "d748e101-7a1e-46d5-a985-4bbfa40aed59"] )) assert response.code != "400" end def test_create_coupon_37 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2673.0, - is_shop_specified: false, - available_shop_ids: ["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"], - storage_id: "4d1524bc-2fa2-4de7-bee1-b237640b19f0" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 5872.0, + is_shop_specified: true, + available_shop_ids: ["a37ce39f-24d4-4d5b-8076-91a5efc9de4e", "02376599-3411-4a06-a7e6-78a04c1ec3e1", "1427f64b-c611-4e7c-bf14-51b3159480dc", "cedee150-616f-476f-9877-c1f094c16d4b", "ced650c1-95f8-4725-b38f-7a1febe8f56b", "953adf0f-8c24-4966-8741-a133d83313b1"], + storage_id: "fc03b5f7-4c58-4964-b034-229a5bfdd7df" )) assert response.code != "400" end def test_create_coupon_38 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 2819.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 7335.0, is_shop_specified: true, - available_shop_ids: ["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"], - min_amount: 102, - storage_id: "e68deb01-c827-45dc-b0c9-d628c02dc8be" + available_shop_ids: ["a121ca53-0e59-4731-8721-f0cf7a3e50dc", "c7048138-ce5d-4d10-9e3d-44bfea40c280", "8951cfbb-c91a-4ce7-8c87-76c7b6182ebe", "2fe8fe12-cf8e-4bac-bb21-ed8ad93aecfb", "2ea1422d-77a0-45de-8f46-d31c615240b1", "b8b786eb-5352-4f5f-b2bd-a228fdbbf312", "b973a23b-e126-490a-b981-0f7d5c633165", "c4b5b9a2-aa36-4fb1-a675-57fa594b483f"], + min_amount: 3053, + storage_id: "317ddec2-9089-4f49-9f83-d500cd6b4c58" )) assert response.code != "400" end def test_create_coupon_39 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 9282.0, - is_shop_specified: true, - available_shop_ids: ["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"], - usage_limit: 6156, - min_amount: 3629, - storage_id: "9b088bf8-5805-481e-9164-0984c5a23833" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 1124.0, + is_shop_specified: false, + available_shop_ids: ["4d0890ce-6446-4695-b329-bf8848a5cf33", "37bb352e-6624-4a8e-800d-67ea72c312a6", "4a3fd4c2-b1df-4d23-ac77-d15a96c96a89", "37ca0f81-6d60-4cf2-847f-5512de4de9b7", "de5bacb2-a9e0-4d7c-96a3-f0c4d50a86c2", "2b7d7f8d-2eb3-4e24-a037-0726ad66bb13"], + usage_limit: 775, + min_amount: 3723, + storage_id: "d595fb52-6fbc-4b00-b4fb-f4b84163155e" )) assert response.code != "400" end def test_create_coupon_40 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 832.0, - is_shop_specified: false, - available_shop_ids: ["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", - usage_limit: 8677, - min_amount: 8325, - storage_id: "eb47ec15-ed41-4fa6-a2ad-9426485df6a4" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 1468.0, + is_shop_specified: true, + available_shop_ids: ["c7c6f3ff-771f-42e9-90fe-8f493522581a", "03b901f7-11c3-4abe-acc7-d11c3f55109a", "dd2f9c25-37da-4d31-8ba2-bdcf6d877ec7", "5cbea909-0ce7-43c5-b2dc-cef341f5346a", "1169a18e-87fd-460f-b73d-31db5b1a3dc8", "9d1e2475-b436-46d7-8b09-2da18d95eab5", "f91dfd0c-202c-47dc-8d03-ba82c56495a2", "7361eebc-b222-441f-8837-498551f3546e", "b3e17cdd-89a2-4d70-bb12-af8587969e5b"], + code: "uch6s2J6", + usage_limit: 1719, + min_amount: 1665, + storage_id: "ccd03250-f729-4bb8-a81c-256e4e391cbd" )) assert response.code != "400" end def test_create_coupon_41 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 8399.0, - is_shop_specified: false, - available_shop_ids: ["4705f294-b0c4-4e2b-82e7-01525eb1c595", "1cca2b96-a6fc-4e14-9141-dc671d8693ed", "06f35eea-ef85-44de-b890-d640eb8954bf"], + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 215.0, + is_shop_specified: true, + available_shop_ids: ["eb499449-11e5-4085-8dd3-14865cd6f4a4", "b7447cbd-9b9f-48a2-aebd-b3042480af11", "c74f1123-9935-45b2-87b1-af97b0f90007", "be3bfc7f-d592-43a7-a28d-32fc42d4f3c0", "aad70bed-a26e-4bbb-ad85-81009b5d5688", "c8f30165-e609-4068-b581-c4d1e0d294c5", "794c54c2-b164-470a-9cc3-b75a59bc474a", "33ab4b3d-6f74-4420-ac72-0955e4d69461", "8daaa3b6-ccc6-45e7-b037-51a9383ca85c"], is_public: true, - code: "GCqaBwJ9", - usage_limit: 8536, - min_amount: 5610, - storage_id: "c7307dd8-6abc-4c53-85e6-016284b2676b" + code: "ym0hY", + usage_limit: 6437, + min_amount: 2305, + storage_id: "49eb332d-2507-4755-81d7-3e4d2a60ea59" )) assert response.code != "400" end def test_create_coupon_42 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 5085.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 8479.0, is_shop_specified: true, - available_shop_ids: ["862a6910-cb88-4d92-b376-02ec46d1e9aa"], - is_hidden: true, + available_shop_ids: ["a89ae957-bfbb-4626-a6bf-e3dc0509c92d", "c333cb03-83c7-422a-8b2b-384edf7c34c3", "cf57b028-c1a7-44bb-a785-e23060cfa50c", "166e4677-08ab-4202-ab86-95d60882c602", "ae717da0-3407-4fb3-8606-37a074fa1ee1", "e60c288d-6d88-4d42-86cf-7d58bccfb731", "e3318449-72a8-4820-a72d-b3fd44ef8838", "79ebe268-20bf-44d2-8f25-39db0ec70a98", "a39604c6-1442-4033-a52c-a3cd5ec3b1de"], + is_hidden: false, is_public: true, - code: "1NOUE", - usage_limit: 8157, - min_amount: 6669, - storage_id: "77a128ff-3da3-4c55-a6cf-7b9dc665c8c0" + code: "GXrpVSkSd", + usage_limit: 45, + min_amount: 2316, + storage_id: "b364e451-7a89-40af-82a4-8140e2e4eeff" )) assert response.code != "400" end def test_create_coupon_43 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 1412.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 7042.0, is_shop_specified: false, - available_shop_ids: ["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"], + available_shop_ids: ["262e0558-3948-4bdf-979f-6526c52b8443", "1b2b5deb-5538-4b38-9e8b-aa799f32623e"], is_disabled: false, - is_hidden: true, - is_public: false, - code: "Hmd", - usage_limit: 9339, - min_amount: 5494, - storage_id: "48064ff9-31ec-4aa0-891c-927d28cb5c94" + is_hidden: false, + is_public: true, + code: "kNbUU", + usage_limit: 2878, + min_amount: 6655, + storage_id: "bf487387-f66c-4313-980a-ea70cb1b91b2" )) assert response.code != "400" end def test_create_coupon_44 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 3084.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 7725.0, is_shop_specified: true, - available_shop_ids: ["398df768-72c7-43a1-a4c4-014d8dabcd02", "f3c9e73b-74f8-4703-82aa-86f54c8abfea", "40e3a40f-f417-462f-9c0f-02b814352341"], - display_ends_at: "2021-12-21T15:43:30.000000Z", + available_shop_ids: ["cdd75d73-0cdf-4d03-aed4-50db361008b5", "a8dd4e85-3d9b-4ee0-a721-ab2a96f229ad", "69c81e91-805e-410f-94a3-ac384c3aed30", "1f6677bc-7b39-4fa2-811c-d9853a2cc61c", "ca853811-6c95-4a8c-a2fc-1aa582234b09", "47e95bad-e076-4d74-8ae1-f5ff2c077955", "8ee4d9f9-c2b0-4c20-8110-5b051faaf4cb"], + display_ends_at: "2021-02-28T11:52:15.000000Z", is_disabled: false, - is_hidden: false, + is_hidden: true, is_public: false, - code: "DOA", - usage_limit: 6315, - min_amount: 4099, - storage_id: "c5759a98-b157-4cab-91e5-abaff2a27aef" + code: "I2A", + usage_limit: 8934, + min_amount: 5037, + storage_id: "e1e8f315-2f8f-432d-8c2b-1b7649011f99" )) assert response.code != "400" end def test_create_coupon_45 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 21.0, - is_shop_specified: true, - available_shop_ids: ["47915465-a013-43c6-9fe0-fa0b9c291036"], - display_starts_at: "2020-06-23T10:27:15.000000Z", - display_ends_at: "2022-01-25T23:08:38.000000Z", - is_disabled: false, - is_hidden: false, - is_public: false, - code: "1N9plx7j", - usage_limit: 4121, - min_amount: 5020, - storage_id: "3a1b1b6a-6cc8-46cb-a031-7545636c6696" + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 4789.0, + is_shop_specified: false, + available_shop_ids: ["7846026e-3173-4a53-9bb8-32f0f808d654", "f739af0a-a38c-488b-b769-48f78329b84e", "413bf7ec-8589-4f9d-b998-9b438f1f38cb", "3af5f505-de4e-4980-b53f-5d00b934fcaf", "b9fc69f9-2018-4a40-a0a8-499faf737ec3", "cb7e04a0-aa73-4302-9444-39cdb8afc1be", "c2415f18-1075-4e94-9c5e-3975e63c1393", "b90c1e61-7ad7-4e67-829e-41b608b819f6"], + display_starts_at: "2023-09-27T09:19:37.000000Z", + display_ends_at: "2024-03-25T07:19:11.000000Z", + is_disabled: true, + is_hidden: true, + is_public: true, + code: "5quwxF", + usage_limit: 5976, + min_amount: 7022, + storage_id: "290afe26-e7ba-4a4a-b545-6e9d9d4ea160" )) assert response.code != "400" end def test_create_coupon_46 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 9979.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 930.0, is_shop_specified: false, - available_shop_ids: ["e5f26155-ded1-4869-892b-517522354cd6"], - discount_upper_limit: 3967, - display_starts_at: "2021-01-05T23:06:34.000000Z", - display_ends_at: "2021-11-05T02:04:42.000000Z", + available_shop_ids: ["c9300a36-c197-46c7-a34e-6b5013fe81ae", "6a6efdc3-e820-4e12-9a45-b956cfaee0db", "bb4e75fb-800f-4250-bea4-a0f18f76d4b4", "ecb94336-bc40-45c7-a4c9-ff50eb9b5625"], + discount_upper_limit: 1580, + display_starts_at: "2023-10-07T12:37:55.000000Z", + display_ends_at: "2020-01-24T04:44:40.000000Z", is_disabled: false, is_hidden: true, - is_public: true, - code: "T2YVV", - usage_limit: 7118, - min_amount: 4769, - storage_id: "79ced667-920b-431d-9d6b-d1687843dec7" + is_public: false, + code: "Ybz4K3IA8", + usage_limit: 7370, + min_amount: 7744, + storage_id: "f14cb959-bad5-44e0-89a7-46cc44f1e91e" )) assert response.code != "400" end def test_create_coupon_47 response = $client.send(Pokepay::Request::CreateCoupon.new( - "bd103d21-a16d-4654-931f-6ca445ab6949", - "s3sss0bSZ", - "2021-01-14T23:41:37.000000Z", - "2020-09-06T06:55:56.000000Z", - "5cb12b63-c3a0-47d2-8735-ba7295336d04", - discount_percentage: 7259.0, + "3eff1332-3b9d-4c12-8bb6-625a4d8d93f4", + "1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWM", + "2022-04-28T17:03:11.000000Z", + "2023-10-01T02:38:03.000000Z", + "4d6fe365-198b-4c71-a796-668701375f8c", + discount_percentage: 4087.0, is_shop_specified: true, - available_shop_ids: ["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", - discount_upper_limit: 6299, - display_starts_at: "2024-01-27T13:55:31.000000Z", - display_ends_at: "2023-03-28T10:50:23.000000Z", + available_shop_ids: ["f494a059-9420-4a08-8811-09d7b38f9671", "1ae547bc-2d39-4d07-a814-28b3c6c0f2be", "2aaa18e1-0e79-4410-9982-06f8cf8144a1"], + description: "gOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw", + discount_upper_limit: 2485, + display_starts_at: "2023-10-19T11:23:47.000000Z", + display_ends_at: "2021-11-02T21:52:32.000000Z", is_disabled: false, - is_hidden: true, - is_public: false, - code: "CWxbc4", - usage_limit: 6312, - min_amount: 7229, - storage_id: "79e59fbd-ceb0-4e50-b2c4-ee2a4708567f" + is_hidden: false, + is_public: true, + code: "fZdks", + usage_limit: 1727, + min_amount: 1809, + storage_id: "e4f6a2af-dc93-454f-822b-765c13d52d7a" )) assert response.code != "400" end def test_get_coupon_0 response = $client.send(Pokepay::Request::GetCoupon.new( - "37ca2208-5d71-4368-b393-e89b31863544" + "8566d5e2-afed-4f57-89fb-304a5ee2533e" )) assert response.code != "400" end def test_update_coupon_0 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1971 + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 7224 )) assert response.code != "400" end def test_update_coupon_1 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6605, - name: "k8m6" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 3863, + name: "kV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc" )) assert response.code != "400" end def test_update_coupon_2 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6851, - description: "n0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3", - name: "JQAlc0mxfIBE" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 1716, + description: "wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6A", + name: "PJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6" )) assert response.code != "400" end def test_update_coupon_3 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 3624, - discount_upper_limit: 8519, - description: "WMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqyd", - name: "ndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9lgptmz4nyVSUDS2rGPI8RxpE3teEPiaYEe" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 2846, + discount_upper_limit: 5909, + description: "DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1", + name: "hN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51Au" )) assert response.code != "400" end def test_update_coupon_4 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1336, - starts_at: "2020-09-14T07:21:18.000000Z", - discount_upper_limit: 8419, - description: "L5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxF", - name: "X7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2P" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 6653, + starts_at: "2023-08-29T17:07:12.000000Z", + discount_upper_limit: 7611, + description: "ounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9Fu47WiDgn", + name: "9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNF" )) assert response.code != "400" end def test_update_coupon_5 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5603, - ends_at: "2020-05-10T10:02:02.000000Z", - starts_at: "2022-03-03T10:05:30.000000Z", - discount_upper_limit: 6669, - description: "2ctvmZzuG53qZWTYzGouu", - name: "X6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3C" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 2210, + ends_at: "2022-07-26T17:39:16.000000Z", + starts_at: "2024-01-18T00:15:12.000000Z", + discount_upper_limit: 3187, + description: "0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ", + name: "69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfx" )) assert response.code != "400" end def test_update_coupon_6 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1277, - display_starts_at: "2020-09-05T11:32:25.000000Z", - ends_at: "2020-05-20T02:48:54.000000Z", - starts_at: "2020-04-15T18:37:32.000000Z", - discount_upper_limit: 9669, - description: "dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vgLGn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8u", - name: "okXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3Po" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 9792, + display_starts_at: "2023-10-23T15:00:16.000000Z", + ends_at: "2021-07-18T17:58:48.000000Z", + starts_at: "2021-11-08T06:31:45.000000Z", + discount_upper_limit: 4454, + description: "vfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpA", + name: "HYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNK" )) assert response.code != "400" end def test_update_coupon_7 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5999, - display_ends_at: "2023-10-18T01:36:24.000000Z", - display_starts_at: "2020-09-02T00:29:43.000000Z", - ends_at: "2022-04-26T07:44:48.000000Z", - starts_at: "2022-07-12T10:34:51.000000Z", - discount_upper_limit: 4289, - description: "3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9C", - name: "N5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 8428, + display_ends_at: "2022-01-23T08:00:21.000000Z", + display_starts_at: "2024-01-09T03:10:12.000000Z", + ends_at: "2021-10-25T20:10:05.000000Z", + starts_at: "2022-12-19T01:30:37.000000Z", + discount_upper_limit: 3947, + description: "v5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75", + name: "iPCouDaOPQZR4U" )) assert response.code != "400" end def test_update_coupon_8 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6369, - is_disabled: false, - display_ends_at: "2021-05-15T22:02:56.000000Z", - display_starts_at: "2023-05-10T05:55:37.000000Z", - ends_at: "2023-07-22T16:36:18.000000Z", - starts_at: "2023-01-12T10:59:04.000000Z", - discount_upper_limit: 1185, - description: "gOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw", - name: "eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslT" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 2939, + is_disabled: true, + display_ends_at: "2021-09-16T22:04:32.000000Z", + display_starts_at: "2022-02-25T12:48:43.000000Z", + ends_at: "2020-10-05T12:19:48.000000Z", + starts_at: "2021-03-23T05:04:11.000000Z", + discount_upper_limit: 5229, + description: "pN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTg", + name: "rywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E3" )) assert response.code != "400" end def test_update_coupon_9 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 2342, - is_hidden: true, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 4494, + is_hidden: false, is_disabled: false, - display_ends_at: "2022-04-20T01:25:25.000000Z", - display_starts_at: "2023-10-08T13:53:12.000000Z", - ends_at: "2022-03-18T09:03:54.000000Z", - starts_at: "2021-06-30T22:02:05.000000Z", - discount_upper_limit: 432, - description: "0PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFum", - name: "QVfUsw4hfYXr8Tws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IA" + display_ends_at: "2021-07-26T18:44:01.000000Z", + display_starts_at: "2022-06-18T22:04:28.000000Z", + ends_at: "2021-05-23T18:18:51.000000Z", + starts_at: "2021-05-06T05:55:00.000000Z", + discount_upper_limit: 9560, + description: "fUae14", + name: "bt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAG" )) assert response.code != "400" end def test_update_coupon_10 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5337, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 7941, is_public: true, - is_hidden: false, - is_disabled: true, - display_ends_at: "2023-08-26T20:02:34.000000Z", - display_starts_at: "2021-08-13T21:31:53.000000Z", - ends_at: "2022-02-14T12:55:29.000000Z", - starts_at: "2022-10-19T08:05:31.000000Z", - discount_upper_limit: 3488, - description: "HAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVf", - name: "L5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3Px" + is_hidden: true, + is_disabled: false, + display_ends_at: "2022-07-28T10:32:25.000000Z", + display_starts_at: "2022-09-24T13:28:30.000000Z", + ends_at: "2021-09-30T19:59:52.000000Z", + starts_at: "2023-04-29T22:15:45.000000Z", + discount_upper_limit: 923, + description: "YbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAu", + name: "cgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7" )) assert response.code != "400" end def test_update_coupon_11 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 7058, - code: "v", + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 1961, + code: "rIAl", is_public: true, - is_hidden: false, - is_disabled: true, - display_ends_at: "2023-09-17T19:01:04.000000Z", - display_starts_at: "2023-01-19T19:29:08.000000Z", - ends_at: "2021-03-21T02:48:14.000000Z", - starts_at: "2024-02-22T15:55:19.000000Z", - discount_upper_limit: 3031, - description: "A6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizY", - name: "vZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnIC" + is_hidden: true, + is_disabled: false, + display_ends_at: "2023-06-21T07:52:48.000000Z", + display_starts_at: "2024-01-30T00:26:16.000000Z", + ends_at: "2020-02-19T11:38:37.000000Z", + starts_at: "2022-01-05T09:51:09.000000Z", + discount_upper_limit: 5236, + description: "DahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0r", + name: "sAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhY" )) assert response.code != "400" end def test_update_coupon_12 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6693, - usage_limit: 7178, - code: "BJimGKiop", - is_public: true, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 8815, + usage_limit: 3691, + code: "5v", + is_public: false, is_hidden: true, is_disabled: true, - display_ends_at: "2020-01-24T01:52:50.000000Z", - display_starts_at: "2020-07-24T06:27:09.000000Z", - ends_at: "2022-10-23T01:58:06.000000Z", - starts_at: "2023-10-07T12:21:53.000000Z", - discount_upper_limit: 8662, - description: "9", - name: "u47WiDgn9VJjED17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7Rr" + display_ends_at: "2020-10-01T15:03:52.000000Z", + display_starts_at: "2021-11-10T10:21:59.000000Z", + ends_at: "2023-12-02T12:08:02.000000Z", + starts_at: "2023-06-24T07:59:19.000000Z", + discount_upper_limit: 1074, + description: "mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPps", + name: "ziVloAtynLsPgO9CFz87kImOLWynZ7sTqSk" )) assert response.code != "400" end def test_update_coupon_13 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 3320, - min_amount: 8177, - usage_limit: 2786, - code: "xY5", + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 8271, + min_amount: 215, + usage_limit: 9412, + code: "yY4qSDce16", is_public: false, - is_hidden: true, + is_hidden: false, is_disabled: true, - display_ends_at: "2020-10-28T00:05:23.000000Z", - display_starts_at: "2022-12-20T18:53:15.000000Z", - ends_at: "2022-01-27T12:10:21.000000Z", - starts_at: "2020-06-26T00:50:42.000000Z", - discount_upper_limit: 3192, - description: "b35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKI", - name: "dqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzma" + display_ends_at: "2023-01-27T21:17:43.000000Z", + display_starts_at: "2023-08-03T17:28:48.000000Z", + ends_at: "2020-08-15T20:44:06.000000Z", + starts_at: "2020-04-05T00:04:54.000000Z", + discount_upper_limit: 9583, + description: "4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4X", + name: "u22Okprhq" )) assert response.code != "400" end def test_update_coupon_14 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 4030, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 1256, is_shop_specified: false, - min_amount: 3120, - usage_limit: 2135, - code: "VCj", - is_public: true, + min_amount: 8182, + usage_limit: 2447, + code: "pM", + is_public: false, is_hidden: false, is_disabled: false, - display_ends_at: "2022-01-10T01:07:38.000000Z", - display_starts_at: "2022-11-04T10:45:55.000000Z", - ends_at: "2021-07-18T22:29:58.000000Z", - starts_at: "2020-04-25T13:22:39.000000Z", - discount_upper_limit: 2424, - description: "XnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4", - name: "bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI" + display_ends_at: "2022-07-25T14:53:22.000000Z", + display_starts_at: "2023-07-24T19:54:56.000000Z", + ends_at: "2022-02-15T14:10:20.000000Z", + starts_at: "2021-05-28T13:03:23.000000Z", + discount_upper_limit: 4851, + description: "X8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxAFotkA3GwpJ6pUWjvsxF7sC23pAVbXivHZtrI", + name: "yP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHD" )) assert response.code != "400" end def test_update_coupon_15 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5168, - available_shop_ids: ["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"], - is_shop_specified: true, - min_amount: 6069, - usage_limit: 7334, - code: "F2FUuyDVU", - is_public: true, - is_hidden: true, - is_disabled: false, - display_ends_at: "2022-11-09T23:59:22.000000Z", - display_starts_at: "2021-11-05T06:38:38.000000Z", - ends_at: "2022-05-08T04:57:11.000000Z", - starts_at: "2024-02-25T02:06:59.000000Z", - discount_upper_limit: 4441, - description: "ez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOy", - name: "21L95eAaG4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 3112, + available_shop_ids: ["b0fdacb6-0994-4ea6-ad10-20385628af90", "0356d396-fee8-4ca2-8702-166ca170458c", "d23dcc13-0a70-471a-8ec0-c59ea10aef71", "69085f09-8060-4453-95b5-5cbba1c819a4", "b42b0eb7-631b-4e32-8b41-230b62d558be"], + is_shop_specified: false, + min_amount: 2118, + usage_limit: 4129, + code: "2", + is_public: false, + is_hidden: false, + is_disabled: true, + display_ends_at: "2021-06-06T15:14:47.000000Z", + display_starts_at: "2023-01-04T19:51:16.000000Z", + ends_at: "2022-01-16T10:42:07.000000Z", + starts_at: "2022-10-21T11:59:21.000000Z", + discount_upper_limit: 1174, + description: "rPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1ga", + name: "pEcvHpCxJHTvEJuFQdQ" )) assert response.code != "400" end def test_update_coupon_16 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5301, - storage_id: "9e17eafe-e8c0-4808-a1f1-0a131d9f69c7", - available_shop_ids: ["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"], - is_shop_specified: true, - min_amount: 4725, - usage_limit: 5902, - code: "hoXC", + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 8271, + storage_id: "d7e3efb1-f042-401b-a45d-5f693e6a880e", + available_shop_ids: ["6613c367-8efb-4d08-beef-de8539764e76", "e0d7893a-a4d5-4fdb-b980-71b9f2e0ed9e", "d7f6a552-af98-4f4f-b354-5e145eb2665a"], + is_shop_specified: false, + min_amount: 6703, + usage_limit: 9791, + code: "Oh", is_public: false, is_hidden: true, is_disabled: true, - display_ends_at: "2023-10-29T09:57:30.000000Z", - display_starts_at: "2023-04-05T21:15:37.000000Z", - ends_at: "2022-12-29T01:49:43.000000Z", - starts_at: "2023-11-22T00:07:21.000000Z", - discount_upper_limit: 6630, - description: "Yfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vF", - name: "ea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc" + display_ends_at: "2021-05-08T04:42:08.000000Z", + display_starts_at: "2022-06-13T02:10:38.000000Z", + ends_at: "2020-02-20T22:45:10.000000Z", + starts_at: "2020-10-26T03:57:56.000000Z", + discount_upper_limit: 3555, + description: "lCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPB", + name: "7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132u" )) assert response.code != "400" end def test_update_coupon_17 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 3851, - discount_percentage: 4745.0 + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 6208, + discount_percentage: 4185.0 )) assert response.code != "400" end def test_update_coupon_18 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 40, - discount_percentage: 4085.0, - name: "kk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 1939, + discount_percentage: 5356.0, + name: "ZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxc" )) assert response.code != "400" end def test_update_coupon_19 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 9484, - discount_percentage: 8601.0, - description: "BlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4", - name: "fUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruI" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 1489, + discount_percentage: 6619.0, + description: "QcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMA", + name: "GqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscw" )) assert response.code != "400" end def test_update_coupon_20 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1367, - discount_percentage: 115.0, - discount_upper_limit: 3331, - description: "4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5", - name: "t8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6Jlqv" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 7648, + discount_percentage: 5335.0, + discount_upper_limit: 5778, + description: "uBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLq", + name: "qxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv" )) assert response.code != "400" end def test_update_coupon_21 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1149, - discount_percentage: 9556.0, - starts_at: "2021-02-16T11:41:35.000000Z", - discount_upper_limit: 9715, - description: "7SrIAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1f9b8gICLPqqow4qG8fKRsijZT9ACbFhS", - name: "bUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 58, + discount_percentage: 6965.0, + starts_at: "2023-08-23T22:34:15.000000Z", + discount_upper_limit: 6416, + description: "2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUeb", + name: "M3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXd" )) assert response.code != "400" end def test_update_coupon_22 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 8884, - discount_percentage: 8369.0, - ends_at: "2023-02-02T05:10:51.000000Z", - starts_at: "2022-01-16T00:07:17.000000Z", - discount_upper_limit: 8450, - description: "Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kI", - name: "mOLWynZ7sTqSkOWWDLZmiyY4qSDc" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 4839, + discount_percentage: 1078.0, + ends_at: "2020-04-05T03:18:15.000000Z", + starts_at: "2020-01-08T21:33:55.000000Z", + discount_upper_limit: 4532, + description: "0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyX", + name: "MXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5D" )) assert response.code != "400" end def test_update_coupon_23 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 9445, - discount_percentage: 1457.0, - display_starts_at: "2021-09-01T21:03:10.000000Z", - ends_at: "2022-10-12T02:30:00.000000Z", - starts_at: "2022-08-30T12:14:25.000000Z", - discount_upper_limit: 3894, - description: "C4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22", - name: "kprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sWqtjzoUhtWxA" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 5642, + discount_percentage: 4373.0, + display_starts_at: "2021-10-11T22:07:04.000000Z", + ends_at: "2024-01-12T08:43:51.000000Z", + starts_at: "2020-03-04T04:43:19.000000Z", + discount_upper_limit: 6510, + description: "kdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176", + name: "qMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu" )) assert response.code != "400" end def test_update_coupon_24 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1704, - discount_percentage: 5062.0, - display_ends_at: "2023-06-06T13:41:03.000000Z", - display_starts_at: "2021-08-29T08:59:32.000000Z", - ends_at: "2021-10-09T22:51:23.000000Z", - starts_at: "2023-06-03T00:22:24.000000Z", - discount_upper_limit: 5770, - description: "GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bn", - name: "X1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6C" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 8243, + discount_percentage: 1959.0, + display_ends_at: "2023-01-18T17:36:59.000000Z", + display_starts_at: "2022-06-22T22:04:33.000000Z", + ends_at: "2023-01-15T19:01:47.000000Z", + starts_at: "2022-06-14T05:17:31.000000Z", + discount_upper_limit: 3394, + description: "NVzugQpgEVipsMl1opS6XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa", + name: "s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhB" )) assert response.code != "400" end def test_update_coupon_25 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 5594, - discount_percentage: 3235.0, - is_disabled: false, - display_ends_at: "2022-11-21T04:50:37.000000Z", - display_starts_at: "2022-07-09T19:17:30.000000Z", - ends_at: "2024-02-29T07:46:53.000000Z", - starts_at: "2022-08-19T04:51:51.000000Z", - discount_upper_limit: 6857, - description: "HDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQO", - name: "hilbvDcAlCpIpPo9knGna2qU0GmaUmeizg" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 2892, + discount_percentage: 6302.0, + is_disabled: true, + display_ends_at: "2021-12-31T21:31:15.000000Z", + display_starts_at: "2021-07-20T07:15:38.000000Z", + ends_at: "2021-01-03T06:55:49.000000Z", + starts_at: "2023-08-27T02:51:30.000000Z", + discount_upper_limit: 1478, + description: "RRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtgl", + name: "u99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVU" )) assert response.code != "400" end def test_update_coupon_26 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 8488, - discount_percentage: 4489.0, - is_hidden: false, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 479, + discount_percentage: 722.0, + is_hidden: true, is_disabled: true, - display_ends_at: "2022-07-02T11:13:06.000000Z", - display_starts_at: "2022-12-23T01:36:40.000000Z", - ends_at: "2022-06-22T06:35:17.000000Z", - starts_at: "2021-03-06T08:34:30.000000Z", - discount_upper_limit: 9478, - description: "wqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536", - name: "2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0k" + display_ends_at: "2023-09-11T13:56:14.000000Z", + display_starts_at: "2022-05-27T00:13:35.000000Z", + ends_at: "2021-10-05T02:09:07.000000Z", + starts_at: "2023-12-08T02:15:48.000000Z", + discount_upper_limit: 5005, + description: "SkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMto", + name: "UIDYTTb9YLUK2ZY6omFZc6c5lA" )) assert response.code != "400" end def test_update_coupon_27 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 8252, - discount_percentage: 7917.0, - is_public: true, - is_hidden: true, - is_disabled: false, - display_ends_at: "2022-08-08T12:14:12.000000Z", - display_starts_at: "2023-01-03T03:55:08.000000Z", - ends_at: "2023-08-01T12:14:38.000000Z", - starts_at: "2022-11-25T20:14:21.000000Z", - discount_upper_limit: 3684, - description: "8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2", - name: "Y3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 12, + discount_percentage: 8509.0, + is_public: false, + is_hidden: false, + is_disabled: true, + display_ends_at: "2020-08-30T08:48:08.000000Z", + display_starts_at: "2021-09-21T00:38:03.000000Z", + ends_at: "2020-04-10T21:28:19.000000Z", + starts_at: "2021-09-25T19:01:40.000000Z", + discount_upper_limit: 4506, + description: "q2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprV", + name: "jpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEP" )) assert response.code != "400" end def test_update_coupon_28 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 4076, - discount_percentage: 30.0, - code: "qy4kEKJ1Q", - is_public: false, - is_hidden: false, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 3685, + discount_percentage: 6590.0, + code: "2hgv", + is_public: true, + is_hidden: true, is_disabled: false, - display_ends_at: "2022-10-27T14:43:36.000000Z", - display_starts_at: "2023-05-01T01:15:06.000000Z", - ends_at: "2022-06-15T14:56:21.000000Z", - starts_at: "2023-01-18T20:31:52.000000Z", - discount_upper_limit: 2992, - description: "ZpOWKljojyXNatscwZjWuBesyFuc4sWKFJnLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlk", - name: "s1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSH" + display_ends_at: "2020-03-13T13:03:37.000000Z", + display_starts_at: "2023-11-12T11:03:23.000000Z", + ends_at: "2023-02-02T19:41:41.000000Z", + starts_at: "2022-04-18T12:07:01.000000Z", + discount_upper_limit: 6784, + description: "C8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uD", + name: "mHdc" )) assert response.code != "400" end def test_update_coupon_29 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 6507, - discount_percentage: 4332.0, - usage_limit: 3122, - code: "NjfKFk3x", + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 2411, + discount_percentage: 4822.0, + usage_limit: 7775, + code: "hdalQ", is_public: false, - is_hidden: true, - is_disabled: true, - display_ends_at: "2020-09-22T13:07:47.000000Z", - display_starts_at: "2020-06-18T03:09:02.000000Z", - ends_at: "2020-03-30T20:40:11.000000Z", - starts_at: "2022-10-24T02:13:06.000000Z", - discount_upper_limit: 581, - description: "uZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2Q", - name: "qNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaYeWynmUQkGZMrt25VWYHR7PmuYOuy85" + is_hidden: false, + is_disabled: false, + display_ends_at: "2020-03-05T05:04:49.000000Z", + display_starts_at: "2021-05-01T03:10:23.000000Z", + ends_at: "2022-01-23T07:47:16.000000Z", + starts_at: "2023-11-15T16:18:24.000000Z", + discount_upper_limit: 4771, + description: "vG", + name: "2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPA" )) assert response.code != "400" end def test_update_coupon_30 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 9357, - discount_percentage: 273.0, - min_amount: 4197, - usage_limit: 4929, - code: "Ni4DCh9E1p", + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 2618, + discount_percentage: 1461.0, + min_amount: 7764, + usage_limit: 9563, + code: "OS", is_public: false, is_hidden: false, - is_disabled: false, - display_ends_at: "2021-11-12T14:41:44.000000Z", - display_starts_at: "2021-10-07T02:21:04.000000Z", - ends_at: "2020-06-09T11:54:21.000000Z", - starts_at: "2023-07-25T06:56:05.000000Z", - discount_upper_limit: 1921, - description: "vY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xx", - name: "Ci9aS7pUn8sHDE4F3kcf0hr" + is_disabled: true, + display_ends_at: "2023-10-04T09:18:47.000000Z", + display_starts_at: "2021-03-19T07:04:47.000000Z", + ends_at: "2021-03-15T19:29:25.000000Z", + starts_at: "2023-11-02T03:44:54.000000Z", + discount_upper_limit: 9677, + description: "TQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhX", + name: "VGg9hnQl" )) assert response.code != "400" end def test_update_coupon_31 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 1617, - discount_percentage: 993.0, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 3837, + discount_percentage: 9237.0, is_shop_specified: false, - min_amount: 6258, - usage_limit: 4233, - code: "ThS8KkZC", - is_public: false, + min_amount: 2971, + usage_limit: 3173, + code: "nzuwrO3g", + is_public: true, is_hidden: true, is_disabled: true, - display_ends_at: "2020-04-10T21:59:54.000000Z", - display_starts_at: "2023-01-27T17:43:26.000000Z", - ends_at: "2022-02-24T15:14:25.000000Z", - starts_at: "2020-11-24T16:48:56.000000Z", - discount_upper_limit: 479, - description: "SP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH", - name: "9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoa" + display_ends_at: "2023-09-29T16:28:55.000000Z", + display_starts_at: "2024-02-05T02:12:44.000000Z", + ends_at: "2023-01-03T22:49:51.000000Z", + starts_at: "2023-10-30T17:12:13.000000Z", + discount_upper_limit: 4197, + description: "9eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcI", + name: "PxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwj" )) assert response.code != "400" end def test_update_coupon_32 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 2731, - discount_percentage: 3077.0, - available_shop_ids: ["e0581ca4-3554-4c5e-ad56-9e9e0de1fa58", "e5178e30-4f58-4f71-b14c-12075b19deb2", "b312d144-581b-4688-bdc4-fd436355c0e4"], + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 29, + discount_percentage: 4935.0, + available_shop_ids: ["d231367f-68ff-43b0-b526-6e2572c35888", "87a12fc1-966e-4b30-bd8f-58e937341919", "0c786ac0-cd71-4249-bc24-d2b2b9239992", "894a1bde-ac62-4c35-95f2-9478fa61f79b", "2e19ffa5-1818-4ef4-bac7-e24f9034cd0c", "928cb198-b62b-4a22-9a68-b19242bd831c", "2fe53400-4c18-464b-8a4d-00cbef8c1f2a", "249fff5b-f0bf-44f7-ba04-4ea4af60577a", "5e60c0a7-1676-4159-b362-ff4233e2ba7a"], is_shop_specified: true, - min_amount: 3143, - usage_limit: 7158, - code: "9Q", - is_public: false, + min_amount: 7833, + usage_limit: 612, + code: "bpAqcWN", + is_public: true, is_hidden: false, - is_disabled: false, - display_ends_at: "2020-07-23T09:39:26.000000Z", - display_starts_at: "2021-11-29T08:02:08.000000Z", - ends_at: "2023-11-09T10:42:06.000000Z", - starts_at: "2022-02-25T16:39:41.000000Z", - discount_upper_limit: 7405, - description: "X2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SCFuFJVqCc62CsLVYKPyOwySSjaFxy", - name: "00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamO" + is_disabled: true, + display_ends_at: "2021-12-01T17:32:06.000000Z", + display_starts_at: "2020-02-26T13:30:26.000000Z", + ends_at: "2021-12-06T11:36:14.000000Z", + starts_at: "2023-07-14T15:15:48.000000Z", + discount_upper_limit: 1236, + description: "sv2Llex1ej", + name: "G" )) assert response.code != "400" end def test_update_coupon_33 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_amount: 8605, - discount_percentage: 9224.0, - storage_id: "1320b152-d5ed-4fd7-a373-0cf317deafa4", - available_shop_ids: ["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"], - is_shop_specified: true, - min_amount: 122, - usage_limit: 6460, - code: "QpgEVips", - is_public: false, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_amount: 2430, + discount_percentage: 539.0, + storage_id: "19ad31a3-c65d-4cfc-bc05-05320e4a4818", + available_shop_ids: ["5cc52f75-6ee7-433c-81fa-b8021f1328df", "cc088d8f-54af-4247-862b-dbf8bbd2ad75", "f4728f8a-6938-421e-b153-d07876ee25ff", "d22e2409-829f-4f1e-a535-3c14306a3830", "ad51620f-4f59-4a66-8c5b-48325eaf8c8c", "31fdfc82-724d-4bb7-a01e-86a890f2a7af"], + is_shop_specified: false, + min_amount: 4767, + usage_limit: 8653, + code: "zENOSGlzU", + is_public: true, is_hidden: true, is_disabled: true, - display_ends_at: "2022-04-24T23:41:04.000000Z", - display_starts_at: "2022-08-27T01:34:21.000000Z", - ends_at: "2021-11-30T06:35:29.000000Z", - starts_at: "2020-09-02T19:20:31.000000Z", - discount_upper_limit: 4207, - description: "pS", - name: "XVL1U8vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS" + display_ends_at: "2020-10-16T03:18:18.000000Z", + display_starts_at: "2021-08-15T23:39:31.000000Z", + ends_at: "2022-07-26T17:41:15.000000Z", + starts_at: "2021-01-19T22:16:19.000000Z", + discount_upper_limit: 7691, + description: "P2rJ14YHcAJKWHCf11oIN1", + name: "hxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiH" )) assert response.code != "400" end def test_update_coupon_34 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 9396.0 + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 9135.0 )) assert response.code != "400" end def test_update_coupon_35 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 1788.0, - name: "zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2F" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 5311.0, + name: "kNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6" )) assert response.code != "400" end def test_update_coupon_36 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 4050.0, - description: "RBCtapsc2OJEtIYHTkPMCnHWRh", - name: "K3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 9697.0, + description: "odX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7e", + name: "4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9F" )) assert response.code != "400" end def test_update_coupon_37 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 3886.0, - discount_upper_limit: 8232, - description: "J6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8", - name: "v3XGoxNYBzQF26RR" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 7493.0, + discount_upper_limit: 9167, + description: "wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHU", + name: "Cw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlk" )) assert response.code != "400" end def test_update_coupon_38 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2030.0, - starts_at: "2021-07-18T03:46:21.000000Z", - discount_upper_limit: 1227, - description: "M2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxO", - name: "gNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 1372.0, + starts_at: "2022-11-01T12:39:10.000000Z", + discount_upper_limit: 3400, + description: "yCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0l", + name: "bP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4" )) assert response.code != "400" end def test_update_coupon_39 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 4342.0, - ends_at: "2023-10-08T17:08:20.000000Z", - starts_at: "2022-08-07T16:45:00.000000Z", - discount_upper_limit: 7091, - description: "yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4s", - name: "tkoPc7UXRyRiV8P" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 8815.0, + ends_at: "2020-11-01T22:01:57.000000Z", + starts_at: "2024-02-08T12:02:06.000000Z", + discount_upper_limit: 9632, + description: "di9E", + name: "p8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATb" )) assert response.code != "400" end def test_update_coupon_40 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2986.0, - display_starts_at: "2020-03-03T08:39:56.000000Z", - ends_at: "2020-11-03T02:57:26.000000Z", - starts_at: "2021-10-24T06:28:19.000000Z", - discount_upper_limit: 7304, - description: "x53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m5fgOCupwcIPxBzh", - name: "bkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKN" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 7953.0, + display_starts_at: "2023-03-05T11:56:25.000000Z", + ends_at: "2021-08-30T00:22:34.000000Z", + starts_at: "2021-05-04T11:50:03.000000Z", + discount_upper_limit: 9900, + description: "xUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQ", + name: "pcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcL" )) assert response.code != "400" end def test_update_coupon_41 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 6856.0, - display_ends_at: "2020-12-11T15:26:11.000000Z", - display_starts_at: "2021-08-21T17:19:13.000000Z", - ends_at: "2022-11-22T01:22:29.000000Z", - starts_at: "2021-08-31T06:48:48.000000Z", - discount_upper_limit: 1130, - description: "8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNT", - name: "sv2Llex1ej" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 2637.0, + display_ends_at: "2021-03-17T16:04:27.000000Z", + display_starts_at: "2023-09-15T20:54:07.000000Z", + ends_at: "2023-06-06T18:55:43.000000Z", + starts_at: "2022-03-18T22:39:17.000000Z", + discount_upper_limit: 2550, + description: "Dw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtT", + name: "wE1P6w3jvuc6WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3" )) assert response.code != "400" end def test_update_coupon_42 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 7424.0, - is_disabled: false, - display_ends_at: "2021-07-22T17:27:26.000000Z", - display_starts_at: "2023-10-23T01:56:33.000000Z", - ends_at: "2022-02-25T09:09:49.000000Z", - starts_at: "2022-12-09T07:26:19.000000Z", - discount_upper_limit: 1629, - description: "2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3", - name: "OsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnU" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 6318.0, + is_disabled: true, + display_ends_at: "2023-05-08T02:47:03.000000Z", + display_starts_at: "2022-09-12T11:00:51.000000Z", + ends_at: "2024-04-05T10:59:18.000000Z", + starts_at: "2024-03-18T17:01:28.000000Z", + discount_upper_limit: 7298, + description: "qik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709", + name: "a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBL" )) assert response.code != "400" end def test_update_coupon_43 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2045.0, - is_hidden: true, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 7031.0, + is_hidden: false, is_disabled: true, - display_ends_at: "2023-03-21T12:04:18.000000Z", - display_starts_at: "2022-05-30T04:00:12.000000Z", - ends_at: "2022-04-06T02:14:53.000000Z", - starts_at: "2021-12-10T15:31:13.000000Z", - discount_upper_limit: 8278, - description: "97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQP", - name: "L0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM0" + display_ends_at: "2022-03-02T07:41:45.000000Z", + display_starts_at: "2023-12-03T06:41:06.000000Z", + ends_at: "2021-06-07T00:15:13.000000Z", + starts_at: "2021-01-15T19:50:55.000000Z", + discount_upper_limit: 7200, + description: "uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWF", + name: "roFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQnoMXPxIs0d6X24reGH" )) assert response.code != "400" end def test_update_coupon_44 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 5926.0, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 892.0, is_public: true, is_hidden: false, is_disabled: true, - display_ends_at: "2024-01-01T04:51:29.000000Z", - display_starts_at: "2023-12-19T12:56:00.000000Z", - ends_at: "2020-01-25T17:00:23.000000Z", - starts_at: "2020-08-27T08:24:51.000000Z", - discount_upper_limit: 2265, - description: "kecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIvC", - name: "pCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8" + display_ends_at: "2020-02-28T10:56:54.000000Z", + display_starts_at: "2021-02-19T15:05:37.000000Z", + ends_at: "2020-03-07T03:03:13.000000Z", + starts_at: "2023-01-23T18:09:11.000000Z", + discount_upper_limit: 2637, + description: "A1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8Wbqqw", + name: "jfwNPVeBo8" )) assert response.code != "400" end def test_update_coupon_45 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2345.0, - code: "cd", + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 1381.0, + code: "gFulBO0t", is_public: true, - is_hidden: true, + is_hidden: false, is_disabled: true, - display_ends_at: "2022-01-25T22:26:12.000000Z", - display_starts_at: "2020-01-27T18:47:21.000000Z", - ends_at: "2023-07-17T16:34:48.000000Z", - starts_at: "2020-09-13T22:04:01.000000Z", - discount_upper_limit: 4885, - description: "1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQN", - name: "H3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsG" + display_ends_at: "2022-06-04T22:42:35.000000Z", + display_starts_at: "2022-09-30T18:23:57.000000Z", + ends_at: "2021-09-29T07:57:54.000000Z", + starts_at: "2020-09-27T18:26:40.000000Z", + discount_upper_limit: 3644, + description: "J93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5", + name: "Ru3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV7" )) assert response.code != "400" end def test_update_coupon_46 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 2030.0, - usage_limit: 3614, - code: "PtZOQ7w", - is_public: true, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 9014.0, + usage_limit: 7860, + code: "KT9oH", + is_public: false, is_hidden: false, - is_disabled: false, - display_ends_at: "2020-08-09T06:07:33.000000Z", - display_starts_at: "2022-07-26T14:13:54.000000Z", - ends_at: "2022-10-02T01:58:02.000000Z", - starts_at: "2023-05-23T01:51:38.000000Z", - discount_upper_limit: 209, - description: "MzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5s", - name: "OcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNe" + is_disabled: true, + display_ends_at: "2022-06-25T23:11:28.000000Z", + display_starts_at: "2020-07-19T01:57:02.000000Z", + ends_at: "2020-05-28T10:36:37.000000Z", + starts_at: "2020-10-03T18:38:41.000000Z", + discount_upper_limit: 601, + description: "OU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCeP", + name: "kLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vl" )) assert response.code != "400" end def test_update_coupon_47 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 8824.0, - min_amount: 5682, - usage_limit: 3583, - code: "B", - is_public: false, - is_hidden: false, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 5321.0, + min_amount: 5092, + usage_limit: 1910, + code: "dIMbz7w", + is_public: true, + is_hidden: true, is_disabled: true, - display_ends_at: "2021-08-26T15:14:52.000000Z", - display_starts_at: "2020-04-26T05:03:43.000000Z", - ends_at: "2020-03-19T14:35:15.000000Z", - starts_at: "2023-05-13T15:00:56.000000Z", - discount_upper_limit: 4194, - description: "lTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs", - name: "D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6" + display_ends_at: "2020-04-10T02:03:01.000000Z", + display_starts_at: "2022-05-04T15:41:10.000000Z", + ends_at: "2023-09-08T00:34:16.000000Z", + starts_at: "2024-03-24T09:43:18.000000Z", + discount_upper_limit: 2959, + description: "XoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N", + name: "8CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H" )) assert response.code != "400" end def test_update_coupon_48 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 5367.0, + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 7956.0, is_shop_specified: false, - min_amount: 522, - usage_limit: 947, - code: "jv", + min_amount: 434, + usage_limit: 4842, + code: "Nm", is_public: false, - is_hidden: true, - is_disabled: false, - display_ends_at: "2022-12-21T03:52:49.000000Z", - display_starts_at: "2021-06-29T07:22:40.000000Z", - ends_at: "2023-06-08T17:17:20.000000Z", - starts_at: "2022-06-26T07:30:54.000000Z", - discount_upper_limit: 520, - description: "WVynWZlMwTGtLKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md", - name: "8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYw" + is_hidden: false, + is_disabled: true, + display_ends_at: "2021-08-20T19:26:44.000000Z", + display_starts_at: "2022-12-12T04:54:08.000000Z", + ends_at: "2023-06-09T04:27:47.000000Z", + starts_at: "2022-02-03T16:38:48.000000Z", + discount_upper_limit: 9279, + description: "TezTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusa", + name: "N4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIw" )) assert response.code != "400" end def test_update_coupon_49 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 3664.0, - available_shop_ids: ["99cf987e-da3a-45da-95b5-5fad8f958ade", "9a76d1c7-07db-4714-b96f-48892c7f1d82", "f8818ddf-c183-4959-9986-dea8ac560563", "180914e7-edd0-41d0-899a-3efcfe0e54ae"], - is_shop_specified: true, - min_amount: 6579, - usage_limit: 6318, - code: "chqik", + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 2655.0, + available_shop_ids: ["24d1ed4d-a4d8-4115-87a1-d775b68bbed0", "8ce9f78b-18c3-4708-b26d-73642e6afdd5", "35d1f5a9-163b-40c4-9b78-390620f7809a"], + is_shop_specified: false, + min_amount: 2781, + usage_limit: 9261, + code: "gDFfFvOJ", is_public: false, is_hidden: false, - is_disabled: false, - display_ends_at: "2023-03-17T04:01:58.000000Z", - display_starts_at: "2023-01-02T11:21:04.000000Z", - ends_at: "2023-07-15T18:38:42.000000Z", - starts_at: "2020-07-09T19:15:58.000000Z", - discount_upper_limit: 5457, - description: "J7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78", - name: "CpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRr" + is_disabled: true, + display_ends_at: "2022-08-30T06:06:55.000000Z", + display_starts_at: "2022-04-01T04:16:22.000000Z", + ends_at: "2022-01-10T04:18:46.000000Z", + starts_at: "2020-09-06T00:39:11.000000Z", + discount_upper_limit: 3877, + description: "c8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwIsUcSmvb4GOUqCz9cGDIhlPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEu", + name: "mRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b19" )) assert response.code != "400" end def test_update_coupon_50 response = $client.send(Pokepay::Request::UpdateCoupon.new( - "4cf0ab40-fbbf-4ffc-930b-1acb73e872ab", - discount_percentage: 4465.0, - storage_id: "ce3bcc09-acfc-4779-b346-1ceff62df628", - available_shop_ids: ["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"], - is_shop_specified: true, - min_amount: 9809, - usage_limit: 3094, - code: "TkmfS", - is_public: false, - is_hidden: false, - is_disabled: true, - display_ends_at: "2023-07-03T10:11:19.000000Z", - display_starts_at: "2021-07-30T18:26:40.000000Z", - ends_at: "2022-09-30T10:55:01.000000Z", - starts_at: "2022-06-20T02:34:59.000000Z", - discount_upper_limit: 710, - description: "mTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLq", - name: "eRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWF" + "e5d73212-b5a9-4986-a0bf-0261113d0f7b", + discount_percentage: 7216.0, + storage_id: "fb0f0858-4866-455f-b2fb-1b7c79b47ea2", + available_shop_ids: ["11e9cdf9-01c8-4b13-9e65-e512e63fdec1", "ffb41f80-aba3-44f9-9942-08ffe2d3283c", "fde81efe-d195-4ff1-8917-472e1e4b72c9", "62d4773e-ccf9-4753-9397-733a6ad44b4d", "e4d297df-70e9-4859-8c44-8eb354759d12", "6897b8a9-91bd-4c99-9ceb-aef1ee420afc"], + is_shop_specified: false, + min_amount: 3034, + usage_limit: 878, + code: "pepfEmpSi", + is_public: true, + is_hidden: true, + is_disabled: false, + display_ends_at: "2021-12-06T15:55:09.000000Z", + display_starts_at: "2021-06-03T16:35:32.000000Z", + ends_at: "2023-01-04T22:44:22.000000Z", + starts_at: "2024-02-14T12:15:32.000000Z", + discount_upper_limit: 2885, + description: "RWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJ", + name: "GPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9Iq" )) assert response.code != "400" end