From 869af7fb17bf03e55ca3453ffffd59927465f90e Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Mon, 29 Sep 2025 09:51:51 +0000 Subject: [PATCH 1/3] generate --- docs/README.md | 4 +- docs/account.md | 8 +- docs/bank_pay.md | 10 +- docs/bill.md | 225 ++- docs/bulk.md | 8 +- docs/campaign.md | 84 +- docs/cashtray.md | 27 +- docs/check.md | 61 +- docs/coupon.md | 72 +- docs/customer.md | 54 +- docs/event.md | 20 +- docs/organization.md | 10 +- docs/private_money.md | 8 +- docs/seven_bank_atm_session.md | 2 +- docs/shop.md | 40 +- docs/transaction.md | 168 +- docs/transfer.md | 34 +- docs/webhook.md | 8 +- init.php | 4 +- .../CreatePaymentTransactionWithBill.php | 39 + .../{DeleteBanks.php => DeleteBank.php} | 2 +- lib/Request/GetBill.php | 36 + partner.yaml | 138 +- tests/ActivateUserDeviceTest.php | 2 +- tests/BulkCreateTransactionTest.php | 24 +- tests/CancelCashtrayTest.php | 2 +- tests/CreateBankTest.php | 30 +- tests/CreateBankTopupTransactionTest.php | 22 +- tests/CreateBillTest.php | 18 +- tests/CreateCampaignTest.php | 1617 +++++++++-------- tests/CreateCashtrayTest.php | 24 +- tests/CreateCheckTest.php | 270 +-- tests/CreateCouponTest.php | 1106 +++++------ tests/CreateCpmTransactionTest.php | 62 +- tests/CreateCustomerAccountTest.php | 20 +- tests/CreateExchangeTransactionTest.php | 30 +- tests/CreateExternalTransactionTest.php | 81 +- tests/CreatePaymentTransactionTest.php | 116 +- .../CreatePaymentTransactionWithBillTest.php | 83 + tests/CreateTopupTransactionTest.php | 92 +- tests/CreateTopupTransactionWithCheckTest.php | 10 +- tests/CreateTransactionTest.php | 50 +- tests/CreateTransactionWithCashtrayTest.php | 18 +- tests/CreateTransferTransactionTest.php | 42 +- tests/CreateUserDeviceTest.php | 4 +- tests/CreateWebhookTest.php | 2 +- ...DeleteBanksTest.php => DeleteBankTest.php} | 10 +- tests/DeleteWebhookTest.php | 2 +- tests/GetBillTest.php | 22 + tests/GetBulkTransactionTest.php | 2 +- tests/GetCampaignTest.php | 2 +- tests/GetCashtrayTest.php | 2 +- tests/GetCheckTest.php | 2 +- tests/GetCouponTest.php | 2 +- tests/GetCpmTokenTest.php | 2 +- tests/GetCustomerAccountsTest.php | 30 +- .../GetExternalTransactionByRequestIdTest.php | 2 +- ...tPrivateMoneyOrganizationSummariesTest.php | 8 +- tests/GetSevenBankATMSessionTest.php | 2 +- tests/GetShopAccountsTest.php | 38 +- tests/GetTransactionByRequestIdTest.php | 2 +- tests/GetTransactionTest.php | 2 +- tests/GetUserDeviceTest.php | 2 +- tests/ListAccountBalancesTest.php | 4 +- tests/ListAccountExpiredBalancesTest.php | 22 +- tests/ListBanksTest.php | 6 +- tests/ListBillTransactionsTest.php | 230 +-- tests/ListBillsTest.php | 178 +- tests/ListBulkTransactionJobsTest.php | 12 +- tests/ListCampaignsTest.php | 40 +- tests/ListChecksTest.php | 138 +- tests/ListCouponsTest.php | 90 +- tests/ListCustomerTransactionsTest.php | 8 +- tests/ListOrganizationsTest.php | 26 +- tests/ListTransactionsTest.php | 188 +- tests/ListTransactionsV2Test.php | 236 +-- tests/ListTransfersTest.php | 206 +-- tests/ListTransfersV2Test.php | 232 +-- tests/ListWebhooksTest.php | 6 +- tests/RefundExternalTransactionTest.php | 6 +- tests/RefundTransactionTest.php | 12 +- tests/RequestUserStatsTest.php | 4 +- tests/TerminateUserStatsTest.php | 2 +- tests/UpdateBillTest.php | 16 +- tests/UpdateCampaignTest.php | 1443 +++++++-------- tests/UpdateCashtrayTest.php | 20 +- tests/UpdateCheckTest.php | 122 +- tests/UpdateCouponTest.php | 982 +++++----- tests/UpdateWebhookTest.php | 14 +- .../tdsl/CreateNewCustomerWithAccountTest.php | 76 + tests/tdsl/CreateOrganizationTest.php | 8 +- tests/tdsl/RegisterBankAccount.php | 45 + 92 files changed, 5021 insertions(+), 4270 deletions(-) create mode 100644 lib/Request/CreatePaymentTransactionWithBill.php rename lib/Request/{DeleteBanks.php => DeleteBank.php} (96%) create mode 100644 lib/Request/GetBill.php create mode 100644 tests/CreatePaymentTransactionWithBillTest.php rename tests/{DeleteBanksTest.php => DeleteBankTest.php} (65%) create mode 100644 tests/GetBillTest.php create mode 100644 tests/tdsl/CreateNewCustomerWithAccountTest.php create mode 100644 tests/tdsl/RegisterBankAccount.php diff --git a/docs/README.md b/docs/README.md index 70df503b..ea4fe68d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -145,7 +145,9 @@ while (true) { ### Bill - [ListBills](./bill.md#list-bills): 支払いQRコード一覧を表示する - [CreateBill](./bill.md#create-bill): 支払いQRコードの発行 +- [GetBill](./bill.md#get-bill): 支払いQRコードの表示 - [UpdateBill](./bill.md#update-bill): 支払いQRコードの更新 +- [CreatePaymentTransactionWithBill](./bill.md#create-payment-transaction-with-bill): 支払いQRコードを読み取ることで支払いをする ### Cashtray - [CreateTransactionWithCashtray](./cashtray.md#create-transaction-with-cashtray): CashtrayQRコードを読み取ることで取引する @@ -220,7 +222,7 @@ while (true) { - [ActivateUserDevice](./user_device.md#activate-user-device): デバイスの有効化 ### BankPay -- [DeleteBanks](./bank_pay.md#delete-banks): 銀行口座の削除 +- [DeleteBank](./bank_pay.md#delete-bank): 銀行口座の削除 - [ListBanks](./bank_pay.md#list-banks): 登録した銀行の一覧 - [CreateBank](./bank_pay.md#create-bank): 銀行口座の登録 - [CreateBankTopupTransaction](./bank_pay.md#create-bank-topup-transaction): 銀行からのチャージ diff --git a/docs/account.md b/docs/account.md index 9dff047c..f6f909b1 100644 --- a/docs/account.md +++ b/docs/account.md @@ -8,8 +8,8 @@ $request = new Request\ListUserAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userId: ユーザーID [ - 'page' => 4648, // ページ番号 - 'per_page' => 3456 // 1ページ分の取引数 + 'page' => 3215, // ページ番号 + 'per_page' => 4705 // 1ページ分の取引数 ] ); ``` @@ -75,8 +75,8 @@ $request = new Request\CreateUserAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userId: ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'name' => "aKHSf5htPpycWdWsbduWBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNiX5kI", // ウォレット名 - 'external_id' => "XisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM", // 外部ID + 'name' => "r0sMpkdiHOOwl5xIQiAP4UplfuFUQK5yc0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39Scas", // ウォレット名 + 'external_id' => "ZnA58jo0hnz", // 外部ID 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ ] ); diff --git a/docs/bank_pay.md b/docs/bank_pay.md index d2304dec..100b79b2 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -2,12 +2,12 @@ BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 - -## DeleteBanks: 銀行口座の削除 + +## DeleteBank: 銀行口座の削除 銀行口座を削除します ```PHP -$request = new Request\DeleteBanks( +$request = new Request\DeleteBank( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ); @@ -113,7 +113,7 @@ $request = new Request\CreateBank( "", // callbackUrl: コールバックURL "ポケペイタロウ", // kana: ユーザーの氏名 (片仮名で指定) [ - 'email' => "lahlWYdbEe@vpLk.com", // ユーザーのメールアドレス + 'email' => "CQCIIRDiJ5@EWSp.com", // ユーザーのメールアドレス 'birthdate' => "19901142" // 生年月日 ] ); @@ -208,7 +208,7 @@ $request = new Request\CreateBank( $request = new Request\CreateBankTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 2171, // amount: チャージ金額 + 8799, // amount: チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // bankId: 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // requestId: リクエストID [ diff --git a/docs/bill.md b/docs/bill.md index c0e6381f..ae9801d4 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -8,18 +8,18 @@ ```PHP $request = new Request\ListBills( [ - 'page' => 7636, // ページ番号 - 'per_page' => 1814, // 1ページの表示数 - 'bill_id' => "b6qmrSFaDi", // 支払いQRコードのID + 'page' => 8556, // ページ番号 + 'per_page' => 1583, // 1ページの表示数 + 'bill_id' => "xkj3y6Qj", // 支払いQRコードのID 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 'organization_code' => "Y7oV-oTN-a9lI9Q1-ru-C-b-aF--yyd", // 組織コード + 'organization_code' => "-1j72CMY-6ss", // 組織コード 'description' => "test bill", // 取引説明文 - 'created_from' => "2022-11-25T08:24:38.000000Z", // 作成日時(起点) - 'created_to' => "2023-03-23T22:47:05.000000Z", // 作成日時(終点) + 'created_from' => "2021-10-15T19:09:54.000000Z", // 作成日時(起点) + 'created_to' => "2021-09-18T07:26:49.000000Z", // 作成日時(終点) 'shop_name' => "bill test shop1", // 店舗名 'shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - 'lower_limit_amount' => 99, // 金額の範囲によるフィルタ(下限) - 'upper_limit_amount' => 9134, // 金額の範囲によるフィルタ(上限) + 'lower_limit_amount' => 976, // 金額の範囲によるフィルタ(下限) + 'upper_limit_amount' => 3197, // 金額の範囲によるフィルタ(上限) 'is_disabled' => FALSE // 支払いQRコードが無効化されているかどうか ] ); @@ -214,7 +214,7 @@ $request = new Request\CreateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 支払い先(受け取り人)の店舗ID [ - 'amount' => 4964.0, // 支払い額 + 'amount' => 4159.0, // 支払い額 'description' => "test bill" // 説明文(アプリ上で取引の説明文として表示される) ] ); @@ -227,6 +227,8 @@ $request = new Request\CreateBill( 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 + ```json { @@ -278,6 +280,7 @@ $request = new Request\CreateBill( ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameter_bill_amount_or_range_exceeding_transfer_limit|支払いQRコードの金額がマネーの取引可能金額の上限を超えています|The input amount is exceeding the private money's limit for transfer| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -288,6 +291,42 @@ $request = new Request\CreateBill( +--- + + + +## GetBill: 支払いQRコードの表示 +支払いQRコードの内容を表示します。 + +```PHP +$request = new Request\GetBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // billId: 支払いQRコードのID +); +``` + + + +### Parameters +**`bill_id`** + + +表示する支払いQRコードのIDです。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + + + +成功したときは +[Bill](./responses.md#bill) +を返します + + + --- @@ -299,7 +338,7 @@ $request = new Request\CreateBill( $request = new Request\UpdateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // billId: 支払いQRコードのID [ - 'amount' => 279.0, // 支払い額 + 'amount' => 3631.0, // 支払い額 'description' => "test bill", // 説明文 'is_disabled' => FALSE // 無効化されているかどうか ] @@ -324,7 +363,7 @@ $request = new Request\UpdateBill( **`amount`** -支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 +支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 ```json { @@ -368,4 +407,168 @@ $request = new Request\UpdateBill( --- + +## CreatePaymentTransactionWithBill: 支払いQRコードを読み取ることで支払いをする +通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 + +エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 +支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + + +```PHP +$request = new Request\CreatePaymentTransactionWithBill( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // billId: 支払いQRコードのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーのID + [ + 'metadata' => "{\"key\":\"value\"}", // 取引メタデータ + 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + 'strategy' => "point-preferred" // 支払い時の残高消費方式 + ] +); +``` + + + +### Parameters +**`bill_id`** + + +支払いQRコードのIDです。 + +QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`customer_id`** + + +エンドユーザーIDです。 + +支払いを行うエンドユーザーを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`metadata`** + + +取引作成時に指定されるメタデータです。 + +任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + +```json +{ + "type": "string", + "format": "json" +} +``` + +**`request_id`** + + +取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + +取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + +リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +**`strategy`** + + +支払い時に残高がどのように消費されるかを指定します。 +デフォルトでは point-preferred (ポイント優先)が採用されます。 + +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- money-only: マネー残高のみから消費され、ポイント残高は使われません + +マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + +```json +{ + "type": "string", + "enum": [ + "point-preferred", + "money-only" + ] +} +``` + + + +成功したときは +[TransactionDetail](./responses.md#transaction-detail) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|disabled_bill|支払いQRコードが無効です|Bill is disabled| +|422|customer_user_not_found||The customer user is not found| +|422|bill_not_found|支払いQRコードが見つかりません|Bill not found| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| +|422|account_can_not_topup|この店舗からはチャージできません|account can not topup| +|422|private_money_closed|このマネーは解約されています|This money was closed| +|422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| +|422|account_restricted|特定のアカウントの支払いに制限されています|The account is restricted to pay for a specific account| +|422|account_balance_not_enough|口座残高が不足してます|The account balance is not enough| +|422|c2c_transfer_not_allowed|このマネーではユーザ間マネー譲渡は利用できません|Customer to customer transfer is not available for this money| +|422|account_transfer_limit_exceeded|取引金額が上限を超えました|Too much amount to transfer| +|422|account_balance_exceeded|口座残高が上限を超えました|The account balance exceeded the limit| +|422|account_money_topup_transfer_limit_exceeded|マネーチャージ金額が上限を超えました|Too much amount to money topup transfer| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| +|422|coupon_unavailable_shop|このクーポンはこの店舗では使用できません。|This coupon is unavailable for this shop.| +|422|coupon_already_used|このクーポンは既に使用済みです。|This coupon is already used.| +|422|coupon_not_received|このクーポンは受け取られていません。|This coupon is not received.| +|422|coupon_not_sent|このウォレットに対して配信されていないクーポンです。|This coupon is not sent to this account yet.| +|422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| +|422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| +|422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|account_suspended|アカウントは停止されています|The account is suspended| +|422|account_closed|アカウントは退会しています|The account is closed| +|422|customer_account_not_found||The customer account is not found| +|422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| +|422|account_currency_mismatch|アカウント間で通貨が異なっています|Currency mismatch between accounts| +|422|account_pre_closed|アカウントは退会準備中です|The account is pre-closed| +|422|account_not_accessible|アカウントにアクセスできません|The account is not accessible by this user| +|422|terminal_is_invalidated|端末は無効化されています|The terminal is already invalidated| +|422|same_account_transaction|同じアカウントに送信しています|Sending to the same account| +|422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| +|422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| +|422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + diff --git a/docs/bulk.md b/docs/bulk.md index c0b28ea6..779080bc 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -6,11 +6,11 @@ CSVファイルから一括取引をします。 ```PHP $request = new Request\BulkCreateTransaction( - "CA1SM3xNEFCgQheyCbSnP7P0", // name: 一括取引タスク名 - "qnjQ", // content: 取引する情報のCSV - "BF0gNpyvaBHzjlAdXU9fbl4BElEfYJcTmiRo", // requestId: リクエストID + "dM7BVfn4iFY", // name: 一括取引タスク名 + "JJXfrDUn2Z", // content: 取引する情報のCSV + "5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O", // requestId: リクエストID [ - 'description' => "f0lb", // 一括取引の説明 + 'description' => "y0fQnXOgwkIth5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrP", // 一括取引の説明 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID ] ); diff --git a/docs/campaign.md b/docs/campaign.md index 7872b710..856c5a4f 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -10,9 +10,9 @@ $request = new Request\ListCampaigns( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'is_ongoing' => TRUE, // 現在適用可能なキャンペーンかどうか - 'available_from' => "2021-03-15T05:13:37.000000Z", // 指定された日時以降に適用可能期間が含まれているか - 'available_to' => "2020-05-19T16:46:43.000000Z", // 指定された日時以前に適用可能期間が含まれているか + 'is_ongoing' => FALSE, // 現在適用可能なキャンペーンかどうか + 'available_from' => "2021-03-09T15:48:28.000000Z", // 指定された日時以降に適用可能期間が含まれているか + 'available_to' => "2025-02-16T03:36:21.000000Z", // 指定された日時以前に適用可能期間が含まれているか 'page' => 1, // ページ番号 'per_page' => 20 // 1ページ分の取得数 ] @@ -124,49 +124,46 @@ $request = new Request\ListCampaigns( ```PHP $request = new Request\CreateCampaign( - "SSTgoxqh3aCnDQum7xlHp8mSoN73gaH3XPjunt8NgffostplBJ13qPcXVXQ9E7OqefuC0zsB8aQbgel1VXLZNhM7VCGfzH0EqAidHGV4baZPNRUSJ9iQNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVaS0Zi07XrJykFEWCqS7fIGsgSUetvzhcyY8O4aW8dV", // name: キャンペーン名 + "4qM5cyeftMbZhJuNsCdqVbAgLZQKQXblhvdQVC38rMOaKHSf5htPpycWdWsbduWBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNiX5kIXisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM5mHn7CA1SM3xNEFCgQheyCbSnP7P0SqnjQBF0gNpy", // name: キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - "2024-01-02T09:26:59.000000Z", // startsAt: キャンペーン開始日時 - "2023-10-23T09:06:16.000000Z", // endsAt: キャンペーン終了日時 - 7178, // priority: キャンペーンの適用優先度 - "external-transaction", // event: イベント種別 + "2021-02-16T22:13:10.000000Z", // startsAt: キャンペーン開始日時 + "2022-08-28T01:16:17.000000Z", // endsAt: キャンペーン終了日時 + 1602, // priority: キャンペーンの適用優先度 + "topup", // event: イベント種別 [ 'bear_point_shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID - 'description' => "nJI1LDT3BhMLUADblZz6ydgd6gveWK49xDzlQxtC3xLL1ERUl6NhqKkDSvghab5bsImY7PcHPZH7mHIXsOqC2xcKBYhL1xCfnaEpDLcNgoBzsuiKajpcQf4nuECfdVUoA", // キャンペーンの説明文 + 'description' => "zjlAdXU9fbl4BElEfYJcTmiRof0lbldCRsSSTgoxqh3aCnDQum7xlHp8mSoN73gaH3XPjunt8", // キャンペーンの説明文 'status' => "enabled", // キャンペーン作成時の状態 - 'point_expires_at' => "2021-04-01T04:55:54.000000Z", // ポイント有効期限(絶対日時指定) - 'point_expires_in_days' => 2289, // ポイント有効期限(相対日数指定) + 'point_expires_at' => "2024-11-27T06:37:01.000000Z", // ポイント有効期限(絶対日時指定) + 'point_expires_in_days' => 3900, // ポイント有効期限(相対日数指定) '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] ], // 取引金額ベースのポイント付与ルール '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"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] ], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - 'applicable_days_of_week' => [5, 4], // キャンペーンを適用する曜日 (複数指定) + 'applicable_days_of_week' => [0, 6, 1], // キャンペーンを適用する曜日 (複数指定) 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] -, ["from" => "12:00", "to" => "23:59"] -, ["from" => "12:00", "to" => "23:59"] ], // キャンペーンを適用する時間帯 (複数指定) - 'applicable_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト + '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' => 436, // キャンペーンを適用する1会計内の商品個数の下限 - 'minimum_number_of_amount' => 8055, // キャンペーンを適用する1会計内の商品総額の下限 - 'minimum_number_for_combination_purchase' => 8110, // 複数種類の商品を同時購入するときの商品種別数の下限 - 'exist_in_each_product_groups' => TRUE, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - 'max_point_amount' => 592, // キャンペーンによって付与されるポイントの上限 - 'max_total_point_amount' => 7323, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + 'minimum_number_of_products' => 8395, // キャンペーンを適用する1会計内の商品個数の下限 + 'minimum_number_of_amount' => 2612, // キャンペーンを適用する1会計内の商品総額の下限 + 'minimum_number_for_combination_purchase' => 3854, // 複数種類の商品を同時購入するときの商品種別数の下限 + 'exist_in_each_product_groups' => FALSE, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + 'max_point_amount' => 8413, // キャンペーンによって付与されるポイントの上限 + 'max_total_point_amount' => 3537, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 'dest_private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント付与先となるマネーID 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - 'budget_caps_amount' => 1445481494 // キャンペーン予算上限 + 'budget_caps_amount' => 1184953052 // キャンペーン予算上限 ] ); ``` @@ -957,45 +954,42 @@ $request = new Request\GetCampaign( $request = new Request\UpdateCampaign( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // campaignId: キャンペーンID [ - 'name' => "NVHFftM1EZPsd7jOCTvYgQYDODNTX3YU3qGQBWGDfb1wlkuiN7kKWKFoxKeA9tuL5LH4EHPGJy8ZSoJ1krFHQyhzGXerHPOPDvrwRgeSOaGF6stofVWAQmmxPEjbZK4rVxAUW7FWHkKwdg6799FNaTUuVqVNtvvxMPy8uYVQrlAwBlTLDHylYVoU0Lud9b5MHdM8UnuwQ7jNoaulXZjgrVDf", // キャンペーン名 - 'starts_at' => "2022-04-13T17:03:57.000000Z", // キャンペーン開始日時 - 'ends_at' => "2022-07-05T01:55:15.000000Z", // キャンペーン終了日時 - 'priority' => 2135, // キャンペーンの適用優先度 - 'event' => "external-transaction", // イベント種別 - 'description' => "ufNp0gAs9phyFh2aSmdruAKFNN9YCEWSULZdpylXeF6qvGwUl7ATMaf3NqLOcKmT", // キャンペーンの説明文 + 'name' => "cXVXQ9E7OqefuC0zsB8aQbgel1VXLZNhM7VCGfzH0EqAidHGV4baZPNRUSJ9iQNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVa", // キャンペーン名 + 'starts_at' => "2023-09-29T13:58:42.000000Z", // キャンペーン開始日時 + 'ends_at' => "2024-07-30T00:28:48.000000Z", // キャンペーン終了日時 + 'priority' => 339, // キャンペーンの適用優先度 + 'event' => "topup", // イベント種別 + 'description' => "07XrJykFEWCqS7fIGsgSUetvzhcyY8O4aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gveWK49xDzlQxtC3xLL1ERUl6NhqKkDSvghab5", // キャンペーンの説明文 'status' => "enabled", // キャンペーン作成時の状態 - 'point_expires_at' => "2022-07-05T20:54:20.000000Z", // ポイント有効期限(絶対日時指定) - 'point_expires_in_days' => 7950, // ポイント有効期限(相対日数指定) + 'point_expires_at' => "2025-08-15T22:34:10.000000Z", // ポイント有効期限(絶対日時指定) + 'point_expires_in_days' => 1572, // ポイント有効期限(相対日数指定) 'is_exclusive' => FALSE, // キャンペーンの重複設定 - 'subject' => "money", // ポイント付与の対象金額の種別 + '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] ], // 取引金額ベースのポイント付与ルール '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"] -, ["product_code" => "4912345678904", "classification_code" => "c123"] ], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - 'applicable_days_of_week' => [4, 0], // キャンペーンを適用する曜日 (複数指定) + 'applicable_days_of_week' => [5, 1], // キャンペーンを適用する曜日 (複数指定) 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] -, ["from" => "12:00", "to" => "23:59"] -, ["from" => "12:00", "to" => "23:59"] ], // キャンペーンを適用する時間帯 (複数指定) 'applicable_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト - 'blacklisted_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) - 'minimum_number_of_products' => 5862, // キャンペーンを適用する1会計内の商品個数の下限 - 'minimum_number_of_amount' => 4558, // キャンペーンを適用する1会計内の商品総額の下限 - 'minimum_number_for_combination_purchase' => 2580, // 複数種類の商品を同時購入するときの商品種別数の下限 - 'exist_in_each_product_groups' => FALSE, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ - 'max_point_amount' => 5242, // キャンペーンによって付与されるポイントの上限 - 'max_total_point_amount' => 370, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 + 'blacklisted_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + 'minimum_number_of_products' => 7396, // キャンペーンを適用する1会計内の商品個数の下限 + 'minimum_number_of_amount' => 608, // キャンペーンを適用する1会計内の商品総額の下限 + 'minimum_number_for_combination_purchase' => 4809, // 複数種類の商品を同時購入するときの商品種別数の下限 + 'exist_in_each_product_groups' => TRUE, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + 'max_point_amount' => 1683, // キャンペーンによって付与されるポイントの上限 + 'max_total_point_amount' => 9425, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - 'budget_caps_amount' => 395029731 // キャンペーン予算上限 + 'budget_caps_amount' => 136280606 // キャンペーン予算上限 ] ); ``` diff --git a/docs/cashtray.md b/docs/cashtray.md index 01d9c642..cbd4ccd7 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -1,5 +1,6 @@ # Cashtray Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 +店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 @@ -18,7 +19,7 @@ $request = new Request\CreateTransactionWithCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cashtrayId: Cashtray用QRコードのID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーのID [ - 'strategy' => "money-only", // 支払い時の残高消費方式 + 'strategy' => "point-preferred", // 支払い時の残高消費方式 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID ] ); @@ -106,7 +107,10 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|account_not_found|アカウントが見つかりません|The account is not found| |422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -116,8 +120,13 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -137,6 +146,8 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|cashtray_already_proceed|この決済QRコードは既に処理されています|Cashtray is already proceed| |422|cashtray_expired|この決済QRコードは有効期限が切れています|Cashtray is expired| |422|cashtray_already_canceled|この決済QRコードは既に無効化されています|Cashtray is already canceled| @@ -161,10 +172,10 @@ Cashtrayを作成します。 $request = new Request\CreateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID - 7538.0, // amount: 金額 + 1475.0, // amount: 金額 [ 'description' => "たい焼き(小倉)", // 取引履歴に表示する説明文 - 'expires_in' => 554 // 失効時間(秒) + 'expires_in' => 1576 // 失効時間(秒) ] ); ``` @@ -391,9 +402,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 $request = new Request\UpdateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cashtrayId: CashtrayのID [ - 'amount' => 4005.0, // 金額 + 'amount' => 6822.0, // 金額 'description' => "たい焼き(小倉)", // 取引履歴に表示する説明文 - 'expires_in' => 6934 // 失効時間(秒) + 'expires_in' => 2050 // 失効時間(秒) ] ); ``` diff --git a/docs/check.md b/docs/check.md index cf5d01ea..abea182c 100644 --- a/docs/check.md +++ b/docs/check.md @@ -5,7 +5,8 @@ `https://www-sandbox.pokepay.jp/checks/xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` -QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 +QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) +上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 @@ -14,18 +15,18 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマ ```PHP $request = new Request\ListChecks( [ - 'page' => 3692, // ページ番号 + 'page' => 9951, // ページ番号 'per_page' => 50, // 1ページの表示数 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 'organization_code' => "wbMvROWfUAh", // 組織コード - 'expires_from' => "2024-09-09T11:24:24.000000Z", // 有効期限の期間によるフィルター(開始時点) - 'expires_to' => "2022-12-06T17:13:26.000000Z", // 有効期限の期間によるフィルター(終了時点) - 'created_from' => "2024-05-06T13:53:28.000000Z", // 作成日時の期間によるフィルター(開始時点) - 'created_to' => "2022-11-02T00:56:58.000000Z", // 作成日時の期間によるフィルター(終了時点) + 'organization_code' => "avAje", // 組織コード + 'expires_from' => "2022-01-16T07:26:43.000000Z", // 有効期限の期間によるフィルター(開始時点) + 'expires_to' => "2023-01-23T18:06:17.000000Z", // 有効期限の期間によるフィルター(終了時点) + 'created_from' => "2020-07-10T17:37:20.000000Z", // 作成日時の期間によるフィルター(開始時点) + 'created_to' => "2022-11-13T13:22:30.000000Z", // 作成日時の期間によるフィルター(終了時点) 'issuer_shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID - 'description' => "0yJYgRGA", // チャージQRコードの説明文 + 'description' => "4zkA5dwR", // チャージQRコードの説明文 'is_onetime' => FALSE, // ワンタイムのチャージQRコードかどうか - 'is_disabled' => FALSE // 無効化されたチャージQRコードかどうか + 'is_disabled' => TRUE // 無効化されたチャージQRコードかどうか ] ); ``` @@ -222,13 +223,13 @@ $request = new Request\ListChecks( $request = new Request\CreateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: 送金元の店舗アカウントID [ - 'money_amount' => 6693.0, // 付与マネー額 - 'point_amount' => 2682.0, // 付与ポイント額 + 'money_amount' => 3442.0, // 付与マネー額 + 'point_amount' => 9537.0, // 付与ポイント額 'description' => "test check", // 説明文(アプリ上で取引の説明文として表示される) - 'is_onetime' => TRUE, // ワンタイムかどうかのフラグ - 'usage_limit' => 5905, // ワンタイムでない場合の最大読み取り回数 - 'expires_at' => "2021-04-21T02:24:42.000000Z", // チャージQRコード自体の失効日時 - 'point_expires_at' => "2020-03-23T01:33:15.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + 'is_onetime' => FALSE, // ワンタイムかどうかのフラグ + 'usage_limit' => 2883, // ワンタイムでない場合の最大読み取り回数 + 'expires_at' => "2023-09-20T16:54:29.000000Z", // チャージQRコード自体の失効日時 + 'point_expires_at' => "2020-05-06T19:06:42.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 'point_expires_in_days' => 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) 'bear_point_account' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ポイント額を負担する店舗のウォレットID ] @@ -450,16 +451,16 @@ $request = new Request\GetCheck( $request = new Request\UpdateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // checkId: チャージQRコードのID [ - 'money_amount' => 2606.0, // 付与マネー額 - 'point_amount' => 2200.0, // 付与ポイント額 + 'money_amount' => 8131.0, // 付与マネー額 + 'point_amount' => 9044.0, // 付与ポイント額 'description' => "test check", // チャージQRコードの説明文 - 'is_onetime' => TRUE, // ワンタイムかどうかのフラグ - 'usage_limit' => 7231, // ワンタイムでない場合の最大読み取り回数 - 'expires_at' => "2022-03-02T02:58:33.000000Z", // チャージQRコード自体の失効日時 - 'point_expires_at' => "2024-02-29T21:28:53.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 + 'is_onetime' => FALSE, // ワンタイムかどうかのフラグ + 'usage_limit' => 9776, // ワンタイムでない場合の最大読み取り回数 + 'expires_at' => "2024-08-30T18:34:54.000000Z", // チャージQRコード自体の失効日時 + 'point_expires_at' => "2020-03-08T04:31:09.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 'point_expires_in_days' => 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) 'bear_point_account' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID - 'is_disabled' => TRUE // 無効化されているかどうかのフラグ + 'is_disabled' => FALSE // 無効化されているかどうかのフラグ ] ); ``` @@ -711,7 +712,10 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|customer_user_not_found||The customer user is not found| |422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -721,8 +725,13 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -742,6 +751,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|check_already_received|このチャージQRコードは既に受取済みの為、チャージ出来ませんでした|Check is already received| |422|check_unavailable|このチャージQRコードは利用できません|The topup QR code is not available| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/coupon.md b/docs/coupon.md index faa73893..8250cae4 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -11,12 +11,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 $request = new Request\ListCoupons( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 対象クーポンのマネーID [ - 'coupon_id' => "0gxDGSVD8", // クーポンID - 'coupon_name' => "nN", // クーポン名 - 'issued_shop_name' => "l", // 発行店舗名 - 'available_shop_name' => "3R6Ngh2OA", // 利用可能店舗名 - 'available_from' => "2024-04-13T02:48:44.000000Z", // 利用可能期間 (開始日時) - 'available_to' => "2021-02-05T18:25:06.000000Z", // 利用可能期間 (終了日時) + 'coupon_id' => "hL1xCfnaEp", // クーポンID + 'coupon_name' => "D", // クーポン名 + 'issued_shop_name' => "NgoB", // 発行店舗名 + 'available_shop_name' => "uiKa", // 利用可能店舗名 + 'available_from' => "2024-03-18T14:10:50.000000Z", // 利用可能期間 (開始日時) + 'available_to' => "2022-01-07T00:06:08.000000Z", // 利用可能期間 (終了日時) 'page' => 1, // ページ番号 'per_page' => 50 // 1ページ分の取得数 ] @@ -164,23 +164,23 @@ $request = new Request\ListCoupons( ```PHP $request = new Request\CreateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "i1BcnwfTRLJa4uoIhpR40n", - "2022-03-03T18:14:53.000000Z", - "2023-06-20T01:25:09.000000Z", + "cQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNV", + "2020-12-16T03:08:56.000000Z", + "2023-06-14T02:48:33.000000Z", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // issuedShopId: 発行元の店舗ID [ - 'description' => "knsFuOeDw3ETEoYbDEhr0AwKkiQOHCQCIIRDiJ5EWSps1CcPm4CujuDviyaRPbQTt1c2", - 'discount_amount' => 5059, - 'discount_percentage' => 7678.0, - 'discount_upper_limit' => 7871, - 'display_starts_at' => "2021-11-13T05:51:15.000000Z", // クーポンの掲載期間(開始日時) - 'display_ends_at' => "2022-08-31T01:30:23.000000Z", // クーポンの掲載期間(終了日時) + 'description' => "ftM1EZPsd7jOCTvYgQYDODNTX3YU3qGQBWGDfb1wlkuiN7kKWKFoxKeA9tuL5LH4EHPGJy8", + 'discount_amount' => 6237, + 'discount_percentage' => 6227.0, + 'discount_upper_limit' => 6767, + 'display_starts_at' => "2022-03-06T08:47:40.000000Z", // クーポンの掲載期間(開始日時) + 'display_ends_at' => "2021-08-03T15:48:26.000000Z", // クーポンの掲載期間(終了日時) 'is_disabled' => FALSE, // 無効化フラグ - 'is_hidden' => TRUE, // クーポン一覧に掲載されるかどうか - 'is_public' => FALSE, // アプリ配信なしで受け取れるかどうか - 'code' => "5", // クーポン受け取りコード - 'usage_limit' => 7416, // ユーザごとの利用可能回数(NULLの場合は無制限) - 'min_amount' => 5597, // クーポン適用可能な最小取引額 + 'is_hidden' => FALSE, // クーポン一覧に掲載されるかどうか + 'is_public' => TRUE, // アプリ配信なしで受け取れるかどうか + 'code' => "HQyhzGX", // クーポン受け取りコード + 'usage_limit' => 2072, // ユーザごとの利用可能回数(NULLの場合は無制限) + 'min_amount' => 8165, // クーポン適用可能な最小取引額 '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 @@ -479,23 +479,23 @@ UUIDv4フォーマットである必要があり、フォーマットが異な $request = new Request\UpdateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // couponId: クーポンID [ - 'name' => "rM7sDhsRor5EZrBgBnWdBpXW3vXZAsIGmxl3OdV3odlFFoKvu4lobeulXI7c3F", - 'description' => "9nyrjjRiAP0nDGe4yWdLtrR0H47hbbDvB2dkQWYC4RWqJwsq2yT7AWpCDkyLBkYzAxemZaKowuUfekyaJIsuHhxZpopNYy", - 'discount_amount' => 1782, - 'discount_percentage' => 3382.0, - 'discount_upper_limit' => 6884, - 'starts_at' => "2021-05-27T21:47:55.000000Z", - 'ends_at' => "2021-11-06T23:46:20.000000Z", - 'display_starts_at' => "2024-05-05T11:10:57.000000Z", // クーポンの掲載期間(開始日時) - 'display_ends_at' => "2024-07-09T05:19:53.000000Z", // クーポンの掲載期間(終了日時) + 'name' => "rHPOPDvrwRgeSOaGF6stofVWAQmmxPEjbZK4rV", + 'description' => "AUW7FWHkKwdg6799FNaTUuVqVNtvvxMPy8uYVQrlAwBlTLDHylYVoU0Lud9b5MHdM8UnuwQ7jNoaulXZjgrVDfW2ufNp0gAs9phyFh2aSmdruAKFNN9YCEWSULZdpylXeF6qvGwUl7ATMaf3NqLOcKmTPNREiEdfOxleMzyqb14XnQoYrg3WK0gxDGSVD8anN0lX3R6Ngh2OAi1BcnwfTRLJa4uoIhpR40nORwuCknsFuOeDw3ETEoYbD", + 'discount_amount' => 1051, + 'discount_percentage' => 7493.0, + 'discount_upper_limit' => 7410, + 'starts_at' => "2024-06-07T19:09:56.000000Z", + 'ends_at' => "2024-01-24T05:16:01.000000Z", + 'display_starts_at' => "2024-08-09T18:39:51.000000Z", // クーポンの掲載期間(開始日時) + 'display_ends_at' => "2023-03-23T08:01:33.000000Z", // クーポンの掲載期間(終了日時) 'is_disabled' => TRUE, // 無効化フラグ - 'is_hidden' => TRUE, // クーポン一覧に掲載されるかどうか - 'is_public' => FALSE, // アプリ配信なしで受け取れるかどうか - 'code' => "EMg", // クーポン受け取りコード - 'usage_limit' => 6051, // ユーザごとの利用可能回数(NULLの場合は無制限) - 'min_amount' => 6998, // クーポン適用可能な最小取引額 - 'is_shop_specified' => TRUE, // 特定店舗限定のクーポンかどうか - 'available_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト + 'is_hidden' => FALSE, // クーポン一覧に掲載されるかどうか + 'is_public' => TRUE, // アプリ配信なしで受け取れるかどうか + 'code' => "ki", // クーポン受け取りコード + 'usage_limit' => 2524, // ユーザごとの利用可能回数(NULLの場合は無制限) + 'min_amount' => 810, // クーポン適用可能な最小取引額 + 'is_shop_specified' => FALSE, // 特定店舗限定のクーポンかどうか + 'available_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト 'storage_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID ] ); diff --git a/docs/customer.md b/docs/customer.md index 6c8190cf..3fe0593e 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -104,9 +104,9 @@ $request = new Request\GetAccount( $request = new Request\UpdateAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ - 'is_suspended' => TRUE, // ウォレットが凍結されているかどうか + 'is_suspended' => FALSE, // ウォレットが凍結されているかどうか 'status' => "pre-closed", // ウォレット状態 - 'can_transfer_topup' => TRUE // チャージ可能かどうか + 'can_transfer_topup' => FALSE // チャージ可能かどうか ] ); ``` @@ -185,10 +185,10 @@ $request = new Request\UpdateAccount( $request = new Request\ListAccountBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ - 'page' => 9724, // ページ番号 - 'per_page' => 9659, // 1ページ分の取引数 - 'expires_at_from' => "2021-09-16T05:46:49.000000Z", // 有効期限の期間によるフィルター(開始時点) - 'expires_at_to' => "2022-02-11T22:20:04.000000Z", // 有効期限の期間によるフィルター(終了時点) + 'page' => 2950, // ページ番号 + 'per_page' => 2188, // 1ページ分の取引数 + 'expires_at_from' => "2024-07-29T18:34:12.000000Z", // 有効期限の期間によるフィルター(開始時点) + 'expires_at_to' => "2023-11-03T17:21:54.000000Z", // 有効期限の期間によるフィルター(終了時点) 'direction' => "asc" // 有効期限によるソート順序 ] ); @@ -293,10 +293,10 @@ $request = new Request\ListAccountBalances( $request = new Request\ListAccountExpiredBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ - 'page' => 3843, // ページ番号 - 'per_page' => 3148, // 1ページ分の取引数 - 'expires_at_from' => "2023-10-05T10:49:07.000000Z", // 有効期限の期間によるフィルター(開始時点) - 'expires_at_to' => "2021-07-17T18:43:58.000000Z", // 有効期限の期間によるフィルター(終了時点) + 'page' => 3786, // ページ番号 + 'per_page' => 2371, // 1ページ分の取引数 + 'expires_at_from' => "2022-11-07T09:17:10.000000Z", // 有効期限の期間によるフィルター(開始時点) + 'expires_at_to' => "2021-06-22T04:45:34.000000Z", // 有効期限の期間によるフィルター(終了時点) 'direction' => "asc" // 有効期限によるソート順序 ] ); @@ -402,8 +402,8 @@ $request = new Request\UpdateCustomerAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ 'status' => "suspended", // ウォレット状態 - 'account_name' => "roT8w3801ZxeZpTa0FFkkUFLVCDKp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8SDS6L7O6ohLm8HBuYz7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcygIW1kAzyAHjkW0eFslSf8NaBTyV6GBT8tDH", // アカウント名 - 'external_id' => "I0zWcr0sMpkdiHOOwl5xIQiAP4Up", // 外部ID + 'account_name' => "yMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcU", // アカウント名 + 'external_id' => "vHD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5", // 外部ID 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ ] ); @@ -512,15 +512,15 @@ $request = new Request\UpdateCustomerAccount( $request = new Request\GetCustomerAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'page' => 6318, // ページ番号 - 'per_page' => 8685, // 1ページ分のウォレット数 - 'created_at_from' => "2023-02-26T03:56:51.000000Z", // ウォレット作成日によるフィルター(開始時点) - 'created_at_to' => "2022-05-10T03:48:26.000000Z", // ウォレット作成日によるフィルター(終了時点) - 'is_suspended' => TRUE, // ウォレットが凍結状態かどうかでフィルターする + 'page' => 4363, // ページ番号 + 'per_page' => 9170, // 1ページ分のウォレット数 + 'created_at_from' => "2024-09-07T13:15:45.000000Z", // ウォレット作成日によるフィルター(開始時点) + 'created_at_to' => "2021-01-31T09:25:10.000000Z", // ウォレット作成日によるフィルター(終了時点) + 'is_suspended' => FALSE, // ウォレットが凍結状態かどうかでフィルターする 'status' => "pre-closed", // ウォレット状態 - 'external_id' => "uFUQK5yc0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH9qH3Tntl", // 外部ID - 'tel' => "089-03602031", // エンドユーザーの電話番号 - 'email' => "eMHVeJGZnQ@aE4l.com" // エンドユーザーのメールアドレス + 'external_id' => "7By91KC2xkwbMvROWfU", // 外部ID + 'tel' => "01989704099", // エンドユーザーの電話番号 + 'email' => "gRGAM6oTzl@jbZY.com" // エンドユーザーのメールアドレス ] ); ``` @@ -683,7 +683,7 @@ $request = new Request\CreateCustomerAccount( [ 'user_name' => "ポケペイ太郎", // ユーザー名 'account_name' => "ポケペイ太郎のアカウント", // アカウント名 - 'external_id' => "p3S7TMyfZKpPybiZ1L" // 外部ID + 'external_id' => "S9b6qmrSFaDiVxdn1z0TuA" // 外部ID ] ); ``` @@ -772,10 +772,10 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで $request = new Request\GetShopAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'page' => 6136, // ページ番号 - 'per_page' => 9318, // 1ページ分のウォレット数 - 'created_at_from' => "2024-04-02T16:05:05.000000Z", // ウォレット作成日によるフィルター(開始時点) - 'created_at_to' => "2023-10-12T06:08:37.000000Z", // ウォレット作成日によるフィルター(終了時点) + 'page' => 9389, // ページ番号 + 'per_page' => 8833, // 1ページ分のウォレット数 + 'created_at_from' => "2021-10-18T00:42:48.000000Z", // ウォレット作成日によるフィルター(開始時点) + 'created_at_to' => "2020-12-03T05:00:55.000000Z", // ウォレット作成日によるフィルター(終了時点) 'is_suspended' => FALSE // ウォレットが凍結状態かどうかでフィルターする ] ); @@ -886,8 +886,8 @@ $request = new Request\ListCustomerTransactions( 'receiver_customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取エンドユーザーID 'type' => "cashback", // 取引種別 'is_modified' => FALSE, // キャンセル済みかどうか - 'from' => "2022-07-16T04:39:13.000000Z", // 開始日時 - 'to' => "2021-01-26T11:24:12.000000Z", // 終了日時 + 'from' => "2025-02-23T21:47:53.000000Z", // 開始日時 + 'to' => "2022-10-11T20:59:05.000000Z", // 終了日時 'page' => 1, // ページ番号 'per_page' => 50 // 1ページ分の取引数 ] diff --git a/docs/event.md b/docs/event.md index 16063170..eaed9903 100644 --- a/docs/event.md +++ b/docs/event.md @@ -12,14 +12,15 @@ $request = new Request\CreateExternalTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 2028, // amount: 取引額 + 8678, // 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" => "{}"] ], // 商品情報データ 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID - 'done_at' => "2020-03-28T15:31:15.000000Z" // ポケペイ外部取引の実施時間 + 'done_at' => "2020-10-22T17:57:20.000000Z" // ポケペイ外部取引の実施時間 ] ); ``` @@ -176,11 +177,13 @@ $request = new Request\CreateExternalTransaction( |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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |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| @@ -197,8 +200,13 @@ $request = new Request\CreateExternalTransaction( |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -206,6 +214,8 @@ $request = new Request\CreateExternalTransaction( |422|coupon_amount_not_enough|このクーポンを使用するには支払い額が足りません。|The payment amount not enough to use this coupon.| |422|coupon_not_payment|クーポンは支払いにのみ使用できます。|Coupons can only be used for payment.| |422|coupon_unavailable|このクーポンは使用できません。|This coupon is unavailable.| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| diff --git a/docs/organization.md b/docs/organization.md index 62096367..e874982e 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -9,8 +9,8 @@ $request = new Request\ListOrganizations( [ 'page' => 1, // ページ番号 'per_page' => 50, // 1ページ分の取引数 - 'name' => "OqWuTa", // 組織名 - 'code' => "dRa" // 組織コード + 'name' => "8G", // 組織名 + 'code' => "nuuGn" // 組織コード ] ); ``` @@ -101,14 +101,14 @@ $request = new Request\CreateOrganization( "ox-supermarket", // code: 新規組織コード "oxスーパー", // name: 新規組織名 ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // privateMoneyIds: 加盟店組織で有効にするマネーIDの配列 - "aHOyfGqVUn@cXzh.com", // issuerAdminUserEmail: 発行体担当者メールアドレス - "jskeGyZxmb@Ey05.com", // memberAdminUserEmail: 新規組織担当者メールアドレス + "3um0ZKYlqH@YAPf.com", // issuerAdminUserEmail: 発行体担当者メールアドレス + "acx4ba4pxX@iFCi.com", // memberAdminUserEmail: 新規組織担当者メールアドレス [ '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' => "佐藤清" // 担当者名 diff --git a/docs/private_money.md b/docs/private_money.md index 10505952..161f5a66 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -78,8 +78,8 @@ $request = new Request\GetPrivateMoneys( $request = new Request\GetPrivateMoneyOrganizationSummaries( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'from' => "2024-03-04T23:20:21.000000Z", // 開始日時(toと同時に指定する必要有) - 'to' => "2021-01-31T03:58:37.000000Z", // 終了日時(fromと同時に指定する必要有) + 'from' => "2022-06-21T07:17:00.000000Z", // 開始日時(toと同時に指定する必要有) + 'to' => "2023-11-30T02:26:04.000000Z", // 終了日時(fromと同時に指定する必要有) 'page' => 1, // ページ番号 'per_page' => 50 // 1ページ分の取引数 ] @@ -163,8 +163,8 @@ $request = new Request\GetPrivateMoneyOrganizationSummaries( $request = new Request\GetPrivateMoneySummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'from' => "2024-05-01T04:17:12.000000Z", // 開始日時 - 'to' => "2022-05-03T13:23:07.000000Z" // 終了日時 + 'from' => "2021-01-09T11:30:21.000000Z", // 開始日時 + 'to' => "2024-03-22T20:39:27.000000Z" // 終了日時 ] ); ``` diff --git a/docs/seven_bank_atm_session.md b/docs/seven_bank_atm_session.md index 3f444179..294925e3 100644 --- a/docs/seven_bank_atm_session.md +++ b/docs/seven_bank_atm_session.md @@ -8,7 +8,7 @@ ```PHP $request = new Request\GetSevenBankATMSession( - "UFCwG" // qrInfo: QRコードの情報 + "1CcP" // qrInfo: QRコードの情報 ); ``` diff --git a/docs/shop.md b/docs/shop.md index edc760a4..9de1570f 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -9,12 +9,12 @@ $request = new Request\ListShops( 'organization_code' => "pocketchange", // 組織コード 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID 'name' => "oxスーパー三田店", // 店舗名 - 'postal_code' => "0563486", // 店舗の郵便番号 + 'postal_code' => "414-7112", // 店舗の郵便番号 'address' => "東京都港区芝...", // 店舗の住所 - 'tel' => "0114541732", // 店舗の電話番号 - 'email' => "xS0Vs3OlIr@dnx7.com", // 店舗のメールアドレス - 'external_id' => "U9Fte9Z959oBy13mtel3d8TfJ3Ol39", // 店舗の外部ID - 'with_disabled' => FALSE, // 無効な店舗を含める + 'tel' => "044-05-7548", // 店舗の電話番号 + 'email' => "KnTaroT8w3@801Z.com", // 店舗のメールアドレス + 'external_id' => "pTa0FFkkUFLVCDKp9TvCsVFg3Dy", // 店舗の外部ID + 'with_disabled' => TRUE, // 無効な店舗を含める 'page' => 1, // ページ番号 'per_page' => 50 // 1ページ分の取引数 ] @@ -194,11 +194,11 @@ $request = new Request\ListShops( $request = new Request\CreateShop( "oxスーパー三田店", // shopName: 店舗名 [ - 'shop_postal_code' => "310-1581", // 店舗の郵便番号 + 'shop_postal_code' => "0492706", // 店舗の郵便番号 'shop_address' => "東京都港区芝...", // 店舗の住所 - 'shop_tel' => "00834476456", // 店舗の電話番号 - 'shop_email' => "n4iFYyJJXf@rDUn.com", // 店舗のメールアドレス - 'shop_external_id' => "Z5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJ", // 店舗の外部ID + 'shop_tel' => "0229-195224", // 店舗の電話番号 + 'shop_email' => "I5NM6J7Ehk@zGk2.com", // 店舗のメールアドレス + 'shop_external_id' => "yYle2ZOPXJOiEYcNwwBKhoxCdqw8", // 店舗の外部ID 'organization_code' => "ox-supermarket" // 組織コード ] ); @@ -315,11 +315,11 @@ $request = new Request\CreateShop( $request = new Request\CreateShopV2( "oxスーパー三田店", // name: 店舗名 [ - 'postal_code' => "529-3690", // 店舗の郵便番号 + 'postal_code' => "3437268", // 店舗の郵便番号 'address' => "東京都港区芝...", // 店舗の住所 - 'tel' => "08074859-9594", // 店舗の電話番号 - 'email' => "VYzb9YasuI@p7v4.com", // 店舗のメールアドレス - 'external_id' => "zACicW", // 店舗の外部ID + 'tel' => "08-22599", // 店舗の電話番号 + 'email' => "z7E9ZuYBAH@z0vH.com", // 店舗のメールアドレス + 'external_id' => "u4S", // 店舗の外部ID 'organization_code' => "ox-supermarket", // 組織コード '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の配列 @@ -519,14 +519,14 @@ $request = new Request\UpdateShop( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID [ 'name' => "oxスーパー三田店", // 店舗名 - 'postal_code' => "5015000", // 店舗の郵便番号 + 'postal_code' => "904-8000", // 店舗の郵便番号 'address' => "東京都港区芝...", // 店舗の住所 - 'tel' => "0792-365-572", // 店舗の電話番号 - 'email' => "PufrwL5Z4q@M5cy.com", // 店舗のメールアドレス - 'external_id' => "tMbZhJuNsCdqVbAgLZQKQXblhvdQVC3", // 店舗の外部ID - 'private_money_ids' => [], // 店舗で有効にするマネーIDの配列 - 'can_topup_private_money_ids' => [], // 店舗でチャージ可能にするマネーIDの配列 - 'status' => "active" // 店舗の状態 + 'tel' => "0951-3647583", // 店舗の電話番号 + 'email' => "ygIW1kAzyA@HjkW.com", // 店舗のメールアドレス + 'external_id' => "0eFslSf8NaBTyV6GBT8tDHI0", // 店舗の外部ID + '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' => "disabled" // 店舗の状態 ] ); ``` diff --git a/docs/transaction.md b/docs/transaction.md index 75aa679e..65c25f89 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -6,7 +6,7 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```PHP $request = new Request\GetCpmToken( - "NMgqN77FQwuiGtQW4pnFSk" // cpmToken: CPMトークン + "Bg2EP1IMpzVlOR0ZjHbJ4p" // cpmToken: CPMトークン ); ``` @@ -44,15 +44,15 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```PHP $request = new Request\ListTransactions( [ - 'from' => "2023-02-24T02:39:56.000000Z", // 開始日時 - 'to' => "2020-03-12T19:10:07.000000Z", // 終了日時 + 'from' => "2024-05-24T19:52:05.000000Z", // 開始日時 + 'to' => "2024-08-19T13:06:16.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' => "z0ZAYuH", // 取引ID + 'transaction_id' => "mI", // 取引ID 'organization_code' => "pocketchange", // 組織コード 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID 'is_modified' => TRUE, // キャンセルフラグ @@ -312,10 +312,10 @@ $request = new Request\CreateTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", [ - 'money_amount' => 5982, - 'point_amount' => 3485, - 'point_expires_at' => "2020-03-05T16:54:43.000000Z", // ポイント有効期限 - 'description' => "89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZocfpIFBg2EP1IMpzVlOR0ZjHbJ4pIYeH1mIjK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfg" + 'money_amount' => 6987, + 'point_amount' => 5216, + 'point_expires_at' => "2023-05-10T13:30:37.000000Z", // ポイント有効期限 + 'description' => "1BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2Ig" ] ); ``` @@ -419,6 +419,9 @@ $request = new Request\CreateTransaction( |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|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -428,8 +431,14 @@ $request = new Request\CreateTransaction( |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|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -469,11 +478,11 @@ $request = new Request\ListTransactionsV2( 'customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID 'customer_name' => "太郎", // エンドユーザー名 'description' => "店頭QRコードによる支払い", // 取引説明文 - 'transaction_id' => "DK2IgQ", // 取引ID - 'is_modified' => TRUE, // キャンセルフラグ + 'transaction_id' => "jO", // 取引ID + 'is_modified' => FALSE, // キャンセルフラグ 'types' => ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - 'from' => "2021-06-15T23:35:43.000000Z", // 開始日時 - 'to' => "2022-10-13T01:32:25.000000Z", // 終了日時 + 'from' => "2025-08-29T05:38:38.000000Z", // 開始日時 + 'to' => "2022-08-12T05:33:14.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ページ分の取引数 @@ -763,11 +772,11 @@ $request = new Request\ListBillTransactions( 'customer_name' => "太郎", // エンドユーザー名 'terminal_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザー端末ID 'description' => "店頭QRコードによる支払い", // 取引説明文 - 'transaction_id' => "DYID", // 取引ID - 'bill_id' => "PEu", // 支払いQRコードのID - 'is_modified' => FALSE, // キャンセルフラグ - 'from' => "2020-01-28T06:42:52.000000Z", // 開始日時 - 'to' => "2023-06-28T07:58:55.000000Z", // 終了日時 + 'transaction_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID + 'bill_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 支払いQRコードのID + 'is_modified' => TRUE, // キャンセルフラグ + 'from' => "2020-06-21T05:56:19.000000Z", // 開始日時 + 'to' => "2025-01-02T01:25:55.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ページ分の取引数 @@ -885,7 +894,8 @@ $request = new Request\ListBillTransactions( ```json { - "type": "string" + "type": "string", + "format": "uuid" } ``` @@ -898,7 +908,8 @@ $request = new Request\ListBillTransactions( ```json { - "type": "string" + "type": "string", + "format": "uuid" } ``` @@ -1020,9 +1031,9 @@ $request = new Request\CreateTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ 'bear_point_shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント支払時の負担店舗ID - 'money_amount' => 6494, // マネー額 - 'point_amount' => 2166, // ポイント額 - 'point_expires_at' => "2021-03-19T16:07:42.000000Z", // ポイント有効期限 + 'money_amount' => 2244, // マネー額 + 'point_amount' => 473, // ポイント額 + 'point_expires_at' => "2024-02-07T03:23:53.000000Z", // ポイント有効期限 'description' => "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 'metadata' => "{\"key\":\"value\"}", // 取引メタデータ 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID @@ -1189,7 +1200,10 @@ $request = new Request\CreateTopupTransaction( |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| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -1199,8 +1213,13 @@ $request = new Request\CreateTopupTransaction( |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -1218,6 +1237,8 @@ $request = new Request\CreateTopupTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -1239,15 +1260,15 @@ $request = new Request\CreatePaymentTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 339, // amount: 支払い額 + 2833, // 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" => "{}"] ], // 商品情報データ 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID - 'strategy' => "point-preferred" // 支払い時の残高消費方式 + 'strategy' => "point-preferred", // 支払い時の残高消費方式 + 'coupon_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // クーポンID ] ); ``` @@ -1400,6 +1421,18 @@ $request = new Request\CreatePaymentTransaction( } ``` +**`coupon_id`** + + +支払いに対して適用するクーポンのIDを指定します。 + +```json +{ + "type": "string", + "format": "uuid" +} +``` + 成功したときは @@ -1410,7 +1443,10 @@ $request = new Request\CreatePaymentTransaction( |status|type|ja|en| |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -1420,8 +1456,13 @@ $request = new Request\CreatePaymentTransaction( |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -1439,6 +1480,8 @@ $request = new Request\CreatePaymentTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |422|customer_account_not_found||The customer account is not found| |422|shop_account_not_found|店舗アカウントが見つかりません|The shop account is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| @@ -1457,13 +1500,15 @@ CPMトークンに設定されたスコープの取引を作ることができ ```PHP $request = new Request\CreateCpmTransaction( - "QALktsxpQNr6y6a28m0nRu", // cpmToken: CPMトークン + "OJbPEulQIvNSkQALktsxpQ", // cpmToken: CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID - 7569.0, // amount: 取引金額 + 7118.0, // 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 'strategy' => "point-preferred" // 支払い時の残高消費方式 @@ -1621,7 +1666,10 @@ $request = new Request\CreateCpmTransaction( |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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -1631,8 +1679,13 @@ $request = new Request\CreateCpmTransaction( |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -1652,6 +1705,8 @@ $request = new Request\CreateCpmTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1670,7 +1725,7 @@ $request = new Request\CreateTransferTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // senderId: 送金元ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // receiverId: 受取ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 1810.0, // amount: 送金額 + 7478.0, // amount: 送金額 [ 'metadata' => "{\"key\":\"value\"}", // 取引メタデータ 'description' => "たい焼き(小倉)", // 取引履歴に表示する説明文 @@ -1795,7 +1850,10 @@ $request = new Request\CreateTransferTransaction( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|customer_user_not_found||The customer user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| -|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| +|422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |422|account_can_not_topup|この店舗からはチャージできません|account can not topup| |422|private_money_closed|このマネーは解約されています|This money was closed| |422|transaction_has_done|取引は完了しており、キャンセルすることはできません|Transaction has been copmpleted and cannot be canceled| @@ -1805,8 +1863,13 @@ $request = new Request\CreateTransferTransaction( |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|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -1826,6 +1889,8 @@ $request = new Request\CreateTransferTransaction( |422|transaction_invalid_done_at|取引完了日が無効です|Transaction completion date is invalid| |422|transaction_invalid_amount|取引金額が数値ではないか、受け入れられない桁数です|Transaction amount is not a number or cannot be accepted for this currency| |422|request_id_conflict|このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。|The request_id is already used by another transaction. Try again with new request id| +|422|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|invalid_metadata|メタデータの形式が不正です|Invalid metadata format| |503|temporarily_unavailable||Service Unavailable| @@ -1841,9 +1906,9 @@ $request = new Request\CreateExchangeTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 7625, + 1081, [ - 'description' => "SuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfG", + 'description' => "m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtEhHNUjZJEl7H6", 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID ] ); @@ -1937,6 +2002,9 @@ $request = new Request\CreateExchangeTransaction( |422|transaction_restricted||Transaction is not allowed| |422|can_not_exchange_between_same_private_money|同じマネーとの交換はできません|| |422|can_not_exchange_between_users|異なるユーザー間での交換は出来ません|| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|not_applicable_transaction_type_for_account_topup_quota|チャージ取引以外の取引種別ではチャージ可能枠を使用できません|Account topup quota is not applicable to transaction types other than topup.| +|422|private_money_topup_quota_not_available|このマネーにはチャージ可能枠の設定がありません|Topup quota is not available with this private money.| |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| @@ -1952,8 +2020,14 @@ $request = new Request\CreateExchangeTransaction( |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|reserved_word_can_not_specify_to_metadata|取引メタデータに予約語は指定出来ません|Reserved word can not specify to metadata| +|422|account_topup_quota_not_splittable|このチャージ可能枠は設定された金額未満の金額には使用できません|This topup quota is only applicable to its designated money amount.| +|422|topup_amount_exceeding_topup_quota_usable_amount|チャージ金額がチャージ可能枠の利用可能金額を超えています|Topup amount is exceeding the topup quota's usable amount| +|422|account_topup_quota_inactive|指定されたチャージ可能枠は有効ではありません|Topup quota is inactive| +|422|account_topup_quota_not_within_applicable_period|指定されたチャージ可能枠の利用可能期間外です|Topup quota is not applicable at this time| +|422|account_topup_quota_not_found|ウォレットにチャージ可能枠がありません|Topup quota is not found with this account| +|422|account_total_topup_limit_range|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount within the period defined by the money.| +|422|account_total_topup_limit_entire_period|合計チャージ額がマネーで指定された期間内での上限を超えています|The topup exceeds the total amount defined by the money.| |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.| @@ -2025,7 +2099,7 @@ $request = new Request\RefundTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // transactionId: 取引ID [ 'description' => "返品対応のため", // 取引履歴に表示する返金事由 - 'returning_point_expires_at' => "2024-02-14T11:33:34.000000Z" // 返却ポイントの有効期限 + 'returning_point_expires_at' => "2021-10-22T08:40:05.000000Z" // 返却ポイントの有効期限 ] ); ``` diff --git a/docs/transfer.md b/docs/transfer.md index 66c89cef..8c14b50c 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -8,8 +8,8 @@ $request = new Request\GetAccountTransferSummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ - 'from' => "2022-07-09T06:30:41.000000Z", // 集計期間の開始時刻 - 'to' => "2021-04-16T20:31:59.000000Z", // 集計期間の終了時刻 + 'from' => "2020-04-30T17:47:50.000000Z", // 集計期間の開始時刻 + 'to' => "2022-03-14T12:11:02.000000Z", // 集計期間の終了時刻 'transfer_types' => ["topup", "payment"] // 取引明細種別 (複数指定可) ] ); @@ -125,19 +125,19 @@ $request = new Request\GetAccountTransferSummary( ```PHP $request = new Request\ListTransfers( [ - 'from' => "2020-10-25T17:53:40.000000Z", - 'to' => "2022-12-25T10:07:32.000000Z", - 'page' => 8885, - 'per_page' => 8783, + 'from' => "2023-03-22T06:33:55.000000Z", + 'to' => "2024-01-01T01:56:17.000000Z", + 'page' => 4812, + 'per_page' => 6318, 'shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 'shop_name' => "UibZax1gbEqwtEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUY", + 'shop_name' => "rLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5B", 'customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 'customer_name' => "dZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7e7CQ6mogsi4OQ6jQwMdVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa51B", + 'customer_name' => "uCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7e7CQ6mogsi", 'transaction_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 'is_modified' => TRUE, - 'transaction_types' => ["expire"], - 'transfer_types' => ["expire", "coupon", "payment", "cashback", "topup", "transfer", "exchange"], // 取引明細の種類でフィルターします。 + 'transaction_types' => ["expire", "topup", "payment"], + 'transfer_types' => ["campaign", "expire", "coupon", "payment"], // 取引明細の種類でフィルターします。 'description' => "店頭QRコードによる支払い" // 取引詳細説明文 ] ); @@ -372,20 +372,20 @@ $request = new Request\ListTransfers( $request = new Request\ListTransfersV2( [ 'shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - 'shop_name' => "Imb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB9HjzBAZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJkkZMMdEANfWVavAje3PJg4zkA5dwRQrAEDCEBzCTk0pNAGkxkj3y6QjLE9oTv9S3Zg4O5dK9OBTn3gY0HIwJr5Xn", // 店舗名 + 'shop_name' => "dVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa5", // 店舗名 'customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID - 'customer_name' => "6R9PIw5eC52tvIBnMyMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcUvvHD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5Q2vG7", // エンドユーザー名 + 'customer_name' => "B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB9HjzBAZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJ", // エンドユーザー名 'transaction_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 'is_modified' => TRUE, // キャンセルフラグ - 'transaction_types' => ["transfer", "topup", "exchange", "cashback"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + 'is_modified' => FALSE, // キャンセルフラグ + 'transaction_types' => ["exchange", "topup", "payment", "cashback", "expire"], // 取引種別 (複数指定可)、チャージ=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' => ["coupon", "topup", "campaign", "payment"], // 取引明細種別 (複数指定可) + 'transfer_types' => ["transfer", "campaign", "cashback", "exchange", "payment", "topup", "coupon"], // 取引明細種別 (複数指定可) 'description' => "店頭QRコードによる支払い", // 取引詳細説明文 - 'from' => "2024-05-28T15:52:18.000000Z", // 開始日時 - 'to' => "2020-11-04T09:33:44.000000Z" // 終了日時 + 'from' => "2021-09-11T00:32:00.000000Z", // 開始日時 + 'to' => "2024-09-02T16:24:54.000000Z" // 終了日時 ] ); ``` diff --git a/docs/webhook.md b/docs/webhook.md index 373b01b9..e691aa5c 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -67,8 +67,8 @@ $request = new Request\ListWebhooks( ```PHP $request = new Request\CreateWebhook( - "process_user_stats_operation", // task: タスク名 - "4XnQoY" // url: URL + "bulk_shops", // task: タスク名 + "7mHIXsOqC" // url: URL ); ``` @@ -162,8 +162,8 @@ $request = new Request\DeleteWebhook( $request = new Request\UpdateWebhook( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // webhookId: Webhook ID [ - 'url' => "g3W", // URL - 'is_active' => FALSE, // 有効/無効 + 'url' => "xcK", // URL + 'is_active' => TRUE, // 有効/無効 'task' => "process_user_stats_operation" // タスク名 ] ); diff --git a/init.php b/init.php index 0644de10..e585a221 100644 --- a/init.php +++ b/init.php @@ -26,6 +26,7 @@ require_once __DIR__ . '/lib/Request/GetShopAccounts.php'; require_once __DIR__ . '/lib/Request/ListBills.php'; require_once __DIR__ . '/lib/Request/CreateBill.php'; +require_once __DIR__ . '/lib/Request/GetBill.php'; require_once __DIR__ . '/lib/Request/UpdateBill.php'; require_once __DIR__ . '/lib/Request/ListChecks.php'; require_once __DIR__ . '/lib/Request/CreateCheck.php'; @@ -39,6 +40,7 @@ require_once __DIR__ . '/lib/Request/CreateTopupTransaction.php'; require_once __DIR__ . '/lib/Request/CreateTopupTransactionWithCheck.php'; require_once __DIR__ . '/lib/Request/CreatePaymentTransaction.php'; +require_once __DIR__ . '/lib/Request/CreatePaymentTransactionWithBill.php'; require_once __DIR__ . '/lib/Request/CreateCpmTransaction.php'; require_once __DIR__ . '/lib/Request/CreateTransactionWithCashtray.php'; require_once __DIR__ . '/lib/Request/CreateTransferTransaction.php'; @@ -82,7 +84,7 @@ require_once __DIR__ . '/lib/Request/CreateUserDevice.php'; require_once __DIR__ . '/lib/Request/GetUserDevice.php'; require_once __DIR__ . '/lib/Request/ActivateUserDevice.php'; -require_once __DIR__ . '/lib/Request/DeleteBanks.php'; +require_once __DIR__ . '/lib/Request/DeleteBank.php'; require_once __DIR__ . '/lib/Request/ListBanks.php'; require_once __DIR__ . '/lib/Request/CreateBank.php'; require_once __DIR__ . '/lib/Request/CreateBankTopupTransaction.php'; diff --git a/lib/Request/CreatePaymentTransactionWithBill.php b/lib/Request/CreatePaymentTransactionWithBill.php new file mode 100644 index 00000000..433fa039 --- /dev/null +++ b/lib/Request/CreatePaymentTransactionWithBill.php @@ -0,0 +1,39 @@ +billId = $billId; + $this->customerId = $customerId; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/transactions/payment/bill'; + } + + public function getParams() + { + $params = array( + 'bill_id' => $this->billId, + 'customer_id' => $this->customerId, + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/DeleteBanks.php b/lib/Request/DeleteBank.php similarity index 96% rename from lib/Request/DeleteBanks.php rename to lib/Request/DeleteBank.php index c376ab2a..6153c07f 100644 --- a/lib/Request/DeleteBanks.php +++ b/lib/Request/DeleteBank.php @@ -4,7 +4,7 @@ namespace Pokepay\Request; -class DeleteBanks extends Base +class DeleteBank extends Base { protected $method = 'DELETE'; public $responseClass = \Pokepay\Response\BankDeleted::class; diff --git a/lib/Request/GetBill.php b/lib/Request/GetBill.php new file mode 100644 index 00000000..4859e016 --- /dev/null +++ b/lib/Request/GetBill.php @@ -0,0 +1,36 @@ +billId = $billId; + + $this->optionalParams = array(); + } + + public function getPath() + { + return '/bills' . '/' . $this->billId; + } + + public function getParams() + { + $params = array( + + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/partner.yaml b/partner.yaml index c1998040..187ca31f 100644 --- a/partner.yaml +++ b/partner.yaml @@ -22,12 +22,14 @@ tags: `https://www-sandbox.pokepay.jp/checks/xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` - QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注意: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 + QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) + 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - name: Bill description: 支払いQRコード - name: Cashtray description: | Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 + 店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 @@ -2930,7 +2932,9 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: | + 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 private_money_id: type: string format: uuid @@ -2959,6 +2963,38 @@ paths: $ref: '#/components/responses/UnprocessableEntity' /bills/{bill_id}: + get: + tags: + - Bill + summary: '支払いQRコードの表示' + description: 支払いQRコードの内容を表示します。 + x-pokepay-operator-name: "GetBill" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: bill_id + required: true + schema: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 表示する支払いQRコードのIDです。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/Bill' + '400': + $ref: '#/components/responses/InvalidParameters' + '403': + $ref: '#/components/responses/UnpermittedAdminUser' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' patch: tags: - Bill @@ -2988,7 +3024,7 @@ paths: nullable: true format: decimal title: '支払い額' - description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 + description: 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 description: type: string maxLength: 200 @@ -3864,6 +3900,7 @@ paths: example: 店頭QRコードによる支払い transaction_id: type: string + format: uuid title: '取引ID' description: |- 取引IDです。 @@ -3871,6 +3908,7 @@ paths: フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 bill_id: type: string + format: uuid title: '支払いQRコードのID' description: |- 支払いQRコードのIDです。 @@ -4213,6 +4251,96 @@ paths: - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) - money-only: マネー残高のみから消費され、ポイント残高は使われません + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 + example: 'point-preferred' + coupon_id: + type: string + format: uuid + title: 'クーポンID' + description: |- + 支払いに対して適用するクーポンのIDを指定します。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transactions/payment/bill: + post: + tags: + - Bill + summary: '支払いQRコードを読み取ることで支払いをする' + description: | + 通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 + + エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 + 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 + x-pokepay-operator-name: "CreatePaymentTransactionWithBill" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["bill_id", "customer_id"] + properties: + bill_id: + type: string + format: uuid + title: '支払いQRコードのID' + description: |- + 支払いQRコードのIDです。 + + QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + 支払いを行うエンドユーザーを指定します。 + metadata: + type: string + format: json + title: '取引メタデータ' + description: |- + 取引作成時に指定されるメタデータです。 + + 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 + example: |- + {"key":"value"} + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 + + 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 + + リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 + 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 + example: '9dbfd997-b948-40d3-a3bf-6bc1a01368d2' + strategy: + type: string + enum: [point-preferred, money-only] + default: 'point-preferred' + title: '支払い時の残高消費方式' + description: |- + 支払い時に残高がどのように消費されるかを指定します。 + デフォルトでは point-preferred (ポイント優先)が採用されます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - money-only: マネー残高のみから消費され、ポイント残高は使われません + マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 example: 'point-preferred' responses: @@ -4226,6 +4354,8 @@ paths: $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' /transactions/cpm: @@ -8605,7 +8735,7 @@ paths: '422': $ref: '#/components/responses/UnprocessableEntity' delete: - x-pokepay-operator-name: "DeleteBanks" + x-pokepay-operator-name: "DeleteBank" x-pokepay-allow-server-side: true tags: - BankPay diff --git a/tests/ActivateUserDeviceTest.php b/tests/ActivateUserDeviceTest.php index d84ae4a8..32824402 100644 --- a/tests/ActivateUserDeviceTest.php +++ b/tests/ActivateUserDeviceTest.php @@ -8,7 +8,7 @@ public function testActivateUserDevice0() { $client = $this->newClient(); $request = new Request\ActivateUserDevice( - "f45f4b8f-1b9f-49ba-9be6-a77e566d2887" + "ad99a445-2754-49df-a75f-759d219ba4dd" ); try { $response = $client->send($request); diff --git a/tests/BulkCreateTransactionTest.php b/tests/BulkCreateTransactionTest.php index 48dd39ed..85298b13 100644 --- a/tests/BulkCreateTransactionTest.php +++ b/tests/BulkCreateTransactionTest.php @@ -8,9 +8,9 @@ public function testBulkCreateTransaction0() { $client = $this->newClient(); $request = new Request\BulkCreateTransaction( - "eP1Vs1el3tVDmtz0qcHqLIsXtLIzc5", - "p3W", - "nRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpD" + "joNHBAUn0qZzCUWIZlu3", + "CPUHg3H", + "pQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMb" ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testBulkCreateTransaction1() { $client = $this->newClient(); $request = new Request\BulkCreateTransaction( - "eP1Vs1el3tVDmtz0qcHqLIsXtLIzc5", - "p3W", - "nRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpD", + "joNHBAUn0qZzCUWIZlu3", + "CPUHg3H", + "pQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMb", [ - 'private_money_id' => "6dc01260-2ccc-4e5f-a0d9-d0e2fd3feccd" + 'private_money_id' => "8f7ec3a8-ace2-4f1a-bcd6-87a92c10a958" ] ); try { @@ -45,12 +45,12 @@ public function testBulkCreateTransaction2() { $client = $this->newClient(); $request = new Request\BulkCreateTransaction( - "eP1Vs1el3tVDmtz0qcHqLIsXtLIzc5", - "p3W", - "nRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpD", + "joNHBAUn0qZzCUWIZlu3", + "CPUHg3H", + "pQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMb", [ - 'description' => "Mvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq50fssjoNHBAUn0qZz", - 'private_money_id' => "98ec2843-92d5-4a9e-bb7d-8e8096d87421" + 'description' => "8HS4JwKvfQBXbwG5FfO", + 'private_money_id' => "dd004762-aeba-46e2-8bd5-589322a803d3" ] ); try { diff --git a/tests/CancelCashtrayTest.php b/tests/CancelCashtrayTest.php index b3b71f9c..9e958c56 100644 --- a/tests/CancelCashtrayTest.php +++ b/tests/CancelCashtrayTest.php @@ -8,7 +8,7 @@ public function testCancelCashtray0() { $client = $this->newClient(); $request = new Request\CancelCashtray( - "0ae2c6fe-fceb-44b4-b4a6-23d66df3efbd" + "1cbf2b06-cf32-46e0-a6eb-f3ef0282918b" ); try { $response = $client->send($request); diff --git a/tests/CreateBankTest.php b/tests/CreateBankTest.php index 6b50e8c3..f4db888b 100644 --- a/tests/CreateBankTest.php +++ b/tests/CreateBankTest.php @@ -8,10 +8,10 @@ public function testCreateBank0() { $client = $this->newClient(); $request = new Request\CreateBank( - "528e1122-9e40-4382-82b2-97dc79d33e2f", - "9efd5351-7117-4f8f-8a50-b551cbeb2539", - "Y2Rpsj0heI1pcWBx1T31cQtfbPC", - "ATbfETgM8KooCtS8z1fc4bmpdj" + "df43edfb-403e-487a-9122-b960789a4c24", + "aeb888bd-ec94-4d20-9eb1-c9662f8ed995", + "4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72Q", + "Nr" ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreateBank1() { $client = $this->newClient(); $request = new Request\CreateBank( - "528e1122-9e40-4382-82b2-97dc79d33e2f", - "9efd5351-7117-4f8f-8a50-b551cbeb2539", - "Y2Rpsj0heI1pcWBx1T31cQtfbPC", - "ATbfETgM8KooCtS8z1fc4bmpdj", + "df43edfb-403e-487a-9122-b960789a4c24", + "aeb888bd-ec94-4d20-9eb1-c9662f8ed995", + "4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72Q", + "Nr", [ - 'birthdate' => "KCTf" + 'birthdate' => "pzY" ] ); try { @@ -47,13 +47,13 @@ public function testCreateBank2() { $client = $this->newClient(); $request = new Request\CreateBank( - "528e1122-9e40-4382-82b2-97dc79d33e2f", - "9efd5351-7117-4f8f-8a50-b551cbeb2539", - "Y2Rpsj0heI1pcWBx1T31cQtfbPC", - "ATbfETgM8KooCtS8z1fc4bmpdj", + "df43edfb-403e-487a-9122-b960789a4c24", + "aeb888bd-ec94-4d20-9eb1-c9662f8ed995", + "4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72Q", + "Nr", [ - 'email' => "j1GK9RSuRp@80JI.com", - 'birthdate' => "G" + 'email' => "fcTDxwidoK@xhgH.com", + 'birthdate' => "IlA44" ] ); try { diff --git a/tests/CreateBankTopupTransactionTest.php b/tests/CreateBankTopupTransactionTest.php index ad615929..b29927c6 100644 --- a/tests/CreateBankTopupTransactionTest.php +++ b/tests/CreateBankTopupTransactionTest.php @@ -8,11 +8,11 @@ public function testCreateBankTopupTransaction0() { $client = $this->newClient(); $request = new Request\CreateBankTopupTransaction( - "7b706ec9-bc66-425a-a22c-927e83d3a20a", - "cb9ddd1b-d1b0-41fa-9c15-f4a4c53d5fa3", - 3659, - "61471a1a-6a1a-4d3f-b509-5bc9f2cfb7e4", - "bd5883d8-a982-42ae-9752-5ab74f32958d" + "7d8a3c84-5db0-49a6-8403-b936da907638", + "746267c0-b9e9-4de5-b62b-c31950e78f6c", + 5622, + "f1753180-4c03-48c0-adac-cdf4e9ea0d86", + "fb14762d-898a-4d5d-8d21-c65c7ff66cc2" ); try { $response = $client->send($request); @@ -27,13 +27,13 @@ public function testCreateBankTopupTransaction1() { $client = $this->newClient(); $request = new Request\CreateBankTopupTransaction( - "7b706ec9-bc66-425a-a22c-927e83d3a20a", - "cb9ddd1b-d1b0-41fa-9c15-f4a4c53d5fa3", - 3659, - "61471a1a-6a1a-4d3f-b509-5bc9f2cfb7e4", - "bd5883d8-a982-42ae-9752-5ab74f32958d", + "7d8a3c84-5db0-49a6-8403-b936da907638", + "746267c0-b9e9-4de5-b62b-c31950e78f6c", + 5622, + "f1753180-4c03-48c0-adac-cdf4e9ea0d86", + "fb14762d-898a-4d5d-8d21-c65c7ff66cc2", [ - 'receiver_user_id' => "81bf00ef-fd62-4b5a-96c5-f96fb72db847" + 'receiver_user_id' => "04fd7392-f097-4997-9317-b2822e337102" ] ); try { diff --git a/tests/CreateBillTest.php b/tests/CreateBillTest.php index e0f85e93..3dff979a 100644 --- a/tests/CreateBillTest.php +++ b/tests/CreateBillTest.php @@ -8,8 +8,8 @@ public function testCreateBill0() { $client = $this->newClient(); $request = new Request\CreateBill( - "c404cacf-f9c6-4b71-8977-32134cce0494", - "887fe62c-62c0-4078-b276-e6f80b19b3eb" + "0be9aed6-e055-444b-80ba-1dc505caf290", + "f8ba3f31-b147-4492-854e-9639a042644a" ); try { $response = $client->send($request); @@ -24,10 +24,10 @@ public function testCreateBill1() { $client = $this->newClient(); $request = new Request\CreateBill( - "c404cacf-f9c6-4b71-8977-32134cce0494", - "887fe62c-62c0-4078-b276-e6f80b19b3eb", + "0be9aed6-e055-444b-80ba-1dc505caf290", + "f8ba3f31-b147-4492-854e-9639a042644a", [ - 'description' => "wVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj" + 'description' => "qLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafz" ] ); try { @@ -43,11 +43,11 @@ public function testCreateBill2() { $client = $this->newClient(); $request = new Request\CreateBill( - "c404cacf-f9c6-4b71-8977-32134cce0494", - "887fe62c-62c0-4078-b276-e6f80b19b3eb", + "0be9aed6-e055-444b-80ba-1dc505caf290", + "f8ba3f31-b147-4492-854e-9639a042644a", [ - 'amount' => 3754.0, - 'description' => "k3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWw" + 'amount' => 8441.0, + 'description' => "U4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDy" ] ); try { diff --git a/tests/CreateCampaignTest.php b/tests/CreateCampaignTest.php index 7758ce02..4ce45017 100644 --- a/tests/CreateCampaignTest.php +++ b/tests/CreateCampaignTest.php @@ -8,14 +8,14 @@ public function testCreateCampaign0() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["3686c8c8-0e92-42e4-bde9-1f81be39fdaf", "53ac5840-e82f-45a8-b72b-a1d087c07719", "b6997129-cf83-4a4a-a128-fe5dbdeab701", "916ca579-95c2-4ed4-b53e-7fa95602adc9", "3a7795e7-311d-4d24-81a1-407e0316da4b", "dab7cd35-0762-4039-9bba-c6683b3f309d", "e3b7a6f9-af20-437e-ba3c-b35a37819da9", "40023c01-a3aa-43e8-a35a-415fd90dd1e8", "a4d90487-3da1-4d38-8d92-3d0a15471975"] + 'applicable_shop_ids' => ["7d030ef8-b390-445b-83c6-fa2f553d7a5c", "9b9f94af-bed8-4f23-8fb7-012db8a494d0", "a4127608-18af-4d44-89e7-4d986dd00b2d", "3d07d367-8e72-4afa-aece-075712154f8a", "02a68cc2-0856-4209-b05d-c205f76bbef0", "f8ad3e0f-26b9-4a8d-88c2-1dc251ce480f", "2d45c754-752c-4a54-b0ab-5d29a60c80b6", "48c0cf9c-73c1-4fc7-b04d-be9a9fb9930e"] ] ); try { @@ -31,15 +31,15 @@ public function testCreateCampaign1() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["aa4be814-456c-45d6-9291-82232c3854af", "7178a2a2-e23e-4416-9ccb-4b67d1282607", "3fe30b43-9053-43f0-890f-8aaaf95b3ccc", "1e087eb1-67bb-40b3-9959-9575a2dc8b83"], - 'bear_point_shop_id' => "85d966c7-01ce-4d31-b772-c4e63df21a54" + 'applicable_shop_ids' => ["41b855cd-9622-4aa3-a08f-cb9d174e0e3e", "8a4c09cf-109e-447e-bd81-2133f1385ce2", "3c841774-d0c0-4f48-ad59-fca373af6f9c"], + 'bear_point_shop_id' => "e90da617-e947-49e9-aac2-052876cbb814" ] ); try { @@ -55,16 +55,16 @@ public function testCreateCampaign2() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["ed9cf828-d922-4e84-ae9b-7d4f1004698c", "fb3bf525-b674-43a9-bc7d-174327b23fbb", "379cc402-cc13-4e5d-a918-51801aaf4460", "9bbfdef5-8bbf-4b94-93f8-2570a9fd872d", "9a7b66b7-7294-4969-a831-dcf20989f72a", "c66e9f1d-bce3-4861-a3d2-d47d3a364fab", "db95dc34-167e-4e8c-8557-2e6d8257e315", "a305a810-6705-4d01-8ad2-d259faded59a", "70ef81c5-555c-4030-96aa-d098c64dd59e", "d15fe1f6-07df-4067-8c9d-1791f159bd88"], - 'description' => "Gn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd", - 'bear_point_shop_id' => "780089b3-a2ac-4702-adf3-b1659bb9a28c" + 'applicable_shop_ids' => ["2ad1fb98-df2d-470a-9bd1-73e1d20744ec", "248aa002-1b75-41b6-839c-e000e75c8512", "0c5d789e-4263-4168-a7ba-ec3be5bcdca2", "a369adc4-0317-4bd6-b220-18d0eb4a55e3", "08abf01a-b1ea-4a0d-940c-8bdca1423ca4"], + 'description' => "2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqVd3CIlE3dO8Hdi7PJayBT5IgAK5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i", + 'bear_point_shop_id' => "404d2fa8-e331-4cf2-aa1d-bce3b4fd5861" ] ); try { @@ -80,17 +80,17 @@ public function testCreateCampaign3() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["5d9ff3fd-6d28-4342-ac24-a058b755c049", "d748e101-7a1e-46d5-a985-4bbfa40aed59"], - 'status' => "enabled", - 'description' => "TvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnENFs3jBlwZrD72DB37CRt8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa", - 'bear_point_shop_id' => "8daaa3b6-ccc6-45e7-b037-51a9383ca85c" + 'applicable_shop_ids' => ["b3b32ad2-d47d-4fab-b47e-4e8c77cbbec5", "84cf6c57-2e6d-4315-9005-ad0147fde34a", "126b13d2-d259-459a-855c-003048149296", "d298cbaa-d098-459e-b6df-7067f4066ccc"], + 'status' => "disabled", + 'description' => "Gn2OdxgxwF29eViuwKtjsRjzvb8XUneGNN0gcbjHE0ykOW2yVlHndMAdWY9HjNAOFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9", + 'bear_point_shop_id' => "9529ebcc-27aa-4a9a-a724-498458d7e7b6" ] ); try { @@ -106,18 +106,18 @@ public function testCreateCampaign4() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["a7b889a4-5af9-4b8f-beed-b7301bcfaea1", "22d8e2e8-c184-4dd9-a5f1-af08ace4b69a", "9f512f44-c901-432d-8755-9bc16f4f60d7", "0cf03e4d-ea59-421f-9f3c-26dc98b81478", "a89ae957-bfbb-4626-a6bf-e3dc0509c92d"], - 'point_expires_at' => "2021-09-13T19:52:35.000000Z", + 'applicable_shop_ids' => ["bafd2a34-8def-4512-97ef-f7d2b622fcf8", "2b446b1c-fd4b-442b-91be-73b5cc37bacb", "77d4269c-f20c-47a6-9e85-a1526012cd18", "f7d464f2-5ead-4833-a916-022824af3d86", "ab536a68-b0fb-448e-b865-c4679ca7bb8e"], + 'point_expires_at' => "2020-05-07T23:44:06.000000Z", 'status' => "disabled", - 'description' => "NC0wV3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk", - 'bear_point_shop_id' => "3d865538-ab38-44de-8b79-623ee33608c1" + 'description' => "CN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXd", + 'bear_point_shop_id' => "b029329b-46bc-446e-9f1a-e8c54d0890ce" ] ); try { @@ -133,19 +133,19 @@ public function testCreateCampaign5() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["e1f019e4-0aeb-4c2a-bf5c-aa4e63dad020", "cab49bc0-012a-428d-ba1f-27624911012f", "e4d0f403-351b-46d5-a89a-8adc44ab489c", "3cc8c05f-bad5-4b3e-876c-0313facae258", "11aebb0a-ea70-41b2-adc0-930f370aba16"], - 'point_expires_in_days' => 7540, - 'point_expires_at' => "2023-03-15T16:10:07.000000Z", - 'status' => "disabled", - 'description' => "T5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDM", - 'bear_point_shop_id' => "b8afc1be-5f18-4075-941c-315ebc383975" + 'applicable_shop_ids' => ["fa3ba695-e2f3-4d29-8833-352ead2b6624", "bae15a8e-8ec0-4a0d-aaa6-d4c25a57b1df", "c25fad23-166c-4677-9a89-0f814a596d60", "247eccf2-a3c4-4c7f-92b7-acb21251a9e0", "33ba3d7c-ba16-48a3-84c2-7f8d1e982eb3", "10a25e24-52e0-4a37-a613-4307875daac3", "5dcc4e8b-fb52-4fbc-8074-98fb8ed0f4b8"], + 'point_expires_in_days' => 5471, + 'point_expires_at' => "2023-02-16T20:10:15.000000Z", + 'status' => "enabled", + 'description' => "iPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0hYqDUAWMYxWfGNC0wV3aBOX1Ig8hROFB3MljHGXrpV", + 'bear_point_shop_id' => "1979b09d-d582-47ac-93eb-d7532b65a0e4" ] ); try { @@ -161,20 +161,20 @@ public function testCreateCampaign6() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["b90c1e61-7ad7-4e67-829e-41b608b819f6", "0ce6afea-12a9-446f-9a46-72caa1bec055", "22a21735-09f1-4fbf-bb8a-b21d30df02f5", "05bd6cf7-aaf8-4046-8258-f4a6c8cd5b6e"], + 'applicable_shop_ids' => ["55097a89-80af-4a42-a440-eeff2e8a5b82", "7829c4d1-020f-439a-bcfa-9471262e0558"], 'is_exclusive' => TRUE, - 'point_expires_in_days' => 8545, - 'point_expires_at' => "2022-06-27T03:10:19.000000Z", - 'status' => "enabled", - 'description' => "q6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQG", - 'bear_point_shop_id' => "5dfa95aa-4bc8-4ea7-b0ba-158cef863a29" + 'point_expires_in_days' => 7136, + 'point_expires_at' => "2024-06-04T13:59:51.000000Z", + 'status' => "disabled", + 'description' => "Ck88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2A", + 'bear_point_shop_id' => "b57222e6-53ad-4315-8f2d-ca0c5531a82b" ] ); try { @@ -190,21 +190,21 @@ public function testCreateCampaign7() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["4a475c33-7578-4ad0-91fa-efa1c28ec250", "2b58ffa5-26ce-483b-82bb-a78781092abe", "67ab8d97-84bf-4d5a-8dba-c0e1e5e0b3b3", "23e760e3-be54-4ced-bbaa-a810b1e951d4", "3d19673f-7df3-403d-ac5f-185478850926", "70d9ee44-fca9-4005-88fa-08dd8a213471", "8eaec1b0-9f85-4f07-a2a5-5cb0e4dbe450"], + 'applicable_shop_ids' => ["49011f99-2921-42b5-a31a-c7377846026e", "f49c3173-5a53-45db-b8f0-d654f739af0a", "3739a38c-d88b-4ab7-a9f7-b84e413bf7ec", "17c38589-2f9d-4b39-9843-38cb3af5f505", "d909de4e-0980-4a35-bf00-fcafb9fc69f9", "9b392018-fa40-48a0-a89f-7ec3cb7e04a0", "f0cdaa73-2302-4014-84cd-c1bec2415f18"], 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 9857, - 'point_expires_at' => "2021-04-08T01:25:06.000000Z", - 'status' => "enabled", - 'description' => "RscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYwOestfQFumGQVfUsw4", - 'bear_point_shop_id' => "26481e90-ea0b-430d-85e8-81e6638acdd9" + 'point_expires_in_days' => 5012, + 'point_expires_at' => "2024-10-22T19:39:13.000000Z", + 'status' => "disabled", + 'description' => "6vjoZFJU5quwxFBXnJ5Eq6GcNPCEVPq46GdIPJm8acYbz4K3IA8JYUILwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz", + 'bear_point_shop_id' => "044a3830-c575-4044-a5ef-7711eafd233d" ] ); try { @@ -220,24 +220,30 @@ public function testCreateCampaign8() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["65a23872-5fb8-4219-94ad-cf7744683f73", "29323937-0b6b-4a1f-8098-47a548c9ba9d", "1fd789b4-287b-4fb8-92f0-ee8cfd9fe187", "40a510ff-8dc7-4466-aacc-9e8d4fbf9387", "c723f50e-7b1b-47fb-a061-550f7da3f20b", "31f57f28-049c-4b15-b4b4-d6bf5fae1117", "669a0ece-104a-44cd-ab9b-0d83b91d6098", "9bdbc7c3-b665-428b-8a38-8b6a6f9c8eec", "582e0613-c82d-4f73-83e6-19de0814ebb1"], + 'applicable_shop_ids' => ["1dc51783-f87b-4cb2-8712-ef272d10b961", "f770e2e0-3f78-4f11-a885-e43f3814f8a6", "570004cc-1789-4a85-8da9-eb6add3ac78b", "f528585a-9d82-4ca6-a84d-fa7e8c924137", "a4d8b217-ea07-41e6-8218-9abe663e2bf4", "d8b5e245-6e2c-4ea4-ac9f-80693b593d4b", "b5116a27-77d0-4bfc-bac0-aad15d90194c"], '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] ], - 'subject' => "all", + 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 6575, - 'point_expires_at' => "2023-12-10T06:22:37.000000Z", - 'status' => "disabled", - 'description' => "6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTP", - 'bear_point_shop_id' => "e4cfe8e6-7ec9-4161-aa25-d5a3f36f0ac0" + 'point_expires_in_days' => 7115, + 'point_expires_at' => "2022-05-08T02:45:03.000000Z", + 'status' => "enabled", + 'description' => "tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3", + 'bear_point_shop_id' => "3ac17578-6ad0-4c51-baa1-c2502b58ffa5" ] ); try { @@ -253,17 +259,19 @@ public function testCreateCampaign9() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["97c58799-3dc2-41ed-a015-f857e9b2c509", "a839dcfa-7f46-4e2e-a6a4-eebdec84a402", "ee16998d-bde2-4dd6-a6e1-b1fe1c53e1cc", "82f12735-f0ae-4bbd-aecc-c854ecc74b0b"], + 'applicable_shop_ids' => ["6056ebbb-a787-4abe-97bf-ad5aabca754d", "7c22c7ba-c0e1-43b3-a354-fced31ede7bb", "90c893aa-a810-41d4-bff3-603dafb2eb6c"], '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] ], '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] @@ -272,16 +280,14 @@ public function testCreateCampaign9() , ["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] ], - 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 465, - 'point_expires_at' => "2021-09-19T05:17:30.000000Z", + 'subject' => "money", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 6, + 'point_expires_at' => "2022-03-18T09:03:54.000000Z", 'status' => "disabled", - 'description' => "fArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aee", - 'bear_point_shop_id' => "c26a1f4d-47e8-4b37-934d-bbbd8a0d5877" + 'description' => "00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoX", + 'bear_point_shop_id' => "0f58ed12-6757-4a8e-84a2-5ab381847212" ] ); try { @@ -297,14 +303,14 @@ public function testCreateCampaign10() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["8d5f94f1-c33f-4eba-a65a-42fce076c7a0", "5e3eea03-b0df-460b-85e0-4d86aff129af"], + 'applicable_shop_ids' => ["ca3f93a4-28a8-41d2-bc2c-c9f19bd0ed6c", "ef0af12b-4f17-4bd4-8898-3e2ce859c485", "d2de2059-5ffb-4cf7-8dde-700741016714", "6442c90f-854f-40bf-a580-5e1715c1dd73"], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -314,22 +320,22 @@ public function testCreateCampaign10() '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", "product_code" => "4912345678904", "is_multiply_by_count" => TRUE, "required_count" => 2] ], '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] ], - 'subject' => "all", + 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 8842, - 'point_expires_at' => "2020-04-12T11:16:41.000000Z", + 'point_expires_in_days' => 2386, + 'point_expires_at' => "2021-06-24T11:48:48.000000Z", 'status' => "enabled", - 'description' => "pK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnv", - 'bear_point_shop_id' => "6a2c137b-efae-429d-86fd-66da742c8290" + 'description' => "umGQVfUsw4hfYXr8Tws7k4", + 'bear_point_shop_id' => "08c1287b-3fb8-4192-b08c-e18740a510ff" ] ); try { @@ -345,44 +351,34 @@ public function testCreateCampaign11() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["f678dc65-55b6-458e-9455-d0578818651c", "d2b7e2a3-5bc6-4edf-a057-3e0f98f238c8", "941b4124-76a5-4bf9-bea7-201ba68d37b2", "728dcae2-9635-4d56-abf3-0eb50dd72467", "2620cf50-7575-4010-9ef6-750d02482490", "9a960fc8-c095-4b75-bb5d-588505e17641", "54b7b435-9148-47d7-9b20-e8499d927e11"], - 'applicable_days_of_week' => [0, 6], + 'applicable_shop_ids' => ["77b27466-25aa-46cc-8d87-f50e2f247b1b", "eb9d67fb-f920-4561-8f0b-7f28f82d049c", "4fb98b15-9034-43b4-bf17-0eced34e104a", "01ff14cd-212b-419b-8398-c7c3c9acb665", "d892228b-964a-4938-aaec-0613e4a6c82d", "27046f73-61c3-45e6-9eb1-b2da5e20cf11", "4d8f562f-97c7-49ae-ad7d-a6e6a581fa65", "0f3ba77f-9cb6-41e7-9319-7998146464b6"], + 'applicable_days_of_week' => [0, 2, 6], '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_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] ], '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] ], - 'subject' => "money", + 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1200, - 'point_expires_at' => "2020-07-25T03:35:11.000000Z", + 'point_expires_in_days' => 4601, + 'point_expires_at' => "2025-08-05T06:27:11.000000Z", 'status' => "disabled", - 'description' => "i9wNIa", - 'bear_point_shop_id' => "0f7a155d-a83b-4fca-afdb-69f988de0249" + 'description' => "U3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3P", + 'bear_point_shop_id' => "160b4878-9b92-4a6f-abfa-2e600c4d4a76" ] ); try { @@ -398,14 +394,14 @@ public function testCreateCampaign12() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["b3867cf0-bbc1-4c97-a0c4-2012a64f83f3", "9dfadc32-18c0-4d42-b45e-7891cc16a5f9", "6ce7b016-6742-4fb1-87a9-0b1192468b5a"], + 'applicable_shop_ids' => ["2dbdb904-d2ee-4d67-83d7-cc70c752ddc1"], 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -413,32 +409,31 @@ public function testCreateCampaign12() , ["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_days_of_week' => [3, 4, 3], + 'applicable_days_of_week' => [1, 0, 2, 2, 5], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] - , ["product_code" => "4912345678904", "classification_code" => "c123"] ], '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] ], '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] ], 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1216, - 'point_expires_at' => "2021-11-30T10:49:06.000000Z", + 'point_expires_in_days' => 6774, + 'point_expires_at' => "2022-01-14T12:55:57.000000Z", 'status' => "disabled", - 'description' => "KHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC97LHWaSOnIC", - 'bear_point_shop_id' => "b74c1a25-6788-4c0a-ba08-bc225a5bc4c2" + 'description' => "Nu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR", + 'bear_point_shop_id' => "8e4c4b91-425f-42a2-b213-5bc5a689a51f" ] ); try { @@ -454,41 +449,54 @@ public function testCreateCampaign13() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["bc66c96d-b42a-4547-8202-684b2523cebb", "a65e7169-048c-416f-b014-43aca29040a0", "081e6cf2-9e3d-4eae-a181-21d6f005e700", "d37e07b9-4cc6-427d-8975-7c345153ff37", "4a785fbe-17be-47d7-94e9-707d598c2c06", "6127c3df-2344-43e7-827c-2b947884536e", "9ce4d227-cd39-42d6-8aea-c89ba01a9d5f", "e5db62c5-2744-4089-b1de-22b7124c5d16", "cb1f736b-702e-4d6a-a84e-d93aabe8d129", "e9aee72f-0ff2-4f25-be32-edbeca7f851c"], - 'minimum_number_of_products' => 2052, + 'applicable_shop_ids' => ["4826c8bf-8719-46d7-a88c-a350b7a39824"], + 'minimum_number_of_products' => 7764, '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_days_of_week' => [5, 6, 3, 3, 5, 2, 2, 0], + 'applicable_days_of_week' => [0, 2, 6, 3, 3, 3, 4], '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_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] ], '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] ], 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 2327, - 'point_expires_at' => "2023-04-25T19:35:42.000000Z", - 'status' => "disabled", - 'description' => "IsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb35FzAfmkd3pduwUBkrqrvJ3GVs6GsJ8XiLApVwNY6zjKIEdqTZCuDots6", - 'bear_point_shop_id' => "e7a93a19-5f6f-4022-be1a-bbcf3d8b4af0" + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 5912, + 'point_expires_at' => "2022-10-10T00:56:20.000000Z", + 'status' => "enabled", + 'description' => "VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9F", + 'bear_point_shop_id' => "0092027d-de89-4375-b437-5fbe008317be" ] ); try { @@ -504,22 +512,23 @@ public function testCreateCampaign14() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["2948b319-2b0d-4008-8c6e-5d8314d81c92", "cbf452d8-65b5-4170-a165-b586c41d9aa6", "ce538f26-3b70-44f2-9857-2574578a5ad0", "06352c53-1cc7-44da-b2cc-6a399f86463b", "e719873f-27fd-42d5-a472-546d9c8a3581", "16b0a614-face-4925-ba12-92021ec74355"], - 'minimum_number_of_amount' => 6548, - 'minimum_number_of_products' => 4505, + 'applicable_shop_ids' => ["337f2c14-48e9-407d-86df-2344a47333e7", "5bf82582-667c-4b94-ae27-cd3914cc52d6", "ef30deca-faea-489b-9fc5-27440debf089", "7fe1bb31-06de-42b7-966b-702e82ac5d6a", "907303a8-9b4e-493a-a92f-0ff22eaacf25", "f389b07e-ea32-4dbe-9cb9-4803e9de3235", "a8d53a6e-5d87-443d-8e7b-4afb542d294d", "ddce0822-b152-402f-8893-c2ec3c21c332"], + 'minimum_number_of_amount' => 9233, + 'minimum_number_of_products' => 3142, '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"] ], - 'applicable_days_of_week' => [6, 2, 2, 6, 1, 6, 0], + 'applicable_days_of_week' => [3, 6, 0, 2, 2, 3, 1], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -534,25 +543,21 @@ public function testCreateCampaign14() , ["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] ], '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] - , ["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] ], - 'subject' => "money", + 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 985, - 'point_expires_at' => "2021-11-28T02:18:58.000000Z", - 'status' => "enabled", - 'description' => "bJ7yB2", - 'bear_point_shop_id' => "ecc5ca07-f27e-4475-afa3-bf8ed4ed632f" + 'point_expires_in_days' => 5164, + 'point_expires_at' => "2023-11-08T03:08:49.000000Z", + 'status' => "disabled", + 'description' => "5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbx", + 'bear_point_shop_id' => "d1a03e2d-e5e2-42b3-b5c6-447ae8477085" ] ); try { @@ -568,48 +573,47 @@ public function testCreateCampaign15() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["da8945c9-f762-45e4-9492-5cdc5733928e"], - 'minimum_number_for_combination_purchase' => 8185, - 'minimum_number_of_amount' => 3584, - 'minimum_number_of_products' => 4060, + 'applicable_shop_ids' => ["2c82aee6-006d-4796-baeb-41aa01e2de16", "ebbbdbe4-28b3-43f0-9ce4-25925d0806f5"], + 'minimum_number_for_combination_purchase' => 2600, + 'minimum_number_of_amount' => 1091, + 'minimum_number_of_products' => 6782, '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"] ], - 'applicable_days_of_week' => [6, 0, 6, 1, 4, 1, 3, 6, 0, 4], + 'applicable_days_of_week' => [6, 3, 3, 2, 1, 3], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] + , ["product_code" => "4912345678904", "classification_code" => "c123"] + , ["product_code" => "4912345678904", "classification_code" => "c123"] ], '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] ], '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] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], - 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 763, - 'point_expires_at' => "2022-07-22T19:41:52.000000Z", - 'status' => "enabled", - 'description' => "mao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0", - 'bear_point_shop_id' => "bcb2a5d5-6df3-4a7b-a69a-345f58bf30fd" + 'subject' => "all", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3776, + 'point_expires_at' => "2020-06-16T06:30:24.000000Z", + 'status' => "disabled", + 'description' => "6GsJ8XiLApVwNY6zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78", + 'bear_point_shop_id' => "635dd8eb-45e0-4f23-b17a-b8ca435f49dc" ] ); try { @@ -625,18 +629,18 @@ public function testCreateCampaign16() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["012767e6-158b-4047-9e96-41195097b9f2", "afbb0aca-5879-487f-8c4b-220b60855f14", "bc9270f3-46d2-41c8-aefd-d24633e2e750"], - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 1679, - 'minimum_number_of_amount' => 4465, - 'minimum_number_of_products' => 9417, + 'applicable_shop_ids' => ["bcb2a5d5-6df3-4a7b-a69a-345f58bf30fd"], + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 5516, + 'minimum_number_of_amount' => 9759, + 'minimum_number_of_products' => 8087, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -644,33 +648,33 @@ public function testCreateCampaign16() , ["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_days_of_week' => [4, 4, 6, 3], + 'applicable_days_of_week' => [2, 1, 4], '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_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] ], '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] ], - 'subject' => "all", + 'subject' => "money", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 7487, - 'point_expires_at' => "2023-10-02T10:29:02.000000Z", - 'status' => "enabled", - 'description' => "Rwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qc", - 'bear_point_shop_id' => "4419281d-734d-4fd1-b4a3-24b2d71d2a8a" + 'point_expires_in_days' => 4679, + 'point_expires_at' => "2022-01-24T15:40:00.000000Z", + 'status' => "disabled", + 'description' => "pRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLqn2ZuLk5GF2FUuyDVUpZnC5UYez0zM0cPoxe0DGq4e7wXOOVc8GIqj26qcMQ423OrAYOyd2", + 'bear_point_shop_id' => "ee6dc6b1-26a8-4995-bdcc-141c8befc116" ] ); try { @@ -686,19 +690,19 @@ public function testCreateCampaign17() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["b0c19c33-5ecf-4072-9040-08c1ed490259"], - 'max_point_amount' => 3476, + 'applicable_shop_ids' => ["bf27061c-56fc-49a9-a1a5-5a9c1f0e5d39"], + 'max_point_amount' => 1206, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 6629, - 'minimum_number_of_amount' => 2483, - 'minimum_number_of_products' => 1714, + 'minimum_number_for_combination_purchase' => 2237, + 'minimum_number_of_amount' => 9538, + 'minimum_number_of_products' => 3554, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -707,9 +711,8 @@ public function testCreateCampaign17() , ["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_days_of_week' => [5, 4, 4, 6, 6, 0], + 'applicable_days_of_week' => [2, 6, 2, 5, 0], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -719,25 +722,29 @@ public function testCreateCampaign17() , ["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_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", "product_code" => "4912345678904", "is_multiply_by_count" => TRUE, "required_count" => 2] ], '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] ], - 'subject' => "money", + 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1206, - 'point_expires_at' => "2021-04-24T18:55:56.000000Z", - 'status' => "disabled", - 'description' => "4JW0HS70OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRf", - 'bear_point_shop_id' => "1ca6c93f-f292-4c24-8e01-b2bca3a51eed" + 'point_expires_in_days' => 2656, + 'point_expires_at' => "2025-02-16T01:49:08.000000Z", + 'status' => "enabled", + 'description' => "0OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtR", + 'bear_point_shop_id' => "7d8d0b5f-c27b-492d-aa68-c830506c48bc" ] ); try { @@ -753,49 +760,60 @@ public function testCreateCampaign18() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["4c2d5af6-ff7e-41df-ab8d-1354aa99e04a", "62d656b8-af6a-45ad-906f-dfff5c9f6579", "314b55d4-0453-4e13-8e48-deff8efb58ed", "1bef0849-4f9e-441c-a0df-6eb2b475e12d", "dc849e73-b99f-41e5-a5b5-eafed047e8c0"], - 'max_total_point_amount' => 2057, - 'max_point_amount' => 2594, - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 2580, - 'minimum_number_of_amount' => 5096, - 'minimum_number_of_products' => 9935, + 'applicable_shop_ids' => ["e0178961-1bdd-4d76-97ef-f8ac011241ed", "90ec9e37-fe03-4c2e-9b69-f3532eeaed92", "88c7fc25-518e-4a5c-bcc6-ef9d5c316fc9", "0f5f5081-79cf-44b4-b55a-d3640da3c890", "3c7ec724-2774-470b-8a80-4b475d42776e", "b50d44b6-3d48-40bc-9c24-bf57236b4791", "911dab9b-1a25-4ccc-9d3c-53ab375e7c42"], + 'max_total_point_amount' => 9431, + 'max_point_amount' => 9842, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 3384, + 'minimum_number_of_amount' => 7115, + 'minimum_number_of_products' => 2848, '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_days_of_week' => [4, 3], + 'applicable_days_of_week' => [6, 1, 3], '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"] ], '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] ], '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] ], - 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 7614, - 'point_expires_at' => "2024-03-29T12:13:31.000000Z", + 'subject' => "money", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 5584, + 'point_expires_at' => "2022-11-27T14:56:55.000000Z", 'status' => "disabled", - 'description' => "v5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JKL8IsIw17O7EyRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b", - 'bear_point_shop_id' => "cda3f788-9e2c-4412-ab32-11af9b37a68e" + 'description' => "yRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJ", + 'bear_point_shop_id' => "7b804381-8d75-4f20-b49a-b801d39ba53b" ] ); try { @@ -811,32 +829,29 @@ public function testCreateCampaign19() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["41988eaf-65eb-453e-bb4d-b4207bc0c43b", "f6a4950a-ce63-42d3-9004-110b8e3bc572", "2a00056d-b7f4-49df-8b0e-d42240b76a2d", "3ae395a1-0c89-40b0-9c68-d16a744fff49", "53be3690-6b40-4bca-8175-ef20776230b4", "9aeace9a-b801-453b-8433-86f757ec61c2", "f1d62317-ed37-4473-91e3-677d5662cb57", "ef11b512-e2ab-4d6c-9969-78aaaee6805f"], - 'dest_private_money_id' => "ddae1a92-ed72-40f2-abea-362f58515136", - 'max_total_point_amount' => 985, - 'max_point_amount' => 2719, + 'applicable_shop_ids' => ["8ca82f33-86f7-41c2-9737-d473651b8291", "455c64e3-677d-4b57-92ab-0d6cf7288059", "201a1969-78aa-405f-9272-20f2c8525b2b", "c9883fea-362f-4136-989e-1b24c370216d", "92f100a0-437f-4bd8-84d9-54eff37a6571"], + 'dest_private_money_id' => "a04274a7-1b56-4ec5-be9e-bc7f561e8376", + 'max_total_point_amount' => 2935, + 'max_point_amount' => 2854, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 8558, - 'minimum_number_of_amount' => 161, - 'minimum_number_of_products' => 896, + 'minimum_number_for_combination_purchase' => 5368, + 'minimum_number_of_amount' => 6210, + 'minimum_number_of_products' => 6117, '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_days_of_week' => [1, 1, 6, 5, 6], + 'applicable_days_of_week' => [4, 3, 6, 5], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -844,6 +859,8 @@ public function testCreateCampaign19() , ["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_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] @@ -852,21 +869,18 @@ public function testCreateCampaign19() , ["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] ], '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] ], 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 6210, - 'point_expires_at' => "2021-03-03T15:31:17.000000Z", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 9413, + 'point_expires_at' => "2020-11-02T22:18:52.000000Z", 'status' => "disabled", - 'description' => "5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc4uS", - 'bear_point_shop_id' => "0d0484eb-0beb-491b-b282-0cc0840bd296" + 'description' => "uaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za", + 'bear_point_shop_id' => "0a19e7fd-1e31-4118-ae37-9dbdf9e353c9" ] ); try { @@ -882,31 +896,33 @@ public function testCreateCampaign20() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["553184f5-0a02-4cd3-92fc-08f7b3a3cd58", "c57cbb36-f240-4fd2-9e26-b57872739437", "5119de66-4089-42cf-85ef-2c46f2635e53", "96b01e9d-208d-478d-9116-d9692aa5c5c4", "03e1bb59-5bf0-4f8e-abd4-45c0f45f34bf", "99139508-bd3d-48d4-a7de-ee725cdf5588", "5cca8479-9980-4d14-b7a2-3e6bce3e3783"], + 'applicable_shop_ids' => ["5735c800-05bc-4a21-9729-880145ff8b1c", "f7fdf44d-2880-476c-9d72-e9bd3f7406df", "093ed6d6-5e31-4e13-a579-601eaa4ee730", "268334a5-f346-4223-9331-277fc0332c01"], 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'dest_private_money_id' => "bf08f39d-02ec-43a3-8502-2d56b0243fc4", - 'max_total_point_amount' => 1026, - 'max_point_amount' => 2603, - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 1420, - 'minimum_number_of_amount' => 7197, - 'minimum_number_of_products' => 9909, + 'dest_private_money_id' => "3a3e0db3-5c92-4471-8337-36fdb9adad69", + 'max_total_point_amount' => 3522, + 'max_point_amount' => 8179, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 2680, + 'minimum_number_of_amount' => 3710, + 'minimum_number_of_products' => 9236, '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_days_of_week' => [5], + 'applicable_days_of_week' => [6, 0], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -917,6 +933,11 @@ public function testCreateCampaign20() '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] ], '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] @@ -927,11 +948,11 @@ public function testCreateCampaign20() ], 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 7132, - 'point_expires_at' => "2023-08-06T22:29:37.000000Z", + 'point_expires_in_days' => 2476, + 'point_expires_at' => "2023-09-11T10:51:33.000000Z", 'status' => "disabled", - 'description' => "6Mwu12UeT7T", - 'bear_point_shop_id' => "98d49e06-8de8-4415-b5cc-344cbb3c1e67" + 'description' => "4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozoz", + 'bear_point_shop_id' => "4abeceac-1148-480b-932c-bd76a0051f89" ] ); try { @@ -947,47 +968,60 @@ public function testCreateCampaign21() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["da83b650-a554-4403-b2fa-a28ba2e47ebd", "37e89a15-f6c7-4da5-936b-01787181fe4f", "84b6674f-c67a-4a68-94a8-26f0dcf84e50", "4707df88-514c-4aa5-ae55-cffd4046cfbf", "b6061b3d-858c-4f85-91ae-289d1506125c", "7663347b-c458-43e5-a133-250ce043bae5", "e8f9343e-f954-4199-a740-c1af3679ccc2", "f9ab35ec-2650-43a3-b17a-8ae10a19e7fd", "0b9d1e31-7118-456e-b7bd-53c998386e5b", "ccc75ce3-c800-45bc-a157-8e29d6f68801"], + 'applicable_shop_ids' => ["3d00caa0-ee9e-43a4-b701-9f03d7944570", "b98bea53-60d5-40ac-aaee-fd32a72d3329", "f55092a9-9df6-4471-97f7-25e9bd7f7975", "011f763c-6131-46b4-9189-4e442fdffad6", "28a2cf09-8f3f-4248-bd47-f1a0334f90cf"], 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'dest_private_money_id' => "45ff8b1c-f44d-4880-ac9d-8472bfade9bd", - 'max_total_point_amount' => 1760, - 'max_point_amount' => 5847, + 'dest_private_money_id' => "d4cecef2-50db-47f3-a119-8b13b623cfa8", + 'max_total_point_amount' => 2250, + 'max_point_amount' => 8396, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 3604, - 'minimum_number_of_amount' => 3302, - 'minimum_number_of_products' => 2170, + 'minimum_number_for_combination_purchase' => 5391, + 'minimum_number_of_amount' => 9774, + 'minimum_number_of_products' => 3266, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [6, 3, 3, 1, 1, 3], + 'applicable_days_of_week' => [5, 2, 6, 4, 2, 6, 1], '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_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", "product_code" => "4912345678904", "is_multiply_by_count" => TRUE, "required_count" => 2] ], '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] ], 'subject' => "all", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 3522, - 'point_expires_at' => "2020-07-06T19:52:18.000000Z", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3860, + 'point_expires_at' => "2021-05-13T09:47:55.000000Z", 'status' => "enabled", - 'description' => "m76E35ql4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMnt", - 'bear_point_shop_id' => "1bcdaf2c-2423-4e7e-b949-b9d0dbba41fa" + 'description' => "jKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP", + 'bear_point_shop_id' => "07ac6128-9bad-4835-bd0d-f1af17913a5e" ] ); try { @@ -1003,62 +1037,58 @@ public function testCreateCampaign22() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'applicable_shop_ids' => ["7b209922-1c71-4512-9541-998997b4e089", "8a18dd98-c597-4fc7-a49d-46e1a34421a8", "223a548a-2e3f-4c00-9f2a-445bfd8047af"], - 'budget_caps_amount' => 464627699, + 'applicable_shop_ids' => ["3b720d61-2d7e-4419-8461-f57f72b08268", "f5e53ff6-f607-4faa-af28-1a71255b7e49", "355bf09c-8e66-4f17-978d-e9b3ac14dc48", "84564237-8fc8-4532-a732-382a3d081cd8", "b1b97a6d-09b9-4171-b968-73edd4434300"], + 'budget_caps_amount' => 1502919932, 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'dest_private_money_id' => "03ff9c2e-f48b-492d-a9dc-b008f21aa19b", - 'max_total_point_amount' => 8299, - 'max_point_amount' => 100, - 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 9484, - 'minimum_number_of_amount' => 1971, - 'minimum_number_of_products' => 2658, + 'dest_private_money_id' => "e19206a1-798b-46f2-8bc9-5d7a18eefa8c", + 'max_total_point_amount' => 2829, + 'max_point_amount' => 4143, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 1389, + 'minimum_number_of_amount' => 4875, + 'minimum_number_of_products' => 6288, '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"] - , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [5], + 'applicable_days_of_week' => [5, 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_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] ], '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] ], 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1140, - 'point_expires_at' => "2024-07-06T04:46:50.000000Z", + 'point_expires_in_days' => 5552, + 'point_expires_at' => "2020-10-02T00:14:24.000000Z", 'status' => "enabled", - 'description' => "8ozozHv7pSUjn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO", - 'bear_point_shop_id' => "73a9f787-0d81-4afd-b7b8-359063bf39d9" + 'description' => "gMO9grD73ccOw2h3Fa222nHBaN6510b", + 'bear_point_shop_id' => "048dd806-ee8c-4a9f-815d-dcc8f6655be4" ] ); try { @@ -1074,14 +1104,14 @@ public function testCreateCampaign23() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["f0dedae1-3796-4538-9446-aced079e7199", "80259ed8-22b0-4ee3-a3c1-53754b1281ed", "7500c915-6f1d-4d14-a367-642d255d6e09", "363b53f9-8b67-471a-a719-7534ee616ee3"] + 'blacklisted_shop_ids' => ["069024d6-3189-43d2-92d6-5bae8e24ec9f", "c14d9b98-981f-44f1-b44a-786281ee1ab7", "8bd8cc8c-a3c7-4395-8cc1-dd8b5577d818", "b9fd765f-5735-48ea-86e5-6912637239dd", "f7c75754-2f68-4f86-a1d7-063f74979522", "da7b0793-7535-4a71-9012-bff253082d0e", "4ca5fcb3-c4aa-4097-a193-9ff9d94e07c5", "44209de4-37b4-4ca3-80e4-be817beaeed8"] ] ); try { @@ -1097,15 +1127,15 @@ public function testCreateCampaign24() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["f41fba16-7dc5-4e61-b885-11d3471d376d", "ddd6aded-ecb8-45eb-ad94-deafc6832e81"], - 'bear_point_shop_id' => "9eaef0cf-37a8-40d9-8ffa-d49aebba4233" + 'blacklisted_shop_ids' => ["ffa25075-fd4c-418c-b0f2-4c59788ca0a3", "47439d73-7541-4ea7-bae0-e6868ac97591", "19e3cdb4-f95b-4333-809f-b44d261553ed", "7b26edc0-3628-4df8-8692-7236873e4968"], + 'bear_point_shop_id' => "9246eb09-2292-40f6-b055-118c7ed03d3e" ] ); try { @@ -1121,16 +1151,16 @@ public function testCreateCampaign25() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["7d201ab7-243f-4650-82bc-8f2f1482ce45", "73d59c9b-67e3-4450-bfbc-711943badc4e"], - 'description' => "NiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5", - 'bear_point_shop_id' => "db8bb1e8-4537-43eb-9f2c-4d9fc1d09b23" + 'blacklisted_shop_ids' => ["dc7d4ce7-c333-401a-bc19-f687c25d38c9", "014fdfce-0f70-4dff-b683-1e6967b26cb2", "e60e9b0f-51a0-4bab-bc12-4342201bc537"], + 'description' => "flubMg8I3PF", + 'bear_point_shop_id' => "4111dba0-01dd-4e27-9128-c0fa93b24958" ] ); try { @@ -1146,17 +1176,17 @@ public function testCreateCampaign26() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["13e39382-f370-4561-a01a-f285ec992a7f"], + 'blacklisted_shop_ids' => ["b86d95a0-2c98-41bb-9357-c0f5109f2d38", "8b100673-5c8b-4163-a9af-b22bbc28de2d", "faec44bc-28e8-4e71-977e-de2000a516f7", "8e636ed7-f6cb-41cc-8983-e3f36b6e56e7", "48017178-7d6f-4a92-b885-1fa198a1f5dc", "e51de9ab-8aa8-4e86-99de-34a8cb1405da", "61ac1f43-7351-4632-b4b4-7e31e03fb762", "ac103fec-3e89-4786-bb0a-ba89b2f85bcd", "1bce5174-e11d-4053-8f7f-1d5ad55ce648"], 'status' => "disabled", - 'description' => "HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP5taDahvoqIf3", - 'bear_point_shop_id' => "ac14dc48-4237-4fc8-b227-25321aac382a" + 'description' => "WLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1", + 'bear_point_shop_id' => "23d2aca0-c866-40a8-b9e2-d0388befa367" ] ); try { @@ -1172,18 +1202,18 @@ public function testCreateCampaign27() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["b1b97a6d-09b9-4171-b968-73edd4434300", "5994bcfb-06a1-498b-b2cb-0cc99a775d7a", "18eefa8c-0b0c-402e-a76c-d30a20b2188f", "e9bd158b-81c5-4661-bd02-02a466127005", "91ffff12-c800-44ff-a8af-20cea16a8fe0", "db309972-4c1e-460c-a7cd-70881f93000c", "375f325d-de4f-4e9d-b919-4393c37ed1e7", "57086ef2-e111-40c4-b7b3-0fe3a431c95f", "f278687f-48fe-4ffc-bee3-29cfd6be7e77"], - 'point_expires_at' => "2021-09-11T02:54:32.000000Z", - 'status' => "disabled", - 'description' => "Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtSOZHoWLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1", - 'bear_point_shop_id' => "23d2aca0-c866-40a8-b9e2-d0388befa367" + 'blacklisted_shop_ids' => ["7ffa20c9-8398-4e17-83cc-fdd0c8697ef1", "52f34884-bbf1-427e-af11-e8f70b7f01b4", "30d3411e-eca1-4cff-b126-2ea74b14d3c7", "9588bfb8-9d66-46cb-9c52-c41f501054dd", "b31ab973-4be9-4f2b-acea-305a0382fcd4", "c925a11f-9492-4ab9-ad5e-a541efc53e43"], + 'point_expires_at' => "2021-05-28T14:19:14.000000Z", + 'status' => "enabled", + 'description' => "FhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQoRlzuyxB2QGrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4", + 'bear_point_shop_id' => "abef2a19-7ced-4feb-b8b8-c6098b728b79" ] ); try { @@ -1199,19 +1229,19 @@ public function testCreateCampaign28() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["7ffa20c9-8398-4e17-83cc-fdd0c8697ef1", "52f34884-bbf1-427e-af11-e8f70b7f01b4", "30d3411e-eca1-4cff-b126-2ea74b14d3c7", "9588bfb8-9d66-46cb-9c52-c41f501054dd", "b31ab973-4be9-4f2b-acea-305a0382fcd4", "c925a11f-9492-4ab9-ad5e-a541efc53e43"], - 'point_expires_in_days' => 6883, - 'point_expires_at' => "2021-09-21T09:57:47.000000Z", + 'blacklisted_shop_ids' => ["5b0a69fe-0c2c-46ea-a052-beea24d755fe", "fe2f8397-3ab6-4670-b093-b923babbc04a", "4b89074c-4217-4d90-98ee-f76c91366a2d", "b61b9b65-24e3-4738-83ca-072d2cb8850f", "c727e64f-b25f-4c62-bfd8-2975ac0209d2", "a9cb86f3-efd0-4cd6-a546-eb989c28e995", "86d7a14a-6363-4109-b33f-e28ebdfffa28", "d49e01cf-d3c3-45c2-b9df-d06499c0d117", "85f3d28b-3e5a-4988-88ab-58964a4951b0", "851d2b15-49eb-4887-8901-72b075db872a"], + 'point_expires_in_days' => 263, + 'point_expires_at' => "2023-07-26T04:21:34.000000Z", 'status' => "disabled", - 'description' => "FhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat", - 'bear_point_shop_id' => "7e4f5fb1-d643-41cc-bce7-bf7efffcc382" + 'description' => "7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0O", + 'bear_point_shop_id' => "dd8e7727-94e1-4d1f-b153-fcbd505cc87a" ] ); try { @@ -1227,20 +1257,20 @@ public function testCreateCampaign29() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["76094c04-1b2a-4780-866f-ea52e50a866c", "8393a97a-baba-4375-a65f-225fac7c56f9"], + 'blacklisted_shop_ids' => ["6dc11dde-93a7-41ee-a6fe-4e4581a32a21", "495198c0-e074-40ff-8040-0c78a350d1ba", "afe847c1-f396-49db-96eb-7145472401a0", "b723ee14-f43c-466d-b708-9f737c661909", "7d3eaed7-3a0f-4a71-bf89-02824751b8fc", "75a2f5af-0328-4abb-8323-17f4747d086a", "972dcc7a-6f20-4d8f-bcef-eb3a23d8292b", "911150bb-af55-457f-a874-ad92aca3bedb", "6b0d642f-2900-4cd7-b841-be9916cd3594"], 'is_exclusive' => TRUE, - 'point_expires_in_days' => 6649, - 'point_expires_at' => "2020-12-10T22:43:37.000000Z", - 'status' => "enabled", - 'description' => "GrCPmQ415Et2SGqgy7Wowcm3CmFfxpyCPpsziVloAtynLsPgO9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4q", - 'bear_point_shop_id' => "85263c2a-4d53-4344-8363-64e5de6c85b1" + 'point_expires_in_days' => 5063, + 'point_expires_at' => "2023-06-03T00:22:24.000000Z", + 'status' => "disabled", + 'description' => "3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8h", + 'bear_point_shop_id' => "73508bd6-5dd6-4752-a8a6-a15a932cf485" ] ); try { @@ -1256,21 +1286,21 @@ public function testCreateCampaign30() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["05021e21-0f36-4247-8334-5e7756c002d0", "2cc2ea74-494c-456b-b616-b70dea5a76b3", "607d3fa6-3d5b-456f-ba1a-08fb23eaac12", "157dd434-2a19-4ced-abb8-9cb83ab4c609", "8b728b79-6759-49fe-acea-23e0fb8a3352", "1600beea-55fe-4397-b670-a5704109ee93", "647cb923-c04a-474c-9790-e098feeb1bee", "c70df76c-6a2d-4b65-a338-9303c292e3ca", "c10f072d-850f-464f-9f62-b53f373d61d8"], - 'subject' => "all", + 'blacklisted_shop_ids' => ["589d9511-c173-4a18-a1bf-822bd8b00686", "7b560730-cc7b-42d3-a844-9b25a18e20c1", "e41c6d31-5ba0-4591-9494-449ce75f4926", "6b2c1f1f-c4ac-4122-be7e-eeb4a2fc3a94", "7e363121-af95-4a6b-8878-9bc283668224", "4add5a68-4b9f-4103-b631-3b41fc2b7ca0", "07e621a1-c00e-4211-9ecf-36f99b8f71ff", "be4c2e0b-9a97-4c0a-b009-b86e72cb0012"], + 'subject' => "money", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 1780, - 'point_expires_at' => "2024-09-23T02:22:08.000000Z", - 'status' => "enabled", - 'description' => "FJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0Oa1SzxnfEtxAkEm7sW", - 'bear_point_shop_id' => "05193a0f-da71-487f-8982-b8fc75a2f5af" + 'point_expires_in_days' => 2937, + 'point_expires_at' => "2021-09-17T16:06:23.000000Z", + 'status' => "disabled", + 'description' => "zXXsopchwGQjGjB8", + 'bear_point_shop_id' => "d5ab1c18-a2f0-422a-b2f3-ec3a8d5cee56" ] ); try { @@ -1286,26 +1316,31 @@ public function testCreateCampaign31() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["aeaaaabb-5203-4323-b46a-cc7abe7a6f20", "10c5bd8f-bb7c-4def-ba2b-50bbcdbaaf55", "59f4257f-c8e8-4474-92db-642f7e4a2900", "5c30ecd7-a0f8-4441-9994-06a8305b93c6", "2e73566f-6b74-4beb-80c1-968ad0542b33", "ff18a69d-0bc7-4877-ab09-fbf0053e3bca", "99015236-fd10-44f0-952d-c5d72dcd19ea", "d764e1f6-9d73-43f8-bcc6-660edbb38829", "9803d5b7-e673-4589-8332-9998e856d3bf"], + 'blacklisted_shop_ids' => ["d24d7f29-85ec-4cff-96a4-8c632c80b717", "d2872331-2ac6-4d37-815c-a50dc530d395", "7b5e0b6a-77cf-4c10-8d82-6137eba4f1e2", "2ad1e44a-05f4-432d-9dcf-4fb70b6ccec4", "c491e06e-b881-426e-953b-b1e36bab9ab0", "61c91f81-533b-421d-ad39-c472e371fe0c", "f6e7c314-f686-4643-a047-4e4d50b82535", "a5cbbc03-be9a-475e-8268-b1f61961ef6c", "017fdffe-d022-46a2-89f9-cdfcf8775e06"], '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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], - 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 66, - 'point_expires_at' => "2020-09-09T06:53:10.000000Z", + 'subject' => "money", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 9537, + 'point_expires_at' => "2021-03-09T20:49:48.000000Z", 'status' => "enabled", - 'description' => "XivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQj", - 'bear_point_shop_id' => "16c854e0-78c7-48ea-8205-5d38d5ab1c18" + 'description' => "8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6Bwq", + 'bear_point_shop_id' => "cc1e4045-7904-4dbb-94ee-bc617ff74821" ] ); try { @@ -1321,14 +1356,14 @@ public function testCreateCampaign32() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["d20fe22a-36b2-41f3-ba56-1b28d24d7f29"], + 'blacklisted_shop_ids' => ["31dc4435-b342-4d67-a705-0e656388c754", "80a13c54-43f3-4bbb-9ed4-716412233358"], '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] @@ -1336,20 +1371,20 @@ public function testCreateCampaign32() , ["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] ], '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] ], - 'subject' => "all", + 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 9010, - 'point_expires_at' => "2023-08-22T01:13:42.000000Z", + 'point_expires_in_days' => 1176, + 'point_expires_at' => "2025-02-20T21:24:25.000000Z", 'status' => "disabled", - 'description' => "jO7bJtO7Dnnc0m9rCGM5hvlyZ4zlX8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU", - 'bear_point_shop_id' => "a5d49fdb-9839-4880-b99e-a5526e9daf98" + 'description' => "gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIq", + 'bear_point_shop_id' => "c7c281c4-b7d2-43d1-a2b8-6c6c505a180c" ] ); try { @@ -1365,14 +1400,14 @@ public function testCreateCampaign33() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["68221354-5e14-465a-9f4b-1a2fdc04a936", "a126a7b5-663f-467a-91cf-8ea189534368", "d9c311e9-cdec-4762-92a0-399aa49abb9e", "98d2941a-2af6-4844-a341-07ec9607c9fd"], + 'blacklisted_shop_ids' => ["b5f3afbe-fbe6-492c-9fb3-3e6c95a8f538", "d6f4662e-ad48-4951-ab1e-a9516c7b7f75"], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1380,23 +1415,20 @@ public function testCreateCampaign33() , ["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_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] ], 'amount_based_point_rules' => [["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 1596, - 'point_expires_at' => "2021-08-04T10:55:26.000000Z", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 9205, + 'point_expires_at' => "2020-02-13T15:54:21.000000Z", 'status' => "enabled", - 'description' => "Po9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9", - 'bear_point_shop_id' => "cc89b6dc-ef85-4e8c-a48a-f15c0593c167" + 'description' => "s2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h", + 'bear_point_shop_id' => "a281b693-fe5e-462c-ab04-f7859ce1b7b1" ] ); try { @@ -1412,15 +1444,15 @@ public function testCreateCampaign34() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["8e634bd0-eba2-4c04-9d0c-20976c29d3ef", "44c6d045-a70c-40b5-9016-8c8f7c26bc6e"], - 'applicable_days_of_week' => [2], + 'blacklisted_shop_ids' => ["c38cc520-e9ed-47d3-80e5-72b7594c4f7a", "ff078c0d-75b9-41a5-b558-c14a749bde99", "80013de5-c639-441b-a152-0fbd33612dc2", "dd9f6a4e-c947-451b-9946-50e9ac5b6b0c"], + 'applicable_days_of_week' => [2, 1, 4, 0, 6, 6, 5, 2, 3], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1430,30 +1462,19 @@ public function testCreateCampaign34() , ["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_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] ], '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] - , ["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] ], 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 5118, - 'point_expires_at' => "2023-07-19T02:13:29.000000Z", - 'status' => "enabled", - 'description' => "BQUZMwQEKQp536z2WYA1sx132uYplZstFpjBF", - 'bear_point_shop_id' => "75908251-fb79-44b9-8782-1aaf9be52c2e" + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 6812, + 'point_expires_at' => "2022-01-15T23:02:27.000000Z", + 'status' => "disabled", + 'description' => "OMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMb", + 'bear_point_shop_id' => "230c69c5-7d0a-452a-8b75-eda55a53c02f" ] ); try { @@ -1469,42 +1490,40 @@ public function testCreateCampaign35() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["faa9f295-c15a-4abb-adfa-441e429bf0be", "5db4fa0b-ca2d-4e03-bb2d-faa440690310", "301eea5e-373c-4237-be28-fc9ffbb5f08a"], + 'blacklisted_shop_ids' => ["cdbaf3dc-2c34-4384-811a-3ee64fdaff5e", "423c09f5-3f3f-4477-a3dc-f47d52a4aaf7", "1941fba8-0e65-45d4-abcd-d8f2466d83fd", "9b9ed327-18f7-4834-9884-53e6b70d18fc", "762d7f32-c614-4a64-802d-68a98415e77a", "9b4df14f-0c9a-4807-b7ec-801e18f8a318"], '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_days_of_week' => [6, 4, 3, 0, 4, 0, 4, 6, 1, 0], + 'applicable_days_of_week' => [4, 3, 4, 5, 5, 1, 0, 5, 2, 3], '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_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] ], '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] ], 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 2662, - 'point_expires_at' => "2023-03-18T07:49:31.000000Z", - 'status' => "disabled", - 'description' => "IwYSIqDRQ8l1f3l8HQkQuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCX", - 'bear_point_shop_id' => "63724785-f555-42e0-b270-9e9565db6dd7" + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 4630, + 'point_expires_at' => "2020-09-11T00:50:27.000000Z", + 'status' => "enabled", + 'description' => "pOWKljojyXNatscwZjWuBesyFuc4sWKFJn", + 'bear_point_shop_id' => "664c7d09-bb5f-4acc-8437-322904312ced" ] ); try { @@ -1520,48 +1539,49 @@ public function testCreateCampaign36() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["e6eba65e-350d-47a7-891d-d0891a45982f", "b58d178c-63c5-48df-8fee-57a705ebf3ab", "8dddedc7-a68d-40ab-aefb-a0657553984f"], - 'minimum_number_of_products' => 7327, + 'blacklisted_shop_ids' => ["7daec0f0-9651-4d9c-bb00-1ff0ca36abea", "e91a6744-e6e8-4001-ba46-91b507ad6927", "e637fd0a-e9c2-4279-8a00-145534a7177b", "508a885a-5e6f-4988-8b74-8fbb5770f68e"], + 'minimum_number_of_products' => 9995, '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_days_of_week' => [5, 6, 6, 3, 0, 4, 2], + 'applicable_days_of_week' => [0, 6, 4, 0, 3, 5], '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_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] ], '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] ], 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 4397, - 'point_expires_at' => "2020-12-18T16:30:48.000000Z", + 'point_expires_in_days' => 4663, + 'point_expires_at' => "2021-03-28T14:07:04.000000Z", 'status' => "disabled", - 'description' => "jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNatscwZjWuBesyFuc4sW", - 'bear_point_shop_id' => "84ba5e00-680e-484b-86ca-1ea4971ce21f" + 'description' => "9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQ", + 'bear_point_shop_id' => "9e9908ed-3a5f-4f90-8ea2-96bd9a0c2d23" ] ); try { @@ -1577,26 +1597,26 @@ public function testCreateCampaign37() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["c433bb5f-2acc-4244-b729-2ced4559679e", "fc75efb3-c0f0-4651-9cbb-61006def1ff0", "ca36abea-6744-46e8-813a-ab464d5591b5", "07ad6927-fd0a-49c2-b94a-730018cf1455", "34a7177b-885a-4e6f-88cb-2c74ba7d8fbb", "5770f68e-3571-470a-8255-b9e05fca121e", "76d69dcc-2da0-4363-a516-92f47613dfba", "0d2672d6-1023-4548-b6ca-ac88d507abfb", "f19ab7d9-96eb-4aa5-895f-ba03badf7182", "80fc6239-7163-4f42-88bc-5523c10ec0e4"], - 'minimum_number_of_amount' => 8347, - 'minimum_number_of_products' => 5465, + 'blacklisted_shop_ids' => ["a9e13225-7fd4-426a-810b-949b94518d54", "2d08b969-7e60-4c9b-ba34-33c6de9b42f6", "59fa2f21-7e0f-4fd4-afc2-93f93f7169dd", "3afd511e-a993-4a81-b172-bb8145c81699", "698ad8d3-a7c9-4c7a-af9b-20697fdd3d32", "d91d6b36-22cd-4b47-a770-8cd1e39a4928", "1fe9ccb9-7e3d-451d-a1c4-a04b5ee29ba3", "a6b51650-4284-4529-b308-1816756c0505"], + 'minimum_number_of_amount' => 8968, + 'minimum_number_of_products' => 2730, '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_days_of_week' => [4, 3, 5, 0, 0, 1, 2], + 'applicable_days_of_week' => [4, 0, 2, 0, 4, 3, 6], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] + , ["product_code" => "4912345678904", "classification_code" => "c123"] ], '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] @@ -1605,21 +1625,19 @@ public function testCreateCampaign37() , ["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] ], '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] ], 'subject' => "money", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 5965, - 'point_expires_at' => "2021-10-07T11:56:03.000000Z", - 'status' => "enabled", - 'description' => "GhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgp", - 'bear_point_shop_id' => "c7108cd1-4928-4cb9-bd1d-e0a1da0ddbc4" + 'point_expires_in_days' => 6051, + 'point_expires_at' => "2020-10-18T14:55:08.000000Z", + 'status' => "disabled", + 'description' => "qxLBzmQKSHkl", + 'bear_point_shop_id' => "0909ef8d-aaff-4aa3-9032-7747fd65f909" ] ); try { @@ -1635,21 +1653,29 @@ public function testCreateCampaign38() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["a6b51650-4284-4529-b308-1816756c0505", "3956a307-0aa9-48bf-bba5-bebd67e53906", "843c5ad4-fa58-41b2-b8fc-2a0b526959a6", "f5e65281-0fb6-49ec-a3e0-21e01b71b56c"], - 'minimum_number_for_combination_purchase' => 6051, - 'minimum_number_of_amount' => 3442, - 'minimum_number_of_products' => 6650, + 'blacklisted_shop_ids' => ["5bdafbfb-1a3f-405c-8e6a-65e6739c14a2", "b92904cb-78c6-459f-aba5-2db32d4a8ddf", "5599cb26-d578-4253-90ba-1623d0def9ce", "a076782b-13b2-4245-a194-13aaf8289375", "c8a6df5a-fc63-42db-a56b-716d64e853b4", "734c5275-e189-42d5-9fc8-87771d3d7316", "293ec243-c03c-48f6-934c-5b79470963c1", "3180ec26-dd16-49f9-a2d9-6da21cf89f0c", "2548fed9-8702-4dfd-a401-d60c734409a0"], + 'minimum_number_for_combination_purchase' => 7296, + 'minimum_number_of_amount' => 4397, + 'minimum_number_of_products' => 9173, '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"] + , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [6, 4, 1, 4, 2, 2, 5, 2, 4], + 'applicable_days_of_week' => [4, 4, 6], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] ], @@ -1657,6 +1683,7 @@ public function testCreateCampaign38() , ["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] ], '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] @@ -1667,14 +1694,15 @@ public function testCreateCampaign38() , ["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] ], 'subject' => "money", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 6508, - 'point_expires_at' => "2024-10-21T03:54:53.000000Z", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 7307, + 'point_expires_at' => "2020-06-19T20:23:54.000000Z", 'status' => "disabled", - 'description' => "P2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9qyaARxtZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUm", - 'bear_point_shop_id' => "753ab174-5d35-4114-ac67-f047315c18d3" + 'description' => "raJiLHRNzuStDZHp5MvhzfbMCo9qyaARx", + 'bear_point_shop_id' => "00c07ff4-fd3e-485d-a15a-ffa16d2ad75f" ] ); try { @@ -1690,61 +1718,51 @@ public function testCreateCampaign39() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["bceefe99-e932-4a53-a27c-7e177128b50c", "69d801c2-c212-47db-9213-e3501a90dee0", "5a542ba8-0961-44d9-8f65-76571851bf3f", "11b47af9-086e-476d-a8a8-0d5531198bd1", "79bb6adf-c63b-476b-8727-66da268cc290", "1e118498-22cd-4cf2-b4b2-5035a0382dd6", "1a2be490-92d7-4c01-99a9-de0f5d5cf6a3", "35ca5cdc-cfc8-4822-921a-98b776450450", "83cc536d-911f-471c-8175-2159459cc808"], - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 2699, - 'minimum_number_of_amount' => 5754, - 'minimum_number_of_products' => 8249, + 'blacklisted_shop_ids' => ["4b107df1-f60f-4ffb-bb9a-9ce7f8d657dd", "a4f79a42-2235-4566-b430-b4ebdd9beb01", "73f637a3-b0a2-4eae-b416-e2fb5416ba88", "cf11d5ea-3a66-4dd3-9834-4085a6adc37b", "01edc172-82e0-4cb5-ab0b-03a4b5fdcfe6"], + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 7501, + 'minimum_number_of_amount' => 6219, + 'minimum_number_of_products' => 1900, '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"] + , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [5, 1, 0, 5, 1, 1], + 'applicable_days_of_week' => [4], '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"] ], '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] ], '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] - , ["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] ], - 'subject' => "money", + 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1476, - 'point_expires_at' => "2020-05-06T15:28:57.000000Z", - 'status' => "disabled", - 'description' => "E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi", - 'bear_point_shop_id' => "0c0b76bf-833f-4da7-b980-4e98aeb00124" + 'point_expires_in_days' => 3995, + 'point_expires_at' => "2021-10-01T03:18:14.000000Z", + 'status' => "enabled", + 'description' => "gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt", + 'bear_point_shop_id' => "4d5d5d35-2114-492c-a747-18d38dcf747e" ] ); try { @@ -1760,35 +1778,25 @@ public function testCreateCampaign40() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["da5a1453-fdfe-4937-8d1b-4f9c9ef88a27", "702ac516-2a70-4a06-958f-887ed6f686ee"], - 'max_point_amount' => 5278, - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 585, - 'minimum_number_of_amount' => 3653, - 'minimum_number_of_products' => 6342, + 'blacklisted_shop_ids' => ["bceefe99-e932-4a53-a27c-7e177128b50c", "69d801c2-c212-47db-9213-e3501a90dee0", "5a542ba8-0961-44d9-8f65-76571851bf3f", "11b47af9-086e-476d-a8a8-0d5531198bd1", "79bb6adf-c63b-476b-8727-66da268cc290", "1e118498-22cd-4cf2-b4b2-5035a0382dd6", "1a2be490-92d7-4c01-99a9-de0f5d5cf6a3", "35ca5cdc-cfc8-4822-921a-98b776450450", "83cc536d-911f-471c-8175-2159459cc808"], + 'max_point_amount' => 1744, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 5754, + 'minimum_number_of_amount' => 8249, + 'minimum_number_of_products' => 9358, '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_days_of_week' => [4], + 'applicable_days_of_week' => [5], '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_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] @@ -1798,19 +1806,27 @@ public function testCreateCampaign40() , ["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] ], '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] + , ["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] ], 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 9572, - 'point_expires_at' => "2020-12-15T01:40:19.000000Z", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3520, + 'point_expires_at' => "2023-02-02T20:04:20.000000Z", 'status' => "disabled", - 'description' => "Q4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOlhJCzSIu3L4oB0QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rR", - 'bear_point_shop_id' => "67098ec0-a364-42b1-b0e2-ef6e275a5d44" + 'description' => "E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOl", + 'bear_point_shop_id' => "1c2c0ede-6902-495f-8e95-16e84aba1c82" ] ); try { @@ -1826,57 +1842,38 @@ public function testCreateCampaign41() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["166fb186-c850-4920-8bfb-18a8e6b1cbfe", "bf88ddef-83d3-4285-87d2-516e29b736cd", "7353ba34-f1fd-4cae-a2b0-b0c1ec139d3b", "3578f18c-d220-4b18-8086-185da9bb4b64", "f6fa9f02-5e62-4824-a632-dc0b463d0884", "1a0d3aec-1cf3-4b93-a348-ca8d4dbd958d"], - 'max_total_point_amount' => 3527, - 'max_point_amount' => 4035, + 'blacklisted_shop_ids' => ["dcc5cb9d-9800-4d93-ba53-2588274d9449", "5824b92e-a910-4607-8275-5e332598bd9d", "bba7524c-3334-4605-af96-aba5cecea9c2", "06cf879f-1f30-4487-838c-07a3c5668351"], + 'max_total_point_amount' => 1100, + 'max_point_amount' => 5483, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 6794, - 'minimum_number_of_amount' => 5041, - 'minimum_number_of_products' => 1258, + 'minimum_number_for_combination_purchase' => 9451, + 'minimum_number_of_amount' => 4266, + 'minimum_number_of_products' => 855, '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_days_of_week' => [5, 4, 6, 2, 6], + 'applicable_days_of_week' => [4, 0, 4, 6, 3, 6, 0, 4, 6], '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"] ], '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] ], 'amount_based_point_rules' => [["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], 'subject' => "money", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 6429, - 'point_expires_at' => "2020-08-18T16:44:28.000000Z", - 'status' => "enabled", - 'description' => "SR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRY", - 'bear_point_shop_id' => "6de13e9c-5ed4-4e66-85f8-3adcff680c67" + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 5441, + 'point_expires_at' => "2022-08-24T11:45:25.000000Z", + 'status' => "disabled", + 'description' => "JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4", + 'bear_point_shop_id' => "8ef5b770-fba8-4c26-9b4d-9befbc582743" ] ); try { @@ -1892,21 +1889,21 @@ public function testCreateCampaign42() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["0416c6d2-16a8-46e1-8fea-373c3a8e368f", "0ed18b9f-99a9-4ca4-9ecd-108a14ab0d36", "b1e514f3-d851-47de-a592-69bce870310e"], - 'dest_private_money_id' => "f049dabc-5c20-4f52-afe7-0d633bb3db25", - 'max_total_point_amount' => 8379, - 'max_point_amount' => 3031, + 'blacklisted_shop_ids' => ["e6257d2b-676b-4410-9c10-46bfa259f2f8", "3e860070-9753-4970-b111-97125ed3a22b", "61446d2a-ada9-4da8-a84b-9a8b1e69134c", "5c63b680-84c4-498c-a91f-a5f29954baf6", "454877e7-6aae-4d3c-933b-5c10536e4e21", "2854e789-de06-4452-af0e-acf69b8541ac", "b85d1842-99ae-45d6-b605-9dc14d8075d9", "78312e27-bf51-4ed0-b0ce-f91bb1a5fed0"], + 'dest_private_money_id' => "65378204-dd35-496f-8d05-5138df3e3c95", + 'max_total_point_amount' => 7938, + 'max_point_amount' => 4317, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 1102, - 'minimum_number_of_amount' => 9049, - 'minimum_number_of_products' => 2971, + 'minimum_number_for_combination_purchase' => 8855, + 'minimum_number_of_amount' => 2378, + 'minimum_number_of_products' => 8413, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -1918,36 +1915,27 @@ public function testCreateCampaign42() , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [4, 2, 0, 6, 5, 5, 4, 3], + 'applicable_days_of_week' => [1, 6, 6], '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_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", "product_code" => "4912345678904", "is_multiply_by_count" => TRUE, "required_count" => 2] ], '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] ], - 'subject' => "all", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 7319, - 'point_expires_at' => "2020-06-24T14:04:19.000000Z", - 'status' => "enabled", - 'description' => "Fy5ooXoXuzlRpCyCoZoaTfbTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887", - 'bear_point_shop_id' => "9dab27fb-ac27-4f6e-9a88-664ed67effab" + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 6661, + 'point_expires_at' => "2020-09-14T16:41:04.000000Z", + 'status' => "disabled", + 'description' => "KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0Xq", + 'bear_point_shop_id' => "bff96bf1-e04c-4207-b244-581b16796688" ] ); try { @@ -1963,40 +1951,45 @@ public function testCreateCampaign43() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["b794e6b1-6be5-4e00-a8b2-353f70e3b008", "918404ad-73aa-4a9b-9a36-e37d68e8f05a", "8b1db1df-328d-482c-9a57-40eb6ec42460", "9b0f6cbd-6465-45ca-9184-52107d4576a5", "365342a5-6593-4c79-9d0f-59fedd00846d", "cf1f6e37-235d-4fee-96a4-5a1bacdcb3b7", "b58a33c3-50fd-49fd-9c47-a52b70d21dbf"], + 'blacklisted_shop_ids' => ["7b55fd43-c0e4-43ce-9747-2e5c9bb65bf6", "4cf3ef21-1c21-4fb9-80d1-038fe7778c61", "e4dc1987-79ce-4800-be4d-9cedeb8e48f8", "2a4cbb18-dc58-4c32-9311-a73261d40166", "4b9d11d0-1a26-4c5c-a83b-2299b9221b36"], 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'dest_private_money_id' => "1cc65284-5f6d-410a-aa64-2d0aa0eb5299", - 'max_total_point_amount' => 4385, - 'max_point_amount' => 2995, + 'dest_private_money_id' => "d42ac8e6-f45c-4ba7-8e79-95b129eee133", + 'max_total_point_amount' => 7990, + 'max_point_amount' => 5890, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 4586, - 'minimum_number_of_amount' => 8585, - 'minimum_number_of_products' => 5844, + 'minimum_number_for_combination_purchase' => 1334, + 'minimum_number_of_amount' => 453, + 'minimum_number_of_products' => 5643, '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_days_of_week' => [2], + 'applicable_days_of_week' => [4, 5, 6, 6, 3, 3, 4, 2, 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"] ], '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] ], '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] @@ -2006,14 +1999,15 @@ public function testCreateCampaign43() , ["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] ], 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 8220, - 'point_expires_at' => "2020-02-12T18:27:42.000000Z", - 'status' => "disabled", - 'description' => "tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAy", - 'bear_point_shop_id' => "f9cc7ad0-1d39-49f6-8033-e18ff7e883ec" + 'point_expires_in_days' => 4593, + 'point_expires_at' => "2024-03-27T08:13:52.000000Z", + 'status' => "enabled", + 'description' => "Aw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdny2rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4laTFkcJAyP9v3lR5fJ1SC", + 'bear_point_shop_id' => "767bbf84-a85b-4cc6-b53c-c646f63b301d" ] ); try { @@ -2029,49 +2023,61 @@ public function testCreateCampaign44() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["6e357b0a-5f52-4b88-b560-5a664c06e117", "c5316fca-d7b1-4328-bbd3-b75e7ae96343"], + 'blacklisted_shop_ids' => ["9c635b5e-7d5d-408e-94d6-8671be3af2c3", "80273963-9436-4023-bbbb-7313b0fdfd7d", "292ed000-62b2-4943-b34c-755621d94a01"], 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'dest_private_money_id' => "767bbf84-a85b-4cc6-b53c-c646f63b301d", - 'max_total_point_amount' => 515, - 'max_point_amount' => 7007, - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 8335, - 'minimum_number_of_amount' => 5591, - 'minimum_number_of_products' => 1650, + 'dest_private_money_id' => "cb2e1220-a514-4400-9259-104b2282f150", + 'max_total_point_amount' => 4509, + 'max_point_amount' => 6010, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 3192, + 'minimum_number_of_amount' => 122, + 'minimum_number_of_products' => 9276, '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"] ], - 'applicable_days_of_week' => [6, 3, 3, 3], + 'applicable_days_of_week' => [1, 2, 1, 6], '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_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", "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] ], '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] ], - 'subject' => "all", + 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 2562, - 'point_expires_at' => "2021-05-02T16:24:48.000000Z", + 'point_expires_in_days' => 3780, + 'point_expires_at' => "2021-03-24T07:20:56.000000Z", 'status' => "enabled", - 'description' => "OwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzu", - 'bear_point_shop_id' => "4cf1593c-4367-4951-b067-61c51c54ae0f" + 'description' => "sObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL", + 'bear_point_shop_id' => "e490be31-b19a-4c14-bbd5-3d387267020e" ] ); try { @@ -2087,38 +2093,32 @@ public function testCreateCampaign45() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "QUyWaVgBaLWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggrznNWBV0p9BBTTp6AGpMMO3btHYGiB4Qalu6chDV2Pcj2ctvmZzuG53qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKIYRAl1UCuQycWgFlQrGdRqV", - "4811f464-3533-42c3-82fd-964958b8b996", - "2020-04-15T18:37:32.000000Z", - "2020-08-12T09:45:12.000000Z", - 3044, - "payment", + "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", + "ad4c1d63-f179-4042-a281-658f939209e2", + "2022-05-26T22:20:53.000000Z", + "2022-07-23T11:21:13.000000Z", + 3464, + "topup", [ - 'blacklisted_shop_ids' => ["d100ad5b-788d-4b8b-a9f0-9af357102acd", "080720ec-1a22-4f10-9d31-0f7fee4a506f", "ecc03601-d970-407e-9f13-a295cf74965c", "01b38253-d6b6-4afb-90d8-0b1d7f105556", "90eb0ecc-be31-419a-947b-ebd5e0353d38", "7267020e-ee76-4ae6-bead-1654f48a947e", "27c73781-6b50-40e7-a503-c8da90a1f1d1"], - 'budget_caps_amount' => 1775419358, + 'blacklisted_shop_ids' => ["f2b52ae6-ef7e-47ad-947e-378185246b50", "baae50e7-8ea5-4b03-9ad1-bfdd8e2f6f25", "74b5c092-3f1b-4aef-9eaa-a487ee6525c7", "bf0f3ca6-5158-4984-ab4c-0c251f6affdc", "4a174fba-77db-4784-bee2-918973a98db8", "e9e81068-cd54-437d-b50f-6df68f8b478c", "3ca7772e-8c7a-46e2-bfdb-c3e2cc7793c6"], + 'budget_caps_amount' => 361470586, 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'dest_private_money_id' => "8e2f6f25-c092-4f1b-afde-c1aa7c0fa487", - 'max_total_point_amount' => 9672, - 'max_point_amount' => 4441, - 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 940, - 'minimum_number_of_amount' => 9293, - 'minimum_number_of_products' => 3110, + 'dest_private_money_id' => "0cad39ab-3073-4b4c-8ad6-97a108e60f00", + 'max_total_point_amount' => 9104, + 'max_point_amount' => 6073, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 4630, + 'minimum_number_of_amount' => 4968, + 'minimum_number_of_products' => 9964, '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"] ], - 'applicable_days_of_week' => [1, 0, 0], + 'applicable_days_of_week' => [5, 2, 2, 0, 3, 4, 3, 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_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] @@ -2126,6 +2126,10 @@ public function testCreateCampaign45() , ["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] ], '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] @@ -2134,14 +2138,15 @@ public function testCreateCampaign45() , ["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] ], 'subject' => "money", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 3195, - 'point_expires_at' => "2020-07-25T06:57:38.000000Z", - 'status' => "disabled", - 'description' => "ysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuSerVgt5xpThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uK", - 'bear_point_shop_id' => "3be6ddfe-3dd7-4c2e-9a68-a7a04b90476a" + 'point_expires_in_days' => 1833, + 'point_expires_at' => "2025-09-15T17:39:47.000000Z", + 'status' => "enabled", + 'description' => "Ia6s2Oi", + 'bear_point_shop_id' => "2acdd953-e4b4-4929-b497-735e52177dc0" ] ); try { diff --git a/tests/CreateCashtrayTest.php b/tests/CreateCashtrayTest.php index 3d5e245c..6fbde510 100644 --- a/tests/CreateCashtrayTest.php +++ b/tests/CreateCashtrayTest.php @@ -8,9 +8,9 @@ public function testCreateCashtray0() { $client = $this->newClient(); $request = new Request\CreateCashtray( - "05dfcc03-205e-41c9-a860-72bda745bb1d", - "4eb5cc68-de08-4a5d-8f46-8900eff9f69d", - 6991.0 + "5ca2bbb1-3216-48f0-b171-26ec05dfcc03", + "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68", + 7688.0 ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testCreateCashtray1() { $client = $this->newClient(); $request = new Request\CreateCashtray( - "05dfcc03-205e-41c9-a860-72bda745bb1d", - "4eb5cc68-de08-4a5d-8f46-8900eff9f69d", - 6991.0, + "5ca2bbb1-3216-48f0-b171-26ec05dfcc03", + "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68", + 7688.0, [ - 'expires_in' => 3740 + 'expires_in' => 2305 ] ); try { @@ -45,12 +45,12 @@ public function testCreateCashtray2() { $client = $this->newClient(); $request = new Request\CreateCashtray( - "05dfcc03-205e-41c9-a860-72bda745bb1d", - "4eb5cc68-de08-4a5d-8f46-8900eff9f69d", - 6991.0, + "5ca2bbb1-3216-48f0-b171-26ec05dfcc03", + "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68", + 7688.0, [ - 'description' => "e3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6a", - 'expires_in' => 5308 + 'description' => "KkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJ", + 'expires_in' => 4682 ] ); try { diff --git a/tests/CreateCheckTest.php b/tests/CreateCheckTest.php index 8764097e..2143f2dd 100644 --- a/tests/CreateCheckTest.php +++ b/tests/CreateCheckTest.php @@ -8,9 +8,9 @@ public function testCreateCheck0() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 9410.0 + 'money_amount' => 4069.0 ] ); try { @@ -26,10 +26,10 @@ public function testCreateCheck1() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 8482.0, - 'description' => "6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXXM3Y5XPxnjF" + 'money_amount' => 1565.0, + 'description' => "1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZed" ] ); try { @@ -45,11 +45,11 @@ public function testCreateCheck2() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 9448.0, - 'is_onetime' => TRUE, - 'description' => "YgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp" + 'money_amount' => 7956.0, + 'is_onetime' => FALSE, + 'description' => "LbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2I" ] ); try { @@ -65,12 +65,12 @@ public function testCreateCheck3() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 3210.0, - 'usage_limit' => 6298, - 'is_onetime' => TRUE, - 'description' => "5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47Xe" + 'money_amount' => 5158.0, + 'usage_limit' => 2569, + 'is_onetime' => FALSE, + 'description' => "flsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoA" ] ); try { @@ -86,13 +86,13 @@ public function testCreateCheck4() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 4346.0, - 'expires_at' => "2022-03-26T18:20:47.000000Z", - 'usage_limit' => 1113, - 'is_onetime' => FALSE, - 'description' => "aQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2IRflsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnh" + 'money_amount' => 8588.0, + 'expires_at' => "2021-01-26T06:24:15.000000Z", + 'usage_limit' => 5493, + 'is_onetime' => TRUE, + 'description' => "PSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT" ] ); try { @@ -108,14 +108,14 @@ public function testCreateCheck5() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 4677.0, - 'point_expires_at' => "2020-12-02T11:49:10.000000Z", - 'expires_at' => "2021-03-16T21:57:04.000000Z", - 'usage_limit' => 8337, - 'is_onetime' => FALSE, - 'description' => "VfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAb" + 'money_amount' => 4511.0, + 'point_expires_at' => "2023-03-20T09:30:14.000000Z", + 'expires_at' => "2023-07-08T20:47:28.000000Z", + 'usage_limit' => 9856, + 'is_onetime' => TRUE, + 'description' => "YocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72t" ] ); try { @@ -131,15 +131,15 @@ public function testCreateCheck6() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 5887.0, - 'point_expires_in_days' => 8507, - 'point_expires_at' => "2024-02-28T08:15:03.000000Z", - 'expires_at' => "2023-12-03T05:36:08.000000Z", - 'usage_limit' => 6826, + 'money_amount' => 3947.0, + 'point_expires_in_days' => 9709, + 'point_expires_at' => "2022-11-26T07:13:31.000000Z", + 'expires_at' => "2022-08-28T18:06:55.000000Z", + 'usage_limit' => 3877, 'is_onetime' => TRUE, - 'description' => "HRtQBqCHsxk71kIOiSHcZ37" + 'description' => "yikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrz" ] ); try { @@ -155,16 +155,16 @@ public function testCreateCheck7() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 4969.0, - 'bear_point_account' => "c3bf7a17-5d0d-41ef-aa60-9a20234a6eee", - 'point_expires_in_days' => 5740, - 'point_expires_at' => "2022-03-09T10:21:43.000000Z", - 'expires_at' => "2023-05-17T17:33:30.000000Z", - 'usage_limit' => 3506, + 'money_amount' => 5978.0, + 'bear_point_account' => "60eaa0bd-34e2-43cd-94ea-b5804c63cca1", + 'point_expires_in_days' => 4926, + 'point_expires_at' => "2022-05-11T05:10:00.000000Z", + 'expires_at' => "2023-04-12T03:55:47.000000Z", + 'usage_limit' => 481, 'is_onetime' => TRUE, - 'description' => "3qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQ" + 'description' => "Uv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzK" ] ); try { @@ -180,10 +180,10 @@ public function testCreateCheck8() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 1926.0, - 'point_amount' => 1737.0 + 'money_amount' => 8777.0, + 'point_amount' => 8833.0 ] ); try { @@ -199,11 +199,11 @@ public function testCreateCheck9() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 3633.0, - 'point_amount' => 9333.0, - 'description' => "CwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApo" + 'money_amount' => 2840.0, + 'point_amount' => 966.0, + 'description' => "cpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQb" ] ); try { @@ -219,12 +219,12 @@ public function testCreateCheck10() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 9105.0, - 'point_amount' => 1004.0, - 'is_onetime' => TRUE, - 'description' => "rzZbMjGbqCaDUv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5Az" + 'money_amount' => 5144.0, + 'point_amount' => 453.0, + 'is_onetime' => FALSE, + 'description' => "VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63d" ] ); try { @@ -240,13 +240,13 @@ public function testCreateCheck11() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 9132.0, - 'point_amount' => 465.0, - 'usage_limit' => 8034, - 'is_onetime' => FALSE, - 'description' => "E5VhNxjrtNh84WLuHKWoYQpDL" + 'money_amount' => 8402.0, + 'point_amount' => 4676.0, + 'usage_limit' => 125, + 'is_onetime' => TRUE, + 'description' => "xKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6" ] ); try { @@ -262,14 +262,14 @@ public function testCreateCheck12() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 2676.0, - 'point_amount' => 5322.0, - 'expires_at' => "2024-03-10T02:31:21.000000Z", - 'usage_limit' => 7962, + 'money_amount' => 4802.0, + 'point_amount' => 4362.0, + 'expires_at' => "2020-03-01T15:51:02.000000Z", + 'usage_limit' => 6251, 'is_onetime' => FALSE, - 'description' => "WbDVy6Ss7attO0" + 'description' => "23xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6Hyc" ] ); try { @@ -285,15 +285,15 @@ public function testCreateCheck13() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 5779.0, - 'point_amount' => 6184.0, - 'point_expires_at' => "2021-10-19T08:15:57.000000Z", - 'expires_at' => "2020-04-27T09:52:11.000000Z", - 'usage_limit' => 2593, - 'is_onetime' => TRUE, - 'description' => "Z2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu" + 'money_amount' => 5463.0, + 'point_amount' => 5744.0, + 'point_expires_at' => "2023-05-20T10:59:17.000000Z", + 'expires_at' => "2023-07-08T18:55:00.000000Z", + 'usage_limit' => 7133, + 'is_onetime' => FALSE, + 'description' => "5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahn" ] ); try { @@ -309,16 +309,16 @@ public function testCreateCheck14() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 6601.0, - 'point_amount' => 7035.0, - 'point_expires_in_days' => 3528, - 'point_expires_at' => "2021-10-21T23:47:41.000000Z", - 'expires_at' => "2022-05-27T09:41:16.000000Z", - 'usage_limit' => 2708, - 'is_onetime' => TRUE, - 'description' => "b57N6Bfk723xgVJhWc2FL" + 'money_amount' => 230.0, + 'point_amount' => 2523.0, + 'point_expires_in_days' => 4402, + 'point_expires_at' => "2022-03-23T18:42:19.000000Z", + 'expires_at' => "2021-12-25T08:01:12.000000Z", + 'usage_limit' => 4946, + 'is_onetime' => FALSE, + 'description' => "DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmz" ] ); try { @@ -334,17 +334,17 @@ public function testCreateCheck15() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'money_amount' => 3205.0, - 'point_amount' => 6411.0, - 'bear_point_account' => "964f5ced-a5f5-40b9-852d-2fd21b587a7c", - 'point_expires_in_days' => 2485, - 'point_expires_at' => "2020-12-27T05:32:39.000000Z", - 'expires_at' => "2024-10-01T08:57:54.000000Z", - 'usage_limit' => 817, + 'money_amount' => 5821.0, + 'point_amount' => 4366.0, + 'bear_point_account' => "4de7aa21-f45b-4775-ba3b-3da7b2f82f8c", + 'point_expires_in_days' => 6040, + 'point_expires_at' => "2024-04-13T00:45:37.000000Z", + 'expires_at' => "2024-12-18T05:23:19.000000Z", + 'usage_limit' => 5918, 'is_onetime' => FALSE, - 'description' => "FfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd" + 'description' => "OOmiUvKwyiQYSSoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr" ] ); try { @@ -360,9 +360,9 @@ public function testCreateCheck16() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'point_amount' => 1701.0 + 'point_amount' => 1185.0 ] ); try { @@ -378,10 +378,10 @@ public function testCreateCheck17() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'point_amount' => 6900.0, - 'description' => "p1lylHobnm6HycWppeOG5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQY" + 'point_amount' => 133.0, + 'description' => "Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQ" ] ); try { @@ -397,11 +397,11 @@ public function testCreateCheck18() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'point_amount' => 4691.0, - 'is_onetime' => TRUE, - 'description' => "SoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkD" + 'point_amount' => 2757.0, + 'is_onetime' => FALSE, + 'description' => "IhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLi" ] ); try { @@ -417,12 +417,12 @@ public function testCreateCheck19() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'point_amount' => 93.0, - 'usage_limit' => 2886, - 'is_onetime' => FALSE, - 'description' => "GmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w" + 'point_amount' => 7675.0, + 'usage_limit' => 4642, + 'is_onetime' => TRUE, + 'description' => "TT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5" ] ); try { @@ -438,13 +438,13 @@ public function testCreateCheck20() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'point_amount' => 8001.0, - 'expires_at' => "2022-12-01T00:06:04.000000Z", - 'usage_limit' => 5044, + 'point_amount' => 6469.0, + 'expires_at' => "2020-07-18T03:30:33.000000Z", + 'usage_limit' => 6615, 'is_onetime' => TRUE, - 'description' => "MRFhBa1KS" + 'description' => "c6DIDKem3xaXPio5o0" ] ); try { @@ -460,14 +460,14 @@ public function testCreateCheck21() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'point_amount' => 7226.0, - 'point_expires_at' => "2023-06-01T14:20:15.000000Z", - 'expires_at' => "2022-08-21T00:16:06.000000Z", - 'usage_limit' => 6434, - 'is_onetime' => FALSE, - 'description' => "AtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4" + 'point_amount' => 6281.0, + 'point_expires_at' => "2024-04-17T16:46:41.000000Z", + 'expires_at' => "2023-03-09T16:35:05.000000Z", + 'usage_limit' => 4472, + 'is_onetime' => TRUE, + 'description' => "yrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQxP1XNaA4tMwkt9CE" ] ); try { @@ -483,15 +483,15 @@ public function testCreateCheck22() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'point_amount' => 8059.0, - 'point_expires_in_days' => 9472, - 'point_expires_at' => "2021-05-25T04:18:07.000000Z", - 'expires_at' => "2020-09-12T18:57:04.000000Z", - 'usage_limit' => 6469, - 'is_onetime' => FALSE, - 'description' => "c6DIDKem3xaXPio5o0" + 'point_amount' => 2633.0, + 'point_expires_in_days' => 9272, + 'point_expires_at' => "2023-11-11T19:30:07.000000Z", + 'expires_at' => "2020-09-03T18:15:08.000000Z", + 'usage_limit' => 9855, + 'is_onetime' => TRUE, + 'description' => "2Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDH" ] ); try { @@ -507,16 +507,16 @@ public function testCreateCheck23() { $client = $this->newClient(); $request = new Request\CreateCheck( - "c88e2d1d-1b1f-45da-a392-319bc72de1bf", + "1218966b-259f-47a0-8426-0e620a5da89b", [ - 'point_amount' => 6281.0, - 'bear_point_account' => "08141bf1-29b9-4178-b0e9-675585186008", - 'point_expires_in_days' => 4352, - 'point_expires_at' => "2022-03-21T21:06:35.000000Z", - 'expires_at' => "2020-08-30T05:34:49.000000Z", - 'usage_limit' => 2690, - 'is_onetime' => FALSE, - 'description' => "rfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvP" + 'point_amount' => 1601.0, + 'bear_point_account' => "e42bcecd-ef88-41b5-8a64-f5aa201b788a", + 'point_expires_in_days' => 7264, + 'point_expires_at' => "2021-02-14T22:09:27.000000Z", + 'expires_at' => "2021-09-27T00:04:06.000000Z", + 'usage_limit' => 5547, + 'is_onetime' => TRUE, + 'description' => "W8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDKBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9O" ] ); try { diff --git a/tests/CreateCouponTest.php b/tests/CreateCouponTest.php index 887202b2..566cbd23 100644 --- a/tests/CreateCouponTest.php +++ b/tests/CreateCouponTest.php @@ -8,13 +8,13 @@ public function testCreateCoupon0() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 4231 + 'discount_amount' => 1652 ] ); try { @@ -30,14 +30,14 @@ public function testCreateCoupon1() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 4951, - 'storage_id' => "d84ac553-48de-4ebc-b6a0-cd3c35abde5f" + 'discount_amount' => 5260, + 'storage_id' => "7033b9a0-1891-4bb9-bbcd-c0ae3d8f5dba" ] ); try { @@ -53,15 +53,15 @@ public function testCreateCoupon2() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 7197, - 'min_amount' => 5909, - 'storage_id' => "75a26806-89c9-4df5-8ead-b62cb0901895" + 'discount_amount' => 5087, + 'min_amount' => 5576, + 'storage_id' => "60e30a97-574b-4b17-811b-a94b37f49ab4" ] ); try { @@ -77,16 +77,16 @@ public function testCreateCoupon3() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 484, - 'usage_limit' => 3836, - 'min_amount' => 2869, - 'storage_id' => "514deb0a-664f-4a8d-86ce-e9f28ea389da" + 'discount_amount' => 8386, + 'usage_limit' => 1711, + 'min_amount' => 2743, + 'storage_id' => "4be306f3-704a-4234-b2b4-37e0787a3040" ] ); try { @@ -102,17 +102,17 @@ public function testCreateCoupon4() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 1624, - 'code' => "R72QaN", - 'usage_limit' => 8306, - 'min_amount' => 8410, - 'storage_id' => "de0a0ef0-8f7a-4497-a7d9-6f84b17bd7af" + 'discount_amount' => 8262, + 'code' => "7dkeP", + 'usage_limit' => 4539, + 'min_amount' => 4628, + 'storage_id' => "ad06a318-3398-4311-a207-cef05010cbf2" ] ); try { @@ -128,18 +128,18 @@ public function testCreateCoupon5() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 2218, + 'discount_amount' => 2331, 'is_public' => TRUE, - 'code' => "cTDx", - 'usage_limit' => 2189, - 'min_amount' => 5760, - 'storage_id' => "52fd1577-a495-4a69-a4ae-afef2b1fcb4b" + 'code' => "qXJLC9", + 'usage_limit' => 3524, + 'min_amount' => 9964, + 'storage_id' => "4bdfda0e-9e27-4d1e-8708-6fa123467822" ] ); try { @@ -155,19 +155,19 @@ public function testCreateCoupon6() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 5131, + 'discount_amount' => 9578, 'is_hidden' => TRUE, - 'is_public' => TRUE, - 'code' => "gH4IlA440", - 'usage_limit' => 6566, - 'min_amount' => 515, - 'storage_id' => "318eb936-7638-47c0-a9e5-f17607984b2b" + 'is_public' => FALSE, + 'code' => "Yc", + 'usage_limit' => 1115, + 'min_amount' => 437, + 'storage_id' => "898a7733-e75b-425c-ab02-a901188a9c05" ] ); try { @@ -183,20 +183,20 @@ public function testCreateCoupon7() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 793, + 'discount_amount' => 7028, 'is_disabled' => TRUE, 'is_hidden' => FALSE, - 'is_public' => TRUE, - 'code' => "tMBS", - 'usage_limit' => 4631, - 'min_amount' => 7095, - 'storage_id' => "2b025638-1c99-4417-b8e9-52a1fed9156c" + 'is_public' => FALSE, + 'code' => "D", + 'usage_limit' => 1150, + 'min_amount' => 482, + 'storage_id' => "5cf27213-7406-450f-be70-b906bc11e64e" ] ); try { @@ -212,21 +212,21 @@ public function testCreateCoupon8() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 2144, - 'display_ends_at' => "2024-01-11T13:13:31.000000Z", - 'is_disabled' => TRUE, + 'discount_amount' => 1132, + 'display_ends_at' => "2023-09-22T17:22:23.000000Z", + 'is_disabled' => FALSE, 'is_hidden' => FALSE, 'is_public' => TRUE, - 'code' => "UEqSzLy9", - 'usage_limit' => 8696, - 'min_amount' => 4042, - 'storage_id' => "35688bf8-2eca-463b-b134-8e68f41cc17f" + 'code' => "IqFEpEzlkb", + 'usage_limit' => 6104, + 'min_amount' => 2850, + 'storage_id' => "ac034b73-d584-445e-a83e-30dcd0cf40c8" ] ); try { @@ -242,22 +242,22 @@ public function testCreateCoupon9() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 6728, - 'display_starts_at' => "2021-11-30T00:58:55.000000Z", - 'display_ends_at' => "2023-07-08T11:32:17.000000Z", - 'is_disabled' => TRUE, - 'is_hidden' => TRUE, + 'discount_amount' => 4965, + 'display_starts_at' => "2025-01-14T01:00:59.000000Z", + 'display_ends_at' => "2020-12-06T13:27:21.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => FALSE, 'is_public' => TRUE, - 'code' => "YVg", - 'usage_limit' => 6040, - 'min_amount' => 8406, - 'storage_id' => "b37db7ea-54cb-4edd-99fa-3c46d0ef4d68" + 'code' => "R7zZjof", + 'usage_limit' => 7512, + 'min_amount' => 9518, + 'storage_id' => "e89fee8a-1bff-4d25-8770-bd3821dd4d71" ] ); try { @@ -273,23 +273,23 @@ public function testCreateCoupon10() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 3109, - 'discount_upper_limit' => 8449, - 'display_starts_at' => "2021-08-29T19:05:04.000000Z", - 'display_ends_at' => "2020-11-22T20:28:29.000000Z", + 'discount_amount' => 7169, + 'discount_upper_limit' => 4290, + 'display_starts_at' => "2022-06-08T04:18:09.000000Z", + 'display_ends_at' => "2025-08-11T13:10:07.000000Z", 'is_disabled' => TRUE, - 'is_hidden' => FALSE, + 'is_hidden' => TRUE, 'is_public' => TRUE, - 'code' => "YV64qe5o2B", - 'usage_limit' => 2303, - 'min_amount' => 7968, - 'storage_id' => "832f5a6c-ae12-484c-ad25-22d822fc2d81" + 'code' => "6Vch", + 'usage_limit' => 257, + 'min_amount' => 8481, + 'storage_id' => "b66aa2aa-2748-4918-bc77-584f51b8f33d" ] ); try { @@ -305,24 +305,24 @@ public function testCreateCoupon11() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 2916, - 'description' => "k5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkePprAJuqXJLC9DlGjqYc53kHtf9cD7bpNKlOmIqFEpEzlkbZXsHeK96R7zZjofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTBWthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnu", - 'discount_upper_limit' => 2791, - 'display_starts_at' => "2022-06-02T04:21:48.000000Z", - 'display_ends_at' => "2021-09-23T20:24:17.000000Z", + 'discount_amount' => 1965, + 'description' => "SBaSPaNKxM4bPYPan8UYIRAISeS032nbwP9uwXrTBWthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1cKhV863o3fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2MaByNhkorzLzXS7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T90aOF7qLZJG", + 'discount_upper_limit' => 6999, + 'display_starts_at' => "2023-02-17T12:59:14.000000Z", + 'display_ends_at' => "2025-02-15T13:48:00.000000Z", 'is_disabled' => TRUE, 'is_hidden' => TRUE, 'is_public' => FALSE, - 'code' => "A", - 'usage_limit' => 37, - 'min_amount' => 1544, - 'storage_id' => "3d6b48fd-be4b-44a0-bc0f-65f4bd4a72db" + 'code' => "8mYG8iBp", + 'usage_limit' => 9003, + 'min_amount' => 519, + 'storage_id' => "a4c4c6af-5741-450a-b98e-4ef786cfcea6" ] ); try { @@ -338,15 +338,15 @@ public function testCreateCoupon12() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 2882, - 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["5f137aae-6fe8-4fe6-af24-8747804e67a5", "80fc5352-fd02-4c12-b8b7-2540576f9b90", "993967c7-bcee-4b87-bf24-5f238d5e9bbc", "0ca79f23-fafa-4d1f-821d-5de23e7cac44", "7f2082f4-9223-4ff1-8ea9-ca80e84c03ac", "a0b7d697-8fb5-4c9f-8b33-306c4fc21ee6"] + 'discount_amount' => 439, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["f444e5e5-6306-47f2-bf81-e3cbfaad056d", "56bb459c-03a6-434d-bd44-f428b55af8ca", "0f495d1f-d189-452f-844e-78b9a4672a3e", "a35fa222-862f-4204-beeb-f63d59435b6a", "fe28456e-a185-4f2a-9f04-23aa54f0369a", "5f4b473f-83c5-4d2b-8174-762f396b5957", "de7779eb-6d2c-440c-8ddb-7231b753c330"] ] ); try { @@ -362,16 +362,16 @@ public function testCreateCoupon13() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 7535, + 'discount_amount' => 7545, 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["09ba1615-9953-4223-a8af-788c0bedb74d", "2786c8c3-5cb6-4375-88c4-911e961ee1bd", "320bc724-6e26-4efe-bb28-8807b850eb32", "a01ea56f-102c-4f8a-9ab5-01512e83d42a"], - 'storage_id' => "7458c5f0-52fb-4544-b7c7-458b4231f158" + 'available_shop_ids' => ["09583827-43da-4293-8cc3-5cb38dcddded", "799adb74-119c-47bd-81ae-4b1608c888b5", "afc00aa5-424e-4ee2-83a2-2c663736bcae", "b9d4f3a3-d25d-4cea-8474-228afa3b30ae", "e9785497-c4f8-4346-9ffc-b4d8df5a02e8"], + 'storage_id' => "d3ae5c4a-c8db-4ca3-99a3-7f48f488f4f9" ] ); try { @@ -387,17 +387,17 @@ public function testCreateCoupon14() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 803, - 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["fab8e0e6-c366-443b-bcd8-2255185b601d", "dacde49c-01db-4822-b4dc-840657f08c3e", "fb5b1058-6fc2-433b-967b-b0e6c1784bb9", "2980f2ef-4ae6-418a-a232-8bcddc2a3c61", "27d392c2-830f-4792-949a-ebf9ae6defce"], - 'min_amount' => 8672, - 'storage_id' => "fdcc6168-91a3-406b-a221-d76f5e2a538a" + 'discount_amount' => 4512, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["ecf16d17-21bc-4b65-b3bc-8f60c83f0284", "963b4390-0f60-47ad-ad38-7df9d5775e76", "54836e4d-95b1-4ed3-a37b-bcc5be4dcd63", "201adefa-5fcc-4366-8f1a-1eb32cdaf362", "4bc015a4-532c-4b8e-a725-b20fc3f371e3", "d6c31202-144d-44d3-a075-5acb4c302ebd", "1128e664-2df1-4b33-86f3-f609ade1300e", "61052515-5082-4f28-9eec-177d6ab7c647", "d8952262-d18a-47eb-8807-51264406a515"], + 'min_amount' => 958, + 'storage_id' => "a30796a3-3168-4178-a220-26e2f3f2071b" ] ); try { @@ -413,18 +413,18 @@ public function testCreateCoupon15() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 9384, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["53525172-1dfa-49cc-a0ab-fbfa027fbb58", "fac19b3c-fc53-4824-8037-87f3ca77110f", "8dc380bf-67e1-4808-b837-9269fbf85cd9", "2b787224-d14f-4fd0-af99-f63de7a49823", "6dbe566c-97c1-4cea-b5a4-ff29786779d5", "3df40799-b6ec-4ecd-84f8-ccefbde4e85e", "77f61983-ef36-49e9-a744-42e1ab6e4802", "f899cdf2-c5dd-4e6c-aa1d-323fe83c889c"], - 'usage_limit' => 1432, - 'min_amount' => 9240, - 'storage_id' => "4bd9fc4d-0e44-41fa-8e4a-7ac382aa7e25" + 'discount_amount' => 3122, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["6963beab-ea6d-424f-9a98-51836523fc9f", "b1af9f29-3f86-4f52-966a-d91cd1d7e3b1", "83a71a5e-5d79-4599-84bc-5b66ffa7de07", "4eaf406b-26d0-4aaf-bdbe-027b6c03d2f1", "7f9bf865-0b75-4a92-8a8a-483759329423", "ee4b1e2a-173c-4e92-8ed6-70146075451f", "07492c97-4d98-4d1e-a647-11faf4f38207"], + 'usage_limit' => 9241, + 'min_amount' => 3048, + 'storage_id' => "38f7bc84-d71d-4243-b87a-3cc486803686" ] ); try { @@ -440,19 +440,19 @@ public function testCreateCoupon16() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 1335, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["74790682-03cd-4f01-80c1-91eb2f03b6c6", "540e12d9-9928-463e-8ea3-de6571e4e06d", "0db1e09b-ca6b-427a-9af0-cdf635cb20ad", "216fcc86-2fc4-4b8f-b6ef-9d5cd9dfffe7", "656a8c0c-c4b0-4b12-acbb-9f047886a867", "29994a6c-36cc-4c76-b254-33a0f354f239", "c9e37030-bd1b-4111-a105-1203b1a37ecf", "bfcd2117-9dc6-4cb7-9c7b-16f1822d1cbe"], - 'code' => "JG", - 'usage_limit' => 6999, - 'min_amount' => 4893, - 'storage_id' => "e5e39922-ba10-4846-9c99-03d7afde911c" + 'discount_amount' => 2400, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["5c41ada0-92c5-4250-a64a-f03e560c287f", "c545fd2a-ee73-405c-811d-79f2f6514e27", "d3d658c3-c13f-4b88-96b0-c89aa523c371", "f44896c5-f076-418a-828a-6f4ae04ca1ff", "30a4a404-bd28-4350-b0fc-920d0607d356", "5183c33b-e600-4cc0-af84-df5e892bc916", "b59a29a3-c33d-4c04-b11c-2097bab9ebb7", "8758db37-0896-4850-bcf5-ecd99f230aef"], + 'code' => "FV", + 'usage_limit' => 1565, + 'min_amount' => 2276, + 'storage_id' => "303b3d9a-1f29-42c4-8588-fefd89a07d38" ] ); try { @@ -468,20 +468,20 @@ public function testCreateCoupon17() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 6456, + 'discount_amount' => 8803, 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["25403afc-9047-4721-bf38-05e9e35bcf98", "a1ee9e42-d215-48f0-a52b-0207a4c4c6af", "a6165741-650a-4db9-8ef7-cea63c86e7cb", "45e2f294-01b7-46fc-8ac6-e5e531376306", "0978c7f2-707f-4281-8b6d-459c848d03a6", "a149f34d-e03d-4d44-a8ca-5d1f79d9d189", "3ba8852f-c744-494e-b93e-a222aff5862f", "101e4204-a1be-48eb-bd6a-456eb587a185", "49afdf2a-191f-4504-aa9a-473f3ad883c5", "e7193d2b-c041-4674-af57-79eb6c346d2c"], + 'available_shop_ids' => ["d4aca829-ba66-4b93-a93e-6309946576b3", "8eed0ee9-9296-46aa-b58b-6b7f163185de", "19a89ff1-1dc6-422a-87c2-d24327bf382a", "a1452348-b65d-4dd9-9870-3fcc9eb37fbe", "e89ea638-a6cf-42c4-8276-942bbf2dbff7"], 'is_public' => TRUE, - 'code' => "0y", - 'usage_limit' => 986, - 'min_amount' => 659, - 'storage_id' => "a4cc108c-afc3-4cb3-ad74-119cc76627bd" + 'code' => "aMAc0JPV", + 'usage_limit' => 8322, + 'min_amount' => 1978, + 'storage_id' => "2c0b1ea2-e02e-4c76-9018-585fa28aaee8" ] ); try { @@ -497,21 +497,21 @@ public function testCreateCoupon18() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 5038, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["afc00aa5-424e-4ee2-83a2-2c663736bcae", "b9d4f3a3-d25d-4cea-8474-228afa3b30ae", "e9785497-c4f8-4346-9ffc-b4d8df5a02e8", "d3ae5c4a-c8db-4ca3-99a3-7f48f488f4f9", "bfbd11a0-1eda-4e2f-9ff8-6d17c13321bc", "2dee5b65-7fb3-48bc-a084-43909e1a0f60"], + 'discount_amount' => 876, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["bd693b97-7331-4cfd-9474-43eb50501383"], 'is_hidden' => FALSE, - 'is_public' => FALSE, - 'code' => "yvM1SEczL", - 'usage_limit' => 9062, - 'min_amount' => 7859, - 'storage_id' => "2cdaf362-15a4-432c-8e27-a8251a6cb20f" + 'is_public' => TRUE, + 'code' => "QHQhhRs2PI", + 'usage_limit' => 7694, + 'min_amount' => 9569, + 'storage_id' => "1e2bbcfb-aea7-4816-aba8-c93d2ff7017f" ] ); try { @@ -527,22 +527,22 @@ public function testCreateCoupon19() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 4610, - 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["b2b58c20-1875-4acb-bd64-2df1ef482b33", "81de0046-9ff3-4609-8e15-50829ef99f28", "f67f359e-9eec-477d-8762-d18a18c4e7eb", "e047f1c8-5e07-4126-956f-ab31d10d7dff"], - 'is_disabled' => TRUE, - 'is_hidden' => FALSE, + 'discount_amount' => 1378, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["892f69d1-7f31-4cdf-9707-31f9b7c70778", "781ff27e-20f8-4a0a-b6ac-576960942c50", "75e58658-0cb8-4524-9591-c477d08e584e", "91795556-e11f-4670-8320-ab4ea3c74555", "c4c4b379-a369-4645-85a6-04fa9433459d", "b3bdfe41-fe70-4ccb-9f4d-5a7c875ea41c", "53361dbb-3ab6-4836-9abd-1dde493f4840", "46aa28a1-eaeb-4ec5-8f86-fe4f72f5880c", "101fe03c-1874-486f-91a0-c501aab66db1"], + 'is_disabled' => FALSE, + 'is_hidden' => TRUE, 'is_public' => TRUE, - 'code' => "hxbb", - 'usage_limit' => 1819, - 'min_amount' => 3122, - 'storage_id' => "5f166e75-1b26-4eab-ad4f-061ab0ae3e98" + 'code' => "c", + 'usage_limit' => 889, + 'min_amount' => 1191, + 'storage_id' => "dc11ebad-29a0-4280-9cc4-7c5c46a8182c" ] ); try { @@ -558,23 +558,23 @@ public function testCreateCoupon20() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 4483, + 'discount_amount' => 4877, 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["ff693f86-3f52-4456-aa1c-e3b183a71a5e", "ad605d79-7599-4844-bc66-de074eaf406b", "154926d0-4aaf-463d-be7b-d2f17f9bf865", "f89b0b75-da92-488a-8a37-9423ee4b1e2a", "6d2a173c-0e92-478e-9614-451f07492c97", "210b4d98-6d1e-41a6-87fa-82075be5a419", "8e9bf5be-cbe8-4c84-9d43-0af8c88b1e7a", "1bbf3cc4-3686-4960-a7ea-1e875c41ada0", "557692c5-1250-4526-8a3e-287fc545fd2a", "22e6ee73-105c-44c1-9df2-4e27d3d658c3"], - 'display_ends_at' => "2023-02-04T18:21:51.000000Z", - 'is_disabled' => TRUE, + 'available_shop_ids' => ["18de54cf-2627-45dd-89d7-d29e78bd9f7c", "f8f20a5e-0180-4256-b726-b02abe027def"], + 'display_ends_at' => "2025-04-30T11:06:46.000000Z", + 'is_disabled' => FALSE, 'is_hidden' => TRUE, - 'is_public' => TRUE, - 'code' => "Ev", - 'usage_limit' => 394, - 'min_amount' => 3074, - 'storage_id' => "c93d2d8a-6f4a-41ff-8428-b350f080c270" + 'is_public' => FALSE, + 'code' => "YbDKlivy", + 'usage_limit' => 2499, + 'min_amount' => 9591, + 'storage_id' => "d80e34bf-1640-46d3-8ea4-7317c4e175f3" ] ); try { @@ -590,24 +590,24 @@ public function testCreateCoupon21() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 4621, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["e6344cc0-f66f-4484-9e16-29a3bd46c33d"], - 'display_starts_at' => "2020-04-23T22:26:36.000000Z", - 'display_ends_at' => "2023-02-26T06:52:07.000000Z", - 'is_disabled' => FALSE, + 'discount_amount' => 9604, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["010ac9f1-65d8-4943-9b9a-8c951ab36b43", "eaf71d65-afd4-44e2-b702-fcf0d9e1019a", "6d505039-956a-417a-8925-b3e0bc9a8041", "92ac7a6d-de6b-49d6-99e5-2419ae00197e", "2c6a791f-9501-4779-bc60-6e1611f579a3"], + 'display_starts_at' => "2020-08-28T10:01:06.000000Z", + 'display_ends_at' => "2020-05-28T10:34:08.000000Z", + 'is_disabled' => TRUE, 'is_hidden' => FALSE, 'is_public' => TRUE, - 'code' => "u", - 'usage_limit' => 2799, - 'min_amount' => 2270, - 'storage_id' => "700a99d6-061d-4853-a49a-1f29804aa2c4" + 'code' => "1", + 'usage_limit' => 2588, + 'min_amount' => 4057, + 'storage_id' => "61a7a3f2-15fa-47f5-90f2-f16bdc11b00f" ] ); try { @@ -623,25 +623,25 @@ public function testCreateCoupon22() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 6597, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["852b6263-c5ff-4b54-a966-2b93703396a9", "32cc383e-6309-46b3-a996-66aaf8553d35", "7a00ab8b-6b7f-45de-b1c6-b22a90e3c0c7", "459103c2-d243-482a-885d-8dd9b9f80998", "a5e48a70-3fcc-4fbe-b8cf-c2c4f8394342", "cca78476-942b-4ff7-8a7d-3ce70ba4c161", "92e66a4d-7c8e-41c1-96e3-afb00de08ebd", "9c421dca-4ed0-4dd6-82ba-1ea20b7de02e", "0744fc76-fd90-4b18-9fe8-836c18afbe07"], - 'discount_upper_limit' => 4032, - 'display_starts_at' => "2024-03-04T04:55:13.000000Z", - 'display_ends_at' => "2023-11-26T03:18:44.000000Z", + 'discount_amount' => 2346, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["9b2ce793-bc9c-4387-bbc9-0f8ff14162bb", "5f3f9bc1-c7f7-4063-8a36-b35eacb61ab3"], + 'discount_upper_limit' => 5001, + 'display_starts_at' => "2024-03-28T16:27:24.000000Z", + 'display_ends_at' => "2021-01-03T22:30:03.000000Z", 'is_disabled' => TRUE, - 'is_hidden' => FALSE, - 'is_public' => FALSE, - 'code' => "rYQHQhhR", - 'usage_limit' => 4355, - 'min_amount' => 3392, - 'storage_id' => "8633b2b2-d5d0-43c9-8e61-bcfbb2feaea7" + 'is_hidden' => TRUE, + 'is_public' => TRUE, + 'code' => "rF", + 'usage_limit' => 5901, + 'min_amount' => 9491, + 'storage_id' => "7394ee64-0f6a-4a07-841e-6303ead7e18b" ] ); try { @@ -657,26 +657,26 @@ public function testCreateCoupon23() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_amount' => 2070, - 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["ca9bc93d-017f-4f6f-a662-39865ebbbecd", "2cd716a8-69d1-4f31-9fd7-2207321431f9", "b7c70778-f27e-40f8-8a36-30ac9cd35769", "60942c50-8658-4cb8-a495-6991753ac477", "d08e584e-5556-411f-b043-ae20a255ab4e", "a3c74555-b379-4369-8505-f7a6ef9204fa", "9433459d-fe41-4e70-8bdf-9b4d76305a7c", "875ea41c-1dbb-4ab6-b6da-51bd9c9b1dde", "493f4840-28a1-4aeb-858f-8b86cf5bfe4f"], - 'description' => "to1oTpzcZyDOI", - 'discount_upper_limit' => 4567, - 'display_starts_at' => "2021-09-10T19:35:58.000000Z", - 'display_ends_at' => "2024-08-24T06:41:00.000000Z", + 'discount_amount' => 4312, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["bc19f443-26c5-44d4-a06c-9d1856d67637", "c50b9b36-66ad-4d83-a727-88b451592775", "385ea431-ee00-4d93-a245-897b0a43ec55", "5469767c-d80a-4a75-9b8f-ce2ecfa24cda", "7c4a2ea7-69f3-4721-a53c-59daced7402a", "8dd15ed8-eda4-4345-9b90-27e9ab588807", "8cece700-bbe7-47f3-9822-a0c8ff36fe16"], + 'description' => "q2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m", + 'discount_upper_limit' => 6042, + 'display_starts_at' => "2023-08-12T22:59:42.000000Z", + 'display_ends_at' => "2020-10-11T18:25:58.000000Z", 'is_disabled' => TRUE, - 'is_hidden' => TRUE, + 'is_hidden' => FALSE, 'is_public' => TRUE, - 'code' => "oFQcmGYb", - 'usage_limit' => 6827, - 'min_amount' => 7805, - 'storage_id' => "dd6f1c44-364b-4d02-ac05-23e9d718f386" + 'code' => "4", + 'usage_limit' => 3336, + 'min_amount' => 5789, + 'storage_id' => "e0a172e3-3f23-4945-8bbe-5981d0ab5c65" ] ); try { @@ -692,13 +692,13 @@ public function testCreateCoupon24() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 3342.0 + 'discount_percentage' => 4040.0 ] ); try { @@ -714,14 +714,14 @@ public function testCreateCoupon25() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 9334.0, - 'storage_id' => "f1f87b79-f99a-48f2-83c3-2d8586fbfef2" + 'discount_percentage' => 5234.0, + 'storage_id' => "b318c1ae-11bb-4926-b436-eb3370e78305" ] ); try { @@ -737,15 +737,15 @@ public function testCreateCoupon26() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 9591.0, - 'min_amount' => 5696, - 'storage_id' => "97f1d6d3-1bce-46a4-97f3-65843f0af64f" + 'discount_percentage' => 8727.0, + 'min_amount' => 2203, + 'storage_id' => "00a728ec-e896-46d2-9cd8-e4dee993b89b" ] ); try { @@ -761,16 +761,16 @@ public function testCreateCoupon27() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 9292.0, - 'usage_limit' => 2701, - 'min_amount' => 2148, - 'storage_id' => "010ac9f1-65d8-4943-9b9a-8c951ab36b43" + 'discount_percentage' => 6612.0, + 'usage_limit' => 7666, + 'min_amount' => 2847, + 'storage_id' => "68524588-a469-403f-8dd0-2902327b4cab" ] ); try { @@ -786,17 +786,17 @@ public function testCreateCoupon28() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 7525.0, - 'code' => "bwp9j", - 'usage_limit' => 4474, - 'min_amount' => 65, - 'storage_id' => "92ac7a6d-de6b-49d6-99e5-2419ae00197e" + 'discount_percentage' => 8048.0, + 'code' => "0j1CI", + 'usage_limit' => 9139, + 'min_amount' => 8812, + 'storage_id' => "f8686f3d-bdb6-4d9d-94ca-f214ca063810" ] ); try { @@ -812,18 +812,18 @@ public function testCreateCoupon29() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 5377.0, - 'is_public' => FALSE, - 'code' => "b", - 'usage_limit' => 1521, - 'min_amount' => 8098, - 'storage_id' => "5fb8fb70-6331-4a1c-99f2-15fa6527a7f5" + 'discount_percentage' => 6129.0, + 'is_public' => TRUE, + 'code' => "jXV2f", + 'usage_limit' => 8505, + 'min_amount' => 4187, + 'storage_id' => "4f3f253b-57b9-4024-ad7e-39d09cb349cf" ] ); try { @@ -839,19 +839,19 @@ public function testCreateCoupon30() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 6160.0, - 'is_hidden' => TRUE, - 'is_public' => FALSE, - 'code' => "IA", - 'usage_limit' => 2039, - 'min_amount' => 4195, - 'storage_id' => "564af7ca-5336-435e-b3f8-e8b22e1cf857" + 'discount_percentage' => 9638.0, + 'is_hidden' => FALSE, + 'is_public' => TRUE, + 'code' => "1e", + 'usage_limit' => 5609, + 'min_amount' => 6570, + 'storage_id' => "d0b5abd7-7139-4840-98d2-e5ad3731253a" ] ); try { @@ -867,20 +867,20 @@ public function testCreateCoupon31() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 5001.0, + 'discount_percentage' => 629.0, 'is_disabled' => TRUE, 'is_hidden' => TRUE, - 'is_public' => FALSE, - 'code' => "qrFdjX6", - 'usage_limit' => 9925, - 'min_amount' => 3936, - 'storage_id' => "afda826c-9d18-4637-b6ad-6d833f6a0aa7" + 'is_public' => TRUE, + 'code' => "XLsbYmrfH", + 'usage_limit' => 1408, + 'min_amount' => 933, + 'storage_id' => "beeaeb57-00b6-4fa3-9fc1-c51021177765" ] ); try { @@ -896,21 +896,21 @@ public function testCreateCoupon32() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 9255.0, - 'display_ends_at' => "2022-05-28T00:15:48.000000Z", + 'discount_percentage' => 4635.0, + 'display_ends_at' => "2023-12-10T00:55:04.000000Z", 'is_disabled' => FALSE, - 'is_hidden' => FALSE, - 'is_public' => TRUE, - 'code' => "bEUu", - 'usage_limit' => 9103, - 'min_amount' => 3630, - 'storage_id' => "cfa24cda-2ea7-49f3-a1a5-223c315959da" + 'is_hidden' => TRUE, + 'is_public' => FALSE, + 'code' => "u9jSykyDM", + 'usage_limit' => 6165, + 'min_amount' => 5141, + 'storage_id' => "8e269f26-f402-4778-aadb-b7d1604dc668" ] ); try { @@ -926,22 +926,22 @@ public function testCreateCoupon33() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 42.0, - 'display_starts_at' => "2023-05-22T02:08:36.000000Z", - 'display_ends_at' => "2024-02-14T13:59:55.000000Z", + 'discount_percentage' => 9389.0, + 'display_starts_at' => "2024-04-12T00:32:28.000000Z", + 'display_ends_at' => "2025-08-03T16:34:08.000000Z", 'is_disabled' => TRUE, - 'is_hidden' => FALSE, + 'is_hidden' => TRUE, 'is_public' => FALSE, - 'code' => "g", - 'usage_limit' => 6131, - 'min_amount' => 8392, - 'storage_id' => "ff36fe16-a047-4186-b132-0c6f4e6e6ce6" + 'code' => "qsNkUwp", + 'usage_limit' => 2564, + 'min_amount' => 8157, + 'storage_id' => "8a19749b-c16e-4fde-b84f-924ae4809762" ] ); try { @@ -957,23 +957,23 @@ public function testCreateCoupon34() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 6334.0, - 'discount_upper_limit' => 8477, - 'display_starts_at' => "2021-09-24T10:41:03.000000Z", - 'display_ends_at' => "2021-01-30T11:38:19.000000Z", + 'discount_percentage' => 1150.0, + 'discount_upper_limit' => 782, + 'display_starts_at' => "2022-11-06T13:22:02.000000Z", + 'display_ends_at' => "2021-02-16T08:52:36.000000Z", 'is_disabled' => TRUE, - 'is_hidden' => FALSE, - 'is_public' => TRUE, - 'code' => "Y5BXgC", - 'usage_limit' => 2191, - 'min_amount' => 1084, - 'storage_id' => "0cfb2493-c47b-4d3a-aa1a-4ec9a9292679" + 'is_hidden' => TRUE, + 'is_public' => FALSE, + 'code' => "5NaDqvIkEg", + 'usage_limit' => 6914, + 'min_amount' => 3797, + 'storage_id' => "298f0d91-6abf-4131-a947-894aa1e2916f" ] ); try { @@ -989,24 +989,24 @@ public function testCreateCoupon35() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 9104.0, - 'description' => "IJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgSDOAS6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l6J30", - 'discount_upper_limit' => 6129, - 'display_starts_at' => "2024-05-19T20:19:14.000000Z", - 'display_ends_at' => "2023-01-27T19:12:04.000000Z", + 'discount_percentage' => 420.0, + 'description' => "eu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUxfHdkFZrSjoj4E906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3U", + 'discount_upper_limit' => 5565, + 'display_starts_at' => "2023-10-28T02:22:16.000000Z", + 'display_ends_at' => "2020-03-05T19:18:32.000000Z", 'is_disabled' => TRUE, 'is_hidden' => TRUE, 'is_public' => FALSE, - 'code' => "V2f99mPOo", - 'usage_limit' => 7020, - 'min_amount' => 3441, - 'storage_id' => "acdb7731-efba-4565-9ee9-99aad0b5abd7" + 'code' => "TuFX", + 'usage_limit' => 6751, + 'min_amount' => 9718, + 'storage_id' => "e8d9374a-c281-46d4-b2eb-1699428f08b8" ] ); try { @@ -1022,15 +1022,15 @@ public function testCreateCoupon36() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 6208.0, + 'discount_percentage' => 16.0, 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["b3bee5ad-253a-4275-bece-b41a3138fa5e", "66df94c8-e01f-49d8-9ecc-6673ff7ae318", "b5f64f62-52a5-42fd-996d-565d85fc3aac"] + 'available_shop_ids' => ["3b0ac878-46b5-4918-a3ab-95d6aebe6e4d", "6941497d-cf5f-4d5e-a3b8-b3f565f89da3", "90edb614-dfa8-4361-9c9f-246b71a3a69d", "fe255ee3-b545-4049-a579-b2f8b3915f51"] ] ); try { @@ -1046,16 +1046,16 @@ public function testCreateCoupon37() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 5874.0, + 'discount_percentage' => 7034.0, 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["125b4eba-c0c8-4bf7-a9ba-858007b3c3a5", "beeaeb57-00b6-4fa3-9fc1-c51021177765", "28c0921b-2b68-4b9f-b61b-8b4b0955554c", "3975e4a8-33f5-40b9-aad3-47f97d91d33e", "28cbe880-ea6b-4a40-ab91-65f95830d944", "92b0c498-78bf-44cd-9515-9f263a67f402", "010d2778-0a6a-4bdb-9168-64ad3f2b3b2e", "e80ca01c-ae80-4f86-9825-013a8d8931f6", "e291c671-f373-4283-ba27-e44eb196ec98", "3a513d6b-c555-46f7-b004-dfdd8a19749b"], - 'storage_id' => "a73fc16e-efde-4af8-8f4a-97629986f126" + 'available_shop_ids' => ["0be67d44-9891-457f-8b3b-bb85f652f834", "9565a101-3709-4336-a996-a29f337517bf", "5de5047d-c112-4bd3-a5c7-2094209fa416", "8e989502-5f90-4f8a-9f83-a0668a78dc45", "93581364-bd70-420b-8491-dfac6fd4cf30", "008e847d-13d5-45d2-9cd6-e70b636d3e6b", "6ab27a46-c996-4b4c-946d-9183c885476c", "7f58953e-4ef8-4d70-b827-3cdb4e15e5d3"], + 'storage_id' => "e2f48f3d-93c9-4ab9-9563-f6581cb1ba0c" ] ); try { @@ -1071,17 +1071,17 @@ public function testCreateCoupon38() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 1150.0, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["0c5a7704-f890-47cd-a935-cccecbc11507", "dc6e99e1-3191-45c4-b176-178a7fa22249", "24c0c02f-8c0b-4d8e-ab45-402252eb72e7", "843ebeeb-7c29-4b02-9591-6abf868f0131", "419852e9-6f47-494a-af34-39fcff222e56"], - 'min_amount' => 420, - 'storage_id' => "0a8bb1a6-0b04-410d-9de5-8a752c1727af" + 'discount_percentage' => 7653.0, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["abca8ce3-67f2-4bed-931d-8312a5499d7d"], + 'min_amount' => 6946, + 'storage_id' => "fc3ec10d-8e5e-41ee-a3eb-ecf007648237" ] ); try { @@ -1097,18 +1097,18 @@ public function testCreateCoupon39() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 6449.0, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["c25ed2ee-dd44-40a4-b632-df70b9c7b845", "9c0f1865-6dee-446e-812c-942d80e6b5e6", "2af67f58-f2cf-4a82-9eb8-12c9daca3319", "52ab2b62-4c75-49d7-bad7-94924aee40e9", "7d6ad994-2f08-4db9-9e33-5fdd5b3554a6", "de78f7bf-e555-4c02-9981-364fa5a4887a", "7c6194d7-aea9-4f0a-8700-962e114c356f", "a615acc5-3d7a-40ed-b8c1-4432caadb503", "29b489c1-f5c7-4e3c-ac81-58996a5172a1", "43c69b3d-150c-4196-8f1f-542058b0edb9"], - 'usage_limit' => 6307, - 'min_amount' => 5625, - 'storage_id' => "508e0ee9-c68b-4b76-985b-6d0799b36dda" + 'discount_percentage' => 7441.0, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["749f1228-3ec7-42bf-acf9-7e48080914b3", "406886f4-7c15-4fbb-a50d-af090c29e932", "847a7848-d91d-4b80-acc2-e634db4cfda1", "85e4e6f7-0d2e-4fc8-86e2-72bd43016c43", "9c606947-5978-4011-b09e-a19d7f03d52e", "791ed6d8-b37a-4540-b1f8-733279a2e0f7", "27da9e13-adde-4d28-ad87-c874931531e1", "cf098bc0-3fcb-4197-b0f5-4631e0d7f63f", "50c856f1-b4e4-4308-ad8d-c5694ad22acb"], + 'usage_limit' => 731, + 'min_amount' => 3054, + 'storage_id' => "859c197e-e41e-4507-9db2-eb322146c00b" ] ); try { @@ -1124,19 +1124,19 @@ public function testCreateCoupon40() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 1218.0, + 'discount_percentage' => 8262.0, 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["3bd876e6-291c-4bde-918f-48367cc50054", "4d06fe09-d8dc-4cd8-acbb-ffcda8f10669", "8a89df5c-a6ff-44c1-9484-271764bbc96f", "3ee0712e-6eac-4a0e-81a2-fa8c91862d25", "159a24d3-924f-417b-89e7-c6f395afaeff", "da236641-7246-41fb-8d03-f152fe5f7d3a", "81493dee-9d41-4617-b6d2-faf128556a1c", "eee33aca-a0a2-4983-b6ba-92b3eb1aef5d", "dbd27c9e-3e83-43a6-840f-e6d97d1b8786"], - 'code' => "1HNQ6SUUxf", - 'usage_limit' => 4757, - 'min_amount' => 510, - 'storage_id' => "34147fc8-188d-47aa-a415-1eeb0973bf46" + 'available_shop_ids' => ["790476e3-570a-4d28-ad13-87f4790072a9", "a51aa449-c273-480d-a7f8-2badaf9be3bb", "61a99690-ce54-46d4-969e-f05d9a80e28b", "93f14e32-f4b4-4557-a32b-fab348d063e9"], + 'code' => "jgCa", + 'usage_limit' => 3124, + 'min_amount' => 2118, + 'storage_id' => "f84d4705-52dd-44b7-8d97-800f0e122529" ] ); try { @@ -1152,20 +1152,20 @@ public function testCreateCoupon41() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 9946.0, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["414be753-1c8d-486a-a7ef-f26a23eebab4", "2c0c28ba-b2c5-4c60-99a9-4482b05fc960", "593e3439-4f1d-4fa5-9c30-2b28ff8943b6", "eb0a2f68-7c1b-436a-9d12-a3cf12540202", "371e9ea8-87cf-475d-9d5b-c68452f48798", "90d5433a-99c4-42d3-9bcb-30e685627058"], + 'discount_percentage' => 3592.0, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["2a30dfe2-19a2-45fd-ac32-a2b4e7771215", "8fb89428-26d4-403f-b692-ad56f1ee34a5", "63c1b8d9-f679-4008-ba9d-0290d26cabc7", "7a74dc7e-3309-402d-a36f-f88fc9dc7d4e", "1226b183-21d9-4c4c-89af-8221b2be0958", "aa6a4786-91f8-4524-8df1-4cef3d731f60", "d9ebceee-c26b-4b1d-8dbe-4047c5bf1d7d", "2fc608f1-8e58-4aec-8a98-5f70aa0ec17b"], 'is_public' => TRUE, - 'code' => "Rhf", - 'usage_limit' => 1201, - 'min_amount' => 6652, - 'storage_id' => "7ecee732-4a2f-430b-bd66-c19f2970d07e" + 'code' => "Qwp", + 'usage_limit' => 2617, + 'min_amount' => 4372, + 'storage_id' => "074bd6b9-0ba5-4b9f-a376-1830f8e26c18" ] ); try { @@ -1181,21 +1181,21 @@ public function testCreateCoupon42() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 9009.0, + 'discount_percentage' => 4996.0, 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["f2a80db3-b99a-411c-acd7-c37f3c6ee5dc", "3eabba06-fd1e-4ac0-9308-f88a7a407a72", "642c6636-9b62-4cf8-82c0-4bf8a47930ab", "10c2e1a9-9568-4271-aca4-c738c7254560", "47fe8da6-160a-490b-a8fa-124c00b59d04", "9aa011ca-1613-4bcb-bc47-648a74699713"], - 'is_hidden' => TRUE, + 'available_shop_ids' => ["f4edbef5-8379-4eba-a7ed-b5c841041ea2", "2e158c90-3f4b-4df1-870f-3bee09d769ee", "66576a4f-5aa1-4aa7-81e5-89cd6dde4ef4"], + 'is_hidden' => FALSE, 'is_public' => TRUE, - 'code' => "7peg", - 'usage_limit' => 7285, - 'min_amount' => 57, - 'storage_id' => "2f3a6f60-a593-48b9-a929-984c7218e02c" + 'code' => "o3ZtB", + 'usage_limit' => 4429, + 'min_amount' => 5828, + 'storage_id' => "545f6b80-fa17-4944-a09b-673b175ddbb0" ] ); try { @@ -1211,22 +1211,22 @@ public function testCreateCoupon43() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 8076.0, + 'discount_percentage' => 7313.0, 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["c59ca1dc-49fd-4fe3-9ae5-495237539ac8", "bc443330-b6b9-4ef0-b38d-4ea88ed5bfc4", "3ed4673f-1e02-4dea-bb27-8ba4722622e6", "ccfe7321-81b3-4e55-bd2d-8f588f7a1092", "20556f88-b8c0-46d8-8db3-3354d32ef5fb", "96803410-7397-49dd-b529-b8c67bec2d16", "45fedcc0-d00f-4158-9ff6-374a177dc281", "006086d4-5a72-40eb-99b8-e855a53cc010"], + 'available_shop_ids' => ["6be4a0ab-5929-4093-ac16-585b3e3e6e64", "3bc820d7-b47e-4d05-8645-e52327f9df25", "d58e3e94-bfb8-4c17-b55a-6a6abd902427", "4abb60e2-5755-49aa-bde1-d2ae26ab5320", "f2011f1e-1a54-49e0-85ac-b2ba6984e53a", "cbe6028b-884e-4f03-8e68-b9eda39236f8", "f108f2b5-d160-4a43-a80b-904c0b52b693", "2cc1dc71-2dc2-4e93-a7f6-db6656a313d7", "2d10076e-597b-4cdc-b285-aa673e6cbb36", "c6495edf-0d77-4bff-840b-51941a0285a8"], 'is_disabled' => TRUE, 'is_hidden' => FALSE, - 'is_public' => TRUE, - 'code' => "VM8uak", - 'usage_limit' => 9885, - 'min_amount' => 7907, - 'storage_id' => "944fb545-d049-4a25-b9f8-5f51adbc9b7a" + 'is_public' => FALSE, + 'code' => "880", + 'usage_limit' => 1602, + 'min_amount' => 9533, + 'storage_id' => "6d0eb481-9344-4ac5-aa88-0a402854fade" ] ); try { @@ -1242,23 +1242,23 @@ public function testCreateCoupon44() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 3424.0, + 'discount_percentage' => 2292.0, 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["7baf9891-157f-450b-bb85-f8349565a101", "20583709-d336-4ea9-969f-17bf5de5047d", "2990c112-2bd3-45a5-8794-a4168e989502", "d1565f90-ff8a-459f-8366-dc4593581364", "726ebd70-620b-45c4-91ac-cf30008e847d"], - 'display_ends_at' => "2023-04-01T00:36:44.000000Z", - 'is_disabled' => TRUE, + 'available_shop_ids' => ["35447b1e-6e4f-4377-b522-a5d8d2ab9e34", "6fee5791-c844-48ed-ab58-811e467b0298", "5e4fa790-8073-4efb-84bd-6763a95020aa", "715d910c-dcbb-4550-8855-9aef3b35de65", "1189d112-5ed6-4e27-9b02-c6acd2099a31", "15ff8dd8-481d-4502-be5f-23c86e482eb7", "f9288591-2038-4de8-afdf-798a6de9eab5"], + 'display_ends_at' => "2021-11-10T17:20:07.000000Z", + 'is_disabled' => FALSE, 'is_hidden' => FALSE, - 'is_public' => FALSE, - 'code' => "LTmlxp8", - 'usage_limit' => 9683, - 'min_amount' => 3901, - 'storage_id' => "9f7793c9-aab9-4195-a358-ba0c5c009de5" + 'is_public' => TRUE, + 'code' => "wm", + 'usage_limit' => 5860, + 'min_amount' => 4606, + 'storage_id' => "54038678-f3af-4939-88a5-9330ab25d64f" ] ); try { @@ -1274,24 +1274,24 @@ public function testCreateCoupon45() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 7283.0, + 'discount_percentage' => 6352.0, 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["abca8ce3-67f2-4bed-931d-8312a5499d7d"], - 'display_starts_at' => "2024-08-07T05:42:28.000000Z", - 'display_ends_at' => "2021-12-10T23:13:57.000000Z", - 'is_disabled' => TRUE, - 'is_hidden' => FALSE, + 'available_shop_ids' => ["f222d4db-080b-4dd8-b30e-0ea6862c8a03", "a6c690f9-c4ba-469f-9020-62b9fe243670", "fef113b5-550f-47de-b9b2-c9416469e195"], + 'display_starts_at' => "2023-02-28T16:49:59.000000Z", + 'display_ends_at' => "2024-02-25T16:17:18.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => TRUE, 'is_public' => TRUE, - 'code' => "kp7T", - 'usage_limit' => 7441, - 'min_amount' => 2849, - 'storage_id' => "eca520c8-1228-4ec7-bfec-06f9ed787e48" + 'code' => "zXIFX", + 'usage_limit' => 8794, + 'min_amount' => 5390, + 'storage_id' => "6fefa024-e1e2-47ea-b369-4a6963ace58f" ] ); try { @@ -1307,25 +1307,25 @@ public function testCreateCoupon46() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 5299.0, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["08885fbb-3aa5-4f0d-8932-78488de8d91d", "d5ea4b80-702c-40c2-b4a1-e6f71f570d2e", "b9163fc8-bf46-47e2-bd43-6947410f5978", "a7d94011-76b0-439e-9d2e-d6d8f72ab37a", "9965f540-b9f1-46f8-b2f7-9e132882adde", "23ba3d28-1bad-4187-b4e1-8bc0202b3fcb"], - 'discount_upper_limit' => 2416, - 'display_starts_at' => "2023-08-04T22:34:29.000000Z", - 'display_ends_at' => "2024-05-23T11:23:29.000000Z", - 'is_disabled' => FALSE, - 'is_hidden' => FALSE, - 'is_public' => TRUE, - 'code' => "miKn22F3c", - 'usage_limit' => 5898, - 'min_amount' => 7464, - 'storage_id' => "758c0fad-ab13-47f4-a949-c2731c76f80d" + 'discount_percentage' => 974.0, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["a9a50a8f-d598-4907-985a-c222afc2f930", "9744146c-0846-4427-9467-0487b52481bc", "9a0c30dc-ad93-4fb0-a78b-85a81baaa6db", "1f4268e2-54f5-44d1-96ab-02f7063ff491", "fe45f2c0-38cb-4365-a1a0-de9b87ac38d1", "c23a2934-2648-4957-a650-b206586cf015", "99de4af5-11c4-4bee-9f38-1edd6842b9f6", "215bbf74-574c-45ac-893b-ba9c1b2f362b", "31cf17c7-fed4-4310-96aa-bacb07df4783", "5da604df-2c79-4239-ba8a-8ae2e13a3fe1"], + 'discount_upper_limit' => 5518, + 'display_starts_at' => "2024-11-20T23:37:34.000000Z", + 'display_ends_at' => "2022-07-08T23:35:29.000000Z", + 'is_disabled' => TRUE, + 'is_hidden' => TRUE, + 'is_public' => FALSE, + 'code' => "rNxQgJ", + 'usage_limit' => 419, + 'min_amount' => 1970, + 'storage_id' => "0e3f20fd-d064-4eb1-92ab-5aea1c5941d2" ] ); try { @@ -1341,26 +1341,26 @@ public function testCreateCoupon47() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "3e52cf6d-064a-418e-980b-ce392280387a", - "bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmC", - "2022-10-14T09:04:33.000000Z", - "2024-09-29T02:09:06.000000Z", - "7ccfff36-5342-468e-8b12-a2ad5b329ce2", + "95211c5b-07c2-4920-816c-7394f1f9625b", + "f", + "2020-04-14T11:16:32.000000Z", + "2020-09-04T21:17:15.000000Z", + "1330505e-bc9a-4de8-b068-7a07c009ebc6", [ - 'discount_percentage' => 7207.0, + 'discount_percentage' => 5956.0, 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["5670ce54-36d4-43d6-9e5d-e28b93f14e32"], - 'description' => "W3iMjgCaf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJpJRQwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guqwmdx9H0OP7RXsy9p5y2A7XdzXIF", - 'discount_upper_limit' => 3239, - 'display_starts_at' => "2023-08-16T23:59:57.000000Z", - 'display_ends_at' => "2021-05-18T04:29:23.000000Z", - 'is_disabled' => TRUE, - 'is_hidden' => TRUE, - 'is_public' => TRUE, - 'code' => "bjsii", - 'usage_limit' => 9615, - 'min_amount' => 974, - 'storage_id' => "496f5f3d-e02d-4d3e-a98f-d59809ef2907" + 'available_shop_ids' => ["d6c4aaf8-d3f8-4603-960d-44ecd205b5be", "32976b51-7846-44e8-8d4d-f4326bd6881c", "06caff24-392c-4965-846f-43705c41e260", "9d8957ed-0c49-4cec-9f6d-bb8cb01a91f6", "4b765fad-fc8f-47f1-ba2d-15f1df0e657e", "9acc1b5b-aa97-4ca5-bf0f-6414b4997f10", "30664fee-ecc7-4f4f-9459-1ee2e127aa14"], + 'description' => "g6rdqjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7Y", + 'discount_upper_limit' => 1227, + 'display_starts_at' => "2021-02-14T03:30:06.000000Z", + 'display_ends_at' => "2024-05-01T05:30:09.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => FALSE, + 'is_public' => FALSE, + 'code' => "ZqFQRMY", + 'usage_limit' => 1570, + 'min_amount' => 2282, + 'storage_id' => "adcdd6b7-7165-42c9-96bb-e192156d31b0" ] ); try { diff --git a/tests/CreateCpmTransactionTest.php b/tests/CreateCpmTransactionTest.php index b246ea74..baaf927e 100644 --- a/tests/CreateCpmTransactionTest.php +++ b/tests/CreateCpmTransactionTest.php @@ -8,9 +8,9 @@ public function testCreateCpmTransaction0() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "NIoqmlJpzKOYIsRtFF9xx8", - "8c663c47-7b5f-4240-831a-4911647fa5c8", - 6572.0 + "8poH65gFI1eD4xOb3KkBBL", + "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", + 6121.0 ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testCreateCpmTransaction1() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "NIoqmlJpzKOYIsRtFF9xx8", - "8c663c47-7b5f-4240-831a-4911647fa5c8", - 6572.0, + "8poH65gFI1eD4xOb3KkBBL", + "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", + 6121.0, [ - 'strategy' => "point-preferred" + 'strategy' => "money-only" ] ); try { @@ -45,12 +45,12 @@ public function testCreateCpmTransaction2() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "NIoqmlJpzKOYIsRtFF9xx8", - "8c663c47-7b5f-4240-831a-4911647fa5c8", - 6572.0, + "8poH65gFI1eD4xOb3KkBBL", + "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", + 6121.0, [ - 'request_id' => "58cddd02-e7da-463c-9820-860b7b86da9c", - 'strategy' => "point-preferred" + 'request_id' => "96cc9c41-f4a1-488b-820b-c7fa5a5c2823", + 'strategy' => "money-only" ] ); try { @@ -66,15 +66,17 @@ public function testCreateCpmTransaction3() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "NIoqmlJpzKOYIsRtFF9xx8", - "8c663c47-7b5f-4240-831a-4911647fa5c8", - 6572.0, + "8poH65gFI1eD4xOb3KkBBL", + "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", + 6121.0, [ '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' => "87fff033-2658-49e1-a8b7-34a588303b30", - 'strategy' => "point-preferred" + 'request_id' => "8ecf7882-4123-409e-bcae-6ae1c1a6bd6c", + 'strategy' => "money-only" ] ); try { @@ -90,9 +92,9 @@ public function testCreateCpmTransaction4() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "NIoqmlJpzKOYIsRtFF9xx8", - "8c663c47-7b5f-4240-831a-4911647fa5c8", - 6572.0, + "8poH65gFI1eD4xOb3KkBBL", + "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", + 6121.0, [ 'metadata' => "{\"key\":\"value\"}", 'products' => [["jan_code" => "abc", "name" => "name1", "unit_price" => 100, "price" => 100, "quantity" => 1, "is_discounted" => FALSE, "other" => "{}"] @@ -103,9 +105,10 @@ public function testCreateCpmTransaction4() , ["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' => "7fc65c90-b7ee-46a2-8f16-d4bce6538980", - 'strategy' => "point-preferred" + 'request_id' => "f7306339-7165-4108-a074-16331f4f3df3", + 'strategy' => "money-only" ] ); try { @@ -121,15 +124,20 @@ public function testCreateCpmTransaction5() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "NIoqmlJpzKOYIsRtFF9xx8", - "8c663c47-7b5f-4240-831a-4911647fa5c8", - 6572.0, + "8poH65gFI1eD4xOb3KkBBL", + "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", + 6121.0, [ - 'description' => "XURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnuoUILOizvfJbTrh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7Xmp", + 'description' => "JPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCP", '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" => "{}"] ], - 'request_id' => "b4161722-b471-4ee6-831b-b05064a2e986", + 'request_id' => "859b5f2a-cb8e-4882-aee3-8d1c457c9345", 'strategy' => "money-only" ] ); diff --git a/tests/CreateCustomerAccountTest.php b/tests/CreateCustomerAccountTest.php index 856a451c..e772a2ff 100644 --- a/tests/CreateCustomerAccountTest.php +++ b/tests/CreateCustomerAccountTest.php @@ -8,7 +8,7 @@ public function testCreateCustomerAccount0() { $client = $this->newClient(); $request = new Request\CreateCustomerAccount( - "c454fa7a-8121-47c1-8460-3b4e2ea6762c" + "1bd95560-4dc2-4d80-a2f6-6688072d0b3f" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testCreateCustomerAccount1() { $client = $this->newClient(); $request = new Request\CreateCustomerAccount( - "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + "1bd95560-4dc2-4d80-a2f6-6688072d0b3f", [ - 'external_id' => "e87oi" + 'external_id' => "7caRg" ] ); try { @@ -41,10 +41,10 @@ public function testCreateCustomerAccount2() { $client = $this->newClient(); $request = new Request\CreateCustomerAccount( - "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + "1bd95560-4dc2-4d80-a2f6-6688072d0b3f", [ - 'account_name' => "kJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5GZy4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXh", - 'external_id' => "26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5" + 'account_name' => "ncONv8Kje2pUTWzADNDe87oiAkJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycu", + 'external_id' => "n86BZW4IWD5G" ] ); try { @@ -60,11 +60,11 @@ public function testCreateCustomerAccount3() { $client = $this->newClient(); $request = new Request\CreateCustomerAccount( - "c454fa7a-8121-47c1-8460-3b4e2ea6762c", + "1bd95560-4dc2-4d80-a2f6-6688072d0b3f", [ - 'user_name' => "bgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH", - 'account_name' => "emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iSiTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdW", - 'external_id' => "jKy82N74m" + 'user_name' => "y4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS", + 'account_name' => "3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH9emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iS", + 'external_id' => "TBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWx" ] ); try { diff --git a/tests/CreateExchangeTransactionTest.php b/tests/CreateExchangeTransactionTest.php index 34e51237..36900103 100644 --- a/tests/CreateExchangeTransactionTest.php +++ b/tests/CreateExchangeTransactionTest.php @@ -8,10 +8,10 @@ public function testCreateExchangeTransaction0() { $client = $this->newClient(); $request = new Request\CreateExchangeTransaction( - "783c8b6a-bf2c-49e7-b985-d26ca216db3e", - "1bb9e055-507d-44c4-9420-a54b3ef84e7c", - "005ebf3c-82b4-406a-a83e-644a03e00e48", - 6419 + "a5067d30-2da2-404b-aff3-21cbbfe23a51", + "82b59381-c73f-45ea-ae62-1e2d716d363c", + "196f5c49-dd46-4df0-aca5-e91d91973ac4", + 4705 ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreateExchangeTransaction1() { $client = $this->newClient(); $request = new Request\CreateExchangeTransaction( - "783c8b6a-bf2c-49e7-b985-d26ca216db3e", - "1bb9e055-507d-44c4-9420-a54b3ef84e7c", - "005ebf3c-82b4-406a-a83e-644a03e00e48", - 6419, + "a5067d30-2da2-404b-aff3-21cbbfe23a51", + "82b59381-c73f-45ea-ae62-1e2d716d363c", + "196f5c49-dd46-4df0-aca5-e91d91973ac4", + 4705, [ - 'request_id' => "b708d430-f36a-471a-816a-26ce3efa5457" + 'request_id' => "3c302ccc-2e5f-44a0-99e2-eccd842d3d3b" ] ); try { @@ -47,13 +47,13 @@ public function testCreateExchangeTransaction2() { $client = $this->newClient(); $request = new Request\CreateExchangeTransaction( - "783c8b6a-bf2c-49e7-b985-d26ca216db3e", - "1bb9e055-507d-44c4-9420-a54b3ef84e7c", - "005ebf3c-82b4-406a-a83e-644a03e00e48", - 6419, + "a5067d30-2da2-404b-aff3-21cbbfe23a51", + "82b59381-c73f-45ea-ae62-1e2d716d363c", + "196f5c49-dd46-4df0-aca5-e91d91973ac4", + 4705, [ - 'description' => "1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKj", - 'request_id' => "9c1efafb-10db-4f7e-88ad-a9958194753e" + 'description' => "Mvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq", + 'request_id' => "009743b5-a7fd-4c30-a691-3510e5264873" ] ); try { diff --git a/tests/CreateExternalTransactionTest.php b/tests/CreateExternalTransactionTest.php index ea29a119..a61b1a3b 100644 --- a/tests/CreateExternalTransactionTest.php +++ b/tests/CreateExternalTransactionTest.php @@ -8,10 +8,10 @@ public function testCreateExternalTransaction0() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "9a50825d-b494-4c11-b69c-f1fb5990bc08", - "3196d46b-6817-49c5-abda-cb2de36dc1ce", - "48d73a4a-a118-4ef4-bce6-c7049d4cc8f6", - 5292 + "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", + "e103bb09-335d-425d-9411-fab6f0bcab9c", + "c8abf1fb-bc08-446b-97c5-f8abaf064dda", + 2861 ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreateExternalTransaction1() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "9a50825d-b494-4c11-b69c-f1fb5990bc08", - "3196d46b-6817-49c5-abda-cb2de36dc1ce", - "48d73a4a-a118-4ef4-bce6-c7049d4cc8f6", - 5292, + "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", + "e103bb09-335d-425d-9411-fab6f0bcab9c", + "c8abf1fb-bc08-446b-97c5-f8abaf064dda", + 2861, [ - 'done_at' => "2023-06-21T04:51:06.000000Z" + 'done_at' => "2021-10-27T19:04:46.000000Z" ] ); try { @@ -47,13 +47,13 @@ public function testCreateExternalTransaction2() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "9a50825d-b494-4c11-b69c-f1fb5990bc08", - "3196d46b-6817-49c5-abda-cb2de36dc1ce", - "48d73a4a-a118-4ef4-bce6-c7049d4cc8f6", - 5292, + "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", + "e103bb09-335d-425d-9411-fab6f0bcab9c", + "c8abf1fb-bc08-446b-97c5-f8abaf064dda", + 2861, [ - 'request_id' => "a410aafa-4302-409d-80a0-60d5a7b4e1d4", - 'done_at' => "2022-08-06T23:42:05.000000Z" + 'request_id' => "48d73a4a-a118-4ef4-bce6-c7049d4cc8f6", + 'done_at' => "2023-11-05T03:17:32.000000Z" ] ); try { @@ -69,23 +69,17 @@ public function testCreateExternalTransaction3() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "9a50825d-b494-4c11-b69c-f1fb5990bc08", - "3196d46b-6817-49c5-abda-cb2de36dc1ce", - "48d73a4a-a118-4ef4-bce6-c7049d4cc8f6", - 5292, + "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", + "e103bb09-335d-425d-9411-fab6f0bcab9c", + "c8abf1fb-bc08-446b-97c5-f8abaf064dda", + 2861, [ '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' => "b4f26da8-d682-4cfe-abbe-6ad660267dbd", - 'done_at' => "2023-05-10T14:54:18.000000Z" + 'request_id' => "0d76909d-f600-42a0-95d4-654dc4e31b4d", + 'done_at' => "2022-08-18T14:37:28.000000Z" ] ); try { @@ -101,19 +95,18 @@ public function testCreateExternalTransaction4() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "9a50825d-b494-4c11-b69c-f1fb5990bc08", - "3196d46b-6817-49c5-abda-cb2de36dc1ce", - "48d73a4a-a118-4ef4-bce6-c7049d4cc8f6", - 5292, + "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", + "e103bb09-335d-425d-9411-fab6f0bcab9c", + "c8abf1fb-bc08-446b-97c5-f8abaf064dda", + 2861, [ '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' => "70abb39c-59f8-4c47-bc5b-91bff6e24576", - 'done_at' => "2023-05-20T05:05:55.000000Z" + 'request_id' => "71731cfe-ebab-43be-96bd-cf1ada493903", + 'done_at' => "2020-05-10T05:43:56.000000Z" ] ); try { @@ -129,20 +122,26 @@ public function testCreateExternalTransaction5() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "9a50825d-b494-4c11-b69c-f1fb5990bc08", - "3196d46b-6817-49c5-abda-cb2de36dc1ce", - "48d73a4a-a118-4ef4-bce6-c7049d4cc8f6", - 5292, + "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", + "e103bb09-335d-425d-9411-fab6f0bcab9c", + "c8abf1fb-bc08-446b-97c5-f8abaf064dda", + 2861, [ - 'description' => "Na5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vD", + 'description' => "v3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDB", '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" => "{}"] + , ["jan_code" => "abc", "name" => "name1", "unit_price" => 100, "price" => 100, "quantity" => 1, "is_discounted" => FALSE, "other" => "{}"] ], - 'request_id' => "b7658696-5ed9-439f-abf2-9932205944db", - 'done_at' => "2023-01-26T02:04:53.000000Z" + 'request_id' => "3416b632-e5b8-4476-8544-2f73b7658696", + 'done_at' => "2020-10-07T22:23:21.000000Z" ] ); try { diff --git a/tests/CreatePaymentTransactionTest.php b/tests/CreatePaymentTransactionTest.php index 575cee9d..97b48fcd 100644 --- a/tests/CreatePaymentTransactionTest.php +++ b/tests/CreatePaymentTransactionTest.php @@ -8,10 +8,10 @@ public function testCreatePaymentTransaction0() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "72981988-fce3-4623-9c5d-63b2d10f3f62", - "edbae305-a4f4-40bc-ba15-fdc9185c09b2", - "6be43348-47f6-4889-804b-6be1009eaec9", - 7827 + "ed340ee9-cdf1-4c08-89fb-8c27d552b262", + "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", + "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", + 57 ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreatePaymentTransaction1() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "72981988-fce3-4623-9c5d-63b2d10f3f62", - "edbae305-a4f4-40bc-ba15-fdc9185c09b2", - "6be43348-47f6-4889-804b-6be1009eaec9", - 7827, + "ed340ee9-cdf1-4c08-89fb-8c27d552b262", + "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", + "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", + 57, [ - 'strategy' => "money-only" + 'coupon_id' => "76591b43-9794-4d8b-807c-7fa2f592dffe" ] ); try { @@ -47,13 +47,13 @@ public function testCreatePaymentTransaction2() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "72981988-fce3-4623-9c5d-63b2d10f3f62", - "edbae305-a4f4-40bc-ba15-fdc9185c09b2", - "6be43348-47f6-4889-804b-6be1009eaec9", - 7827, + "ed340ee9-cdf1-4c08-89fb-8c27d552b262", + "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", + "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", + 57, [ - 'request_id' => "41bcda64-90de-4a52-8b75-672f8c4d3efa", - 'strategy' => "point-preferred" + 'strategy' => "money-only", + 'coupon_id' => "89da56aa-edbe-4684-aeec-e9f45c36a8fb" ] ); try { @@ -69,15 +69,43 @@ public function testCreatePaymentTransaction3() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "72981988-fce3-4623-9c5d-63b2d10f3f62", - "edbae305-a4f4-40bc-ba15-fdc9185c09b2", - "6be43348-47f6-4889-804b-6be1009eaec9", - 7827, + "ed340ee9-cdf1-4c08-89fb-8c27d552b262", + "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", + "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", + 57, + [ + 'request_id' => "7b2377d8-99ec-4cc7-9fb6-6fdda8df1525", + 'strategy' => "money-only", + 'coupon_id' => "31ac8e7e-4561-4107-a84e-bde370e3e166" + ] + ); + try { + $response = $client->send($request); + $this->assertTrue(true); + } catch (Error\HttpRequest $e) { + $this->assertNotSame(400, $e->code); + } catch (Error\ApiConnection $e) { + $this->assertTrue(false); + } + } + public function testCreatePaymentTransaction4() + { + $client = $this->newClient(); + $request = new Request\CreatePaymentTransaction( + "ed340ee9-cdf1-4c08-89fb-8c27d552b262", + "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", + "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", + 57, [ '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" => "{}"] ], - 'request_id' => "4d3bb591-6d4c-4a7d-8e98-e6a0e2dcc2bd", - 'strategy' => "point-preferred" + 'request_id' => "a8b0c5b2-de32-4150-abf2-1890b5134305", + 'strategy' => "money-only", + 'coupon_id' => "6db53240-3aa5-4b2c-acfc-4573e343977b" ] ); try { @@ -89,14 +117,14 @@ public function testCreatePaymentTransaction3() $this->assertTrue(false); } } - public function testCreatePaymentTransaction4() + public function testCreatePaymentTransaction5() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "72981988-fce3-4623-9c5d-63b2d10f3f62", - "edbae305-a4f4-40bc-ba15-fdc9185c09b2", - "6be43348-47f6-4889-804b-6be1009eaec9", - 7827, + "ed340ee9-cdf1-4c08-89fb-8c27d552b262", + "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", + "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", + 57, [ 'metadata' => "{\"key\":\"value\"}", 'products' => [["jan_code" => "abc", "name" => "name1", "unit_price" => 100, "price" => 100, "quantity" => 1, "is_discounted" => FALSE, "other" => "{}"] @@ -104,9 +132,15 @@ public function testCreatePaymentTransaction4() , ["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' => "03faa520-2519-4eab-a014-6a9e853f5fa8", - 'strategy' => "point-preferred" + 'request_id' => "fe5cdccb-1bd7-450e-99f8-9e470c869c1f", + 'strategy' => "money-only", + 'coupon_id' => "1bb43774-8ad1-4ea0-af6a-aeb4abf1e64f" ] ); try { @@ -118,21 +152,31 @@ public function testCreatePaymentTransaction4() $this->assertTrue(false); } } - public function testCreatePaymentTransaction5() + public function testCreatePaymentTransaction6() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "72981988-fce3-4623-9c5d-63b2d10f3f62", - "edbae305-a4f4-40bc-ba15-fdc9185c09b2", - "6be43348-47f6-4889-804b-6be1009eaec9", - 7827, + "ed340ee9-cdf1-4c08-89fb-8c27d552b262", + "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", + "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", + 57, [ - 'description' => "SZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4lZSVxXqYiDQPFv2xIXmI4PlPvyiodipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1Zph", + 'description' => "VmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep", '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" => "{}"] + , ["jan_code" => "abc", "name" => "name1", "unit_price" => 100, "price" => 100, "quantity" => 1, "is_discounted" => FALSE, "other" => "{}"] ], - 'request_id' => "ccb032cc-5785-44bc-bd03-2068b7925976", - 'strategy' => "money-only" + 'request_id' => "134750bb-b7e5-40c8-aece-2079c9f9cedc", + 'strategy' => "money-only", + 'coupon_id' => "dc7c1a06-09b4-4efa-b9db-5107092db159" ] ); try { diff --git a/tests/CreatePaymentTransactionWithBillTest.php b/tests/CreatePaymentTransactionWithBillTest.php new file mode 100644 index 00000000..eee6ba61 --- /dev/null +++ b/tests/CreatePaymentTransactionWithBillTest.php @@ -0,0 +1,83 @@ +newClient(); + $request = new Request\CreatePaymentTransactionWithBill( + "05c27c83-161f-495a-aaf3-9027f8a00157", + "5fc53b74-229f-40ba-9ed9-cab10690c928" + ); + try { + $response = $client->send($request); + $this->assertTrue(true); + } catch (Error\HttpRequest $e) { + $this->assertNotSame(400, $e->code); + } catch (Error\ApiConnection $e) { + $this->assertTrue(false); + } + } + public function testCreatePaymentTransactionWithBill1() + { + $client = $this->newClient(); + $request = new Request\CreatePaymentTransactionWithBill( + "05c27c83-161f-495a-aaf3-9027f8a00157", + "5fc53b74-229f-40ba-9ed9-cab10690c928", + [ + 'strategy' => "money-only" + ] + ); + try { + $response = $client->send($request); + $this->assertTrue(true); + } catch (Error\HttpRequest $e) { + $this->assertNotSame(400, $e->code); + } catch (Error\ApiConnection $e) { + $this->assertTrue(false); + } + } + public function testCreatePaymentTransactionWithBill2() + { + $client = $this->newClient(); + $request = new Request\CreatePaymentTransactionWithBill( + "05c27c83-161f-495a-aaf3-9027f8a00157", + "5fc53b74-229f-40ba-9ed9-cab10690c928", + [ + 'request_id' => "0b232386-c58b-4857-a92a-0c5cc8f09147", + 'strategy' => "point-preferred" + ] + ); + try { + $response = $client->send($request); + $this->assertTrue(true); + } catch (Error\HttpRequest $e) { + $this->assertNotSame(400, $e->code); + } catch (Error\ApiConnection $e) { + $this->assertTrue(false); + } + } + public function testCreatePaymentTransactionWithBill3() + { + $client = $this->newClient(); + $request = new Request\CreatePaymentTransactionWithBill( + "05c27c83-161f-495a-aaf3-9027f8a00157", + "5fc53b74-229f-40ba-9ed9-cab10690c928", + [ + 'metadata' => "{\"key\":\"value\"}", + 'request_id' => "3e1ce7f5-88ff-44bf-a263-40aea121a8e6", + 'strategy' => "money-only" + ] + ); + try { + $response = $client->send($request); + $this->assertTrue(true); + } catch (Error\HttpRequest $e) { + $this->assertNotSame(400, $e->code); + } catch (Error\ApiConnection $e) { + $this->assertTrue(false); + } + } +} diff --git a/tests/CreateTopupTransactionTest.php b/tests/CreateTopupTransactionTest.php index d2f5d47c..692fdb29 100644 --- a/tests/CreateTopupTransactionTest.php +++ b/tests/CreateTopupTransactionTest.php @@ -8,9 +8,9 @@ public function testCreateTopupTransaction0() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "0042e76b-d368-43ef-b58f-5579f184439d", - "ee0ca6cf-d7b5-4545-8a51-1aae68e6f847", - "f0343a27-8724-49f0-a28d-498e6a90892e" + "1ab63957-28f6-469b-992d-5babc333d21b", + "e0eaf756-9705-4513-bfdd-41a01c99ea3e", + "828591fe-a607-41e1-af1e-f1337b002d47" ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testCreateTopupTransaction1() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "0042e76b-d368-43ef-b58f-5579f184439d", - "ee0ca6cf-d7b5-4545-8a51-1aae68e6f847", - "f0343a27-8724-49f0-a28d-498e6a90892e", + "1ab63957-28f6-469b-992d-5babc333d21b", + "e0eaf756-9705-4513-bfdd-41a01c99ea3e", + "828591fe-a607-41e1-af1e-f1337b002d47", [ - 'request_id' => "732506af-7bb9-467e-85a9-e3c1825edec8" + 'request_id' => "5bcac3a7-45f6-4f8a-acb9-2b0815fe82f8" ] ); try { @@ -45,12 +45,12 @@ public function testCreateTopupTransaction2() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "0042e76b-d368-43ef-b58f-5579f184439d", - "ee0ca6cf-d7b5-4545-8a51-1aae68e6f847", - "f0343a27-8724-49f0-a28d-498e6a90892e", + "1ab63957-28f6-469b-992d-5babc333d21b", + "e0eaf756-9705-4513-bfdd-41a01c99ea3e", + "828591fe-a607-41e1-af1e-f1337b002d47", [ 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "c4a6286b-d336-4903-9546-1e3158848055" + 'request_id' => "44e402e2-f666-4112-ba82-a5de35a1e328" ] ); try { @@ -66,13 +66,13 @@ public function testCreateTopupTransaction3() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "0042e76b-d368-43ef-b58f-5579f184439d", - "ee0ca6cf-d7b5-4545-8a51-1aae68e6f847", - "f0343a27-8724-49f0-a28d-498e6a90892e", + "1ab63957-28f6-469b-992d-5babc333d21b", + "e0eaf756-9705-4513-bfdd-41a01c99ea3e", + "828591fe-a607-41e1-af1e-f1337b002d47", [ - 'description' => "Uyw97H5Wi0UlM5", + 'description' => "vgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXc", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "9d98c068-9457-4a0d-92ef-fd8a5cb7a58b" + 'request_id' => "ef979665-ff1f-4bc4-a9af-5d55fe2005fe" ] ); try { @@ -88,14 +88,14 @@ public function testCreateTopupTransaction4() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "0042e76b-d368-43ef-b58f-5579f184439d", - "ee0ca6cf-d7b5-4545-8a51-1aae68e6f847", - "f0343a27-8724-49f0-a28d-498e6a90892e", + "1ab63957-28f6-469b-992d-5babc333d21b", + "e0eaf756-9705-4513-bfdd-41a01c99ea3e", + "828591fe-a607-41e1-af1e-f1337b002d47", [ - 'point_expires_at' => "2023-03-27T22:34:24.000000Z", - 'description' => "q8fm3Qj", + 'point_expires_at' => "2020-05-07T03:46:10.000000Z", + 'description' => "70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4l", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "953e2877-b972-4fd5-a4ca-6fc40b962bd3" + 'request_id' => "9e86db5b-d725-40da-8e53-15aebae898d6" ] ); try { @@ -111,15 +111,15 @@ public function testCreateTopupTransaction5() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "0042e76b-d368-43ef-b58f-5579f184439d", - "ee0ca6cf-d7b5-4545-8a51-1aae68e6f847", - "f0343a27-8724-49f0-a28d-498e6a90892e", + "1ab63957-28f6-469b-992d-5babc333d21b", + "e0eaf756-9705-4513-bfdd-41a01c99ea3e", + "828591fe-a607-41e1-af1e-f1337b002d47", [ - 'point_amount' => 2102, - 'point_expires_at' => "2024-08-05T18:59:23.000000Z", - 'description' => "QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTqLQwaZ9vOnv67spoRoPKUgWvYVa3Gv9xbfzvgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElT", + 'point_amount' => 1784, + 'point_expires_at' => "2020-03-06T06:48:56.000000Z", + 'description' => "qYiDQPFv2xIXm", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "1ffc59cb-719a-4ced-a205-7c22cebf315a" + 'request_id' => "7e33e549-d7b4-49d0-a7ec-c13a756c6a50" ] ); try { @@ -135,16 +135,16 @@ public function testCreateTopupTransaction6() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "0042e76b-d368-43ef-b58f-5579f184439d", - "ee0ca6cf-d7b5-4545-8a51-1aae68e6f847", - "f0343a27-8724-49f0-a28d-498e6a90892e", + "1ab63957-28f6-469b-992d-5babc333d21b", + "e0eaf756-9705-4513-bfdd-41a01c99ea3e", + "828591fe-a607-41e1-af1e-f1337b002d47", [ - 'money_amount' => 6238, - 'point_amount' => 3525, - 'point_expires_at' => "2024-09-01T14:37:14.000000Z", - 'description' => "v7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU7", + 'money_amount' => 1014, + 'point_amount' => 6051, + 'point_expires_at' => "2024-11-06T03:07:37.000000Z", + 'description' => "odipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnu", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "7a76de30-dccb-4f52-9bc7-25d562fc7830" + 'request_id' => "6bdb906f-379c-4293-95c9-38904234f5cc" ] ); try { @@ -160,17 +160,17 @@ public function testCreateTopupTransaction7() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "0042e76b-d368-43ef-b58f-5579f184439d", - "ee0ca6cf-d7b5-4545-8a51-1aae68e6f847", - "f0343a27-8724-49f0-a28d-498e6a90892e", + "1ab63957-28f6-469b-992d-5babc333d21b", + "e0eaf756-9705-4513-bfdd-41a01c99ea3e", + "828591fe-a607-41e1-af1e-f1337b002d47", [ - 'bear_point_shop_id' => "c33465fc-3087-4432-852c-d6d4f139247f", - 'money_amount' => 8220, - 'point_amount' => 3021, - 'point_expires_at' => "2022-06-19T03:47:49.000000Z", - 'description' => "3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7", + 'bear_point_shop_id' => "94a3bb0e-d04f-4292-a9fa-197fa4d67076", + 'money_amount' => 7782, + 'point_amount' => 3914, + 'point_expires_at' => "2021-01-18T15:28:12.000000Z", + 'description' => "Trh0kbVP56HQVtzlq6MKoBezSZGJZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "2c6e76cb-397f-426a-9719-a9a7ee0d6120" + 'request_id' => "1f313dd8-be6d-4f70-af60-17222eb9b471" ] ); try { diff --git a/tests/CreateTopupTransactionWithCheckTest.php b/tests/CreateTopupTransactionWithCheckTest.php index 6e1be5a6..4ac5db54 100644 --- a/tests/CreateTopupTransactionWithCheckTest.php +++ b/tests/CreateTopupTransactionWithCheckTest.php @@ -8,8 +8,8 @@ public function testCreateTopupTransactionWithCheck0() { $client = $this->newClient(); $request = new Request\CreateTopupTransactionWithCheck( - "359aa224-475d-4d8d-bf52-feb74cd8ef50", - "3a50160b-eb4f-4abd-9afe-da19fc595eb7" + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f" ); try { $response = $client->send($request); @@ -24,10 +24,10 @@ public function testCreateTopupTransactionWithCheck1() { $client = $this->newClient(); $request = new Request\CreateTopupTransactionWithCheck( - "359aa224-475d-4d8d-bf52-feb74cd8ef50", - "3a50160b-eb4f-4abd-9afe-da19fc595eb7", + "8b459ee6-7683-421b-9086-26ed3e9f5b49", + "4394d472-1b0d-4a61-a4c7-da5661d36a8f", [ - 'request_id' => "771cfd03-0b21-45b9-99cf-b6756d19dd3e" + 'request_id' => "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515" ] ); try { diff --git a/tests/CreateTransactionTest.php b/tests/CreateTransactionTest.php index 55e3e004..8669432b 100644 --- a/tests/CreateTransactionTest.php +++ b/tests/CreateTransactionTest.php @@ -8,9 +8,9 @@ public function testCreateTransaction0() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d" + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5" ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testCreateTransaction1() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d", + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5", [ - 'description' => "jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhM" + 'description' => "Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7" ] ); try { @@ -45,12 +45,12 @@ public function testCreateTransaction2() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d", + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5", [ - 'point_expires_at' => "2022-04-18T05:29:48.000000Z", - 'description' => "y1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7WZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX" + 'point_expires_at' => "2023-04-28T14:17:57.000000Z", + 'description' => "ZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9" ] ); try { @@ -66,13 +66,13 @@ public function testCreateTransaction3() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d", + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5", [ - 'point_amount' => 350, - 'point_expires_at' => "2023-05-10T17:38:49.000000Z", - 'description' => "RIKgDX3b9oA142xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZP" + 'point_amount' => 6465, + 'point_expires_at' => "2020-12-08T17:02:41.000000Z", + 'description' => "2xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqz" ] ); try { @@ -88,14 +88,14 @@ public function testCreateTransaction4() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "6376c4cd-77d5-4f83-b5f6-4a691c7475e7", - "7b12d97c-fa58-4ed8-b7a7-7e94d15e1291", - "4bf1ac04-bd49-4763-ae1e-7f11cd3bc12d", + "d60a13d6-f664-4a16-ac01-df9fba2ae897", + "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", + "6e4a6348-e90e-4594-bd19-959f986dd8b5", [ - 'money_amount' => 2628, - 'point_amount' => 4634, - 'point_expires_at' => "2020-05-01T08:52:03.000000Z", - 'description' => "vKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFT" + 'money_amount' => 5766, + 'point_amount' => 4156, + 'point_expires_at' => "2023-09-25T18:36:20.000000Z", + 'description' => "sahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8" ] ); try { diff --git a/tests/CreateTransactionWithCashtrayTest.php b/tests/CreateTransactionWithCashtrayTest.php index 431ea57b..c8de3e5d 100644 --- a/tests/CreateTransactionWithCashtrayTest.php +++ b/tests/CreateTransactionWithCashtrayTest.php @@ -8,8 +8,8 @@ public function testCreateTransactionWithCashtray0() { $client = $this->newClient(); $request = new Request\CreateTransactionWithCashtray( - "3e9f5b49-d472-4b0d-a1a4-f2c79a2fda56", - "61d36a8f-86e8-4cbd-b3fc-0c4c09340d4a" + "dac31b90-dd57-4ed9-bb81-df03abab299d", + "8c8c39e5-57e2-4685-b434-f952aa6599d5" ); try { $response = $client->send($request); @@ -24,10 +24,10 @@ public function testCreateTransactionWithCashtray1() { $client = $this->newClient(); $request = new Request\CreateTransactionWithCashtray( - "3e9f5b49-d472-4b0d-a1a4-f2c79a2fda56", - "61d36a8f-86e8-4cbd-b3fc-0c4c09340d4a", + "dac31b90-dd57-4ed9-bb81-df03abab299d", + "8c8c39e5-57e2-4685-b434-f952aa6599d5", [ - 'request_id' => "1cbb5515-0ee9-4df1-8889-43fbc8088c27" + 'request_id' => "7d06e704-1247-4652-b12c-0a5ca2d298be" ] ); try { @@ -43,11 +43,11 @@ public function testCreateTransactionWithCashtray2() { $client = $this->newClient(); $request = new Request\CreateTransactionWithCashtray( - "3e9f5b49-d472-4b0d-a1a4-f2c79a2fda56", - "61d36a8f-86e8-4cbd-b3fc-0c4c09340d4a", + "dac31b90-dd57-4ed9-bb81-df03abab299d", + "8c8c39e5-57e2-4685-b434-f952aa6599d5", [ - 'strategy' => "point-preferred", - 'request_id' => "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1" + 'strategy' => "money-only", + 'request_id' => "3fc7b354-7611-400f-b31e-7b3f4d823177" ] ); try { diff --git a/tests/CreateTransferTransactionTest.php b/tests/CreateTransferTransactionTest.php index 4d2ad064..f18ec37f 100644 --- a/tests/CreateTransferTransactionTest.php +++ b/tests/CreateTransferTransactionTest.php @@ -8,10 +8,10 @@ public function testCreateTransferTransaction0() { $client = $this->newClient(); $request = new Request\CreateTransferTransaction( - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - "b0a30039-1b43-4794-8b80-367c54347fa2", - "f592dffe-d819-46aa-be84-b52eed4fe1ec", - 6636.0 + "6154dce3-609a-4c75-a365-21fd04a25b79", + "e8f62a9c-b153-4201-8329-ac22ac1e99de", + "2986f329-4061-4422-a278-a3f2742ec81a", + 8807.0 ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreateTransferTransaction1() { $client = $this->newClient(); $request = new Request\CreateTransferTransaction( - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - "b0a30039-1b43-4794-8b80-367c54347fa2", - "f592dffe-d819-46aa-be84-b52eed4fe1ec", - 6636.0, + "6154dce3-609a-4c75-a365-21fd04a25b79", + "e8f62a9c-b153-4201-8329-ac22ac1e99de", + "2986f329-4061-4422-a278-a3f2742ec81a", + 8807.0, [ - 'request_id' => "f0787cc7-249f-45b6-9d25-8d8131ac8e7e" + 'request_id' => "0c2d43d4-c00f-4e7c-9853-a4f856c173da" ] ); try { @@ -47,13 +47,13 @@ public function testCreateTransferTransaction2() { $client = $this->newClient(); $request = new Request\CreateTransferTransaction( - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - "b0a30039-1b43-4794-8b80-367c54347fa2", - "f592dffe-d819-46aa-be84-b52eed4fe1ec", - 6636.0, + "6154dce3-609a-4c75-a365-21fd04a25b79", + "e8f62a9c-b153-4201-8329-ac22ac1e99de", + "2986f329-4061-4422-a278-a3f2742ec81a", + 8807.0, [ - 'description' => "hNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOK", - 'request_id' => "b27aaed9-c8a9-4bf5-9e9f-e61da994bfd5" + 'description' => "g1Ud9jBS9C", + 'request_id' => "276861d1-333d-4d5f-9f2a-9206b00ae910" ] ); try { @@ -69,14 +69,14 @@ public function testCreateTransferTransaction3() { $client = $this->newClient(); $request = new Request\CreateTransferTransaction( - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - "b0a30039-1b43-4794-8b80-367c54347fa2", - "f592dffe-d819-46aa-be84-b52eed4fe1ec", - 6636.0, + "6154dce3-609a-4c75-a365-21fd04a25b79", + "e8f62a9c-b153-4201-8329-ac22ac1e99de", + "2986f329-4061-4422-a278-a3f2742ec81a", + 8807.0, [ 'metadata' => "{\"key\":\"value\"}", - 'description' => "7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iKABzsalQh9et3sJPwGPZVdfeHb6D60qrRKjcydA", - 'request_id' => "a7708567-5124-4f51-ac66-02b144fb25eb" + 'description' => "qv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6", + 'request_id' => "c0a7c0f1-a262-44d2-92a2-e1ef20f24617" ] ); try { diff --git a/tests/CreateUserDeviceTest.php b/tests/CreateUserDeviceTest.php index 9d9b5e9d..d58543b9 100644 --- a/tests/CreateUserDeviceTest.php +++ b/tests/CreateUserDeviceTest.php @@ -8,7 +8,7 @@ public function testCreateUserDevice0() { $client = $this->newClient(); $request = new Request\CreateUserDevice( - "131c1468-0c06-4b76-ba32-0169896e091b" + "eca1f362-57ab-4295-bcd0-b84375ca8699" ); try { $response = $client->send($request); @@ -23,7 +23,7 @@ public function testCreateUserDevice1() { $client = $this->newClient(); $request = new Request\CreateUserDevice( - "131c1468-0c06-4b76-ba32-0169896e091b", + "eca1f362-57ab-4295-bcd0-b84375ca8699", [ 'metadata' => "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}" ] diff --git a/tests/CreateWebhookTest.php b/tests/CreateWebhookTest.php index 9aa0ce1e..f4374994 100644 --- a/tests/CreateWebhookTest.php +++ b/tests/CreateWebhookTest.php @@ -9,7 +9,7 @@ public function testCreateWebhook0() $client = $this->newClient(); $request = new Request\CreateWebhook( "bulk_shops", - "oQ4Xw" + "WBx1" ); try { $response = $client->send($request); diff --git a/tests/DeleteBanksTest.php b/tests/DeleteBankTest.php similarity index 65% rename from tests/DeleteBanksTest.php rename to tests/DeleteBankTest.php index ed86b25c..52a4aceb 100644 --- a/tests/DeleteBanksTest.php +++ b/tests/DeleteBankTest.php @@ -2,14 +2,14 @@ // DO NOT EDIT: File is generated by code generator. namespace Pokepay; -class DeleteBanks extends TestCase +class DeleteBank extends TestCase { - public function testDeleteBanks0() + public function testDeleteBank0() { $client = $this->newClient(); - $request = new Request\DeleteBanks( - "74719dbf-1e24-4b2a-897e-86e6ed867b8c", - "783c4c08-9765-4341-8910-c2c76f1157da" + $request = new Request\DeleteBank( + "8afed34d-4a9d-473c-9b83-3805b3a22524", + "c970698c-2885-4338-8b2f-a3961de526ef" ); try { $response = $client->send($request); diff --git a/tests/DeleteWebhookTest.php b/tests/DeleteWebhookTest.php index 17267873..860024dc 100644 --- a/tests/DeleteWebhookTest.php +++ b/tests/DeleteWebhookTest.php @@ -8,7 +8,7 @@ public function testDeleteWebhook0() { $client = $this->newClient(); $request = new Request\DeleteWebhook( - "73c9decc-04c9-4291-863c-480d718d9644" + "9d5a228d-a804-4302-9403-50afcfa8d933" ); try { $response = $client->send($request); diff --git a/tests/GetBillTest.php b/tests/GetBillTest.php new file mode 100644 index 00000000..7c5bddca --- /dev/null +++ b/tests/GetBillTest.php @@ -0,0 +1,22 @@ +newClient(); + $request = new Request\GetBill( + "ceb060c8-59cb-4cac-a867-3f37e701e96a" + ); + try { + $response = $client->send($request); + $this->assertTrue(true); + } catch (Error\HttpRequest $e) { + $this->assertNotSame(400, $e->code); + } catch (Error\ApiConnection $e) { + $this->assertTrue(false); + } + } +} diff --git a/tests/GetBulkTransactionTest.php b/tests/GetBulkTransactionTest.php index f02d5e7c..1c0bdee7 100644 --- a/tests/GetBulkTransactionTest.php +++ b/tests/GetBulkTransactionTest.php @@ -8,7 +8,7 @@ public function testGetBulkTransaction0() { $client = $this->newClient(); $request = new Request\GetBulkTransaction( - "7c52413f-4187-461b-ad65-ee3b097df35b" + "774f7d6e-0e80-413f-871b-c9ad0aa54f65" ); try { $response = $client->send($request); diff --git a/tests/GetCampaignTest.php b/tests/GetCampaignTest.php index 2df83248..dfb53a96 100644 --- a/tests/GetCampaignTest.php +++ b/tests/GetCampaignTest.php @@ -8,7 +8,7 @@ public function testGetCampaign0() { $client = $this->newClient(); $request = new Request\GetCampaign( - "07eb6604-f398-44ca-850c-ccd6bf1fb003" + "f8df46fc-51b8-4fab-ba59-d311353d81a7" ); try { $response = $client->send($request); diff --git a/tests/GetCashtrayTest.php b/tests/GetCashtrayTest.php index 6ec53646..8391f43d 100644 --- a/tests/GetCashtrayTest.php +++ b/tests/GetCashtrayTest.php @@ -8,7 +8,7 @@ public function testGetCashtray0() { $client = $this->newClient(); $request = new Request\GetCashtray( - "a07a1c5d-7061-4d06-a694-227d784daa42" + "ddb0dd59-258d-4611-878e-db9420db9586" ); try { $response = $client->send($request); diff --git a/tests/GetCheckTest.php b/tests/GetCheckTest.php index 7f751e79..b0d23896 100644 --- a/tests/GetCheckTest.php +++ b/tests/GetCheckTest.php @@ -8,7 +8,7 @@ public function testGetCheck0() { $client = $this->newClient(); $request = new Request\GetCheck( - "b051a77b-0e57-4138-aef5-ff8a3812550b" + "f616c977-5ef1-4010-ae24-f1fe2440fe98" ); try { $response = $client->send($request); diff --git a/tests/GetCouponTest.php b/tests/GetCouponTest.php index 54ec029b..2a4c1d2f 100644 --- a/tests/GetCouponTest.php +++ b/tests/GetCouponTest.php @@ -8,7 +8,7 @@ public function testGetCoupon0() { $client = $this->newClient(); $request = new Request\GetCoupon( - "4a337b58-aa5a-4222-b06c-084636999427" + "8b2db09a-324f-46e9-a7d4-5e226d78ffe7" ); try { $response = $client->send($request); diff --git a/tests/GetCpmTokenTest.php b/tests/GetCpmTokenTest.php index 15159ede..0f908bb0 100644 --- a/tests/GetCpmTokenTest.php +++ b/tests/GetCpmTokenTest.php @@ -8,7 +8,7 @@ public function testGetCpmToken0() { $client = $this->newClient(); $request = new Request\GetCpmToken( - "XNEvBDebROkI568yn3vAdg" + "TjYiVtdGDmgs4Vk2VUx2tI" ); try { $response = $client->send($request); diff --git a/tests/GetCustomerAccountsTest.php b/tests/GetCustomerAccountsTest.php index 2e6f3f14..512db767 100644 --- a/tests/GetCustomerAccountsTest.php +++ b/tests/GetCustomerAccountsTest.php @@ -174,12 +174,12 @@ public function testGetCustomerAccounts8() [ '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' => "active", - 'external_id' => "YeKIbZQuPYAKNLvTyMcIYl", - 'tel' => "079352848", - 'email' => "Pv9LO3MtPy@t1wT.com" + 'created_at_to' => "2025-06-21T23:46:25.000000Z", + 'is_suspended' => FALSE, + 'status' => "pre-closed", + 'external_id' => "U", + 'tel' => "070-062-041", + 'email' => "uPYAKNLvTy@McIY.com" ] ); try { @@ -197,15 +197,15 @@ public function testGetCustomerAccounts9() $request = new Request\GetCustomerAccounts( "e981839f-7730-40a4-9991-3f49bc7c0625", [ - '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" + 'page' => 5613, + 'per_page' => 8339, + 'created_at_from' => "2025-02-04T14:45:59.000000Z", + 'created_at_to' => "2022-04-16T16:37:32.000000Z", + 'is_suspended' => FALSE, + 'status' => "suspended", + 'external_id' => "Sz5j", + 'tel' => "084-00934", + 'email' => "Pyt1wTnktL@8AYk.com" ] ); try { diff --git a/tests/GetExternalTransactionByRequestIdTest.php b/tests/GetExternalTransactionByRequestIdTest.php index c8e42dae..22943e33 100644 --- a/tests/GetExternalTransactionByRequestIdTest.php +++ b/tests/GetExternalTransactionByRequestIdTest.php @@ -8,7 +8,7 @@ public function testGetExternalTransactionByRequestId0() { $client = $this->newClient(); $request = new Request\GetExternalTransactionByRequestId( - "0f990492-b28d-451d-af07-ca0ce1359514" + "555b2bee-f118-47ce-9c46-2befdd2a7b4e" ); try { $response = $client->send($request); diff --git a/tests/GetPrivateMoneyOrganizationSummariesTest.php b/tests/GetPrivateMoneyOrganizationSummariesTest.php index 17ff98e3..99186612 100644 --- a/tests/GetPrivateMoneyOrganizationSummariesTest.php +++ b/tests/GetPrivateMoneyOrganizationSummariesTest.php @@ -62,8 +62,8 @@ public function testGetPrivateMoneyOrganizationSummaries3() $request = new Request\GetPrivateMoneyOrganizationSummaries( "ff54fc91-7642-4ae0-919d-07e4e7d7a11f", [ - 'from' => "2020-09-03T19:49:23.000000Z", - 'to' => "2021-04-04T15:41:36.000000Z" + 'from' => "2024-11-05T18:59:45.000000Z", + 'to' => "2020-09-03T19:49:23.000000Z" ] ); try { @@ -81,8 +81,8 @@ public function testGetPrivateMoneyOrganizationSummaries4() $request = new Request\GetPrivateMoneyOrganizationSummaries( "ff54fc91-7642-4ae0-919d-07e4e7d7a11f", [ - 'from' => "2022-07-23T21:24:52.000000Z", - 'to' => "2023-03-14T06:57:05.000000Z", + 'from' => "2021-04-04T15:41:36.000000Z", + 'to' => "2022-07-23T21:24:52.000000Z", 'page' => 6486 ] ); diff --git a/tests/GetSevenBankATMSessionTest.php b/tests/GetSevenBankATMSessionTest.php index 8c974b16..4e7f1fa4 100644 --- a/tests/GetSevenBankATMSessionTest.php +++ b/tests/GetSevenBankATMSessionTest.php @@ -8,7 +8,7 @@ public function testGetSevenBankAtmSession0() { $client = $this->newClient(); $request = new Request\GetSevenBankATMSession( - "kHc" + "BOJZocfpIF" ); try { $response = $client->send($request); diff --git a/tests/GetShopAccountsTest.php b/tests/GetShopAccountsTest.php index c38ea211..dcba461f 100644 --- a/tests/GetShopAccountsTest.php +++ b/tests/GetShopAccountsTest.php @@ -8,7 +8,7 @@ public function testGetShopAccounts0() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863" + "a6714648-ca18-4c6a-9ecb-b1f97ca44a38" ); try { $response = $client->send($request); @@ -23,7 +23,7 @@ public function testGetShopAccounts1() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863", + "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", [ 'is_suspended' => FALSE ] @@ -41,10 +41,10 @@ public function testGetShopAccounts2() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863", + "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", [ - 'created_at_to' => "2020-05-06T02:02:55.000000Z", - 'is_suspended' => TRUE + 'created_at_to' => "2024-07-25T03:44:04.000000Z", + 'is_suspended' => FALSE ] ); try { @@ -60,10 +60,10 @@ public function testGetShopAccounts3() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863", + "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", [ - 'created_at_from' => "2023-03-17T16:04:05.000000Z", - 'created_at_to' => "2024-03-19T06:01:45.000000Z", + 'created_at_from' => "2023-03-19T21:52:50.000000Z", + 'created_at_to' => "2021-05-16T14:27:26.000000Z", 'is_suspended' => FALSE ] ); @@ -80,12 +80,12 @@ public function testGetShopAccounts4() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863", + "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", [ - 'per_page' => 4823, - 'created_at_from' => "2023-07-22T08:29:37.000000Z", - 'created_at_to' => "2020-07-29T13:51:14.000000Z", - 'is_suspended' => FALSE + 'per_page' => 2991, + 'created_at_from' => "2021-03-14T12:40:20.000000Z", + 'created_at_to' => "2023-05-24T08:19:28.000000Z", + 'is_suspended' => TRUE ] ); try { @@ -101,13 +101,13 @@ public function testGetShopAccounts5() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "31ecb769-3144-4a83-95a2-b72406deb863", + "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", [ - '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 + 'page' => 4106, + 'per_page' => 2378, + 'created_at_from' => "2020-07-23T05:33:11.000000Z", + 'created_at_to' => "2023-07-26T19:28:22.000000Z", + 'is_suspended' => FALSE ] ); try { diff --git a/tests/GetTransactionByRequestIdTest.php b/tests/GetTransactionByRequestIdTest.php index e97ce9bb..178144bd 100644 --- a/tests/GetTransactionByRequestIdTest.php +++ b/tests/GetTransactionByRequestIdTest.php @@ -8,7 +8,7 @@ public function testGetTransactionByRequestId0() { $client = $this->newClient(); $request = new Request\GetTransactionByRequestId( - "ba3e9d22-df7d-43b2-bf3f-bb09de5c335d" + "9749343c-1c9c-4430-afba-cecf7c5238e3" ); try { $response = $client->send($request); diff --git a/tests/GetTransactionTest.php b/tests/GetTransactionTest.php index 2a0831c4..abe86f1d 100644 --- a/tests/GetTransactionTest.php +++ b/tests/GetTransactionTest.php @@ -8,7 +8,7 @@ public function testGetTransaction0() { $client = $this->newClient(); $request = new Request\GetTransaction( - "3473c82d-40fd-4f9f-9740-f1c93938115a" + "3667a2a0-8fb2-49f7-8fb8-d6a3db04f8ca" ); try { $response = $client->send($request); diff --git a/tests/GetUserDeviceTest.php b/tests/GetUserDeviceTest.php index 0d2ba1d1..e9adcf30 100644 --- a/tests/GetUserDeviceTest.php +++ b/tests/GetUserDeviceTest.php @@ -8,7 +8,7 @@ public function testGetUserDevice0() { $client = $this->newClient(); $request = new Request\GetUserDevice( - "5fc53a3c-67eb-48d1-8bac-0f1fecf01447" + "1ead4f40-9f41-4dd4-8e62-f7660e956691" ); try { $response = $client->send($request); diff --git a/tests/ListAccountBalancesTest.php b/tests/ListAccountBalancesTest.php index 571fe52f..44860e38 100644 --- a/tests/ListAccountBalancesTest.php +++ b/tests/ListAccountBalancesTest.php @@ -105,8 +105,8 @@ public function testListAccountBalances5() [ 'page' => 9044, 'per_page' => 3584, - 'expires_at_from' => "2022-05-05T20:55:29.000000Z", - 'expires_at_to' => "2023-04-07T14:57:44.000000Z", + 'expires_at_from' => "2024-10-29T10:47:52.000000Z", + 'expires_at_to' => "2022-05-05T20:55:29.000000Z", 'direction' => "asc" ] ); diff --git a/tests/ListAccountExpiredBalancesTest.php b/tests/ListAccountExpiredBalancesTest.php index ad243d1b..1df6543c 100644 --- a/tests/ListAccountExpiredBalancesTest.php +++ b/tests/ListAccountExpiredBalancesTest.php @@ -8,7 +8,7 @@ public function testListAccountExpiredBalances0() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df" + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListAccountExpiredBalances1() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df", + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", [ - 'direction' => "asc" + 'direction' => "desc" ] ); try { @@ -41,9 +41,9 @@ public function testListAccountExpiredBalances2() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df", + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", [ - 'expires_at_to' => "2022-11-08T09:57:39.000000Z", + 'expires_at_to' => "2020-10-21T06:08:14.000000Z", 'direction' => "desc" ] ); @@ -60,11 +60,11 @@ public function testListAccountExpiredBalances3() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df", + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", [ - 'expires_at_from' => "2021-02-10T04:23:33.000000Z", - 'expires_at_to' => "2021-11-27T03:23:28.000000Z", - 'direction' => "desc" + 'expires_at_from' => "2024-05-06T22:47:15.000000Z", + 'expires_at_to' => "2021-02-10T04:23:33.000000Z", + 'direction' => "asc" ] ); try { @@ -80,7 +80,7 @@ public function testListAccountExpiredBalances4() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df", + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", [ 'per_page' => 9269, 'expires_at_from' => "2022-07-27T12:24:37.000000Z", @@ -101,7 +101,7 @@ public function testListAccountExpiredBalances5() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "cce276f9-f936-4628-91b6-bb60d347c3df", + "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", [ 'page' => 6531, 'per_page' => 2579, diff --git a/tests/ListBanksTest.php b/tests/ListBanksTest.php index 417ac65b..f4f5b150 100644 --- a/tests/ListBanksTest.php +++ b/tests/ListBanksTest.php @@ -8,7 +8,7 @@ public function testListBanks0() { $client = $this->newClient(); $request = new Request\ListBanks( - "12dac1a8-1866-4bcf-b7cf-0e2aa4902472" + "aff84fa3-5610-4c5d-9c3e-0d6f93f40543" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListBanks1() { $client = $this->newClient(); $request = new Request\ListBanks( - "12dac1a8-1866-4bcf-b7cf-0e2aa4902472", + "aff84fa3-5610-4c5d-9c3e-0d6f93f40543", [ - 'private_money_id' => "e752e422-df53-4b09-a912-197230b035b8" + 'private_money_id' => "e768535b-5005-45f4-a553-3a1ea727e938" ] ); try { diff --git a/tests/ListBillTransactionsTest.php b/tests/ListBillTransactionsTest.php index c7c626aa..8e4350a4 100644 --- a/tests/ListBillTransactionsTest.php +++ b/tests/ListBillTransactionsTest.php @@ -22,7 +22,7 @@ public function testListBillTransactions1() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'per_page' => 155 + 'per_page' => 166 ] ); try { @@ -39,8 +39,8 @@ public function testListBillTransactions2() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'prev_page_cursor_id' => "605b0ee7-59a4-4f6b-a4ae-ba380686a451", - 'per_page' => 352 + 'prev_page_cursor_id' => "60fe0e50-aba1-4233-bb7c-2964f54d34af", + 'per_page' => 505 ] ); try { @@ -57,9 +57,9 @@ public function testListBillTransactions3() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'next_page_cursor_id' => "3bd2de53-d2da-471d-9377-7e4afb270031", - 'prev_page_cursor_id' => "8c1e8775-8ce4-4c8c-a91c-555b27f1d9af", - 'per_page' => 838 + 'next_page_cursor_id' => "d15140cc-1a68-49c4-a1ea-7e8a71ca7b90", + 'prev_page_cursor_id' => "031f1872-bdf4-4c21-b4af-9b43b371718c", + 'per_page' => 327 ] ); try { @@ -76,10 +76,10 @@ public function testListBillTransactions4() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'to' => "2023-07-05T09:20:09.000000Z", - 'next_page_cursor_id' => "60fd087e-9908-497e-86a1-e686a1427962", - 'prev_page_cursor_id' => "b5d99fa9-4089-4498-b73e-777aa0278abf", - 'per_page' => 264 + 'to' => "2022-05-20T00:37:16.000000Z", + 'next_page_cursor_id' => "3cf72fc5-ee7c-45de-9653-6d578d29a4ca", + 'prev_page_cursor_id' => "804fd502-9d1b-43bd-ae50-809558cde5bd", + 'per_page' => 11 ] ); try { @@ -96,11 +96,11 @@ public function testListBillTransactions5() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'from' => "2024-10-13T21:58:57.000000Z", - 'to' => "2020-01-03T21:42:34.000000Z", - 'next_page_cursor_id' => "e57385db-97b6-4da7-8bda-27d4721f2c23", - 'prev_page_cursor_id' => "0c41c311-7adb-43c5-ab14-0f30eb758d3a", - 'per_page' => 521 + 'from' => "2022-01-28T10:55:25.000000Z", + 'to' => "2025-05-09T08:51:20.000000Z", + 'next_page_cursor_id' => "c4bf879a-04c3-4b4c-958b-6478c3f3b2c7", + 'prev_page_cursor_id' => "b83d991f-a2be-4aab-bcbb-e04c0387e1e0", + 'per_page' => 245 ] ); try { @@ -117,12 +117,12 @@ public function testListBillTransactions6() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'is_modified' => FALSE, - 'from' => "2020-11-09T18:23:35.000000Z", - 'to' => "2023-06-23T22:03:48.000000Z", - 'next_page_cursor_id' => "22d3be7f-8452-4b47-b1bf-6564a3e61a38", - 'prev_page_cursor_id' => "f98d206a-9b97-4510-87e9-7b68a4142ec6", - 'per_page' => 563 + 'is_modified' => TRUE, + 'from' => "2025-02-13T22:45:06.000000Z", + 'to' => "2020-04-27T19:32:55.000000Z", + 'next_page_cursor_id' => "664ecf6f-3867-4a5b-9068-ff0700d684d3", + 'prev_page_cursor_id' => "e08fe0b3-f270-4d50-bca3-c73d0b630ec8", + 'per_page' => 838 ] ); try { @@ -139,13 +139,13 @@ public function testListBillTransactions7() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'bill_id' => "zo2GN3QYDG", + 'bill_id' => "04fa6b35-29b7-40b4-bce5-ee23988082bf", 'is_modified' => TRUE, - 'from' => "2024-04-07T11:52:35.000000Z", - 'to' => "2023-03-28T10:01:49.000000Z", - 'next_page_cursor_id' => "28ba46a6-d228-448c-83da-5c53b36d0f31", - 'prev_page_cursor_id' => "c5c1c65b-7810-483b-90d6-f50496929a65", - 'per_page' => 182 + 'from' => "2023-03-07T04:40:26.000000Z", + 'to' => "2021-07-15T06:56:49.000000Z", + 'next_page_cursor_id' => "d9edfd02-486b-410e-b3c8-5cb404d2a152", + 'prev_page_cursor_id' => "b5cd2eb2-924d-4209-a708-fd795d9e25d7", + 'per_page' => 165 ] ); try { @@ -162,14 +162,14 @@ public function testListBillTransactions8() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'transaction_id' => "Zzi2NmWBlu", - 'bill_id' => "rzflOytNd", + 'transaction_id' => "3bf4dabf-bab6-45fa-b1b4-ab0bb6108139", + 'bill_id' => "c9b848ca-a142-4c52-9adb-3ced964ca051", 'is_modified' => FALSE, - 'from' => "2022-01-25T09:52:15.000000Z", - 'to' => "2023-07-13T06:43:13.000000Z", - 'next_page_cursor_id' => "fe1ac32a-de6d-4c3b-8839-24ee4aff824d", - 'prev_page_cursor_id' => "2b2fcfbc-afab-4566-ac7f-f51c2681b2c1", - 'per_page' => 329 + 'from' => "2021-12-10T04:33:28.000000Z", + 'to' => "2021-10-06T07:05:16.000000Z", + 'next_page_cursor_id' => "200a23fe-dd22-4a18-9455-fd8746a91a91", + 'prev_page_cursor_id' => "82b0a411-9ae7-461c-977a-6d65e99bbf7c", + 'per_page' => 996 ] ); try { @@ -186,15 +186,15 @@ public function testListBillTransactions9() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'description' => "X3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4b", - 'transaction_id' => "zo", - 'bill_id' => "5SSzFCKj", - 'is_modified' => FALSE, - 'from' => "2024-03-28T05:01:26.000000Z", - 'to' => "2023-02-09T02:28:46.000000Z", - 'next_page_cursor_id' => "2c45663e-9dfc-439c-85b8-e4328414273b", - 'prev_page_cursor_id' => "b33ff9b9-ed7c-4b50-9611-23ca013b7a5a", - 'per_page' => 11 + 'description' => "WdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lz", + 'transaction_id' => "a88089c7-49e7-43b9-abb8-8583b0e9167a", + 'bill_id' => "a33bae58-e499-4935-8127-4926dff9f028", + 'is_modified' => TRUE, + 'from' => "2023-06-09T09:23:23.000000Z", + 'to' => "2020-06-13T05:51:52.000000Z", + 'next_page_cursor_id' => "c09567a8-bcb6-4d72-bd0d-7addd8dda9e4", + 'prev_page_cursor_id' => "0b94da7a-de29-4fda-803a-078e03815e36", + 'per_page' => 940 ] ); try { @@ -211,16 +211,16 @@ public function testListBillTransactions10() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'terminal_id' => "5b5178f1-48b4-43b4-b640-e7a2c6570c3c", - 'description' => "5w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6Kiw60EKpO7FL05ARSiRG2U", - 'transaction_id' => "R", - 'bill_id' => "U", - 'is_modified' => TRUE, - 'from' => "2023-01-29T08:35:12.000000Z", - 'to' => "2021-02-01T10:40:32.000000Z", - 'next_page_cursor_id' => "28c4af63-13ab-4e0c-b7b9-5672c314e52e", - 'prev_page_cursor_id' => "fcfbe88f-e8ba-4bf6-bdbe-7974bc20307f", - 'per_page' => 780 + 'terminal_id' => "eddf07cb-5869-44f7-b630-2f457760bacb", + 'description' => "pO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9V", + 'transaction_id' => "4c785adc-cb77-471b-b0e7-9268c700689c", + 'bill_id' => "030f0c76-919c-4355-b7c8-1c59d295b734", + 'is_modified' => FALSE, + 'from' => "2021-06-23T10:59:12.000000Z", + 'to' => "2021-02-20T03:43:09.000000Z", + 'next_page_cursor_id' => "c193c811-e4e7-487c-942d-2771bfcd6f61", + 'prev_page_cursor_id' => "59c99334-a487-4670-a6b3-17ce5a7e4dbb", + 'per_page' => 513 ] ); try { @@ -237,17 +237,17 @@ public function testListBillTransactions11() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'customer_name' => "OfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0ghvUwHY4GPMgqa4p3NBV6jnDEmNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIU", - 'terminal_id' => "1b90ab64-46ea-4fdf-ae32-94dfa5cdae26", - 'description' => "lMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQse", - 'transaction_id' => "yms9QyHV", - 'bill_id' => "Eq6", + 'customer_name' => "BV6jnDEmNinmBAkCQlWqd", + 'terminal_id' => "a9264c34-1456-46a7-a7f4-ace06c4196e1", + 'description' => "7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4wFjGxBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz", + 'transaction_id' => "07d54cb8-d381-4484-b1ac-ea82783a0af5", + 'bill_id' => "91145548-3538-4838-8ee7-4e9c0828e659", 'is_modified' => TRUE, - 'from' => "2023-10-19T09:25:14.000000Z", - 'to' => "2021-08-16T10:30:05.000000Z", - 'next_page_cursor_id' => "caf43398-1d4c-40a7-a927-707b4629b28e", - 'prev_page_cursor_id' => "a559ac19-bb24-445a-a7f9-2519cadabe03", - 'per_page' => 9 + 'from' => "2022-05-11T08:04:01.000000Z", + 'to' => "2023-10-05T10:58:36.000000Z", + 'next_page_cursor_id' => "64c7c096-2cd1-4c27-9643-dcb4339fbfa7", + 'prev_page_cursor_id' => "74af3005-1f8d-49b5-9951-0a7da2abe273", + 'per_page' => 221 ] ); try { @@ -264,18 +264,18 @@ public function testListBillTransactions12() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'customer_id' => "12f5cce7-0388-441b-a9ad-249113d035b3", - 'customer_name' => "EPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxma", - 'terminal_id' => "a4b2aa7f-b1af-4f23-8ca4-2a196d8d752a", - 'description' => "HHuXDOcuycPW2WYY40yWZt9", - 'transaction_id' => "ZjHK", - 'bill_id' => "Li", - 'is_modified' => FALSE, - 'from' => "2023-10-13T05:30:26.000000Z", - 'to' => "2023-07-28T17:42:24.000000Z", - 'next_page_cursor_id' => "f8db6c8b-f421-441a-9f9b-66a550b59219", - 'prev_page_cursor_id' => "4440cf27-04b6-4ff1-adc3-cf18aacbcbde", - 'per_page' => 764 + 'customer_id' => "cf01d52d-da8e-4fe5-9d17-e879ddb76a90", + 'customer_name' => "s9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5f7NFxRTTWOKh4cp2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFurxmaLHHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJ", + 'terminal_id' => "6745f3ff-4fcb-474e-a54d-e7327835c544", + 'description' => "vQSu06FE8juzeNINZktFZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2VmnwZ1YQAtf2GPfHYeeJWiJLn1TOW", + 'transaction_id' => "8bfa1c08-f556-4d4e-b1be-6a03ad5ebfcb", + 'bill_id' => "4cea0c5c-5d43-4d59-abe7-5d61e5c67c4e", + 'is_modified' => TRUE, + 'from' => "2023-12-21T19:10:01.000000Z", + 'to' => "2020-08-16T04:12:38.000000Z", + 'next_page_cursor_id' => "90bafded-8686-4ea7-a1d3-3dda0667b657", + 'prev_page_cursor_id' => "499bdeaa-5aca-43ee-9e2b-bbbc64a7a92f", + 'per_page' => 904 ] ); try { @@ -292,19 +292,19 @@ public function testListBillTransactions13() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'shop_id' => "1e81400b-3bff-42c6-b37a-ab6660353afb", - 'customer_id' => "9fbd6b2b-b38f-406f-a145-31ce082f7234", - 'customer_name' => "G6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKCNybmAlkaNJiOvuRswwQSmiJco3KwhjqpMqyENnnotJKNM2DvQSu06FE8juzeNINZktFZU0Jp", - 'terminal_id' => "5a43d8a8-cc48-4dc0-9270-d3d3edbca772", - 'description' => "bF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaLr1BLYdgsrsB7nf3z7z76OYqLZhd2", - 'transaction_id' => "VmnwZ1", - 'bill_id' => "YQAtf", + 'shop_id' => "ae11e487-1431-4090-ac2a-9fbf0b9e4384", + 'customer_id' => "ff08dda5-3908-44bc-93b2-941169c57607", + 'customer_name' => "7yVjYZzSkjksojB4PnV9", + 'terminal_id' => "144fa3f3-a69d-4921-8207-c5848e4b17a6", + 'description' => "fF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXW", + 'transaction_id' => "2fddce04-7c7c-4ac3-b51b-70f4852c0429", + 'bill_id' => "d87ba3fe-19cc-4ec6-8e27-73a3444916de", 'is_modified' => TRUE, - 'from' => "2020-09-02T18:36:23.000000Z", - 'to' => "2024-03-09T02:14:24.000000Z", - 'next_page_cursor_id' => "48325a32-e847-41d0-a63e-e948ab0b7e59", - 'prev_page_cursor_id' => "a894565b-9de5-4c9c-a5ca-bed739c8f016", - 'per_page' => 459 + 'from' => "2020-09-10T20:04:56.000000Z", + 'to' => "2023-07-09T03:31:17.000000Z", + 'next_page_cursor_id' => "aac2dd93-e210-4c7c-b15c-9ed6b027a8a0", + 'prev_page_cursor_id' => "c67bbd50-ea2a-4643-be5f-39880f55a604", + 'per_page' => 279 ] ); try { @@ -321,20 +321,20 @@ public function testListBillTransactions14() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'organization_code' => "-p--Qk-ft1--", - 'shop_id' => "b6611fff-d137-455d-b92d-73a858c514d6", - 'customer_id' => "9bf5346a-9159-487d-9a1a-65a63be07b7a", - 'customer_name' => "kjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX71br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompot", - 'terminal_id' => "67ba05e1-28ca-4396-a0a1-264036402b42", - 'description' => "Lyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIVjtUkLTSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK2ybDtXJii", - 'transaction_id' => "zBkt", - 'bill_id' => "9", + 'organization_code' => "Fm-", + 'shop_id' => "a3aa113a-8113-4dfe-a2eb-79007c9f52ad", + 'customer_id' => "190c67f8-f98e-493f-9fb4-074b3f6b0db7", + 'customer_name' => "mpotaJBLyz8KN17fLxPU1GvU5oJnH6hOfBgmDSuxOmphkziTG6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5kbgs6xUgxf5sOofYseOtl3ilNOPpyIV", + 'terminal_id' => "8ed87dea-d9f4-4f5e-9591-fa6b2e7b2586", + 'description' => "TSkOKux630Id9YuKsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDdKfbC96DBMvuC0Q", + 'transaction_id' => "361edf54-365f-4f0e-a6bc-afa2f9c42317", + 'bill_id' => "9fcf2d40-a278-4982-b86c-a5b2d11015bb", 'is_modified' => TRUE, - 'from' => "2022-12-04T17:33:31.000000Z", - 'to' => "2023-01-18T10:01:23.000000Z", - 'next_page_cursor_id' => "37284bc4-5064-4c4b-abe6-9d624d329243", - 'prev_page_cursor_id' => "905a8190-f8a8-4239-af36-7a449d92f240", - 'per_page' => 864 + 'from' => "2021-09-25T23:49:46.000000Z", + 'to' => "2022-03-23T13:41:52.000000Z", + 'next_page_cursor_id' => "6915cc42-07bc-496a-9979-aa3fc57b1ed1", + 'prev_page_cursor_id' => "cb0b8d8d-e5f1-479d-a520-accfee17411e", + 'per_page' => 272 ] ); try { @@ -351,21 +351,21 @@ public function testListBillTransactions15() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'private_money_id' => "cad46929-3a8f-457c-9d5c-31c277b7123f", - 'organization_code' => "2-y--fJ2-S---", - 'shop_id' => "46dcba2e-8ca8-4ad1-a4a4-88b6ba61bec6", - 'customer_id' => "19d96b46-016a-40fa-b199-3f5e9456f677", - 'customer_name' => "njIRjO9MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELq", - 'terminal_id' => "ba84bbca-b2f7-4252-9f41-f8a9243f659a", - 'description' => "2Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtB", - 'transaction_id' => "Zgc4", - 'bill_id' => "wc8RSE7B", - 'is_modified' => FALSE, - 'from' => "2022-08-11T00:57:01.000000Z", - 'to' => "2021-04-22T15:36:43.000000Z", - 'next_page_cursor_id' => "2db0b421-c073-4771-ae7e-4780e6dd3d22", - 'prev_page_cursor_id' => "da0e76a3-63fe-44e6-8819-4ec1cf3adbad", - 'per_page' => 191 + 'private_money_id' => "9aeee731-60fe-4f2b-b93f-764b089d7d68", + 'organization_code' => "S6-pZn6zKe3am-3l-N7RH-Or9", + 'shop_id' => "4c31d29a-31ff-4be4-a42b-383ae9016134", + 'customer_id' => "22e4bfa7-c7ed-47ad-8c80-601f0b400fca", + 'customer_name' => "zHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuOnspa8l8OxqMpLrB8ZQmhXHGSVgVcs3OQMdHqZLlv01wGqOn2jIsFsWbo7bpQq9anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApk", + 'terminal_id' => "a1a45582-2dab-46a4-a144-686552dae459", + 'description' => "OtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0U4QnLZWmGvTq", + 'transaction_id' => "6c4258ff-1c10-41bf-884c-e2a432ad195b", + 'bill_id' => "9920bdd1-0d77-4861-865a-76025ae04e39", + 'is_modified' => TRUE, + 'from' => "2022-05-05T05:49:39.000000Z", + 'to' => "2023-09-06T13:11:29.000000Z", + 'next_page_cursor_id' => "44324a70-0bef-45d2-af88-055081e7443c", + 'prev_page_cursor_id' => "9e7e9011-bc0b-48cb-95e7-2c7e94ec302f", + 'per_page' => 10 ] ); try { diff --git a/tests/ListBillsTest.php b/tests/ListBillsTest.php index 90a3dd97..b4b7ad7e 100644 --- a/tests/ListBillsTest.php +++ b/tests/ListBillsTest.php @@ -22,7 +22,7 @@ public function testListBills1() $client = $this->newClient(); $request = new Request\ListBills( [ - 'is_disabled' => FALSE + 'is_disabled' => TRUE ] ); try { @@ -39,8 +39,8 @@ public function testListBills2() $client = $this->newClient(); $request = new Request\ListBills( [ - 'upper_limit_amount' => 3460, - 'is_disabled' => FALSE + 'upper_limit_amount' => 3549, + 'is_disabled' => TRUE ] ); try { @@ -57,9 +57,9 @@ public function testListBills3() $client = $this->newClient(); $request = new Request\ListBills( [ - 'lower_limit_amount' => 3003, - 'upper_limit_amount' => 2795, - 'is_disabled' => TRUE + 'lower_limit_amount' => 7634, + 'upper_limit_amount' => 4359, + 'is_disabled' => FALSE ] ); try { @@ -76,9 +76,9 @@ public function testListBills4() $client = $this->newClient(); $request = new Request\ListBills( [ - 'shop_id' => "a9696cec-9a6a-4ba0-b1b1-beff32bea9d1", - 'lower_limit_amount' => 6740, - 'upper_limit_amount' => 874, + 'shop_id' => "0444cb55-e682-46a6-a9b9-ba047a7d4d84", + 'lower_limit_amount' => 1715, + 'upper_limit_amount' => 3003, 'is_disabled' => FALSE ] ); @@ -96,11 +96,11 @@ public function testListBills5() $client = $this->newClient(); $request = new Request\ListBills( [ - 'shop_name' => "kgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kX", - 'shop_id' => "52fbc519-17e0-450f-a1fb-f1be62dd6c3d", - 'lower_limit_amount' => 6587, - 'upper_limit_amount' => 4324, - 'is_disabled' => TRUE + 'shop_name' => "ljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTYqN", + 'shop_id' => "487a51ce-007c-4246-8750-f801fe583563", + 'lower_limit_amount' => 2571, + 'upper_limit_amount' => 9230, + 'is_disabled' => FALSE ] ); try { @@ -117,12 +117,12 @@ public function testListBills6() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'created_to' => "2023-04-06T21:01:03.000000Z", + 'shop_name' => "fJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8VyuReCXx5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41muEKIO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n", + 'shop_id' => "07657833-0ba0-4226-9274-368c5525e408", + 'lower_limit_amount' => 8452, + 'upper_limit_amount' => 7282, + 'is_disabled' => FALSE ] ); try { @@ -139,13 +139,13 @@ public function testListBills7() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'created_from' => "2024-10-26T06:23:56.000000Z", + 'created_to' => "2025-05-29T22:35:28.000000Z", + 'shop_name' => "bvzHyQJ1u", + 'shop_id' => "cbd78f88-c62f-4afc-b0a9-6ded7735a6dd", + 'lower_limit_amount' => 7338, + 'upper_limit_amount' => 5323, + 'is_disabled' => TRUE ] ); try { @@ -162,14 +162,14 @@ public function testListBills8() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'description' => "rSXl5b4zk", + 'created_from' => "2024-10-25T21:23:14.000000Z", + 'created_to' => "2021-07-27T13:32:24.000000Z", + 'shop_name' => "XIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQ", + 'shop_id' => "a2c93ddf-40ba-4e47-8ee8-4f91a69b9fdc", + 'lower_limit_amount' => 2090, + 'upper_limit_amount' => 8705, + 'is_disabled' => TRUE ] ); try { @@ -186,15 +186,15 @@ public function testListBills9() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'organization_code' => "Bc--7nl0IYap--9aa948FjB", + 'description' => "nkYKzlD45lOs5FqPThDPFGAn6g717B9KAWVHYRkMJaQT0YWfQtgxVhq9RVZQG6j5A2pjVon4uuDqic8AnsoXtmv8LerXQe8LjF8Q6qvpD5ZbBwXFvQ1skGDixXFJczCMVyjlRecAjob", + 'created_from' => "2020-06-04T23:01:23.000000Z", + 'created_to' => "2021-04-04T15:21:20.000000Z", + 'shop_name' => "KVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW0caD1nqOzKQjZCyx1Ep4VkAmGgvgI7YgVKC9", + 'shop_id' => "5d1946d2-630b-4321-a651-775bec6a8fe9", + 'lower_limit_amount' => 3067, + 'upper_limit_amount' => 6099, + 'is_disabled' => TRUE ] ); try { @@ -211,16 +211,16 @@ public function testListBills10() $client = $this->newClient(); $request = new Request\ListBills( [ - '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' => "2024-06-09T12:30:26.000000Z", - 'shop_name' => "20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54HWI6lY3NxA2Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLn", - 'shop_id' => "9a3fe1c1-2772-44b7-a14e-85c862961001", - 'lower_limit_amount' => 3446, - 'upper_limit_amount' => 4104, - 'is_disabled' => TRUE + 'private_money_id' => "bef68154-e22e-45d7-9a2a-320e11de6b72", + 'organization_code' => "f1-KE6-WX0z-64b50d-mzO5vzt-ZY-9", + 'description' => "GujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd144X7ZEq8UGlMat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1", + 'created_from' => "2022-03-16T12:50:50.000000Z", + 'created_to' => "2025-02-24T06:36:12.000000Z", + 'shop_name' => "ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1ER9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55o", + 'shop_id' => "2bd82cfc-e5e0-44ae-8149-1891e7317fbc", + 'lower_limit_amount' => 8500, + 'upper_limit_amount' => 9174, + 'is_disabled' => FALSE ] ); try { @@ -237,16 +237,16 @@ public function testListBills11() $client = $this->newClient(); $request = new Request\ListBills( [ - 'bill_id' => "M", - 'private_money_id' => "a52375dc-0844-42fc-a55a-9f4c3ee4024f", - 'organization_code' => "3-8ErShQ--14--5Lh-va--U-", - 'description' => "JLdESdgB4", - 'created_from' => "2022-11-07T11:43:00.000000Z", - 'created_to' => "2021-08-22T14:32:00.000000Z", - 'shop_name' => "huAgx6J23S5a4KJH2dJnXOeAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacS", - 'shop_id' => "18a62974-78b3-47f7-bca1-bc8ae5d555e8", - 'lower_limit_amount' => 4830, - 'upper_limit_amount' => 6678, + 'bill_id' => "4sTwcYeF", + 'private_money_id' => "46734710-07a5-4f77-a350-74907f562620", + 'organization_code' => "", + 'description' => "0aYr1y1KHCmQGL0IM3EaCDd87kJG01a7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD43fZ5T5bk20", + 'created_from' => "2020-06-18T16:52:25.000000Z", + 'created_to' => "2025-05-08T16:17:37.000000Z", + 'shop_name' => "Bp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9T", + 'shop_id' => "9075e2e3-dff9-4018-b7ef-496737afcbbf", + 'lower_limit_amount' => 331, + 'upper_limit_amount' => 4973, 'is_disabled' => FALSE ] ); @@ -264,18 +264,18 @@ public function testListBills12() $client = $this->newClient(); $request = new Request\ListBills( [ - 'per_page' => 737, - 'bill_id' => "HQ5cbR", - 'private_money_id' => "9a952f36-ae32-41a0-8f45-7edd3017071c", - 'organization_code' => "X-z3q470F5N-NRB9-Syci", - 'description' => "T65YfaNVM2xjqlPxxy8RqwFWTQ1hvVt9bN2zI", - 'created_from' => "2020-09-25T15:17:58.000000Z", - 'created_to' => "2020-12-02T23:21:54.000000Z", - 'shop_name' => "Zx4eE9mHPjq6XCvYjxbcuNA5AOQ", - 'shop_id' => "07d8d248-443e-4527-be89-51bad8f57297", - 'lower_limit_amount' => 6034, - 'upper_limit_amount' => 8050, - 'is_disabled' => FALSE + 'per_page' => 8323, + 'bill_id' => "w0VnsF", + 'private_money_id' => "c200cedf-981b-4ef9-ba91-38092f4d8b66", + 'organization_code' => "-vv9f-RNUtv3vq-3p-xRd106X-oyS", + 'description' => "Qq6LVyn2dOGJj5BoyL1MgjctfisLuYo4aorOwFrhmbs26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXOeAy8xYgm", + 'created_from' => "2025-07-14T01:33:07.000000Z", + 'created_to' => "2023-09-20T06:04:03.000000Z", + 'shop_name' => "d6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfgL13rI1kMYSkzLYWcqyBEPqq6jXoMPoI5dYhtAEAC8MN1MIRbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WY", + 'shop_id' => "dc815066-5483-45c8-90e6-b72be0fdd024", + 'lower_limit_amount' => 3223, + 'upper_limit_amount' => 5454, + 'is_disabled' => TRUE ] ); try { @@ -292,19 +292,19 @@ public function testListBills13() $client = $this->newClient(); $request = new Request\ListBills( [ - 'page' => 4791, - 'per_page' => 8158, - 'bill_id' => "Xo", - 'private_money_id' => "c4701f9c-f3fb-4d10-a3d0-83f5eb671e34", - 'organization_code' => "-Mka-PgXu0Xkt9H--9-g0", - 'description' => "nur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rx", - 'created_from' => "2023-09-11T18:25:47.000000Z", - 'created_to' => "2021-10-19T12:21:40.000000Z", - 'shop_name' => "yEvnewbYd4rNZJsCq7m7arw2NKYH1", - 'shop_id' => "d1ec81a0-e632-4807-9781-7b7870093e19", - 'lower_limit_amount' => 7590, - 'upper_limit_amount' => 8545, - 'is_disabled' => FALSE + 'page' => 9810, + 'per_page' => 2118, + 'bill_id' => "e9O", + 'private_money_id' => "2b6354d5-d06d-4bf5-9189-8da161f0127e", + 'organization_code' => "S-X74VI8-wXiuC", + 'description' => "2zIxN", + 'created_from' => "2020-12-02T23:21:54.000000Z", + 'created_to' => "2023-06-12T18:08:26.000000Z", + 'shop_name' => "Zx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6yDqMFurm2HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBDQiRCyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A3", + 'shop_id' => "d4837732-d883-44e0-9445-ae53172887f1", + 'lower_limit_amount' => 3367, + 'upper_limit_amount' => 1728, + 'is_disabled' => TRUE ] ); try { diff --git a/tests/ListBulkTransactionJobsTest.php b/tests/ListBulkTransactionJobsTest.php index c2e7771a..a2f880c1 100644 --- a/tests/ListBulkTransactionJobsTest.php +++ b/tests/ListBulkTransactionJobsTest.php @@ -8,7 +8,7 @@ public function testListBulkTransactionJobs0() { $client = $this->newClient(); $request = new Request\ListBulkTransactionJobs( - "ed288508-9795-4e88-94af-a1156c048fe6" + "852eee3b-f35b-4508-9588-d9d4de2e22af" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListBulkTransactionJobs1() { $client = $this->newClient(); $request = new Request\ListBulkTransactionJobs( - "ed288508-9795-4e88-94af-a1156c048fe6", + "852eee3b-f35b-4508-9588-d9d4de2e22af", [ - 'per_page' => 5065 + 'per_page' => 8470 ] ); try { @@ -41,10 +41,10 @@ public function testListBulkTransactionJobs2() { $client = $this->newClient(); $request = new Request\ListBulkTransactionJobs( - "ed288508-9795-4e88-94af-a1156c048fe6", + "852eee3b-f35b-4508-9588-d9d4de2e22af", [ - 'page' => 754, - 'per_page' => 9965 + 'page' => 4071, + 'per_page' => 5065 ] ); try { diff --git a/tests/ListCampaignsTest.php b/tests/ListCampaignsTest.php index 7fbebce8..445efd12 100644 --- a/tests/ListCampaignsTest.php +++ b/tests/ListCampaignsTest.php @@ -8,7 +8,7 @@ public function testListCampaigns0() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "788ef505-ce3f-42f5-a8b8-4139ff73750a" + "fd800db0-acbf-4388-a854-baf08f22a10a" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListCampaigns1() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "788ef505-ce3f-42f5-a8b8-4139ff73750a", + "fd800db0-acbf-4388-a854-baf08f22a10a", [ - 'per_page' => 46 + 'per_page' => 29 ] ); try { @@ -41,10 +41,10 @@ public function testListCampaigns2() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "788ef505-ce3f-42f5-a8b8-4139ff73750a", + "fd800db0-acbf-4388-a854-baf08f22a10a", [ - 'page' => 2117, - 'per_page' => 49 + 'page' => 9391, + 'per_page' => 38 ] ); try { @@ -60,11 +60,11 @@ public function testListCampaigns3() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "788ef505-ce3f-42f5-a8b8-4139ff73750a", + "fd800db0-acbf-4388-a854-baf08f22a10a", [ - 'available_to' => "2020-01-30T13:05:12.000000Z", - 'page' => 7765, - 'per_page' => 49 + 'available_to' => "2022-03-04T06:42:31.000000Z", + 'page' => 1796, + 'per_page' => 36 ] ); try { @@ -80,12 +80,12 @@ public function testListCampaigns4() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "788ef505-ce3f-42f5-a8b8-4139ff73750a", + "fd800db0-acbf-4388-a854-baf08f22a10a", [ - 'available_from' => "2022-10-21T22:05:49.000000Z", - 'available_to' => "2020-01-19T00:51:04.000000Z", - 'page' => 3677, - 'per_page' => 47 + 'available_from' => "2022-04-27T15:23:38.000000Z", + 'available_to' => "2020-01-23T22:52:17.000000Z", + 'page' => 7546, + 'per_page' => 25 ] ); try { @@ -101,13 +101,13 @@ public function testListCampaigns5() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "788ef505-ce3f-42f5-a8b8-4139ff73750a", + "fd800db0-acbf-4388-a854-baf08f22a10a", [ 'is_ongoing' => FALSE, - 'available_from' => "2022-03-04T06:42:31.000000Z", - 'available_to' => "2020-03-10T14:13:54.000000Z", - 'page' => 1796, - 'per_page' => 36 + 'available_from' => "2024-12-16T18:45:53.000000Z", + 'available_to' => "2023-03-17T19:45:26.000000Z", + 'page' => 3011, + 'per_page' => 12 ] ); try { diff --git a/tests/ListChecksTest.php b/tests/ListChecksTest.php index 5d4dd41d..3e264ce1 100644 --- a/tests/ListChecksTest.php +++ b/tests/ListChecksTest.php @@ -22,7 +22,7 @@ public function testListChecks1() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'is_disabled' => FALSE + 'is_disabled' => TRUE ] ); try { @@ -39,8 +39,8 @@ public function testListChecks2() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'is_onetime' => TRUE, - 'is_disabled' => TRUE + 'is_onetime' => FALSE, + 'is_disabled' => FALSE ] ); try { @@ -57,9 +57,9 @@ public function testListChecks3() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'description' => "rfIL", - 'is_onetime' => FALSE, - 'is_disabled' => FALSE + 'description' => "vzxKV", + 'is_onetime' => TRUE, + 'is_disabled' => TRUE ] ); try { @@ -76,8 +76,8 @@ public function testListChecks4() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'issuer_shop_id' => "eda02500-664e-4e38-97fb-26bf47759f9c", - 'description' => "7", + 'issuer_shop_id' => "640b29df-4bdd-4fdd-8f8b-c2f8a00ad6e4", + 'description' => "oit", 'is_onetime' => TRUE, 'is_disabled' => TRUE ] @@ -96,11 +96,11 @@ public function testListChecks5() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'created_to' => "2023-04-23T01:28:23.000000Z", - 'issuer_shop_id' => "dd29802a-5d83-413f-8cfe-74066b7b4bca", - 'description' => "oY", - 'is_onetime' => FALSE, - 'is_disabled' => FALSE + 'created_to' => "2021-01-09T20:47:56.000000Z", + 'issuer_shop_id' => "3c1ae76e-dbfe-46a3-b306-105227017b64", + 'description' => "0a6T9IRy95", + 'is_onetime' => TRUE, + 'is_disabled' => TRUE ] ); try { @@ -117,12 +117,12 @@ public function testListChecks6() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'created_from' => "2021-11-04T11:35:54.000000Z", - 'created_to' => "2022-11-08T06:35:09.000000Z", - 'issuer_shop_id' => "9f6b96c0-dfe2-4138-89f3-a10a20987af0", - 'description' => "1FcaYx8", - 'is_onetime' => FALSE, - 'is_disabled' => TRUE + 'created_from' => "2022-10-04T10:31:17.000000Z", + 'created_to' => "2023-05-18T09:32:59.000000Z", + 'issuer_shop_id' => "07e82708-a76e-4759-a9ea-893a81c8ee36", + 'description' => "DV", + 'is_onetime' => TRUE, + 'is_disabled' => FALSE ] ); try { @@ -139,11 +139,11 @@ public function testListChecks7() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'expires_to' => "2021-04-29T11:14:49.000000Z", - 'created_from' => "2024-09-17T11:10:47.000000Z", - 'created_to' => "2021-02-14T00:09:23.000000Z", - 'issuer_shop_id' => "43529fa7-7637-4992-9e4b-7d816ca05cb2", - 'description' => "oQE", + 'expires_to' => "2023-08-06T09:38:39.000000Z", + 'created_from' => "2020-01-23T21:13:39.000000Z", + 'created_to' => "2023-01-13T06:28:01.000000Z", + 'issuer_shop_id' => "c093002d-f240-4c8e-846b-e9f230ddafb4", + 'description' => "WttvA7t", 'is_onetime' => TRUE, 'is_disabled' => TRUE ] @@ -162,12 +162,12 @@ public function testListChecks8() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'expires_from' => "2023-08-18T13:32:31.000000Z", - 'expires_to' => "2020-07-10T20:09:28.000000Z", - 'created_from' => "2024-08-30T22:02:55.000000Z", - 'created_to' => "2020-10-04T10:56:49.000000Z", - 'issuer_shop_id' => "04c2c0e4-ee76-4c1c-aefa-23874afee603", - 'description' => "KVxdoit0n", + 'expires_from' => "2023-05-11T16:13:02.000000Z", + 'expires_to' => "2024-06-05T09:36:57.000000Z", + 'created_from' => "2023-04-12T02:44:55.000000Z", + 'created_to' => "2020-10-24T22:11:52.000000Z", + 'issuer_shop_id' => "e6b00f2d-1677-43eb-aa1e-e70d55bc4e64", + 'description' => "XwioDp", 'is_onetime' => TRUE, 'is_disabled' => FALSE ] @@ -186,15 +186,15 @@ public function testListChecks9() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'organization_code' => "RdkY0a6T9IRy95uKnYj6", - 'expires_from' => "2021-07-21T06:51:59.000000Z", - 'expires_to' => "2022-01-15T21:12:06.000000Z", - 'created_from' => "2021-09-02T02:43:46.000000Z", - 'created_to' => "2023-08-06T09:38:39.000000Z", - 'issuer_shop_id' => "201e2b83-18f1-402d-808e-1dc4c80bd16b", - 'description' => "4zF", - 'is_onetime' => FALSE, - 'is_disabled' => TRUE + 'organization_code' => "uzoNbRpuKefj9znX2XonFzQcO", + 'expires_from' => "2020-08-27T12:04:05.000000Z", + 'expires_to' => "2024-05-30T01:20:05.000000Z", + 'created_from' => "2020-07-31T16:26:05.000000Z", + 'created_to' => "2024-06-27T02:13:35.000000Z", + 'issuer_shop_id' => "8ecfc2ed-7764-470d-96e7-6307d783198e", + 'description' => "Um", + 'is_onetime' => TRUE, + 'is_disabled' => FALSE ] ); try { @@ -211,14 +211,14 @@ public function testListChecks10() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'private_money_id' => "c0917074-e8f6-46c1-83a0-1cdd2f6c1e37", - 'organization_code' => "t4NS9wkdOXwioDpfXuzoNb", - 'expires_from' => "2022-05-14T21:29:54.000000Z", - 'expires_to' => "2023-01-21T02:32:01.000000Z", - 'created_from' => "2023-09-02T13:45:51.000000Z", - 'created_to' => "2021-06-27T19:24:57.000000Z", - 'issuer_shop_id' => "72a8e55d-15aa-4b75-8b65-52a1880d0eaf", - 'description' => "j9znX2X", + 'private_money_id' => "085f3bb7-203f-4e33-8980-0fb2ab4c0b6b", + 'organization_code' => "FchNQksZB6ByT3lVRQ7O823WFeXC", + 'expires_from' => "2020-02-20T03:38:17.000000Z", + 'expires_to' => "2020-10-27T05:06:59.000000Z", + 'created_from' => "2024-04-20T03:42:57.000000Z", + 'created_to' => "2022-04-13T01:13:40.000000Z", + 'issuer_shop_id' => "ae173a93-d406-41aa-9c66-65f61a58df2a", + 'description' => "Wv5Set", 'is_onetime' => TRUE, 'is_disabled' => FALSE ] @@ -237,17 +237,17 @@ public function testListChecks11() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'per_page' => 8559, - 'private_money_id' => "0e65db05-3dc6-4ba5-baac-be51bada5be3", - 'organization_code' => "5QEOmdgUm73I2kFc", - 'expires_from' => "2020-01-21T19:39:55.000000Z", - 'expires_to' => "2022-05-24T22:27:26.000000Z", - 'created_from' => "2020-09-17T20:59:41.000000Z", - 'created_to' => "2021-02-09T18:52:01.000000Z", - 'issuer_shop_id' => "77b23aeb-57f3-4a5a-821d-947f9d2f56b6", - 'description' => "yT3", - 'is_onetime' => TRUE, - 'is_disabled' => TRUE + 'per_page' => 1613, + 'private_money_id' => "a084768c-99a9-4e2a-80f5-615d7e7003a3", + 'organization_code' => "ZcB6tdcwibyPvTHbjOWbqqVGNOP2f7", + 'expires_from' => "2024-02-20T03:43:02.000000Z", + 'expires_to' => "2025-09-17T11:51:03.000000Z", + 'created_from' => "2020-12-11T19:05:46.000000Z", + 'created_to' => "2020-12-14T12:17:49.000000Z", + 'issuer_shop_id' => "a26c5e0b-75c0-4ee3-8da3-03ae2606f57c", + 'description' => "6XSXXM3", + 'is_onetime' => FALSE, + 'is_disabled' => FALSE ] ); try { @@ -264,18 +264,18 @@ public function testListChecks12() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'page' => 9600, - 'per_page' => 87, - 'private_money_id' => "a8b8f410-d352-4951-843e-6a37884d22cf", - 'organization_code' => "823WFeXCsADfv", - 'expires_from' => "2023-05-11T13:54:21.000000Z", - 'expires_to' => "2020-01-13T01:26:13.000000Z", - 'created_from' => "2022-07-02T00:06:35.000000Z", - 'created_to' => "2020-01-07T02:30:24.000000Z", - 'issuer_shop_id' => "01f62a9d-2753-4b1a-a5ac-4cf43f2ce74a", - 'description' => "Lu", + 'page' => 7862, + 'per_page' => 7933, + 'private_money_id' => "e8ede37f-8c5f-4950-83f8-69fd26ca8dee", + 'organization_code' => "FhfkfYgvABx", + 'expires_from' => "2022-09-20T22:16:50.000000Z", + 'expires_to' => "2024-04-13T23:55:07.000000Z", + 'created_from' => "2023-04-18T23:12:42.000000Z", + 'created_to' => "2021-11-07T03:45:26.000000Z", + 'issuer_shop_id' => "adfabd04-26ab-46b7-b285-ea2f770a7ba9", + 'description' => "Xm6F6onht", 'is_onetime' => FALSE, - 'is_disabled' => FALSE + 'is_disabled' => TRUE ] ); try { diff --git a/tests/ListCouponsTest.php b/tests/ListCouponsTest.php index 3638e32e..243c3bb8 100644 --- a/tests/ListCouponsTest.php +++ b/tests/ListCouponsTest.php @@ -8,7 +8,7 @@ public function testListCoupons0() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9" + "a6b15bb7-5638-4c99-9738-8fe9399d52a1" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListCoupons1() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9", + "a6b15bb7-5638-4c99-9738-8fe9399d52a1", [ - 'per_page' => 9555 + 'per_page' => 5485 ] ); try { @@ -41,10 +41,10 @@ public function testListCoupons2() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9", + "a6b15bb7-5638-4c99-9738-8fe9399d52a1", [ - 'page' => 6996, - 'per_page' => 5340 + 'page' => 2145, + 'per_page' => 4061 ] ); try { @@ -60,11 +60,11 @@ public function testListCoupons3() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9", + "a6b15bb7-5638-4c99-9738-8fe9399d52a1", [ - 'available_to' => "2022-08-06T06:44:53.000000Z", - 'page' => 9681, - 'per_page' => 3661 + 'available_to' => "2024-01-11T13:13:31.000000Z", + 'page' => 6061, + 'per_page' => 5678 ] ); try { @@ -80,12 +80,12 @@ public function testListCoupons4() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9", + "a6b15bb7-5638-4c99-9738-8fe9399d52a1", [ - 'available_from' => "2023-03-29T23:22:07.000000Z", - 'available_to' => "2023-10-12T12:41:31.000000Z", - 'page' => 2392, - 'per_page' => 4734 + 'available_from' => "2024-11-10T14:43:52.000000Z", + 'available_to' => "2025-06-19T01:49:43.000000Z", + 'page' => 3798, + 'per_page' => 7026 ] ); try { @@ -101,13 +101,13 @@ public function testListCoupons5() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9", + "a6b15bb7-5638-4c99-9738-8fe9399d52a1", [ - 'available_shop_name' => "1Vfe", - 'available_from' => "2020-10-01T04:46:44.000000Z", - 'available_to' => "2023-12-30T19:18:10.000000Z", - 'page' => 6962, - 'per_page' => 3401 + 'available_shop_name' => "zLy9", + 'available_from' => "2023-10-31T04:30:48.000000Z", + 'available_to' => "2023-08-22T22:03:54.000000Z", + 'page' => 3065, + 'per_page' => 5692 ] ); try { @@ -123,14 +123,14 @@ public function testListCoupons6() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9", + "a6b15bb7-5638-4c99-9738-8fe9399d52a1", [ - 'issued_shop_name' => "r4pu5z", - 'available_shop_name' => "bHCqAb", - 'available_from' => "2020-09-21T18:00:28.000000Z", - 'available_to' => "2021-09-06T12:12:46.000000Z", - 'page' => 7159, - 'per_page' => 3774 + 'issued_shop_name' => "4h", + 'available_shop_name' => "bOAXXYVgV", + 'available_from' => "2021-11-08T21:38:50.000000Z", + 'available_to' => "2021-07-28T11:30:37.000000Z", + 'page' => 1818, + 'per_page' => 2043 ] ); try { @@ -146,15 +146,15 @@ public function testListCoupons7() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9", + "a6b15bb7-5638-4c99-9738-8fe9399d52a1", [ - 'coupon_name' => "aj08T", - 'issued_shop_name' => "AqfU9VC", - 'available_shop_name' => "6cIIeErItI", - 'available_from' => "2023-11-23T16:20:13.000000Z", - 'available_to' => "2020-01-04T16:26:40.000000Z", - 'page' => 4330, - 'per_page' => 1570 + 'coupon_name' => "hmxuYV6", + 'issued_shop_name' => "qe5o2", + 'available_shop_name' => "2Ol", + 'available_from' => "2024-06-06T10:27:30.000000Z", + 'available_to' => "2021-01-11T11:41:00.000000Z", + 'page' => 1710, + 'per_page' => 1574 ] ); try { @@ -170,16 +170,16 @@ public function testListCoupons8() { $client = $this->newClient(); $request = new Request\ListCoupons( - "640b98cc-dd91-4af6-b9db-4b726146cfd9", + "a6b15bb7-5638-4c99-9738-8fe9399d52a1", [ - 'coupon_id' => "tFd5fw", - 'coupon_name' => "xE", - 'issued_shop_name' => "mAXCuaDk4", - 'available_shop_name' => "OYMd63", - 'available_from' => "2022-10-19T08:38:30.000000Z", - 'available_to' => "2021-02-19T11:26:16.000000Z", - 'page' => 7559, - 'per_page' => 7250 + 'coupon_id' => "dk5kJbuw4", + 'coupon_name' => "uJbyUdwtwe", + 'issued_shop_name' => "akD", + 'available_shop_name' => "g0TFsZujDl", + 'available_from' => "2024-10-27T07:48:57.000000Z", + 'available_to' => "2022-09-10T05:04:20.000000Z", + 'page' => 8642, + 'per_page' => 5517 ] ); try { diff --git a/tests/ListCustomerTransactionsTest.php b/tests/ListCustomerTransactionsTest.php index 471a362b..b6364446 100644 --- a/tests/ListCustomerTransactionsTest.php +++ b/tests/ListCustomerTransactionsTest.php @@ -176,10 +176,10 @@ public function testListCustomerTransactions8() 'receiver_customer_id' => "95bba404-1c12-49b8-b33c-80cae6f8f332", 'type' => "expire", 'is_modified' => TRUE, - 'from' => "2023-11-30T16:04:38.000000Z", - 'to' => "2021-10-28T10:36:00.000000Z", - 'page' => 9592, - 'per_page' => 3713 + 'from' => "2024-11-12T16:05:48.000000Z", + 'to' => "2023-11-30T16:04:38.000000Z", + 'page' => 7185, + 'per_page' => 9592 ] ); try { diff --git a/tests/ListOrganizationsTest.php b/tests/ListOrganizationsTest.php index 1fba03ef..b91eb664 100644 --- a/tests/ListOrganizationsTest.php +++ b/tests/ListOrganizationsTest.php @@ -8,7 +8,7 @@ public function testListOrganizations0() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "97fa08ff-b16c-468d-be4f-4cc3ecbd2b9e" + "fb66ff47-57a3-40a1-9961-20f013711956" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListOrganizations1() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "97fa08ff-b16c-468d-be4f-4cc3ecbd2b9e", + "fb66ff47-57a3-40a1-9961-20f013711956", [ - 'code' => "YapVIyu0" + 'code' => "yu0AtoOYT3" ] ); try { @@ -41,10 +41,10 @@ public function testListOrganizations2() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "97fa08ff-b16c-468d-be4f-4cc3ecbd2b9e", + "fb66ff47-57a3-40a1-9961-20f013711956", [ - 'name' => "to", - 'code' => "T3d8xXDGe3" + 'name' => "8xXDG", + 'code' => "31wijg" ] ); try { @@ -60,11 +60,11 @@ public function testListOrganizations3() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "97fa08ff-b16c-468d-be4f-4cc3ecbd2b9e", + "fb66ff47-57a3-40a1-9961-20f013711956", [ - 'per_page' => 7928, - 'name' => "jgcuuWSuuP", - 'code' => "7qXID" + 'per_page' => 7926, + 'name' => "WSuuP7", + 'code' => "XI" ] ); try { @@ -80,10 +80,10 @@ public function testListOrganizations4() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "97fa08ff-b16c-468d-be4f-4cc3ecbd2b9e", + "fb66ff47-57a3-40a1-9961-20f013711956", [ - 'page' => 6871, - 'per_page' => 4093, + 'page' => 9105, + 'per_page' => 6871, 'name' => "zNjNiLWADY", 'code' => "WxDRpy" ] diff --git a/tests/ListTransactionsTest.php b/tests/ListTransactionsTest.php index 33be6b56..192b6a36 100644 --- a/tests/ListTransactionsTest.php +++ b/tests/ListTransactionsTest.php @@ -22,7 +22,7 @@ public function testListTransactions1() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'description' => "WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtdGDmgs4Vk2VUx2tI5N4bIOpNtWwRJ7taFGOOZNR9womkOYYX" + 'description' => "N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXu" ] ); try { @@ -39,8 +39,8 @@ public function testListTransactions2() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'types' => ["exchange_inflow"], - 'description' => "acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPc" + 'types' => ["payment"], + 'description' => "q9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCA" ] ); try { @@ -58,8 +58,8 @@ public function testListTransactions3() $request = new Request\ListTransactions( [ 'is_modified' => TRUE, - 'types' => ["topup", "exchange_outflow"], - 'description' => "CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd" + 'types' => ["payment"], + 'description' => "f4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1" ] ); try { @@ -76,10 +76,10 @@ public function testListTransactions4() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'private_money_id' => "8241fcb6-d353-4140-8de7-58b4bf444d8d", + 'private_money_id' => "7fa37eed-4d43-4f3c-b2b6-b411425247b0", 'is_modified' => TRUE, - 'types' => ["expire", "topup", "exchange_outflow", "payment"], - 'description' => "LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCAhIxweHf4mh" + 'types' => ["cashback", "payment"], + 'description' => "7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvf" ] ); try { @@ -96,11 +96,11 @@ public function testListTransactions5() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'organization_code' => "s8cQf--ht--D", - 'private_money_id' => "c5d1da6b-ab22-4598-9835-a1de9db3ebc7", + 'organization_code' => "803-2UWgF9A28O1--25djJe--", + 'private_money_id' => "ada11cee-4e79-408b-bda5-b1d542c267a2", 'is_modified' => TRUE, - 'types' => ["cashback", "exchange_outflow", "exchange_inflow", "payment", "topup"], - 'description' => "sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvflY8MFYZJvlfPZ9XRs2DjUex8" + 'types' => ["exchange_inflow"], + 'description' => "1h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdP" ] ); try { @@ -117,12 +117,12 @@ public function testListTransactions6() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'transaction_id' => "Zcru468", - 'organization_code' => "436qXf", - 'private_money_id' => "b827d131-f8e8-44ac-977f-3ab363c948a2", + 'transaction_id' => "5lY5r", + 'organization_code' => "-SPF--Ue-xT-4af1yX--Qo3P-88", + 'private_money_id' => "2674231f-ff7f-43b2-84c3-4c6ceedee5b6", 'is_modified' => TRUE, - 'types' => ["exchange_inflow", "exchange_outflow", "payment", "cashback"], - 'description' => "pn04JUSx27eVHz2wOx9gOffBCzdPD5lY5ruzs73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXD" + 'types' => ["payment", "topup", "cashback", "expire", "exchange_inflow"], + 'description' => "2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayj" ] ); try { @@ -139,13 +139,13 @@ public function testListTransactions7() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'terminal_id' => "14db71eb-d419-4c4a-87f1-7879db1dae31", - 'transaction_id' => "yPaGHV", - 'organization_code' => "W-9jFTlu-XkApk--324-FW3m--8-", - 'private_money_id' => "f8dee0a6-4c4f-4836-9cd8-37543703a79b", + 'terminal_id' => "16dbac2a-774f-4f16-9eb1-33222607a3df", + 'transaction_id' => "h3s3e", + 'organization_code' => "", + 'private_money_id' => "2893ee91-9131-4550-8a92-0a2dcc76bea5", 'is_modified' => TRUE, - 'types' => ["expire", "cashback", "topup"], - 'description' => "PEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLI" + 'types' => ["topup", "cashback", "exchange_inflow"], + 'description' => "4IfskzbRh2KXDkJqy1UyPaGHVkyMSdmemZcovbEUc9TiM3DTS" ] ); try { @@ -162,14 +162,14 @@ public function testListTransactions8() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'customer_name' => "nC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76", - 'terminal_id' => "942ad200-1544-453b-9154-5a91246500cb", - 'transaction_id' => "eEBb", - 'organization_code' => "-8bdGRbR0u7", - 'private_money_id' => "5ca47afe-dc11-4352-9ab0-f05149728ab2", + 'customer_name' => "7pJlo8JS6mIVfCl8O6XTpGUPEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPI", + 'terminal_id' => "669a3849-4187-44c2-a5d5-8d53644ea80d", + 'transaction_id' => "xLQqoj9SXP", + 'organization_code' => "---39", + 'private_money_id' => "1c45b4fa-8a23-479b-81c1-4b370fc82244", 'is_modified' => FALSE, - 'types' => ["topup", "expire", "exchange_outflow"], - 'description' => "VGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13" + 'types' => ["topup", "expire"], + 'description' => "6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzW" ] ); try { @@ -186,15 +186,15 @@ public function testListTransactions9() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'customer_id' => "e1fb97c2-7d0a-494a-8c2f-f213e79cfa71", - 'customer_name' => "URa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzst", - 'terminal_id' => "7f0f5d7a-0831-43a2-81b9-2e581d4966fb", - 'transaction_id' => "Ut", - 'organization_code' => "A--6-770", - 'private_money_id' => "5e072da8-d0bf-4c29-9210-5aecbed23e28", + 'customer_id' => "ee00df3b-d072-4254-9901-4876686f83c8", + 'customer_name' => "gdBYvKVDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGRsNNOdzmZ5nbPQzPRirLmp7HiQajpl09d6QIiaL5c40GPi4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzW", + 'terminal_id' => "92014d83-8f2f-44e6-8dbd-3e3e7243b88b", + 'transaction_id' => "YN8tFOR", + 'organization_code' => "Y-u", + 'private_money_id' => "37208acc-0117-48c4-87bc-979678a4c767", 'is_modified' => FALSE, - 'types' => ["expire", "exchange_inflow"], - 'description' => "VbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08a" + 'types' => ["payment", "expire", "topup", "cashback", "exchange_outflow", "exchange_inflow"], + 'description' => "HQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8H" ] ); try { @@ -211,16 +211,16 @@ public function testListTransactions10() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'shop_id' => "1c9c6657-819e-41c1-92e7-8ad98ba2914b", - 'customer_id' => "912678e7-2bcd-40bc-92e7-b1be4e34f2b4", - 'customer_name' => "eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfb", - 'terminal_id' => "74929615-c3e2-4087-aa92-4f0ab92255ee", - 'transaction_id' => "xn1Ii4QyBa", - 'organization_code' => "wVPk", - 'private_money_id' => "b01bcb4d-a00c-4b09-a63a-3867c4c57002", + 'shop_id' => "220e5ac6-5a3a-47ab-b8da-03f468a6ae0e", + 'customer_id' => "5ebe53c3-108f-47bd-8035-e40645c13b8e", + 'customer_name' => "ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8ZrqfNGAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5BazmKqHUlvI3TLRDU2wR06BrqE4xR4GA8B6QEvmEtQTqfIDfhF08aWAgYKgMRg4eijui0x4Az", + 'terminal_id' => "f98b4df5-c995-408a-bb6b-47a2f3349e71", + 'transaction_id' => "Xii06wz9Nd", + 'organization_code' => "W2--U-l5xjH-", + 'private_money_id' => "75cb9122-945c-4faa-9f83-ba8444fa9aaa", 'is_modified' => TRUE, - 'types' => ["payment", "cashback"], - 'description' => "kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR" + 'types' => ["topup"], + 'description' => "kBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFf" ] ); try { @@ -237,17 +237,17 @@ public function testListTransactions11() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'per_page' => 6969, - 'shop_id' => "1f680389-a398-4538-9c05-2f46d622c0fb", - 'customer_id' => "3da66e37-cc29-4708-8fd5-2ae258c2d2e4", - 'customer_name' => "6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62H", - 'terminal_id' => "3a8fca69-a00e-4b2f-8c1e-754bb23030ba", - 'transaction_id' => "75FUjJKU", - 'organization_code' => "3-S87-jLYQf-X-6--oZ0G-N", - 'private_money_id' => "aa25ef95-c6da-4090-93b2-5afdc4ed01ca", + 'per_page' => 282, + 'shop_id' => "65719173-820d-4a91-b829-3433f2e9fa2c", + 'customer_id' => "b55e6feb-aa84-4b88-827a-34d322722b8f", + 'customer_name' => "ot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlm", + 'terminal_id' => "794e5de6-a982-48e2-89d7-c7a5d468571d", + 'transaction_id' => "jq1", + 'organization_code' => "-oW", + 'private_money_id' => "84ad74bb-a6b2-4c97-8869-a00e6da9db2f", 'is_modified' => TRUE, - 'types' => ["expire"], - 'description' => "bXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisL" + 'types' => ["exchange_inflow", "topup", "expire", "cashback", "payment", "exchange_outflow"], + 'description' => "KUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0ru" ] ); try { @@ -264,18 +264,18 @@ public function testListTransactions12() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'page' => 8791, - 'per_page' => 4125, - 'shop_id' => "04e72a3f-308d-4ac1-8b24-7a85bf70fc21", - 'customer_id' => "642fcb38-c880-4cfb-8437-ec522c3da0be", - 'customer_name' => "vLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5qYfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua2WPHw1UTjf1quigD2l2JnK33Y2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0", - 'terminal_id' => "7d16cee5-bd55-4afa-9534-6ef8ece8abd8", - 'transaction_id' => "5OLhVoB1l", - 'organization_code' => "u5Jec2Sq9", - 'private_money_id' => "e5765496-b9f4-4a3c-b6ae-7ccf355db2df", - 'is_modified' => FALSE, - 'types' => ["expire", "topup"], - 'description' => "eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuK" + 'page' => 5103, + 'per_page' => 106, + 'shop_id' => "9e6fdaf3-adbc-4bae-9fcc-a256ada8901c", + 'customer_id' => "04e72a3f-308d-4ac1-8b24-7a85bf70fc21", + 'customer_name' => "D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUthYSxSa5q", + 'terminal_id' => "a8764f09-9022-4ad9-93e6-af609463b027", + 'transaction_id' => "dpEz", + 'organization_code' => "yFH3l-oWbAVbaS-p-1i-rU6H0r5jHe", + 'private_money_id' => "6b7d83b2-c16c-45aa-b20b-53ca574cb36e", + 'is_modified' => TRUE, + 'types' => ["topup", "cashback", "expire", "exchange_outflow"], + 'description' => "2PKkmhgdj1RbwEdGAkTKdkwDZEgx5wET5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYA" ] ); try { @@ -292,19 +292,19 @@ public function testListTransactions13() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'to' => "2021-05-24T07:04:14.000000Z", - 'page' => 4199, - 'per_page' => 6607, - 'shop_id' => "1074fcae-d78a-4ed6-9457-7615bf98ffc6", - 'customer_id' => "7ef1721c-45d4-4c04-bc7b-a9eb4f8b5568", - 'customer_name' => "YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJSIFUrT", - 'terminal_id' => "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5", - 'transaction_id' => "KmONYXCce", - 'organization_code' => "--KXh6Qjt-yU7-0-xA7y-A--gO0-ve--", - 'private_money_id' => "a5f3cfda-76d9-4522-9ece-6904f7c31a9a", + 'to' => "2022-08-11T11:06:41.000000Z", + 'page' => 8459, + 'per_page' => 7873, + 'shop_id' => "17d7361e-5f26-46e1-97ee-368e6a3f8367", + 'customer_id' => "0d4b08f1-92b9-4450-8abd-4b51317ebd0a", + 'customer_name' => "fQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiXbRr0Yt6Ont0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKlnfNVTWFTkh4YZxFDhr8QjYlB42oGAhylpmFOwCdKPABZdrgh98RslDBuoJSIFUrTRne91u8KmONYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0", + 'terminal_id' => "69f06cdb-6214-4c15-807d-8cbd8538079b", + 'transaction_id' => "ZYNIF", + 'organization_code' => "s--aXS-ZgJJ-y--WsY4x--Dyl", + 'private_money_id' => "7440e812-d811-462f-af5f-b514d20a65a5", 'is_modified' => FALSE, - 'types' => ["exchange_outflow", "topup", "payment", "expire", "exchange_inflow"], - 'description' => "OzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRj" + 'types' => ["cashback", "exchange_inflow", "topup", "expire", "exchange_outflow"], + 'description' => "RdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2in" ] ); try { @@ -321,20 +321,20 @@ public function testListTransactions14() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'from' => "2021-11-23T05:19:03.000000Z", - 'to' => "2023-02-12T18:24:57.000000Z", - 'page' => 4869, - 'per_page' => 8902, - 'shop_id' => "4f506bbd-ab39-4fe4-bc2f-ffc0f28819c2", - 'customer_id' => "33433dfd-82b8-4a40-a643-bd9aee2d40ba", - 'customer_name' => "GfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07", - 'terminal_id' => "a2943d3f-0f45-46d8-a0c8-10ad8cc48724", - 'transaction_id' => "C5hQ61p", - 'organization_code' => "-aZi-x-RYy-x7gh3-8weWi35i8kx92", - 'private_money_id' => "b2e608fc-9390-4850-9002-124a1438abbf", + 'from' => "2024-05-23T02:09:21.000000Z", + 'to' => "2021-07-19T10:37:33.000000Z", + 'page' => 3824, + 'per_page' => 5692, + 'shop_id' => "5cb6a40b-f3f3-407a-ba7a-0bea481bd33e", + 'customer_id' => "271ce8dc-c716-49b7-a267-496a1db4773c", + 'customer_name' => "cZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ61pWDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86", + 'terminal_id' => "a069e5c4-b57f-4ea4-b996-25d8c6009908", + 'transaction_id' => "fo8j", + 'organization_code' => "--iE55--f5D851N-akMUy6-", + 'private_money_id' => "6481f61a-2228-4de5-90c4-47010df61e71", 'is_modified' => FALSE, - 'types' => ["exchange_inflow", "topup", "expire", "cashback", "payment"], - 'description' => "YdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalO" + 'types' => ["expire", "exchange_outflow"], + 'description' => "7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumM" ] ); try { diff --git a/tests/ListTransactionsV2Test.php b/tests/ListTransactionsV2Test.php index 037d305b..2bfac5ec 100644 --- a/tests/ListTransactionsV2Test.php +++ b/tests/ListTransactionsV2Test.php @@ -22,7 +22,7 @@ public function testListTransactionsV21() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'per_page' => 794 + 'per_page' => 515 ] ); try { @@ -39,8 +39,8 @@ public function testListTransactionsV22() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'prev_page_cursor_id' => "3b39a53e-1ceb-475a-be4c-1b23542a7d10", - 'per_page' => 636 + 'prev_page_cursor_id' => "01a288ce-86a9-45f9-a25c-24fb20e7a337", + 'per_page' => 70 ] ); try { @@ -57,9 +57,9 @@ public function testListTransactionsV23() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'next_page_cursor_id' => "92ca1f0d-d064-4922-b9b8-af969e436ea1", - 'prev_page_cursor_id' => "04044642-50dc-4f9d-b957-8e57b8dc3771", - 'per_page' => 510 + 'next_page_cursor_id' => "aebb53f8-8db4-4c7a-a6dc-f0cc65d2b079", + 'prev_page_cursor_id' => "8d3a473f-2823-465e-acfd-450c5315b0ac", + 'per_page' => 93 ] ); try { @@ -76,10 +76,10 @@ public function testListTransactionsV24() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'to' => "2021-07-05T19:46:25.000000Z", - 'next_page_cursor_id' => "d57c82ce-d572-4f58-96a9-0e05ca0f2b0e", - 'prev_page_cursor_id' => "6ce554d8-62a9-47bc-898b-f2318d3486ad", - 'per_page' => 248 + 'to' => "2022-11-10T16:42:01.000000Z", + 'next_page_cursor_id' => "47d51d1c-7d7d-4eed-8f26-2a2b344a5456", + 'prev_page_cursor_id' => "58ef04fd-d975-4375-b71d-2c52ab07695a", + 'per_page' => 747 ] ); try { @@ -96,11 +96,11 @@ public function testListTransactionsV25() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'from' => "2024-06-30T00:22:03.000000Z", - 'to' => "2022-09-03T17:53:44.000000Z", - 'next_page_cursor_id' => "62e27792-a1d4-46f1-9c87-7a7715750571", - 'prev_page_cursor_id' => "1e012cde-c398-43fa-9686-d03ceb1a2f3f", - 'per_page' => 549 + 'from' => "2024-12-02T16:14:21.000000Z", + 'to' => "2024-06-09T17:54:46.000000Z", + 'next_page_cursor_id' => "985c2180-8c40-4753-8f21-2766712bd439", + 'prev_page_cursor_id' => "054b129a-6230-46c9-8c4c-84680a7074ba", + 'per_page' => 562 ] ); try { @@ -117,12 +117,12 @@ public function testListTransactionsV26() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'types' => ["exchange_inflow"], - 'from' => "2021-08-12T01:32:55.000000Z", - 'to' => "2023-12-16T09:15:41.000000Z", - 'next_page_cursor_id' => "8ff5d0a8-060f-4a8a-97f7-96f0571a1df3", - 'prev_page_cursor_id' => "3143db33-2080-43e9-81d2-82a3029c7e44", - 'per_page' => 75 + 'types' => ["expire"], + 'from' => "2022-06-05T12:01:23.000000Z", + 'to' => "2023-03-04T12:20:00.000000Z", + 'next_page_cursor_id' => "10e4a5c3-bb76-4eb1-ba02-5721ddf7118f", + 'prev_page_cursor_id' => "5aa24321-e825-4213-b4c9-e23a309164cc", + 'per_page' => 212 ] ); try { @@ -139,13 +139,13 @@ public function testListTransactionsV27() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'is_modified' => TRUE, - 'types' => ["cashback", "expire", "payment"], - 'from' => "2021-10-09T01:30:02.000000Z", - 'to' => "2021-02-04T11:44:46.000000Z", - 'next_page_cursor_id' => "83f576fc-6cab-4995-9d8b-f86b58115da9", - 'prev_page_cursor_id' => "29dbd74f-2d84-4e92-9a7c-f19c8b2e674f", - 'per_page' => 687 + 'is_modified' => FALSE, + 'types' => ["cashback", "topup", "expire", "payment", "exchange_outflow", "exchange_inflow"], + 'from' => "2023-04-20T08:04:40.000000Z", + 'to' => "2024-04-06T18:16:52.000000Z", + 'next_page_cursor_id' => "f06def02-1d81-4ae3-8e2c-f1039aeee37c", + 'prev_page_cursor_id' => "86770697-e978-4707-8723-20e2bc00efb1", + 'per_page' => 296 ] ); try { @@ -162,14 +162,14 @@ public function testListTransactionsV28() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'transaction_id' => "E", - 'is_modified' => FALSE, - 'types' => ["exchange_inflow", "exchange_outflow", "topup", "cashback"], - 'from' => "2022-02-10T19:32:15.000000Z", - 'to' => "2020-12-30T04:05:46.000000Z", - 'next_page_cursor_id' => "cd506e1c-213d-4f26-b1b9-91a9746df8d7", - 'prev_page_cursor_id' => "6d3afbf4-ed0e-40a9-a773-0173a136a69e", - 'per_page' => 435 + 'transaction_id' => "w0", + 'is_modified' => TRUE, + 'types' => ["exchange_inflow"], + 'from' => "2024-05-31T16:45:00.000000Z", + 'to' => "2022-05-17T00:35:30.000000Z", + 'next_page_cursor_id' => "ecda8963-adff-47d3-a1a6-004553a8a936", + 'prev_page_cursor_id' => "7fa83d28-d8fa-49a2-a791-f7359340cfd1", + 'per_page' => 904 ] ); try { @@ -186,15 +186,15 @@ public function testListTransactionsV29() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'description' => "YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90", - 'transaction_id' => "Lh1FnEv5pC", - 'is_modified' => TRUE, - 'types' => ["payment", "exchange_inflow"], - 'from' => "2024-10-03T16:15:54.000000Z", - 'to' => "2020-04-20T06:48:44.000000Z", - 'next_page_cursor_id' => "bec140d3-d76b-4574-8b07-92f127977031", - 'prev_page_cursor_id' => "4f1c3e05-bf3b-4118-a494-ef02c8061d81", - 'per_page' => 740 + 'description' => "SLVITcWyXkWwNeThL", + 'transaction_id' => "K", + 'is_modified' => FALSE, + 'types' => ["payment", "exchange_outflow", "exchange_inflow", "topup"], + 'from' => "2021-12-04T22:13:49.000000Z", + 'to' => "2022-07-18T19:15:02.000000Z", + 'next_page_cursor_id' => "c624f552-688a-4949-97cd-5dddc9461ad9", + 'prev_page_cursor_id' => "5bcaf4e0-94b7-4074-b0a3-c47563f1607e", + 'per_page' => 393 ] ); try { @@ -211,16 +211,16 @@ public function testListTransactionsV210() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'customer_name' => "xb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34z4jE8W9hhkp", - 'description' => "YWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4UwD", - 'transaction_id' => "tqXzHNdyt", - 'is_modified' => FALSE, - 'types' => ["cashback", "expire"], - 'from' => "2020-04-21T23:46:36.000000Z", - 'to' => "2022-07-05T07:08:16.000000Z", - 'next_page_cursor_id' => "b9cf372b-6f2c-44d1-aa17-63f240f1247b", - 'prev_page_cursor_id' => "8a07bad7-1169-47eb-8074-e24dc93cf284", - 'per_page' => 414 + 'customer_name' => "9Tu", + 'description' => "4ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4", + 'transaction_id' => "Uw", + 'is_modified' => TRUE, + 'types' => ["topup", "payment", "exchange_outflow"], + 'from' => "2022-09-06T17:01:47.000000Z", + 'to' => "2025-01-07T08:11:52.000000Z", + 'next_page_cursor_id' => "991edf29-a69b-4ece-a6dc-e8a1551ea22a", + 'prev_page_cursor_id' => "f46cc625-8afd-4664-bff9-1c2084e2d03e", + 'per_page' => 546 ] ); try { @@ -237,17 +237,17 @@ public function testListTransactionsV211() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'customer_id' => "72885693-789f-428b-8bdf-87cba7fe9730", - 'customer_name' => "HLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA", - 'description' => "fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFe", - 'transaction_id' => "EH", + 'customer_id' => "602a6bf4-fbeb-44af-9c84-85b1cf275f99", + 'customer_name' => "inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6", + 'description' => "Q3vZwFKRF7w", + 'transaction_id' => "plclcWB9", 'is_modified' => TRUE, - 'types' => ["exchange_outflow"], - 'from' => "2023-05-30T21:33:05.000000Z", - 'to' => "2021-02-27T11:58:29.000000Z", - 'next_page_cursor_id' => "038acead-e850-4994-a96f-3b2ba1881dcd", - 'prev_page_cursor_id' => "01fe0421-f25c-497d-9180-4fda1ed94b77", - 'per_page' => 367 + 'types' => ["topup", "exchange_inflow", "expire", "cashback", "payment", "exchange_outflow"], + 'from' => "2025-03-18T23:39:01.000000Z", + 'to' => "2023-01-23T11:08:24.000000Z", + 'next_page_cursor_id' => "52f8252d-f94c-4fc1-82ab-f98fc7c85bbe", + 'prev_page_cursor_id' => "50cc933e-1efa-488e-94cc-cc031b84ad53", + 'per_page' => 438 ] ); try { @@ -264,18 +264,18 @@ public function testListTransactionsV212() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'terminal_id' => "b820fda7-038a-4541-a7c5-c0a7ae5ffc12", - 'customer_id' => "1a888925-5c1c-4bed-adf5-8f3d0977300d", - 'customer_name' => "UL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hbo", - 'description' => "1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXU", - 'transaction_id' => "J1V0r5CHRN", + 'terminal_id' => "5591db1c-46c1-4dbe-bfa4-5fe75f863813", + 'customer_id' => "34dc55ac-a31b-4d3e-ad69-82ee07a1bdec", + 'customer_name' => "SJbgCOpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1VktFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFL", + 'description' => "ghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62", + 'transaction_id' => "8FNzaDe", 'is_modified' => TRUE, - 'types' => ["cashback", "exchange_inflow", "topup", "exchange_outflow"], - 'from' => "2024-01-31T03:46:51.000000Z", - 'to' => "2021-07-13T22:29:32.000000Z", - 'next_page_cursor_id' => "9a618de4-8fe3-425d-b398-6cabc93b72b3", - 'prev_page_cursor_id' => "5f1ed84f-6ea8-4bc0-93a3-ea076171cffc", - 'per_page' => 495 + 'types' => ["exchange_outflow", "topup", "expire", "payment", "exchange_inflow"], + 'from' => "2021-07-15T02:21:32.000000Z", + 'to' => "2020-08-18T18:44:41.000000Z", + 'next_page_cursor_id' => "28ed6bca-7154-4a36-9fd8-8fd9b6e23b7b", + 'prev_page_cursor_id' => "3b702882-1133-443e-9459-489d623d4cb3", + 'per_page' => 150 ] ); try { @@ -292,19 +292,19 @@ public function testListTransactionsV213() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'shop_id' => "73d29439-f434-47f7-b0d3-6ec38841ac99", - 'terminal_id' => "8b14ad42-0194-4110-8789-9aeec68a43e2", - 'customer_id' => "367bfb18-c63e-4d32-9522-a037e525c9cb", - 'customer_name' => "I1Ko9Ro9P2UOPHKcZd7kJ0a09BOfpTrIxahzBDxgf0eAPjokEVHRFLghiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNf", - 'description' => "RiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U", - 'transaction_id' => "XBig", - 'is_modified' => FALSE, - 'types' => ["exchange_outflow", "expire", "exchange_inflow"], - 'from' => "2020-08-12T04:56:25.000000Z", - 'to' => "2020-11-24T22:08:32.000000Z", - 'next_page_cursor_id' => "c519f0e1-0b30-4f31-a34c-07b77d20b315", - 'prev_page_cursor_id' => "24224765-5d64-4305-a86d-2df292aacf56", - 'per_page' => 906 + 'shop_id' => "9f351484-c991-4333-855d-c59732654165", + 'terminal_id' => "1068ba0e-ffeb-44db-bafb-db0f25acd5b4", + 'customer_id' => "616664a7-590e-48a5-a680-3be15b55e700", + 'customer_name' => "hxmsrZJPb5B1K9ZLJjlQzrcG4cFx990D5go4dBLdUCSZVd4cTqnNfSRiXLw6IXxof4N3bX72yEerLNEKMYsRf9vriYiP8HndtLKgFWIeB413C8zcpa0a0ipuLt3IQKQQHb6fikVg8U3XBigR3jya01cL", + 'description' => "edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE", + 'transaction_id' => "ye8xiCptr", + 'is_modified' => TRUE, + 'types' => ["payment", "topup", "expire"], + 'from' => "2021-03-23T04:18:28.000000Z", + 'to' => "2025-08-03T09:21:23.000000Z", + 'next_page_cursor_id' => "d296a933-1423-4911-be4f-fe210219c8d1", + 'prev_page_cursor_id' => "b17cfe53-f624-4d0a-a77d-66734f88b581", + 'per_page' => 780 ] ); try { @@ -321,20 +321,20 @@ public function testListTransactionsV214() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'organization_code' => "aK--z--9-9-z-0m2O-grW-bv", - 'shop_id' => "0caa601e-8eb4-4a21-9861-c9a26f97ac7e", - 'terminal_id' => "72170974-9f28-443a-ae74-42d287e37bcf", - 'customer_id' => "970d08da-e963-4d12-8283-ebe2043f9ae5", - 'customer_name' => "ZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQSs9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx", - 'description' => "2McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BT", - 'transaction_id' => "Nca", - 'is_modified' => FALSE, - 'types' => ["cashback", "topup"], - 'from' => "2023-12-25T20:01:08.000000Z", - 'to' => "2020-09-02T09:26:19.000000Z", - 'next_page_cursor_id' => "8cb39107-9a71-4516-8569-9047b21dc5ce", - 'prev_page_cursor_id' => "fe9e45e5-8953-4e94-84ca-edf54581f0e5", - 'per_page' => 787 + 'organization_code' => "d6-8-4tkX-83ZTJ--e6i3CzSB5", + 'shop_id' => "c3f9458b-8da7-4e1e-90be-680ec274044e", + 'terminal_id' => "6cf24dc7-586b-4d5d-8565-8dbc74651c9f", + 'customer_id' => "9ee13ad2-1979-445a-8378-8744ff3f6ff7", + 'customer_name' => "yuzPdWfYw482S6oHFsZh9ksnqTSKQYaLtgBF21Mao0iMx72McbAtuQfbwPK5Ol2Udeu5ClBnNsqGtwvAjO8SQrjpTlUKU7ix6vD3BTnNcaIv4Cy", + 'description' => "2qiGNeSDJueWNAF2i", + 'transaction_id' => "LhkB0", + 'is_modified' => TRUE, + 'types' => ["expire", "payment", "exchange_inflow", "cashback"], + 'from' => "2024-06-20T05:25:25.000000Z", + 'to' => "2022-04-12T16:41:10.000000Z", + 'next_page_cursor_id' => "cc6f73f7-d93c-4eac-a334-38d98eac5466", + 'prev_page_cursor_id' => "eb83cc8f-73ee-4e13-ba2b-97b5bd45e765", + 'per_page' => 993 ] ); try { @@ -351,21 +351,21 @@ public function testListTransactionsV215() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'private_money_id' => "60d57317-f1d7-49a9-834e-3421780c098a", - 'organization_code' => "35A-1n", - 'shop_id' => "eff09dcb-e0ec-463c-a4c1-4ba98e9f29ce", - 'terminal_id' => "79267e47-73fa-4353-97da-c3e5d1fd6234", - 'customer_id' => "f9368c39-c597-437d-9a2d-93901ba10cf1", - 'customer_name' => "KV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04", - 'description' => "Ls4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZm", - 'transaction_id' => "6C", - 'is_modified' => TRUE, - 'types' => ["exchange_outflow", "exchange_inflow"], - 'from' => "2023-11-29T14:24:26.000000Z", - 'to' => "2024-07-12T21:55:27.000000Z", - 'next_page_cursor_id' => "0d1a60b9-77d9-4f33-a600-8e99e11809b9", - 'prev_page_cursor_id' => "11a2eca6-8e64-4b1b-bbea-684d1cbf0e60", - 'per_page' => 805 + 'private_money_id' => "d0faeb33-8f62-4f3e-aa81-8bd825b010ad", + 'organization_code' => "-o8H-0-u-0-", + 'shop_id' => "81621e2e-9109-421e-842c-95441ae7eb0f", + 'terminal_id' => "0a86fd81-1245-481a-aa75-1824bfaeb0fa", + 'customer_id' => "f231997e-4553-420f-bced-7e0f8e55afba", + 'customer_name' => "ETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn732KUYpvpwWJTv2DUcmsWBTf3SfgLVNlOhNoRUioebBno3HZhnyNZ5Q77U04aLs4hmy4C28WnCRfz2leovb1R7O6QOgboW2zpcaLxa2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2zo2G", + 'description' => "N3QYDG6CZS1PVe5LZzi2NmWBlu", + 'transaction_id' => "rzflOytNd", + 'is_modified' => FALSE, + 'types' => ["exchange_outflow"], + 'from' => "2023-01-06T11:28:46.000000Z", + 'to' => "2025-03-13T19:47:50.000000Z", + 'next_page_cursor_id' => "bd78fb2c-657f-451c-8148-c8eea0f06d90", + 'prev_page_cursor_id' => "c0f73958-3233-4c0b-934c-9a4f50feb4f3", + 'per_page' => 823 ] ); try { diff --git a/tests/ListTransfersTest.php b/tests/ListTransfersTest.php index 19debfd5..6f166b6a 100644 --- a/tests/ListTransfersTest.php +++ b/tests/ListTransfersTest.php @@ -22,7 +22,7 @@ public function testListTransfers1() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'description' => "WmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVC" + 'description' => "a90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTL" ] ); try { @@ -39,8 +39,8 @@ public function testListTransfers2() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'transfer_types' => ["campaign", "topup", "exchange", "coupon", "transfer", "expire", "cashback"], - 'description' => "LHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh" + 'transfer_types' => ["expire"], + 'description' => "rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB" ] ); try { @@ -57,9 +57,9 @@ public function testListTransfers3() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'transaction_types' => ["topup", "payment", "transfer"], - 'transfer_types' => ["transfer", "cashback", "expire"], - 'description' => "gltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiat" + 'transaction_types' => ["payment", "exchange", "topup", "transfer"], + 'transfer_types' => ["topup", "expire", "transfer", "cashback"], + 'description' => "5Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLi" ] ); try { @@ -77,9 +77,9 @@ public function testListTransfers4() $request = new Request\ListTransfers( [ 'is_modified' => FALSE, - 'transaction_types' => ["topup", "payment", "expire", "transfer", "exchange"], - 'transfer_types' => ["expire", "topup", "transfer", "cashback"], - 'description' => "JIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLiOm0u6OdT" + 'transaction_types' => ["cashback"], + 'transfer_types' => ["campaign", "transfer"], + 'description' => "WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3t" ] ); try { @@ -96,11 +96,11 @@ public function testListTransfers5() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'private_money_id' => "a7d1babd-c213-4ad9-b6d9-29310f851a88", - 'is_modified' => FALSE, - 'transaction_types' => ["cashback"], - 'transfer_types' => ["cashback", "transfer", "expire", "campaign", "payment", "coupon", "exchange", "topup"], - 'description' => "bor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFv" + 'private_money_id' => "177481ae-2a64-403f-a165-95f2ba3cd2e2", + 'is_modified' => TRUE, + 'transaction_types' => ["cashback", "transfer", "exchange", "topup"], + 'transfer_types' => ["campaign", "topup", "transfer", "coupon"], + 'description' => "QRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL" ] ); try { @@ -117,12 +117,12 @@ public function testListTransfers6() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'transaction_id' => "a6d5f493-93a8-46a5-85bd-560738da15e3", - 'private_money_id' => "810a53f6-43d4-4720-9917-bf3a0969faad", - 'is_modified' => TRUE, - 'transaction_types' => ["transfer", "payment", "cashback", "expire"], - 'transfer_types' => ["transfer", "topup", "cashback", "campaign", "expire"], - 'description' => "SCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPoPyEr8klncfGkEwHB" + 'transaction_id' => "46864138-b99c-4a54-b5bb-9414289c06ed", + 'private_money_id' => "f2961327-4728-457b-b33a-5e29638c0a54", + 'is_modified' => FALSE, + 'transaction_types' => ["payment", "exchange"], + 'transfer_types' => ["exchange", "payment", "coupon"], + 'description' => "GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVd" ] ); try { @@ -139,13 +139,13 @@ public function testListTransfers7() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'customer_name' => "WOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoP", - 'transaction_id' => "5d53b7d4-d726-401a-a5fe-7d2eb5dbf85c", - 'private_money_id' => "c1134df9-7b26-4502-bf47-5911f1912966", - 'is_modified' => TRUE, - 'transaction_types' => ["transfer", "cashback"], - 'transfer_types' => ["cashback", "topup", "expire", "campaign", "coupon", "transfer", "payment", "exchange"], - 'description' => "OwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEs" + 'customer_name' => "hwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3Ln", + 'transaction_id' => "5f987127-adf0-4d62-bba1-e872f6008350", + 'private_money_id' => "fa3b1f29-7cbc-4613-919a-d78f5d494ca2", + 'is_modified' => FALSE, + 'transaction_types' => ["transfer", "exchange", "expire", "cashback", "payment"], + 'transfer_types' => ["transfer", "expire", "cashback", "payment", "coupon", "exchange"], + 'description' => "U7DSfY3LgW5M2IvR52" ] ); try { @@ -162,14 +162,14 @@ public function testListTransfers8() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'customer_id' => "e609bf77-70fd-4c0e-861b-3c99093467ad", - 'customer_name' => "klf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnN", - 'transaction_id' => "b7fb63ea-109f-40a5-90ac-9b9bd5633916", - 'private_money_id' => "e4c32796-5cac-49d7-8f0c-ace0a3e37cb5", - 'is_modified' => FALSE, - 'transaction_types' => ["expire", "transfer", "exchange", "topup", "payment"], - 'transfer_types' => ["transfer", "cashback", "expire", "coupon", "exchange", "campaign", "payment", "topup"], - 'description' => "W5M2IvR52CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcP" + 'customer_id' => "d6b54e2d-8c88-477b-8367-d7c9b6a0d393", + 'customer_name' => "y3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqI", + 'transaction_id' => "d521ccd1-5163-4841-8426-de416244912e", + 'private_money_id' => "e649e923-9aca-421a-bce8-95d72ef834c6", + 'is_modified' => TRUE, + 'transaction_types' => ["exchange", "cashback", "topup"], + 'transfer_types' => ["transfer", "campaign", "cashback", "payment", "coupon", "topup", "exchange", "expire"], + 'description' => "Ezja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQ" ] ); try { @@ -186,15 +186,15 @@ public function testListTransfers9() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'shop_name' => "Hu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaO", - 'customer_id' => "c91fa402-d6da-4e64-9453-d6b1db71e2ad", - 'customer_name' => "seolNI", - 'transaction_id' => "01c24d5f-63cc-4a1e-8ebd-dea3b56d54e2", - 'private_money_id' => "9eefdba1-3480-4f08-962f-dd2f4e01d3bb", - 'is_modified' => FALSE, - 'transaction_types' => ["cashback", "topup", "exchange", "transfer", "expire", "payment"], - 'transfer_types' => ["topup", "expire", "coupon", "campaign", "payment"], - 'description' => "uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYm" + 'shop_name' => "SHyiFoseHqYyK8GIOW0PG", + 'customer_id' => "323413ad-cfd5-4eb4-b59f-26247c28b0f5", + 'customer_name' => "Pdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoo", + 'transaction_id' => "53ae4577-b52d-4624-85a5-f1007464b020", + 'private_money_id' => "176ea6f1-1877-44ef-a201-c43e462a6f90", + 'is_modified' => TRUE, + 'transaction_types' => ["expire", "exchange", "cashback", "payment"], + 'transfer_types' => ["topup", "payment", "campaign", "expire"], + 'description' => "4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu" ] ); try { @@ -211,16 +211,16 @@ public function testListTransfers10() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'shop_id' => "3d3b5286-b925-4b72-83f2-529bdd1fded7", - 'shop_name' => "wA7IkDmk9acr8tX9JQSHyiFoseHqYyK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2opGyr1ja3z", - 'customer_id' => "ac1e56f5-6b83-4e81-926d-8e8aa2bff276", - 'customer_name' => "e771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg23f5GXrX6ozTzm0HG0TosxKz4jitwHtujKhwCFGwiyv4vlRBRxfHZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiID", - 'transaction_id' => "1044205e-099e-4e1f-835c-3000a19a780e", - 'private_money_id' => "79139053-6aaa-4cf8-a06f-919393d2756f", + 'shop_id' => "772ac225-3f38-4efd-9fb3-a3cec5f78605", + 'shop_name' => "0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6Am", + 'customer_id' => "2ec7d873-685d-4877-9a64-90c0bcfb2b41", + 'customer_name' => "3IJrwVbs9pMxfMCthiv1a2EEHFmQw4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWm", + 'transaction_id' => "ffe29c6d-faa8-4f7c-a5e7-a0ddf6176886", + 'private_money_id' => "e29148e3-9cde-46b1-8b99-44c7b1018de8", 'is_modified' => FALSE, - 'transaction_types' => ["expire"], - 'transfer_types' => ["payment", "transfer", "topup"], - 'description' => "4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWp" + 'transaction_types' => ["expire", "cashback", "payment", "exchange"], + 'transfer_types' => ["coupon", "exchange", "cashback", "transfer", "payment", "expire"], + 'description' => "ac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6" ] ); try { @@ -237,17 +237,17 @@ public function testListTransfers11() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'per_page' => 3283, - 'shop_id' => "3ac33395-ad6b-4370-9be8-a5faae16c26e", - 'shop_name' => "qbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu83N0tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EE", - 'customer_id' => "f5a2f1c8-cb46-436d-ae9b-dadd692889d1", - 'customer_name' => "4OmJsXraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rU", - 'transaction_id' => "736ed62c-0cd7-4c60-b93e-781a48fa5387", - 'private_money_id' => "78798655-b73a-4d96-bbbb-7d3a27c51ffe", - 'is_modified' => TRUE, - 'transaction_types' => ["cashback", "payment", "expire", "transfer", "exchange"], - 'transfer_types' => ["transfer", "exchange", "cashback", "expire"], - 'description' => "ZuPfABdiNvfS9Anufij6THnocikBJOkD3FvwnaI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcru" + 'per_page' => 5774, + 'shop_id' => "8d671953-a0ea-4d65-8637-fd3dd76ae7d3", + 'shop_name' => "ZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi5qYTqeIN9jftsBTkZDKCnQigIBcgyeHE0tecRrY", + 'customer_id' => "fe8a6142-3c67-4c1f-98a7-c011d0c5f288", + 'customer_name' => "YNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9IDD4FLU53H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3F", + 'transaction_id' => "6d961c73-e6a7-4ba1-8217-55fbba093757", + 'private_money_id' => "b6730a97-d2fd-4f23-8854-fa6101636252", + 'is_modified' => FALSE, + 'transaction_types' => ["expire"], + 'transfer_types' => ["topup", "campaign", "expire", "coupon", "payment", "transfer", "cashback", "exchange"], + 'description' => "vbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uo" ] ); try { @@ -264,18 +264,18 @@ public function testListTransfers12() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'page' => 8154, - 'per_page' => 2613, - 'shop_id' => "49815448-7a0a-4695-b563-c69f333cc1c3", - 'shop_name' => "w5ExNqh41OXXFwVmaHYw6oEFbK8", - '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", - 'is_modified' => FALSE, - 'transaction_types' => ["expire", "cashback", "transfer", "payment", "exchange"], - 'transfer_types' => ["exchange", "coupon", "cashback", "expire", "campaign", "topup"], - 'description' => "N856J50" + 'page' => 7444, + 'per_page' => 1003, + 'shop_id' => "1317849c-54ba-419f-b744-5f0007fea9a8", + 'shop_name' => "QdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVk", + 'customer_id' => "e07625ac-2563-47d3-8905-be6ee8485640", + 'customer_name' => "vOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4N", + 'transaction_id' => "68cc9397-f7d9-405e-ba69-d0a0fc7d82f2", + 'private_money_id' => "39cae2e0-1dd8-47f2-b9d0-10bdbbbb1daf", + 'is_modified' => TRUE, + 'transaction_types' => ["cashback", "expire", "exchange"], + 'transfer_types' => ["exchange", "cashback", "coupon", "transfer", "topup", "expire", "campaign"], + 'description' => "A9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiq" ] ); try { @@ -292,19 +292,19 @@ public function testListTransfers13() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'to' => "2023-12-21T04:49:23.000000Z", - 'page' => 1119, - 'per_page' => 2021, - 'shop_id' => "89c66f69-3dc1-462b-9d44-f1022412bbc7", - 'shop_name' => "37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKc", - 'customer_id' => "09cc753c-d71f-4ba0-88bd-0afbd70414c4", - 'customer_name' => "U85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJUA2sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR", - 'transaction_id' => "68e727b4-67dc-4f34-94c9-08b5c9fff99e", - 'private_money_id' => "e688c803-8ebc-4dbb-8bcc-dae916da8487", - 'is_modified' => TRUE, - 'transaction_types' => ["cashback", "exchange", "transfer", "expire", "payment"], - 'transfer_types' => ["exchange", "cashback", "expire", "payment"], - 'description' => "xtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXjUtBcNe9XyY4wthFo0glXBErIUB1p7aPMzXn" + 'to' => "2024-07-19T13:22:13.000000Z", + 'page' => 883, + 'per_page' => 9418, + 'shop_id' => "6a7b0917-ff6d-44ff-a755-e80790762692", + 'shop_name' => "Nm", + 'customer_id' => "a6e49181-614c-4c21-9165-858db5cc9093", + 'customer_name' => "KEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrA", + 'transaction_id' => "a81beb64-268f-440b-a20f-a8e39d890fc0", + 'private_money_id' => "e4f8b6fa-e2b5-4337-a6da-dface2f50d4f", + 'is_modified' => FALSE, + 'transaction_types' => ["payment", "cashback", "transfer"], + 'transfer_types' => ["topup", "cashback", "payment", "coupon"], + 'description' => "M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n" ] ); try { @@ -321,20 +321,20 @@ public function testListTransfers14() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'from' => "2020-06-12T02:51:45.000000Z", - 'to' => "2021-08-19T22:25:40.000000Z", - 'page' => 4317, - 'per_page' => 518, - 'shop_id' => "760540d9-4b39-4f5b-82b6-d147937221ee", - 'shop_name' => "0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmAHRSYCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW", - 'customer_id' => "af29c2de-3a2b-4716-ada3-44dfb9cfbdb8", - 'customer_name' => "iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1YzdrhGH7XKNoGDpqqjYUa42NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1fdQetgL0O7DlAFrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1Lb", - 'transaction_id' => "7b6a0954-5988-4e79-9614-ab90041a1bc9", - 'private_money_id' => "5524c6e7-2d09-4ed6-9037-6113588e6066", - 'is_modified' => FALSE, - 'transaction_types' => ["transfer", "exchange", "payment", "topup", "expire", "cashback"], - 'transfer_types' => ["campaign"], - 'description' => "P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T" + 'from' => "2020-06-19T12:50:54.000000Z", + 'to' => "2021-04-16T23:56:35.000000Z", + 'page' => 8327, + 'per_page' => 1261, + 'shop_id' => "850ff270-396e-43be-9d1e-5bef6bf5833b", + 'shop_name' => "ezOx6Ov6eGwjQ", + 'customer_id' => "cc8a1fa1-e0ba-49a8-83a2-66973b24e7f1", + 'customer_name' => "xdtQnDY4S9N4", + 'transaction_id' => "2aaba388-9e83-463d-8748-b12ae9e0d268", + 'private_money_id' => "011f334a-bd0d-47a0-91b5-d1f2d8b4ff27", + 'is_modified' => TRUE, + 'transaction_types' => ["payment", "transfer", "expire"], + 'transfer_types' => ["transfer"], + 'description' => "Y47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VE" ] ); try { diff --git a/tests/ListTransfersV2Test.php b/tests/ListTransfersV2Test.php index a3e27881..67373c34 100644 --- a/tests/ListTransfersV2Test.php +++ b/tests/ListTransfersV2Test.php @@ -22,7 +22,7 @@ public function testListTransfersV21() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'to' => "2022-11-03T09:43:12.000000Z" + 'to' => "2025-02-28T01:08:36.000000Z" ] ); try { @@ -39,8 +39,8 @@ public function testListTransfersV22() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'from' => "2022-05-31T19:18:04.000000Z", - 'to' => "2021-10-30T22:07:10.000000Z" + 'from' => "2023-05-21T16:25:44.000000Z", + 'to' => "2025-08-01T18:16:06.000000Z" ] ); try { @@ -57,9 +57,9 @@ public function testListTransfersV23() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'description' => "wB453YpOK96EoFGxVJNTeRlFM4Xw2YneFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrA", - 'from' => "2024-04-23T14:57:40.000000Z", - 'to' => "2023-02-19T07:04:47.000000Z" + 'description' => "spW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob", + 'from' => "2021-08-13T10:57:59.000000Z", + 'to' => "2021-08-02T03:38:13.000000Z" ] ); try { @@ -76,10 +76,10 @@ public function testListTransfersV24() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'transfer_types' => ["transfer", "payment", "coupon", "campaign", "exchange"], - 'description' => "Dr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2", - 'from' => "2022-03-27T15:40:08.000000Z", - 'to' => "2022-09-22T17:45:33.000000Z" + 'transfer_types' => ["payment", "expire", "transfer", "campaign"], + 'description' => "qFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6u", + 'from' => "2024-01-11T23:49:58.000000Z", + 'to' => "2024-08-17T18:28:14.000000Z" ] ); try { @@ -96,11 +96,11 @@ public function testListTransfersV25() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'per_page' => 133, - 'transfer_types' => ["expire"], - 'description' => "6iqol80j1t4n3lpnoezOx6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VESfspW9b9NBdczTSynCfTiWLEN2pEbq7Z", - 'from' => "2020-10-07T23:08:43.000000Z", - 'to' => "2022-10-24T02:41:06.000000Z" + 'per_page' => 171, + 'transfer_types' => ["topup", "cashback", "payment", "coupon", "campaign"], + 'description' => "7lV6QKkz6REzoI7cZYW4c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGs", + 'from' => "2020-02-22T01:07:11.000000Z", + 'to' => "2023-10-31T10:32:00.000000Z" ] ); try { @@ -117,12 +117,12 @@ public function testListTransfersV26() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'prev_page_cursor_id' => "d8a1bb02-12b8-43af-ac08-1c963bb3d3d0", - 'per_page' => 87, - 'transfer_types' => ["exchange", "transfer"], - 'description' => "zaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFm", - 'from' => "2020-11-15T12:41:10.000000Z", - 'to' => "2021-02-24T17:36:36.000000Z" + 'prev_page_cursor_id' => "cd8be7d0-ced0-4462-8776-83a32b1cd3d1", + 'per_page' => 699, + 'transfer_types' => ["cashback", "coupon"], + 'description' => "BJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJu", + 'from' => "2021-10-23T19:49:53.000000Z", + 'to' => "2022-06-05T22:59:06.000000Z" ] ); try { @@ -139,13 +139,13 @@ public function testListTransfersV27() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'next_page_cursor_id' => "2942bf7f-422a-4fc6-937a-5eb1c26dba5b", - 'prev_page_cursor_id' => "2aaa21f5-ea70-48e5-acf2-9c1f8c386594", - 'per_page' => 218, - 'transfer_types' => ["topup", "payment", "expire"], - 'description' => "xW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3j", - 'from' => "2020-08-07T01:24:26.000000Z", - 'to' => "2024-07-26T09:24:28.000000Z" + 'next_page_cursor_id' => "6241e537-c29b-494f-9be2-4bd59d675ca6", + 'prev_page_cursor_id' => "d08d374e-9d15-433b-915a-9f9af02b09b0", + 'per_page' => 706, + 'transfer_types' => ["topup", "payment", "expire", "campaign"], + 'description' => "Z2omGatDjCcJfOMaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQz", + 'from' => "2021-10-05T05:21:13.000000Z", + 'to' => "2022-04-26T03:16:54.000000Z" ] ); try { @@ -162,14 +162,14 @@ public function testListTransfersV28() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'transaction_types' => ["payment"], - 'next_page_cursor_id' => "15a3ad35-950b-49be-9e07-43f0c2bb0b6f", - 'prev_page_cursor_id' => "45eb8eaa-2564-4135-88d1-0c2a7882bbe1", - 'per_page' => 391, - 'transfer_types' => ["coupon", "topup", "payment", "transfer", "exchange", "cashback", "expire"], - 'description' => "LxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6uXM4yE9kd7lV6Q", - 'from' => "2023-01-09T21:03:09.000000Z", - 'to' => "2024-03-04T04:26:05.000000Z" + 'transaction_types' => ["transfer", "exchange", "cashback", "topup", "expire"], + 'next_page_cursor_id' => "f0d8b57d-10a9-4520-9f86-b982ce0c4df2", + 'prev_page_cursor_id' => "edd2359e-2edf-44b7-a6f3-e2426312baee", + 'per_page' => 936, + 'transfer_types' => ["topup", "expire", "payment", "cashback", "transfer", "coupon", "campaign"], + 'description' => "OVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc", + 'from' => "2020-05-30T21:00:56.000000Z", + 'to' => "2025-06-20T04:31:53.000000Z" ] ); try { @@ -187,14 +187,14 @@ public function testListTransfersV29() $request = new Request\ListTransfersV2( [ 'is_modified' => FALSE, - 'transaction_types' => ["exchange", "expire", "cashback"], - 'next_page_cursor_id' => "0b38e436-5686-4ad2-bb9f-1b054eb4a1fb", - 'prev_page_cursor_id' => "b3a403c5-f387-4b7a-af80-15490e3dccb7", - 'per_page' => 32, - 'transfer_types' => ["transfer", "topup", "payment", "campaign", "expire", "exchange", "cashback", "coupon"], - 'description' => "c0GyNh6EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8reh9b3v7zqeYS2n0EGsPPbvQvYkAPBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObU", - 'from' => "2020-04-17T02:45:34.000000Z", - 'to' => "2021-03-18T16:47:55.000000Z" + 'transaction_types' => ["payment", "topup", "cashback", "exchange"], + 'next_page_cursor_id' => "35302418-5147-48c8-8c9f-f22ba9a0cee3", + 'prev_page_cursor_id' => "853e63f7-18f9-4d3c-94e5-413fff4bb52b", + 'per_page' => 163, + 'transfer_types' => ["payment", "expire", "cashback", "transfer", "topup", "exchange", "coupon", "campaign"], + 'description' => "5Jr7zEeO7nUDqxXj74j643AIOVakyq8QHWKNric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4G", + 'from' => "2022-03-11T09:18:48.000000Z", + 'to' => "2024-11-03T01:17:38.000000Z" ] ); try { @@ -211,16 +211,16 @@ public function testListTransfersV210() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'private_money_id' => "f16da3d1-515a-4f9a-b0c1-06b0080aa508", + 'private_money_id' => "b26c9bb1-cd1d-44db-ba1a-084df4297737", 'is_modified' => FALSE, - 'transaction_types' => ["transfer", "cashback", "topup"], - 'next_page_cursor_id' => "bce4c95a-2c32-4d94-affd-3d89e778356d", - 'prev_page_cursor_id' => "90be4d47-c11f-4c2a-8ee1-d3f452bf0c83", - 'per_page' => 581, - 'transfer_types' => ["exchange", "topup", "coupon", "transfer", "payment", "campaign", "cashback"], - 'description' => "MaGd4kHySUJYrKI48UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7n", - 'from' => "2021-05-16T16:52:37.000000Z", - 'to' => "2020-12-25T08:15:26.000000Z" + 'transaction_types' => ["exchange"], + 'next_page_cursor_id' => "81592673-63a6-4a08-bcca-1c847dd7b996", + 'prev_page_cursor_id' => "fd4b5813-f8f9-4813-815e-0c2516cbd953", + 'per_page' => 991, + 'transfer_types' => ["campaign"], + 'description' => "jtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp", + 'from' => "2024-03-31T10:15:20.000000Z", + 'to' => "2020-09-10T03:14:26.000000Z" ] ); try { @@ -237,17 +237,17 @@ public function testListTransfersV211() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'transaction_id' => "e83f1b91-3b78-47a9-98ea-21b732ce3eb4", - 'private_money_id' => "a58e7b7e-4199-496a-bd36-ca20fc08f02e", - 'is_modified' => TRUE, - 'transaction_types' => ["exchange", "transfer"], - 'next_page_cursor_id' => "184b7a0c-874f-4456-8594-19dc55495861", - 'prev_page_cursor_id' => "7f84988a-238a-49c0-826b-c78ac08439f9", - 'per_page' => 498, - 'transfer_types' => ["topup", "exchange", "coupon", "payment"], - 'description' => "Nric3MBQYWsKtvnxoQJLloM94TQVFchkaVLnKXq1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21zM7WIQGDsPsJyAShBlCJPjtVj6RA58jW2j8noWbh", - 'from' => "2020-03-17T13:52:06.000000Z", - 'to' => "2021-04-04T11:16:02.000000Z" + 'transaction_id' => "f02842a4-ee1e-4735-b122-300ec40eba10", + 'private_money_id' => "c0f95adf-a8ba-4af9-8102-a699e1982cd9", + 'is_modified' => FALSE, + 'transaction_types' => ["expire", "cashback", "topup"], + 'next_page_cursor_id' => "3cb0bbd7-3673-49f4-b179-c1ad9c9d2e03", + 'prev_page_cursor_id' => "5a58a2c9-139c-456c-ab2a-71481450b1e0", + 'per_page' => 720, + 'transfer_types' => ["coupon", "payment"], + 'description' => "M6Qkur8Sb", + 'from' => "2020-10-30T03:47:48.000000Z", + 'to' => "2025-08-09T11:24:39.000000Z" ] ); try { @@ -264,18 +264,18 @@ public function testListTransfersV212() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'customer_name' => "yHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgtixsqVTYrrSHZ1a0tz4EzkuhUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8", - 'transaction_id' => "1e58cbfd-9857-4ca9-aa1f-be24214182f8", - 'private_money_id' => "31fd2e5c-31c7-483b-a02e-d2944f95005d", + 'customer_name' => "uCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxV", + 'transaction_id' => "a1343529-1396-48e0-8871-c975b8afee7c", + 'private_money_id' => "23f95c17-2392-4085-9614-66d9410122f3", 'is_modified' => TRUE, - 'transaction_types' => ["expire"], - 'next_page_cursor_id' => "4fd3235e-e760-49b0-93e3-f52f49986bac", - 'prev_page_cursor_id' => "b8004775-bc82-4c12-8857-77b1a5153eac", - 'per_page' => 731, - 'transfer_types' => ["expire", "payment", "exchange", "cashback"], - 'description' => "CHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57", - 'from' => "2020-07-01T09:23:22.000000Z", - 'to' => "2022-04-28T20:39:21.000000Z" + 'transaction_types' => ["cashback", "expire"], + 'next_page_cursor_id' => "8be02cf3-4052-41e9-822a-a7f3cffa6509", + 'prev_page_cursor_id' => "3e2f8fd2-e512-46d1-b91b-b9e535ad433c", + 'per_page' => 100, + 'transfer_types' => ["coupon", "expire", "topup", "transfer", "campaign", "cashback", "payment", "exchange"], + 'description' => "4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZ", + 'from' => "2021-11-13T13:59:36.000000Z", + 'to' => "2025-03-10T14:09:56.000000Z" ] ); try { @@ -292,19 +292,19 @@ public function testListTransfersV213() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'customer_id' => "7ed0a6f3-719c-4ac4-bf24-9c70124842a5", - 'customer_name' => "O4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4Aj", - 'transaction_id' => "eedee249-b5fc-41b4-b7f0-77af7a2a55a8", - 'private_money_id' => "9af1aca7-46b6-4d93-b174-1149845a26a4", + 'customer_id' => "4bad811c-d641-4b00-b9f4-25d442d84648", + 'customer_name' => "VvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEgMmyi8jmBN0T80aLvrKoRyTXgPVT4Aze", + 'transaction_id' => "f6f2025c-51ef-445a-8517-633b4efb651b", + 'private_money_id' => "ee4d51fd-5a4f-4a59-be75-cef5577dd231", 'is_modified' => FALSE, - 'transaction_types' => ["payment"], - 'next_page_cursor_id' => "99284f30-0515-4147-ada1-ccfa2de3f748", - 'prev_page_cursor_id' => "1c46990c-4631-4d46-9257-af2f4cec889d", - 'per_page' => 535, - 'transfer_types' => ["coupon", "cashback", "expire", "campaign", "topup", "transfer", "exchange"], - 'description' => "HaeJGFXqwAY75stQD6SAh41fZii84vybd1Jsf0jR3rzbwtxyn2FAh1zUedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7Ml90EeuZgaP20pyyEjfyZnRCBHpzVqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEg", - 'from' => "2023-07-05T02:20:51.000000Z", - 'to' => "2020-11-07T16:26:53.000000Z" + 'transaction_types' => ["transfer", "topup", "cashback"], + 'next_page_cursor_id' => "67fdee20-6471-4a2c-95ec-3ad7551a9c3e", + 'prev_page_cursor_id' => "0d772977-fefc-49f9-bca6-23859be502c3", + 'per_page' => 668, + 'transfer_types' => ["campaign", "expire", "payment", "topup", "transfer"], + 'description' => "CUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQd", + 'from' => "2021-06-30T23:53:25.000000Z", + 'to' => "2020-10-11T11:52:02.000000Z" ] ); try { @@ -321,20 +321,20 @@ public function testListTransfersV214() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'shop_name' => "myi8jmBN0T80aLvrKoRyTXgPVT4AzeoZEOYuu1RyqlWwyCNVezTDDCUN00F2V", - 'customer_id' => "585e6c88-d2de-4d11-afe8-42fd31b35ba8", - 'customer_name' => "3XqmCSMDzeEDKcNHBIUBy90lbfxByyLgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0YorDHLBFs4pFpuxUcIrb43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4KZBQdvuQb5QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLqhFbA6TsT4rGSzhCtzrrQI", - 'transaction_id' => "59173785-910e-4ec6-ac06-602550aa0481", - 'private_money_id' => "158739a9-7065-48cb-981e-032489c19533", - 'is_modified' => FALSE, - 'transaction_types' => ["expire", "exchange", "cashback", "transfer"], - 'next_page_cursor_id' => "a96ba690-b9d7-4f07-aecc-721c9cd025cc", - 'prev_page_cursor_id' => "e7c1c735-08fe-4819-b16b-de591fb859a4", - 'per_page' => 849, - 'transfer_types' => ["expire", "exchange", "coupon", "campaign", "transfer"], - 'description' => "8wILW6Ubji", - 'from' => "2022-01-16T21:41:44.000000Z", - 'to' => "2023-04-03T19:00:06.000000Z" + 'shop_name' => "QYDYt7CyctlhtAXqf6uerXtmVp3iPqRhb6DnnO4ty38IkhtTfaQWLq", + 'customer_id' => "b6a1db3b-5505-4716-bce8-b1a19551185c", + 'customer_name' => "bA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnLL5qkYPGTd8wILW6Ubji6nDVo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdO", + 'transaction_id' => "66c776d2-c2ea-42b3-9dbd-c9fe8c36064a", + 'private_money_id' => "d50b2aac-ce6c-4880-ae61-e1b3625a3a50", + 'is_modified' => TRUE, + 'transaction_types' => ["topup", "exchange", "cashback", "expire", "payment"], + 'next_page_cursor_id' => "d69ebd7f-e328-47fb-ac38-334f6a1fa167", + 'prev_page_cursor_id' => "c61dce4e-e5e8-4507-a81a-f5713cac248c", + 'per_page' => 688, + 'transfer_types' => ["cashback", "campaign", "payment", "topup", "transfer", "coupon", "exchange", "expire"], + 'description' => "sClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqw", + 'from' => "2024-07-17T08:51:49.000000Z", + 'to' => "2022-06-12T10:58:44.000000Z" ] ); try { @@ -351,21 +351,21 @@ public function testListTransfersV215() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'shop_id' => "1815f202-f891-4385-bdee-0b446dd55894", - 'shop_name' => "Vo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFwc0O5qDH6cAdyVZn4o55A5DSTN7FZ8Y8t8MIK7GdyM50XmxAy3ATlXa99m3Ela8zcR94JgHtiXrfi45gdORj3Jla3Pfb8OgNhhqnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwd", - 'customer_id' => "b989d36b-720e-4988-ac6b-219f01017e67", - 'customer_name' => "vqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGM", - 'transaction_id' => "450967ab-6a85-4407-8694-a0f2228d9570", - 'private_money_id' => "372a711d-3775-4a70-be6e-295a189548a6", - 'is_modified' => FALSE, - 'transaction_types' => ["topup", "payment", "expire", "transfer"], - 'next_page_cursor_id' => "18996458-af4c-4ac7-8ca3-572d287b3d1f", - 'prev_page_cursor_id' => "ed2cd0e4-8820-4ac9-a0b4-0b42e1ca309e", - 'per_page' => 813, - 'transfer_types' => ["coupon", "exchange", "expire", "cashback", "transfer", "payment", "topup"], - 'description' => "C6v4LdJ9q0nifAUuGHUnCvc4A5HlCo2a7OllU", - 'from' => "2023-10-20T19:13:01.000000Z", - 'to' => "2020-05-14T09:04:27.000000Z" + 'shop_id' => "b989d36b-720e-4988-ac6b-219f01017e67", + 'shop_name' => "vqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGM", + 'customer_id' => "450967ab-6a85-4407-8694-a0f2228d9570", + 'customer_name' => "upnZP3tXLGdI4BQeMKNjNC6v4LdJ9q", + 'transaction_id' => "5f01bdaf-66dd-4430-9cee-9ae9d822e189", + 'private_money_id' => "d8e13f66-ab89-4241-9523-3c7502f06147", + 'is_modified' => TRUE, + 'transaction_types' => ["expire", "exchange", "transfer", "payment"], + 'next_page_cursor_id' => "18ee3795-f50e-43f6-a389-923452289414", + 'prev_page_cursor_id' => "63fd5441-5fa9-4d35-88ec-c10c5e766643", + 'per_page' => 112, + 'transfer_types' => ["coupon", "transfer", "topup", "payment", "exchange", "cashback", "expire", "campaign"], + 'description' => "llUlO", + 'from' => "2023-09-21T11:49:23.000000Z", + 'to' => "2022-08-10T04:11:58.000000Z" ] ); try { diff --git a/tests/ListWebhooksTest.php b/tests/ListWebhooksTest.php index f9a01edd..b626a1f1 100644 --- a/tests/ListWebhooksTest.php +++ b/tests/ListWebhooksTest.php @@ -22,7 +22,7 @@ public function testListWebhooks1() $client = $this->newClient(); $request = new Request\ListWebhooks( [ - 'per_page' => 702 + 'per_page' => 4838 ] ); try { @@ -39,8 +39,8 @@ public function testListWebhooks2() $client = $this->newClient(); $request = new Request\ListWebhooks( [ - 'page' => 8870, - 'per_page' => 7026 + 'page' => 1316, + 'per_page' => 9778 ] ); try { diff --git a/tests/RefundExternalTransactionTest.php b/tests/RefundExternalTransactionTest.php index 04d4efc4..4c0fd7ac 100644 --- a/tests/RefundExternalTransactionTest.php +++ b/tests/RefundExternalTransactionTest.php @@ -8,7 +8,7 @@ public function testRefundExternalTransaction0() { $client = $this->newClient(); $request = new Request\RefundExternalTransaction( - "71e2afcf-cb9f-4395-ae03-dd9a82830846" + "cdbd239f-e0ab-44f2-b2db-84dde5c5fec5" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testRefundExternalTransaction1() { $client = $this->newClient(); $request = new Request\RefundExternalTransaction( - "71e2afcf-cb9f-4395-ae03-dd9a82830846", + "cdbd239f-e0ab-44f2-b2db-84dde5c5fec5", [ - 'description' => "jAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOG" + 'description' => "FyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTf" ] ); try { diff --git a/tests/RefundTransactionTest.php b/tests/RefundTransactionTest.php index b33921a3..c882d0fb 100644 --- a/tests/RefundTransactionTest.php +++ b/tests/RefundTransactionTest.php @@ -8,7 +8,7 @@ public function testRefundTransaction0() { $client = $this->newClient(); $request = new Request\RefundTransaction( - "44ad5a6c-810f-4ef5-a8a0-d2b35483e3ee" + "667f2955-f2d3-432c-b654-f563b2624d26" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testRefundTransaction1() { $client = $this->newClient(); $request = new Request\RefundTransaction( - "44ad5a6c-810f-4ef5-a8a0-d2b35483e3ee", + "667f2955-f2d3-432c-b654-f563b2624d26", [ - 'returning_point_expires_at' => "2024-08-13T07:14:24.000000Z" + 'returning_point_expires_at' => "2024-02-23T15:18:38.000000Z" ] ); try { @@ -41,10 +41,10 @@ public function testRefundTransaction2() { $client = $this->newClient(); $request = new Request\RefundTransaction( - "44ad5a6c-810f-4ef5-a8a0-d2b35483e3ee", + "667f2955-f2d3-432c-b654-f563b2624d26", [ - 'description' => "Hg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0O", - 'returning_point_expires_at' => "2021-03-10T01:13:50.000000Z" + 'description' => "wfudd", + 'returning_point_expires_at' => "2022-04-23T18:20:52.000000Z" ] ); try { diff --git a/tests/RequestUserStatsTest.php b/tests/RequestUserStatsTest.php index b637aed6..efe3a2c9 100644 --- a/tests/RequestUserStatsTest.php +++ b/tests/RequestUserStatsTest.php @@ -8,8 +8,8 @@ public function testRequestUserStats0() { $client = $this->newClient(); $request = new Request\RequestUserStats( - "2020-04-12T07:44:44.000000Z", - "2020-08-21T09:41:36.000000Z" + "2020-09-08T19:28:18.000000Z", + "2021-02-01T07:15:30.000000Z" ); try { $response = $client->send($request); diff --git a/tests/TerminateUserStatsTest.php b/tests/TerminateUserStatsTest.php index be87336f..86c49152 100644 --- a/tests/TerminateUserStatsTest.php +++ b/tests/TerminateUserStatsTest.php @@ -8,7 +8,7 @@ public function testTerminateUserStats0() { $client = $this->newClient(); $request = new Request\TerminateUserStats( - "0eb3ea69-ca70-4c82-8bc3-b1b383db6e80" + "9e996d8d-a15b-4270-b3a5-c26a074f4830" ); try { $response = $client->send($request); diff --git a/tests/UpdateBillTest.php b/tests/UpdateBillTest.php index 59c4f96f..aaaedaae 100644 --- a/tests/UpdateBillTest.php +++ b/tests/UpdateBillTest.php @@ -8,7 +8,7 @@ public function testUpdateBill0() { $client = $this->newClient(); $request = new Request\UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517" + "dc8f373f-bb9f-4466-b754-615276c7c142" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testUpdateBill1() { $client = $this->newClient(); $request = new Request\UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517", + "dc8f373f-bb9f-4466-b754-615276c7c142", [ - 'is_disabled' => TRUE + 'is_disabled' => FALSE ] ); try { @@ -41,9 +41,9 @@ public function testUpdateBill2() { $client = $this->newClient(); $request = new Request\UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517", + "dc8f373f-bb9f-4466-b754-615276c7c142", [ - 'description' => "RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv", + 'description' => "Dusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3Rzx", 'is_disabled' => FALSE ] ); @@ -60,10 +60,10 @@ public function testUpdateBill3() { $client = $this->newClient(); $request = new Request\UpdateBill( - "ab811bae-a4a2-4ac5-9eec-f8b9ec534517", + "dc8f373f-bb9f-4466-b754-615276c7c142", [ - 'amount' => 140.0, - 'description' => "4bnDyHKg7jf7TRBDusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3RzxMsGYTRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iM", + 'amount' => 3143.0, + 'description' => "TRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEo", 'is_disabled' => FALSE ] ); diff --git a/tests/UpdateCampaignTest.php b/tests/UpdateCampaignTest.php index 4af448ca..47426ec0 100644 --- a/tests/UpdateCampaignTest.php +++ b/tests/UpdateCampaignTest.php @@ -8,9 +8,9 @@ public function testUpdateCampaign0() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["2894f9eb-0ced-4b19-a225-142de089b827", "4581d55f-089b-49fc-ad8d-b73d3689633e", "3a99f12e-47a7-489b-83ac-0c471586da72", "b4f2c6b3-2f25-443e-a6c5-a75af0b947ee", "f7d8db20-a789-4c7c-82bc-072dea8f736c"] + 'applicable_shop_ids' => ["796fd967-8d74-4d35-b8f0-fadf5fb8278d", "2a820e54-652a-4f05-a1bd-53e80d83c071", "6eeceeeb-d478-4528-8b7c-15d76d81685c", "e546b275-234e-4e34-8b4f-406be178c705", "8f502f59-5306-42ed-956e-07ebc39972c1", "8240608f-e09b-4ec6-8f2d-7b489132610e", "d461637d-68f2-40d7-b59b-6c9021ee760a"] ] ); try { @@ -26,10 +26,10 @@ public function testUpdateCampaign1() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["0340e3dd-7eaf-4b74-beef-ec2176683dbd", "528a7560-32f9-4127-8b1b-346d76d68203", "9b65502b-ffba-4633-b8db-5842f07add9b"], - 'name' => "Dyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNYBzQF26RRnLKM2vajHzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlq" + 'applicable_shop_ids' => ["6315f497-9fb8-4920-84a2-1c4513af3ce8", "25df8399-bbf6-4b47-a6ca-fcc68acaebe8"], + 'name' => "LPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNY" ] ); try { @@ -45,11 +45,11 @@ public function testUpdateCampaign2() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["cdae4173-9b72-4120-9e4a-613e353cb426", "4a7ea9be-0b83-4b99-a20b-4a16ba9b202a", "3baeb92d-db54-49f4-8e82-d79bcd515848", "aba5d800-220d-4e2f-bde5-7b7b756b5a4c", "e2790831-ebff-4f27-aa6c-3f251c72112e", "6f833d2e-2fb3-462c-9427-182ef77faca4"], - 'starts_at' => "2020-11-24T15:34:55.000000Z", - 'name' => "aroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhd" + 'applicable_shop_ids' => ["38bf9b20-5afa-48d1-8632-3687a4bf2bb6", "b6968aae-5352-4599-92ee-c30dea1967cc", "f15dc4cb-1a90-42cd-b2f6-c8e1be5e9840"], + 'starts_at' => "2025-05-03T00:07:06.000000Z", + 'name' => "Hzuhk8mM7y90MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsr" ] ); try { @@ -65,12 +65,12 @@ public function testUpdateCampaign3() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["dc96bd6c-aa51-44ad-8509-a7711280e59f", "73e12704-84d2-4e50-b954-12a3036b8b01"], - 'ends_at' => "2020-09-27T16:08:22.000000Z", - 'starts_at' => "2023-08-19T09:03:03.000000Z", - 'name' => "2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPA" + 'applicable_shop_ids' => ["e3f1e85e-604a-413e-a6be-0b83928c1b99"], + 'ends_at' => "2020-03-08T17:19:07.000000Z", + 'starts_at' => "2025-08-21T11:21:14.000000Z", + 'name' => "TtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2" ] ); try { @@ -86,13 +86,13 @@ public function testUpdateCampaign4() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["e1574a3a-85b5-4e54-9bfb-97e15a2b5f98", "11272b0d-63cf-44d3-a903-be4ae961cc24", "eafd9672-24c6-4cf7-8f95-725497373a36", "1170f0c9-28dc-45cd-93d4-49d16b634c29", "777760df-aae0-41d1-8444-1533cf0910e1", "7f935bda-74d3-4c4c-b556-3ee0bed6ea23", "ee66d8ba-ce27-4835-8bc0-aa8da0d78da3", "6c479e2b-3276-47dd-baa9-0923b9c17373"], - 'priority' => 811, - 'ends_at' => "2020-09-20T01:15:55.000000Z", - 'starts_at' => "2024-03-26T03:20:52.000000Z", - 'name' => "5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3g" + 'applicable_shop_ids' => ["acf54af6-8adf-443c-afa8-6a56181e6a1a", "100bb4a6-cc67-4c2d-94af-73d2abbcda43", "fb6e3423-0798-40d9-b2f2-b1ddbf19a01f", "d637f0c5-d050-4d70-8a91-13f2619c0a26"], + 'priority' => 8622, + 'ends_at' => "2024-05-03T23:22:07.000000Z", + 'starts_at' => "2020-08-26T14:34:24.000000Z", + 'name' => "NeaYJXDFnN5l443TmOvQLPfQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9uDmHdcukVhdalQqRPyTvG2tPeRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMK" ] ); try { @@ -108,14 +108,14 @@ public function testUpdateCampaign5() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["137006a6-1a47-4bdb-9195-631ce5a8d00f", "473402ed-3f47-4065-b039-a7afbd8a3765", "5fdd500f-76d8-4bec-8bf4-97d0ef72d111", "08748fe7-3271-49d3-8130-e345728e2ed2", "5903c6a1-8961-459e-96c7-f4181b3f997a", "da4338b4-d436-4bf6-883a-d782d4498b12", "ccfa1c2d-3149-45ad-8369-11c1871b2cb4", "a58b3c06-72e8-42bc-bbe2-a00906a58f28", "52b862e5-b315-4c31-b9db-f1c9450e54b3"], - 'event' => "topup", - 'priority' => 8387, - 'ends_at' => "2021-12-26T23:24:55.000000Z", - 'starts_at' => "2023-07-11T12:43:07.000000Z", - 'name' => "p5lj6m5fgOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpAqcWNJrNTsv2Llex1e" + 'applicable_shop_ids' => ["11d6d5d2-d6a1-45b5-a7c5-4362e5f7cb3d", "f86080a7-00d4-442a-9796-fad650cdf515", "da733d7c-fb34-489c-9cd7-28970ec5779f", "8d851dd7-1cf3-42a0-92f9-ffdd2e4682ff", "6bd76a84-8923-4c2c-922b-2f5b52460ad8"], + 'event' => "external-transaction", + 'priority' => 5165, + 'ends_at' => "2021-12-17T04:06:49.000000Z", + 'starts_at' => "2022-07-30T09:06:53.000000Z", + 'name' => "Vg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DMCSqp4SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3" ] ); try { @@ -131,15 +131,15 @@ public function testUpdateCampaign6() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["633c3b93-97ea-4d00-877e-f1d16c0cbbdd", "dd87021b-31a3-465d-bc7c-e90545350532", "0e4a4818-9225-4f75-a73c-fc81af1263fa", "7667b802-28df-4d8f-af47-d386ba7a5b2b", "8807dbf8-ad75-4f8a-b81e-8bb1d94fb353"], - 'description' => "50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65i", + 'applicable_shop_ids' => ["e778230c-b698-46a6-87db-f151ec1a2c95", "57b4631c-d00f-42ed-8765-6630492c9f39", "37faa7af-3765-400f-98ec-ac4b3eae16f4", "f6bb97d0-d111-4fe7-b1d3-41c19565c230", "0ba9e345-2ed2-46a1-a19e-c3964ee366c7", "acddf418-997a-48b4-b6f6-87085e0b663a", "217cd782-8b12-4c2d-89ad-8f03f4d54f69", "b14411c1-2cb4-4c06-a8bc-37fbfd3ca1e2"], + 'description' => "e1yI3CGp5l", 'event' => "external-transaction", - 'priority' => 6215, - 'ends_at' => "2023-07-03T16:13:53.000000Z", - 'starts_at' => "2023-05-22T18:02:35.000000Z", - 'name' => "GpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3S" + 'priority' => 8374, + 'ends_at' => "2023-11-01T17:07:57.000000Z", + 'starts_at' => "2020-02-12T19:25:41.000000Z", + 'name' => "gOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqE" ] ); try { @@ -155,16 +155,16 @@ public function testUpdateCampaign7() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["5b5e1a3e-c79a-490a-93c3-8e0cc560226d", "21fe2b06-bc50-483f-a239-7b8bbc1332c2", "2747d5d8-0901-486f-93cc-8a926be4e01c", "7e2890da-3537-44f7-8bde-0981cdf7f2c8", "da3c8874-bb58-4a11-92b2-5e3e9807bedd", "36446f90-0033-44c8-b7d4-664c40cc8c2e", "51251ceb-e702-4409-9515-d40a0173bc16", "f2d56547-08b7-4b3e-9c29-c0fa92221278", "c499ad07-98f4-47d1-a050-a92cc4cd7807", "4eea86cc-cf86-489f-9c19-d030f79be695"], - 'status' => "enabled", - 'description' => "ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADra", - 'event' => "payment", - 'priority' => 8264, - 'ends_at' => "2021-06-03T08:53:13.000000Z", - 'starts_at' => "2020-05-27T15:28:47.000000Z", - 'name' => "wFUVQhJI" + 'applicable_shop_ids' => ["5ec20df7-6b6a-401d-a7eb-ac21509eab72", "07155347-9dee-4688-bfb0-5f75148ac026", "5ba16e25-5888-4fc1-ae30-16bd5c77138f"], + 'status' => "disabled", + 'description' => "qI2b5rxtzGOZhKJMKwzvYsbBzT", + 'event' => "topup", + 'priority' => 7833, + 'ends_at' => "2024-12-07T23:47:24.000000Z", + 'starts_at' => "2022-12-24T20:39:00.000000Z", + 'name' => "6bpAqcWNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEI" ] ); try { @@ -180,17 +180,17 @@ public function testUpdateCampaign8() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["0cc32c9c-60f6-401e-83d7-c2a70a9e75a6", "ca813a8d-6a19-423e-b011-cfc02497dc11", "da489bc3-148d-4c0c-98cc-c30565126f2d", "57b13f70-f8b2-4bfd-a755-906e692cc388", "515ecff8-201a-4a38-af3f-66c8f04c1cd5", "29cad8a1-88df-4c22-83f7-23b9d74b818b", "3067ab19-5bc9-43ae-841d-99d55cbf7e24", "eee0f438-f3e0-412d-9f90-a4a8203c5b76", "e395a2b5-2f81-4c9e-b489-dfe537f3b684", "5d15713c-d895-4862-abb7-f7b2fcbdcee2"], - 'point_expires_at' => "2020-06-20T08:19:57.000000Z", + 'applicable_shop_ids' => ["56186844-123c-4865-a9b3-582ba90fa8f9", "27b1214f-ca6b-42bd-829a-058b5eed3199", "ef45ef36-e8b4-46a4-b2f9-bd203a2a0d10", "d1a16335-8a4d-4393-93b6-ed82213ebd20", "942d539b-df5a-4faa-a8c7-7302ca44558f"], + 'point_expires_at' => "2023-08-26T03:40:59.000000Z", 'status' => "enabled", - 'description' => "nq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16", - 'event' => "external-transaction", - 'priority' => 9793, - 'ends_at' => "2023-03-02T08:23:24.000000Z", - 'starts_at' => "2020-09-20T08:41:20.000000Z", - 'name' => "8HMuzRKVjoY87iExdEH" + 'description' => "NmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyT", + 'event' => "topup", + 'priority' => 8359, + 'ends_at' => "2025-03-06T22:13:05.000000Z", + 'starts_at' => "2024-06-16T11:49:05.000000Z", + 'name' => "FexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuU" ] ); try { @@ -206,18 +206,18 @@ public function testUpdateCampaign9() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["3c251054-cda8-4d8c-8e44-e074be2ba898", "b28cf967-5ac5-4417-b064-afdc4ec9f30b", "7536f411-f802-43ab-8d3f-3a6c398917a3"], - 'point_expires_in_days' => 1625, - 'point_expires_at' => "2021-07-10T21:03:10.000000Z", + 'applicable_shop_ids' => ["236fc187-e881-4f72-baf9-a711ab6f905e", "97c2dacb-098a-47da-8e32-5d7fc46f99a0", "35167d2a-8c10-4a49-9f28-51df69d3627c", "c35b331a-7070-4776-9ac4-6e955aeba162", "f6e6b3ae-1655-4447-8e2c-66919c8aa68a", "9c2bf0a8-a97e-411c-a062-c3ff24196966", "6c8aae39-c632-467a-be1a-d3bdc9867347", "0cedfe65-736a-4669-b93e-eb375bb14be2", "c9288240-31b3-47f3-bf72-210b39cb21e7"], + 'point_expires_in_days' => 2087, + 'point_expires_at' => "2023-04-23T04:54:05.000000Z", 'status' => "disabled", - 'description' => "KinvVKW5jNBic0lb", + 'description' => "7LVnhxTyA", 'event' => "topup", - 'priority' => 6197, - 'ends_at' => "2024-04-13T01:12:09.000000Z", - 'starts_at' => "2022-02-19T06:58:48.000000Z", - 'name' => "pPDb3qItRRs3FY6lAlrydgPmYNQmdCCSHSb7PeqbGNNyGMxdwCiRwJpoUB" + 'priority' => 382, + 'ends_at' => "2022-09-09T03:06:11.000000Z", + 'starts_at' => "2023-12-24T09:05:30.000000Z", + 'name' => "fZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42w" ] ); try { @@ -233,19 +233,19 @@ public function testUpdateCampaign10() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["1be453a9-151b-4f37-b7cd-b332c0337273", "e0530aea-2146-4ed4-b529-7c301e0a860a", "5bd59f3d-3f8d-4e06-a560-9efe6ea1add0", "ad027672-f936-413c-8833-26cca9a6ee72"], + 'applicable_shop_ids' => ["ce08a7f0-d679-46bb-817b-d6bac5ee44a4", "88d728e9-3220-47c2-9892-ddfeba00066e", "9abbd355-07fd-4c2c-a242-604c5441169d", "63a791c1-b67d-4056-af00-11b9730cc58f"], 'is_exclusive' => FALSE, - 'point_expires_in_days' => 5207, - 'point_expires_at' => "2024-08-22T02:39:45.000000Z", - 'status' => "disabled", - 'description' => "adi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d", - 'event' => "payment", - 'priority' => 8349, - 'ends_at' => "2021-09-28T09:54:12.000000Z", - 'starts_at' => "2023-03-02T16:36:03.000000Z", - 'name' => "nOvPtZOQ7wRQgMzlEQYhb78oA0LE9nGzsoBIqSCZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnCaj1IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4" + 'point_expires_in_days' => 4902, + 'point_expires_at' => "2025-01-03T12:57:34.000000Z", + 'status' => "enabled", + 'description' => "ftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM0", + 'event' => "external-transaction", + 'priority' => 6836, + 'ends_at' => "2024-01-01T04:51:29.000000Z", + 'starts_at' => "2023-12-19T12:56:00.000000Z", + 'name' => "SYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBo" ] ); try { @@ -261,20 +261,20 @@ public function testUpdateCampaign11() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["c412cff2-c5e8-4245-b750-321c72bfd421", "3d6914eb-e394-43ff-9e5d-2c45acb745c0", "4febd7fa-dd2d-47a1-99a3-b8aeafeede15", "407b0f50-107e-4dfe-997e-33d648dd2fd8", "e42c6e66-2f7a-4df7-b4ac-3beafb4fb624"], + 'applicable_shop_ids' => ["a1171378-cd93-446b-afac-1e309ccd3b3b", "b9eb1ebd-8898-4c5c-91b3-a7b81f9edc76", "3eb332af-9003-46e9-a7ec-b754e85cb2b3", "c17b5bea-a612-4d18-9d37-21f5bf268acb", "b92af539-74c6-4d45-8f38-f03af5c4c592", "fd6921f7-ab8a-4efd-bbf0-51d46625f24d", "4f5b7862-3d05-49a2-95ef-7f00f3709f8f"], 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 5049, - 'point_expires_at' => "2021-03-12T06:41:12.000000Z", - 'status' => "enabled", - 'description' => "n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZl", - 'event' => "payment", - 'priority' => 9684, - 'ends_at' => "2020-09-02T14:48:30.000000Z", - 'starts_at' => "2022-08-17T16:19:08.000000Z", - 'name' => "LKHNv0GHMA8YNVctqn0HylBEaWFtKmGqTMRGGhLK4md8CvDRXJmyMUq3nONdNUldE" + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3124, + 'point_expires_at' => "2022-02-25T19:36:20.000000Z", + 'status' => "disabled", + 'description' => "jcbIFy00bHfPtADraHJBywFUVQhJIvCWpCXLp2gUnx8oHUCw9IDU8v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIUR", + 'event' => "topup", + 'priority' => 8476, + 'ends_at' => "2020-07-08T09:15:47.000000Z", + 'starts_at' => "2022-04-04T13:25:42.000000Z", + 'name' => "G9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdE" ] ); try { @@ -290,25 +290,31 @@ public function testUpdateCampaign12() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["51755d5e-d371-48d4-9a46-2c478825c248", "778e2d4c-4008-4ea7-ac8a-f164f84b24a2", "97688559-7bf7-4448-903b-5d8399cf987e", "e80bda3a-35da-4a95-b5ad-8ade9a76d1c7", "a8d307db-f714-4479-af89-1d82f8818ddf", "822dc183-8959-4859-86a8-0563180914e7", "d4c1edd0-81d0-4f89-9afc-54aeaad60584", "1b092e4b-7720-49b3-aec4-ada3c64c81a7", "b5133063-f886-4268-82fc-d38b2350a3f1", "df16655d-c9a9-4de9-9c6b-fe8b80d06935"], + 'applicable_shop_ids' => ["9c553892-1054-4da8-8cce-b644382ce074", "be2ba898-f967-4ac5-9770-d6644de7afdc", "4ec9f30b-f411-4802-abcd-813ff5353a6c", "398917a3-0658-40ca-8ec1-b50f6b9e92dc", "a686654b-ad9b-40e9-806e-7ff6f4cabed6", "44dc80cb-bf11-44d7-b508-1180a84f601a", "8a090988-519c-43a3-aa03-3bce3edce38d", "750f98c2-2e7d-4669-a3b0-e66ce87a84dd", "0d878de2-dd90-48d0-b5e9-c52a9404b428"], '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] + , ["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] ], 'subject' => "money", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 1715, - 'point_expires_at' => "2020-07-09T19:15:58.000000Z", + 'point_expires_in_days' => 8017, + 'point_expires_at' => "2024-12-28T11:15:16.000000Z", 'status' => "disabled", - 'description' => "J7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78", - 'event' => "payment", - 'priority' => 7134, - 'ends_at' => "2023-06-16T15:06:25.000000Z", - 'starts_at' => "2023-10-25T09:35:51.000000Z", - 'name' => "fbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3FohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb" + 'description' => "b3qItRRs3F", + 'event' => "topup", + 'priority' => 3894, + 'ends_at' => "2021-08-11T07:12:44.000000Z", + 'starts_at' => "2025-04-30T13:59:29.000000Z", + 'name' => "lrydgPmYNQmdCCSHSb7Peq" ] ); try { @@ -324,33 +330,35 @@ public function testUpdateCampaign13() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["de860543-fb33-4c70-8d60-49e5470a3168"], + 'applicable_shop_ids' => ["24f2600a-f196-41c7-894e-454ef835fd9d", "0ecc5198-c71c-4879-aec7-a0ab375b09fb", "c7c6212a-07ad-484d-b806-af8a3c10f09a"], '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] ], '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] ], - 'subject' => "money", + 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 515, - 'point_expires_at' => "2021-06-07T00:15:13.000000Z", + 'point_expires_in_days' => 3155, + 'point_expires_at' => "2022-06-03T04:33:51.000000Z", 'status' => "disabled", - 'description' => "uhZslxpk65zsLMOaWLvqiZty5Zp232IvD", - 'event' => "topup", - 'priority' => 6736, - 'ends_at' => "2023-04-15T10:06:26.000000Z", - 'starts_at' => "2022-08-05T09:25:07.000000Z", - 'name' => "em1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7Y" + 'description' => "poUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wD", + 'event' => "payment", + 'priority' => 6368, + 'ends_at' => "2023-01-11T13:07:39.000000Z", + 'starts_at' => "2025-02-15T11:38:55.000000Z", + 'name' => "01hvmpIXnG4" ] ); try { @@ -366,20 +374,15 @@ public function testUpdateCampaign14() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["068a2ae3-2f05-4d2e-b607-340f430ef543", "56406d0a-9de2-4a6d-b557-66d1eb5b77fe", "e744a9f6-84f9-42e0-aa6d-7186a99f6b12", "4ed167fb-5ca1-4464-8b04-ce5f29d79568", "c056bfd7-151d-480e-8006-6fa5ed210646"], + 'applicable_shop_ids' => ["7392922a-7999-4164-8a98-30f1960c5e95", "38cc0cb7-d667-4c4e-8174-2df14fa8ca3a", "f5d44972-d571-4a4b-ad9c-7b2e0ad092ba", "45a3e936-dba9-4275-8b51-864e0191d851", "b80fb348-85b3-4e18-9087-c715c2516a44", "efdd8e8d-cee3-4052-b7bb-837c5a361555", "c7a455c3-3f07-44e5-8f3d-3f6397912f98"], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] - , ["product_code" => "4912345678904", "classification_code" => "c123"] - , ["product_code" => "4912345678904", "classification_code" => "c123"] ], '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] ], '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] @@ -390,16 +393,16 @@ public function testUpdateCampaign14() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 5115, - 'point_expires_at' => "2021-01-20T05:55:15.000000Z", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 2984, + 'point_expires_at' => "2025-07-30T03:49:35.000000Z", 'status' => "disabled", - 'description' => "ih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P89tC2Mi1PRe6ex8zQ", - 'event' => "external-transaction", - 'priority' => 1027, - 'ends_at' => "2021-08-15T11:41:34.000000Z", - 'starts_at' => "2022-08-23T17:05:36.000000Z", - 'name' => "MXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4ol" + 'description' => "arYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMz", + 'event' => "topup", + 'priority' => 9169, + 'ends_at' => "2021-06-17T16:47:19.000000Z", + 'starts_at' => "2025-08-06T10:46:43.000000Z", + 'name' => "Yhb78oA" ] ); try { @@ -415,25 +418,18 @@ public function testUpdateCampaign15() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["f18714a7-c498-423f-8331-1924c47c8b07", "5f09eacb-b6c4-420f-84ae-0845c0b8eab1", "a3d90d98-44c7-445d-9632-0bbfed56bba9", "7acd78ed-19c7-4a05-9539-fea12a28fd26", "5fdaf59f-98d9-40e5-8499-bc0293d3f5c8", "24e323b5-4a7c-46d4-b9fc-f80d3b71fb40", "a14c1b3e-2bf3-4dea-ba3a-628e7e103ce0"], - 'applicable_days_of_week' => [5, 1, 6, 0, 2, 4], + 'applicable_shop_ids' => ["83e7edcc-a993-4d27-a193-e4c5dcec5439"], + 'applicable_days_of_week' => [0, 0, 5, 2, 4], '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_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", "product_code" => "4912345678904", "is_multiply_by_count" => TRUE, "required_count" => 2] ], '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] @@ -442,18 +438,21 @@ public function testUpdateCampaign15() , ["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] ], 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 242, - 'point_expires_at' => "2022-01-04T19:45:47.000000Z", - 'status' => "disabled", - 'description' => "njWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB", - 'event' => "topup", - 'priority' => 964, - 'ends_at' => "2022-12-30T19:01:30.000000Z", - 'starts_at' => "2023-07-15T22:18:58.000000Z", - 'name' => "EmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLe" + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 8788, + 'point_expires_at' => "2021-11-05T04:16:46.000000Z", + 'status' => "enabled", + 'description' => "ZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnC", + 'event' => "external-transaction", + 'priority' => 3297, + 'ends_at' => "2020-02-11T19:45:46.000000Z", + 'starts_at' => "2021-05-18T05:57:05.000000Z", + 'name' => "IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHN" ] ); try { @@ -469,44 +468,44 @@ public function testUpdateCampaign16() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["058fc314-0b44-4a31-b04e-e6300bba004d", "36c2dd17-d3d3-4ad5-9326-255347fbf075", "dc42287b-a285-4fab-b632-bc7702f3b620", "c2a4ea19-823e-4bc5-9b27-7b9d9273236c", "d1163f3d-bdb3-4fe9-909b-e4d0003382d5", "889e026b-177c-433d-80bb-be9d2bef0200", "3ab2a803-91c9-4876-b4e1-61b290cebe4e", "df8b12f3-78dd-4b3c-8241-e467fde260b7"], + 'applicable_shop_ids' => ["8a39d1fc-5af6-459e-b019-4ca07bd4c047", "3b4d53c8-e14d-4e29-81b8-eed9f893f1ce", "5433f32e-8c56-450a-a3f4-092a111d52a7", "206da07d-a3f1-4d88-a098-0bee8862c405", "3ba3c030-5dc8-4179-9d82-832c0904358c"], '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_days_of_week' => [4, 1, 4, 0, 5], + 'applicable_days_of_week' => [6, 0, 1, 6, 5, 1], '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"] ], '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] ], '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] ], 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 4343, - 'point_expires_at' => "2020-07-17T02:23:25.000000Z", - 'status' => "disabled", - 'description' => "6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDX", - 'event' => "payment", - 'priority' => 2456, - 'ends_at' => "2024-02-03T11:49:52.000000Z", - 'starts_at' => "2021-04-11T12:09:17.000000Z", - 'name' => "ssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOs" + 'point_expires_in_days' => 3901, + 'point_expires_at' => "2021-05-05T20:45:37.000000Z", + 'status' => "enabled", + 'description' => "TMRGGhLK4", + 'event' => "topup", + 'priority' => 2029, + 'ends_at' => "2024-08-25T17:59:00.000000Z", + 'starts_at' => "2022-06-27T11:21:07.000000Z", + 'name' => "8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nEMDfH9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO" ] ); try { @@ -522,39 +521,51 @@ public function testUpdateCampaign17() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["3bece644-8437-4cbf-8322-9b17078d8739", "52a72449-9fcd-4418-a437-c84068611899", "38af7090-9cf3-4675-80c2-0d5cefac685f", "7c9e8d35-be22-401c-bff7-0b1f4cbd118b", "bfb92d2f-dd40-43b4-8595-059700e08bb0"], - 'minimum_number_of_products' => 2316, + 'applicable_shop_ids' => ["d8f0fa37-e1ee-4b83-b2e9-102c56c44f91", "2ed878eb-988e-46b7-b3d1-be7921c66be9", "6a6279e1-89df-43db-8e9f-8e6004afa0ff", "e0bdf0cb-f7bd-4480-aa2f-b6ed17aa2f73", "585edcb0-6325-49a2-a917-d9c6f6116282", "8ac6a9d9-eb47-42f2-84d7-e2931712cedb", "8108e678-9d78-4617-accb-f297e4ffee22", "316fc177-bd3f-4d97-bfcf-e2ec05ef45c3", "371342e9-609e-4e5d-a28a-772873248c74", "d4b7b5f1-c632-4004-8e65-f6a2ba4d5d30"], + 'minimum_number_of_products' => 5037, '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"] ], - 'applicable_days_of_week' => [2, 6, 4, 0], + 'applicable_days_of_week' => [3, 0, 0, 6, 4], '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"] ], '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] ], '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] ], 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 5398, - 'point_expires_at' => "2023-05-31T01:26:50.000000Z", - 'status' => "disabled", - 'description' => "FElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3A", - 'event' => "external-transaction", - 'priority' => 762, - 'ends_at' => "2020-10-15T05:08:43.000000Z", - 'starts_at' => "2024-05-16T09:55:16.000000Z", - 'name' => "a9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLt" + 'point_expires_in_days' => 7702, + 'point_expires_at' => "2021-01-29T18:54:37.000000Z", + 'status' => "enabled", + 'description' => "mox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrgc709a7P9KtTHr3zG8NnPjRfIRrqy3F", + 'event' => "topup", + 'priority' => 6797, + 'ends_at' => "2025-09-11T09:21:14.000000Z", + 'starts_at' => "2023-11-19T05:24:02.000000Z", + 'name' => "RiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0IDf80jI5hMMqGagepFcb0C3pMeh" ] ); try { @@ -570,46 +581,44 @@ public function testUpdateCampaign18() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["5959c7cd-cdf8-480a-a701-1d8c33df727e", "c5a5b552-315c-4c54-b9c6-a7c593a7c3e4", "09dd5405-9c64-4391-82f4-512dfda3c4d6", "65ad3661-71ee-4788-893a-f21c669fe993", "505982a9-d791-4b03-b53e-f5c855c3ec07", "61a1b412-c25d-4af9-9700-489b9556a99f", "e5c98d02-f436-4d55-9f1a-d09c5c01df9b", "297f4461-35ee-4d39-8def-d7188b1f7259", "6fc4954d-d281-4d62-83bb-9818b8ec51e5"], - 'minimum_number_of_amount' => 6886, - 'minimum_number_of_products' => 963, + 'applicable_shop_ids' => ["755f4f1a-5ec2-48cc-b789-3910e4133eb9", "97604202-4323-4411-9f20-4b95b8da8075", "e28ada85-7a3e-45e8-a75a-aba283fa8789", "ebdc2973-046c-4d83-b823-50ba41cb8f25", "35b83370-df1f-4b93-ab19-bd7f6bb86db6", "d84bc3fe-b521-493e-b5fa-872034b7d4f3", "4e4b2c19-648c-4d8a-8c01-a11f9fdbe34d", "5166ca4f-6661-4dd7-880e-2d26afe296cc"], + 'minimum_number_of_amount' => 6007, + 'minimum_number_of_products' => 991, '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_days_of_week' => [4, 4, 1, 5, 0, 1, 2, 3, 4], + 'applicable_days_of_week' => [6, 2, 6, 2, 4, 5, 3, 1, 4, 6], '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_based_point_rules' => [["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_by_count" => TRUE, "required_count" => 2] ], '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] ], 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 3688, - 'point_expires_at' => "2021-12-21T08:58:49.000000Z", - 'status' => "disabled", - 'description' => "5W6XuTL0vl", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 5299, + 'point_expires_at' => "2023-09-11T03:17:07.000000Z", + 'status' => "enabled", + 'description' => "vDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2IC", 'event' => "payment", - 'priority' => 5092, - 'ends_at' => "2020-02-27T06:19:50.000000Z", - 'starts_at' => "2022-02-15T11:52:33.000000Z", - 'name' => "dIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslN" + 'priority' => 870, + 'ends_at' => "2021-05-21T07:42:04.000000Z", + 'starts_at' => "2020-07-09T23:15:24.000000Z", + 'name' => "qeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnX" ] ); try { @@ -625,15 +634,24 @@ public function testUpdateCampaign19() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["54cad13c-6a87-4085-b261-02103c44cdcf", "5c4817e5-b625-4c15-9824-11f3fdf0cf79", "b5a46f41-4769-4192-a19b-3e77c3c4607e", "f2a5c101-0657-4560-a979-40d70547e16b", "adfe5b21-97d3-4a83-96b3-9b26865a0262", "12ace3fd-b714-4c73-be34-57a1be22404f", "bf29c66b-6f57-439a-84e8-25c8f82aba7b"], - 'minimum_number_for_combination_purchase' => 7969, - 'minimum_number_of_amount' => 5037, - 'minimum_number_of_products' => 8244, + 'applicable_shop_ids' => ["75d07ae9-81f0-4c89-a110-6393c10b62a3", "271d365d-069c-44cb-8dbc-3909c7790911"], + 'minimum_number_for_combination_purchase' => 6148, + 'minimum_number_of_amount' => 4980, + 'minimum_number_of_products' => 1317, '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"] + , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [3, 1, 3, 0, 6, 6, 5], + 'applicable_days_of_week' => [5, 2, 6, 2, 1, 0, 3, 0, 5, 3], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -659,24 +677,18 @@ public function testUpdateCampaign19() , ["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] ], 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1430, - 'point_expires_at' => "2023-08-12T02:33:37.000000Z", - 'status' => "enabled", - 'description' => "ZtUSoiVrIFnb7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ3", + 'point_expires_in_days' => 8782, + 'point_expires_at' => "2022-12-12T17:22:30.000000Z", + 'status' => "disabled", + 'description' => "PZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P8", 'event' => "payment", - 'priority' => 8612, - 'ends_at' => "2020-06-26T07:19:03.000000Z", - 'starts_at' => "2021-02-02T16:41:12.000000Z", - 'name' => "eDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melepO9LnwI" + 'priority' => 9887, + 'ends_at' => "2025-07-16T04:08:45.000000Z", + 'starts_at' => "2020-12-17T16:16:41.000000Z", + 'name' => "1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rg" ] ); try { @@ -692,36 +704,28 @@ public function testUpdateCampaign20() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["43cb0e73-b68a-4d2b-9511-e22530ca42e3"], - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 3805, - 'minimum_number_of_amount' => 110, - 'minimum_number_of_products' => 7585, + 'applicable_shop_ids' => ["1cf9df50-231a-4920-bff5-3b3470a1ea83", "b4cb510f-91ef-4a24-ac5f-1d76f18714a7", "911dc498-723f-4643-b124-8b075f09eacb", "f9efb6c4-620f-4e44-ae45-eab1a3d90d98", "171644c7-d45d-4b16-b2bf-bba97acd78ed", "c5f319c7-ba05-4e55-b9a1-fd265fdaf59f", "d6c398d9-90e5-4544-9902-f5c824e323b5"], + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 5626, + 'minimum_number_of_amount' => 7677, + 'minimum_number_of_products' => 6975, '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_days_of_week' => [2, 4, 5, 3, 5, 1, 3], + 'applicable_days_of_week' => [5], '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"] ], '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] ], '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] @@ -730,19 +734,18 @@ public function testUpdateCampaign20() , ["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] ], 'subject' => "money", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 2700, - 'point_expires_at' => "2021-12-16T09:59:04.000000Z", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 7427, + 'point_expires_at' => "2020-06-16T07:48:24.000000Z", 'status' => "enabled", - 'description' => "lPt52zP7YS2DWusWLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3ajMg8VGC0KZL", - 'event' => "topup", - 'priority' => 7863, - 'ends_at' => "2023-07-09T05:20:58.000000Z", - 'starts_at' => "2024-09-25T10:16:56.000000Z", - 'name' => "MEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2" + 'description' => "eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl", + 'event' => "payment", + 'priority' => 8169, + 'ends_at' => "2022-05-03T17:23:28.000000Z", + 'starts_at' => "2021-03-10T18:10:35.000000Z", + 'name' => "UkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZ" ] ); try { @@ -758,14 +761,14 @@ public function testUpdateCampaign21() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["f9a41db1-b3ba-4fb1-9cdf-b18035bc01c8", "d1134c1b-6a00-4792-af17-1a44a9e3192e", "78c7af69-c6ce-4a91-83b2-975f1be5b054", "7fa396b6-4725-41da-b1fb-f303582c5208"], - 'max_point_amount' => 9375, + 'applicable_shop_ids' => ["3a87ef54-05c0-44c0-b302-fe755087704b", "17c05515-e08b-415a-8773-602c3fd5dd46", "537fe6bf-513d-4cc5-acbe-74eda66cb851", "ed56fc06-e7f0-4f2f-8134-bcc08bf99252", "640c832c-e553-4f90-9354-c3e14c20a8d4", "8102293c-de20-4dec-8cde-a826d59c3f2f", "50dd61e1-75f1-49ec-abd5-4f3ed3b2adb4"], + 'max_point_amount' => 9018, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 7103, - 'minimum_number_of_amount' => 2136, - 'minimum_number_of_products' => 7530, + 'minimum_number_for_combination_purchase' => 9817, + 'minimum_number_of_amount' => 4874, + 'minimum_number_of_products' => 4078, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -774,45 +777,35 @@ public function testUpdateCampaign21() , ["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_days_of_week' => [6, 2, 4, 5, 1, 0, 1, 6, 0], + 'applicable_days_of_week' => [5, 3, 6, 4], '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_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] ], '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] - , ["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] ], 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 5064, - 'point_expires_at' => "2020-02-15T00:58:28.000000Z", + 'point_expires_in_days' => 7978, + 'point_expires_at' => "2021-11-14T05:12:08.000000Z", 'status' => "disabled", - 'description' => "qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZ", - 'event' => "payment", - 'priority' => 5127, - 'ends_at' => "2021-01-20T08:34:51.000000Z", - 'starts_at' => "2021-12-03T08:14:58.000000Z", - 'name' => "tZIBDPoHNl5n64I544K0pgRwqKcwLRpyfhvSp3huvf9ISSZ1V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PB" + 'description' => "LCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa", + 'event' => "topup", + 'priority' => 2431, + 'ends_at' => "2021-04-06T18:22:39.000000Z", + 'starts_at' => "2023-08-29T19:33:07.000000Z", + 'name' => "NDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4" ] ); try { @@ -828,15 +821,15 @@ public function testUpdateCampaign22() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["b7e43e67-35ed-49aa-9b27-6e3164ecee9d"], - 'max_total_point_amount' => 4545, - 'max_point_amount' => 1121, + 'applicable_shop_ids' => ["be22404f-c66b-4f57-9a04-fce87dcf25c8", "f82aba7b-72c6-4f20-b8ac-a0338250e150"], + 'max_total_point_amount' => 7351, + 'max_point_amount' => 5636, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 9064, - 'minimum_number_of_amount' => 4250, - 'minimum_number_of_products' => 8470, + 'minimum_number_for_combination_purchase' => 8999, + 'minimum_number_of_amount' => 7918, + 'minimum_number_of_products' => 1145, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -844,42 +837,45 @@ public function testUpdateCampaign22() , ["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_days_of_week' => [3, 4, 1], + 'applicable_days_of_week' => [1, 5, 1, 4, 3, 5, 2, 4], '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"] ], '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] ], '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] + , ["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] ], 'subject' => "money", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 9562, - 'point_expires_at' => "2020-03-11T09:02:05.000000Z", - 'status' => "enabled", - 'description' => "MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYN", + 'point_expires_in_days' => 7879, + 'point_expires_at' => "2023-03-28T08:28:08.000000Z", + 'status' => "disabled", + 'description' => "b7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jN", 'event' => "payment", - 'priority' => 3371, - 'ends_at' => "2020-07-10T06:15:12.000000Z", - 'starts_at' => "2023-07-20T13:45:59.000000Z", - 'name' => "HW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnl" + 'priority' => 89, + 'ends_at' => "2025-04-30T06:25:22.000000Z", + 'starts_at' => "2021-08-20T19:26:44.000000Z", + 'name' => "CMs9TezTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1m" ] ); try { @@ -895,39 +891,35 @@ public function testUpdateCampaign23() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["17cc4e38-ffc8-4340-8fcf-1643e4f69e44", "4e51586c-490a-42d0-b447-5ddaef0079b7", "10886b6a-b3e2-41a5-ad0c-bad82e268c4d", "7b3ef9cf-9299-4735-88fa-01bba4ee4696", "d170293e-c187-4a56-8d77-6ae63c418e08"], + 'applicable_shop_ids' => ["55cc9d65-bf40-486c-a53d-521627bd39f0", "dd470fcf-13b9-4dcc-9f28-0c85941f3eee", "4b434677-c9c9-4de0-b38a-ad2b186c2e55", "5d41de11-e225-42e3-93dc-ed1b7d4f006d", "e3979da0-6fa5-4b76-a234-b9c79054654f", "17afc60d-75db-4bd5-b1c3-fe7ad51446b9", "22a49c63-e347-4444-a28b-24971a89a5c9"], 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 937, - 'max_point_amount' => 9885, + 'max_total_point_amount' => 2493, + 'max_point_amount' => 4350, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 1826, - 'minimum_number_of_amount' => 2748, - 'minimum_number_of_products' => 3834, + 'minimum_number_for_combination_purchase' => 5841, + 'minimum_number_of_amount' => 8713, + 'minimum_number_of_products' => 9532, '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_days_of_week' => [2, 5, 2, 3], + 'applicable_days_of_week' => [2, 0, 1], '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_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] ], '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] @@ -936,16 +928,16 @@ public function testUpdateCampaign23() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], 'subject' => "money", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 79, - 'point_expires_at' => "2021-08-11T02:02:31.000000Z", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 4824, + 'point_expires_at' => "2022-07-02T15:24:10.000000Z", 'status' => "disabled", - 'description' => "OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeH", + 'description' => "WLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3a", 'event' => "payment", - 'priority' => 4164, - 'ends_at' => "2022-02-25T08:58:04.000000Z", - 'starts_at' => "2023-05-10T03:13:19.000000Z", - 'name' => "vF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8gmjkrVbM4yoFbYRleOf9KOkq0RFzj" + 'priority' => 3464, + 'ends_at' => "2023-06-15T15:39:22.000000Z", + 'starts_at' => "2020-06-03T07:16:58.000000Z", + 'name' => "g8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkM" ] ); try { @@ -961,35 +953,27 @@ public function testUpdateCampaign24() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["122c4748-c8f7-4cd2-81f2-9f763604ebcf", "91bd62d5-bbb8-426b-bcef-236d849dbc9f", "63fb3d4a-f4b1-483e-ab41-91fb7b6e8cf4", "0d7e90ba-5527-4beb-98ac-d31671b1b3b5", "ac54e2df-ad5d-4f52-966c-58f51abd5269", "675369b7-536d-450a-aec7-843efb7bc652", "2e32573c-954d-485b-b28d-b2444240785b"], + 'applicable_shop_ids' => ["ef8d6958-4390-49c6-8d4a-d2e2eab7cba8", "46aa8347-8fd0-4771-9cad-257e319b7125", "31fa377b-8709-4211-8062-4f9916f3f8a3", "63c57e04-3fe7-4371-b2dd-b82b5d11d6bd", "57debfb9-522d-4c10-871c-c63cd4ee207a", "edbde70d-097a-42b5-bab9-575c0d0afe95", "5e3e920a-5e76-44d6-8ff6-82e9b2e8783f", "ee24a86e-2935-4abe-86c0-13dc0895e90f", "6cfce6d6-0085-46da-a941-d40719d0d03c"], 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 5366, - 'max_point_amount' => 8256, - 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 5864, - 'minimum_number_of_amount' => 2329, - 'minimum_number_of_products' => 9038, + 'max_total_point_amount' => 2604, + 'max_point_amount' => 9589, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 3675, + 'minimum_number_of_amount' => 4042, + 'minimum_number_of_products' => 7761, '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_days_of_week' => [1, 6, 2, 4, 3, 2, 2, 1, 4, 5], + 'applicable_days_of_week' => [6, 4, 5, 1, 6, 6, 6, 0, 4], '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_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] @@ -999,6 +983,8 @@ public function testUpdateCampaign24() , ["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] ], '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] @@ -1007,20 +993,18 @@ public function testUpdateCampaign24() , ["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] ], - 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 9542, - 'point_expires_at' => "2022-11-24T18:35:18.000000Z", + 'subject' => "money", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 1205, + 'point_expires_at' => "2021-04-09T14:41:56.000000Z", 'status' => "enabled", - 'description' => "vbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdugDsmRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYM", + 'description' => "0pgRwqKcwLRpyfhvSp3huvf9IS", 'event' => "payment", - 'priority' => 828, - 'ends_at' => "2020-06-25T19:39:03.000000Z", - 'starts_at' => "2020-04-19T16:56:46.000000Z", - 'name' => "i6AMJzfUo3Mw8S" + 'priority' => 7891, + 'ends_at' => "2023-02-10T05:38:34.000000Z", + 'starts_at' => "2020-07-10T02:06:41.000000Z", + 'name' => "V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3" ] ); try { @@ -1036,53 +1020,50 @@ public function testUpdateCampaign25() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'applicable_shop_ids' => ["45030f8c-1b44-4a34-94b8-462edb93dad5", "75008e46-5474-4c58-9e4f-a142d14962bd", "dea6770f-eeae-47dc-9c4b-9960d7fa5941", "2e84918e-f2d0-4269-b622-48e45e0bbab5", "79070769-861f-404a-8e72-ff14d7bc38e4", "8591fc0e-8471-4cdd-81f5-0d544a48dbf8"], - 'budget_caps_amount' => 245926407, + 'applicable_shop_ids' => ["6b52f383-f598-4deb-be23-f57f32fb650e", "5464e926-09cd-4a5f-a754-c4fa3c3f0541", "999f4778-12ed-42b3-ae18-139f85ff73a5", "1a14c9f5-b79b-4343-b46d-16b4b80486f4", "4e7fdcc0-3acd-4e1a-b4a5-5af2e94102d1", "c4555337-373d-4298-94cd-375d6eb428d7"], + 'budget_caps_amount' => 896353089, 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 3706, - 'max_point_amount' => 9667, - 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 544, - 'minimum_number_of_amount' => 5503, - 'minimum_number_of_products' => 6023, + 'max_total_point_amount' => 3105, + 'max_point_amount' => 4631, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 7645, + 'minimum_number_of_amount' => 9636, + 'minimum_number_of_products' => 7976, '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_days_of_week' => [2, 4, 6, 6, 1, 3, 2, 3], + 'applicable_days_of_week' => [1, 6, 1, 1, 6, 5, 1, 0, 3], '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_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] ], 'amount_based_point_rules' => [["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], - 'subject' => "money", + 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 5766, - 'point_expires_at' => "2022-10-22T12:06:59.000000Z", - 'status' => "disabled", - 'description' => "892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjM", - 'event' => "topup", - 'priority' => 3653, - 'ends_at' => "2020-07-13T05:42:02.000000Z", - 'starts_at' => "2020-09-04T12:44:34.000000Z", - 'name' => "ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsX" + 'point_expires_in_days' => 5093, + 'point_expires_at' => "2021-04-20T22:14:33.000000Z", + 'status' => "enabled", + 'description' => "koAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYcPpoEqcZqYNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz", + 'event' => "payment", + 'priority' => 804, + 'ends_at' => "2024-07-16T14:28:33.000000Z", + 'starts_at' => "2025-05-20T19:43:19.000000Z", + 'name' => "zSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7jbmXMO5zVMwfk3fyCehTHNb57OPg" ] ); try { @@ -1098,9 +1079,9 @@ public function testUpdateCampaign26() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["3ede3c1c-9315-4741-8467-7d65bb19e21d", "79856956-db98-41ed-8721-8f7a23ef0440", "58e060b0-4458-46e4-a542-e9107ae14927", "ff0456f1-7f0d-4d76-ba32-194cc725f55a", "d1be2171-0953-4e20-a294-5fb172efb4c3", "104c8798-4c72-43b9-8705-3992902d6781"] + 'blacklisted_shop_ids' => ["93336af9-6227-4d95-8bfd-ea9ab781991e"] ] ); try { @@ -1116,10 +1097,10 @@ public function testUpdateCampaign27() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["1c58d4a8-5cca-41aa-84eb-4fb1ba3b4d75", "5baa7918-3036-4592-8ad6-686eac8ff5e2", "26f7fe17-73a8-4d30-8a26-83343efd281c", "eb60226c-e8be-4a51-b993-5822822fbf9e", "085ed9b4-4feb-4d74-bee5-ff404e4bd86e", "d94a75eb-cefb-4539-b374-ba74353a4381", "aa0a95d9-fc8b-4e50-8905-78962fb3a04a"], - 'name' => "hOiPCYhnxitPJhteZ9v4" + 'blacklisted_shop_ids' => ["48a16919-ffa4-48f3-94f2-5dd17721e060", "b4d111c3-f41e-45a3-ac7b-92179006e649"], + 'name' => "NbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8" ] ); try { @@ -1135,11 +1116,11 @@ public function testUpdateCampaign28() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["d2a99794-0b2c-4e97-acd9-4f8720151b49", "6e5991c6-b52a-4f72-bfd9-e660138d7670", "6a506985-c312-4422-ae07-86bb49a72c56", "2ada8d0a-dda3-4a1c-ab8c-a397f6a3b0db", "d7268c04-7bb3-4eb5-a699-fcbe6559b7f0", "81103d18-0b08-422f-839b-abc2b1bc0bfb", "0c89facd-b2a0-4fba-92c7-cfcb8e28a19c", "973defca-f83e-4002-9e21-b0c5492be9a7", "4df99408-0789-4b8f-8a6b-d470c4485c6e"], - 'starts_at' => "2023-01-05T23:00:44.000000Z", - 'name' => "Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3b" + 'blacklisted_shop_ids' => ["74b2f4ed-caea-47eb-a995-0011ac3056f2", "65aa82d6-9ae2-4f4d-b49b-4b177385a779", "5e33bf5f-6def-4aba-9bc6-d35b76aa877f", "35759b2a-cb62-45d9-803f-90281d72e4d2", "34fb5509-5dec-449b-8dbf-0c60ca02b9e5", "70d664cf-6266-4c2e-b928-c986ddc7ac11", "d4deee9a-894b-444f-83eb-1318443a0271", "17450130-6052-49a0-bc46-fd7a4cc13a6a"], + 'starts_at' => "2024-01-25T13:46:50.000000Z", + 'name' => "HwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P3IlH0kXmsTMdugDsmRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZc" ] ); try { @@ -1155,12 +1136,12 @@ public function testUpdateCampaign29() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["c7036479-6daa-42da-a663-17c6bc9765a5", "8453a945-f060-4450-ae49-67c428d0b1d6", "68d0b379-bc27-4ddb-bfc5-d22c43c12985", "689154aa-89ea-4cf3-b178-638157cad2c9", "f5ed8656-af0c-407b-811d-cd28d29a045d"], - 'ends_at' => "2022-07-03T09:43:35.000000Z", - 'starts_at' => "2024-06-04T18:59:31.000000Z", - 'name' => "JaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWP" + 'blacklisted_shop_ids' => ["967dc4b7-fc8f-4498-b35d-a9dc095c249a", "67f7a419-1cdc-4f00-b437-622cd1824612", "aeb94116-6a76-4f81-9bf5-66c5d1ad73ed", "f9a0ed3c-8de9-4c88-92a6-0e727521079d", "e7c6d46c-4588-4ce5-92fe-bd02b4272793", "9af03ff7-3859-4b4d-bfc9-7db5f04c033c", "60e91c57-4990-41ce-8da4-2c26615b43e9"], + 'ends_at' => "2023-02-16T19:34:05.000000Z", + 'starts_at' => "2020-09-30T13:50:46.000000Z", + 'name' => "AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEsMYGbxzOIV2r2JtDEGxgzX" ] ); try { @@ -1176,13 +1157,13 @@ public function testUpdateCampaign30() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["9c28004e-b5bc-483c-bc73-0274f2da56b4", "5776c73a-4b95-4028-b478-06c2df7dc84d", "ef5823b1-fcf4-4da4-9fcd-690db892b07b", "3be8f94d-3111-4def-8ff9-f1d729beebbe"], - 'priority' => 4207, - 'ends_at' => "2023-03-30T16:00:42.000000Z", - 'starts_at' => "2023-12-05T20:58:25.000000Z", - 'name' => "WcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf" + 'blacklisted_shop_ids' => ["b4b19528-e02d-4007-9b7b-a0b92503ec81", "8c504826-9910-4b30-b81e-e7d18c93cb31", "8c8afedc-f128-43a2-b145-77f7b257aebb", "c205fe1c-d36e-444f-aa2d-84ff532edf24"], + 'priority' => 2705, + 'ends_at' => "2023-12-02T04:44:50.000000Z", + 'starts_at' => "2025-03-19T03:24:58.000000Z", + 'name' => "jMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeV" ] ); try { @@ -1198,14 +1179,14 @@ public function testUpdateCampaign31() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["b98c65d8-89a5-447a-96dc-fb8d880ca13d", "86776b45-abbe-4a1d-bcf0-14b36deb50e3", "298e7ade-9c5e-447b-bd86-95119919c0db", "a3f160cd-bdcf-40fd-a52f-ccefaf04c851", "f4940f49-cc74-4ee2-9f0f-a7942f1fbe16", "ac2922bf-f6ca-491a-8c41-78f05fe0b84e", "87c4cc91-d29b-48c6-9b4e-40e29352ac69", "b800007a-865a-44f1-9353-54c54e2894db"], + 'blacklisted_shop_ids' => ["4694a1ed-dd87-4521-ba40-60b0c20d4458", "07dbf6e4-b3a5-4642-9027-56f106287f0d", "79632d76-7efa-4a32-8c5a-2171642e0953", "32280e20-8a62-4294-b1c3-87983a974c72", "1f6663b9-1b47-4e05-9281-29761c58d4a8", "be2d5cca-d1aa-4084-abb1-4d755baa7918", "94903036-0592-454a-966e-f5e226f7fe17", "536473a8-7d30-488a-a634-281ceb60226c", "c1b1e8be-ea51-40f9-9322-bf9e085ed9b4"], 'event' => "topup", - 'priority' => 5903, - 'ends_at' => "2020-07-01T00:25:56.000000Z", - 'starts_at' => "2022-12-11T03:14:20.000000Z", - 'name' => "vNBs" + 'priority' => 3006, + 'ends_at' => "2023-05-22T21:36:00.000000Z", + 'starts_at' => "2024-12-09T02:33:15.000000Z", + 'name' => "93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPS" ] ); try { @@ -1221,15 +1202,15 @@ public function testUpdateCampaign32() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["89eb7160-6769-461f-8c54-6feda43f2dab", "c9ba9a7e-1aae-4ba7-9552-e1f39c3d4547"], - 'description' => "pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uE", - 'event' => "external-transaction", - 'priority' => 6180, - 'ends_at' => "2021-10-16T23:08:09.000000Z", - 'starts_at' => "2021-09-13T15:33:41.000000Z", - 'name' => "D0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8" + 'blacklisted_shop_ids' => ["27770274-56b4-473a-9528-67b44599ef78", "ae3406c2-c84d-43b1-b4a4-491f8ec865cd", "e3bc690d-b07b-494d-91ef-a64ff61e36f9", "5aeff1d7-ebbe-406f-aa41-9d97e763adf1"], + 'description' => "WcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf", + 'event' => "topup", + 'priority' => 2469, + 'ends_at' => "2024-05-29T01:49:10.000000Z", + 'starts_at' => "2024-04-12T00:37:17.000000Z", + 'name' => "p3cMOeoQItbJApNFNbizZqSEKvNBsiLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZi" ] ); try { @@ -1245,16 +1226,16 @@ public function testUpdateCampaign33() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["57bf26c5-5d2e-4c7c-85af-116246d1d815", "ae584464-b094-4085-bde6-7cf5f2289ba9", "93c4452f-b5cb-4364-a0e2-8cf9ef4c18db"], + 'blacklisted_shop_ids' => ["80333b8a-8f4c-4253-9e2e-df360231dc6c", "96c86062-c2ea-41b9-ac4a-4018bec9aba6", "fc5545d8-f0ef-4956-bb1e-f0a4f5678e2b", "b8381357-39c5-449a-8f6a-cb94f82fc89b"], 'status' => "enabled", - 'description' => "cjYNDVx4A2ovqPMZA8irXJ", - 'event' => "payment", - 'priority' => 8227, - 'ends_at' => "2022-07-24T18:56:05.000000Z", - 'starts_at' => "2022-09-18T19:01:51.000000Z", - 'name' => "ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3" + 'description' => "NWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskr", + 'event' => "external-transaction", + 'priority' => 3296, + 'ends_at' => "2021-07-15T00:23:15.000000Z", + 'starts_at' => "2020-11-30T09:23:15.000000Z", + 'name' => "NQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8" ] ); try { @@ -1270,17 +1251,17 @@ public function testUpdateCampaign34() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["2e003398-7932-4131-90fa-2b25b0cc73e0"], - 'point_expires_at' => "2021-12-15T22:45:51.000000Z", + 'blacklisted_shop_ids' => ["d89c3069-9072-4817-afba-145850d2be4a", "fdeb1139-a795-4023-858d-8a1fb7376d36", "925638da-8c3b-4663-9e4d-0ffab709019d", "51e179eb-a24c-4879-a9c1-b8713474ee8e", "5edf9ae7-8600-45f7-933e-ee6057336fef", "42d84f64-80e4-44e9-bf0e-4c3e1fe465f5", "fa7fd990-7606-43ea-97d4-07e74dc8076e", "ddce62df-b084-4b28-bcb1-45312374306d", "d9c53a01-33f0-4c78-bde1-4ebc400a7102", "226af07d-2756-4949-8c59-16e7f0ebd451"], + 'point_expires_at' => "2020-02-29T06:11:33.000000Z", 'status' => "enabled", - 'description' => "x2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFP", + 'description' => "o5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhE", 'event' => "topup", - 'priority' => 7869, - 'ends_at' => "2021-12-16T23:14:31.000000Z", - 'starts_at' => "2020-10-21T18:39:31.000000Z", - 'name' => "wwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7tnXzfq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2h" + 'priority' => 5346, + 'ends_at' => "2025-08-19T15:10:56.000000Z", + 'starts_at' => "2024-04-20T04:02:26.000000Z", + 'name' => "q7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7tnXzfq7vVXcZZXk" ] ); try { @@ -1296,18 +1277,18 @@ public function testUpdateCampaign35() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["438371f2-5aa8-4fbf-96f0-b0b4ed0b3e2b", "0df59d19-e314-4198-811f-201796ba772a", "cbdd9da8-7d75-462b-8456-e8c693911ace", "44e7871b-d935-4be6-937d-2ec1d0108b2f", "e5f3e096-1176-44c2-96a9-767e54c5164a", "7473731e-735d-4846-b36a-43e5d24346fa", "0662292d-d389-4f04-9c42-f6feb83a798e", "7a524b33-4ad9-4525-90b3-a9f7c6382130"], - 'point_expires_in_days' => 547, - 'point_expires_at' => "2020-12-19T07:03:14.000000Z", + 'blacklisted_shop_ids' => ["89a3206a-8759-4b02-a4d4-3ec5cc09ddcf", "41bca8fe-76b6-497d-817e-e19c3fd00a35"], + 'point_expires_in_days' => 2585, + 'point_expires_at' => "2024-06-20T15:45:19.000000Z", 'status' => "disabled", - 'description' => "MN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9Ekah2FpsKs0KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9", - 'event' => "topup", - 'priority' => 8810, - 'ends_at' => "2022-11-23T23:07:23.000000Z", - 'starts_at' => "2020-11-12T13:23:29.000000Z", - 'name' => "cyxviUOicaOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQMChiww3RYCIbC9pf8Wzgm4choi" + 'description' => "NQtFJaR", + 'event' => "payment", + 'priority' => 5841, + 'ends_at' => "2023-06-06T10:12:20.000000Z", + 'starts_at' => "2025-03-01T19:39:22.000000Z", + 'name' => "5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw" ] ); try { @@ -1323,19 +1304,19 @@ public function testUpdateCampaign36() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["fa703297-b772-4539-80b6-09c096bdc88e", "4e7e6b06-e3bd-4784-9aa0-b8eb00a557b4", "16cd605c-153e-4c12-bd28-1077b0789f99", "69f4010f-4fc2-4640-a2c8-cc3c47fca5ba", "43509d2e-1c8a-49de-8d2f-b8abe5e66be2", "70f6a452-8745-4739-b42b-5d57fcb82a55", "e168f768-424e-4fd0-9661-2e271c754cf4", "42882611-cc48-411f-837f-2f2dcf006497"], + 'blacklisted_shop_ids' => ["60ef787e-53e3-4b9d-8e51-9f6ce42bf36d", "7147fb59-7020-40a9-b9b8-1d05de458676", "464d02b9-72a5-49c5-bd5c-49ddf3a03021", "05e237eb-aa0f-4961-99e8-329c12496ea5", "5f45f707-ae32-4a46-852f-f1f06c275573", "9b72adaa-754b-4007-8525-32f334526b89"], 'is_exclusive' => TRUE, - 'point_expires_in_days' => 1595, - 'point_expires_at' => "2022-09-12T16:22:21.000000Z", + 'point_expires_in_days' => 684, + 'point_expires_at' => "2024-12-15T12:24:42.000000Z", 'status' => "enabled", - 'description' => "gstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZ", - 'event' => "topup", - 'priority' => 2749, - 'ends_at' => "2022-02-19T20:19:38.000000Z", - 'starts_at' => "2024-04-20T08:17:34.000000Z", - 'name' => "NIprWMfHv0Adc0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhPf4I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2H30SlKK1O" + 'description' => "KWXhqcS1Ua3AEPfEflYFcCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSsGmFYxkuLrQM", + 'event' => "external-transaction", + 'priority' => 4419, + 'ends_at' => "2023-06-30T18:08:07.000000Z", + 'starts_at' => "2025-03-13T04:42:21.000000Z", + 'name' => "ww3RYCIbC9pf8Wzgm4choir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfGSkB9sMClBaFjZtZBNIprWMfHv0Adc0Cr3QSzeJKZKHWOYDy8Xa1naLbp7yoCkUCkILHDjG2icoeSoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNh" ] ); try { @@ -1351,20 +1332,20 @@ public function testUpdateCampaign37() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["80b1ba14-f42a-421b-b12b-20d56d63ff4b"], + 'blacklisted_shop_ids' => ["897967a5-4126-47d0-a6ae-2a3404dc24af", "5fa715a0-7583-4600-8560-0ec98bdf2c2c", "3cbab537-d66d-41d6-85ad-99bc97648da9", "20eb53c5-87f1-4d3f-9ae4-4b1a8b50ad99", "0df28983-cab8-4453-b90b-97a1516068f4", "f51ede11-3fae-4a72-be1e-40733af4c554", "f67ea6d9-4327-41db-b127-5ed212959559", "711b9113-17fd-4ddf-8fb9-dbf115e193b3"], 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 2794, - 'point_expires_at' => "2022-12-27T13:33:21.000000Z", - 'status' => "enabled", - 'description' => "ryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4NU5bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnIS00nrMnQNFRY", - 'event' => "external-transaction", - 'priority' => 2521, - 'ends_at' => "2021-02-05T18:26:10.000000Z", - 'starts_at' => "2023-03-26T12:14:42.000000Z", - 'name' => "OvvxaJWdM6RyNE08AoCyr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0zv" + 'point_expires_in_days' => 1412, + 'point_expires_at' => "2022-01-14T06:39:49.000000Z", + 'status' => "disabled", + 'description' => "lF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVupSap8p4f5efgdz6gyp1GcS4", + 'event' => "payment", + 'priority' => 3985, + 'ends_at' => "2022-10-09T06:08:14.000000Z", + 'starts_at' => "2021-07-05T05:12:53.000000Z", + 'name' => "bS5TrzXQYDyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnIS00nrMnQNFRYYqQB2LOvvxaJWdM6RyNE08AoCyr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C1o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pCgUNdYXQ" ] ); try { @@ -1380,31 +1361,22 @@ public function testUpdateCampaign38() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["123689cb-25c8-4a77-ac12-028b81de954e"], + 'blacklisted_shop_ids' => ["0497fb68-314f-418b-8e94-0068a429f0f7", "dfef3d57-62c7-4b48-84e1-63949c29299a", "ae7280d1-b9a6-4352-b374-35ffeb9f5685", "05b86921-0b3c-4bbd-8d05-04fa86c63df9"], '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] - , ["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] ], 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1660, - 'point_expires_at' => "2023-10-26T13:31:55.000000Z", - 'status' => "disabled", - 'description' => "TDjrt62aO0gTJKvsFX8pCgUNdYXQChONhwWGHDaQRstzyfCMC6r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1C", + 'point_expires_in_days' => 4420, + 'point_expires_at' => "2020-06-14T14:16:59.000000Z", + 'status' => "enabled", + 'description' => "r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0", 'event' => "payment", - 'priority' => 7037, - 'ends_at' => "2021-02-23T09:01:35.000000Z", - 'starts_at' => "2023-02-25T01:55:31.000000Z", - 'name' => "x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0WRQEq" + 'priority' => 466, + 'ends_at' => "2020-10-01T09:50:09.000000Z", + 'starts_at' => "2022-05-19T00:42:06.000000Z", + 'name' => "q2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328x" ] ); try { @@ -1420,27 +1392,26 @@ public function testUpdateCampaign39() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["65bac18f-ed23-4441-9d55-29ec72878374", "050dea3d-246b-426b-8635-b82bb6edbed2", "9fc4113f-6586-4256-9816-4db81cef3fe1"], + 'blacklisted_shop_ids' => ["277e0a75-8e99-440c-8d9c-acc25cd6666d", "c0c55107-860f-4ea9-9a84-bd5f76418f31", "b989019a-a848-453d-b378-41550d4672e4", "292b76fe-840b-4dac-883f-e7fee139233d", "bebae39b-a5f3-4d09-8553-ffd955128d1a", "993e1e2e-ba2b-4050-97f9-a1ddd8838856", "a0134279-0487-4445-96f2-73ce4028b38e"], 'product_based_point_rules' => [["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_by_count" => TRUE, "required_count" => 2] ], '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] ], - 'subject' => "money", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 9086, - 'point_expires_at' => "2021-05-04T20:42:33.000000Z", - 'status' => "enabled", - 'description' => "QnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO9OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wIXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSXDoC", - 'event' => "topup", - 'priority' => 4798, - 'ends_at' => "2023-11-20T10:53:29.000000Z", - 'starts_at' => "2022-02-04T10:29:16.000000Z", - 'name' => "UsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q" + 'subject' => "all", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 9612, + 'point_expires_at' => "2023-01-05T19:17:48.000000Z", + 'status' => "disabled", + 'description' => "9OH6RQgeafcESSUHZ6h2XaPg728Rk", + 'event' => "external-transaction", + 'priority' => 6102, + 'ends_at' => "2024-02-25T16:41:51.000000Z", + 'starts_at' => "2025-02-13T14:38:13.000000Z", + 'name' => "cGA0kjIj9fnBbIK8dSJpAN6wIXIQbTWkewXW1RgDvxeuhtqc0lVuVevBpKZFsUJPsCckORoCtdXbeAqJmttYcSXDoCgwypQnQUs" ] ); try { @@ -1456,21 +1427,17 @@ public function testUpdateCampaign40() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["d18b3fff-cef0-45ed-a8d7-e9482ddaf381", "5f50e6ce-467b-49ca-9ef6-86e19e9a2465"], + 'blacklisted_shop_ids' => ["e7a79094-84cf-48bc-8b81-b1cd6bb1f160", "93aa0fda-bb33-43ae-b2ca-15385e74d707", "b66e8be1-e052-41dc-9d8e-2e4759bf9df7", "11e8155e-a618-43fa-9636-4c56cf58de44", "7260221e-47f1-4032-a96b-4ecc84ef13d6", "7998c9b7-132e-4615-9552-bd807c0d8886", "3822fb39-ef5b-4285-97d9-498275a99673", "222105b1-f442-4bd4-a2cb-7b6a130ffc39"], '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_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] ], '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] @@ -1478,20 +1445,18 @@ public function testUpdateCampaign40() , ["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] ], - 'subject' => "all", + 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 8555, - 'point_expires_at' => "2020-06-01T13:58:53.000000Z", - 'status' => "enabled", - 'description' => "BkQNn9uWl", - 'event' => "external-transaction", - 'priority' => 953, - 'ends_at' => "2020-09-23T06:20:03.000000Z", - 'starts_at' => "2022-01-26T08:05:30.000000Z", - 'name' => "unPyftwg9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll" + 'point_expires_in_days' => 3239, + 'point_expires_at' => "2022-08-13T22:16:39.000000Z", + 'status' => "disabled", + 'description' => "46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDh", + 'event' => "payment", + 'priority' => 7585, + 'ends_at' => "2022-01-15T07:23:38.000000Z", + 'starts_at' => "2023-12-08T17:26:53.000000Z", + 'name' => "fFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imj" ] ); try { @@ -1507,10 +1472,10 @@ public function testUpdateCampaign41() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["03d236b0-87c7-41d0-9c34-bad1386ae9a9", "83ad1941-79eb-430a-91bd-3ee5c0057e4f"], - 'applicable_days_of_week' => [6, 0, 3, 2, 4, 2, 1, 5, 0], + 'blacklisted_shop_ids' => ["466777d9-45ee-45cd-8b46-70ed2a795f07", "4f39f0da-c4d6-491e-8bc0-efe23ad8b96e", "514bd151-46db-46af-bf11-efa053cf6f73", "485d9beb-c24a-411d-b453-14cad38840bc", "6fd2619e-4c82-4957-9b59-f464131436bf", "7d9a6bae-1e3a-4494-803d-e200e1b51686", "1a128dee-df28-4fa6-b8cd-056a3ff8ef2b"], + 'applicable_days_of_week' => [6, 4, 6, 0], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1520,39 +1485,25 @@ public function testUpdateCampaign41() , ["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_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", "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] ], '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] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], - 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 7830, - 'point_expires_at' => "2022-07-30T02:31:39.000000Z", - 'status' => "enabled", - 'description' => "aGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQR", - 'event' => "topup", - 'priority' => 2593, - 'ends_at' => "2023-06-03T21:32:49.000000Z", - 'starts_at' => "2023-11-11T17:15:03.000000Z", - 'name' => "A9E535lViSyzzCHjVEE" + 'subject' => "money", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 1291, + 'point_expires_at' => "2020-11-12T10:55:56.000000Z", + 'status' => "disabled", + 'description' => "w1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUI", + 'event' => "payment", + 'priority' => 7854, + 'ends_at' => "2022-02-08T18:19:46.000000Z", + 'starts_at' => "2024-02-18T11:38:38.000000Z", + 'name' => "bJ5GuqfgOe9nVnbOf1mceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3Lj" ] ); try { @@ -1568,20 +1519,13 @@ public function testUpdateCampaign42() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["7567fbb0-1587-4cba-bc2d-3a5314db8cf0", "a4d5748d-b6a7-4b59-bc5b-537b3ccced44", "509f1546-62a1-4ac6-8402-241823ffdc8d", "4de6bb16-1ed9-4d91-ad31-6ef1d5cde72d", "b5909af5-4c78-4d4e-ab95-842e6f399d53", "19e982c0-440b-419f-a3d3-88b1bb612c2e", "0b6db3f6-b5ed-4b1c-a11d-62439a17b828", "cab7e14c-ca4f-4455-acdd-452053bf7964"], + 'blacklisted_shop_ids' => ["23023c05-f7a0-468a-b4a0-ad5c08c36595", "7d6a3de7-321d-44d1-a011-d39d63b8d21c"], 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [4, 3, 1, 2, 4, 2, 5], + 'applicable_days_of_week' => [2, 4, 0, 2, 0, 0], '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_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] @@ -1589,10 +1533,6 @@ public function testUpdateCampaign42() , ["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] ], '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] @@ -1601,18 +1541,21 @@ public function testUpdateCampaign42() , ["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] ], 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 5582, - 'point_expires_at' => "2020-10-25T15:40:59.000000Z", - 'status' => "enabled", - 'description' => "ZVKbnQsk", + 'point_expires_in_days' => 4167, + 'point_expires_at' => "2020-09-29T03:34:33.000000Z", + 'status' => "disabled", + 'description' => "pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L", 'event' => "external-transaction", - 'priority' => 8477, - 'ends_at' => "2022-07-23T13:21:14.000000Z", - 'starts_at' => "2021-11-16T21:25:16.000000Z", - 'name' => "WYdnxMjsH9rlpcWw1Vg5A3jIY5TVDn7VAyGhf1a2i4Xb006Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1mceXbMKgmiS2lNCj0coTfFCchnpKAX" + 'priority' => 2681, + 'ends_at' => "2025-05-31T09:41:09.000000Z", + 'starts_at' => "2022-11-02T08:24:20.000000Z", + 'name' => "kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2PelpywqnkqJGFUWWcs7OK2a7LaTGiS" ] ); try { @@ -1628,39 +1571,46 @@ public function testUpdateCampaign43() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["2e441abc-62d8-40c4-bd7b-eb78a7a5a6d1", "11fd1476-dfb4-4a62-8fca-df39d5b1e79e", "7a454a1d-8f46-46c3-b39a-6d37eb8d820e", "c1b4b072-a040-4d2a-a097-3f39bf4b0cd3", "8f9aca82-0049-4169-9018-16ccf3feb8a9", "f7d988da-7cf8-4e68-999c-2f631c29fc9c", "c61f9693-4909-4d2e-b003-d1c719ae164f", "6b8c2e35-67c0-4446-8795-6741d12dcfd6"], - 'minimum_number_of_products' => 2839, + 'blacklisted_shop_ids' => ["46d9e6b2-24ee-4b5f-9643-71e1465ad2a7", "de1b59b3-44dd-46cf-ab5d-281119d2fdd7", "bf87e5df-0c94-4fe6-9b53-0937be9cd988", "67461741-d571-435c-b7cc-c1eca7fb13c8", "1c820cdd-a4d0-4316-a915-fe2360aafb3e", "3fc302cf-f7c2-4ec9-b9f1-6bed1431d081", "eab30e46-72ea-43cf-90c6-4fcd8652a0d9", "a3f6e75e-cad1-464c-911b-720b25f9c608", "3d59cc4b-0a85-45a2-aa5d-a45fd724b5a4", "6c5a5771-3588-4dc8-b960-98a5acfea14b"], + 'minimum_number_of_products' => 2696, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [3, 1, 4, 1, 3, 0], + 'applicable_days_of_week' => [1, 0, 2, 6, 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_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] ], '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] ], - 'subject' => "money", + 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 8462, - 'point_expires_at' => "2022-03-22T19:03:09.000000Z", - 'status' => "enabled", - 'description' => "4fnzfWLRafbjHHiTlinfVLWJIyGq0eGZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBi", - 'event' => "external-transaction", - 'priority' => 3541, - 'ends_at' => "2022-01-19T12:16:32.000000Z", - 'starts_at' => "2022-07-24T05:23:06.000000Z", - 'name' => "JGbGoEyKdo0WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3S" + 'point_expires_in_days' => 7952, + 'point_expires_at' => "2022-05-20T04:27:02.000000Z", + 'status' => "disabled", + 'description' => "89AbrhaWMPvJ4w9BbWGLWxTOnqHU20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq10cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3", + 'event' => "topup", + 'priority' => 94, + 'ends_at' => "2022-06-10T11:14:09.000000Z", + 'starts_at' => "2021-05-02T17:00:03.000000Z", + 'name' => "muyUE26kLnIwLEQafbBqwyh" ] ); try { @@ -1676,53 +1626,49 @@ public function testUpdateCampaign44() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["c0b88968-2fea-4b8f-af11-fdee76824dff", "1aebd041-ac34-491f-9381-235cc8313c3f", "dd13c1f2-7e0d-4db1-a78f-44abcad481d3", "2052d05c-6199-4d4e-9b32-048fb6abdf50", "8e8b489e-cee5-4aec-b079-8bf7f12ef0a9", "871e645b-0f71-486e-a76b-2871445c1f28"], - 'minimum_number_of_amount' => 7755, - 'minimum_number_of_products' => 200, + 'blacklisted_shop_ids' => ["ec27e1fa-9594-4fa8-a7eb-b855cd0d96de", "07290fc4-9498-4953-9376-3885d8206030", "fb7a2b86-05cc-473d-ab49-047a7dcefae3", "a8c4a1a6-b35a-4518-a2de-3c11f40dfbee"], + 'minimum_number_of_amount' => 3566, + 'minimum_number_of_products' => 3508, '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_days_of_week' => [5, 4], + 'applicable_days_of_week' => [4, 4, 6, 5, 3, 6, 6, 6, 3, 3], '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_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] ], '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] ], 'subject' => "all", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 224, - 'point_expires_at' => "2024-09-16T04:18:54.000000Z", - 'status' => "disabled", - 'description' => "OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiOBI9qmFjOPFMYQLKjqH9KdygsFLw1OF89AbrhaWMPvJ4w9BbWGLWxTOnqHU20ukx1FDQpVqtvlq3pwtYNpqFJFhJ6HuYWnqyIUhAD4rpz6whWSFAXMqy8UduAdQ5IH0TK2HSat5A6ikNbGO6nv206MCoq", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 1918, + 'point_expires_at' => "2024-05-29T19:18:30.000000Z", + 'status' => "enabled", + 'description' => "II6xukRoB486IcnSrXwZGPsDFfbhpjo6CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51N", 'event' => "payment", - 'priority' => 8463, - 'ends_at' => "2024-08-15T09:24:00.000000Z", - 'starts_at' => "2021-02-09T02:55:24.000000Z", - 'name' => "cKjOOAJZbMJkEXTJUvgYePqHLhUyWTkN1F8Xwl2rFV9LPEG0FsEHZ0zFFEN3CsRlByNyR64VEa3muyUE26kLnIwLEQafbBqwyhczkUDSv0LkIzcZbnCm3D96fkss4WwEMOvII6xukRoB486IcnSrXwZGPsDFfbhpjo6CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjMtbi1" + 'priority' => 8399, + 'ends_at' => "2025-01-01T23:58:29.000000Z", + 'starts_at' => "2021-08-05T10:55:15.000000Z", + 'name' => "8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEE" ] ); try { @@ -1738,26 +1684,26 @@ public function testUpdateCampaign45() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["e7f27008-daad-492f-8965-29df83b5054a", "f7502c83-8c79-4ec6-af10-4004b643cda6", "924b89ce-a8cf-4027-b2cb-8372638d2dbe", "e7512895-11fc-4b16-87eb-2c6750d0d900", "3f11c6e2-f173-4c25-9e7b-60a5226c2358", "27293208-3f63-4dfe-a2c5-d685ddaf64e2", "c2096767-1326-47d0-9e3b-516f8b9012ff", "51e193da-b79f-4846-9462-a20fa042162e"], - 'minimum_number_for_combination_purchase' => 8529, - 'minimum_number_of_amount' => 790, - 'minimum_number_of_products' => 8809, + 'blacklisted_shop_ids' => ["9bf790e4-4a2f-4272-8d77-583e2dc357e4", "96169027-0dc8-47f5-abf0-56c360fff969", "0b422663-4cfc-48c8-8221-126a602c70b6", "55a61534-5466-42a9-9fb1-1303bb3a23bf", "e33ef0c4-e654-4bb6-8436-5da4836a294d", "9c468bab-ca69-45e5-9b02-43fef1e39389"], + 'minimum_number_for_combination_purchase' => 5743, + 'minimum_number_of_amount' => 5250, + 'minimum_number_of_products' => 4230, '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"] - , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [5, 3, 5, 0, 2, 6, 2, 4, 4], + 'applicable_days_of_week' => [0, 4, 2, 6, 1, 4, 0, 6, 1, 3], '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_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] @@ -1771,20 +1717,18 @@ public function testUpdateCampaign45() '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] ], 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 7282, - 'point_expires_at' => "2024-08-14T05:14:27.000000Z", - 'status' => "enabled", - 'description' => "sJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6Mien3I4QpNgQKG", - 'event' => "external-transaction", - 'priority' => 285, - 'ends_at' => "2021-11-29T03:34:06.000000Z", - 'starts_at' => "2023-06-24T06:53:29.000000Z", - 'name' => "Es2F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3" + 'point_expires_in_days' => 143, + 'point_expires_at' => "2022-03-21T11:08:53.000000Z", + 'status' => "disabled", + 'description' => "F3MGwgLve3TZFNm4S8a9Imcm3HEYVUSqsC3AriSwCEB0Kew5ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBH", + 'event' => "topup", + 'priority' => 8874, + 'ends_at' => "2024-03-30T01:37:00.000000Z", + 'starts_at' => "2024-06-23T20:42:06.000000Z", + 'name' => "urHoZlcvR7Q0TdgtR89zH4BRb4LxjYp1VFXi65IWH287FkS1AdoZmrqVFQp8fp" ] ); try { @@ -1800,23 +1744,31 @@ public function testUpdateCampaign46() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["2516a61c-bfe2-4692-bb37-a056da978c85", "731dea64-d9f7-4445-a44f-3f50592e7e47", "57d26b58-c98c-4a1f-9301-95924acc35e5", "d5cdaf39-fbbc-450c-8f4f-e16f1d713f11", "1ff9c798-e865-48f0-b52b-c74c4f7043eb", "eadaedd1-c0c4-4117-a002-9aa27d994faa", "90abfc13-e4ae-4256-b7bb-80f1b46c70ca", "96d13a89-fbf7-4bb1-80c2-243ebafb9179"], - 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 5911, - 'minimum_number_of_amount' => 5110, - 'minimum_number_of_products' => 5141, + 'blacklisted_shop_ids' => ["dd278c49-8570-45c4-87ce-3754261d9eb3", "744d5932-200c-4658-98bf-9a6a7641a6d3", "c341299f-8765-4b41-b3e6-85f391fc51ef", "a90bbe77-746d-471e-be72-3094d8f8180d", "f6ab0f0a-b7ee-4b79-b4ae-ecc6874d1eee", "95d15dc4-274e-4cd0-8572-09ca035d6705", "47ee3b87-e7c3-4592-b054-c7bc5a30cd89", "c5e28a7e-899b-44b6-bcea-fab8bb556154", "cecd0d28-451c-4fd3-82ce-bda6d666cfb1", "b84a4ec7-4889-48d2-8978-6fe62a9e89ca"], + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 7206, + 'minimum_number_of_amount' => 6614, + 'minimum_number_of_products' => 3229, '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_days_of_week' => [2, 3, 0, 0], + 'applicable_days_of_week' => [5, 4], '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"] ], '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] @@ -1834,15 +1786,15 @@ public function testUpdateCampaign46() ], 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 9197, - 'point_expires_at' => "2020-08-10T00:21:56.000000Z", - 'status' => "enabled", - 'description' => "vR7Q0", + 'point_expires_in_days' => 3969, + 'point_expires_at' => "2024-07-15T18:34:58.000000Z", + 'status' => "disabled", + 'description' => "jTfUU5d5AtOipE6L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbi", 'event' => "topup", - 'priority' => 4904, - 'ends_at' => "2022-06-06T07:31:48.000000Z", - 'starts_at' => "2020-11-21T20:08:03.000000Z", - 'name' => "gtR89zH4BRb4LxjYp1VFXi65IWH287FkS1AdoZmrqVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtOip" + 'priority' => 8410, + 'ends_at' => "2021-06-13T01:48:41.000000Z", + 'starts_at' => "2021-06-18T22:24:18.000000Z", + 'name' => "Oey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTs" ] ); try { @@ -1858,17 +1810,25 @@ public function testUpdateCampaign47() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["2d6b2c88-100e-4145-a1b6-b44cf6cf2f8d"], - 'max_point_amount' => 945, + 'blacklisted_shop_ids' => ["340b6509-0065-48e2-a025-9b7bd3ec4dff", "31d85352-8ef5-46e0-8c81-e3ddae12bb98"], + 'max_point_amount' => 5463, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 8518, - 'minimum_number_of_amount' => 5338, - 'minimum_number_of_products' => 1492, + 'minimum_number_for_combination_purchase' => 8059, + 'minimum_number_of_amount' => 4049, + 'minimum_number_of_products' => 7638, '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_days_of_week' => [4, 2, 5, 2, 4, 6, 0], + 'applicable_days_of_week' => [5, 1, 4], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1877,27 +1837,28 @@ public function testUpdateCampaign47() ], '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] ], '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] ], 'subject' => "all", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 9061, - 'point_expires_at' => "2020-09-23T11:50:18.000000Z", - 'status' => "enabled", - 'description' => "zTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rb", - 'event' => "topup", - 'priority' => 1277, - 'ends_at' => "2020-10-17T16:29:20.000000Z", - 'starts_at' => "2022-12-27T16:19:21.000000Z", - 'name' => "p3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTsebRuLVbzPU8r1TG2yJEOhnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qL" + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 8390, + 'point_expires_at' => "2021-07-10T17:54:03.000000Z", + 'status' => "disabled", + 'description' => "hnrWkQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60OEH7JgjiAw3cGaLL5KHpinnRK5y0OzJ9Hvf2cVYRMoN8ciCbZWnzcDnK4LA4gWzsFxrEWGQmIqwq80GWYOCdqp3aMw45RftnlC78XMJnZ0CKAQudtFEN83UK6KJ482qLWZU1lT", + 'event' => "external-transaction", + 'priority' => 4221, + 'ends_at' => "2025-08-22T06:07:04.000000Z", + 'starts_at' => "2020-05-13T11:47:14.000000Z", + 'name' => "EtylA7LcgVEYNBH5KGkiTeGrXAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAzt" ] ); try { @@ -1913,19 +1874,19 @@ public function testUpdateCampaign48() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["4c04275a-42d5-4f31-bdec-9cff9b5d1c54", "4dcaa4e7-735f-434a-bd08-fd422523a06f", "41ef03c5-de74-4979-9fec-2e9c7230f31d", "7485bd41-1cb7-4e4c-9ce3-cb673f723656", "31053645-bb8f-45d9-be4e-69423ff49d7e", "f94dd988-9f84-4348-bf7b-1f87b46a7085", "240d8cb5-208a-494b-876b-fb1e45b1239d", "f5a36069-26d4-4d25-aee5-ab3a32f0f147"], - 'max_total_point_amount' => 6658, - 'max_point_amount' => 9715, - 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 8300, - 'minimum_number_of_amount' => 7661, - 'minimum_number_of_products' => 5500, + 'blacklisted_shop_ids' => ["4514726c-1388-4d10-8da9-1113e41f7272", "aa936362-db07-4aa7-9894-7aa86ff57935", "dfc44fb0-94b7-4a61-abba-45a56324f2e9", "eb8a7074-44f8-4364-9463-76d9e12a5616", "a8e7c3ea-55ea-4b43-8f40-894afd393a95", "ec92c1d6-91a2-477c-94e1-413e829dacac", "207985f4-b458-46d7-b33d-cff369d3e088"], + 'max_total_point_amount' => 2014, + 'max_point_amount' => 6580, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 2403, + 'minimum_number_of_amount' => 2826, + 'minimum_number_of_products' => 1899, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [1, 4, 3, 5, 3, 2, 4], + 'applicable_days_of_week' => [3, 0, 4, 3, 2, 3, 1], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1937,26 +1898,28 @@ public function testUpdateCampaign48() '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", "product_code" => "4912345678904", "is_multiply_by_count" => TRUE, "required_count" => 2] ], '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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] ], 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 1507, - 'point_expires_at' => "2023-02-08T14:27:40.000000Z", - 'status' => "enabled", - 'description' => "P00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJ", + 'point_expires_in_days' => 2759, + 'point_expires_at' => "2022-12-11T05:15:24.000000Z", + 'status' => "disabled", + 'description' => "sltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9dr", 'event' => "external-transaction", - 'priority' => 9930, - 'ends_at' => "2021-07-20T06:23:52.000000Z", - 'starts_at' => "2020-08-17T15:20:26.000000Z", - 'name' => "KkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3s3mbWjjaocKJS9JHlwFlJcsltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9drgRKhLSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3m" + 'priority' => 2835, + 'ends_at' => "2023-02-06T16:39:04.000000Z", + 'starts_at' => "2023-04-03T17:33:28.000000Z", + 'name' => "LSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38" ] ); try { @@ -1972,30 +1935,27 @@ public function testUpdateCampaign49() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["1a773cfa-f05a-4602-b7cb-cf711b699a2c", "55352f0b-1504-44f8-ba3b-dd75e07d70ab", "5e2a2bea-e50f-413b-83aa-6af21aa82996", "f2e0f8df-5398-448b-bed5-7b21b8e4acdd", "b72d3c0f-8aec-439b-ad6d-e7ebc28f3904", "8621688d-01cb-4a28-8885-4d81ebd5a752", "5b70e7fc-f32d-4f81-9664-26a8168267d2", "729fe3d8-7be5-4769-a519-f2de0f1acb7c"], + 'blacklisted_shop_ids' => ["59c1c443-f9a9-44a9-99af-e3ab78335271", "a44bde01-8347-4f5a-a3d1-b9d7ff1b624e", "7b1d8ba2-bce5-438d-a435-a94217f668cc", "a7f9e724-20b6-40ff-adde-4d0d9569213a", "685ed8b6-6b5c-4535-9730-95eefa82245c", "fc6a9530-2852-47ed-803e-03a1e12079bc", "902b59e8-3e2f-48ff-901d-124e4757678e", "d17fbbfe-519b-41a7-a6ac-1f7bf5736f8e"], 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 9596, - 'max_point_amount' => 3881, - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 2638, - 'minimum_number_of_amount' => 7519, - 'minimum_number_of_products' => 422, + 'max_total_point_amount' => 4274, + 'max_point_amount' => 4306, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 6661, + 'minimum_number_of_amount' => 2887, + 'minimum_number_of_products' => 9570, '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_days_of_week' => [0, 4, 3, 1, 1, 1, 3], + 'applicable_days_of_week' => [4, 1, 6], '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_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] @@ -2005,21 +1965,18 @@ public function testUpdateCampaign49() , ["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] ], 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 4818, - 'point_expires_at' => "2021-06-15T12:32:37.000000Z", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 7319, + 'point_expires_at' => "2025-07-07T09:08:08.000000Z", 'status' => "disabled", - 'description' => "BL6m650n0RmhPNf1QdSFaslICN4xIeeSgcGsS3PA5BMU547lNJdN57", + 'description' => "eeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpH", 'event' => "external-transaction", - 'priority' => 9795, - 'ends_at' => "2023-03-09T00:02:15.000000Z", - 'starts_at' => "2024-02-23T11:54:56.000000Z", - 'name' => "tnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpHbhmzmDvsuxdQFF1b9FFVSxNRhY3CeG383Fyff0GWufJQM5UqG40T5H1YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4PxHJhHM6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFm" + 'priority' => 9448, + 'ends_at' => "2024-05-20T19:54:45.000000Z", + 'starts_at' => "2025-09-25T16:30:33.000000Z", + 'name' => "mzmDvsu" ] ); try { @@ -2035,30 +1992,24 @@ public function testUpdateCampaign50() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["e59a89dc-aa9e-4898-8b8f-c1d40a7c66c5", "b64833c9-f85b-4a41-89b1-024d9f6cab5e", "4e4c16a7-f9c1-4766-adb2-db1657172c48", "c7f80667-f8e5-438c-8163-c749619dfaab", "67688187-736c-4537-abb4-57466790c1f9", "1725d9d2-c09d-4e10-9354-e4a0655b3f03"], + 'blacklisted_shop_ids' => ["ac1ca397-4064-4c5c-917e-2a2816516246", "c3304020-5846-4583-b162-4f90c82ca202", "0b72947c-aa8a-4a5b-bb2e-70b9126d52c6", "44e610a7-12c6-4556-9394-395d95c53c29", "906f7ffe-def8-4bce-8ac0-bb40eb3872d2", "fc5a16a7-cf81-4968-ad28-32596a80e65e", "aa0d2bb3-d194-4343-a57c-e995b4581c28", "81a66ec7-d227-4507-b3b8-073375ac1e46", "5490eb2f-f179-4666-a684-47a46b6b5921"], 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 6047, - 'max_point_amount' => 278, - 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 6173, - 'minimum_number_of_amount' => 596, - 'minimum_number_of_products' => 5476, + 'max_total_point_amount' => 7985, + 'max_point_amount' => 7263, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 600, + 'minimum_number_of_amount' => 9974, + 'minimum_number_of_products' => 8581, '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_days_of_week' => [4], + 'applicable_days_of_week' => [5, 1, 2, 4, 4, 4], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] - , ["product_code" => "4912345678904", "classification_code" => "c123"] ], '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] @@ -2068,24 +2019,24 @@ public function testUpdateCampaign50() , ["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] ], '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] ], 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 2865, - 'point_expires_at' => "2022-11-30T16:10:09.000000Z", + 'point_expires_in_days' => 7192, + 'point_expires_at' => "2021-11-07T05:10:24.000000Z", 'status' => "enabled", - 'description' => "hnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz", + 'description' => "YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4", 'event' => "topup", - 'priority' => 7622, - 'ends_at' => "2022-03-18T20:25:07.000000Z", - 'starts_at' => "2021-10-15T22:35:00.000000Z", - 'name' => "wLwsP6PlvtKfS7zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStc" + 'priority' => 5139, + 'ends_at' => "2022-05-26T14:47:41.000000Z", + 'starts_at' => "2021-08-23T04:47:36.000000Z", + 'name' => "M6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXnt" ] ); try { @@ -2101,32 +2052,33 @@ public function testUpdateCampaign51() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "98be6617-a1a0-42e6-9267-bd01d8eb2204", + "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", [ - 'blacklisted_shop_ids' => ["5492659f-8892-4adf-9d33-87775afce7c2", "1360197e-c0dc-41b3-b05c-c934a0c61997"], - 'budget_caps_amount' => 2015154251, + 'blacklisted_shop_ids' => ["aa13fcf7-3319-4fcc-bc00-35f75f64d073", "1a794928-7850-46b6-bc50-bea1616b4c28"], + 'budget_caps_amount' => 2136805741, 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 238, - 'max_point_amount' => 7836, + 'max_total_point_amount' => 8720, + 'max_point_amount' => 3404, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 5046, - 'minimum_number_of_amount' => 2921, - 'minimum_number_of_products' => 7207, + 'minimum_number_for_combination_purchase' => 9703, + 'minimum_number_of_amount' => 2132, + 'minimum_number_of_products' => 5551, '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_days_of_week' => [2], + 'applicable_days_of_week' => [1, 5, 2, 2, 2, 3, 6, 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_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] @@ -2137,21 +2089,26 @@ public function testUpdateCampaign51() , ["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] ], '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] ], 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 8376, - 'point_expires_at' => "2022-09-10T12:21:21.000000Z", + 'point_expires_in_days' => 4169, + 'point_expires_at' => "2023-02-13T11:20:27.000000Z", 'status' => "disabled", - 'description' => "cqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu56A1wWzKTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCH", + 'description' => "oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu5", 'event' => "payment", - 'priority' => 3263, - 'ends_at' => "2023-12-31T09:46:24.000000Z", - 'starts_at' => "2021-12-28T20:50:12.000000Z", - 'name' => "04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1" + 'priority' => 4727, + 'ends_at' => "2022-06-30T14:42:31.000000Z", + 'starts_at' => "2020-12-18T12:48:22.000000Z", + 'name' => "KTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2" ] ); try { diff --git a/tests/UpdateCashtrayTest.php b/tests/UpdateCashtrayTest.php index fb78959f..5f619bce 100644 --- a/tests/UpdateCashtrayTest.php +++ b/tests/UpdateCashtrayTest.php @@ -8,7 +8,7 @@ public function testUpdateCashtray0() { $client = $this->newClient(); $request = new Request\UpdateCashtray( - "ba3c9300-0dec-496b-9145-f095c7a652bd" + "2d39a92c-e0bd-4586-a492-a61b1264550a" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testUpdateCashtray1() { $client = $this->newClient(); $request = new Request\UpdateCashtray( - "ba3c9300-0dec-496b-9145-f095c7a652bd", + "2d39a92c-e0bd-4586-a492-a61b1264550a", [ - 'expires_in' => 8693 + 'expires_in' => 6558 ] ); try { @@ -41,10 +41,10 @@ public function testUpdateCashtray2() { $client = $this->newClient(); $request = new Request\UpdateCashtray( - "ba3c9300-0dec-496b-9145-f095c7a652bd", + "2d39a92c-e0bd-4586-a492-a61b1264550a", [ - 'description' => "8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6XqlqrR9l", - 'expires_in' => 665 + 'description' => "uaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6Xqlqr", + 'expires_in' => 4874 ] ); try { @@ -60,11 +60,11 @@ public function testUpdateCashtray3() { $client = $this->newClient(); $request = new Request\UpdateCashtray( - "ba3c9300-0dec-496b-9145-f095c7a652bd", + "2d39a92c-e0bd-4586-a492-a61b1264550a", [ - 'amount' => 1776.0, - 'description' => "tmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWA", - 'expires_in' => 3534 + 'amount' => 3257.0, + 'description' => "ptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89", + 'expires_in' => 2117 ] ); try { diff --git a/tests/UpdateCheckTest.php b/tests/UpdateCheckTest.php index ea2b9a99..a9809c5c 100644 --- a/tests/UpdateCheckTest.php +++ b/tests/UpdateCheckTest.php @@ -8,7 +8,7 @@ public function testUpdateCheck0() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a" + "60141fdd-6ceb-42e1-9070-532c13725cf7" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testUpdateCheck1() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'is_disabled' => TRUE + 'is_disabled' => FALSE ] ); try { @@ -41,9 +41,9 @@ public function testUpdateCheck2() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'bear_point_account' => "0ef62065-a6e8-4745-b01e-b4465ebf2893", + 'bear_point_account' => "039690c9-b516-4b44-b092-30e5dc164209", 'is_disabled' => FALSE ] ); @@ -60,10 +60,10 @@ public function testUpdateCheck3() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'point_expires_in_days' => 8115, - 'bear_point_account' => "50b4b7e4-86c0-4731-a6c0-d000e06e77f3", + 'point_expires_in_days' => 9805, + 'bear_point_account' => "d64426a4-a705-4a79-ab5a-aa2d135d029a", 'is_disabled' => FALSE ] ); @@ -80,12 +80,12 @@ public function testUpdateCheck4() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'point_expires_at' => "2022-09-17T04:14:34.000000Z", - 'point_expires_in_days' => 6114, - 'bear_point_account' => "120cd1dc-82f1-40db-b4e3-d8738f704eaf", - 'is_disabled' => TRUE + 'point_expires_at' => "2020-03-06T08:42:24.000000Z", + 'point_expires_in_days' => 4807, + 'bear_point_account' => "f22beb4e-a05a-4d14-b711-7187892faaa4", + 'is_disabled' => FALSE ] ); try { @@ -101,12 +101,12 @@ public function testUpdateCheck5() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'expires_at' => "2021-12-26T07:08:50.000000Z", - 'point_expires_at' => "2020-04-20T21:24:42.000000Z", - 'point_expires_in_days' => 9361, - 'bear_point_account' => "add2afb3-924a-4e3f-b238-e78e930de5f8", + 'expires_at' => "2023-10-17T12:46:49.000000Z", + 'point_expires_at' => "2023-08-19T12:37:21.000000Z", + 'point_expires_in_days' => 3644, + 'bear_point_account' => "29d96a7c-f462-43df-b53c-217311ff0c80", 'is_disabled' => FALSE ] ); @@ -123,14 +123,14 @@ public function testUpdateCheck6() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'usage_limit' => 5850, - 'expires_at' => "2022-09-20T22:54:41.000000Z", - 'point_expires_at' => "2022-06-21T06:26:38.000000Z", - 'point_expires_in_days' => 9091, - 'bear_point_account' => "e6b60915-66a2-463e-b156-c43425c0e7bf", - 'is_disabled' => FALSE + 'usage_limit' => 2443, + 'expires_at' => "2022-09-03T04:25:36.000000Z", + 'point_expires_at' => "2021-09-16T19:47:01.000000Z", + 'point_expires_in_days' => 893, + 'bear_point_account' => "fa0714a9-dc3c-4b5e-8606-12b20beb9ef0", + 'is_disabled' => TRUE ] ); try { @@ -146,15 +146,15 @@ public function testUpdateCheck7() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'is_onetime' => FALSE, - 'usage_limit' => 6690, - 'expires_at' => "2021-06-13T06:42:46.000000Z", - 'point_expires_at' => "2024-02-20T12:53:17.000000Z", - 'point_expires_in_days' => 3236, - 'bear_point_account' => "59559e61-6e5c-4a87-8d38-dd650e4cb294", - 'is_disabled' => TRUE + 'is_onetime' => TRUE, + 'usage_limit' => 2892, + 'expires_at' => "2023-08-07T14:16:44.000000Z", + 'point_expires_at' => "2023-01-30T13:36:59.000000Z", + 'point_expires_in_days' => 1584, + 'bear_point_account' => "f682f622-6426-4cd0-a41d-e49b8280abef", + 'is_disabled' => FALSE ] ); try { @@ -170,16 +170,16 @@ public function testUpdateCheck8() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'description' => "KBhpNX1jWPk8Z43B0y0B9mfs2NjGqIbT9OwqnkaPpwID0eLy", - 'is_onetime' => FALSE, - 'usage_limit' => 666, - 'expires_at' => "2020-05-04T10:41:03.000000Z", - 'point_expires_at' => "2020-03-06T08:42:24.000000Z", - 'point_expires_in_days' => 4807, - 'bear_point_account' => "f22beb4e-a05a-4d14-b711-7187892faaa4", - 'is_disabled' => FALSE + 'description' => "L84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCu", + 'is_onetime' => TRUE, + 'usage_limit' => 3267, + 'expires_at' => "2021-08-17T01:01:01.000000Z", + 'point_expires_at' => "2020-05-30T21:18:02.000000Z", + 'point_expires_in_days' => 7107, + 'bear_point_account' => "ffa3d0fd-053d-4c4f-a720-bff4179dfee0", + 'is_disabled' => TRUE ] ); try { @@ -195,16 +195,16 @@ public function testUpdateCheck9() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'point_amount' => 7166.0, - 'description' => "9bus52pNLLPoSL84SGwACEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPH", - 'is_onetime' => TRUE, - 'usage_limit' => 6288, - 'expires_at' => "2023-09-02T05:02:34.000000Z", - 'point_expires_at' => "2023-01-19T14:30:30.000000Z", - 'point_expires_in_days' => 7609, - 'bear_point_account' => "618163de-18d6-4441-aa8e-45f8f4b0868f", + 'point_amount' => 1815.0, + 'description' => "8MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDeb", + 'is_onetime' => FALSE, + 'usage_limit' => 6610, + 'expires_at' => "2024-11-16T11:28:43.000000Z", + 'point_expires_at' => "2022-11-20T00:35:21.000000Z", + 'point_expires_in_days' => 54, + 'bear_point_account' => "2b6f2a8b-1889-4836-b88e-35fb225e1a79", 'is_disabled' => TRUE ] ); @@ -221,17 +221,17 @@ public function testUpdateCheck10() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "b0957c83-aab4-424b-b998-c121e5e95f6a", + "60141fdd-6ceb-42e1-9070-532c13725cf7", [ - 'money_amount' => 9425.0, - 'point_amount' => 1504.0, - 'description' => "n6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqy", - 'is_onetime' => TRUE, - 'usage_limit' => 383, - 'expires_at' => "2022-04-12T23:40:04.000000Z", - 'point_expires_at' => "2021-03-06T21:54:59.000000Z", - 'point_expires_in_days' => 7574, - 'bear_point_account' => "eda3cfd8-5227-4ac6-939b-581886060b57", + 'money_amount' => 1281.0, + 'point_amount' => 6556.0, + 'description' => "3vAdg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWy", + 'is_onetime' => FALSE, + 'usage_limit' => 2444, + 'expires_at' => "2023-08-18T16:22:25.000000Z", + 'point_expires_at' => "2020-01-02T00:23:01.000000Z", + 'point_expires_in_days' => 187, + 'bear_point_account' => "972ad034-c929-47b3-93c2-065dbceed3a9", 'is_disabled' => FALSE ] ); diff --git a/tests/UpdateCouponTest.php b/tests/UpdateCouponTest.php index 108d172c..e0d997a6 100644 --- a/tests/UpdateCouponTest.php +++ b/tests/UpdateCouponTest.php @@ -8,9 +8,9 @@ public function testUpdateCoupon0() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 2187 + 'discount_amount' => 7248 ] ); try { @@ -26,10 +26,10 @@ public function testUpdateCoupon1() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 1448, - 'name' => "buQwKeaQ4HWfPuDn8vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rdqjemTbEPE7it6nxw8V" + 'discount_amount' => 8890, + 'name' => "r68fP2A8RCqVjIMZulltZtj" ] ); try { @@ -45,11 +45,11 @@ public function testUpdateCoupon2() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 8927, - 'description' => "zyCNbz8zcALV0qfahEqSWpbWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPteza9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1", - 'name' => "QJALcpDZJ7YKoaGZqFQRMYj7eI0Oi" + 'discount_amount' => 8983, + 'description' => "MfuDxn3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6", + 'name' => "MEWefziiHI3E" ] ); try { @@ -65,12 +65,12 @@ public function testUpdateCoupon3() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 5671, - 'discount_upper_limit' => 3028, - 'description' => "gfPr68fP2A8RCqVjIMZulltZtjgMfuDxn3Q", - 'name' => "gsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPx" + 'discount_amount' => 9849, + 'discount_upper_limit' => 4095, + 'description' => "NpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4eyiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2", + 'name' => "LnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8" ] ); try { @@ -86,13 +86,13 @@ public function testUpdateCoupon4() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 8075, - 'starts_at' => "2022-10-15T03:57:57.000000Z", - 'discount_upper_limit' => 4171, - 'description' => "8mwHnigIC2xte", - 'name' => "LEmOps6u4P22rjT4dupT" + 'discount_amount' => 3145, + 'starts_at' => "2024-10-02T04:32:20.000000Z", + 'discount_upper_limit' => 9077, + 'description' => "nWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wD", + 'name' => "3YT1DlU5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSu" ] ); try { @@ -108,14 +108,14 @@ public function testUpdateCoupon5() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 5913, - 'ends_at' => "2020-02-13T11:08:06.000000Z", - 'starts_at' => "2020-01-29T08:42:26.000000Z", - 'discount_upper_limit' => 1783, - 'description' => "lYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oU", - 'name' => "QYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4eyiatMI7V" + 'discount_amount' => 2979, + 'ends_at' => "2021-10-07T18:16:08.000000Z", + 'starts_at' => "2023-07-26T08:01:11.000000Z", + 'discount_upper_limit' => 9299, + 'description' => "p4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0Hph0EUCWBeCDLYnE6HiVXo", + 'name' => "G09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6" ] ); try { @@ -131,15 +131,15 @@ public function testUpdateCoupon6() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 2814, - 'display_starts_at' => "2020-11-15T17:26:11.000000Z", - 'ends_at' => "2024-05-17T14:49:52.000000Z", - 'starts_at' => "2022-06-15T06:29:56.000000Z", - 'discount_upper_limit' => 4865, - 'description' => "tugJSz1Q3vovXNsgFsW05W19", - 'name' => "aXuGVVRQlUVJv9CZ2ZsBhmJB" + 'discount_amount' => 4678, + 'display_starts_at' => "2022-05-09T13:55:20.000000Z", + 'ends_at' => "2022-06-10T09:45:46.000000Z", + 'starts_at' => "2023-10-23T17:45:14.000000Z", + 'discount_upper_limit' => 7814, + 'description' => "lpvEl0kBLWjk", + 'name' => "R0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovt" ] ); try { @@ -155,16 +155,16 @@ public function testUpdateCoupon7() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 7300, - 'display_ends_at' => "2020-07-27T23:27:01.000000Z", - 'display_starts_at' => "2020-04-16T06:52:34.000000Z", - 'ends_at' => "2020-04-24T22:24:40.000000Z", - 'starts_at' => "2021-11-09T23:02:08.000000Z", - 'discount_upper_limit' => 6322, - 'description' => "LnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8", - 'name' => "NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqTh" + 'discount_amount' => 9039, + 'display_ends_at' => "2023-10-05T17:36:26.000000Z", + 'display_starts_at' => "2025-01-25T12:32:46.000000Z", + 'ends_at' => "2021-02-21T21:20:32.000000Z", + 'starts_at' => "2025-06-19T08:02:08.000000Z", + 'discount_upper_limit' => 4698, + 'description' => "68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJ", + 'name' => "vihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55cysKpzPw06buTFvYo4vEubGw6jVHah" ] ); try { @@ -180,17 +180,17 @@ public function testUpdateCoupon8() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 8044, + 'discount_amount' => 8099, 'is_disabled' => FALSE, - 'display_ends_at' => "2020-04-21T14:57:01.000000Z", - 'display_starts_at' => "2021-12-20T03:52:12.000000Z", - 'ends_at' => "2022-04-26T22:27:13.000000Z", - 'starts_at' => "2023-04-01T18:06:36.000000Z", - 'discount_upper_limit' => 9009, - 'description' => "xsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWGSp4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81VvpXr3HeuSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0H", - 'name' => "ph0EUCWBeCDLYnE6HiVXoG09ihrRj4aejWMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpv" + 'display_ends_at' => "2020-03-10T15:06:45.000000Z", + 'display_starts_at' => "2022-08-08T23:08:26.000000Z", + 'ends_at' => "2025-04-25T10:19:15.000000Z", + 'starts_at' => "2023-03-05T12:27:58.000000Z", + 'discount_upper_limit' => 1657, + 'description' => "qoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2", + 'name' => "R4vcFbZYPGyrsGLqJFlRMGfDCisIe5qHDsMdG7wbTKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85V" ] ); try { @@ -206,18 +206,18 @@ public function testUpdateCoupon9() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 3525, - 'is_hidden' => FALSE, - 'is_disabled' => TRUE, - 'display_ends_at' => "2021-04-28T17:40:27.000000Z", - 'display_starts_at' => "2024-02-08T17:56:16.000000Z", - 'ends_at' => "2021-08-20T03:51:26.000000Z", - 'starts_at' => "2023-12-11T09:27:08.000000Z", - 'discount_upper_limit' => 4366, - 'description' => "kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZICTUsFd55", - 'name' => "cysKpzPw06buTFvYo4vEubGw6jV" + 'discount_amount' => 7951, + 'is_hidden' => TRUE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2021-08-25T05:17:15.000000Z", + 'display_starts_at' => "2024-11-27T19:18:04.000000Z", + 'ends_at' => "2021-10-01T02:42:58.000000Z", + 'starts_at' => "2024-06-25T00:40:49.000000Z", + 'discount_upper_limit' => 6248, + 'description' => "JKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoy", + 'name' => "A3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu08AkjC0WPKbQvYow9FaOH3zD7SQm" ] ); try { @@ -233,19 +233,19 @@ public function testUpdateCoupon10() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 3144, - 'is_public' => FALSE, + 'discount_amount' => 8914, + 'is_public' => TRUE, 'is_hidden' => TRUE, 'is_disabled' => TRUE, - 'display_ends_at' => "2024-07-26T06:22:27.000000Z", - 'display_starts_at' => "2021-10-22T12:20:11.000000Z", - 'ends_at' => "2020-03-10T15:06:45.000000Z", - 'starts_at' => "2022-08-08T23:08:26.000000Z", - 'discount_upper_limit' => 163, - 'description' => "NyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0lWPTZ7efHVp4Du6bqVzq0H9hNDIpWOGRlL4QDCIWrLzYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCF", - 'name' => "nlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlRMGfDCis" + 'display_ends_at' => "2020-04-15T08:33:57.000000Z", + 'display_starts_at' => "2024-11-20T12:30:49.000000Z", + 'ends_at' => "2023-12-12T01:24:30.000000Z", + 'starts_at' => "2022-09-13T16:43:57.000000Z", + 'discount_upper_limit' => 4234, + 'description' => "pGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlC", + 'name' => "lsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPccc" ] ); try { @@ -261,20 +261,20 @@ public function testUpdateCoupon11() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 3006, - 'code' => "e5qHDsM", - 'is_public' => TRUE, + 'discount_amount' => 8718, + 'code' => "qGzpCuGxgj", + 'is_public' => FALSE, 'is_hidden' => TRUE, 'is_disabled' => TRUE, - 'display_ends_at' => "2020-11-14T13:12:39.000000Z", - 'display_starts_at' => "2022-08-12T09:36:28.000000Z", - 'ends_at' => "2023-12-04T15:41:23.000000Z", - 'starts_at' => "2023-06-20T13:14:40.000000Z", - 'discount_upper_limit' => 5367, - 'description' => "TKEpXzySqqc4sXPad6xuwUqi64YRTYtsOeEN9XbwlgwBy5OkIYkbdAf4PBqh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma0HXRKUqv4lzkwZFtSWx4aRECgS2Rzs2ylIq5ZtrGXVCQUhbREfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw", - 'name' => "7FOCvHUkEBp2Lx" + 'display_ends_at' => "2024-08-31T01:29:06.000000Z", + 'display_starts_at' => "2022-09-05T23:52:33.000000Z", + 'ends_at' => "2023-08-11T08:35:11.000000Z", + 'starts_at' => "2024-11-05T03:45:03.000000Z", + 'discount_upper_limit' => 4846, + 'description' => "Fm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB", + 'name' => "hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9S" ] ); try { @@ -290,21 +290,21 @@ public function testUpdateCoupon12() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 7923, - 'usage_limit' => 1524, - 'code' => "HBe9EWUoT", - 'is_public' => FALSE, - 'is_hidden' => TRUE, + 'discount_amount' => 9267, + 'usage_limit' => 5310, + 'code' => "fTD5o4Kn6T", + 'is_public' => TRUE, + 'is_hidden' => FALSE, 'is_disabled' => FALSE, - 'display_ends_at' => "2021-12-07T14:32:07.000000Z", - 'display_starts_at' => "2024-08-02T16:43:13.000000Z", - 'ends_at' => "2020-12-11T05:05:17.000000Z", - 'starts_at' => "2020-06-23T00:58:15.000000Z", - 'discount_upper_limit' => 9099, - 'description' => "CBY3rucfBues", - 'name' => "6uHoyn0kY9tu08AkjC0WPK" + 'display_ends_at' => "2022-12-01T13:27:45.000000Z", + 'display_starts_at' => "2024-12-07T05:23:01.000000Z", + 'ends_at' => "2020-04-22T23:26:11.000000Z", + 'starts_at' => "2022-01-04T04:06:32.000000Z", + 'discount_upper_limit' => 1593, + 'description' => "tmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7BosawhL51XW0ltZ8tyBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8r", + 'name' => "kq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1ujAV4SIGQk" ] ); try { @@ -320,22 +320,22 @@ public function testUpdateCoupon13() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 6370, - 'min_amount' => 5119, - 'usage_limit' => 665, - 'code' => "vYow", - 'is_public' => FALSE, + 'discount_amount' => 4048, + 'min_amount' => 131, + 'usage_limit' => 2541, + 'code' => "a5YJsZS", + 'is_public' => TRUE, 'is_hidden' => TRUE, 'is_disabled' => TRUE, - 'display_ends_at' => "2024-10-17T09:15:59.000000Z", - 'display_starts_at' => "2021-09-08T00:28:56.000000Z", - 'ends_at' => "2024-03-05T05:29:23.000000Z", - 'starts_at' => "2020-05-21T21:33:20.000000Z", - 'discount_upper_limit' => 3834, - 'description' => "7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5", - 'name' => "CvbOFISTKPBIbnB4IlVfzKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh2ng7xlmB0D7qlClsr3pe" + 'display_ends_at' => "2023-07-21T07:30:15.000000Z", + 'display_starts_at' => "2024-03-14T20:57:01.000000Z", + 'ends_at' => "2023-12-04T07:25:10.000000Z", + 'starts_at' => "2025-03-30T19:49:09.000000Z", + 'discount_upper_limit' => 6984, + 'description' => "hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKvyAHQ0Cmh0GR2i", + 'name' => "pQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdW" ] ); try { @@ -351,23 +351,23 @@ public function testUpdateCoupon14() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 1816, + 'discount_amount' => 9985, 'is_shop_specified' => FALSE, - 'min_amount' => 8978, - 'usage_limit' => 8336, - 'code' => "1RPsdDZ", - 'is_public' => FALSE, - 'is_hidden' => TRUE, - 'is_disabled' => TRUE, - 'display_ends_at' => "2022-02-21T04:39:25.000000Z", - 'display_starts_at' => "2024-08-31T22:08:33.000000Z", - 'ends_at' => "2020-10-19T19:11:16.000000Z", - 'starts_at' => "2022-08-03T20:48:53.000000Z", - 'discount_upper_limit' => 8254, - 'description' => "sfv5Au45ikmQzjXEIrL5tEVsPccciqGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7Y", - 'name' => "cRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWj" + 'min_amount' => 9298, + 'usage_limit' => 4612, + 'code' => "KBpAMRk3", + 'is_public' => TRUE, + 'is_hidden' => FALSE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2025-06-10T02:37:08.000000Z", + 'display_starts_at' => "2022-09-12T07:05:29.000000Z", + 'ends_at' => "2023-03-17T01:41:53.000000Z", + 'starts_at' => "2023-09-16T22:14:00.000000Z", + 'discount_upper_limit' => 8357, + 'description' => "Dvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5", + 'name' => "MrDSrYQmTFD8MK4Lhw" ] ); try { @@ -383,24 +383,24 @@ public function testUpdateCoupon15() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 3104, - 'available_shop_ids' => ["33bf04a9-9129-4cf1-9426-5f582f0b0555", "c04c3f46-109f-40c7-8f2a-3f6f1c488701", "d89dbc01-4080-47bb-8ffc-ac1b26dc15fe", "7e02fc52-79c1-4bb4-bf27-985828e48d8e", "81102a88-1c28-4276-a986-761d467e9127"], - 'is_shop_specified' => TRUE, - 'min_amount' => 475, - 'usage_limit' => 3894, - 'code' => "Wv2", + 'discount_amount' => 9289, + 'available_shop_ids' => ["80f0cc6c-a161-41e4-9fcb-23c591b787ee", "94e2f67b-5fff-408e-aa0e-0cd5c94684c3", "589cc60b-90d5-42ab-bec2-ee4da3320c54"], + 'is_shop_specified' => FALSE, + 'min_amount' => 827, + 'usage_limit' => 296, + 'code' => "jSLXQWZdq", 'is_public' => TRUE, 'is_hidden' => TRUE, - 'is_disabled' => FALSE, - 'display_ends_at' => "2022-03-24T15:04:36.000000Z", - 'display_starts_at' => "2022-12-06T09:33:57.000000Z", - 'ends_at' => "2022-01-18T14:20:40.000000Z", - 'starts_at' => "2024-05-29T10:24:10.000000Z", - 'discount_upper_limit' => 19, - 'description' => "fcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4WFT3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZyV9AO3DnB1YRES4xlc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjy", - 'name' => "plKXUyju" + 'is_disabled' => TRUE, + 'display_ends_at' => "2023-11-22T17:54:04.000000Z", + 'display_starts_at' => "2022-03-02T17:26:50.000000Z", + 'ends_at' => "2024-10-18T21:58:25.000000Z", + 'starts_at' => "2022-09-19T19:08:56.000000Z", + 'discount_upper_limit' => 4130, + 'description' => "OS9NchMxuvMOV5pE0ThIcNVnpd1n04", + 'name' => "FvafoOT5XflXygJfyBJl1" ] ); try { @@ -416,25 +416,25 @@ public function testUpdateCoupon16() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 6950, - 'storage_id' => "6e5298fe-0711-4cef-8164-7ea6eb81e8da", - 'available_shop_ids' => ["5ffa3be1-aa5b-4169-9502-8d9e2e2bd887", "6f71fe53-e1a5-49e8-bc23-18178182aef3", "9df7106a-01ef-4da5-ae7b-b0a79147273b", "009ffa4b-ce65-4216-adc4-2304f346fa85", "7ac68389-35b9-4d1d-89ca-e38adf73b896", "14aab756-36ea-46aa-9669-bdb33298b3c5", "ac58f7dd-9187-4f7e-a868-0a17396a61d1", "b712ecde-62b1-4ab0-95bf-9d6e2d828305", "fa21f5bb-7ea3-4d0e-a21c-1a253513c8e1"], + 'discount_amount' => 8735, + 'storage_id' => "51dcde96-2486-40a7-ae94-ca77aa5bfd8a", + 'available_shop_ids' => ["97858073-b988-41be-b6ce-0965051a3219", "fad97f93-160a-4788-bdb3-64863977df5e", "4d2ae353-c7b7-4be0-866b-2ae4f04299af", "a82559f0-bac8-4daf-9326-08173d5790ec", "7465480c-b515-4511-8ade-b219c99b57e9"], 'is_shop_specified' => FALSE, - 'min_amount' => 1482, - 'usage_limit' => 2520, - 'code' => "x7BosawhL5", + 'min_amount' => 838, + 'usage_limit' => 6051, + 'code' => "f9vj51i", 'is_public' => FALSE, - 'is_hidden' => TRUE, - 'is_disabled' => TRUE, - 'display_ends_at' => "2024-02-20T05:53:28.000000Z", - 'display_starts_at' => "2021-07-01T23:01:04.000000Z", - 'ends_at' => "2021-07-22T08:58:02.000000Z", - 'starts_at' => "2020-08-11T05:50:27.000000Z", - 'discount_upper_limit' => 5688, - 'description' => "yBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1uj", - 'name' => "AV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKv" + 'is_hidden' => FALSE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2023-09-27T00:12:25.000000Z", + 'display_starts_at' => "2023-09-17T02:04:37.000000Z", + 'ends_at' => "2020-09-20T10:14:14.000000Z", + 'starts_at' => "2021-02-01T18:35:10.000000Z", + 'discount_upper_limit' => 8834, + 'description' => "kai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLio", + 'name' => "RLUylhwp3jBXylmnz" ] ); try { @@ -450,10 +450,10 @@ public function testUpdateCoupon17() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 2589, - 'discount_percentage' => 8953.0 + 'discount_amount' => 646, + 'discount_percentage' => 9684.0 ] ); try { @@ -469,11 +469,11 @@ public function testUpdateCoupon18() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 8667, - 'discount_percentage' => 9025.0, - 'name' => "HQ0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88j" + 'discount_amount' => 9945, + 'discount_percentage' => 2129.0, + 'name' => "PT" ] ); try { @@ -489,12 +489,12 @@ public function testUpdateCoupon19() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 4147, - 'discount_percentage' => 6096.0, - 'description' => "x2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX2ykkKJlN107OaiUpqdHMS0B", - 'name' => "QNQ8yntRPdiO7nDWAmmXsETvex6EwUtMqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnUCU" + 'discount_amount' => 2769, + 'discount_percentage' => 4924.0, + 'description' => "EDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVb", + 'name' => "nnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLS" ] ); try { @@ -510,13 +510,13 @@ public function testUpdateCoupon20() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 4779, - 'discount_percentage' => 8898.0, - 'discount_upper_limit' => 3156, - 'description' => "sHjSLXQWZdqZHX", - 'name' => "OS9NchMxuvMOV5pE0ThIcNVnpd1n04Fvafo" + 'discount_amount' => 1095, + 'discount_percentage' => 339.0, + 'discount_upper_limit' => 2271, + 'description' => "aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7Bl", + 'name' => "WsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdno" ] ); try { @@ -532,14 +532,14 @@ public function testUpdateCoupon21() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 1180, - 'discount_percentage' => 4789.0, - 'starts_at' => "2020-12-07T05:35:24.000000Z", - 'discount_upper_limit' => 7187, - 'description' => "lXygJfyBJl1nws6Ne3S7kdpHli9FCf9vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn6U1tknXv7iBjpuz8kXfTQVtq7nYSMGg", - 'name' => "A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sb" + 'discount_amount' => 4461, + 'discount_percentage' => 2723.0, + 'starts_at' => "2020-11-26T20:15:19.000000Z", + 'discount_upper_limit' => 7587, + 'description' => "lXA8y2v", + 'name' => "wAsTNYaeLyV7CWdrmk" ] ); try { @@ -555,15 +555,15 @@ public function testUpdateCoupon22() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 4029, - 'discount_percentage' => 6519.0, - 'ends_at' => "2022-12-22T01:15:05.000000Z", - 'starts_at' => "2021-12-11T12:14:40.000000Z", - 'discount_upper_limit' => 4408, - 'description' => "fl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQKCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z9k4WtlP60t1pGDCB7WpLioRLUylhwp3jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Y", - 'name' => "m3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4aP0CNMNfb6Vow" + 'discount_amount' => 7060, + 'discount_percentage' => 1975.0, + 'ends_at' => "2022-06-26T23:06:42.000000Z", + 'starts_at' => "2025-04-17T02:09:08.000000Z", + 'discount_upper_limit' => 7201, + 'description' => "yx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1", + 'name' => "y6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9" ] ); try { @@ -579,16 +579,16 @@ public function testUpdateCoupon23() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 3168, - 'discount_percentage' => 3262.0, - 'display_starts_at' => "2021-08-01T16:14:19.000000Z", - 'ends_at' => "2022-05-05T16:44:07.000000Z", - 'starts_at' => "2021-06-17T00:28:02.000000Z", - 'discount_upper_limit' => 9429, - 'description' => "VfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8y2vwAsTNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwj", - 'name' => "iJmBq8x2BMoiejWmPY8qwKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU" + 'discount_amount' => 3552, + 'discount_percentage' => 6207.0, + 'display_starts_at' => "2025-01-25T07:10:06.000000Z", + 'ends_at' => "2025-03-11T06:00:19.000000Z", + 'starts_at' => "2022-03-12T22:06:07.000000Z", + 'discount_upper_limit' => 3388, + 'description' => "0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZhOiq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUav", + 'name' => "pCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5" ] ); try { @@ -604,17 +604,17 @@ public function testUpdateCoupon24() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 6906, - 'discount_percentage' => 822.0, - 'display_ends_at' => "2024-04-25T20:32:44.000000Z", - 'display_starts_at' => "2023-05-23T07:58:30.000000Z", - 'ends_at' => "2021-08-30T16:31:25.000000Z", - 'starts_at' => "2022-10-12T03:49:21.000000Z", - 'discount_upper_limit' => 8674, - 'description' => "D3wpFlmsWusC8RGaBKUJdHLf9kwaxRbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagOIQ6x9sSfu0zX8zdCniT7rbp4Rd", - 'name' => "F8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g" + 'discount_amount' => 3718, + 'discount_percentage' => 411.0, + 'display_ends_at' => "2020-05-23T00:13:04.000000Z", + 'display_starts_at' => "2020-11-25T18:49:06.000000Z", + 'ends_at' => "2022-10-13T01:01:14.000000Z", + 'starts_at' => "2024-01-22T22:08:02.000000Z", + 'discount_upper_limit' => 7304, + 'description' => "CZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq", + 'name' => "VpVqu1DpFd0JaBsPBEjjxsN82R5bV74h6MclFLskpVJhF8OvhWGp3gT" ] ); try { @@ -630,18 +630,18 @@ public function testUpdateCoupon25() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 3385, - 'discount_percentage' => 494.0, - 'is_disabled' => FALSE, - 'display_ends_at' => "2020-08-21T03:08:05.000000Z", - 'display_starts_at' => "2021-02-10T02:18:02.000000Z", - 'ends_at' => "2023-02-28T03:35:04.000000Z", - 'starts_at' => "2020-02-28T01:47:14.000000Z", - 'discount_upper_limit' => 643, - 'description' => "iq9TM1kLnMOaPoayQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSblk7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3Ezs", - 'name' => "Mpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQxCiR4LJ0VAGQ0LknXBVXV6IePzMvb8rIAKhBAUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0" + 'discount_amount' => 5026, + 'discount_percentage' => 8515.0, + 'is_disabled' => TRUE, + 'display_ends_at' => "2020-03-29T06:48:50.000000Z", + 'display_starts_at' => "2025-08-17T01:31:00.000000Z", + 'ends_at' => "2022-01-03T03:03:19.000000Z", + 'starts_at' => "2022-01-01T06:37:40.000000Z", + 'discount_upper_limit' => 8678, + 'description' => "Z8zWBqSC3vDIMcnooU2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2gO", + 'name' => "zxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkP" ] ); try { @@ -657,19 +657,19 @@ public function testUpdateCoupon26() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 5035, - 'discount_percentage' => 7157.0, - 'is_hidden' => FALSE, - 'is_disabled' => FALSE, - 'display_ends_at' => "2023-01-15T08:42:36.000000Z", - 'display_starts_at' => "2022-08-09T17:40:55.000000Z", - 'ends_at' => "2023-06-14T05:41:33.000000Z", - 'starts_at' => "2020-11-08T04:37:06.000000Z", - 'discount_upper_limit' => 7547, - 'description' => "W5FEq6VpVqu1DpFd0JaBsPBEjjxsN82R5", - 'name' => "V74h6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxV" + 'discount_amount' => 888, + 'discount_percentage' => 817.0, + 'is_hidden' => TRUE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2021-12-29T22:28:41.000000Z", + 'display_starts_at' => "2021-08-16T12:19:15.000000Z", + 'ends_at' => "2025-09-21T17:55:55.000000Z", + 'starts_at' => "2022-06-20T23:39:23.000000Z", + 'discount_upper_limit' => 5175, + 'description' => "cdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt", + 'name' => "JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9g" ] ); try { @@ -685,20 +685,20 @@ public function testUpdateCoupon27() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 2622, - 'discount_percentage' => 8101.0, - 'is_public' => FALSE, - 'is_hidden' => TRUE, - 'is_disabled' => FALSE, - 'display_ends_at' => "2021-08-22T07:25:55.000000Z", - 'display_starts_at' => "2020-01-28T02:58:55.000000Z", - 'ends_at' => "2021-03-03T19:27:06.000000Z", - 'starts_at' => "2023-11-06T20:32:29.000000Z", - 'discount_upper_limit' => 5758, - 'description' => "r8tnCR4b3VVcnR7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SE", - 'name' => "DVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2qGGZk77FXigkPx1NC7bcdhHDyq2Bmegm" + 'discount_amount' => 4471, + 'discount_percentage' => 6528.0, + 'is_public' => TRUE, + 'is_hidden' => FALSE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2020-01-28T10:08:21.000000Z", + 'display_starts_at' => "2023-10-18T19:41:56.000000Z", + 'ends_at' => "2022-07-09T00:36:35.000000Z", + 'starts_at' => "2022-11-03T00:03:33.000000Z", + 'discount_upper_limit' => 4036, + 'description' => "eBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqB", + 'name' => "BGmKnZ" ] ); try { @@ -714,21 +714,21 @@ public function testUpdateCoupon28() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 2126, - 'discount_percentage' => 2531.0, - 'code' => "V0UA", + 'discount_amount' => 8671, + 'discount_percentage' => 4903.0, + 'code' => "6", 'is_public' => TRUE, - 'is_hidden' => FALSE, + 'is_hidden' => TRUE, 'is_disabled' => FALSE, - 'display_ends_at' => "2021-11-23T21:44:06.000000Z", - 'display_starts_at' => "2020-08-23T17:23:20.000000Z", - 'ends_at' => "2022-06-09T05:29:13.000000Z", - 'starts_at' => "2023-08-08T05:40:02.000000Z", - 'discount_upper_limit' => 904, - 'description' => "j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zV", - 'name' => "vIrNmjPyMt7JZTknlcSLOAfgHki7iEUUEZsYB8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOlabiOcEnlo" + 'display_ends_at' => "2024-04-13T06:27:16.000000Z", + 'display_starts_at' => "2024-03-29T06:39:30.000000Z", + 'ends_at' => "2020-07-18T22:13:32.000000Z", + 'starts_at' => "2025-06-28T09:08:31.000000Z", + 'discount_upper_limit' => 7918, + 'description' => "3", + 'name' => "iuFQrrgeXzyNXNrNkeWa9hW" ] ); try { @@ -744,22 +744,22 @@ public function testUpdateCoupon29() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 6504, - 'discount_percentage' => 9778.0, - 'usage_limit' => 8616, - 'code' => "Xft8Z", + 'discount_amount' => 2675, + 'discount_percentage' => 1484.0, + 'usage_limit' => 5487, + 'code' => "6", 'is_public' => TRUE, - 'is_hidden' => TRUE, + 'is_hidden' => FALSE, 'is_disabled' => FALSE, - 'display_ends_at' => "2022-04-29T09:01:19.000000Z", - 'display_starts_at' => "2024-05-15T17:23:12.000000Z", - 'ends_at' => "2022-07-31T15:25:18.000000Z", - 'starts_at' => "2024-05-17T19:26:01.000000Z", - 'discount_upper_limit' => 1027, - 'description' => "5H8aSOl3MDXnG9yHqEATh", - 'name' => "wDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3" + 'display_ends_at' => "2023-08-01T12:04:56.000000Z", + 'display_starts_at' => "2024-03-26T08:53:20.000000Z", + 'ends_at' => "2021-11-17T01:29:16.000000Z", + 'starts_at' => "2024-09-05T23:12:18.000000Z", + 'discount_upper_limit' => 4352, + 'description' => "dmMatyD", + 'name' => "W12s5SKsd06fYHa9p" ] ); try { @@ -775,23 +775,23 @@ public function testUpdateCoupon30() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 8072, - 'discount_percentage' => 8512.0, - 'min_amount' => 9337, - 'usage_limit' => 505, - 'code' => "qUS", - 'is_public' => TRUE, - 'is_hidden' => FALSE, - 'is_disabled' => FALSE, - 'display_ends_at' => "2022-09-08T17:44:13.000000Z", - 'display_starts_at' => "2021-01-08T15:21:59.000000Z", - 'ends_at' => "2021-02-23T02:27:31.000000Z", - 'starts_at' => "2024-06-30T16:44:29.000000Z", - 'discount_upper_limit' => 6521, - 'description' => "f158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6uDI", - 'name' => "3iuFQrrgeXzyNXNrNkeWa9hWsLSo6RhlRrNdmMatyDW12s5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeI" + 'discount_amount' => 8804, + 'discount_percentage' => 7125.0, + 'min_amount' => 8575, + 'usage_limit' => 7742, + 'code' => "D", + 'is_public' => FALSE, + 'is_hidden' => TRUE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2023-02-25T13:47:48.000000Z", + 'display_starts_at' => "2022-09-28T08:12:08.000000Z", + 'ends_at' => "2025-03-02T15:09:01.000000Z", + 'starts_at' => "2021-03-18T17:19:28.000000Z", + 'discount_upper_limit' => 2642, + 'description' => "ln1g4q1AmzenaBAIYsPX5BE", + 'name' => "EkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhR" ] ); try { @@ -807,24 +807,24 @@ public function testUpdateCoupon31() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 8535, - 'discount_percentage' => 2585.0, - 'is_shop_specified' => TRUE, - 'min_amount' => 9169, - 'usage_limit' => 8925, - 'code' => "5mYkDBp7", - 'is_public' => TRUE, + 'discount_amount' => 179, + 'discount_percentage' => 4779.0, + 'is_shop_specified' => FALSE, + 'min_amount' => 2802, + 'usage_limit' => 4402, + 'code' => "MS5", + 'is_public' => FALSE, 'is_hidden' => FALSE, 'is_disabled' => FALSE, - 'display_ends_at' => "2020-04-18T09:50:55.000000Z", - 'display_starts_at' => "2022-09-23T18:31:36.000000Z", - 'ends_at' => "2022-01-14T05:33:00.000000Z", - 'starts_at' => "2023-11-14T02:07:12.000000Z", - 'discount_upper_limit' => 8222, - 'description' => "lz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHri", - 'name' => "IaXxYmUfeD" + 'display_ends_at' => "2022-05-11T05:45:18.000000Z", + 'display_starts_at' => "2022-05-21T00:07:59.000000Z", + 'ends_at' => "2024-12-12T23:04:45.000000Z", + 'starts_at' => "2024-08-12T21:16:50.000000Z", + 'discount_upper_limit' => 2416, + 'description' => "eG29hBWbNKIGuoyWD3BHeU5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESaJKCDCVaIjvXY9buv1PGDaqpx", + 'name' => "AcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhr" ] ); try { @@ -840,25 +840,25 @@ public function testUpdateCoupon32() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 8742, - 'discount_percentage' => 7425.0, - 'available_shop_ids' => ["968e7833-8842-4c4b-8fd4-e2c313f148bd", "62b10e08-682f-49da-8fd0-073f04fa99cb", "414762a2-1be8-47ae-929e-776b9628c0b3", "ce0a3ff7-fa09-42b9-ab5f-8af2af4bd132"], + 'discount_amount' => 8850, + 'discount_percentage' => 3071.0, + 'available_shop_ids' => ["939d6507-7f99-4488-8a01-a9a02b633607"], 'is_shop_specified' => TRUE, - 'min_amount' => 2893, - 'usage_limit' => 2730, - 'code' => "S5qnBpe", + 'min_amount' => 5902, + 'usage_limit' => 1422, + 'code' => "80a47LYIcD", 'is_public' => FALSE, - 'is_hidden' => FALSE, + 'is_hidden' => TRUE, 'is_disabled' => FALSE, - 'display_ends_at' => "2021-05-03T01:40:37.000000Z", - 'display_starts_at' => "2021-05-13T19:05:55.000000Z", - 'ends_at' => "2023-08-17T00:14:32.000000Z", - 'starts_at' => "2020-04-18T22:19:14.000000Z", - 'discount_upper_limit' => 862, - 'description' => "NKIGuoyWD3BHeU5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfANu3p62KDWO8TDrLXiDq8ZM4HpSJ7ezaoKVM6PG4nVxadlDXYh8F3jX5Rw62VEObOlMsiJ", - 'name' => "l1b2ESaJKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCxlziaJ1nphI9ySRxw6pdyrj7YEb5BIbPwZ" + 'display_ends_at' => "2020-08-02T00:07:21.000000Z", + 'display_starts_at' => "2024-09-05T15:59:04.000000Z", + 'ends_at' => "2024-04-13T10:47:36.000000Z", + 'starts_at' => "2022-01-15T05:11:05.000000Z", + 'discount_upper_limit' => 1785, + 'description' => "YwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN0", + 'name' => "8OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLK" ] ); try { @@ -874,26 +874,26 @@ public function testUpdateCoupon33() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_amount' => 2647, - 'discount_percentage' => 6946.0, - 'storage_id' => "9553f41b-a2f0-49ae-ad8b-c22486918774", - 'available_shop_ids' => ["43af59e5-90d7-4c1b-82cd-e9a2aed4cb2e", "7ebdaa17-bc8a-48c1-af66-ad6afcc4e396", "62aa63d4-d28f-4b10-bae8-d5933d83e925", "ba8ed01a-4c3c-42ea-8f21-9531e0946f24", "46c7ca17-9db0-4226-8a26-7d05edfab2c0", "91e5e0e2-26d1-430d-b7fd-09f926f871a6", "6b6fefd4-5e0f-4607-958a-bd7c64121036", "bc520b06-4ba9-4409-9ad5-871dde5c37e8"], + 'discount_amount' => 1037, + 'discount_percentage' => 401.0, + 'storage_id' => "3ac4c00c-d755-40e7-8784-5b3337e7397c", + 'available_shop_ids' => ["bd16f56f-b00f-436d-b1d9-d7a062624bce", "6ddd52e6-d9aa-400d-a5de-9ffddaae43e5", "59b603cb-5aef-43cc-a395-a164ddefeaa6", "9c4a8b83-9746-4c45-b848-15aa55abcb6d", "dab3cd3c-fcf4-41b9-9238-344292401bbc", "6c334b98-1b91-4bf6-b12a-e141b114b4db", "22bd014a-b773-4342-ba33-db6cca2a48b6"], 'is_shop_specified' => FALSE, - 'min_amount' => 6180, - 'usage_limit' => 4210, - 'code' => "Op8", + 'min_amount' => 1081, + 'usage_limit' => 7481, + 'code' => "Q", 'is_public' => TRUE, - 'is_hidden' => FALSE, - 'is_disabled' => TRUE, - 'display_ends_at' => "2023-08-03T04:47:27.000000Z", - 'display_starts_at' => "2022-03-26T11:32:07.000000Z", - 'ends_at' => "2020-10-24T01:25:18.000000Z", - 'starts_at' => "2023-12-06T18:21:24.000000Z", - 'discount_upper_limit' => 3916, - 'description' => "IcD579HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUouvYHKlj0GUL0Fcnz7fEngR6pF3m54Vmw", - 'name' => "rgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk9QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNf" + 'is_hidden' => TRUE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2022-05-09T11:58:30.000000Z", + 'display_starts_at' => "2025-04-22T23:27:16.000000Z", + 'ends_at' => "2020-10-23T07:03:33.000000Z", + 'starts_at' => "2023-09-02T01:28:05.000000Z", + 'discount_upper_limit' => 8946, + 'description' => "fIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzShazSiZH6DDfNqfsVRi3zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE0P3Cu0AOaTlKzyVFYYoK00aco", + 'name' => "lEqYYGWZUMgU5LJ8nedbEkL6VCbZlYCZFu0YjXrvick1kbCzvMElblaTUskxDWTi4syFdijX" ] ); try { @@ -909,9 +909,9 @@ public function testUpdateCoupon34() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 6570.0 + 'discount_percentage' => 7385.0 ] ); try { @@ -927,10 +927,10 @@ public function testUpdateCoupon35() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 3806.0, - 'name' => "eKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzShazSiZH6DDfNqfsVR" + 'discount_percentage' => 1498.0, + 'name' => "6Fkp0v2rObj5KP7CaX5R9O7hn" ] ); try { @@ -946,11 +946,11 @@ public function testUpdateCoupon36() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 4713.0, - 'description' => "zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE", - 'name' => "P3Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8nedbEkL6" + 'discount_percentage' => 1999.0, + 'description' => "MfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhvmvIjVKe7aM7QiN4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSB", + 'name' => "niTvgiF" ] ); try { @@ -966,12 +966,12 @@ public function testUpdateCoupon37() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 163.0, - 'discount_upper_limit' => 7894, - 'description' => "CbZlYCZFu0", - 'name' => "jXrvick1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfCWU5" + 'discount_percentage' => 2915.0, + 'discount_upper_limit' => 5152, + 'description' => "fXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1", + 'name' => "VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8M" ] ); try { @@ -987,13 +987,13 @@ public function testUpdateCoupon38() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 3220.0, - 'starts_at' => "2023-01-14T20:11:13.000000Z", - 'discount_upper_limit' => 382, - 'description' => "sIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhvmvIjVKe7aM7QiN4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJQCC2TKE3m70u", - 'name' => "0i2E7e3WC" + 'discount_percentage' => 201.0, + 'starts_at' => "2021-09-26T21:03:13.000000Z", + 'discount_upper_limit' => 348, + 'description' => "c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5x", + 'name' => "iIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w" ] ); try { @@ -1009,14 +1009,14 @@ public function testUpdateCoupon39() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 653.0, - 'ends_at' => "2020-05-10T09:02:19.000000Z", - 'starts_at' => "2020-11-30T00:52:03.000000Z", - 'discount_upper_limit' => 297, - 'description' => "knLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6mDyiAjmPC8F", - 'name' => "IFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2CPMRifb" + 'discount_percentage' => 5565.0, + 'ends_at' => "2022-12-31T14:16:19.000000Z", + 'starts_at' => "2020-02-05T09:21:00.000000Z", + 'discount_upper_limit' => 3013, + 'description' => "SDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtCl", + 'name' => "PPAh3ydu7juMaO7kqGjaASQkqyw2Q45pim16jWY8Li2yJ" ] ); try { @@ -1032,15 +1032,15 @@ public function testUpdateCoupon40() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 5106.0, - 'display_starts_at' => "2022-04-13T14:51:14.000000Z", - 'ends_at' => "2021-09-02T20:51:58.000000Z", - 'starts_at' => "2024-09-11T22:19:28.000000Z", - 'discount_upper_limit' => 8744, - 'description' => "zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPo", - 'name' => "ndGWEfVzKMwihh3UCJATPnnGfbSAjt8y1" + 'discount_percentage' => 7541.0, + 'display_starts_at' => "2023-10-11T19:52:31.000000Z", + 'ends_at' => "2021-12-30T21:37:20.000000Z", + 'starts_at' => "2023-02-07T14:38:04.000000Z", + 'discount_upper_limit' => 9389, + 'description' => "C9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy", + 'name' => "37fVBCxguWkgEaSRxikajDhky1e9" ] ); try { @@ -1056,16 +1056,16 @@ public function testUpdateCoupon41() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 6682.0, - 'display_ends_at' => "2023-03-27T12:55:40.000000Z", - 'display_starts_at' => "2023-07-13T16:01:52.000000Z", - 'ends_at' => "2022-03-01T03:43:14.000000Z", - 'starts_at' => "2022-08-25T20:27:12.000000Z", - 'discount_upper_limit' => 6872, - 'description' => "9w3aEMSDM7H6DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21GVpuNthlN8cTNxtClPPAh3ydu7juMaO7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvY", - 'name' => "k94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM" + 'discount_percentage' => 9165.0, + 'display_ends_at' => "2021-06-21T19:15:33.000000Z", + 'display_starts_at' => "2021-05-29T10:22:05.000000Z", + 'ends_at' => "2022-06-20T20:37:17.000000Z", + 'starts_at' => "2022-07-26T09:58:16.000000Z", + 'discount_upper_limit' => 9818, + 'description' => "9eEBDTjFI18oRpgCoDiEOfsuO3LMtzPm5pmHiztzTLcjSeNyveotr1SbLY9f9RM3h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0Ma", + 'name' => "OVTzO" ] ); try { @@ -1081,17 +1081,17 @@ public function testUpdateCoupon42() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 5811.0, - 'is_disabled' => TRUE, - 'display_ends_at' => "2023-11-17T07:50:03.000000Z", - 'display_starts_at' => "2023-09-29T11:12:50.000000Z", - 'ends_at' => "2021-12-20T11:34:23.000000Z", - 'starts_at' => "2024-07-16T20:21:37.000000Z", - 'discount_upper_limit' => 8257, - 'description' => "m6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn5", - 'name' => "6xgqcI" + 'discount_percentage' => 4825.0, + 'is_disabled' => FALSE, + 'display_ends_at' => "2020-03-19T03:59:17.000000Z", + 'display_starts_at' => "2025-01-01T20:29:33.000000Z", + 'ends_at' => "2021-03-25T08:47:13.000000Z", + 'starts_at' => "2021-10-26T19:22:34.000000Z", + 'discount_upper_limit' => 1436, + 'description' => "dS1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9oG2E8mJwg74tJdyJ5Llab29gfUQ6hTQL306GhITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq", + 'name' => "2aRw08aQ0" ] ); try { @@ -1107,18 +1107,18 @@ public function testUpdateCoupon43() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 5443.0, - 'is_hidden' => FALSE, - 'is_disabled' => TRUE, - 'display_ends_at' => "2021-03-29T07:18:08.000000Z", - 'display_starts_at' => "2024-03-02T08:23:49.000000Z", - 'ends_at' => "2024-03-01T15:27:18.000000Z", - 'starts_at' => "2024-07-24T04:50:02.000000Z", - 'discount_upper_limit' => 8365, - 'description' => "YUS4YiFzadS1dG4VhCAXdvLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNjF9pGXPoR6V6EH9oG2E8mJwg74", - 'name' => "JdyJ5Llab29gfUQ6hTQL306GhITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4zQipR66DYXbWwtCB" + 'discount_percentage' => 7410.0, + 'is_hidden' => TRUE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2023-02-13T03:59:11.000000Z", + 'display_starts_at' => "2022-10-08T08:51:46.000000Z", + 'ends_at' => "2022-06-02T03:37:52.000000Z", + 'starts_at' => "2025-05-20T00:14:00.000000Z", + 'discount_upper_limit' => 831, + 'description' => "sccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302sQl233vCftoqwC5tymvF1K2", + 'name' => "3X2uYu46ypSW9PxtiaID1SUCfz9yEelMoF9a26c2RLHzQWOO" ] ); try { @@ -1134,19 +1134,19 @@ public function testUpdateCoupon44() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 2397.0, - 'is_public' => FALSE, + 'discount_percentage' => 9920.0, + 'is_public' => TRUE, 'is_hidden' => TRUE, - 'is_disabled' => FALSE, - 'display_ends_at' => "2022-12-10T12:58:44.000000Z", - 'display_starts_at' => "2022-11-06T03:26:49.000000Z", - 'ends_at' => "2023-09-01T19:04:41.000000Z", - 'starts_at' => "2023-03-31T22:35:35.000000Z", - 'discount_upper_limit' => 7095, - 'description' => "uIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn33RIRSOmlXSQfzzTwn3Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4", - 'name' => "dUSAbqyi68iyJ302sQl2" + 'is_disabled' => TRUE, + 'display_ends_at' => "2025-06-15T09:04:43.000000Z", + 'display_starts_at' => "2023-02-05T13:50:39.000000Z", + 'ends_at' => "2025-06-19T21:12:18.000000Z", + 'starts_at' => "2024-10-04T16:44:28.000000Z", + 'discount_upper_limit' => 3982, + 'description' => "o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpaf36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTC", + 'name' => "mm3x115QsBZT6dCGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4" ] ); try { @@ -1162,20 +1162,20 @@ public function testUpdateCoupon45() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 4403.0, - 'code' => "CftoqwC", + 'discount_percentage' => 9655.0, + 'code' => "LViM", 'is_public' => FALSE, 'is_hidden' => TRUE, - 'is_disabled' => FALSE, - 'display_ends_at' => "2023-02-14T04:20:04.000000Z", - 'display_starts_at' => "2023-05-19T18:29:13.000000Z", - 'ends_at' => "2022-08-07T11:53:12.000000Z", - 'starts_at' => "2020-03-20T08:53:01.000000Z", - 'discount_upper_limit' => 911, - 'description' => "F1K23X2uYu46ypSW9PxtiaID1SUCfz9yEelMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR3fEQezBo8XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpaf36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWTCVmm3x115QsBZT6", - 'name' => "CGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G7cLViMByCBNzcDCX5bbsPzVUGeD" + 'is_disabled' => TRUE, + 'display_ends_at' => "2020-02-12T16:13:52.000000Z", + 'display_starts_at' => "2023-12-01T15:57:45.000000Z", + 'ends_at' => "2024-10-19T19:02:27.000000Z", + 'starts_at' => "2022-06-04T09:04:38.000000Z", + 'discount_upper_limit' => 5454, + 'description' => "zcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGaMjb1sugqjE", + 'name' => "eek3DeIDBfKsRBbYLkU2TfJXzuBqG" ] ); try { @@ -1191,21 +1191,21 @@ public function testUpdateCoupon46() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 3089.0, - 'usage_limit' => 4146, - 'code' => "B", - 'is_public' => FALSE, - 'is_hidden' => TRUE, + 'discount_percentage' => 3879.0, + 'usage_limit' => 7741, + 'code' => "FPReFsmx", + 'is_public' => TRUE, + 'is_hidden' => FALSE, 'is_disabled' => TRUE, - 'display_ends_at' => "2023-06-06T02:47:14.000000Z", - 'display_starts_at' => "2022-02-17T01:55:21.000000Z", - 'ends_at' => "2024-05-14T06:43:51.000000Z", - 'starts_at' => "2022-08-26T03:30:05.000000Z", - 'discount_upper_limit' => 7100, - 'description' => "UNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP7awM87Mt7bWysOyzqkBrGaMjb1sugqjEeek3DeIDBfKsRBbYLkU2TfJXzuBqGFPReFsmxaxT8Xwuc649dznjsqwxML0aHpi", - 'name' => "uFL917lUTrE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHafl1jNP9k7" + 'display_ends_at' => "2022-01-09T17:16:04.000000Z", + 'display_starts_at' => "2023-05-03T19:23:01.000000Z", + 'ends_at' => "2021-05-22T01:47:36.000000Z", + 'starts_at' => "2021-03-04T18:00:14.000000Z", + 'discount_upper_limit' => 6488, + 'description' => "wuc649dznjsqwxML0aHpiMuF", + 'name' => "L917lUTrE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHafl1jNP9k7uydClg9A7an27PrVxBqiE9YWo8xjmzBGJVwTTanAXyFjLag3g" ] ); try { @@ -1221,22 +1221,22 @@ public function testUpdateCoupon47() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 9717.0, - 'min_amount' => 637, - 'usage_limit' => 1639, - 'code' => "A7an27PrVx", + 'discount_percentage' => 8456.0, + 'min_amount' => 2768, + 'usage_limit' => 9997, + 'code' => "lq0FFnt", 'is_public' => TRUE, - 'is_hidden' => TRUE, + 'is_hidden' => FALSE, 'is_disabled' => FALSE, - 'display_ends_at' => "2020-07-20T10:22:33.000000Z", - 'display_starts_at' => "2021-06-15T16:43:49.000000Z", - 'ends_at' => "2021-01-04T08:56:25.000000Z", - 'starts_at' => "2022-04-16T21:20:25.000000Z", - 'discount_upper_limit' => 6410, - 'description' => "o8xjmzBGJVwTTanAXyFjLag3gPPvlq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJoc", - 'name' => "YKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8l" + 'display_ends_at' => "2021-08-03T15:44:25.000000Z", + 'display_starts_at' => "2025-07-25T06:03:24.000000Z", + 'ends_at' => "2021-02-11T01:09:05.000000Z", + 'starts_at' => "2021-06-21T05:24:34.000000Z", + 'discount_upper_limit' => 417, + 'description' => "0p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5", + 'name' => "3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnlZj6NtOwX2FI8Wr1369uaTF42a" ] ); try { @@ -1252,23 +1252,23 @@ public function testUpdateCoupon48() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 6731.0, + 'discount_percentage' => 2914.0, 'is_shop_specified' => FALSE, - 'min_amount' => 9315, - 'usage_limit' => 5979, - 'code' => "MPi", - 'is_public' => TRUE, + 'min_amount' => 5095, + 'usage_limit' => 9999, + 'code' => "mtEHAWzKV", + 'is_public' => FALSE, 'is_hidden' => FALSE, - 'is_disabled' => TRUE, - 'display_ends_at' => "2022-07-19T04:59:39.000000Z", - 'display_starts_at' => "2022-05-06T17:33:48.000000Z", - 'ends_at' => "2021-11-04T13:55:22.000000Z", - 'starts_at' => "2020-05-28T01:09:03.000000Z", - 'discount_upper_limit' => 1248, - 'description' => "3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnlZj6NtOwX2F", - 'name' => "8Wr1369uaTF42abkgSmtEHAWzKVmwmqN4ax1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLi" + 'is_disabled' => FALSE, + 'display_ends_at' => "2023-01-17T20:32:49.000000Z", + 'display_starts_at' => "2021-12-31T01:50:06.000000Z", + 'ends_at' => "2024-08-08T04:23:16.000000Z", + 'starts_at' => "2024-02-10T13:15:36.000000Z", + 'discount_upper_limit' => 1537, + 'description' => "1Q1Fha0o1JxRbdO7sJMkOiIt9zNKCX0VzisXLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu8", + 'name' => "aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI" ] ); try { @@ -1284,24 +1284,24 @@ public function testUpdateCoupon49() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 1733.0, - 'available_shop_ids' => ["4e279455-dfcc-48e9-bea1-8bf4223c58a7"], + 'discount_percentage' => 1485.0, + 'available_shop_ids' => ["f56c82e0-c87b-4a1a-b900-7e5049d1518d", "3eb4937e-9f4f-400c-844b-8e05115c5a55", "6beaf601-d480-4a9a-872b-e58a4a8ce071", "ab1ee887-7a3f-416b-b209-fcd8b4f25384", "47b867dd-8ba3-457d-b49b-b14116dd65e5", "a2d4d4cc-e46d-483e-85be-832da1e388d2", "39e2cb71-2584-4600-98dc-ccb5387e0b16"], 'is_shop_specified' => FALSE, - 'min_amount' => 4104, - 'usage_limit' => 808, - 'code' => "I", - 'is_public' => TRUE, - 'is_hidden' => FALSE, - 'is_disabled' => FALSE, - 'display_ends_at' => "2021-06-24T01:14:37.000000Z", - 'display_starts_at' => "2020-10-26T03:21:25.000000Z", - 'ends_at' => "2021-08-02T03:26:22.000000Z", - 'starts_at' => "2022-01-11T21:08:12.000000Z", - 'discount_upper_limit' => 2383, - 'description' => "hS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUC", - 'name' => "U4cuncfOgZgC0vnz9vdHX3zI21M9POKUqk" + 'min_amount' => 2018, + 'usage_limit' => 1453, + 'code' => "DROtzb2h", + 'is_public' => FALSE, + 'is_hidden' => TRUE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2024-07-27T08:36:25.000000Z", + 'display_starts_at' => "2021-09-30T05:43:01.000000Z", + 'ends_at' => "2022-10-21T07:22:43.000000Z", + 'starts_at' => "2025-01-04T01:40:17.000000Z", + 'discount_upper_limit' => 6393, + 'description' => "QXA4kt1s5IzgftNOCeiOWbpouk4VaYSYsK", + 'name' => "6oU3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn9tkKJsfEeEirDJBvMOLUpWvpk" ] ); try { @@ -1317,25 +1317,25 @@ public function testUpdateCoupon50() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "b8e6ded4-b567-4487-bcdc-ad93dcd8cfb0", + "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", [ - 'discount_percentage' => 4996.0, - 'storage_id' => "47b867dd-8ba3-457d-b49b-b14116dd65e5", - 'available_shop_ids' => ["6849cabe-832d-48d2-b184-6600d6dcecd8", "bd9001dc-ccb5-4b16-a1e2-c5adffe939ba", "15d866ba-92f7-4e87-84d2-0d4f27008c0a", "6e949574-0cc0-46fa-8362-1ab29833af23", "7248b71d-2f11-48e8-a9fa-7e946e14bb71", "6898d089-6d65-49e1-8381-58f95b5fec21"], + 'discount_percentage' => 6886.0, + 'storage_id' => "17b33c84-f761-4042-b741-021b21b38cc8", + 'available_shop_ids' => ["9b381b05-e50e-4b0a-b59f-ca675200137f", "f7f81e62-b7a9-4397-a0ca-29b17f3a893a"], 'is_shop_specified' => FALSE, - 'min_amount' => 3212, - 'usage_limit' => 1198, - 'code' => "A4kt1s5I", + 'min_amount' => 4503, + 'usage_limit' => 9296, + 'code' => "mdwaTBcNwq", 'is_public' => FALSE, - 'is_hidden' => TRUE, + 'is_hidden' => FALSE, 'is_disabled' => FALSE, - 'display_ends_at' => "2021-05-22T06:53:49.000000Z", - 'display_starts_at' => "2020-10-25T07:44:38.000000Z", - 'ends_at' => "2021-09-16T00:33:56.000000Z", - 'starts_at' => "2023-03-01T01:28:46.000000Z", - 'discount_upper_limit' => 7209, - 'description' => "CeiOWbpouk4VaYSYsKX6oU3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn9tkKJsfEeEirDJBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcNwqaqeRCH16a6zzUqrHdosHdbmLywqukvEUDGTtuu5mLHhGQ9yekqoyNLKN2h7BNq3rRMob2yqEg", - 'name' => "sKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAI" + 'display_ends_at' => "2023-06-12T06:57:22.000000Z", + 'display_starts_at' => "2024-10-29T03:32:45.000000Z", + 'ends_at' => "2025-02-13T06:48:35.000000Z", + 'starts_at' => "2023-09-13T09:54:16.000000Z", + 'discount_upper_limit' => 1555, + 'description' => "6a6zzUqrHdosHdbmLywqukvEUDGTtuu5mLHhGQ9yekqoyNLKN2h7BNq3rRMob2yqEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4p", + 'name' => "FSkfz0ZAYuHKErS89ga8rAwXpAiqwTxt1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHHw3tEd" ] ); try { diff --git a/tests/UpdateWebhookTest.php b/tests/UpdateWebhookTest.php index 0da70349..1070b6a9 100644 --- a/tests/UpdateWebhookTest.php +++ b/tests/UpdateWebhookTest.php @@ -8,7 +8,7 @@ public function testUpdateWebhook0() { $client = $this->newClient(); $request = new Request\UpdateWebhook( - "ea6a70f3-050a-4bf1-9a27-33fb8f3cc3ff" + "5ac0ed31-2294-48bf-9e63-6a7ddcb86809" ); try { $response = $client->send($request); @@ -23,7 +23,7 @@ public function testUpdateWebhook1() { $client = $this->newClient(); $request = new Request\UpdateWebhook( - "ea6a70f3-050a-4bf1-9a27-33fb8f3cc3ff", + "5ac0ed31-2294-48bf-9e63-6a7ddcb86809", [ 'task' => "bulk_shops" ] @@ -41,10 +41,10 @@ public function testUpdateWebhook2() { $client = $this->newClient(); $request = new Request\UpdateWebhook( - "ea6a70f3-050a-4bf1-9a27-33fb8f3cc3ff", + "5ac0ed31-2294-48bf-9e63-6a7ddcb86809", [ 'is_active' => FALSE, - 'task' => "bulk_shops" + 'task' => "process_user_stats_operation" ] ); try { @@ -60,11 +60,11 @@ public function testUpdateWebhook3() { $client = $this->newClient(); $request = new Request\UpdateWebhook( - "ea6a70f3-050a-4bf1-9a27-33fb8f3cc3ff", + "5ac0ed31-2294-48bf-9e63-6a7ddcb86809", [ - 'url' => "3ZF38", + 'url' => "t", 'is_active' => TRUE, - 'task' => "process_user_stats_operation" + 'task' => "bulk_shops" ] ); try { diff --git a/tests/tdsl/CreateNewCustomerWithAccountTest.php b/tests/tdsl/CreateNewCustomerWithAccountTest.php new file mode 100644 index 00000000..d8e7e4e6 --- /dev/null +++ b/tests/tdsl/CreateNewCustomerWithAccountTest.php @@ -0,0 +1,76 @@ +newClient(); + $userName = "user-name" . $this->randomString(6); + $accountName = "account-name" . $this->randomString(6); + $customerAccount = $client->send(new Request\CreateCustomerAccount( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + [ + "user_name" => $userName, + "account_name" => $accountName, + ] + )); + $this->assertEquals($userName, $customerAccount->user->name); + $this->assertEquals($accountName, $customerAccount->name); + $shopName = "shop-name" . $this->randomString(6); + $shop = $client->send(new Request\CreateShopV2( + $shopName, + [ + "private_money_ids" => ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"], + "can_topup_private_money_ids" => ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"], + ] + )); + $topupTransaction = $client->send(new Request\CreateTopupTransaction( + $shop->id, + $customerAccount->user->id, + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + [ + "money_amount" => 1000, + "point_amount" => 1000, + ] + )); + $this->assertEquals($topupTransaction->type, "topup"); + $paymentTransaction = $client->send(new Request\CreatePaymentTransaction( + $shop->id, + $customerAccount->user->id, + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + 100, + )); + $bill = $client->send(new Request\CreateBill( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + $shop->id, + )); + $billUpdated = $client->send(new Request\UpdateBill( + $bill->id, + [ + "amount" => 200.0, + ] + )); + $billPayment = $client->send(new Request\CreatePaymentTransactionWithBill( + $bill->id, + $customerAccount->user->id, + )); + $this->assertEquals($paymentTransaction->type, "payment"); + $this->assertEquals($billPayment->type, "payment"); + $transactions = $client->send(new Request\ListTransactionsV2([ + "private_money_id" => "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + "shop_id" => $shop->id, + "customer_id" => $customerAccount->user->id, + ] + )); + $billTransactions = $client->send(new Request\ListBillTransactions([ + "private_money_id" => "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + "shop_id" => $shop->id, + "customer_id" => $customerAccount->user->id, + ] + )); + $this->assertEquals($transactions->count, 3); + $this->assertEquals($billTransactions->count, 1); + } +} diff --git a/tests/tdsl/CreateOrganizationTest.php b/tests/tdsl/CreateOrganizationTest.php index 2cc1d996..27d32b4e 100644 --- a/tests/tdsl/CreateOrganizationTest.php +++ b/tests/tdsl/CreateOrganizationTest.php @@ -10,8 +10,8 @@ public function testCreateOrganization() $code = "test-org" . $this->randomString(6); $name = "テスト組織" . $this->randomString(4); $privateMoneyIds = ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"]; - $issuerAdminUserEmail = $this->randomString(6) . "@pokepay-tests.jp"; - $memberAdminUserEmail = $this->randomString(6) . "@pokepay-tests.jp"; + $issuerAdminUserEmail = "blackhole@pokepay.jp"; + $memberAdminUserEmail = "blackhole@pokepay.jp"; $response = $client->send(new Request\CreateOrganization( $code, $name, @@ -28,8 +28,8 @@ public function testCreateOrganizationWithMetadata() $code = "test-org" . $this->randomString(6); $name = "テスト組織" . $this->randomString(4); $privateMoneyIds = ["4b138a4c-8944-4f98-a5c4-96d3c1c415eb"]; - $issuerAdminUserEmail = $this->randomString(6) . "@pokepay-tests.jp"; - $memberAdminUserEmail = $this->randomString(6) . "@pokepay-tests.jp"; + $issuerAdminUserEmail = "blackhole@pokepay.jp"; + $memberAdminUserEmail = "blackhole@pokepay.jp"; $bankCode = "1234"; $bankName = $this->randomString(4) . "銀行"; $bankBranchCode = "123"; diff --git a/tests/tdsl/RegisterBankAccount.php b/tests/tdsl/RegisterBankAccount.php new file mode 100644 index 00000000..d95a5230 --- /dev/null +++ b/tests/tdsl/RegisterBankAccount.php @@ -0,0 +1,45 @@ +newClient(); + $customerName = "customer-name" . $this->randomString(6); + $accountName = "account-name" . $this->randomString(6); + $customer = $client->send(new Request\CreateCustomerAccount( + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + [ + "user_name" => $customerName, + "account_name" => $accountName, + ] + )); + $userDeviceMetadata = "{\"user_agent\": \"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0\"}"; + $userDevice = $client->send(new Request\CreateUserDevice( + $customer->user->id, + [ + "metadata" => $userDeviceMetadata, + ] + )); + $getUserDeviceResponse = $client->send(new Request\GetUserDevice( + $userDevice->id, + )); + $this->assertEquals($getUserDeviceResponse->isActive, FALSE); + $userDeviceActivated = $client->send(new Request\ActivateUserDevice( + $getUserDeviceResponse->id, + )); + $this->assertEquals($userDeviceActivated->isActive, TRUE); + $createBank = $client->send(new Request\CreateBank( + $getUserDeviceResponse->id, + "4b138a4c-8944-4f98-a5c4-96d3c1c415eb", + "dummy", + "ポケペイタロウ", + )); + $bankAccountsListed = $client->send(new Request\ListBanks( + $getUserDeviceResponse->id, + )); + $this->assertEquals($bankAccountsListed->count, 0); + } +} From d693038bee8350a8bfe5bea1b901feb357dd6464 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Mon, 29 Sep 2025 09:51:51 +0000 Subject: [PATCH 2/3] update error-response.csv --- docs/error-response.csv | 274 ++++++++++++++++++++++++++++++++++------ 1 file changed, 234 insertions(+), 40 deletions(-) diff --git a/docs/error-response.csv b/docs/error-response.csv index 574ef6cb..c03bfbde 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -1,4 +1,5 @@ method,path,status_code,type,ja,en +GET,/ping,418,,, GET,/user,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission GET,/dashboard,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found @@ -20,6 +21,9 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -29,8 +33,14 @@ POST,/transactions,400,invalid_parameter_both_point_and_money_are_zero,,One of ' ,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -78,7 +88,10 @@ POST,/transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,One of 'money_amount' or 'point_amount' must be a positive (>0) number ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -88,8 +101,13 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,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,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -107,6 +125,8 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,customer_account_not_found,,The customer account is not found ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found @@ -114,7 +134,10 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,check_not_found,"これはチャージQRコードではありません",This is not a topup QR code -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -124,8 +147,13 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -145,22 +173,73 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,check_already_received,"このチャージQRコードは既に受取済みの為、チャージ出来ませんでした",Check is already received ,,422,check_unavailable,"このチャージQRコードは利用できません",The topup QR code is not available ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid +,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. +,,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 +POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup +,,422,private_money_closed,"このマネーは解約されています",This money was closed +,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled +,,422,account_restricted,"特定のアカウントの支払いに制限されています",The account is restricted to pay for a specific account +,,422,account_balance_not_enough,"口座残高が不足してます",The account balance is not enough +,,422,c2c_transfer_not_allowed,"このマネーではユーザ間マネー譲渡は利用できません",Customer to customer transfer is not available for this money +,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer +,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit +,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -170,8 +249,6 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,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 @@ -179,9 +256,21 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,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 -POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata ,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,customer_account_not_found,,The customer account is not found +,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable +POST,/transactions/payment/bill,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,disabled_bill,"支払いQRコードが無効です",Bill is disabled +,,422,customer_user_not_found,,The customer user is not found +,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -191,8 +280,13 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -202,6 +296,8 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに ,,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 @@ -210,14 +306,16 @@ POST,/transactions/payment,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id -,,422,customer_account_not_found,,The customer account is not found -,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found -,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -227,8 +325,13 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -248,11 +351,16 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/exchange,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -268,8 +376,14 @@ POST,/transactions/exchange,422,account_not_found,"アカウントが見つか ,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -289,7 +403,10 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,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,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -299,8 +416,13 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,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,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -320,6 +442,8 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,organization_not_issuer,"発行体以外に許可されていない操作です",Unpermitted operation except for issuer organizations. @@ -329,7 +453,10 @@ POST,/transactions/bulk,403,unpermitted_admin_user,"この管理ユーザには POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,cashtray_not_found,"決済QRコードが見つかりません",Cashtray is not found -,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format +,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -339,8 +466,13 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -360,6 +492,8 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency ,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,422,cashtray_already_proceed,"この決済QRコードは既に処理されています",Cashtray is already proceed ,,422,cashtray_expired,"この決済QRコードは有効期限が切れています",Cashtray is expired ,,422,cashtray_already_canceled,"この決済QRコードは既に無効化されています",Cashtray is already canceled @@ -369,11 +503,13 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,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,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -390,8 +526,13 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -399,6 +540,8 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,422,coupon_amount_not_enough,"このクーポンを使用するには支払い額が足りません。",The payment amount not enough to use this coupon. ,,422,coupon_not_payment,"クーポンは支払いにのみ使用できます。",Coupons can only be used for payment. ,,422,coupon_unavailable,"このクーポンは使用できません。",This coupon is unavailable. +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,invalid_metadata,"メタデータの形式が不正です",Invalid metadata format ,,503,temporarily_unavailable,,Service Unavailable POST,/external-transactions/:uuid/refund,400,invalid_mdk_token,,Invalid MDK token ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -425,14 +568,18 @@ GET,/bulk-transactions/:uuid,404,notfound,,Not found GET,/bulk-transactions/:uuid/jobs,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,bulk_transaction_not_found,"Bulk取引が見つかりません",Bulk transaction not found GET,/bills,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission -POST,/bills,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +GET,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,bill_not_found,"支払いQRコードが見つかりません",Bill not found +POST,/bills,400,invalid_parameter_bill_amount_or_range_exceeding_transfer_limit,"支払いQRコードの金額がマネーの取引可能金額の上限を超えています",The input amount is exceeding the private money's limit for transfer +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_account_not_found,"店舗アカウントが見つかりません",The shop account is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,account_closed,"アカウントは退会しています",The account is closed ,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed ,,422,account_suspended,"アカウントは停止されています",The account is suspended -PATCH,/bills/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +PATCH,/bills/:uuid,400,invalid_parameter_bill_amount_or_range_exceeding_transfer_limit,"支払いQRコードの金額がマネーの取引可能金額の上限を超えています",The input amount is exceeding the private money's limit for transfer +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found GET,/checks,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found @@ -517,6 +664,7 @@ POST,/private-moneys,400,invalid_parameters,"項目が無効です",Invalid para ,,422,organization_not_found,,Organization not found ,,422,only_one_of_months_and_days_can_be_selected,"月と日のどちらか1つだけを選択できます",Only one of months and days can be selected ,,422,private_money_topup_transaction_limit_exceeded,"一回のチャージ取引の最大チャージ可能額がウォレットの最大マネー残高を越えています",The money amount for the transaction exceeds the maximum balance +,,503,temporarily_unavailable,,Service Unavailable GET,/terminals,403,,, GET,/organizations,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission @@ -693,6 +841,9 @@ PATCH,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権 DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,account_not_pre_closed,"アカウントが退会準備中ではありません",The account is not pre-closed +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,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 @@ -708,8 +859,14 @@ DELETE,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには ,,422,account_transfer_limit_exceeded,"取引金額が上限を超えました",Too much amount to transfer ,,422,account_balance_exceeded,"口座残高が上限を超えました",The account balance exceeded the limit ,,422,account_money_topup_transfer_limit_exceeded,"マネーチャージ金額が上限を超えました",Too much amount to money topup transfer -,,422,account_total_topup_limit_range,"期間内での合計チャージ額上限に達しました",Entire period topup limit reached -,,422,account_total_topup_limit_entire_period,"全期間での合計チャージ額上限に達しました",Entire period topup limit reached +,,422,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -730,6 +887,7 @@ GET,/accounts/:uuid/expired-balances,403,unpermitted_admin_user,"この管理ユ ,,503,temporarily_unavailable,,Service Unavailable GET,/accounts/:uuid/transfers/summary,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,503,temporarily_unavailable,,Service Unavailable GET,/users/:uuid/accounts,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found ,,503,temporarily_unavailable,,Service Unavailable @@ -833,8 +991,10 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled ,,422,user_device_not_found,,The user-device not found -,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,not_applicable_transaction_type_for_account_topup_quota,"チャージ取引以外の取引種別ではチャージ可能枠を使用できません",Account topup quota is not applicable to transaction types other than topup. +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. ,,422,account_can_not_topup,"この店舗からはチャージできません",account can not topup ,,422,private_money_closed,"このマネーは解約されています",This money was closed ,,422,transaction_has_done,"取引は完了しており、キャンセルすることはできません",Transaction has been copmpleted and cannot be canceled @@ -844,8 +1004,14 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,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,reserved_word_can_not_specify_to_metadata,"取引メタデータに予約語は指定出来ません",Reserved word can not specify to metadata +,,422,account_topup_quota_not_splittable,"このチャージ可能枠は設定された金額未満の金額には使用できません",This topup quota is only applicable to its designated money amount. +,,422,topup_amount_exceeding_topup_quota_usable_amount,"チャージ金額がチャージ可能枠の利用可能金額を超えています",Topup amount is exceeding the topup quota's usable amount +,,422,account_topup_quota_inactive,"指定されたチャージ可能枠は有効ではありません",Topup quota is inactive +,,422,account_topup_quota_not_within_applicable_period,"指定されたチャージ可能枠の利用可能期間外です",Topup quota is not applicable at this time +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_total_topup_limit_range,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount within the period defined by the money. +,,422,account_total_topup_limit_entire_period,"合計チャージ額がマネーで指定された期間内での上限を超えています",The topup exceeds the total amount defined by the money. ,,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. @@ -864,6 +1030,7 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,same_account_transaction,"同じアカウントに送信しています",Sending to the same account ,,422,transaction_invalid_done_at,"取引完了日が無効です",Transaction completion date is invalid ,,422,transaction_invalid_amount,"取引金額が数値ではないか、受け入れられない桁数です",Transaction amount is not a number or cannot be accepted for this currency +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id ,,422,paytree_disabled_private_money,"このマネーは銀行から引き落とし出来ません",This money cannot be charged from the bank ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,503,temporarily_unavailable,,Service Unavailable @@ -876,3 +1043,30 @@ POST,/paytree/charge-entry-result,400,partner_decryption_failed,"リクエスト ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. POST,/paytree/reconcile,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,503,temporarily_unavailable,,Service Unavailable +POST,/accounts/:uuid/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/accounts/:uuid/topup-quotas,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/accounts/:uuid/topup-quotas/:quota-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +PATCH,/accounts/:uuid/topup-quotas/:quota-id,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +DELETE,/accounts/:uuid/topup-quotas/:quota-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +GET,/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,private_money_topup_quota_not_available,"このマネーにはチャージ可能枠の設定がありません",Topup quota is not available with this private money. +,,422,account_topup_quota_not_found,"ウォレットにチャージ可能枠がありません",Topup quota is not found with this account +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found From 10a246c62d0e8f738f3b1d55af3c71e748d9b997 Mon Sep 17 00:00:00 2001 From: pokepay-ci Date: Mon, 29 Sep 2025 09:51:51 +0000 Subject: [PATCH 3/3] 0.4.27 --- lib/PartnerAPI.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PartnerAPI.php b/lib/PartnerAPI.php index f504a12c..cdc36988 100644 --- a/lib/PartnerAPI.php +++ b/lib/PartnerAPI.php @@ -10,7 +10,7 @@ class PartnerAPI private $clientSecret; private $apiBase; - const VERSION = '0.4.26'; + const VERSION = '0.4.27'; private $config = array();