diff --git a/docs/README.md b/docs/README.md index ea4fe68d..0e7de15d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -115,6 +115,8 @@ while (true) { - [GetCpmToken](./transaction.md#get-cpm-token): CPMトークンの状態取得 - [ListTransactions](./transaction.md#list-transactions): 【廃止】取引履歴を取得する - [CreateTransaction](./transaction.md#create-transaction): 【廃止】チャージする +- [CreateTransactionGroup](./transaction.md#create-transaction-group): トランザクショングループを作成する +- [ShowTransactionGroup](./transaction.md#show-transaction-group): トランザクショングループを取得する - [ListTransactionsV2](./transaction.md#list-transactions-v2): 取引履歴を取得する - [ListBillTransactions](./transaction.md#list-bill-transactions): 支払い取引履歴を取得する - [CreateTopupTransaction](./transaction.md#create-topup-transaction): チャージする @@ -166,8 +168,23 @@ while (true) { - [GetCustomerAccounts](./customer.md#get-customer-accounts): エンドユーザーのウォレット一覧を表示する - [CreateCustomerAccount](./customer.md#create-customer-account): 新規エンドユーザーをウォレットと共に追加する - [GetShopAccounts](./customer.md#get-shop-accounts): 店舗ユーザーのウォレット一覧を表示する +- [GetCustomerCards](./customer.md#get-customer-cards): エンドユーザーのクレジットカード一覧を取得する +- [DeleteCustomerCard](./customer.md#delete-customer-card): エンドユーザーのクレジットカードを削除する +- [CreditCardTopupWithMembership](./customer.md#credit-card-topup-with-membership): 登録済みクレジットカードでチャージする(3Dセキュア) +- [CreditCardTopupWithMdkToken](./customer.md#credit-card-topup-with-mdk-token): 未登録クレジットカード(MDKトークン)でチャージする(3Dセキュア) - [ListCustomerTransactions](./customer.md#list-customer-transactions): 取引履歴を取得する +### CreditSession +- [PostCreditSession](./credit_session.md#post-credit-session): Create credit session +- [CreateCreditSessionTransaction](./credit_session.md#create-credit-session-transaction): Create transaction with credit session +- [CaptureCreditSession](./credit_session.md#capture-credit-session): Capture credit session + +### CVS +- [GetCvsAuthorizations](./cvs.md#get-cvs-authorizations): コンビニ決済の申し込み情報一覧取得 +- [CreateCvsAuthorization](./cvs.md#create-cvs-authorization): コンビニ決済申込 +- [CancelCvsAuthorization](./cvs.md#cancel-cvs-authorization): コンビニ決済の申し込みキャンセル +- [GetCvsAuthorization](./cvs.md#get-cvs-authorization): コンビニ決済の申し込み情報取得 + ### Organization - [ListOrganizations](./organization.md#list-organizations): 加盟店組織の一覧を取得する - [CreateOrganization](./organization.md#create-organization): 新規加盟店組織を追加する diff --git a/docs/account.md b/docs/account.md index f6f909b1..b149913d 100644 --- a/docs/account.md +++ b/docs/account.md @@ -1,4 +1,11 @@ # Account +ウォレットを表すデータです。 +CustomerもMerchantも所有し、ウォレット間の送金は取引として記録されます。 +Customerのウォレットはマネー残高(有償バリュー)、ポイント残高(無償バリュー)の2種類の残高をもちます。 +また有効期限別で金額管理しており、有効期限はチャージ時のコンテキストによって決定されます。 +ユーザはマネー別に複数のウォレットを保有することが可能です。 +ただし1マネー1ウォレットのみであり、同一マネーのウォレットを複数所有することはできません。 + ## ListUserAccounts: エンドユーザー、店舗ユーザーのウォレット一覧を表示する @@ -8,8 +15,8 @@ $request = new Request\ListUserAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userId: ユーザーID [ - 'page' => 3215, // ページ番号 - 'per_page' => 4705 // 1ページ分の取引数 + 'page' => 3029, // ページ番号 + 'per_page' => 9398 // 1ページ分の取引数 ] ); ``` @@ -17,13 +24,14 @@ $request = new Request\ListUserAccounts( ### Parameters -**`user_id`** - - +#### `user_id` ユーザーIDです。 指定したユーザーIDのウォレット一覧を取得します。パートナーキーと紐づく組織が発行しているマネーのウォレットのみが表示されます。 +
+スキーマ + ```json { "type": "string", @@ -31,11 +39,14 @@ $request = new Request\ListUserAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -43,11 +54,14 @@ $request = new Request\ListUserAccounts( } ``` -**`per_page`** - +
+#### `per_page` 1ページ当たりのウォレット数です。デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -55,6 +69,8 @@ $request = new Request\ListUserAccounts( } ``` +
+ 成功したときは @@ -75,8 +91,8 @@ $request = new Request\CreateUserAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userId: ユーザーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'name' => "r0sMpkdiHOOwl5xIQiAP4UplfuFUQK5yc0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH9qH3TntlxmPSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39Scas", // ウォレット名 - 'external_id' => "ZnA58jo0hnz", // 外部ID + 'name' => "XIAxp1c5Q2vG7By91KC2xkwbMvROWfUAhh6XnZz0yJYgRGAM6oTzljbZYS9b6qmrSFaDiVxdn1z0TuA7dLQ8GnuuGnm3um0ZKYlqHYAPfacx4ba4pxXiFCicQd3QQrdtpp5IlW8KnTaroT8w3801ZxeZpTa0FFkkUFLVCDKp9TvCsVFg3Dy6t9FVfvRBKOl2QQeBI5NM6J7EhkzGk22yYle2ZOPXJOiEYcNwwBKhoxCdqw8S", // ウォレット名 + 'external_id' => "S6L7O", // 外部ID 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ ] ); @@ -85,11 +101,12 @@ $request = new Request\CreateUserAccount( ### Parameters -**`user_id`** - - +#### `user_id` ユーザーIDです。 +
+スキーマ + ```json { "type": "string", @@ -97,13 +114,16 @@ $request = new Request\CreateUserAccount( } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 作成するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -111,9 +131,12 @@ $request = new Request\CreateUserAccount( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -122,9 +145,12 @@ $request = new Request\CreateUserAccount( } ``` -**`external_id`** - +
+#### `external_id` + +
+スキーマ ```json { @@ -133,15 +159,18 @@ $request = new Request\CreateUserAccount( } ``` -**`metadata`** - +
+#### `metadata` ウォレットに付加するメタデータをJSON文字列で指定します。 指定できるJSON文字列には以下のような制約があります。 - フラットな構造のJSONを文字列化したものであること。 - keyは最大32文字の文字列(同じkeyを複数指定することはできません) - valueには128文字以下の文字列が指定できます +
+スキーマ + ```json { "type": "string", @@ -149,6 +178,8 @@ $request = new Request\CreateUserAccount( } ``` +
+ 成功したときは diff --git a/docs/bank_pay.md b/docs/bank_pay.md index 100b79b2..bd9eecd0 100644 --- a/docs/bank_pay.md +++ b/docs/bank_pay.md @@ -1,7 +1,6 @@ # BankPay BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 - ## DeleteBank: 銀行口座の削除 銀行口座を削除します @@ -16,9 +15,10 @@ $request = new Request\DeleteBank( ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -27,9 +27,12 @@ $request = new Request\DeleteBank( } ``` -**`bank_id`** - +
+ +#### `bank_id` +
+スキーマ ```json { @@ -38,6 +41,8 @@ $request = new Request\DeleteBank( } ``` +
+ 成功したときは @@ -65,9 +70,10 @@ $request = new Request\ListBanks( ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -76,9 +82,12 @@ $request = new Request\ListBanks( } ``` -**`private_money_id`** - +
+#### `private_money_id` + +
+スキーマ ```json { @@ -87,6 +96,8 @@ $request = new Request\ListBanks( } ``` +
+ 成功したときは @@ -105,7 +116,6 @@ $request = new Request\ListBanks( ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 アプリの場合はDeep Linkを使うことを想定しています。 - ```PHP $request = new Request\CreateBank( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID @@ -113,7 +123,7 @@ $request = new Request\CreateBank( "", // callbackUrl: コールバックURL "ポケペイタロウ", // kana: ユーザーの氏名 (片仮名で指定) [ - 'email' => "CQCIIRDiJ5@EWSp.com", // ユーザーのメールアドレス + 'email' => "TvYgQYDODN@TX3Y.com", // ユーザーのメールアドレス 'birthdate' => "19901142" // 生年月日 ] ); @@ -122,9 +132,10 @@ $request = new Request\CreateBank( ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -133,9 +144,12 @@ $request = new Request\CreateBank( } ``` -**`private_money_id`** - +
+ +#### `private_money_id` +
+スキーマ ```json { @@ -144,9 +158,12 @@ $request = new Request\CreateBank( } ``` -**`callback_url`** - +
+#### `callback_url` + +
+スキーマ ```json { @@ -155,9 +172,12 @@ $request = new Request\CreateBank( } ``` -**`kana`** - +
+ +#### `kana` +
+スキーマ ```json { @@ -166,9 +186,12 @@ $request = new Request\CreateBank( } ``` -**`email`** - +
+#### `email` + +
+スキーマ ```json { @@ -178,9 +201,12 @@ $request = new Request\CreateBank( } ``` -**`birthdate`** - +
+ +#### `birthdate` +
+スキーマ ```json { @@ -189,6 +215,8 @@ $request = new Request\CreateBank( } ``` +
+ 成功したときは @@ -208,7 +236,7 @@ $request = new Request\CreateBank( $request = new Request\CreateBankTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // userDeviceId: デバイスID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - 8799, // amount: チャージ金額 + 6708, // amount: チャージ金額 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // bankId: 銀行ID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // requestId: リクエストID [ @@ -220,9 +248,10 @@ $request = new Request\CreateBankTopupTransaction( ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -231,9 +260,12 @@ $request = new Request\CreateBankTopupTransaction( } ``` -**`private_money_id`** - +
+#### `private_money_id` + +
+スキーマ ```json { @@ -242,9 +274,12 @@ $request = new Request\CreateBankTopupTransaction( } ``` -**`amount`** - +
+ +#### `amount` +
+スキーマ ```json { @@ -253,9 +288,12 @@ $request = new Request\CreateBankTopupTransaction( } ``` -**`bank_id`** - +
+#### `bank_id` + +
+スキーマ ```json { @@ -264,9 +302,12 @@ $request = new Request\CreateBankTopupTransaction( } ``` -**`receiver_user_id`** - +
+ +#### `receiver_user_id` +
+スキーマ ```json { @@ -275,9 +316,12 @@ $request = new Request\CreateBankTopupTransaction( } ``` -**`request_id`** - +
+#### `request_id` + +
+スキーマ ```json { @@ -286,6 +330,8 @@ $request = new Request\CreateBankTopupTransaction( } ``` +
+ 成功したときは diff --git a/docs/bill.md b/docs/bill.md index ae9801d4..82a69673 100644 --- a/docs/bill.md +++ b/docs/bill.md @@ -1,5 +1,16 @@ # Bill -支払いQRコード +支払いQRコード(トークン)を表すデータです。 +URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。 +ログイン済みユーザアプリで読込むことで、支払い取引を作成します。 +設定される支払い金額(amount)は、固定値とユーザによる自由入力の2パターンがあります。 +amountが空の場合は、ユーザによる自由入力で受け付けた金額で支払いを行います。 +有効期限は比較的長命で利用される事例が多いです。 + +複数マネー対応支払いQRコードについて: +オプショナルで複数のマネーを1つの支払いQRコードに設定可能です。 +その場合ユーザ側でどのマネーで支払うか指定可能です。 +複数マネー対応支払いQRコードにはデフォルトのマネーウォレットを設定する必要があり、ユーザがマネーを明示的に選択しなかった場合はデフォルトのマネーによる支払いになります。 + ## ListBills: 支払いQRコード一覧を表示する @@ -8,19 +19,19 @@ ```PHP $request = new Request\ListBills( [ - 'page' => 8556, // ページ番号 - 'per_page' => 1583, // 1ページの表示数 - 'bill_id' => "xkj3y6Qj", // 支払いQRコードのID + 'page' => 3385, // ページ番号 + 'per_page' => 9515, // 1ページの表示数 + 'bill_id' => "ow", // 支払いQRコードのID 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 'organization_code' => "-1j72CMY-6ss", // 組織コード + 'organization_code' => "I-67J-T", // 組織コード 'description' => "test bill", // 取引説明文 - 'created_from' => "2021-10-15T19:09:54.000000Z", // 作成日時(起点) - 'created_to' => "2021-09-18T07:26:49.000000Z", // 作成日時(終点) + 'created_from' => "2020-10-17T02:26:13.000000Z", // 作成日時(起点) + 'created_to' => "2024-03-23T16:45:49.000000Z", // 作成日時(終点) 'shop_name' => "bill test shop1", // 店舗名 'shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - 'lower_limit_amount' => 976, // 金額の範囲によるフィルタ(下限) - 'upper_limit_amount' => 3197, // 金額の範囲によるフィルタ(上限) - 'is_disabled' => FALSE // 支払いQRコードが無効化されているかどうか + 'lower_limit_amount' => 3641, // 金額の範囲によるフィルタ(下限) + 'upper_limit_amount' => 2814, // 金額の範囲によるフィルタ(上限) + 'is_disabled' => TRUE // 支払いQRコードが無効化されているかどうか ] ); ``` @@ -28,11 +39,12 @@ $request = new Request\ListBills( ### Parameters -**`page`** - - +#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -40,11 +52,14 @@ $request = new Request\ListBills( } ``` -**`per_page`** - +
+#### `per_page` 1ページに表示する支払いQRコードの数です。 +
+スキーマ + ```json { "type": "integer", @@ -52,22 +67,28 @@ $request = new Request\ListBills( } ``` -**`bill_id`** - +
+#### `bill_id` 支払いQRコードのIDを指定して検索します。IDは前方一致で検索されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`private_money_id`** - +
+#### `private_money_id` 支払いQRコードの送金元ウォレットのマネーIDでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -75,11 +96,14 @@ $request = new Request\ListBills( } ``` -**`organization_code`** - +
+#### `organization_code` 支払いQRコードの送金元店舗が所属する組織の組織コードでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -88,11 +112,14 @@ $request = new Request\ListBills( } ``` -**`description`** - +
+#### `description` 支払いQRコードを読み取ることで作られた取引の説明文としてアプリなどに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -100,13 +127,16 @@ $request = new Request\ListBills( } ``` -**`created_from`** - +
+#### `created_from` 支払いQRコードの作成日時でフィルターします。 これ以降に作成された支払いQRコードのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -114,13 +144,16 @@ $request = new Request\ListBills( } ``` -**`created_to`** - +
+#### `created_to` 支払いQRコードの作成日時でフィルターします。 これ以前に作成された支払いQRコードのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -128,11 +161,14 @@ $request = new Request\ListBills( } ``` -**`shop_name`** - +
+#### `shop_name` 支払いQRコードを作成した店舗名でフィルターします。店舗名は部分一致で検索されます。 +
+スキーマ + ```json { "type": "string", @@ -140,11 +176,14 @@ $request = new Request\ListBills( } ``` -**`shop_id`** - +
+#### `shop_id` 支払いQRコードを作成した店舗IDでフィルターします。 +
+スキーマ + ```json { "type": "string", @@ -152,11 +191,14 @@ $request = new Request\ListBills( } ``` -**`lower_limit_amount`** - +
+#### `lower_limit_amount` 支払いQRコードの金額の下限を指定してフィルターします。 +
+スキーマ + ```json { "type": "integer", @@ -165,11 +207,14 @@ $request = new Request\ListBills( } ``` -**`upper_limit_amount`** - +
+#### `upper_limit_amount` 支払いQRコードの金額の上限を指定してフィルターします。 +
+スキーマ + ```json { "type": "integer", @@ -178,17 +223,22 @@ $request = new Request\ListBills( } ``` -**`is_disabled`** - +
+#### `is_disabled` 支払いQRコードが無効化されているかどうかを表します。デフォルト値は偽(有効)です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -214,7 +264,7 @@ $request = new Request\CreateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 支払いマネーのマネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 支払い先(受け取り人)の店舗ID [ - 'amount' => 4159.0, // 支払い額 + 'amount' => 5879.0, // 支払い額 'description' => "test bill" // 説明文(アプリ上で取引の説明文として表示される) ] ); @@ -223,12 +273,12 @@ $request = new Request\CreateBill( ### Parameters -**`amount`** - - +#### `amount` 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 +
+スキーマ ```json { @@ -238,9 +288,12 @@ $request = new Request\CreateBill( } ``` -**`private_money_id`** - +
+#### `private_money_id` + +
+スキーマ ```json { @@ -249,9 +302,12 @@ $request = new Request\CreateBill( } ``` -**`shop_id`** - +
+ +#### `shop_id` +
+スキーマ ```json { @@ -260,9 +316,12 @@ $request = new Request\CreateBill( } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -271,6 +330,8 @@ $request = new Request\CreateBill( } ``` +
+ 成功したときは @@ -307,11 +368,12 @@ $request = new Request\GetBill( ### Parameters -**`bill_id`** - - +#### `bill_id` 表示する支払いQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -319,6 +381,8 @@ $request = new Request\GetBill( } ``` +
+ 成功したときは @@ -338,9 +402,9 @@ $request = new Request\GetBill( $request = new Request\UpdateBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // billId: 支払いQRコードのID [ - 'amount' => 3631.0, // 支払い額 + 'amount' => 6264.0, // 支払い額 'description' => "test bill", // 説明文 - 'is_disabled' => FALSE // 無効化されているかどうか + 'is_disabled' => TRUE // 無効化されているかどうか ] ); ``` @@ -348,11 +412,12 @@ $request = new Request\UpdateBill( ### Parameters -**`bill_id`** - - +#### `bill_id` 更新対象の支払いQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -360,11 +425,14 @@ $request = new Request\UpdateBill( } ``` -**`amount`** - +
+#### `amount` 支払いQRコードを支払い額を指定します。nullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 +
+スキーマ + ```json { "type": "number", @@ -373,11 +441,14 @@ $request = new Request\UpdateBill( } ``` -**`description`** - +
+#### `description` 支払いQRコードの詳細説明文です。アプリ上で取引の説明文として表示されます。 +
+スキーマ + ```json { "type": "string", @@ -385,17 +456,22 @@ $request = new Request\UpdateBill( } ``` -**`is_disabled`** - +
+#### `is_disabled` 支払いQRコードが無効化されているかどうかを指定します。真にすると無効化され、偽にすると有効化します。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -414,7 +490,6 @@ $request = new Request\UpdateBill( エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 - ```PHP $request = new Request\CreatePaymentTransactionWithBill( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // billId: 支払いQRコードのID @@ -430,13 +505,14 @@ $request = new Request\CreatePaymentTransactionWithBill( ### Parameters -**`bill_id`** - - +#### `bill_id` 支払いQRコードのIDです。 QRコード生成時に送金先店舗のウォレット情報や、支払い金額などが登録されています。 +
+スキーマ + ```json { "type": "string", @@ -444,13 +520,16 @@ QRコード生成時に送金先店舗のウォレット情報や、支払い金 } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 支払いを行うエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -458,13 +537,16 @@ QRコード生成時に送金先店舗のウォレット情報や、支払い金 } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -472,9 +554,9 @@ QRコード生成時に送金先店舗のウォレット情報や、支払い金 } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -482,6 +564,9 @@ QRコード生成時に送金先店舗のウォレット情報や、支払い金 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -489,9 +574,9 @@ QRコード生成時に送金先店舗のウォレット情報や、支払い金 } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 デフォルトでは point-preferred (ポイント優先)が採用されます。 @@ -500,6 +585,9 @@ QRコード生成時に送金先店舗のウォレット情報や、支払い金 マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ + ```json { "type": "string", @@ -510,6 +598,8 @@ QRコード生成時に送金先店舗のウォレット情報や、支払い金 } ``` +
+ 成功したときは @@ -524,7 +614,9 @@ QRコード生成時に送金先店舗のウォレット情報や、支払い金 |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|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| diff --git a/docs/bulk.md b/docs/bulk.md index 779080bc..826e7992 100644 --- a/docs/bulk.md +++ b/docs/bulk.md @@ -1,4 +1,10 @@ # Bulk +一括取引処理を表すデータです。 +CSVファイルのアップロードにより、複数件の取引をバッチ処理する非同期APIを提供します。 +一括処理のステータス(submitted, examining, queued, processing, error, done)を監視できます。 +処理完了時にコールバックURLへの通知も可能です。 +また、スケジュール実行時刻を指定して将来の時点で処理を実行することもできます。 + ## BulkCreateTransaction: CSVファイル一括取引 @@ -6,12 +12,13 @@ CSVファイルから一括取引をします。 ```PHP $request = new Request\BulkCreateTransaction( - "dM7BVfn4iFY", // name: 一括取引タスク名 - "JJXfrDUn2Z", // content: 取引する情報のCSV - "5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O", // requestId: リクエストID + "Lm8H", // name: 一括取引タスク名 + "uYz", // content: 取引する情報のCSV + "7E9ZuYBAHz0vH45u4SHdXpfYeqMtcfd8wxcy", // requestId: リクエストID [ - 'description' => "y0fQnXOgwkIth5yMWiTVYzb9YasuIp7v4EzACicWq4Ul0bBBFnJwjrP", // 一括取引の説明 - 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // マネーID + 'description' => "IW1kAzyAHjkW0eFslSf8NaBTyV6GBT8tDHI0zWcr0sMpkdiHOOwl5xIQiAP4UplfuFUQK5yc0JqyEbk4xV1ElwOVpwOgCs3REJLXlOpH", // 一括取引の説明 + 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID + 'callback_url' => "https://9qH3Tntl.example.com" // コールバックURL ] ); ``` @@ -19,11 +26,12 @@ $request = new Request\BulkCreateTransaction( ### Parameters -**`name`** - - +#### `name` 一括取引タスクの管理用の名前です。 +
+スキーマ + ```json { "type": "string", @@ -31,11 +39,14 @@ $request = new Request\BulkCreateTransaction( } ``` -**`description`** - +
+#### `description` 一括取引タスクの管理用の説明文です。 +
+スキーマ + ```json { "type": "string", @@ -43,12 +54,12 @@ $request = new Request\BulkCreateTransaction( } ``` -**`content`** - +
+#### `content` 一括取引する情報を書いたCSVの文字列です。 1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 -カラムは以下の7つです。任意のカラムには空文字を指定します。 +カラムは以下の9つです。任意のカラムには空文字を指定します。 - `type`: 取引種別 - 必須。'topup' または 'payment' @@ -64,22 +75,28 @@ $request = new Request\BulkCreateTransaction( - 任意。ただし `money_amount` といずれかが必須。0以上の数字 - `description`: 取引の説明文 - 任意。200文字以内。取引履歴に表示される文章 -- `bear_account_id`: ポイント負担ウォレットID - - `point_amount` があるときは必須。UUID +- `bear_point_account_id`: ポイント負担ウォレットID + - 任意。UUID。省略した場合はマネー発行体の本店のウォレットがポイントを負担します - `point_expires_at`: ポイントの有効期限 - 任意。指定がないときはマネーに設定された有効期限を適用 +
+スキーマ + ```json { "type": "string" } ``` -**`request_id`** - +
+#### `request_id` 重複したリクエストを判断するためのユニークID。ランダムな36字の文字列を生成して渡してください。 +
+スキーマ + ```json { "type": "string", @@ -88,11 +105,14 @@ $request = new Request\BulkCreateTransaction( } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -100,6 +120,46 @@ $request = new Request\BulkCreateTransaction( } ``` +
+ +#### `callback_url` +一括取引タスクが終了したときに通知されるコールバックURLです。これはオプショナルなパラメータで、未指定の場合は通知されません。 + +指定したURLに対して、以下の内容のリクエストがPOSTメソッドで送信されます。 + +リクエスト例: + { + "bulk_transaction_id": "c9a0b2c0-e8d0-4a7f-9b1d-2f0c3e1a8b7a", + "request_id": "1640e29f-157a-46e2-af05-c402726cbf2b", + "completed_at": "2025-09-26T14:30:00Z", + "status": "done", + "success_count": 98, + "total_count": 100 +} + +- bulk_transaction_id: 一括取引タスクのタスクID +- request_id: 本APIにクライアント側から指定したrequest_id +- completed_at: 完了時刻 +- status: 終了時の状態。done (完了状態) か error (エラー) のいずれか +- success_count: 成功件数 +- total_count: 総件数 + +リトライ戦略について: +対象URLにPOSTした結果、500, 502, 503, 504エラーを受け取ったとき、またはタイムアウト (10秒)したときに、最大3回までリトライします。 +成功通知が複数回送信されることもありえるため、request_idで排他処理を行なってください。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "url" +} +``` + +
+ 成功したときは @@ -109,6 +169,7 @@ $request = new Request\BulkCreateTransaction( ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |403|organization_not_issuer|発行体以外に許可されていない操作です|Unpermitted operation except for issuer organizations.| |409|NULL|NULL|NULL| diff --git a/docs/campaign.md b/docs/campaign.md index 856c5a4f..c91f6ef2 100644 --- a/docs/campaign.md +++ b/docs/campaign.md @@ -1,4 +1,9 @@ # Campaign +自動ポイント還元ルールの設定を表すデータです。 +Pokepay管理画面やPartnerSDK経由でルール登録、更新が可能です。 +取引(Transaction)または外部決済イベント(ExternalTransaction)の内容によって還元するポイント額を計算し、自動で付与するルールを設定可能です。 +targetとして取引または外部決済イベントを選択して個別設定します。 + ## ListCampaigns: キャンペーン一覧を取得する @@ -10,9 +15,9 @@ $request = new Request\ListCampaigns( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'is_ongoing' => FALSE, // 現在適用可能なキャンペーンかどうか - 'available_from' => "2021-03-09T15:48:28.000000Z", // 指定された日時以降に適用可能期間が含まれているか - 'available_to' => "2025-02-16T03:36:21.000000Z", // 指定された日時以前に適用可能期間が含まれているか + 'is_ongoing' => TRUE, // 現在適用可能なキャンペーンかどうか + 'available_from' => "2022-05-23T16:21:45.000000Z", // 指定された日時以降に適用可能期間が含まれているか + 'available_to' => "2024-01-29T18:14:42.000000Z", // 指定された日時以前に適用可能期間が含まれているか 'page' => 1, // ページ番号 'per_page' => 20 // 1ページ分の取得数 ] @@ -22,13 +27,14 @@ $request = new Request\ListCampaigns( ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 フィルターとして使われ、指定したマネーでのキャンペーンのみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -36,25 +42,31 @@ $request = new Request\ListCampaigns( } ``` -**`is_ongoing`** - +
+#### `is_ongoing` 有効化されており、現在キャンペーン期間内にあるキャンペーンをフィルターするために使われます。 真であれば適用可能なもののみを抽出し、偽であれば適用不可なもののみを抽出します。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`available_from`** - +
+#### `available_from` キャンペーン終了日時が指定された日時以降であるキャンペーンをフィルターするために使われます。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "string", @@ -62,12 +74,15 @@ $request = new Request\ListCampaigns( } ``` -**`available_to`** - +
+#### `available_to` キャンペーン開始日時が指定された日時以前であるキャンペーンをフィルターするために使われます。 デフォルトでは未指定(フィルターなし)です。 +
+スキーマ + ```json { "type": "string", @@ -75,11 +90,14 @@ $request = new Request\ListCampaigns( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -87,11 +105,14 @@ $request = new Request\ListCampaigns( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 20 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -100,6 +121,8 @@ $request = new Request\ListCampaigns( } ``` +
+ 成功したときは @@ -121,49 +144,48 @@ $request = new Request\ListCampaigns( ## CreateCampaign: ポイント付与キャンペーンを作る ポイント付与キャンペーンを作成します。 - ```PHP $request = new Request\CreateCampaign( - "4qM5cyeftMbZhJuNsCdqVbAgLZQKQXblhvdQVC38rMOaKHSf5htPpycWdWsbduWBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lRKqhRSKyv4aeUNiX5kIXisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM5mHn7CA1SM3xNEFCgQheyCbSnP7P0SqnjQBF0gNpy", // name: キャンペーン名 + "PSv0sqeMHVeJGZnQaE4lp3S7TMyfZKpPybiZ1Lwce18e7Eq5OqWuTabdRaaHOyfGqVUncXzhjskeGyZxmbEy050Zlv3tzVr8aTPDqMKbxS0Vs3OlIrdnx7rU9Fte9Z959oBy13mtel3d8TfJ3Ol39ScasZnA58jo0hnztlMdM7BVfn4iFYyJJXfrDUn2Z5dTBMhYMOaLFSQqsldJHk3l4cpZ7fJl29A3O6y0fQnXOgwkIth5yMWiTVYzb9Ya", // name: キャンペーン名 "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID - "2021-02-16T22:13:10.000000Z", // startsAt: キャンペーン開始日時 - "2022-08-28T01:16:17.000000Z", // endsAt: キャンペーン終了日時 - 1602, // priority: キャンペーンの適用優先度 - "topup", // event: イベント種別 + "2021-09-21T04:20:49.000000Z", // startsAt: キャンペーン開始日時 + "2024-04-17T11:59:28.000000Z", // endsAt: キャンペーン終了日時 + 3443, // priority: キャンペーンの適用優先度 + "external-transaction", // event: イベント種別 [ 'bear_point_shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント負担先店舗ID - 'description' => "zjlAdXU9fbl4BElEfYJcTmiRof0lbldCRsSSTgoxqh3aCnDQum7xlHp8mSoN73gaH3XPjunt8", // キャンペーンの説明文 + 'description' => "uIp7v4EzACicWq4Ul0bBBFnJwjrPufrwL5Z4qM5cyeftMbZhJuNsCdqVbAgLZQKQXblhvdQVC38rMOaKHSf5htPpycWdWsbduWBxtfg1Kliu47KITpvwbo61t0xPHohZAfXS5WAq97VI0kJjyO9S00lR", // キャンペーンの説明文 'status' => "enabled", // キャンペーン作成時の状態 - 'point_expires_at' => "2024-11-27T06:37:01.000000Z", // ポイント有効期限(絶対日時指定) - 'point_expires_in_days' => 3900, // ポイント有効期限(相対日数指定) + 'point_expires_at' => "2021-11-08T19:19:39.000000Z", // ポイント有効期限(絶対日時指定) + 'point_expires_in_days' => 7333, // ポイント有効期限(相対日数指定) '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] ], // 取引金額ベースのポイント付与ルール '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"] -, ["product_code" => "4912345678904", "classification_code" => "c123"] ], // 商品情報ベースのキャンペーンで除外対象にする商品リスト - 'applicable_days_of_week' => [0, 6, 1], // キャンペーンを適用する曜日 (複数指定) + 'applicable_days_of_week' => [2], // キャンペーンを適用する曜日 (複数指定) 'applicable_time_ranges' => [["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", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト + 'applicable_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象となる店舗IDのリスト 'blacklisted_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) - '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人当たりの累計ポイントの上限 + 'minimum_number_of_products' => 503, // キャンペーンを適用する1会計内の商品個数の下限 + 'minimum_number_of_amount' => 6369, // キャンペーンを適用する1会計内の商品総額の下限 + 'minimum_number_for_combination_purchase' => 8061, // 複数種類の商品を同時購入するときの商品種別数の下限 + 'exist_in_each_product_groups' => TRUE, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + 'max_point_amount' => 1890, // キャンペーンによって付与されるポイントの上限 + 'max_total_point_amount' => 2988, // キャンペーンによって付与されるの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' => 1184953052 // キャンペーン予算上限 + 'budget_caps_amount' => 462263081 // キャンペーン予算上限 ] ); ``` @@ -171,13 +193,14 @@ $request = new Request\CreateCampaign( ### Parameters -**`name`** - - +#### `name` キャンペーン名です(必須項目)。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -185,11 +208,14 @@ $request = new Request\CreateCampaign( } ``` -**`private_money_id`** - +
+#### `private_money_id` キャンペーン対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -197,13 +223,16 @@ $request = new Request\CreateCampaign( } ``` -**`starts_at`** - +
+#### `starts_at` キャンペーン開始日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -211,13 +240,16 @@ $request = new Request\CreateCampaign( } ``` -**`ends_at`** - +
+#### `ends_at` キャンペーン終了日時です(必須項目)。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -225,23 +257,26 @@ $request = new Request\CreateCampaign( } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します(必須項目)。 以下のいずれかを指定できます。 @@ -253,6 +288,9 @@ $request = new Request\CreateCampaign( 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -264,12 +302,15 @@ $request = new Request\CreateCampaign( } ``` -**`bear_point_shop_id`** - +
+#### `bear_point_shop_id` ポイントを負担する店舗のIDです。デフォルトではマネー発行体の本店が設定されます。 ポイント負担先店舗は後から更新することはできません。 +
+スキーマ + ```json { "type": "string", @@ -277,11 +318,14 @@ $request = new Request\CreateCampaign( } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -289,9 +333,9 @@ $request = new Request\CreateCampaign( } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -301,6 +345,9 @@ $request = new Request\CreateCampaign( 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -311,12 +358,15 @@ $request = new Request\CreateCampaign( } ``` -**`point_expires_at`** - +
+#### `point_expires_at` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -324,12 +374,15 @@ $request = new Request\CreateCampaign( } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -337,23 +390,26 @@ $request = new Request\CreateCampaign( } ``` -**`is_exclusive`** - +
+#### `is_exclusive` キャンペーンの重ね掛けを行うかどうかのフラグです。 これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`subject`** - +
+#### `subject` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 @@ -366,6 +422,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -376,9 +435,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amount_based_point_rules`** - +
+#### `amount_based_point_rules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -402,6 +461,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -411,9 +473,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し } ``` -**`product_based_point_rules`** - +
+#### `product_based_point_rules` 商品情報をベースとしてポイント付与を行うルールを指定します。 ルールは商品ごとに設定可能で、ルールの配列として指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 @@ -460,6 +522,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -469,13 +534,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklisted_product_rules`** - +
+#### `blacklisted_product_rules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -485,13 +553,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_days_of_week`** - +
+#### `applicable_days_of_week` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -503,13 +574,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_time_ranges`** - +
+#### `applicable_time_ranges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -519,12 +593,15 @@ fromとtoは両方必要です。 } ``` -**`applicable_shop_ids`** - +
+#### `applicable_shop_ids` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + ```json { "type": "array", @@ -535,13 +612,16 @@ fromとtoは両方必要です。 } ``` -**`blacklisted_shop_ids`** - +
+#### `blacklisted_shop_ids` キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 +
+スキーマ + ```json { "type": "array", @@ -552,11 +632,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimum_number_of_products`** - +
+#### `minimum_number_of_products` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -564,11 +647,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimum_number_of_amount`** - +
+#### `minimum_number_of_amount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -576,9 +662,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimum_number_for_combination_purchase`** - +
+#### `minimum_number_for_combination_purchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。デフォルトでは未指定で、指定する場合は1以上の整数を指定します。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -651,6 +737,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` +
+スキーマ + ```json { "type": "integer", @@ -658,9 +747,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`exist_in_each_product_groups`** - +
+#### `exist_in_each_product_groups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -741,19 +830,25 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`max_point_amount`** - +
+#### `max_point_amount` キャンペーンによって付与されるポイントの上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 +
+スキーマ + ```json { "type": "integer", @@ -761,14 +856,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`max_total_point_amount`** - +
+#### `max_total_point_amount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -776,9 +874,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`dest_private_money_id`** - +
+#### `dest_private_money_id` キャンペーンを駆動するイベントのマネーとは「別のマネー」に対してポイントを付けたいときに、そのマネーIDを指定します。 ポイント付与先のマネーはキャンペーンを駆動するイベントのマネーと同一発行体が発行しているものに限ります。その他のマネーIDが指定された場合は private_money_not_found (422) が返ります。 @@ -789,6 +887,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 別マネーに対するポイント付与は別のtransactionとなります。 RefundTransaction で元のイベントをキャンセルしたときはポイント付与のtransactionもキャンセルされ、逆にポイント付与のtransactionをキャンセルしたときは連動して元のイベントがキャンセルされます。 +
+スキーマ + ```json { "type": "string", @@ -796,9 +897,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicable_account_metadata`** - +
+#### `applicable_account_metadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -825,15 +926,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicable_transaction_metadata`** - +
+#### `applicable_transaction_metadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -860,20 +964,26 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budget_caps_amount`** - +
+#### `budget_caps_amount` キャンペーンの予算上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 一度この値を越えて無効となったキャンペーンを再度有効にすることは出来ません。 +
+スキーマ + ```json { "type": "integer", @@ -882,6 +992,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは @@ -920,13 +1032,14 @@ $request = new Request\GetCampaign( ### Parameters -**`campaign_id`** - - +#### `campaign_id` キャンペーンIDです。 指定したIDのキャンペーンを取得します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -934,6 +1047,8 @@ $request = new Request\GetCampaign( } ``` +
+ 成功したときは @@ -949,47 +1064,45 @@ $request = new Request\GetCampaign( ## UpdateCampaign: ポイント付与キャンペーンを更新する ポイント付与キャンペーンを更新します。 - ```PHP $request = new Request\UpdateCampaign( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // campaignId: キャンペーンID [ - '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' => "2025-08-15T22:34:10.000000Z", // ポイント有効期限(絶対日時指定) - 'point_expires_in_days' => 1572, // ポイント有効期限(相対日数指定) + 'name' => "eUN", // キャンペーン名 + 'starts_at' => "2022-06-10T00:15:20.000000Z", // キャンペーン開始日時 + 'ends_at' => "2020-12-22T20:26:17.000000Z", // キャンペーン終了日時 + 'priority' => 7128, // キャンペーンの適用優先度 + 'event' => "payment", // イベント種別 + 'description' => "IXisF2lvLdWFAH9CECfmZyvOgcw2bcIoYI3B409EBsOM5mHn7CA1SM3xNEFCgQheyCbSnP7P0SqnjQBF0gNpyvaBHzjlAdXU9fbl4BElEfYJ", // キャンペーンの説明文 + 'status' => "disabled", // キャンペーン作成時の状態 + 'point_expires_at' => "2026-06-11T07:48:11.000000Z", // ポイント有効期限(絶対日時指定) + 'point_expires_in_days' => 5411, // ポイント有効期限(相対日数指定) 'is_exclusive' => FALSE, // キャンペーンの重複設定 'subject' => "all", // ポイント付与の対象金額の種別 'amount_based_point_rules' => [["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] -, ["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' => [5, 1], // キャンペーンを適用する曜日 (複数指定) + 'applicable_days_of_week' => [6], // キャンペーンを適用する曜日 (複数指定) 'applicable_time_ranges' => [["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", "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人当たりの累計ポイントの上限 + 'blacklisted_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // キャンペーン適用対象外となる店舗IDのリスト(ブラックリスト方式) + 'minimum_number_of_products' => 7833, // キャンペーンを適用する1会計内の商品個数の下限 + 'minimum_number_of_amount' => 1747, // キャンペーンを適用する1会計内の商品総額の下限 + 'minimum_number_for_combination_purchase' => 3952, // 複数種類の商品を同時購入するときの商品種別数の下限 + 'exist_in_each_product_groups' => FALSE, // 複数の商品グループにつき1種類以上の商品購入によって発火するキャンペーンの指定フラグ + 'max_point_amount' => 1767, // キャンペーンによって付与されるポイントの上限 + 'max_total_point_amount' => 784, // キャンペーンによって付与されるの1人当たりの累計ポイントの上限 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , // ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , // 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 - 'budget_caps_amount' => 136280606 // キャンペーン予算上限 + 'budget_caps_amount' => 666964785 // キャンペーン予算上限 ] ); ``` @@ -997,13 +1110,14 @@ $request = new Request\UpdateCampaign( ### Parameters -**`campaign_id`** - - +#### `campaign_id` キャンペーンIDです。 指定したIDのキャンペーンを更新します。存在しないIDを指定した場合は404エラー(NotFound)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -1011,13 +1125,16 @@ $request = new Request\UpdateCampaign( } ``` -**`name`** - +
+#### `name` キャンペーン名です。 ポイント付与によってできるチャージ取引の説明文に転記されます。取引説明文はエンドユーザーからも確認できます。 +
+スキーマ + ```json { "type": "string", @@ -1025,13 +1142,16 @@ $request = new Request\UpdateCampaign( } ``` -**`starts_at`** - +
+#### `starts_at` キャンペーン開始日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1039,13 +1159,16 @@ $request = new Request\UpdateCampaign( } ``` -**`ends_at`** - +
+#### `ends_at` キャンペーン終了日時です。 キャンペーン期間中のみポイントが付与されます。 開始日時よりも終了日時が前のときはcampaign_invalid_periodエラー(422)になります。 +
+スキーマ + ```json { "type": "string", @@ -1053,23 +1176,26 @@ $request = new Request\UpdateCampaign( } ``` -**`priority`** - +
+#### `priority` キャンペーンの適用優先度です。 優先度が大きいものから順に適用判定されていきます。 キャンペーン期間が重なっている同一の優先度のキャンペーンが存在するとcampaign_period_overlapsエラー(422)になります。 +
+スキーマ + ```json { "type": "integer" } ``` -**`event`** - +
+#### `event` キャンペーンのトリガーとなるイベントの種類を指定します。 以下のいずれかを指定できます。 @@ -1081,6 +1207,9 @@ $request = new Request\UpdateCampaign( 3. external-transaction ポケペイ外の取引(現金決済など) +
+スキーマ + ```json { "type": "string", @@ -1092,11 +1221,14 @@ $request = new Request\UpdateCampaign( } ``` -**`description`** - +
+#### `description` キャンペーンの内容を記載します。管理画面などでキャンペーンを管理するための説明文になります。 +
+スキーマ + ```json { "type": "string", @@ -1104,9 +1236,9 @@ $request = new Request\UpdateCampaign( } ``` -**`status`** - +
+#### `status` キャンペーン作成時の状態を指定します。デフォルトではenabledです。 以下のいずれかを指定できます。 @@ -1116,6 +1248,9 @@ $request = new Request\UpdateCampaign( 2. disabled 無効 +
+スキーマ + ```json { "type": "string", @@ -1126,12 +1261,15 @@ $request = new Request\UpdateCampaign( } ``` -**`point_expires_at`** - +
+#### `point_expires_at` キャンペーンによって付与されるポイントの有効期限を絶対日時で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -1139,12 +1277,15 @@ $request = new Request\UpdateCampaign( } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` キャンペーンによって付与されるポイントの有効期限を相対日数で指定します。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "integer", @@ -1152,23 +1293,26 @@ $request = new Request\UpdateCampaign( } ``` -**`is_exclusive`** - +
+#### `is_exclusive` キャンペーンの重ね掛けを行うかどうかのフラグです。 これにtrueを指定すると他のキャンペーンと同時適用されません。デフォルト値はtrueです。 falseを指定すると次の優先度の重ね掛け可能なキャンペーンの適用判定に進みます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`subject`** - +
+#### `subject` ポイント付与額を計算する対象となる金額の種類を指定します。デフォルト値はallです。 eventとしてexternal-transactionを指定した場合はポイントとマネーの区別がないためsubjectの指定に関わらず常にallとなります。 @@ -1181,6 +1325,9 @@ moneyを指定すると決済額の中で「マネー」を使って支払った all を指定すると決済額全体を対象にします (「ポイント」での取引額を含む) 注意: event を topup にしたときはポイントの付与に対しても適用されます +
+スキーマ + ```json { "type": "string", @@ -1191,9 +1338,9 @@ all を指定すると決済額全体を対象にします (「ポイント」 } ``` -**`amount_based_point_rules`** - +
+#### `amount_based_point_rules` 金額をベースとしてポイント付与を行うルールを指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 各ルールは一つのみ適用され、条件に重複があった場合は先に記載されたものが優先されます。 @@ -1217,6 +1364,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し ] ``` +
+スキーマ + ```json { "type": "array", @@ -1226,9 +1376,9 @@ amount_based_point_rules と product_based_point_rules はどちらか一方し } ``` -**`product_based_point_rules`** - +
+#### `product_based_point_rules` 商品情報をベースとしてポイント付与を行うルールを指定します。 ルールは商品ごとに設定可能で、ルールの配列として指定します。 amount_based_point_rules と product_based_point_rules はどちらか一方しか指定できません。 @@ -1275,6 +1425,9 @@ event が payment か external-transaction の時のみ有効です。 ] ``` +
+スキーマ + ```json { "type": "array", @@ -1284,13 +1437,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`blacklisted_product_rules`** - +
+#### `blacklisted_product_rules` 商品情報をベースとしてポイント付与を行う際に、事前に除外対象とする商品リストを指定します。 除外対象の商品コード、または分類コードのパターンの配列として指定します。 取引時には、まずここで指定した除外対象商品が除かれ、残った商品に対して `product_based_point_rules` のルール群が適用されます。 +
+スキーマ + ```json { "type": "array", @@ -1300,13 +1456,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_days_of_week`** - +
+#### `applicable_days_of_week` キャンペーンを適用する曜日を指定します (複数指定)。 曜日は整数で表します。月曜を 0 とし、日曜を 6 とします。 指定しなかった場合は全日を対象にします (曜日による適用条件なし) +
+スキーマ + ```json { "type": "array", @@ -1318,13 +1477,16 @@ event が payment か external-transaction の時のみ有効です。 } ``` -**`applicable_time_ranges`** - +
+#### `applicable_time_ranges` キャンペーンを適用する時間帯を指定します (複数指定可)。 時間帯はfromとtoからなるオブジェクトで指定します。 fromとtoは両方必要です。 +
+スキーマ + ```json { "type": "array", @@ -1334,12 +1496,15 @@ fromとtoは両方必要です。 } ``` -**`applicable_shop_ids`** - +
+#### `applicable_shop_ids` キャンペーンを適用する店舗IDを指定します (複数指定)。 指定しなかった場合は全店舗が対象になります。 +
+スキーマ + ```json { "type": "array", @@ -1350,13 +1515,16 @@ fromとtoは両方必要です。 } ``` -**`blacklisted_shop_ids`** - +
+#### `blacklisted_shop_ids` キャンペーンの適用対象外となる店舗IDをブラックリスト方式で指定します (複数指定可)。 このパラメータが指定されている場合、blacklisted_shop_idsに含まれていない店舗全てがキャンペーンの適用対象になります。 blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません。ホワイトリスト方式を使うときはapplicable_shop_idsを指定してください。 +
+スキーマ + ```json { "type": "array", @@ -1367,11 +1535,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimum_number_of_products`** - +
+#### `minimum_number_of_products` このパラメータを指定すると、取引時の1会計内のルールに適合する商品個数がminimum_number_of_productsを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1379,11 +1550,14 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimum_number_of_amount`** - +
+#### `minimum_number_of_amount` このパラメータを指定すると、取引時の1会計内のルールに適合する商品総額がminimum_number_of_amountを超えたときにのみキャンペーンが発火するようになります。 +
+スキーマ + ```json { "type": "integer", @@ -1391,9 +1565,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`minimum_number_for_combination_purchase`** - +
+#### `minimum_number_for_combination_purchase` 複数種別の商品を同時購入したとき、同時購入キャンペーンの対象となる商品種別数の下限です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定されている必要があります。 @@ -1466,6 +1640,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` +
+スキーマ + ```json { "type": "integer", @@ -1473,9 +1650,9 @@ blacklisted_shop_idsとapplicable_shop_idsは同時には指定できません } ``` -**`exist_in_each_product_groups`** - +
+#### `exist_in_each_product_groups` 複数の商品グループの各グループにつき1種類以上の商品が購入されることによって発火するキャンペーンであるときに真を指定します。デフォルトは偽です。 このパラメータを指定するときは product_based_point_rules で商品毎のルールが指定され、さらにその中でgroup_idが指定されている必要があります。group_idは正の整数です。 @@ -1556,19 +1733,25 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 このキャンペーンが設定された状態で、商品a1、b1が同時に購入された場合、各商品に対する個別のルールが適用された上での総和がポイント付与値になりますが、付与値の上限が100ポイントになります。つまり100 + 200=300と計算されますが上限額の100ポイントが実際の付与値になります。商品a1、a2、 b1、b2が同時に購入された場合は100 + 100 + 200 + 200=600ですが上限額の100がポイント付与値になります。 商品a1、a2が同時に購入された場合は全商品グループから1種以上購入されるという条件を満たしていないためポイントは付与されません。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`max_point_amount`** - +
+#### `max_point_amount` キャンペーンによって付与される1取引当たりのポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、amount_based_point_rules や product_based_point_rules によって計算されるポイント付与値がmax_point_amountを越えている場合、max_point_amountの値がポイント付与値となり、越えていない場合はその値がポイント付与値となります。 +
+スキーマ + ```json { "type": "integer", @@ -1576,14 +1759,17 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`max_total_point_amount`** - +
+#### `max_total_point_amount` キャンペーンによって付与される1人当たりの累計ポイント数の上限を指定します。デフォルトは未指定です。 このパラメータが指定されている場合、各ユーザに対してそのキャンペーンによって過去付与されたポイントの累積値が記録されるようになります。 累積ポイント数がmax_total_point_amountを超えない限りにおいてキャンペーンで算出されたポイントが付与されます。 +
+スキーマ + ```json { "type": "integer", @@ -1591,9 +1777,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` -**`applicable_account_metadata`** - +
+#### `applicable_account_metadata` ウォレットに紐付くメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 ウォレットのメタデータはCreateUserAccountやUpdateCustomerAccountで登録できます。 @@ -1620,15 +1806,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`applicable_transaction_metadata`** - +
+#### `applicable_transaction_metadata` 取引時に指定するメタデータが特定の値を持つときにのみ発火するキャンペーンを登録します。 メタデータの属性名 key とメタデータの値 value の組をオブジェクトとして指定します。 取引のメタデータはCreatePaymentTransactionやCreateExternalTransactionで登録できます。 @@ -1655,15 +1844,18 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+スキーマ + ```json { "type": "object" } ``` -**`budget_caps_amount`** - +
+#### `budget_caps_amount` キャンペーンの予算上限を指定します。 キャンペーン予算上限が設定されておらずこのパラメータに数値が指定されている場合、このキャンペーンの適用により付与されたポイント全体を定期的に集計し、その合計が上限を越えていた場合にはキャンペーンを無効にします。 @@ -1671,6 +1863,9 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 キャンペーン予算上限が設定されておらずこのパラメータにnullが指定されている場合、何も発生しない。 キャンペーン予算上限が設定されておりこのパラメータにnullが指定された場合、キャンペーン予算上限は止まります。 +
+スキーマ + ```json { "type": "integer", @@ -1679,6 +1874,8 @@ exist_in_each_product_groupsが指定されているにも関わらず商品毎 } ``` +
+ 成功したときは diff --git a/docs/cashtray.md b/docs/cashtray.md index cbd4ccd7..5055ebdd 100644 --- a/docs/cashtray.md +++ b/docs/cashtray.md @@ -5,7 +5,6 @@ Cashtrayによる取引では、エンドユーザーがQRコードを読み取 Cashtrayはワンタイムで、一度読み取りに成功するか、取引エラーになると失効します。 また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 - ## CreateTransactionWithCashtray: CashtrayQRコードを読み取ることで取引する エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 @@ -13,13 +12,12 @@ Cashtrayはワンタイムで、一度読み取りに成功するか、取引エ 通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがCashtrayQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 - ```PHP $request = new Request\CreateTransactionWithCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cashtrayId: Cashtray用QRコードのID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーのID [ - 'strategy' => "point-preferred", // 支払い時の残高消費方式 + 'strategy' => "money-only", // 支払い時の残高消費方式 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID ] ); @@ -28,13 +26,14 @@ $request = new Request\CreateTransactionWithCashtray( ### Parameters -**`cashtray_id`** - - +#### `cashtray_id` Cashtray用QRコードのIDです。 QRコード生成時に送金元店舗のウォレット情報や、金額などが登録されています。 +
+スキーマ + ```json { "type": "string", @@ -42,11 +41,14 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 +
+スキーマ + ```json { "type": "string", @@ -54,9 +56,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 チャージの場合は無効です。 デフォルトでは point-preferred (ポイント優先)が採用されます。 @@ -66,6 +68,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ + ```json { "type": "string", @@ -76,9 +81,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。 @@ -88,6 +93,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -95,6 +103,8 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など } ``` +
+ 成功したときは @@ -108,7 +118,9 @@ QRコード生成時に送金元店舗のウォレット情報や、金額など |422|account_not_found|アカウントが見つかりません|The account is not found| |422|cashtray_not_found|決済QRコードが見つかりません|Cashtray is not found| |422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| @@ -167,15 +179,14 @@ Cashtrayを作成します。 その他に、Cashtrayから作られる取引に対する説明文や失効時間を指定できます。 - ```PHP $request = new Request\CreateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID - 1475.0, // amount: 金額 + 5666.0, // amount: 金額 [ 'description' => "たい焼き(小倉)", // 取引履歴に表示する説明文 - 'expires_in' => 1576 // 失効時間(秒) + 'expires_in' => 3664 // 失効時間(秒) ] ); ``` @@ -183,11 +194,12 @@ $request = new Request\CreateCashtray( ### Parameters -**`private_money_id`** - - +#### `private_money_id` 取引対象のマネーのIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -195,11 +207,14 @@ $request = new Request\CreateCashtray( } ``` -**`shop_id`** - +
+#### `shop_id` 店舗のユーザーIDです(必須項目)。 +
+スキーマ + ```json { "type": "string", @@ -207,24 +222,30 @@ $request = new Request\CreateCashtray( } ``` -**`amount`** - +
+#### `amount` マネー額です(必須項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 アプリや管理画面などの取引履歴に表示されます。デフォルトでは空文字になります。 +
+スキーマ + ```json { "type": "string", @@ -232,11 +253,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20 } ``` -**`expires_in`** - +
+#### `expires_in` Cashtrayが失効するまでの時間を秒単位で指定します(任意項目、デフォルト値は1800秒(30分))。 +
+スキーマ + ```json { "type": "integer", @@ -244,6 +268,8 @@ Cashtrayが失効するまでの時間を秒単位で指定します(任意項 } ``` +
+ 成功したときは @@ -278,11 +304,12 @@ $request = new Request\CancelCashtray( ### Parameters -**`cashtray_id`** - - +#### `cashtray_id` 無効化するCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -290,6 +317,8 @@ $request = new Request\CancelCashtray( } ``` +
+ 成功したときは @@ -371,11 +400,12 @@ $request = new Request\GetCashtray( ### Parameters -**`cashtray_id`** - - +#### `cashtray_id` 情報を取得するCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -383,6 +413,8 @@ $request = new Request\GetCashtray( } ``` +
+ 成功したときは @@ -402,9 +434,9 @@ Cashtrayの内容を更新します。bodyパラメーターは全て省略可 $request = new Request\UpdateCashtray( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cashtrayId: CashtrayのID [ - 'amount' => 6822.0, // 金額 + 'amount' => 2507.0, // 金額 'description' => "たい焼き(小倉)", // 取引履歴に表示する説明文 - 'expires_in' => 2050 // 失効時間(秒) + 'expires_in' => 272 // 失効時間(秒) ] ); ``` @@ -412,11 +444,12 @@ $request = new Request\UpdateCashtray( ### Parameters -**`cashtray_id`** - - +#### `cashtray_id` 更新対象のCashtrayのIDです。 +
+スキーマ + ```json { "type": "string", @@ -424,24 +457,30 @@ $request = new Request\UpdateCashtray( } ``` -**`amount`** - +
+#### `amount` マネー額です(任意項目)。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` Cashtrayを読み取ったときに作られる取引の説明文です(最大200文字、任意項目)。 アプリや管理画面などの取引履歴に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -449,11 +488,14 @@ Cashtrayを読み取ったときに作られる取引の説明文です(最大20 } ``` -**`expires_in`** - +
+#### `expires_in` Cashtrayが失効するまでの時間を秒で指定します(任意項目、デフォルト値は1800秒(30分))。 +
+スキーマ + ```json { "type": "integer", @@ -461,6 +503,8 @@ Cashtrayが失効するまでの時間を秒で指定します(任意項目、 } ``` +
+ 成功したときは diff --git a/docs/check.md b/docs/check.md index abea182c..36b3017d 100644 --- a/docs/check.md +++ b/docs/check.md @@ -8,25 +8,24 @@ QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - ## ListChecks: チャージQRコード一覧の取得 ```PHP $request = new Request\ListChecks( [ - 'page' => 9951, // ページ番号 + 'page' => 662, // ページ番号 'per_page' => 50, // 1ページの表示数 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - '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", // 作成日時の期間によるフィルター(終了時点) + 'organization_code' => "myjYzFL4j0HTXKtxMi", // 組織コード + 'expires_from' => "2020-11-06T19:18:56.000000Z", // 有効期限の期間によるフィルター(開始時点) + 'expires_to' => "2025-07-12T20:35:57.000000Z", // 有効期限の期間によるフィルター(終了時点) + 'created_from' => "2024-11-30T16:04:42.000000Z", // 作成日時の期間によるフィルター(開始時点) + 'created_to' => "2026-06-25T12:24:45.000000Z", // 作成日時の期間によるフィルター(終了時点) 'issuer_shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 発行店舗ID - 'description' => "4zkA5dwR", // チャージQRコードの説明文 + 'description' => "6tvMf", // チャージQRコードの説明文 'is_onetime' => FALSE, // ワンタイムのチャージQRコードかどうか - 'is_disabled' => TRUE // 無効化されたチャージQRコードかどうか + 'is_disabled' => FALSE // 無効化されたチャージQRコードかどうか ] ); ``` @@ -34,9 +33,10 @@ $request = new Request\ListChecks( ### Parameters -**`page`** - +#### `page` +
+スキーマ ```json { @@ -45,11 +45,14 @@ $request = new Request\ListChecks( } ``` -**`per_page`** - +
+#### `per_page` 1ページ当たり表示数です。デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -57,11 +60,13 @@ $request = new Request\ListChecks( } ``` -**`private_money_id`** - +
+#### `private_money_id` チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 +
+スキーマ ```json { @@ -70,12 +75,15 @@ $request = new Request\ListChecks( } ``` -**`organization_code`** - +
+#### `organization_code` チャージQRコードの発行店舗の所属組織の組織コードで結果をフィルターします。 デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -83,12 +91,14 @@ $request = new Request\ListChecks( } ``` -**`expires_from`** - +
+#### `expires_from` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -97,12 +107,14 @@ $request = new Request\ListChecks( } ``` -**`expires_to`** - +
+#### `expires_to` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -111,12 +123,14 @@ $request = new Request\ListChecks( } ``` -**`created_from`** - +
+#### `created_from` 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -125,12 +139,14 @@ $request = new Request\ListChecks( } ``` -**`created_to`** - +
+#### `created_to` 作成日時の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -139,12 +155,14 @@ $request = new Request\ListChecks( } ``` -**`issuer_shop_id`** - +
+#### `issuer_shop_id` チャージQRコードを発行した店舗IDによってフィルターします。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -153,13 +171,15 @@ $request = new Request\ListChecks( } ``` -**`description`** - +
+#### `description` チャージQRコードの説明文(description)によってフィルターします。 部分一致(前方一致)したものを表示します。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -167,14 +187,16 @@ $request = new Request\ListChecks( } ``` -**`is_onetime`** - +
+#### `is_onetime` チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 `true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 未指定の場合はフィルターしません。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -182,14 +204,16 @@ $request = new Request\ListChecks( } ``` -**`is_disabled`** - +
+#### `is_disabled` チャージQRコードが無効化されているかどうかでフィルターします。 `true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 未指定の場合はフィルターしません。 デフォルトでは未指定です。 +
+スキーマ ```json { @@ -197,6 +221,8 @@ $request = new Request\ListChecks( } ``` +
+ 成功したときは @@ -223,13 +249,13 @@ $request = new Request\ListChecks( $request = new Request\CreateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: 送金元の店舗アカウントID [ - 'money_amount' => 3442.0, // 付与マネー額 - 'point_amount' => 9537.0, // 付与ポイント額 + 'money_amount' => 8474.0, // 付与マネー額 + 'point_amount' => 6205.0, // 付与ポイント額 'description' => "test check", // 説明文(アプリ上で取引の説明文として表示される) - '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コードによって付与されるポイント残高の有効期限 + 'is_onetime' => TRUE, // ワンタイムかどうかのフラグ + 'usage_limit' => 8139, // ワンタイムでない場合の最大読み取り回数 + 'expires_at' => "2020-08-19T12:07:32.000000Z", // チャージQRコード自体の失効日時 + 'point_expires_at' => "2024-12-04T20:09:52.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 'point_expires_in_days' => 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) 'bear_point_account' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ポイント額を負担する店舗のウォレットID ] @@ -242,12 +268,12 @@ $request = new Request\CreateCheck( ### Parameters -**`money_amount`** - - +#### `money_amount` チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 +
+スキーマ ```json { @@ -257,12 +283,14 @@ $request = new Request\CreateCheck( } ``` -**`point_amount`** - +
+#### `point_amount` チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 +
+スキーマ ```json { @@ -272,9 +300,12 @@ $request = new Request\CreateCheck( } ``` -**`account_id`** - +
+#### `account_id` + +
+スキーマ ```json { @@ -283,9 +314,12 @@ $request = new Request\CreateCheck( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -294,13 +328,15 @@ $request = new Request\CreateCheck( } ``` -**`is_onetime`** - +
+#### `is_onetime` チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +
+スキーマ ```json { @@ -308,14 +344,16 @@ $request = new Request\CreateCheck( } ``` -**`usage_limit`** - +
+#### `usage_limit` 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 デフォルト値はNULLです。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +
+スキーマ ```json { @@ -323,13 +361,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`expires_at`** - +
+#### `expires_at` チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +
+スキーマ ```json { @@ -338,13 +378,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_at`** - +
+#### `point_expires_at` チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +
+スキーマ ```json { @@ -353,13 +395,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 +
+スキーマ ```json { @@ -368,12 +412,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`bear_point_account`** - +
+#### `bear_point_account` ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 +
+スキーマ ```json { @@ -382,6 +428,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` +
+ 成功したときは @@ -421,11 +469,12 @@ $request = new Request\GetCheck( ### Parameters -**`check_id`** - - +#### `check_id` 表示対象のチャージQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -433,6 +482,8 @@ $request = new Request\GetCheck( } ``` +
+ 成功したときは @@ -451,13 +502,13 @@ $request = new Request\GetCheck( $request = new Request\UpdateCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // checkId: チャージQRコードのID [ - 'money_amount' => 8131.0, // 付与マネー額 - 'point_amount' => 9044.0, // 付与ポイント額 + 'money_amount' => 8790.0, // 付与マネー額 + 'point_amount' => 1824.0, // 付与ポイント額 'description' => "test check", // チャージ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コードによって付与されるポイント残高の有効期限 + 'usage_limit' => 1414, // ワンタイムでない場合の最大読み取り回数 + 'expires_at' => "2022-06-22T17:05:02.000000Z", // チャージQRコード自体の失効日時 + 'point_expires_at' => "2020-11-28T20:35:17.000000Z", // チャージQRコードによって付与されるポイント残高の有効期限 'point_expires_in_days' => 60, // チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定) 'bear_point_account' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント額を負担する店舗のウォレットID 'is_disabled' => FALSE // 無効化されているかどうかのフラグ @@ -468,11 +519,12 @@ $request = new Request\UpdateCheck( ### Parameters -**`check_id`** - - +#### `check_id` 更新対象のチャージQRコードのIDです。 +
+スキーマ + ```json { "type": "string", @@ -480,12 +532,14 @@ $request = new Request\UpdateCheck( } ``` -**`money_amount`** - +
+#### `money_amount` チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 +
+スキーマ ```json { @@ -495,12 +549,14 @@ $request = new Request\UpdateCheck( } ``` -**`point_amount`** - +
+#### `point_amount` チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 +
+スキーマ ```json { @@ -510,12 +566,14 @@ $request = new Request\UpdateCheck( } ``` -**`description`** - +
+#### `description` チャージQRコードの説明文です。 チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 +
+スキーマ ```json { @@ -524,13 +582,15 @@ $request = new Request\UpdateCheck( } ``` -**`is_onetime`** - +
+#### `is_onetime` チャージQRコードが一度の読み取りで失効するときに`true`にします。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 +
+スキーマ ```json { @@ -538,13 +598,15 @@ $request = new Request\UpdateCheck( } ``` -**`usage_limit`** - +
+#### `usage_limit` 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 +
+スキーマ ```json { @@ -552,13 +614,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`expires_at`** - +
+#### `expires_at` チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 +
+スキーマ ```json { @@ -567,13 +631,15 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_at`** - +
+#### `point_expires_at` チャージQRコードによって付与されるポイント残高の有効起源を指定します。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 +
+スキーマ ```json { @@ -582,14 +648,16 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`point_expires_in_days`** - +
+#### `point_expires_in_days` チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 `point_expires_at`と`point_expires_in_days`が両方NULLに設定されている場合は、マネーに設定されている残高の有効期限と同じになります。 +
+スキーマ ```json { @@ -598,11 +666,13 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`bear_point_account`** - +
+#### `bear_point_account` ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 +
+スキーマ ```json { @@ -611,12 +681,14 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` -**`is_disabled`** - +
+#### `is_disabled` チャージQRコードを無効化するときに`true`にします。 `false`の場合は無効化されているチャージQRコードを再有効化します。 +
+スキーマ ```json { @@ -624,6 +696,8 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード } ``` +
+ 成功したときは @@ -641,7 +715,6 @@ NULLに設定すると無制限に読み取り可能なチャージQRコード エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。 - ```PHP $request = new Request\CreateTopupTransactionWithCheck( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // checkId: チャージ用QRコードのID @@ -655,13 +728,14 @@ $request = new Request\CreateTopupTransactionWithCheck( ### Parameters -**`check_id`** - - +#### `check_id` チャージ用QRコードのIDです。 QRコード生成時に送金元店舗のウォレット情報や、送金額などが登録されています。 +
+スキーマ + ```json { "type": "string", @@ -669,13 +743,16 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 送金先のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -683,9 +760,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -693,6 +770,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -700,6 +780,8 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な } ``` +
+ 成功したときは @@ -713,7 +795,9 @@ QRコード生成時に送金元店舗のウォレット情報や、送金額な |422|customer_user_not_found||The customer user is not found| |422|check_not_found|これはチャージQRコードではありません|This is not a topup QR code| |422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| diff --git a/docs/coupon.md b/docs/coupon.md index 8250cae4..f5b539c7 100644 --- a/docs/coupon.md +++ b/docs/coupon.md @@ -1,6 +1,9 @@ # Coupon -Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 -Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 +割引クーポンを表すデータです。 +クーポンをユーザが明示的に利用することによって支払い決済時の割引(固定金額 or 割引率)が適用されます。 +クーポンは支払い時に指定し、支払い処理の前にクーポンに指定の方法で値引き処理を行います。 +クーポン原資を負担する発行店舗を設定したり、配布先を指定することも可能です。 +また、特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 @@ -11,12 +14,12 @@ Couponは特定店舗で利用できるものや利用可能期間、配信条 $request = new Request\ListCoupons( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: 対象クーポンのマネーID [ - '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", // 利用可能期間 (終了日時) + 'coupon_id' => "gox", // クーポンID + 'coupon_name' => "qh3aCnD", // クーポン名 + 'issued_shop_name' => "Qum7xlHp8m", // 発行店舗名 + 'available_shop_name' => "oN73", // 利用可能店舗名 + 'available_from' => "2025-11-26T06:39:11.000000Z", // 利用可能期間 (開始日時) + 'available_to' => "2025-06-25T08:36:48.000000Z", // 利用可能期間 (終了日時) 'page' => 1, // ページ番号 'per_page' => 50 // 1ページ分の取得数 ] @@ -26,12 +29,12 @@ $request = new Request\ListCoupons( ### Parameters -**`private_money_id`** - - +#### `private_money_id` 対象クーポンのマネーIDです(必須項目)。 存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 +
+スキーマ ```json { @@ -40,12 +43,14 @@ $request = new Request\ListCoupons( } ``` -**`coupon_id`** - +
+#### `coupon_id` 指定されたクーポンIDで結果をフィルターします。 部分一致(前方一致)します。 +
+スキーマ ```json { @@ -53,11 +58,13 @@ $request = new Request\ListCoupons( } ``` -**`coupon_name`** - +
+#### `coupon_name` 指定されたクーポン名で結果をフィルターします。 +
+スキーマ ```json { @@ -65,11 +72,13 @@ $request = new Request\ListCoupons( } ``` -**`issued_shop_name`** - +
+#### `issued_shop_name` 指定された発行店舗で結果をフィルターします。 +
+スキーマ ```json { @@ -77,11 +86,13 @@ $request = new Request\ListCoupons( } ``` -**`available_shop_name`** - +
+#### `available_shop_name` 指定された利用可能店舗で結果をフィルターします。 +
+スキーマ ```json { @@ -89,11 +100,13 @@ $request = new Request\ListCoupons( } ``` -**`available_from`** - +
+#### `available_from` 利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 +
+スキーマ ```json { @@ -102,11 +115,13 @@ $request = new Request\ListCoupons( } ``` -**`available_to`** - +
+#### `available_to` 利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 +
+スキーマ ```json { @@ -115,11 +130,14 @@ $request = new Request\ListCoupons( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -127,11 +145,14 @@ $request = new Request\ListCoupons( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -139,6 +160,8 @@ $request = new Request\ListCoupons( } ``` +
+ 成功したときは @@ -164,26 +187,27 @@ $request = new Request\ListCoupons( ```PHP $request = new Request\CreateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - "cQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNV", - "2020-12-16T03:08:56.000000Z", - "2023-06-14T02:48:33.000000Z", + "gaH3XPjun", + "2020-04-27T02:01:24.000000Z", + "2025-02-09T09:50:52.000000Z", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // issuedShopId: 発行元の店舗ID [ - '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' => FALSE, // クーポン一覧に掲載されるかどうか - 'is_public' => TRUE, // アプリ配信なしで受け取れるかどうか - 'code' => "HQyhzGX", // クーポン受け取りコード - 'usage_limit' => 2072, // ユーザごとの利用可能回数(NULLの場合は無制限) - 'min_amount' => 8165, // クーポン適用可能な最小取引額 + 'description' => "NgffostplBJ13qPcXVXQ9E7OqefuC0zsB8aQbgel1VXLZNhM7VCGfzH0E", + 'discount_amount' => 7025, + 'discount_percentage' => 5441.0, + 'discount_upper_limit' => 2852, + 'display_starts_at' => "2021-11-13T19:49:20.000000Z", // クーポンの掲載期間(開始日時) + 'display_ends_at' => "2020-04-19T05:00:25.000000Z", // クーポンの掲載期間(終了日時) + 'is_disabled' => TRUE, // 無効化フラグ + 'is_hidden' => TRUE, // クーポン一覧に掲載されるかどうか + 'is_public' => FALSE, // アプリ配信なしで受け取れるかどうか + 'code' => "4baZPNR", // クーポン受け取りコード + 'usage_limit' => 2092, // ユーザごとの利用可能回数(NULLの場合は無制限) + 'min_amount' => 9813, // クーポン適用可能な最小取引額 '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 + 'available_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト + 'storage_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID + 'num_recipients_cap' => 6714 // クーポンを受け取ることができるユーザ数上限 ] ); ``` @@ -192,9 +216,10 @@ $request = new Request\CreateCoupon( ### Parameters -**`private_money_id`** - +#### `private_money_id` +
+スキーマ ```json { @@ -203,9 +228,12 @@ $request = new Request\CreateCoupon( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -214,9 +242,12 @@ $request = new Request\CreateCoupon( } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -225,9 +256,12 @@ $request = new Request\CreateCoupon( } ``` -**`discount_amount`** - +
+ +#### `discount_amount` +
+スキーマ ```json { @@ -236,9 +270,12 @@ $request = new Request\CreateCoupon( } ``` -**`discount_percentage`** - +
+#### `discount_percentage` + +
+スキーマ ```json { @@ -247,9 +284,12 @@ $request = new Request\CreateCoupon( } ``` -**`discount_upper_limit`** - +
+ +#### `discount_upper_limit` +
+スキーマ ```json { @@ -258,9 +298,12 @@ $request = new Request\CreateCoupon( } ``` -**`starts_at`** - +
+#### `starts_at` + +
+スキーマ ```json { @@ -269,9 +312,12 @@ $request = new Request\CreateCoupon( } ``` -**`ends_at`** - +
+ +#### `ends_at` +
+スキーマ ```json { @@ -280,9 +326,12 @@ $request = new Request\CreateCoupon( } ``` -**`display_starts_at`** - +
+#### `display_starts_at` + +
+スキーマ ```json { @@ -291,9 +340,12 @@ $request = new Request\CreateCoupon( } ``` -**`display_ends_at`** - +
+ +#### `display_ends_at` +
+スキーマ ```json { @@ -302,9 +354,12 @@ $request = new Request\CreateCoupon( } ``` -**`is_disabled`** - +
+#### `is_disabled` + +
+スキーマ ```json { @@ -312,12 +367,14 @@ $request = new Request\CreateCoupon( } ``` -**`is_hidden`** - +
+#### `is_hidden` アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 +
+スキーマ ```json { @@ -325,9 +382,12 @@ $request = new Request\CreateCoupon( } ``` -**`is_public`** - +
+ +#### `is_public` +
+スキーマ ```json { @@ -335,9 +395,12 @@ $request = new Request\CreateCoupon( } ``` -**`code`** - +
+#### `code` + +
+スキーマ ```json { @@ -345,9 +408,12 @@ $request = new Request\CreateCoupon( } ``` -**`usage_limit`** - +
+ +#### `usage_limit` +
+スキーマ ```json { @@ -355,9 +421,12 @@ $request = new Request\CreateCoupon( } ``` -**`min_amount`** - +
+#### `min_amount` + +
+スキーマ ```json { @@ -365,9 +434,12 @@ $request = new Request\CreateCoupon( } ``` -**`issued_shop_id`** - +
+ +#### `issued_shop_id` +
+スキーマ ```json { @@ -376,9 +448,12 @@ $request = new Request\CreateCoupon( } ``` -**`is_shop_specified`** - +
+#### `is_shop_specified` + +
+スキーマ ```json { @@ -386,9 +461,12 @@ $request = new Request\CreateCoupon( } ``` -**`available_shop_ids`** - +
+ +#### `available_shop_ids` +
+スキーマ ```json { @@ -400,11 +478,14 @@ $request = new Request\CreateCoupon( } ``` -**`storage_id`** - +
+#### `storage_id` Storage APIでアップロードしたクーポン画像のStorage IDを指定します +
+スキーマ + ```json { "type": "string", @@ -412,6 +493,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 } ``` +
+ +#### `num_recipients_cap` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ 成功したときは @@ -446,13 +543,14 @@ $request = new Request\GetCoupon( ### Parameters -**`coupon_id`** - - +#### `coupon_id` 取得するクーポンのIDです。 UUIDv4フォーマットである必要があり、フォーマットが異なる場合は InvalidParametersエラー(400)が返ります。 指定したIDのクーポンが存在しない場合はCouponNotFoundエラー(422)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -460,6 +558,8 @@ UUIDv4フォーマットである必要があり、フォーマットが異な } ``` +
+ 成功したときは @@ -479,24 +579,25 @@ UUIDv4フォーマットである必要があり、フォーマットが異な $request = new Request\UpdateCoupon( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // couponId: クーポンID [ - '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", // クーポンの掲載期間(終了日時) + 'name' => "QNhB3KMhlAuhO2DrrEN6v7h6DIeIXBVaS0Zi07XrJykFEWCqS7fIGsgSUetvzhcyY8O4aW8dVGclxW2nJI1LDT3BhMLUADblZz6ydgd6gv", + 'description' => "eWK49xDzlQxtC3xLL1ERUl6NhqKkDSvghab5bsImY7PcHPZH7mHIXsOqC2xcKBYhL1xCfnaEpDLcNgoBzsuiKajpcQf4nuECfdVUoATZ0pZ1FEusk3svdOIWNVHFft", + 'discount_amount' => 6970, + 'discount_percentage' => 5069.0, + 'discount_upper_limit' => 3249, + 'starts_at' => "2022-05-31T22:33:30.000000Z", + 'ends_at' => "2025-05-22T09:20:05.000000Z", + 'display_starts_at' => "2025-12-13T13:18:25.000000Z", // クーポンの掲載期間(開始日時) + 'display_ends_at' => "2024-07-02T19:51:44.000000Z", // クーポンの掲載期間(終了日時) 'is_disabled' => TRUE, // 無効化フラグ 'is_hidden' => FALSE, // クーポン一覧に掲載されるかどうか - 'is_public' => TRUE, // アプリ配信なしで受け取れるかどうか - 'code' => "ki", // クーポン受け取りコード - 'usage_limit' => 2524, // ユーザごとの利用可能回数(NULLの場合は無制限) - 'min_amount' => 810, // クーポン適用可能な最小取引額 + 'is_public' => FALSE, // アプリ配信なしで受け取れるかどうか + 'code' => "s", // クーポン受け取りコード + 'usage_limit' => 2660, // ユーザごとの利用可能回数(NULLの場合は無制限) + 'min_amount' => 8083, // クーポン適用可能な最小取引額 'is_shop_specified' => FALSE, // 特定店舗限定のクーポンかどうか - 'available_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト - 'storage_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // ストレージID + 'available_shop_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 利用可能店舗リスト + 'storage_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ストレージID + 'num_recipients_cap' => 6724 // クーポンを受け取ることができるユーザ数上限 ] ); ``` @@ -507,9 +608,10 @@ $request = new Request\UpdateCoupon( ### Parameters -**`coupon_id`** - +#### `coupon_id` +
+スキーマ ```json { @@ -518,9 +620,12 @@ $request = new Request\UpdateCoupon( } ``` -**`name`** - +
+#### `name` + +
+スキーマ ```json { @@ -529,9 +634,12 @@ $request = new Request\UpdateCoupon( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -540,9 +648,12 @@ $request = new Request\UpdateCoupon( } ``` -**`discount_amount`** - +
+#### `discount_amount` + +
+スキーマ ```json { @@ -551,9 +662,12 @@ $request = new Request\UpdateCoupon( } ``` -**`discount_percentage`** - +
+ +#### `discount_percentage` +
+スキーマ ```json { @@ -562,9 +676,12 @@ $request = new Request\UpdateCoupon( } ``` -**`discount_upper_limit`** - +
+#### `discount_upper_limit` + +
+スキーマ ```json { @@ -573,9 +690,12 @@ $request = new Request\UpdateCoupon( } ``` -**`starts_at`** - +
+ +#### `starts_at` +
+スキーマ ```json { @@ -584,9 +704,12 @@ $request = new Request\UpdateCoupon( } ``` -**`ends_at`** - +
+#### `ends_at` + +
+スキーマ ```json { @@ -595,9 +718,12 @@ $request = new Request\UpdateCoupon( } ``` -**`display_starts_at`** - +
+ +#### `display_starts_at` +
+スキーマ ```json { @@ -606,9 +732,12 @@ $request = new Request\UpdateCoupon( } ``` -**`display_ends_at`** - +
+#### `display_ends_at` + +
+スキーマ ```json { @@ -617,9 +746,12 @@ $request = new Request\UpdateCoupon( } ``` -**`is_disabled`** - +
+ +#### `is_disabled` +
+スキーマ ```json { @@ -627,12 +759,14 @@ $request = new Request\UpdateCoupon( } ``` -**`is_hidden`** - +
+#### `is_hidden` アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 +
+スキーマ ```json { @@ -640,9 +774,12 @@ $request = new Request\UpdateCoupon( } ``` -**`is_public`** - +
+#### `is_public` + +
+スキーマ ```json { @@ -650,9 +787,12 @@ $request = new Request\UpdateCoupon( } ``` -**`code`** - +
+ +#### `code` +
+スキーマ ```json { @@ -660,9 +800,12 @@ $request = new Request\UpdateCoupon( } ``` -**`usage_limit`** - +
+#### `usage_limit` + +
+スキーマ ```json { @@ -670,9 +813,12 @@ $request = new Request\UpdateCoupon( } ``` -**`min_amount`** - +
+ +#### `min_amount` +
+スキーマ ```json { @@ -680,9 +826,12 @@ $request = new Request\UpdateCoupon( } ``` -**`is_shop_specified`** - +
+#### `is_shop_specified` + +
+スキーマ ```json { @@ -690,9 +839,12 @@ $request = new Request\UpdateCoupon( } ``` -**`available_shop_ids`** - +
+ +#### `available_shop_ids` +
+スキーマ ```json { @@ -704,11 +856,14 @@ $request = new Request\UpdateCoupon( } ``` -**`storage_id`** - +
+#### `storage_id` Storage APIでアップロードしたクーポン画像のStorage IDを指定します +
+スキーマ + ```json { "type": "string", @@ -716,6 +871,22 @@ Storage APIでアップロードしたクーポン画像のStorage IDを指定 } ``` +
+ +#### `num_recipients_cap` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ 成功したときは diff --git a/docs/credit_session.md b/docs/credit_session.md new file mode 100644 index 00000000..e6acd5ce --- /dev/null +++ b/docs/credit_session.md @@ -0,0 +1,290 @@ +# CreditSession +クレジットカード決済セッションを管理するためのAPIです。 +Veritrans(決済ゲートウェイ)との連携でクレジットカード決済を実現します。 +セッションには有効期限があり、セッション作成後に取引の実行や売上確定(キャプチャ)を行います。 +3Dセキュア認証にも対応しています。 + + + +## PostCreditSession: Create credit session + +```PHP +$request = new Request\PostCreditSession( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", + "2024-08-19T05:15:10.000000Z", // expiresAt: セッション有効期限 + [ + 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 冪等性キー + ] +); +``` + + + +### Parameters +#### `customer_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `private_money_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `card_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `expires_at` +セッション有効期限 +制約: リクエスト時刻から30日以内 +例: "2024-01-15T10:30:00+00:00" + +
+スキーマ + +```json +{ + "type": "string", + "format": "date-time" +} +``` + +
+ +#### `request_id` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CreditSession](./responses.md#credit-session) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + + +## CreateCreditSessionTransaction: Create transaction with credit session +クレジットセッションを使用して取引を作成します。 +セッションIDと取引金額を指定します。 + +```PHP +$request = new Request\CreateCreditSessionTransaction( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // sessionId: クレジットセッションID + 6285.0, // amount: 取引金額 + [ + 'shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID + 'description' => "UCSY35cdkgvsbAYCbaEHj", // 取引説明 + 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 冪等性キー + ] +); +``` + + + +### Parameters +#### `session_id` +クレジットセッションID + +事前に作成されたクレジットセッションのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `amount` +取引金額 +支払い金額を指定します。 + +
+スキーマ + +```json +{ + "type": "number", + "minimum": 0 +} +``` + +
+ +#### `shop_id` +店舗ID +支払いを行う店舗のIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `description` +取引説明 +取引の説明や備考を指定します。省略時は空文字列になります。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 200 +} +``` + +
+ +#### `request_id` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CreditSessionTransactionResult](./responses.md#credit-session-transaction-result) +を返します + + + +--- + + + +## CaptureCreditSession: Capture credit session +クレジットセッションの売上確定(キャプチャ)を行います。 +セッション内で行われた支払いの合計金額をクレジットカードに請求します。 + +```PHP +$request = new Request\CaptureCreditSession( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // sessionId: クレジットセッションID + [ + 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // 冪等性キー + ] +); +``` + + + +### Parameters +#### `session_id` +クレジットセッションID + +キャプチャ対象のクレジットセッションのIDを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `request_id` +冪等性キー +同一のrequest_idを持つリクエストは冪等に処理されます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CapturedCreditSession](./responses.md#captured-credit-session) +を返します + + + +--- + + + diff --git a/docs/customer.md b/docs/customer.md index 3fe0593e..c4a196c3 100644 --- a/docs/customer.md +++ b/docs/customer.md @@ -1,4 +1,10 @@ # Customer +エンドユーザー(顧客)のウォレット情報を管理するためのAPIです。 +エンドユーザーのウォレット(アカウント)の作成・更新・取得を行います。 +ウォレットにはマネー残高(有償バリュー)とポイント残高(無償バリュー)があり、 +有効期限別に金額が管理されています。 +また、外部システム連携用のexternal_idやメタデータを設定することも可能です。 + ## DeleteAccount: ウォレットを退会する @@ -16,13 +22,14 @@ $request = new Request\DeleteAccount( ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 指定したウォレットIDのウォレットを退会します。 +
+スキーマ + ```json { "type": "string", @@ -30,17 +37,22 @@ $request = new Request\DeleteAccount( } ``` -**`cashback`** - +
+#### `cashback` 退会時の返金有無です。エンドユーザに返金を行う場合、真を指定して下さい。現在のマネー残高を全て現金で返金したものとして記録されます。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -65,13 +77,14 @@ $request = new Request\GetAccount( ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレットを取得します。 +
+スキーマ + ```json { "type": "string", @@ -79,6 +92,8 @@ $request = new Request\GetAccount( } ``` +
+ 成功したときは @@ -105,7 +120,7 @@ $request = new Request\UpdateAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ 'is_suspended' => FALSE, // ウォレットが凍結されているかどうか - 'status' => "pre-closed", // ウォレット状態 + 'status' => "suspended", // ウォレット状態 'can_transfer_topup' => FALSE // チャージ可能かどうか ] ); @@ -114,13 +129,14 @@ $request = new Request\UpdateAccount( ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 指定したウォレットIDのウォレットの状態を更新します。 +
+スキーマ + ```json { "type": "string", @@ -128,22 +144,28 @@ $request = new Request\UpdateAccount( } ``` -**`is_suspended`** - +
+#### `is_suspended` ウォレットの凍結状態です。真にするとウォレットが凍結され、そのウォレットでは新規取引ができなくなります。偽にすると凍結解除されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`status`** - +
+#### `status` ウォレットの状態です。 +
+スキーマ + ```json { "type": "string", @@ -155,17 +177,22 @@ $request = new Request\UpdateAccount( } ``` -**`can_transfer_topup`** - +
+#### `can_transfer_topup` 店舗ユーザーがエンドユーザーにチャージ可能かどうかです。真にするとチャージ可能となり、偽にするとチャージ不可能となります。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -185,10 +212,10 @@ $request = new Request\UpdateAccount( $request = new Request\ListAccountBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ - 'page' => 2950, // ページ番号 - 'per_page' => 2188, // 1ページ分の取引数 - 'expires_at_from' => "2024-07-29T18:34:12.000000Z", // 有効期限の期間によるフィルター(開始時点) - 'expires_at_to' => "2023-11-03T17:21:54.000000Z", // 有効期限の期間によるフィルター(終了時点) + 'page' => 1230, // ページ番号 + 'per_page' => 6016, // 1ページ分の取引数 + 'expires_at_from' => "2021-01-18T07:20:15.000000Z", // 有効期限の期間によるフィルター(開始時点) + 'expires_at_to' => "2026-01-24T00:32:11.000000Z", // 有効期限の期間によるフィルター(終了時点) 'direction' => "asc" // 有効期限によるソート順序 ] ); @@ -197,13 +224,14 @@ $request = new Request\ListAccountBalances( ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 +
+スキーマ + ```json { "type": "string", @@ -211,11 +239,14 @@ $request = new Request\ListAccountBalances( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -223,11 +254,14 @@ $request = new Request\ListAccountBalances( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分のウォレット残高数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -235,11 +269,14 @@ $request = new Request\ListAccountBalances( } ``` -**`expires_at_from`** - +
+#### `expires_at_from` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -247,11 +284,14 @@ $request = new Request\ListAccountBalances( } ``` -**`expires_at_to`** - +
+#### `expires_at_to` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -259,11 +299,14 @@ $request = new Request\ListAccountBalances( } ``` -**`direction`** - +
+#### `direction` 有効期限によるソートの順序を指定します。デフォルト値はasc (昇順)です。 +
+スキーマ + ```json { "type": "string", @@ -274,6 +317,8 @@ $request = new Request\ListAccountBalances( } ``` +
+ 成功したときは @@ -293,11 +338,11 @@ $request = new Request\ListAccountBalances( $request = new Request\ListAccountExpiredBalances( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ - '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" // 有効期限によるソート順序 + 'page' => 2292, // ページ番号 + 'per_page' => 9505, // 1ページ分の取引数 + 'expires_at_from' => "2021-05-11T01:39:25.000000Z", // 有効期限の期間によるフィルター(開始時点) + 'expires_at_to' => "2025-02-15T21:44:38.000000Z", // 有効期限の期間によるフィルター(終了時点) + 'direction' => "desc" // 有効期限によるソート順序 ] ); ``` @@ -305,13 +350,14 @@ $request = new Request\ListAccountExpiredBalances( ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 フィルターとして使われ、指定したウォレットIDのウォレット残高を取得します。 +
+スキーマ + ```json { "type": "string", @@ -319,11 +365,14 @@ $request = new Request\ListAccountExpiredBalances( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -331,11 +380,14 @@ $request = new Request\ListAccountExpiredBalances( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分のウォレット残高数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -343,11 +395,14 @@ $request = new Request\ListAccountExpiredBalances( } ``` -**`expires_at_from`** - +
+#### `expires_at_from` 有効期限の期間によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -355,11 +410,14 @@ $request = new Request\ListAccountExpiredBalances( } ``` -**`expires_at_to`** - +
+#### `expires_at_to` 有効期限の期間によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -367,11 +425,14 @@ $request = new Request\ListAccountExpiredBalances( } ``` -**`direction`** - +
+#### `direction` 有効期限によるソートの順序を指定します。デフォルト値はdesc (降順)です。 +
+スキーマ + ```json { "type": "string", @@ -382,6 +443,8 @@ $request = new Request\ListAccountExpiredBalances( } ``` +
+ 成功したときは @@ -402,8 +465,8 @@ $request = new Request\UpdateCustomerAccount( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ 'status' => "suspended", // ウォレット状態 - 'account_name' => "yMg4CnT2dj7ORUTt4jEgn4792da7QYy7V605lzcBixerwgOsZo2yFQXiifPwyEPkMTjwK5UmBamQcU", // アカウント名 - 'external_id' => "vHD25XYGaGoRmlkWpVKSQYACWhdJgT5oXIAxp1c5", // 外部ID + 'account_name' => "POVzvPSXDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7e7CQ6mog", // アカウント名 + 'external_id' => "si4OQ6jQwMdVQzET3CTZ", // 外部ID 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" // ウォレットに付加するメタデータ ] ); @@ -412,13 +475,14 @@ $request = new Request\UpdateCustomerAccount( ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 指定したウォレットIDのウォレットの状態を更新します。 +
+スキーマ + ```json { "type": "string", @@ -426,11 +490,14 @@ $request = new Request\UpdateCustomerAccount( } ``` -**`status`** - +
+#### `status` ウォレットの状態です。 +
+スキーマ + ```json { "type": "string", @@ -442,11 +509,14 @@ $request = new Request\UpdateCustomerAccount( } ``` -**`account_name`** - +
+#### `account_name` 変更するウォレット名です。 +
+スキーマ + ```json { "type": "string", @@ -454,11 +524,14 @@ $request = new Request\UpdateCustomerAccount( } ``` -**`external_id`** - +
+#### `external_id` 変更する外部IDです。 +
+スキーマ + ```json { "type": "string", @@ -466,9 +539,9 @@ $request = new Request\UpdateCustomerAccount( } ``` -**`metadata`** - +
+#### `metadata` ウォレットに付加するメタデータをJSON文字列で指定します。 指定できるJSON文字列には以下のような制約があります。 - フラットな構造のJSONを文字列化したものであること。 @@ -486,6 +559,9 @@ $request = new Request\UpdateCustomerAccount( このときkey1はfooからbazに更新され、key2に対するデータは消去されます。 +
+スキーマ + ```json { "type": "string", @@ -493,6 +569,8 @@ $request = new Request\UpdateCustomerAccount( } ``` +
+ 成功したときは @@ -512,15 +590,15 @@ $request = new Request\UpdateCustomerAccount( $request = new Request\GetCustomerAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'page' => 4363, // ページ番号 - 'per_page' => 9170, // 1ページ分のウォレット数 - 'created_at_from' => "2024-09-07T13:15:45.000000Z", // ウォレット作成日によるフィルター(開始時点) - 'created_at_to' => "2021-01-31T09:25:10.000000Z", // ウォレット作成日によるフィルター(終了時点) + 'page' => 1122, // ページ番号 + 'per_page' => 9061, // 1ページ分のウォレット数 + 'created_at_from' => "2020-12-09T09:29:55.000000Z", // ウォレット作成日によるフィルター(開始時点) + 'created_at_to' => "2023-07-05T09:46:04.000000Z", // ウォレット作成日によるフィルター(終了時点) 'is_suspended' => FALSE, // ウォレットが凍結状態かどうかでフィルターする - 'status' => "pre-closed", // ウォレット状態 - 'external_id' => "7By91KC2xkwbMvROWfU", // 外部ID - 'tel' => "01989704099", // エンドユーザーの電話番号 - 'email' => "gRGAM6oTzl@jbZY.com" // エンドユーザーのメールアドレス + 'status' => "active", // ウォレット状態 + 'external_id' => "O937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh", // 外部ID + 'tel' => "068062151", // エンドユーザーの電話番号 + 'email' => "B6RuNHWw3k@kEII.com" // エンドユーザーのメールアドレス ] ); ``` @@ -528,13 +606,14 @@ $request = new Request\GetCustomerAccounts( ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 一覧するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -542,11 +621,14 @@ $request = new Request\GetCustomerAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -554,11 +636,14 @@ $request = new Request\GetCustomerAccounts( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分のウォレット数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -566,11 +651,14 @@ $request = new Request\GetCustomerAccounts( } ``` -**`created_at_from`** - +
+#### `created_at_from` ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -578,11 +666,14 @@ $request = new Request\GetCustomerAccounts( } ``` -**`created_at_to`** - +
+#### `created_at_to` ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -590,22 +681,28 @@ $request = new Request\GetCustomerAccounts( } ``` -**`is_suspended`** - +
+#### `is_suspended` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`status`** - +
+#### `status` このパラメータが指定されている場合、ウォレットの状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -617,11 +714,14 @@ $request = new Request\GetCustomerAccounts( } ``` -**`external_id`** - +
+#### `external_id` 外部IDでのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -629,11 +729,14 @@ $request = new Request\GetCustomerAccounts( } ``` -**`tel`** - +
+#### `tel` エンドユーザーの電話番号でのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -641,11 +744,14 @@ $request = new Request\GetCustomerAccounts( } ``` -**`email`** - +
+#### `email` エンドユーザーのメールアドレスでのフィルタリングです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -653,6 +759,8 @@ $request = new Request\GetCustomerAccounts( } ``` +
+ 成功したときは @@ -683,7 +791,7 @@ $request = new Request\CreateCustomerAccount( [ 'user_name' => "ポケペイ太郎", // ユーザー名 'account_name' => "ポケペイ太郎のアカウント", // アカウント名 - 'external_id' => "S9b6qmrSFaDiVxdn1z0TuA" // 外部ID + 'external_id' => "b7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6" // 外部ID ] ); ``` @@ -691,13 +799,14 @@ $request = new Request\CreateCustomerAccount( ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 これによって作成するウォレットのマネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -705,11 +814,14 @@ $request = new Request\CreateCustomerAccount( } ``` -**`user_name`** - +
+#### `user_name` ウォレットと共に作成するユーザ名です。省略した場合は空文字となります。 +
+スキーマ + ```json { "type": "string", @@ -717,11 +829,14 @@ $request = new Request\CreateCustomerAccount( } ``` -**`account_name`** - +
+#### `account_name` 作成するウォレット名です。省略した場合は空文字となります。 +
+スキーマ + ```json { "type": "string", @@ -729,11 +844,14 @@ $request = new Request\CreateCustomerAccount( } ``` -**`external_id`** - +
+#### `external_id` PAPIクライアントシステムから利用するPokepayユーザーのIDです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -741,6 +859,8 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで } ``` +
+ 成功したときは @@ -772,10 +892,10 @@ PAPIクライアントシステムから利用するPokepayユーザーのIDで $request = new Request\GetShopAccounts( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'page' => 9389, // ページ番号 - 'per_page' => 8833, // 1ページ分のウォレット数 - 'created_at_from' => "2021-10-18T00:42:48.000000Z", // ウォレット作成日によるフィルター(開始時点) - 'created_at_to' => "2020-12-03T05:00:55.000000Z", // ウォレット作成日によるフィルター(終了時点) + 'page' => 9895, // ページ番号 + 'per_page' => 7789, // 1ページ分のウォレット数 + 'created_at_from' => "2023-05-01T04:51:14.000000Z", // ウォレット作成日によるフィルター(開始時点) + 'created_at_to' => "2023-11-26T02:48:13.000000Z", // ウォレット作成日によるフィルター(終了時点) 'is_suspended' => FALSE // ウォレットが凍結状態かどうかでフィルターする ] ); @@ -784,13 +904,14 @@ $request = new Request\GetShopAccounts( ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 一覧するウォレットのマネーを指定します。このパラメータは必須です。 +
+スキーマ + ```json { "type": "string", @@ -798,11 +919,14 @@ $request = new Request\GetShopAccounts( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。デフォルト値は1です。 +
+スキーマ + ```json { "type": "integer", @@ -810,11 +934,14 @@ $request = new Request\GetShopAccounts( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分のウォレット数です。デフォルト値は30です。 +
+スキーマ + ```json { "type": "integer", @@ -822,11 +949,14 @@ $request = new Request\GetShopAccounts( } ``` -**`created_at_from`** - +
+#### `created_at_from` ウォレット作成日によるフィルターの開始時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -834,11 +964,14 @@ $request = new Request\GetShopAccounts( } ``` -**`created_at_to`** - +
+#### `created_at_to` ウォレット作成日によるフィルターの終了時点のタイムスタンプです。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -846,17 +979,22 @@ $request = new Request\GetShopAccounts( } ``` -**`is_suspended`** - +
+#### `is_suspended` このパラメータが指定されている場合、ウォレットの凍結状態で結果がフィルターされます。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "boolean" } ``` +
+ 成功したときは @@ -871,6 +1009,436 @@ $request = new Request\GetShopAccounts( +--- + + + +## GetCustomerCards: エンドユーザーのクレジットカード一覧を取得する +エンドユーザーのクレジットカード一覧を取得します。 +3D Secure認証済みのカードのみが返されます。 +idはcredit-sessions作成時に使用できます。 + +```PHP +$request = new Request\GetCustomerCards( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID + [ + 'page' => 1838, // ページ番号 + 'per_page' => 56 // 1ページ分の要素数 + ] +); +``` + + + +### Parameters +#### `customer_id` +エンドユーザーのIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `page` +取得したいページ番号です。デフォルト値は1です。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ +#### `per_page` +1ページ当たりの要素数です。デフォルト値は30です。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 100 +} +``` + +
+ + + +成功したときは +[PaginatedUserCards](./responses.md#paginated-user-cards) +を返します + + + +--- + + + +## DeleteCustomerCard: エンドユーザーのクレジットカードを削除する +エンドユーザーの登録済みクレジットカードを削除します。 +対象カードにアクティブなクレジットセッションがある場合は削除できません。 + +```PHP +$request = new Request\DeleteCustomerCard( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // cardUuid: カード識別子 +); +``` + + + +### Parameters +#### `customer_id` +カード保持者であるエンドユーザーのIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `card_uuid` +削除対象カードのUUID(カード一覧の id)です。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CustomerCardDeleted](./responses.md#customer-card-deleted) +を返します + + + +--- + + + +## CreditCardTopupWithMembership: 登録済みクレジットカードでチャージする(3Dセキュア) +エンドユーザーの登録済みクレジットカードを使い、3Dセキュア認証付きでチャージします。 +レスポンスの authentication_html をエンドユーザーのブラウザに出力し認証を行ってください。 +receiver_user_id を指定すると、カード保持者と異なるユーザーの口座にチャージできます。 + +```PHP +$request = new Request\CreditCardTopupWithMembership( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: カード保持者のエンドユーザーID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // cardUuid: カード識別子 + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID + 478, // amount: チャージ金額 + [ + 'receiver_user_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージ先ユーザーID + 'delete_card_if_auth_fail' => TRUE, // 認証失敗時にカードを削除するか + 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + 'topup_quota_id' => 747 // チャージ可能枠ID + ] +); +``` + + + +### Parameters +#### `customer_id` +クレジットカードを保持するエンドユーザーのIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `card_uuid` +使用する登録済みカードのUUID(カード一覧の id)です。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `private_money_id` +チャージ先口座のマネーIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `receiver_user_id` +チャージ先のエンドユーザーIDです。 +省略時はカード保持者本人にチャージします。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `amount` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ +#### `delete_card_if_auth_fail` + +
+スキーマ + +```json +{ + "type": "boolean" +} +``` + +
+ +#### `request_id` +冪等性のためのリクエストIDです。省略時はサーバーが生成します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `topup_quota_id` + +
+スキーマ + +```json +{ + "type": "integer" +} +``` + +
+ + + +成功したときは +[CardAuthorizeResult](./responses.md#card-authorize-result) +を返します + + + +--- + + + +## CreditCardTopupWithMdkToken: 未登録クレジットカード(MDKトークン)でチャージする(3Dセキュア) +MDKトークンで表されるクレジットカードを使い、カード登録なしで3Dセキュア認証付きチャージを行います。 +レスポンスの authentication_html をエンドユーザーのブラウザに出力し認証を行ってください。 +receiver_user_id を指定すると、カード保持者と異なるユーザーの口座にチャージできます。 + +```PHP +$request = new Request\CreditCardTopupWithMdkToken( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: カード保持者のエンドユーザーID + "1iTzlm9", // token: MDKトークン + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID + 5450, // amount: チャージ金額 + [ + 'receiver_user_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージ先ユーザーID + 'is_cardholder_name_specified' => FALSE, // カード名義人指定フラグ + 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // リクエストID + 'topup_quota_id' => 849 // チャージ可能枠ID + ] +); +``` + + + +### Parameters +#### `customer_id` +クレジットカードを保持するエンドユーザーのIDです。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `token` +VeritransのMDKトークンです。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `private_money_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `receiver_user_id` +省略時はカード保持者本人にチャージします。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `amount` + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ +#### `is_cardholder_name_specified` + +
+スキーマ + +```json +{ + "type": "boolean" +} +``` + +
+ +#### `request_id` + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `topup_quota_id` + +
+スキーマ + +```json +{ + "type": "integer" +} +``` + +
+ + + +成功したときは +[CardAuthorizeResult](./responses.md#card-authorize-result) +を返します + + + --- @@ -884,10 +1452,10 @@ $request = new Request\ListCustomerTransactions( [ 'sender_customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 送金エンドユーザーID 'receiver_customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 受取エンドユーザーID - 'type' => "cashback", // 取引種別 + 'type' => "exchange", // 取引種別 'is_modified' => FALSE, // キャンセル済みかどうか - 'from' => "2025-02-23T21:47:53.000000Z", // 開始日時 - 'to' => "2022-10-11T20:59:05.000000Z", // 終了日時 + 'from' => "2024-05-30T07:48:27.000000Z", // 開始日時 + 'to' => "2024-09-25T00:05:42.000000Z", // 終了日時 'page' => 1, // ページ番号 'per_page' => 50 // 1ページ分の取引数 ] @@ -897,12 +1465,13 @@ $request = new Request\ListCustomerTransactions( ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -910,13 +1479,16 @@ $request = new Request\ListCustomerTransactions( } ``` -**`sender_customer_id`** - +
+#### `sender_customer_id` 送金ユーザーIDです。 フィルターとして使われ、指定された送金ユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -924,13 +1496,16 @@ $request = new Request\ListCustomerTransactions( } ``` -**`receiver_customer_id`** - +
+#### `receiver_customer_id` 受取ユーザーIDです。 フィルターとして使われ、指定された受取ユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -938,9 +1513,9 @@ $request = new Request\ListCustomerTransactions( } ``` -**`type`** - +
+#### `type` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -958,6 +1533,9 @@ $request = new Request\ListCustomerTransactions( 6. expire ウォレット退会時失効 +
+スキーマ + ```json { "type": "string", @@ -972,28 +1550,34 @@ $request = new Request\ListCustomerTransactions( } ``` -**`is_modified`** - +
+#### `is_modified` キャンセル済みかどうかを判定するフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 falseを指定するとキャンセルされていない取引のみ一覧に表示されます 何も指定しなければキャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -1001,13 +1585,16 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -1015,11 +1602,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -1027,11 +1617,14 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -1039,6 +1632,8 @@ falseを指定するとキャンセルされていない取引のみ一覧に表 } ``` +
+ 成功したときは diff --git a/docs/cvs.md b/docs/cvs.md new file mode 100644 index 00000000..e8882c28 --- /dev/null +++ b/docs/cvs.md @@ -0,0 +1,453 @@ +# CVS +コンビニ決済(CVS)によるチャージの申込情報を表すデータです。 +申込後に発行される払込票URL・受付番号を使ってコンビニで支払うと、完了通知を受けてチャージ取引が作成されます。 + + + +## GetCvsAuthorizations: コンビニ決済の申し込み情報一覧取得 +コンビニ決済の申し込み情報一覧を取得します。 + +```PHP +$request = new Request\GetCvsAuthorizations( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID + [ + 'customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID + 'status' => "applied", // ステータス + 'before' => "Umx8bpMxY", // ページング(before) + 'after' => "yLz", // ページング(after) + 'per_page' => 48 // 1ページあたりの表示件数 + ] +); +``` + + + +### Parameters +#### `private_money_id` +マネーIDです。一覧を取得するマネーを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `customer_id` +エンドユーザーIDです。指定した場合、そのユーザーの申し込みに絞り込みます。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `status` +申し込みのステータスで絞り込みます。 + +
+スキーマ + +```json +{ + "type": "string", + "enum": [ + "applied", + "payed", + "canceled", + "expired" + ] +} +``` + +
+ +#### `before` +ページングのためのパラメータです。 +指定したIDの要素より後の申し込み情報が返されます。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `after` +ページングのためのパラメータです。 +指定したIDの要素より前の申し込み情報が返されます。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `per_page` +1ページあたりに表示する件数です。デフォルト値は30件です。 + +
+スキーマ + +```json +{ + "type": "integer", + "format": "int32", + "minimum": 1, + "maximum": 100 +} +``` + +
+ + + +成功したときは +[PaginatedCvsAuthorizations](./responses.md#paginated-cvs-authorizations) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|404|veritrans_merchant_not_found|veritrans加盟店が見つかりません|veritrans merchant not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| + + + +--- + + + +## CreateCvsAuthorization: コンビニ決済申込 +コンビニ決済の申し込みを行います。 + +```PHP +$request = new Request\CreateCvsAuthorization( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // customerId: エンドユーザーのID + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID + 75753, // amount: チャージ額 + "famima", // serviceOptionType: コンビニ種別 + "Vs", // name1: 顧客姓 + "9Hj", // name2: 顧客名 + "AZf", // tel: 電話番号 + [ + 'receiver_user_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // チャージ先エンドユーザーのID + 'topup_quota_id' => 190 // チャージ可能枠ID + ] +); +``` + + + +### Parameters +#### `customer_id` +エンドユーザーIDです。 + +コンビニ決済を申し込むエンドユーザーを指定します。 +receiver_user_id が指定されない場合、このユーザーがチャージ先になります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `receiver_user_id` +チャージ先エンドユーザーIDです。 + +指定した場合、customer_id とは別のユーザーをチャージ先にできます。 +省略した場合は customer_id がチャージ先になります。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `private_money_id` +マネーIDです。 + +チャージするマネーを指定します。 + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ +#### `amount` +チャージする金額を表します。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1, + "maximum": 299999 +} +``` + +
+ +#### `service_option_type` +カスタマーが支払うコンビニの種別を表します。 + +
+スキーマ + +```json +{ + "type": "string", + "enum": [ + "sej", + "other", + "famima", + "lawson", + "econ" + ] +} +``` + +
+ +#### `name1` +顧客の姓を表します。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `name2` +顧客名を表します。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `tel` +顧客の電話番号を表します。 + +
+スキーマ + +```json +{ + "type": "string" +} +``` + +
+ +#### `topup_quota_id` +チャージするマネーにチャージ可能枠機能が設定されているとき、使用するチャージ可能枠のIDを表します。 + +
+スキーマ + +```json +{ + "type": "integer", + "minimum": 1 +} +``` + +
+ + + +成功したときは +[CvsAuthorization](./responses.md#cvs-authorization) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|400|cvs_invalid_request_parameter|入力データが不正です|Parameter invalid| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|404|veritrans_merchant_not_found|veritrans加盟店が見つかりません|veritrans merchant not found| +|422|account_not_found|アカウントが見つかりません|The account is not found| +|422|user_not_found|ユーザーが見つかりません|The user is not found| +|422|customer_user_not_found||The customer user is not found| +|422|private_money_not_found|マネーが見つかりません|Private money not found| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| +|422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| +|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|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.| +|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|cvs_disabled_private_money|このマネーはコンビニ決済に対応していません|This money cannot be charged from the cvs| +|503|temporarily_unavailable||Service Unavailable| + + + +--- + + + +## CancelCvsAuthorization: コンビニ決済の申し込みキャンセル +コンビニ決済の申し込みをキャンセルします。 + +```PHP +$request = new Request\CancelCvsAuthorization( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // orderId: コンビニ決済の申し込みID +); +``` + + + +### Parameters +#### `order_id` +コンビニ決済の申し込みID + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CvsAuthorization](./responses.md#cvs-authorization) +を返します + + + +--- + + + +## GetCvsAuthorization: コンビニ決済の申し込み情報取得 +コンビニ決済の申し込み情報を取得します。 + +```PHP +$request = new Request\GetCvsAuthorization( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // orderId: コンビニ決済の申し込みID +); +``` + + + +### Parameters +#### `order_id` +コンビニ決済の申し込みID + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[CvsAuthorization](./responses.md#cvs-authorization) +を返します + + + +--- + + + diff --git a/docs/error-response.csv b/docs/error-response.csv index c03bfbde..e5b810e3 100644 --- a/docs/error-response.csv +++ b/docs/error-response.csv @@ -1,5 +1,6 @@ method,path,status_code,type,ja,en GET,/ping,418,,, +POST,/sentry-notification-test,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission 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 @@ -21,7 +22,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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -89,7 +92,9 @@ POST,/transactions/topup,400,invalid_parameter_both_point_and_money_are_zero,,On ,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -135,7 +140,9 @@ POST,/transactions/topup/check,403,unpermitted_admin_user,"この管理ユーザ ,,422,customer_user_not_found,,The customer user is not found ,,422,check_not_found,"これはチャージQRコードではありません",This is not a topup QR code ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -184,7 +191,9 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -221,7 +230,9 @@ POST,/transactions/topup/seven-bank-atm,403,unpermitted_admin_user,"この管理 ,,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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -268,7 +279,9 @@ POST,/transactions/payment/bill,403,unpermitted_admin_user,"この管理ユー ,,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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -313,7 +326,9 @@ POST,/transactions/transfer,403,unpermitted_admin_user,"この管理ユーザに ,,422,customer_user_not_found,,The customer user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -358,7 +373,9 @@ POST,/transactions/exchange,422,account_not_found,"アカウントが見つか ,,422,transaction_restricted,,Transaction is not allowed ,,422,can_not_exchange_between_same_private_money,"同じマネーとの交換はできません", ,,422,can_not_exchange_between_users,"異なるユーザー間での交換は出来ません", +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -400,11 +417,14 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,cpm_token_strategy_conflict,"CPMトークンに設定された支払い方式と異なる支払い方式が指定されました。",The strategy conflicts with the one set in the CPM token ,,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,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -445,7 +465,8 @@ POST,/transactions/cpm,403,cpm_unacceptable_amount,"このCPMトークンに対 ,,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 +POST,/transactions/bulk,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,403,organization_not_issuer,"発行体以外に許可されていない操作です",Unpermitted operation except for issuer organizations. ,,409,,, ,,422,private_money_not_found,"マネーが見つかりません",Private money not found @@ -454,7 +475,9 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,cashtray_not_found,"決済QRコードが見つかりません",Cashtray is not found ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -498,6 +521,10 @@ POST,/transactions/cashtray,403,unpermitted_admin_user,"この管理ユーザに ,,422,cashtray_expired,"この決済QRコードは有効期限が切れています",Cashtray is expired ,,422,cashtray_already_canceled,"この決済QRコードは既に無効化されています",Cashtray is already canceled ,,503,temporarily_unavailable,,Service Unavailable +POST,/transaction-groups,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,transaction_group_name_reserved,"指定されたトランザクショングループ名は使用できません",Transaction group name is reserved +GET,/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found POST,/external-transactions,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,customer_user_not_found,,The customer user is not found @@ -507,7 +534,9 @@ POST,/external-transactions,400,invalid_parameters,"項目が無効です",Inval ,,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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -658,9 +687,12 @@ GET,/private-moneys/:uuid/clearings,403,unpermitted_admin_user,"この管理ユ GET,/private-moneys/:uuid/organization-summaries,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, ,,404,,, -POST,/private-moneys,400,invalid_parameters,"項目が無効です",Invalid parameters +POST,/private-moneys,400,credit_card_monthly_cap_less_than_daily_cap,"クレジットカードの1か月間のチャージ額上限は1日あたりチャージ上限額以上である必要があります",Credit card's monthly topup cap is less than its daily cap. +,,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,,, +,,409,itrust_tenant_code_conflict,"テナント識別子はすでに登録されています",The tenant code is already registered ,,409,private_money_conflict,"このマネーは既に登録されています。",The money is already used +,,422,private_money_invalid_fallback_private_money,"指定されたフォールバックマネーは有効ではありません",The specified fallback private money is not valid ,,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 @@ -669,18 +701,23 @@ GET,/terminals,403,,, GET,/organizations,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,private_money_not_found,"マネーが見つかりません",Private money not found -POST,/organizations,403,,, +POST,/organizations,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,,, ,,409,organization_conflict,,The organization code is already used +,,409,organization_invoice_registration_number_conflict,"この登録番号は既に登録されています",The invoice registration number is conflict ,,409,shop_name_conflict,,The shop name is already used ,,422,organization_private_money_not_found,,Issuer organization does not have private-money ,,422,unavailable_private_money,,Given private money(s) is/are not available +,,422,organization_application_setting_not_found,"加盟店申込み設定が見つかりません",Organization application setting not found ,,503,failed_to_send_email,,Failed to send an E-mail. +,,503,temporarily_unavailable,,Service Unavailable GET,/organizations/:code,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,organization_not_found,,Organization not found ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API ,,422,organization_third_party_private_money_not_found,,Issuer organization does not have third-party private-money PUT,/organizations/:code,403,,, ,,404,,, +,,409,organization_invoice_registration_number_conflict,"この登録番号は既に登録されています",The invoice registration number is conflict ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API ,,422,organization_third_party_private_money_not_found,,Issuer organization does not have third-party private-money ,,503,temporarily_unavailable,,Service Unavailable @@ -702,12 +739,15 @@ POST,/shops-v2,400,invalid_parameters,"項目が無効です",Invalid parameters ,,422,unpermitted_private_money,"このマネーは使えません",This money is not available ,,422,unavailable_private_money,,Given private money(s) is/are not available ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API +,,503,geocoding_api_key_missing,"住所検索サービスは一時的に利用できません",Geocoding service is temporarily unavailable +,,503,geocoding_api_error,"住所検索 API がエラーを返しました",Geocoding API returned an error +,,503,geocoding_http_error,"住所検索リクエストに失敗しました",Geocoding request failed GET,/shops/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found PATCH,/shops/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,409,shop_name_conflict,,The shop name is already used -,,422,head_office_can_not_be_disabled,,Head office can not be disabled +,,422,head_office_can_not_be_disabled,"本店は無効化できません",Head office can not be disabled ,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found ,,422,unavailable_private_money,,Given private money(s) is/are not available ,,422,organization_not_member_organization,,The specified organization is not a member organization of the organization accessing this API @@ -723,9 +763,208 @@ GET,/customers/:uuid,400,invalid_parameters,"項目が無効です",Invalid para ,,404,notfound,,Not found ,,422,account_not_found,"アカウントが見つかりません",The account is not found ,,422,private_money_not_found,"マネーが見つかりません",Private money not found +GET,/customers/:uuid/cards,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,customer_user_not_found,,The customer user is not found +,,503,temporarily_unavailable,,Service Unavailable +POST,/customers/:uuid/cards/delete,400,invalid_email_domain,"メールアドレスのドメインが間違っています",Invalid domain name error +,,400,invalid_mdk_token,,Invalid MDK token +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,card_not_found,"カードが見つかりません", +,,409,already_registered_veritrans_card,"このカードは既に登録されています", +,,409,already_registered_veritrans_account,"この会員は既に登録されています", +,,422,card_has_active_credit_session,"アクティブなオーソリセッションがあるためカードを削除できません",Cannot delete card with active credit session +,,422,customer_user_not_found,,The customer user is not found +,,422,dev_env_user_veritrans_membership_deleted,"テスト環境におけるVeritrans4Gのカード情報の定期的な削除によって、ポケペイに登録済みのカード情報を削除しました。お手数ですが、カード情報の登録から再度お試しください",User Veritrans membership on development environment is deleted +,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable +,,422,veritrans_wrong_password_or_cancel,"本人認証に失敗しました。(パスワード間違い、キャンセル、カード会社判定)",Not complete authentication by cardholder. +,,422,unacceptable_card,,Card is not acceptable for some reason +,,422,veritrans_membership_not_registered,"会員登録をしていません", +,,503,failed_to_send_email,,Failed to send an E-mail. +,,503,veritrans_api_error,"カード決済サービスが一時的にご利用になれません。時間を置いて再度お試しください",Credit card service is temporarily unavailable. Please wait a moment and try again +,,503,temporarily_unavailable,,Service Unavailable +POST,/customers/:uuid/card-authorize/topup-with-membership,400,invalid_mdk_token,,Invalid MDK token +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,403,forbidden,,Forbidden +,,404,card_not_found,"カードが見つかりません", +,,409,transaction_conflict,"別の取引と競合します。もう一度やり直してください",Transaction conflicts with another one. Please try again. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,customer_user_not_found,,The customer user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,dev_env_user_veritrans_membership_deleted,"テスト環境におけるVeritrans4Gのカード情報の定期的な削除によって、ポケペイに登録済みのカード情報を削除しました。お手数ですが、カード情報の登録から再度お試しください",User Veritrans membership on development environment is deleted +,,422,cannot_authenticate_error,"認証に失敗しました",Authentication failed +,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable +,,422,authenticate_failure_unsupported_device,"未対応デバイス(未対応ブラウザ、携帯等)等の理由で認証できません。",Ineligible for 3D-secure service. +,,422,troubled_client_error,"誤った操作を行なった可能性があります", +,,422,veritrans_rfc_invalid_email,"登録されているメールアドレスはカード登録に使用できないフォーマットになっています。メールアドレスの先頭または@の直前に.がある場合や、連続した.が含まれている場合はメールアドレスを変更してください",The registered email address is in a format that cannot be used for card registration +,,422,veritrans_tel_email_missing,"クレジットカードを利用するには、ポケペイに電話番号かEmailのどちらかは登録されている必要があります","In order to use a credit card, either a phone number or email address must be registered to Pokepay" +,,422,veritrans_membership_not_registered,"会員登録をしていません", +,,422,creditcard_disabled_private_money,"このマネーはクレジットカードが使えません",This money can not use credit card +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,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,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. +,,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,total_credit_card_topup_amount_over_the_past_month_exceeding_monthly_cap,"過去一か月のクレジットカードでのチャージの合計金額が上限を超えています",Total topup amount using credit card over the past month is exceeding the monthly cap +,,422,total_credit_card_topup_amount_today_exceeding_daily_cap,"一日のクレジットカードでのチャージの合計金額が上限を超えています",Total topup amount using credit card today is exceeding the daily cap +,,503,veritrans_api_error,"カード決済サービスが一時的にご利用になれません。時間を置いて再度お試しください",Credit card service is temporarily unavailable. Please wait a moment and try again +,,503,temporarily_unavailable,,Service Unavailable +POST,/customers/:uuid/card-authorize/topup-with-mdk-token,400,invalid_mdk_token,,Invalid MDK token +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,403,forbidden,,Forbidden +,,404,card_not_found,"カードが見つかりません", +,,409,transaction_conflict,"別の取引と競合します。もう一度やり直してください",Transaction conflicts with another one. Please try again. +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,customer_user_not_found,,The customer user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,cannot_authenticate_error,"認証に失敗しました",Authentication failed +,,422,unavailable_card_error,"このクレジットカードはご利用になれません",The credit card is unavailable +,,422,authenticate_failure_unsupported_device,"未対応デバイス(未対応ブラウザ、携帯等)等の理由で認証できません。",Ineligible for 3D-secure service. +,,422,troubled_client_error,"誤った操作を行なった可能性があります", +,,422,veritrans_rfc_invalid_email,"登録されているメールアドレスはカード登録に使用できないフォーマットになっています。メールアドレスの先頭または@の直前に.がある場合や、連続した.が含まれている場合はメールアドレスを変更してください",The registered email address is in a format that cannot be used for card registration +,,422,veritrans_tel_email_missing,"クレジットカードを利用するには、ポケペイに電話番号かEmailのどちらかは登録されている必要があります","In order to use a credit card, either a phone number or email address must be registered to Pokepay" +,,422,veritrans_membership_not_registered,"会員登録をしていません", +,,422,creditcard_disabled_private_money,"このマネーはクレジットカードが使えません",This money can not use credit card +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,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,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. +,,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,total_credit_card_topup_amount_over_the_past_month_exceeding_monthly_cap,"過去一か月のクレジットカードでのチャージの合計金額が上限を超えています",Total topup amount using credit card over the past month is exceeding the monthly cap +,,422,total_credit_card_topup_amount_today_exceeding_daily_cap,"一日のクレジットカードでのチャージの合計金額が上限を超えています",Total topup amount using credit card today is exceeding the daily cap +,,503,veritrans_api_error,"カード決済サービスが一時的にご利用になれません。時間を置いて再度お試しください",Credit card service is temporarily unavailable. Please wait a moment and try again +,,503,temporarily_unavailable,,Service Unavailable +POST,/cvs,400,cvs_invalid_request_parameter,"入力データが不正です",Parameter invalid +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,veritrans_merchant_not_found,"veritrans加盟店が見つかりません",veritrans merchant not found +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,customer_user_not_found,,The customer user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,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,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. +,,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,cvs_disabled_private_money,"このマネーはコンビニ決済に対応していません",This money cannot be charged from the cvs +,,503,temporarily_unavailable,,Service Unavailable +GET,/cvs,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,veritrans_merchant_not_found,"veritrans加盟店が見つかりません",veritrans merchant not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +GET,/cvs/:order-id,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,cvs_authorization_not_found,,CVS Authorization not found. +DELETE,/cvs/:order-id,400,cvs_invalid_request_parameter,"入力データが不正です",Parameter invalid +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,cvs_authorization_has_already_been_canceled,"このコンビニ決済はすでにキャンセルされています",This authorization has already been canceled. +,,422,completed_cvs_authorization_cannot_be_canceled,"完了したコンビニ決済はキャンセルできません",Completed authorizations cannot be canceled. +,,422,cvs_authorization_not_found,,CVS Authorization not found. PATCH,/clearings/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,clearing_not_found,"精算が見つかりません",Clearing not found -,,503,temporarily_unavailable,,Service Unavailable +,,422,clearing_invoice_has_pending_offset,"予定相殺が付いている請求です。先に相殺を除外してから精算してください",The invoice has a pending offset; exclude the offset before settling it GET,/clearings,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,503,temporarily_unavailable,,Service Unavailable GET,/clearings/preview,400,clearing_to_should_be_past_date,"締め日は過去の日付を指定してください",Should set past date for 'closing_date' @@ -767,7 +1006,6 @@ POST,/user-stats,400,invalid_parameters,"項目が無効です",Invalid paramete ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,invalid_promotional_operation_user,"ユーザーの指定に不正な値が含まれています",Invalid user data is specified ,,422,invalid_promotional_operation_status,"不正な処理ステータスです",Invalid operation status is specified -,,503,user_stats_operation_service_unavailable,"一時的にユーザー統計サービスが利用不能です",User stats service is temporarily unavailable POST,/user-stats/terminate,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,422,user_stats_operation_already_done,"指定されたIDの集計処理タスクは既に完了しています",The specified user stats operation is already done ,,422,user_stats_operation_not_found,"指定されたIDの集計処理タスクが見つかりません",User stats task not found for the operation ID @@ -837,11 +1075,14 @@ GET,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権 ,,503,temporarily_unavailable,,Service Unavailable PATCH,/accounts/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,notfound,,Not found +,,422,account_has_active_credit_session,"アクティブなオーソリセッションがあるためアカウントのステータスを変更できません",Cannot change account status with active credit session ,,503,temporarily_unavailable,,Service Unavailable 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,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -957,8 +1198,10 @@ GET,/coupons/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限 PATCH,/coupons/:uuid,400,invalid_parameters,"項目が無効です",Invalid parameters ,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission ,,404,partner_storage_not_found,"指定したIDのデータは保存されていません",Not found by storage_id +,,422,coupon_recipients_cap_not_set,"クーポンに受け取り人数の上限が設定されていません",Recipients cap is not set to the coupon. ,,422,coupon_not_found,"クーポンが見つかりませんでした。",The coupon is not found. ,,422,coupon_image_storage_conflict,"クーポン画像のストレージIDは既に存在します",The coupon image storage_id is already exists +,,422,coupon_reached_recipients_cap,"クーポンの受け取り人数の上限に達しました",The number of recipients of the coupon reached its cap. ,,503,temporarily_unavailable,,Service Unavailable POST,/storage/v1,400,partner_decryption_failed,"リクエスト中の暗号データを復号化することができませんでした。",Could not decrypt the data. ,,400,partner_client_not_found,"partner_clientが見つかりません。",The partner client is not found. @@ -992,7 +1235,9 @@ POST,/user-devices/:uuid/banks/topup,400,paytree_request_failure,"銀行の外 ,,422,user_device_is_disabled,"このデバイスは無効化されています",The user-device is disabled ,,422,user_device_not_found,,The user-device not found ,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money ,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found ,,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 @@ -1070,3 +1315,92 @@ GET,/topup-quotas,400,invalid_parameters,"項目が無効です",Invalid paramet ,,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 +POST,/credit-sessions,503,temporarily_unavailable,,Service Unavailable +POST,/credit-sessions/:uuid/transactions,503,temporarily_unavailable,,Service Unavailable +POST,/credit-sessions/:uuid/capture,503,temporarily_unavailable,,Service Unavailable +POST,/internals/transaction-groups,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +GET,/internals/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +DELETE,/internals/transaction-groups/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,503,temporarily_unavailable,,Service Unavailable +POST,/internals/transactions,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,409,transaction_already_belongs_to_transaction_group,"取引はすでに別のグループに属しています",Transaction already belongs to another group +,,422,transaction_amount_not_determined,"取引金額が指定されておらず、特定できません",Transaction amount is not specified and cannot be determined +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,503,temporarily_unavailable,,Service Unavailable +POST,/internals/expire-balance,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,404,transaction_group_not_found,"トランザクショングループが見つかりません",Transaction group not found +,,409,transaction_already_belongs_to_transaction_group,"取引はすでに別のグループに属しています",Transaction already belongs to another group +,,422,account_not_found,"アカウントが見つかりません",The account is not found +,,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,422,credit_session_money_topup_requires_credit_card,"オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています",Credit card is required for topup on credit-session enabled money +,,422,cannot_topup_during_cvs_authorization_pending,"コンビニ決済の予約中はチャージできません",You cannot topup your account while a convenience store payment is pending. +,,422,credit_session_not_found,"オーソリセッションが見つかりません",Credit session not found +,,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 +,,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,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. +,,422,account_suspended,"アカウントは停止されています",The account is suspended +,,422,account_pre_closed,"アカウントは退会準備中です",The account is pre-closed +,,422,account_closed,"アカウントは退会しています",The account is closed +,,422,transaction_not_found,"取引が見つかりません",Transaction not found +,,422,request_id_conflict,"このリクエストIDは他の取引ですでに使用されています。お手数ですが、別のリクエストIDで最初からやり直してください。",The request_id is already used by another transaction. Try again with new request id +,,503,temporarily_unavailable,,Service Unavailable +GET,/internals/system-user,422,user_not_found,"ユーザーが見つかりません",The user is not found +,,503,temporarily_unavailable,,Service Unavailable +GET,/internals/private-moneys/:uuid/credit-session-settings,422,private_money_not_found,"マネーが見つかりません",Private money not found +,,503,temporarily_unavailable,,Service Unavailable +GET,/jihanpi-vending-machines,400,invalid_parameters,"項目が無効です",Invalid parameters +,,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,organization_not_found,,Organization not found +,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found +,,422,private_money_not_found,"マネーが見つかりません",Private money not found +POST,/jihanpi-vending-machines,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,409,jihanpi_vending_machine_nfc_tag_id_conflict,"同じ自販機NFCタグIDがすでに存在します",Jihanpi vending machine NFC tag ID conflict +,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found +,,422,shop_user_not_found,"店舗が見つかりません",The shop user is not found +GET,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found +PATCH,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,409,jihanpi_vending_machine_nfc_tag_id_conflict,"同じ自販機NFCタグIDがすでに存在します",Jihanpi vending machine NFC tag ID conflict +,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found +,,503,temporarily_unavailable,,Service Unavailable +DELETE,/jihanpi-vending-machines/:uuid,403,unpermitted_admin_user,"この管理ユーザには権限がありません",Admin does not have permission +,,422,jihanpi_vending_machine_not_found,"自販機情報が見つかりません",Jihanpi vending machine not found +,,503,temporarily_unavailable,,Service Unavailable diff --git a/docs/event.md b/docs/event.md index eaed9903..8ed9d639 100644 --- a/docs/event.md +++ b/docs/event.md @@ -1,4 +1,10 @@ # Event +外部決済イベント(ExternalTransaction)を表すデータです。 +Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。 +外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。 +イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。 +リクエストIDによる羃等性の担保もサポートしています。 + ## CreateExternalTransaction: ポケペイ外部取引を作成する @@ -6,21 +12,19 @@ ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 - ```PHP $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 - 8678, // amount: 取引額 + 8613, // 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-10-22T17:57:20.000000Z" // ポケペイ外部取引の実施時間 + 'done_at' => "2023-09-15T08:40:24.000000Z" // ポケペイ外部取引の実施時間 ] ); ``` @@ -28,13 +32,14 @@ $request = new Request\CreateExternalTransaction( ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 ポケペイ外部取引が行なう店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -42,13 +47,16 @@ $request = new Request\CreateExternalTransaction( } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 エンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -56,13 +64,16 @@ $request = new Request\CreateExternalTransaction( } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -70,11 +81,14 @@ $request = new Request\CreateExternalTransaction( } ``` -**`amount`** - +
+#### `amount` 取引金額です。 +
+スキーマ + ```json { "type": "integer", @@ -82,13 +96,16 @@ $request = new Request\CreateExternalTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -96,13 +113,16 @@ $request = new Request\CreateExternalTransaction( } ``` -**`metadata`** - +
+#### `metadata` ポケペイ外部取引作成時に指定され、取引と紐付けられるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSONで指定します。 +
+スキーマ + ```json { "type": "string", @@ -110,9 +130,9 @@ $request = new Request\CreateExternalTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -124,6 +144,9 @@ $request = new Request\CreateExternalTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -133,15 +156,18 @@ $request = new Request\CreateExternalTransaction( } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 +
+スキーマ + ```json { "type": "string", @@ -149,13 +175,16 @@ $request = new Request\CreateExternalTransaction( } ``` -**`done_at`** - +
+#### `done_at` ポケペイ外部取引が実際に起こった時間です。 時間帯指定のポイント付与キャンペーンでの取引時間の計算に使われます。 デフォルトではCreateExternalTransactionがリクエストされた時間になります。 +
+スキーマ + ```json { "type": "string", @@ -163,6 +192,8 @@ $request = new Request\CreateExternalTransaction( } ``` +
+ 成功したときは @@ -181,7 +212,9 @@ $request = new Request\CreateExternalTransaction( |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|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| @@ -244,9 +277,10 @@ $request = new Request\RefundExternalTransaction( ### Parameters -**`event_id`** - +#### `event_id` +
+スキーマ ```json { @@ -255,9 +289,12 @@ $request = new Request\RefundExternalTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -266,6 +303,8 @@ $request = new Request\RefundExternalTransaction( } ``` +
+ 成功したときは @@ -292,9 +331,10 @@ $request = new Request\GetExternalTransactionByRequestId( ### Parameters -**`request_id`** - +#### `request_id` +
+スキーマ ```json { @@ -303,6 +343,8 @@ $request = new Request\GetExternalTransactionByRequestId( } ``` +
+ 成功したときは diff --git a/docs/organization.md b/docs/organization.md index e874982e..4d7d2817 100644 --- a/docs/organization.md +++ b/docs/organization.md @@ -1,4 +1,9 @@ # Organization +組織(発行体・加盟店組織)を表すデータです。 +Pokepay上でマネーを発行する発行体や、店舗を束ねる加盟店組織を管理します。 +組織には組織コード、組織名、本社情報などが含まれます。 +組織配下に複数の店舗(Shop)を持つことができます。 + ## ListOrganizations: 加盟店組織の一覧を取得する @@ -9,8 +14,8 @@ $request = new Request\ListOrganizations( [ 'page' => 1, // ページ番号 'per_page' => 50, // 1ページ分の取引数 - 'name' => "8G", // 組織名 - 'code' => "nuuGn" // 組織コード + 'name' => "zO75yHWR", // 組織名 + 'code' => "FLMa9C" // 組織コード ] ); ``` @@ -18,12 +23,13 @@ $request = new Request\ListOrganizations( ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 このマネーに加盟している加盟組織がフィルターされます。 +
+スキーマ + ```json { "type": "string", @@ -31,11 +37,14 @@ $request = new Request\ListOrganizations( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -43,11 +52,14 @@ $request = new Request\ListOrganizations( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -55,9 +67,12 @@ $request = new Request\ListOrganizations( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -65,9 +80,12 @@ $request = new Request\ListOrganizations( } ``` -**`code`** - +
+#### `code` + +
+スキーマ ```json { @@ -75,6 +93,8 @@ $request = new Request\ListOrganizations( } ``` +
+ 成功したときは @@ -101,14 +121,14 @@ $request = new Request\CreateOrganization( "ox-supermarket", // code: 新規組織コード "oxスーパー", // name: 新規組織名 ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // privateMoneyIds: 加盟店組織で有効にするマネーIDの配列 - "3um0ZKYlqH@YAPf.com", // issuerAdminUserEmail: 発行体担当者メールアドレス - "acx4ba4pxX@iFCi.com", // memberAdminUserEmail: 新規組織担当者メールアドレス + "O3GmqQepv7@doxp.com", // issuerAdminUserEmail: 発行体担当者メールアドレス + "RjgZI2VSDv@LJkk.com", // memberAdminUserEmail: 新規組織担当者メールアドレス [ 'bank_name' => "XYZ銀行", // 銀行名 'bank_code' => "1234", // 銀行金融機関コード 'bank_branch_name' => "ABC支店", // 銀行支店名 'bank_branch_code' => "123", // 銀行支店コード - 'bank_account_type' => "saving", // 銀行口座種別 (普通=saving, 当座=current, その他=other) + 'bank_account_type' => "other", // 銀行口座種別 (普通=saving, 当座=current, その他=other) 'bank_account' => "1234567", // 銀行口座番号 'bank_account_holder_name' => "フクザワユキチ", // 口座名義人名 'contact_name' => "佐藤清" // 担当者名 @@ -119,9 +139,10 @@ $request = new Request\CreateOrganization( ### Parameters -**`code`** - +#### `code` +
+スキーマ ```json { @@ -130,9 +151,12 @@ $request = new Request\CreateOrganization( } ``` -**`name`** - +
+ +#### `name` +
+スキーマ ```json { @@ -141,9 +165,12 @@ $request = new Request\CreateOrganization( } ``` -**`private_money_ids`** - +
+#### `private_money_ids` + +
+スキーマ ```json { @@ -156,9 +183,12 @@ $request = new Request\CreateOrganization( } ``` -**`issuer_admin_user_email`** - +
+ +#### `issuer_admin_user_email` +
+スキーマ ```json { @@ -167,9 +197,12 @@ $request = new Request\CreateOrganization( } ``` -**`member_admin_user_email`** - +
+ +#### `member_admin_user_email` +
+スキーマ ```json { @@ -178,9 +211,12 @@ $request = new Request\CreateOrganization( } ``` -**`bank_name`** - +
+#### `bank_name` + +
+スキーマ ```json { @@ -189,9 +225,12 @@ $request = new Request\CreateOrganization( } ``` -**`bank_code`** - +
+ +#### `bank_code` +
+スキーマ ```json { @@ -200,9 +239,12 @@ $request = new Request\CreateOrganization( } ``` -**`bank_branch_name`** - +
+ +#### `bank_branch_name` +
+スキーマ ```json { @@ -211,9 +253,12 @@ $request = new Request\CreateOrganization( } ``` -**`bank_branch_code`** - +
+#### `bank_branch_code` + +
+スキーマ ```json { @@ -222,9 +267,12 @@ $request = new Request\CreateOrganization( } ``` -**`bank_account_type`** - +
+ +#### `bank_account_type` +
+スキーマ ```json { @@ -237,9 +285,12 @@ $request = new Request\CreateOrganization( } ``` -**`bank_account`** - +
+ +#### `bank_account` +
+スキーマ ```json { @@ -249,9 +300,12 @@ $request = new Request\CreateOrganization( } ``` -**`bank_account_holder_name`** - +
+#### `bank_account_holder_name` + +
+スキーマ ```json { @@ -261,17 +315,22 @@ $request = new Request\CreateOrganization( } ``` -**`contact_name`** - +
+ +#### `contact_name` +
+スキーマ ```json { "type": "string", - "maxLength": 256 + "maxLength": 64 } ``` +
+ 成功したときは @@ -281,12 +340,16 @@ $request = new Request\CreateOrganization( ### Error Responses |status|type|ja|en| |---|---|---|---| +|400|invalid_parameters|項目が無効です|Invalid parameters| |403|NULL|NULL|NULL| |409|organization_conflict||The organization code is already used| +|409|organization_invoice_registration_number_conflict|この登録番号は既に登録されています|The invoice registration number is conflict| |409|shop_name_conflict||The shop name is already used| |422|organization_private_money_not_found||Issuer organization does not have private-money| |422|unavailable_private_money||Given private money(s) is/are not available| +|422|organization_application_setting_not_found|加盟店申込み設定が見つかりません|Organization application setting not found| |503|failed_to_send_email||Failed to send an E-mail.| +|503|temporarily_unavailable||Service Unavailable| diff --git a/docs/private_money.md b/docs/private_money.md index 161f5a66..c13e2634 100644 --- a/docs/private_money.md +++ b/docs/private_money.md @@ -1,4 +1,10 @@ # Private Money +Pokepay上で発行する電子マネーを表すデータです。 +電子マネーは1つの発行体(Organization)によって発行されます。 +電子マネーはCustomerやMerchantが所有するウォレット間を送金されます。 +電子マネー残高はユーザが有償で購入するマネーと無償で付与されるポイントの2種類のバリューで構成され、 +それぞれ有効期限決定ロジックは電子マネーの設定に依存します。 + ## GetPrivateMoneys: マネー一覧を取得する @@ -19,11 +25,12 @@ $request = new Request\GetPrivateMoneys( ### Parameters -**`organization_code`** - - +#### `organization_code` パートナーキーの管理者が発行体組織に属している場合、発行マネーのうち、この組織コードで指定した決済加盟店組織が加盟しているマネーの一覧を返します。決済加盟店組織の管理者は自組織以外を指定することはできません。 +
+スキーマ + ```json { "type": "string", @@ -32,9 +39,12 @@ $request = new Request\GetPrivateMoneys( } ``` -**`page`** - +
+ +#### `page` +
+スキーマ ```json { @@ -43,9 +53,12 @@ $request = new Request\GetPrivateMoneys( } ``` -**`per_page`** - +
+#### `per_page` + +
+スキーマ ```json { @@ -54,6 +67,8 @@ $request = new Request\GetPrivateMoneys( } ``` +
+ 成功したときは @@ -78,8 +93,8 @@ $request = new Request\GetPrivateMoneys( $request = new Request\GetPrivateMoneyOrganizationSummaries( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'from' => "2022-06-21T07:17:00.000000Z", // 開始日時(toと同時に指定する必要有) - 'to' => "2023-11-30T02:26:04.000000Z", // 終了日時(fromと同時に指定する必要有) + 'from' => "2020-05-20T05:22:42.000000Z", // 開始日時(toと同時に指定する必要有) + 'to' => "2020-07-28T00:27:27.000000Z", // 終了日時(fromと同時に指定する必要有) 'page' => 1, // ページ番号 'per_page' => 50 // 1ページ分の取引数 ] @@ -90,9 +105,10 @@ $request = new Request\GetPrivateMoneyOrganizationSummaries( ### Parameters -**`private_money_id`** - +#### `private_money_id` +
+スキーマ ```json { @@ -101,9 +117,12 @@ $request = new Request\GetPrivateMoneyOrganizationSummaries( } ``` -**`from`** - +
+ +#### `from` +
+スキーマ ```json { @@ -112,9 +131,12 @@ $request = new Request\GetPrivateMoneyOrganizationSummaries( } ``` -**`to`** - +
+#### `to` + +
+スキーマ ```json { @@ -123,9 +145,12 @@ $request = new Request\GetPrivateMoneyOrganizationSummaries( } ``` -**`page`** - +
+ +#### `page` +
+スキーマ ```json { @@ -134,9 +159,12 @@ $request = new Request\GetPrivateMoneyOrganizationSummaries( } ``` -**`per_page`** - +
+#### `per_page` + +
+スキーマ ```json { @@ -145,6 +173,8 @@ $request = new Request\GetPrivateMoneyOrganizationSummaries( } ``` +
+ 成功したときは @@ -163,8 +193,8 @@ $request = new Request\GetPrivateMoneyOrganizationSummaries( $request = new Request\GetPrivateMoneySummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ - 'from' => "2021-01-09T11:30:21.000000Z", // 開始日時 - 'to' => "2024-03-22T20:39:27.000000Z" // 終了日時 + 'from' => "2023-01-24T10:31:04.000000Z", // 開始日時 + 'to' => "2022-04-01T01:49:52.000000Z" // 終了日時 ] ); ``` @@ -172,9 +202,10 @@ $request = new Request\GetPrivateMoneySummary( ### Parameters -**`private_money_id`** - +#### `private_money_id` +
+スキーマ ```json { @@ -183,9 +214,12 @@ $request = new Request\GetPrivateMoneySummary( } ``` -**`from`** - +
+#### `from` + +
+スキーマ ```json { @@ -194,9 +228,12 @@ $request = new Request\GetPrivateMoneySummary( } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -205,6 +242,8 @@ $request = new Request\GetPrivateMoneySummary( } ``` +
+ 成功したときは diff --git a/docs/responses.md b/docs/responses.md index f1e4b20e..4a07c5cc 100644 --- a/docs/responses.md +++ b/docs/responses.md @@ -1,12 +1,70 @@ # Responses + +## CvsAuthorization +* `account (AccountDetail)`: +* `user (User)`: +* `orderId (string)`: 申し込みID +* `transactionId (string|null)`: 取引ID +* `payLimit (\DateTime)`: お支払期限 +* `tel (string)`: 電話番号 +* `name1 (string)`: 顧客姓 +* `name2 (string)`: 顧客名 +* `amount (integer)`: チャージ額 +* `serviceOptionType (string)`: コンビニ種別 +* `haraikomiUrl (string)`: 払込票URL +* `receiptNo (string)`: 受付番号 +* `doneAt (\DateTime|null)`: 入金完了日時 +* `canceledAt (\DateTime|null)`: キャンセル日時 + +`account`は [AccountDetail](#account-detail) オブジェクトを返します。 + +`user`は [User](#user) オブジェクトを返します。 + + +## PaginatedCvsAuthorizations +* `perPage (integer)`: +* `count (integer)`: +* `items (CvsAuthorization[])`: +* `prev (string|null)`: +* `next (string|null)`: + +`items`は [CvsAuthorization](#cvs-authorization) オブジェクトの配列を返します。 + + +## CreditSession +* `id (string)`: +* `expiresAt (\DateTime)`: + + +## CapturedCreditSession +* `sessionId (string)`: + + +## CreditSessionTransactionResult + + +## PaginatedUserCards +* `rows (UserCard[])`: +* `count (integer)`: 総件数 +* `pagination (Pagination)`: + +`rows`は [UserCard](#user-card) オブジェクトの配列を返します。 + +`pagination`は [Pagination](#pagination) オブジェクトを返します。 + + +## CardAuthorizeResult +* `authenticationHtml (string)`: 認証開始用HTML +* `requestId (string)`: リクエストID + ## AccountWithUser -* `id (string)`: -* `name (string)`: -* `isSuspended (boolean)`: -* `status (string)`: -* `privateMoney (PrivateMoney)`: -* `user (User)`: +* `id (string)`: ウォレットID +* `name (string)`: ウォレット名 +* `isSuspended (boolean)`: ウォレットが凍結されているかどうか +* `status (string)`: ウォレット状態 +* `privateMoney (PrivateMoney)`: 設定マネー情報 +* `user (User)`: ユーザ情報 `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 @@ -14,17 +72,17 @@ ## AccountDetail -* `id (string)`: -* `name (string)`: -* `isSuspended (boolean)`: -* `status (string)`: -* `balance (double)`: -* `moneyBalance (double)`: -* `pointBalance (double)`: -* `pointDebt (double)`: -* `privateMoney (PrivateMoney)`: -* `user (User)`: -* `externalId (string|null)`: +* `id (string)`: ウォレットID +* `name (string)`: ウォレット名 +* `isSuspended (boolean)`: ウォレットが凍結されているかどうか +* `status (string)`: ウォレット状態 +* `balance (double)`: 総残高 +* `moneyBalance (double)`: マネー残高 +* `pointBalance (double)`: ポイント残高 +* `pointDebt (double)`: ポイント負債 +* `privateMoney (PrivateMoney)`: 設定マネー情報 +* `user (User)`: ユーザ情報 +* `externalId (string|null)`: 外部ID `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 @@ -33,6 +91,9 @@ ## AccountDeleted + +## CustomerCardDeleted + ## Bill * `id (string)`: 支払いQRコードのID @@ -43,6 +104,7 @@ * `account (AccountWithUser)`: 支払いQRコード発行ウォレット * `isDisabled (boolean)`: 無効化されているかどうか * `token (string)`: 支払いQRコードを解析したときに出てくるURL +* `createdAt (\DateTime)`: 支払いQRコードの作成日時 `account`は [AccountWithUser](#account-with-user) オブジェクトを返します。 @@ -89,6 +151,7 @@ * `scopes (string[])`: 許可された取引種別 * `expiresAt (\DateTime)`: CPMトークンの失効日時 * `metadata (string)`: エンドユーザー側メタデータ +* `strategy (string|null)`: 支払い時の残高消費方式 `account`は [AccountDetail](#account-detail) オブジェクトを返します。 @@ -142,9 +205,9 @@ * `id (string)`: 取引ID * `type (string)`: 取引種別 * `isModified (boolean)`: 返金された取引かどうか -* `sender (User)`: 送金者情報 +* `sender (User)`: 送金ユーザ情報 * `senderAccount (Account)`: 送金ウォレット情報 -* `receiver (User)`: 受取者情報 +* `receiver (User)`: 受取ユーザ情報 * `receiverAccount (Account)`: 受取ウォレット情報 * `amount (double)`: 取引総額 (マネー額 + ポイント額) * `moneyAmount (double)`: 取引マネー額 @@ -153,7 +216,7 @@ * `campaignPointAmount (double)`: キャンペーンによるポイント付与額 * `doneAt (\DateTime)`: 取引日時 * `description (string)`: 取引説明文 -* `transfers (Transfer[])`: +* `transfers (Transfer[])`: 取引明細一覧 `receiver`と`sender`は [User](#user) オブジェクトを返します。 @@ -161,6 +224,16 @@ `transfers`は [Transfer](#transfer) オブジェクトの配列を返します。 + +## TransactionGroup +* `id (string)`: トランザクショングループID +* `name (string)`: トランザクショングループ名 +* `createdAt (\DateTime)`: 作成日時 +* `updatedAt (\DateTime)`: 更新日時 +* `transactions (Transaction[])`: グループに属する取引一覧 + +`transactions`は [Transaction](#transaction) オブジェクトの配列を返します。 + ## ShopWithAccounts * `id (string)`: 店舗ID @@ -187,6 +260,7 @@ * `errorLineno (integer|null)`: バルク取引のエラーが発生した行番号 * `submittedAt (\DateTime)`: バルク取引が登録された日時 * `updatedAt (\DateTime)`: バルク取引が更新された日時 +* `scheduledAt (\DateTime|null)`: バルク取引の予約実行日時 ## PaginatedBulkTransactionJob @@ -474,6 +548,8 @@ * `couponImage (string|null)`: クーポン画像のURL * `availableShops (User[])`: 利用可能店舗リスト * `privateMoney (PrivateMoney)`: クーポンのマネー +* `numRecipientsCap (integer|null)`: クーポンを受け取ることができるユーザ数上限 +* `numRecipients (integer|null)`: クーポンを受け取ったユーザ数 `issued_shop`は [User](#user) オブジェクトを返します。 @@ -518,6 +594,20 @@ `transaction`は [Transaction](#transaction) オブジェクトを返します。 + +## UserCard +* `id (string)`: カード識別子 +* `cardNumber (string)`: マスク済みカード番号 +* `registeredAt (\DateTime)`: 登録日時 + + +## Pagination +* `current (integer)`: +* `perPage (integer)`: +* `maxPage (integer)`: +* `hasPrev (boolean)`: +* `hasNext (boolean)`: + ## PrivateMoney * `id (string)`: マネーID @@ -537,22 +627,14 @@ `organization`は [Organization](#organization) オブジェクトを返します。 - -## Pagination -* `current (integer)`: -* `perPage (integer)`: -* `maxPage (integer)`: -* `hasPrev (boolean)`: -* `hasNext (boolean)`: - ## Transaction * `id (string)`: 取引ID * `type (string)`: 取引種別 * `isModified (boolean)`: 返金された取引かどうか -* `sender (User)`: 送金者情報 +* `sender (User)`: 送金ユーザ情報 * `senderAccount (Account)`: 送金ウォレット情報 -* `receiver (User)`: 受取者情報 +* `receiver (User)`: 受取ユーザ情報 * `receiverAccount (Account)`: 受取ウォレット情報 * `amount (double)`: 取引総額 (マネー額 + ポイント額) * `moneyAmount (double)`: 取引マネー額 @@ -597,23 +679,23 @@ * `id (string)`: ウォレットID * `name (string)`: ウォレット名 * `isSuspended (boolean)`: ウォレットが凍結されているかどうか -* `status (string)`: +* `status (string)`: ウォレット状態 * `privateMoney (PrivateMoney)`: 設定マネー情報 `private_money`は [PrivateMoney](#private-money) オブジェクトを返します。 ## Transfer -* `id (string)`: -* `senderAccount (AccountWithoutPrivateMoneyDetail)`: -* `receiverAccount (AccountWithoutPrivateMoneyDetail)`: -* `amount (double)`: -* `moneyAmount (double)`: -* `pointAmount (double)`: -* `doneAt (\DateTime)`: -* `type (string)`: -* `description (string)`: -* `transactionId (string)`: +* `id (string)`: 取引明細ID +* `senderAccount (AccountWithoutPrivateMoneyDetail)`: 送金元ウォレット +* `receiverAccount (AccountWithoutPrivateMoneyDetail)`: 送金先ウォレット +* `amount (double)`: 送金総額 (マネー額 + ポイント額) +* `moneyAmount (double)`: 送金マネー額 +* `pointAmount (double)`: 送金ポイント額 +* `doneAt (\DateTime)`: 送金日時 +* `type (string)`: 取引明細種別 +* `description (string)`: 取引明細説明文 +* `transactionId (string)`: 親取引ID `receiver_account`と`sender_account`は [AccountWithoutPrivateMoneyDetail](#account-without-private-money-detail) オブジェクトを返します。 @@ -725,6 +807,8 @@ * `code (string|null)`: クーポン受け取りコード * `isDisabled (boolean)`: 無効化フラグ * `token (string)`: クーポンを特定するためのトークン +* `numRecipientsCap (integer|null)`: クーポンを受け取ることができるユーザ数上限 +* `numRecipients (integer|null)`: クーポンを受け取ったユーザ数 `issued_shop`は [User](#user) オブジェクトを返します。 diff --git a/docs/seven_bank_atm_session.md b/docs/seven_bank_atm_session.md index 294925e3..97f8f2ac 100644 --- a/docs/seven_bank_atm_session.md +++ b/docs/seven_bank_atm_session.md @@ -1,31 +1,33 @@ # SevenBankATMSession セブンATMチャージの取引内容を照会するAPIを提供しています。 - ## GetSevenBankATMSession: セブン銀行ATMセッションの取得 セブン銀行ATMセッションを取得します ```PHP $request = new Request\GetSevenBankATMSession( - "1CcP" // qrInfo: QRコードの情報 + "qGQBWGD" // qrInfo: QRコードの情報 ); ``` ### Parameters -**`qr_info`** - - +#### `qr_info` 取得するセブン銀行ATMチャージのQRコードの情報です。 +
+スキーマ + ```json { "type": "string" } ``` +
+ 成功したときは diff --git a/docs/shop.md b/docs/shop.md index 9de1570f..050ef2ac 100644 --- a/docs/shop.md +++ b/docs/shop.md @@ -1,4 +1,10 @@ # Shop +店舗(加盟店)を表すデータです。 +Pokepayプラットフォーム上で支払いを受け取る店舗ユーザーを管理します。 +店舗は組織(Organization)に所属し、店舗ごとにウォレットを持ちます。 +店舗情報には住所、電話番号、メールアドレス、外部連携用IDなどが含まれます。 +店舗ステータス(active/disabled)の管理も可能です。 + ## ListShops: 店舗一覧を取得する @@ -9,11 +15,11 @@ $request = new Request\ListShops( 'organization_code' => "pocketchange", // 組織コード 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID 'name' => "oxスーパー三田店", // 店舗名 - 'postal_code' => "414-7112", // 店舗の郵便番号 + 'postal_code' => "433-1670", // 店舗の郵便番号 'address' => "東京都港区芝...", // 店舗の住所 - 'tel' => "044-05-7548", // 店舗の電話番号 - 'email' => "KnTaroT8w3@801Z.com", // 店舗のメールアドレス - 'external_id' => "pTa0FFkkUFLVCDKp9TvCsVFg3Dy", // 店舗の外部ID + 'tel' => "0416539743", // 店舗の電話番号 + 'email' => "kA5dwRQrAE@DCEB.com", // 店舗のメールアドレス + 'external_id' => "Tk0p", // 店舗の外部ID 'with_disabled' => TRUE, // 無効な店舗を含める 'page' => 1, // ページ番号 'per_page' => 50 // 1ページ分の取引数 @@ -24,11 +30,11 @@ $request = new Request\ListShops( ### Parameters -**`organization_code`** - - +#### `organization_code` このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 +
+スキーマ ```json { @@ -38,11 +44,13 @@ $request = new Request\ListShops( } ``` -**`private_money_id`** - +
+#### `private_money_id` このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 +
+スキーマ ```json { @@ -51,11 +59,13 @@ $request = new Request\ListShops( } ``` -**`name`** - +
+#### `name` このパラメータを渡すとその名前の店舗のみが返されます。 +
+スキーマ ```json { @@ -65,11 +75,13 @@ $request = new Request\ListShops( } ``` -**`postal_code`** - +
+#### `postal_code` このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -78,11 +90,13 @@ $request = new Request\ListShops( } ``` -**`address`** - +
+#### `address` このパラメータを渡すとその住所が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -91,11 +105,13 @@ $request = new Request\ListShops( } ``` -**`tel`** - +
+#### `tel` このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -104,11 +120,13 @@ $request = new Request\ListShops( } ``` -**`email`** - +
+#### `email` このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -118,11 +136,13 @@ $request = new Request\ListShops( } ``` -**`external_id`** - +
+#### `external_id` このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 +
+スキーマ ```json { @@ -131,11 +151,13 @@ $request = new Request\ListShops( } ``` -**`with_disabled`** - +
+#### `with_disabled` このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 +
+スキーマ ```json { @@ -143,11 +165,14 @@ $request = new Request\ListShops( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -155,18 +180,24 @@ $request = new Request\ListShops( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", - "minimum": 1 + "minimum": 1, + "maximum": 1000 } ``` +
+ 成功したときは @@ -194,11 +225,11 @@ $request = new Request\ListShops( $request = new Request\CreateShop( "oxスーパー三田店", // shopName: 店舗名 [ - 'shop_postal_code' => "0492706", // 店舗の郵便番号 + 'shop_postal_code' => "1771848", // 店舗の郵便番号 'shop_address' => "東京都港区芝...", // 店舗の住所 - 'shop_tel' => "0229-195224", // 店舗の電話番号 - 'shop_email' => "I5NM6J7Ehk@zGk2.com", // 店舗のメールアドレス - 'shop_external_id' => "yYle2ZOPXJOiEYcNwwBKhoxCdqw8", // 店舗の外部ID + 'shop_tel' => "03916185-4669", // 店舗の電話番号 + 'shop_email' => "S3Zg4O5dK9@OBTn.com", // 店舗のメールアドレス + 'shop_external_id' => "gY0HIwJr5Xn6R9PIw5eC52tvIBnMyMg4Cn", // 店舗の外部ID 'organization_code' => "ox-supermarket" // 組織コード ] ); @@ -207,9 +238,10 @@ $request = new Request\CreateShop( ### Parameters -**`shop_name`** - +#### `shop_name` +
+スキーマ ```json { @@ -219,9 +251,12 @@ $request = new Request\CreateShop( } ``` -**`shop_postal_code`** - +
+ +#### `shop_postal_code` +
+スキーマ ```json { @@ -230,9 +265,12 @@ $request = new Request\CreateShop( } ``` -**`shop_address`** - +
+#### `shop_address` + +
+スキーマ ```json { @@ -241,9 +279,12 @@ $request = new Request\CreateShop( } ``` -**`shop_tel`** - +
+ +#### `shop_tel` +
+スキーマ ```json { @@ -252,9 +293,12 @@ $request = new Request\CreateShop( } ``` -**`shop_email`** - +
+#### `shop_email` + +
+スキーマ ```json { @@ -264,9 +308,12 @@ $request = new Request\CreateShop( } ``` -**`shop_external_id`** - +
+ +#### `shop_external_id` +
+スキーマ ```json { @@ -275,9 +322,12 @@ $request = new Request\CreateShop( } ``` -**`organization_code`** - +
+ +#### `organization_code` +
+スキーマ ```json { @@ -287,6 +337,8 @@ $request = new Request\CreateShop( } ``` +
+ 成功したときは @@ -315,14 +367,14 @@ $request = new Request\CreateShop( $request = new Request\CreateShopV2( "oxスーパー三田店", // name: 店舗名 [ - 'postal_code' => "3437268", // 店舗の郵便番号 + 'postal_code' => "424-1276", // 店舗の郵便番号 'address' => "東京都港区芝...", // 店舗の住所 - 'tel' => "08-22599", // 店舗の電話番号 - 'email' => "z7E9ZuYBAH@z0vH.com", // 店舗のメールアドレス - 'external_id' => "u4S", // 店舗の外部ID + 'tel' => "02-4427304", // 店舗の電話番号 + 'email' => "792da7QYy7@V605.com", // 店舗のメールアドレス + 'external_id' => "zcBixerwgOsZ", // 店舗の外部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の配列 + 'private_money_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "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の配列 ] ); ``` @@ -330,13 +382,14 @@ $request = new Request\CreateShopV2( ### Parameters -**`name`** - - +#### `name` 店舗名です。 同一組織内に同名の店舗があった場合は`name_conflict`エラーが返ります。 +
+スキーマ + ```json { "type": "string", @@ -345,9 +398,12 @@ $request = new Request\CreateShopV2( } ``` -**`postal_code`** - +
+ +#### `postal_code` +
+スキーマ ```json { @@ -356,9 +412,12 @@ $request = new Request\CreateShopV2( } ``` -**`address`** - +
+#### `address` + +
+スキーマ ```json { @@ -367,9 +426,12 @@ $request = new Request\CreateShopV2( } ``` -**`tel`** - +
+ +#### `tel` +
+スキーマ ```json { @@ -378,9 +440,12 @@ $request = new Request\CreateShopV2( } ``` -**`email`** - +
+#### `email` + +
+スキーマ ```json { @@ -390,9 +455,12 @@ $request = new Request\CreateShopV2( } ``` -**`external_id`** - +
+ +#### `external_id` +
+スキーマ ```json { @@ -401,9 +469,12 @@ $request = new Request\CreateShopV2( } ``` -**`organization_code`** - +
+ +#### `organization_code` +
+スキーマ ```json { @@ -413,14 +484,17 @@ $request = new Request\CreateShopV2( } ``` -**`private_money_ids`** - +
+#### `private_money_ids` 店舗で有効にするマネーIDの配列を指定します。 店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 このパラメータを省略したときは、店舗が所属する組織が発行または加盟している全てのマネーのウォレットができます。 +
+スキーマ + ```json { "type": "array", @@ -432,14 +506,17 @@ $request = new Request\CreateShopV2( } ``` -**`can_topup_private_money_ids`** - +
+#### `can_topup_private_money_ids` 店舗でチャージ可能にするマネーIDの配列を指定します。 このパラメータは発行体のみが指定でき、自身が発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 +
+スキーマ + ```json { "type": "array", @@ -451,6 +528,8 @@ $request = new Request\CreateShopV2( } ``` +
+ 成功したときは @@ -467,6 +546,9 @@ $request = new Request\CreateShopV2( |422|unpermitted_private_money|このマネーは使えません|This money is not available| |422|unavailable_private_money||Given private money(s) is/are not available| |422|organization_not_member_organization||The specified organization is not a member organization of the organization accessing this API| +|503|geocoding_api_key_missing|住所検索サービスは一時的に利用できません|Geocoding service is temporarily unavailable| +|503|geocoding_api_error|住所検索 API がエラーを返しました|Geocoding API returned an error| +|503|geocoding_http_error|住所検索リクエストに失敗しました|Geocoding request failed| @@ -488,9 +570,10 @@ $request = new Request\GetShop( ### Parameters -**`shop_id`** - +#### `shop_id` +
+スキーマ ```json { @@ -499,6 +582,8 @@ $request = new Request\GetShop( } ``` +
+ 成功したときは @@ -519,13 +604,13 @@ $request = new Request\UpdateShop( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ユーザーID [ 'name' => "oxスーパー三田店", // 店舗名 - 'postal_code' => "904-8000", // 店舗の郵便番号 + 'postal_code' => "9613996", // 店舗の郵便番号 'address' => "東京都港区芝...", // 店舗の住所 - '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の配列 + 'tel' => "03-50-4755", // 店舗の電話番号 + 'email' => "mBamQcUvvH@D25X.com", // 店舗のメールアドレス + 'external_id' => "YGaGoRmlkWpVKSQYACWhdJ", // 店舗の外部ID + 'private_money_ids' => [], // 店舗で有効にするマネーIDの配列 + 'can_topup_private_money_ids' => ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"], // 店舗でチャージ可能にするマネーIDの配列 'status' => "disabled" // 店舗の状態 ] ); @@ -534,9 +619,10 @@ $request = new Request\UpdateShop( ### Parameters -**`shop_id`** - +#### `shop_id` +
+スキーマ ```json { @@ -545,13 +631,16 @@ $request = new Request\UpdateShop( } ``` -**`name`** - +
+#### `name` 店舗名です。 同一組織内に同名の店舗があった場合は`shop_name_conflict`エラーが返ります。 +
+スキーマ + ```json { "type": "string", @@ -560,11 +649,14 @@ $request = new Request\UpdateShop( } ``` -**`postal_code`** - +
+#### `postal_code` 店舗住所の郵便番号(7桁の数字)です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -572,9 +664,12 @@ $request = new Request\UpdateShop( } ``` -**`address`** - +
+#### `address` + +
+スキーマ ```json { @@ -583,11 +678,14 @@ $request = new Request\UpdateShop( } ``` -**`tel`** - +
+#### `tel` 店舗の電話番号です。ハイフンは無視されます。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -595,11 +693,14 @@ $request = new Request\UpdateShop( } ``` -**`email`** - +
+#### `email` 店舗の連絡先メールアドレスです。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -608,11 +709,14 @@ $request = new Request\UpdateShop( } ``` -**`external_id`** - +
+#### `external_id` 店舗の外部IDです(最大36文字)。明示的に空の値を設定するにはNULLを指定します。 +
+スキーマ + ```json { "type": "string", @@ -620,14 +724,17 @@ $request = new Request\UpdateShop( } ``` -**`private_money_ids`** - +
+#### `private_money_ids` 店舗で有効にするマネーIDの配列を指定します。 店舗が所属する組織が発行または加盟しているマネーのみが指定できます。利用できないマネーが指定された場合は`unavailable_private_money`エラーが返ります。 店舗が既にウォレットを持っている場合に、ここでそのウォレットのマネーIDを指定しないで更新すると、そのマネーのウォレットは凍結(無効化)されます。 +
+スキーマ + ```json { "type": "array", @@ -639,14 +746,17 @@ $request = new Request\UpdateShop( } ``` -**`can_topup_private_money_ids`** - +
+#### `can_topup_private_money_ids` 店舗でチャージ可能にするマネーIDの配列を指定します。 このパラメータは発行体のみが指定でき、発行しているマネーのみを指定できます。加盟店が他発行体のマネーに加盟している場合でも、そのチャージ可否を変更することはできません。 省略したときは対象店舗のその発行体の全てのマネーのアカウントがチャージ不可となります。 +
+スキーマ + ```json { "type": "array", @@ -658,11 +768,14 @@ $request = new Request\UpdateShop( } ``` -**`status`** - +
+#### `status` 店舗の状態です。activeを指定すると有効となり、disabledを指定するとリスト表示から除外されます。 +
+スキーマ + ```json { "type": "string", @@ -673,6 +786,8 @@ $request = new Request\UpdateShop( } ``` +
+ 成功したときは diff --git a/docs/transaction.md b/docs/transaction.md index 65c25f89..d2dca6c7 100644 --- a/docs/transaction.md +++ b/docs/transaction.md @@ -1,4 +1,15 @@ # Transaction +取引を表すデータです。 +マネー(Private Money)のウォレット間の送金を記録し、キャンセルなどで状態が更新されることがあります。 +取引種類として以下が存在します。 + +- topup: チャージ。Merchant => Customer送金 +- payment: 支払い。Customer => Merchant送金 +- transfer: 個人間譲渡。Customer => Customer送金 +- exchange: マネー間交換。1ユーザのウォレット間の送金(交換) +- expire: 退会時失効。退会時の払戻を伴わない残高失効履歴 +- cashback: 退会時払戻。退会時の払戻金額履歴 + ## GetCpmToken: CPMトークンの状態取得 @@ -6,18 +17,19 @@ CPMトークンの現在の状態を取得します。CPMトークンの有効 ```PHP $request = new Request\GetCpmToken( - "Bg2EP1IMpzVlOR0ZjHbJ4p" // cpmToken: CPMトークン + "kt1s5IzgftNOCeiOWbpouk" // cpmToken: CPMトークン ); ``` ### Parameters -**`cpm_token`** - - +#### `cpm_token` CPM取引時にエンドユーザーが店舗に提示するバーコードを解析して得られる22桁の文字列です。 +
+スキーマ + ```json { "type": "string", @@ -26,6 +38,8 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを } ``` +
+ 成功したときは @@ -44,18 +58,18 @@ CPM取引時にエンドユーザーが店舗に提示するバーコードを ```PHP $request = new Request\ListTransactions( [ - 'from' => "2024-05-24T19:52:05.000000Z", // 開始日時 - 'to' => "2024-08-19T13:06:16.000000Z", // 終了日時 + 'from' => "2021-09-22T09:42:40.000000Z", // 開始日時 + 'to' => "2022-02-17T21:31:20.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' => "mI", // 取引ID + 'transaction_id' => "VaYSY", // 取引ID 'organization_code' => "pocketchange", // 組織コード 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 'is_modified' => TRUE, // キャンセルフラグ + 'is_modified' => FALSE, // キャンセルフラグ 'types' => ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment 'description' => "店頭QRコードによる支払い" // 取引説明文 ] @@ -65,13 +79,14 @@ $request = new Request\ListTransactions( ### Parameters -**`from`** - - +#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -79,13 +94,16 @@ $request = new Request\ListTransactions( } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -93,11 +111,14 @@ $request = new Request\ListTransactions( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -105,11 +126,14 @@ $request = new Request\ListTransactions( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 +
+スキーマ + ```json { "type": "integer", @@ -117,13 +141,16 @@ $request = new Request\ListTransactions( } ``` -**`shop_id`** - +
+#### `shop_id` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -131,13 +158,16 @@ $request = new Request\ListTransactions( } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -145,13 +175,16 @@ $request = new Request\ListTransactions( } ``` -**`customer_name`** - +
+#### `customer_name` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -159,13 +192,16 @@ $request = new Request\ListTransactions( } ``` -**`terminal_id`** - +
+#### `terminal_id` 端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -173,26 +209,32 @@ $request = new Request\ListTransactions( } ``` -**`transaction_id`** - +
+#### `transaction_id` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`organization_code`** - +
+#### `organization_code` 組織コードです。 フィルターとして使われ、指定された組織での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -201,13 +243,16 @@ $request = new Request\ListTransactions( } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 フィルターとして使われ、指定したマネーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -215,23 +260,26 @@ $request = new Request\ListTransactions( } ``` -**`is_modified`** - +
+#### `is_modified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`types`** - +
+#### `types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -254,6 +302,9 @@ $request = new Request\ListTransactions( 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -271,13 +322,16 @@ $request = new Request\ListTransactions( } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -285,6 +339,8 @@ $request = new Request\ListTransactions( } ``` +
+ 成功したときは @@ -312,10 +368,10 @@ $request = new Request\CreateTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", [ - 'money_amount' => 6987, - 'point_amount' => 5216, - 'point_expires_at' => "2023-05-10T13:30:37.000000Z", // ポイント有効期限 - 'description' => "1BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2Ig" + 'money_amount' => 1060, + 'point_amount' => 6184, + 'point_expires_at' => "2026-04-08T21:55:02.000000Z", // ポイント有効期限 + 'description' => "U3L46cfTNsJ74FdhPrGorQztiuURWZ5r1OnryKkdpmMzmoITgipjScgSjEKEvn9tkKJsfEeEirDJBvMOLUpWvpkfaBwAHAugbJ1KgmPImdwaTBcN" ] ); ``` @@ -323,9 +379,10 @@ $request = new Request\CreateTransaction( ### Parameters -**`shop_id`** - +#### `shop_id` +
+スキーマ ```json { @@ -334,9 +391,12 @@ $request = new Request\CreateTransaction( } ``` -**`customer_id`** - +
+#### `customer_id` + +
+スキーマ ```json { @@ -345,9 +405,12 @@ $request = new Request\CreateTransaction( } ``` -**`private_money_id`** - +
+ +#### `private_money_id` +
+スキーマ ```json { @@ -356,9 +419,12 @@ $request = new Request\CreateTransaction( } ``` -**`money_amount`** - +
+ +#### `money_amount` +
+スキーマ ```json { @@ -368,9 +434,12 @@ $request = new Request\CreateTransaction( } ``` -**`point_amount`** - +
+#### `point_amount` + +
+スキーマ ```json { @@ -380,12 +449,15 @@ $request = new Request\CreateTransaction( } ``` -**`point_expires_at`** - +
+#### `point_expires_at` ポイントをチャージした場合の、付与されるポイントの有効期限です。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -393,9 +465,12 @@ $request = new Request\CreateTransaction( } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -404,6 +479,8 @@ $request = new Request\CreateTransaction( } ``` +
+ 成功したときは @@ -419,7 +496,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|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| @@ -461,6 +540,91 @@ $request = new Request\CreateTransaction( +--- + + + +## CreateTransactionGroup: トランザクショングループを作成する +複数の取引を1つのグループとして管理できるようにします。 + +```PHP +$request = new Request\CreateTransactionGroup( + "wqaqeRCH16a6zzUqrHdosHdbmLywq" // name: 作成するトランザクショングループの名称です。 +); +``` + + + +### Parameters +#### `name` +作成するトランザクショングループの名称です。 +"pokepay" で始まる文字列は予約済みのため使用できません。 + +
+スキーマ + +```json +{ + "type": "string", + "maxLength": 64 +} +``` + +
+ + + +成功したときは +[TransactionGroup](./responses.md#transaction-group) +を返します + +### Error Responses +|status|type|ja|en| +|---|---|---|---| +|403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| +|422|transaction_group_name_reserved|指定されたトランザクショングループ名は使用できません|Transaction group name is reserved| + + + +--- + + + +## ShowTransactionGroup: トランザクショングループを取得する +指定したトランザクショングループの詳細を返します。 + +```PHP +$request = new Request\ShowTransactionGroup( + "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // uuid: 取得したいトランザクショングループID +); +``` + + + +### Parameters +#### `uuid` +取得したいトランザクショングループID + +
+スキーマ + +```json +{ + "type": "string", + "format": "uuid" +} +``` + +
+ + + +成功したときは +[TransactionGroup](./responses.md#transaction-group) +を返します + + + --- @@ -478,11 +642,11 @@ $request = new Request\ListTransactionsV2( 'customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID 'customer_name' => "太郎", // エンドユーザー名 'description' => "店頭QRコードによる支払い", // 取引説明文 - 'transaction_id' => "jO", // 取引ID - 'is_modified' => FALSE, // キャンセルフラグ + 'transaction_id' => "kvEUDG", // 取引ID + 'is_modified' => TRUE, // キャンセルフラグ 'types' => ["topup", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment - 'from' => "2025-08-29T05:38:38.000000Z", // 開始日時 - 'to' => "2022-08-12T05:33:14.000000Z", // 終了日時 + 'from' => "2025-01-11T21:56:04.000000Z", // 開始日時 + 'to' => "2024-04-06T11:03:17.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ページ分の取引数 @@ -493,13 +657,14 @@ $request = new Request\ListTransactionsV2( ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -507,13 +672,16 @@ $request = new Request\ListTransactionsV2( } ``` -**`organization_code`** - +
+#### `organization_code` 組織コードです。 フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -522,13 +690,16 @@ $request = new Request\ListTransactionsV2( } ``` -**`shop_id`** - +
+#### `shop_id` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -536,13 +707,16 @@ $request = new Request\ListTransactionsV2( } ``` -**`terminal_id`** - +
+#### `terminal_id` 端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -550,13 +724,16 @@ $request = new Request\ListTransactionsV2( } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -564,13 +741,16 @@ $request = new Request\ListTransactionsV2( } ``` -**`customer_name`** - +
+#### `customer_name` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -578,13 +758,16 @@ $request = new Request\ListTransactionsV2( } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -592,36 +775,42 @@ $request = new Request\ListTransactionsV2( } ``` -**`transaction_id`** - +
+#### `transaction_id` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string" } ``` -**`is_modified`** - +
+#### `is_modified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`types`** - +
+#### `types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -648,6 +837,9 @@ $request = new Request\ListTransactionsV2( 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -665,13 +857,16 @@ $request = new Request\ListTransactionsV2( } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -679,13 +874,16 @@ $request = new Request\ListTransactionsV2( } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -693,15 +891,18 @@ $request = new Request\ListTransactionsV2( } ``` -**`next_page_cursor_id`** - +
+#### `next_page_cursor_id` 次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 next_page_cursor_idのtransaction自体は次のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -709,9 +910,9 @@ next_page_cursor_idのtransaction自体は次のページには含まれませ } ``` -**`prev_page_cursor_id`** - +
+#### `prev_page_cursor_id` 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -719,6 +920,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransaction自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -726,13 +930,16 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -741,6 +948,8 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` +
+ 成功したときは @@ -775,8 +984,8 @@ $request = new Request\ListBillTransactions( '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", // 終了日時 + 'from' => "2023-04-07T07:21:25.000000Z", // 開始日時 + 'to' => "2021-05-28T02:32:21.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ページ分の取引数 @@ -787,13 +996,14 @@ $request = new Request\ListBillTransactions( ### Parameters -**`private_money_id`** - - +#### `private_money_id` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -801,13 +1011,16 @@ $request = new Request\ListBillTransactions( } ``` -**`organization_code`** - +
+#### `organization_code` 組織コードです。 フィルターとして使われ、指定された組織の店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -816,13 +1029,16 @@ $request = new Request\ListBillTransactions( } ``` -**`shop_id`** - +
+#### `shop_id` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -830,13 +1046,16 @@ $request = new Request\ListBillTransactions( } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -844,13 +1063,16 @@ $request = new Request\ListBillTransactions( } ``` -**`customer_name`** - +
+#### `customer_name` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -858,12 +1080,15 @@ $request = new Request\ListBillTransactions( } ``` -**`terminal_id`** - +
+#### `terminal_id` エンドユーザーの端末IDです。 フィルターとして使われ、指定された端末での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -871,13 +1096,16 @@ $request = new Request\ListBillTransactions( } ``` -**`description`** - +
+#### `description` 取引を指定の取引説明文でフィルターします。 取引説明文が完全一致する取引のみ抽出されます。取引説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -885,13 +1113,16 @@ $request = new Request\ListBillTransactions( } ``` -**`transaction_id`** - +
+#### `transaction_id` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -899,13 +1130,16 @@ $request = new Request\ListBillTransactions( } ``` -**`bill_id`** - +
+#### `bill_id` 支払いQRコードのIDです。 フィルターとして使われ、指定された支払いQRコードIDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -913,27 +1147,33 @@ $request = new Request\ListBillTransactions( } ``` -**`is_modified`** - +
+#### `is_modified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -941,13 +1181,16 @@ $request = new Request\ListBillTransactions( } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -955,15 +1198,18 @@ $request = new Request\ListBillTransactions( } ``` -**`next_page_cursor_id`** - +
+#### `next_page_cursor_id` 次ページへ遷移する際に起点となるtransactionのID(前ページの末尾要素のID)です。 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 next_page_cursor_idのtransaction自体は次のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -971,9 +1217,9 @@ next_page_cursor_idのtransaction自体は次のページには含まれませ } ``` -**`prev_page_cursor_id`** - +
+#### `prev_page_cursor_id` 前ページへ遷移する際に起点となるtransactionのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -981,6 +1227,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransaction自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -988,13 +1237,16 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -1003,6 +1255,8 @@ prev_page_cursor_idのtransaction自体は前のページには含まれませ } ``` +
+ 成功したときは @@ -1031,9 +1285,9 @@ $request = new Request\CreateTopupTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // privateMoneyId: マネーID [ 'bear_point_shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ポイント支払時の負担店舗ID - 'money_amount' => 2244, // マネー額 - 'point_amount' => 473, // ポイント額 - 'point_expires_at' => "2024-02-07T03:23:53.000000Z", // ポイント有効期限 + 'money_amount' => 6381, // マネー額 + 'point_amount' => 7756, // ポイント額 + 'point_expires_at' => "2024-02-04T22:55:04.000000Z", // ポイント有効期限 'description' => "初夏のチャージキャンペーン", // 取引履歴に表示する説明文 'metadata' => "{\"key\":\"value\"}", // 取引メタデータ 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID @@ -1044,13 +1298,14 @@ $request = new Request\CreateTopupTransaction( ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 送金元の店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1058,13 +1313,16 @@ $request = new Request\CreateTopupTransaction( } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 送金先のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1072,13 +1330,16 @@ $request = new Request\CreateTopupTransaction( } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1086,13 +1347,16 @@ $request = new Request\CreateTopupTransaction( } ``` -**`bear_point_shop_id`** - +
+#### `bear_point_shop_id` ポイント支払時の負担店舗IDです。 ポイント支払い時に実際お金を負担する店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1100,14 +1364,17 @@ $request = new Request\CreateTopupTransaction( } ``` -**`money_amount`** - +
+#### `money_amount` マネー額です。 送金するマネー額を指定します。 デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 +
+スキーマ + ```json { "type": "integer", @@ -1115,14 +1382,17 @@ $request = new Request\CreateTopupTransaction( } ``` -**`point_amount`** - +
+#### `point_amount` ポイント額です。 送金するポイント額を指定します。 デフォルト値は0で、money_amountとpoint_amountの両方が0のときにはinvalid_parameter_both_point_and_money_are_zero(エラーコード400)が返ります。 +
+スキーマ + ```json { "type": "integer", @@ -1130,12 +1400,15 @@ $request = new Request\CreateTopupTransaction( } ``` -**`point_expires_at`** - +
+#### `point_expires_at` ポイントをチャージした場合の、付与されるポイントの有効期限です。 省略した場合はマネーに設定された有効期限と同じものがポイントの有効期限となります。 +
+スキーマ + ```json { "type": "string", @@ -1143,13 +1416,16 @@ $request = new Request\CreateTopupTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1157,13 +1433,16 @@ $request = new Request\CreateTopupTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1171,9 +1450,9 @@ $request = new Request\CreateTopupTransaction( } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1181,6 +1460,9 @@ $request = new Request\CreateTopupTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1188,6 +1470,8 @@ $request = new Request\CreateTopupTransaction( } ``` +
+ 成功したときは @@ -1201,7 +1485,9 @@ $request = new Request\CreateTopupTransaction( |400|invalid_parameters|項目が無効です|Invalid parameters| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| @@ -1254,17 +1540,17 @@ $request = new Request\CreateTopupTransaction( 支払取引を作成します。 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 - ```PHP $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 - 2833, // amount: 支払い額 + 8040, // 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", // 支払い時の残高消費方式 @@ -1276,13 +1562,14 @@ $request = new Request\CreatePaymentTransaction( ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 送金先の店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1290,13 +1577,16 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 送金元のエンドユーザーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1304,13 +1594,16 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1318,13 +1611,16 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "integer", @@ -1332,13 +1628,16 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1346,13 +1645,16 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1360,9 +1662,9 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1374,6 +1676,9 @@ $request = new Request\CreatePaymentTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1383,9 +1688,9 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1393,6 +1698,9 @@ $request = new Request\CreatePaymentTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1400,9 +1708,9 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 デフォルトでは point-preferred (ポイント優先)が採用されます。 @@ -1411,6 +1719,9 @@ $request = new Request\CreatePaymentTransaction( マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ + ```json { "type": "string", @@ -1421,11 +1732,14 @@ $request = new Request\CreatePaymentTransaction( } ``` -**`coupon_id`** - +
+#### `coupon_id` 支払いに対して適用するクーポンのIDを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1433,6 +1747,8 @@ $request = new Request\CreatePaymentTransaction( } ``` +
+ 成功したときは @@ -1444,7 +1760,9 @@ $request = new Request\CreatePaymentTransaction( |---|---|---|---| |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| @@ -1497,12 +1815,11 @@ $request = new Request\CreatePaymentTransaction( CPMトークンにより取引を作成します。 CPMトークンに設定されたスコープの取引を作ることができます。 - ```PHP $request = new Request\CreateCpmTransaction( - "OJbPEulQIvNSkQALktsxpQ", // cpmToken: CPMトークン + "GQ9yekqoyNLKN2h7BNq3rR", // cpmToken: CPMトークン "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // shopId: 店舗ID - 7118.0, // amount: 取引金額 + 7717.0, // amount: 取引金額 [ 'description' => "たい焼き(小倉)", // 取引説明文 'metadata' => "{\"key\":\"value\"}", // 店舗側メタデータ @@ -1519,13 +1836,14 @@ $request = new Request\CreateCpmTransaction( ### Parameters -**`cpm_token`** - - +#### `cpm_token` エンドユーザーによって作られ、アプリなどに表示され、店舗に対して提示される22桁の文字列です。 エンドユーザーによって許可された取引のスコープを持っています。 +
+スキーマ + ```json { "type": "string", @@ -1534,13 +1852,16 @@ $request = new Request\CreateCpmTransaction( } ``` -**`shop_id`** - +
+#### `shop_id` 店舗IDです。 支払いやチャージを行う店舗を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1548,26 +1869,32 @@ $request = new Request\CreateCpmTransaction( } ``` -**`amount`** - +
+#### `amount` 取引金額を指定します。 正の値を与えるとチャージになり、負の値を与えると支払いとなります。 +
+スキーマ + ```json { "type": "number" } ``` -**`description`** - +
+#### `description` 取引説明文です。 エンドユーザーアプリの取引履歴などに表示されます。 +
+スキーマ + ```json { "type": "string", @@ -1575,13 +1902,16 @@ $request = new Request\CreateCpmTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に店舗側から指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1589,9 +1919,9 @@ $request = new Request\CreateCpmTransaction( } ``` -**`products`** - +
+#### `products` 一つの取引に含まれる商品情報データです。 以下の内容からなるJSONオブジェクトの配列で指定します。 @@ -1603,6 +1933,9 @@ $request = new Request\CreateCpmTransaction( - `is_discounted`: 賞味期限が近いなどの理由で商品が値引きされているかどうかのフラグ。boolean - `other`: その他商品に関する情報。JSONオブジェクトで指定します。 +
+スキーマ + ```json { "type": "array", @@ -1612,9 +1945,9 @@ $request = new Request\CreateCpmTransaction( } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1622,6 +1955,9 @@ $request = new Request\CreateCpmTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1629,16 +1965,18 @@ $request = new Request\CreateCpmTransaction( } ``` -**`strategy`** - +
+#### `strategy` 支払い時に残高がどのように消費されるかを指定します。 -デフォルトでは point-preferred (ポイント優先)が採用されます。 +エンドユーザーがCPMトークン作成時に指定した残高消費方式と一致するか、どちらか一方のみが指定されている必要があります。 +両方が指定されていて値が異なる場合、cpm_token_strategy_conflictが返ります。 -- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) +- point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます - money-only: マネー残高のみから消費され、ポイント残高は使われません -マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 +
+スキーマ ```json { @@ -1650,6 +1988,8 @@ $request = new Request\CreateCpmTransaction( } ``` +
+ 成功したときは @@ -1663,11 +2003,14 @@ $request = new Request\CreateCpmTransaction( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|shop_user_not_found|店舗が見つかりません|The shop user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| +|422|cpm_token_strategy_conflict|CPMトークンに設定された支払い方式と異なる支払い方式が指定されました。|The strategy conflicts with the one set in the CPM token| |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|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| @@ -1719,13 +2062,12 @@ $request = new Request\CreateCpmTransaction( エンドユーザー間での送金取引(個人間送金)を作成します。 個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。 - ```PHP $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 - 7478.0, // amount: 送金額 + 299.0, // amount: 送金額 [ 'metadata' => "{\"key\":\"value\"}", // 取引メタデータ 'description' => "たい焼き(小倉)", // 取引履歴に表示する説明文 @@ -1737,13 +2079,14 @@ $request = new Request\CreateTransferTransaction( ### Parameters -**`sender_id`** - - +#### `sender_id` エンドユーザーIDです。 送金元のエンドユーザー(送り主)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1751,13 +2094,16 @@ $request = new Request\CreateTransferTransaction( } ``` -**`receiver_id`** - +
+#### `receiver_id` エンドユーザーIDです。 送金先のエンドユーザー(受け取り人)を指定します。 +
+スキーマ + ```json { "type": "string", @@ -1765,13 +2111,16 @@ $request = new Request\CreateTransferTransaction( } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 マネーを指定します。 +
+スキーマ + ```json { "type": "string", @@ -1779,13 +2128,16 @@ $request = new Request\CreateTransferTransaction( } ``` -**`amount`** - +
+#### `amount` マネー額です。 送金するマネー額を指定します。 +
+スキーマ + ```json { "type": "number", @@ -1793,13 +2145,16 @@ $request = new Request\CreateTransferTransaction( } ``` -**`metadata`** - +
+#### `metadata` 取引作成時に指定されるメタデータです。 任意入力で、全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列で指定します。 +
+スキーマ + ```json { "type": "string", @@ -1807,13 +2162,16 @@ $request = new Request\CreateTransferTransaction( } ``` -**`description`** - +
+#### `description` 取引説明文です。 任意入力で、取引履歴に表示される説明文です。 +
+スキーマ + ```json { "type": "string", @@ -1821,9 +2179,9 @@ $request = new Request\CreateTransferTransaction( } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1831,6 +2189,9 @@ $request = new Request\CreateTransferTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1838,6 +2199,8 @@ $request = new Request\CreateTransferTransaction( } ``` +
+ 成功したときは @@ -1851,7 +2214,9 @@ $request = new Request\CreateTransferTransaction( |422|customer_user_not_found||The customer user is not found| |422|private_money_not_found|マネーが見つかりません|Private money not found| |422|coupon_not_found|クーポンが見つかりませんでした。|The coupon is not found.| +|422|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| @@ -1906,9 +2271,9 @@ $request = new Request\CreateExchangeTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 1081, + 5683, [ - 'description' => "m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2NkkIcBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtEhHNUjZJEl7H6", + 'description' => "qEgXsKX0DNjA5LloLW2ZGwTADg0EGo2tY0BvAArU4c3Hcr3rYtMZs1YhEQlphw1DkmThPoIdPA7X1r8JTPyIk7mw82VAIRkHcNMgqN77FQwuiGtQW4pnFSkfz0ZAYuHKErS89ga8rAwXpAi", 'request_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // リクエストID ] ); @@ -1917,9 +2282,10 @@ $request = new Request\CreateExchangeTransaction( ### Parameters -**`user_id`** - +#### `user_id` +
+スキーマ ```json { @@ -1928,9 +2294,12 @@ $request = new Request\CreateExchangeTransaction( } ``` -**`sender_private_money_id`** - +
+ +#### `sender_private_money_id` +
+スキーマ ```json { @@ -1939,9 +2308,12 @@ $request = new Request\CreateExchangeTransaction( } ``` -**`receiver_private_money_id`** - +
+ +#### `receiver_private_money_id` +
+スキーマ ```json { @@ -1950,9 +2322,12 @@ $request = new Request\CreateExchangeTransaction( } ``` -**`amount`** - +
+#### `amount` + +
+スキーマ ```json { @@ -1961,9 +2336,12 @@ $request = new Request\CreateExchangeTransaction( } ``` -**`description`** - +
+ +#### `description` +
+スキーマ ```json { @@ -1972,9 +2350,9 @@ $request = new Request\CreateExchangeTransaction( } ``` -**`request_id`** - +
+#### `request_id` 取引作成APIの羃等性を担保するためのリクエスト固有のIDです。 取引作成APIで結果が受け取れなかったなどの理由で再試行する際に、二重に取引が作られてしまうことを防ぐために、クライアント側から指定されます。指定は任意で、UUID V4フォーマットでランダム生成した文字列です。リクエストIDは一定期間で削除されます。 @@ -1982,6 +2360,9 @@ $request = new Request\CreateExchangeTransaction( リクエストIDを指定したとき、まだそのリクエストIDに対する取引がない場合、新規に取引が作られレスポンスとして返されます。もしそのリクエストIDに対する取引が既にある場合、既存の取引がレスポンスとして返されます。 既に存在する、別のユーザによる取引とリクエストIDが衝突した場合、request_id_conflictが返ります。 +
+スキーマ + ```json { "type": "string", @@ -1989,6 +2370,8 @@ $request = new Request\CreateExchangeTransaction( } ``` +
+ 成功したときは @@ -2002,7 +2385,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|credit_session_money_topup_requires_credit_card|オーソリチャージ用マネーではクレジットカードによるチャージのみ許可されています|Credit card is required for topup on credit-session enabled money| |422|cannot_topup_during_cvs_authorization_pending|コンビニ決済の予約中はチャージできません|You cannot topup your account while a convenience store payment is pending.| +|422|credit_session_not_found|オーソリセッションが見つかりません|Credit session not found| |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| @@ -2059,13 +2444,14 @@ $request = new Request\GetTransaction( ### Parameters -**`transaction_id`** - - +#### `transaction_id` 取引IDです。 フィルターとして使われ、指定した取引IDの取引を取得します。 +
+スキーマ + ```json { "type": "string", @@ -2073,6 +2459,8 @@ $request = new Request\GetTransaction( } ``` +
+ 成功したときは @@ -2099,7 +2487,7 @@ $request = new Request\RefundTransaction( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // transactionId: 取引ID [ 'description' => "返品対応のため", // 取引履歴に表示する返金事由 - 'returning_point_expires_at' => "2021-10-22T08:40:05.000000Z" // 返却ポイントの有効期限 + 'returning_point_expires_at' => "2023-06-11T19:59:42.000000Z" // 返却ポイントの有効期限 ] ); ``` @@ -2107,9 +2495,10 @@ $request = new Request\RefundTransaction( ### Parameters -**`transaction_id`** - +#### `transaction_id` +
+スキーマ ```json { @@ -2118,9 +2507,12 @@ $request = new Request\RefundTransaction( } ``` -**`description`** - +
+#### `description` + +
+スキーマ ```json { @@ -2129,11 +2521,14 @@ $request = new Request\RefundTransaction( } ``` -**`returning_point_expires_at`** - +
+#### `returning_point_expires_at` ポイント支払いを含む支払い取引をキャンセルする際にユーザへ返却されるポイントの有効期限です。デフォルトでは未指定です。 +
+スキーマ + ```json { "type": "string", @@ -2141,6 +2536,8 @@ $request = new Request\RefundTransaction( } ``` +
+ 成功したときは @@ -2165,13 +2562,14 @@ $request = new Request\GetTransactionByRequestId( ### Parameters -**`request_id`** - - +#### `request_id` 取引作成時にクライアントが生成し指定するリクエストIDです。 リクエストIDに対応する取引が存在すればその取引を返し、無ければNotFound(404)を返します。 +
+スキーマ + ```json { "type": "string", @@ -2179,6 +2577,8 @@ $request = new Request\GetTransactionByRequestId( } ``` +
+ 成功したときは @@ -2202,12 +2602,13 @@ $request = new Request\GetBulkTransaction( ### Parameters -**`bulk_transaction_id`** - - +#### `bulk_transaction_id` バルク取引ジョブIDです。 バルク取引ジョブ登録時にレスポンスに含まれます。 +
+スキーマ + ```json { "type": "string", @@ -2215,6 +2616,8 @@ $request = new Request\GetBulkTransaction( } ``` +
+ 成功したときは @@ -2242,12 +2645,13 @@ $request = new Request\ListBulkTransactionJobs( ### Parameters -**`bulk_transaction_id`** - - +#### `bulk_transaction_id` バルク取引ジョブIDです。 バルク取引ジョブ登録時にレスポンスに含まれます。 +
+スキーマ + ```json { "type": "string", @@ -2255,11 +2659,14 @@ $request = new Request\ListBulkTransactionJobs( } ``` -**`page`** - +
+#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -2267,11 +2674,14 @@ $request = new Request\ListBulkTransactionJobs( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -2279,6 +2689,8 @@ $request = new Request\ListBulkTransactionJobs( } ``` +
+ 成功したときは @@ -2319,12 +2731,13 @@ $request = new Request\RequestUserStats( ### Parameters -**`from`** - - +#### `from` 集計する期間の開始時刻をISO8601形式で指定します。 時刻は現在時刻、及び `to` で指定する時刻以前である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -2332,12 +2745,15 @@ $request = new Request\RequestUserStats( } ``` -**`to`** - +
+#### `to` 集計する期間の終了時刻をISO8601形式で指定します。 時刻は現在時刻、及び `from` で指定する時刻の間である必要があります。 +
+スキーマ + ```json { "type": "string", @@ -2345,6 +2761,8 @@ $request = new Request\RequestUserStats( } ``` +
+ 成功したときは @@ -2358,7 +2776,6 @@ $request = new Request\RequestUserStats( |403|unpermitted_admin_user|この管理ユーザには権限がありません|Admin does not have permission| |422|invalid_promotional_operation_user|ユーザーの指定に不正な値が含まれています|Invalid user data is specified| |422|invalid_promotional_operation_status|不正な処理ステータスです|Invalid operation status is specified| -|503|user_stats_operation_service_unavailable|一時的にユーザー統計サービスが利用不能です|User stats service is temporarily unavailable| @@ -2385,12 +2802,13 @@ $request = new Request\TerminateUserStats( ### Parameters -**`operation_id`** - - +#### `operation_id` 強制終了対象の集計タスクIDです。 必須パラメータであり、指定されたタスクIDが存在しない場合は `user_stats_operation_not_found`エラー(422)が返ります。 +
+スキーマ + ```json { "type": "string", @@ -2398,6 +2816,8 @@ $request = new Request\TerminateUserStats( } ``` +
+ 成功したときは diff --git a/docs/transfer.md b/docs/transfer.md index 8c14b50c..9f8b5a9c 100644 --- a/docs/transfer.md +++ b/docs/transfer.md @@ -1,4 +1,10 @@ # Transfer +送金取引明細を表すデータです。 +マネー(Private Money)のウォレット間の送金記録を取得します。 +取引(Transaction)は複数の送金明細(Transfer)で構成されています。 +送金明細には送金元・送金先のアカウント情報、マネー額、ポイント額などが含まれます。 +取引種別として、payment, topup, campaign-topup, transfer, exchange, refund-payment, refund-topup, cashback, expire等があります。 + ## GetAccountTransferSummary: @@ -8,8 +14,8 @@ $request = new Request\GetAccountTransferSummary( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // accountId: ウォレットID [ - 'from' => "2020-04-30T17:47:50.000000Z", // 集計期間の開始時刻 - 'to' => "2022-03-14T12:11:02.000000Z", // 集計期間の終了時刻 + 'from' => "2023-02-22T13:24:35.000000Z", // 集計期間の開始時刻 + 'to' => "2021-11-15T21:20:44.000000Z", // 集計期間の終了時刻 'transfer_types' => ["topup", "payment"] // 取引明細種別 (複数指定可) ] ); @@ -18,13 +24,14 @@ $request = new Request\GetAccountTransferSummary( ### Parameters -**`account_id`** - - +#### `account_id` ウォレットIDです。 ここで指定したウォレットIDの取引明細レベルでの集計を取得します。 +
+スキーマ + ```json { "type": "string", @@ -32,9 +39,12 @@ $request = new Request\GetAccountTransferSummary( } ``` -**`from`** - +
+#### `from` + +
+スキーマ ```json { @@ -43,9 +53,12 @@ $request = new Request\GetAccountTransferSummary( } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -54,9 +67,9 @@ $request = new Request\GetAccountTransferSummary( } ``` -**`transfer_types`** - +
+#### `transfer_types` 取引明細の種別でフィルターします。 以下の種別を指定できます。 @@ -85,6 +98,9 @@ $request = new Request\GetAccountTransferSummary( - refund-exchange-outflow 交換による他マネーへの流出取引に対するキャンセル取引 +
+スキーマ + ```json { "type": "array", @@ -108,6 +124,8 @@ $request = new Request\GetAccountTransferSummary( } ``` +
+ 成功したときは @@ -125,19 +143,19 @@ $request = new Request\GetAccountTransferSummary( ```PHP $request = new Request\ListTransfers( [ - 'from' => "2023-03-22T06:33:55.000000Z", - 'to' => "2024-01-01T01:56:17.000000Z", - 'page' => 4812, - 'per_page' => 6318, + 'from' => "2024-12-03T05:51:16.000000Z", + 'to' => "2021-06-23T15:00:59.000000Z", + 'page' => 7673, + 'per_page' => 4876, 'shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 'shop_name' => "rLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5B", + 'shop_name' => "1HL4wWzmkMDA4SVfWD13Zj3L9DQPYajb0tVdWEdtL2ujHbA770c9iXi2Q1VWdznJovLhT0BrHHw3tEdBOJZocfpIFBg2EP1IMpzVlOR0ZjHbJ4pIYeH1m", 'customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 'customer_name' => "uCe0yTSEIanUYTV2eUYLa0Qhqw2R1myjYzFL4j0HTXKtxMi6tvMf7GbuKVOo81owGN6i0XTT33lqYdKQ0h3ghVZk7eOE9tcwx8MOKl5MRsa1MFEYPOVzvPSXDUkbgX2oBshUtXGZ9lfp9TwgYPOmismihXWyqdhqoMR6oAdT5yPsPRTmUYdZdYDDGZDuZn0XgqQIqTu14tSh13qLZDYdRTWbMgZiB4q5yXIKvcyeytZUeCOzn479Q7e7CQ6mogsi", + 'customer_name' => "jK91BovJNiyan2Rg9xEgMUhIRyB0Lq7z8Ljil9JSMA7rA7mkLLtmKfguDK2IgQjODYIDOJbPEu", 'transaction_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", - 'is_modified' => TRUE, - 'transaction_types' => ["expire", "topup", "payment"], - 'transfer_types' => ["campaign", "expire", "coupon", "payment"], // 取引明細の種類でフィルターします。 + 'is_modified' => FALSE, + 'transaction_types' => ["cashback", "transfer", "payment", "topup"], + 'transfer_types' => ["transfer"], // 取引明細の種類でフィルターします。 'description' => "店頭QRコードによる支払い" // 取引詳細説明文 ] ); @@ -146,9 +164,10 @@ $request = new Request\ListTransfers( ### Parameters -**`from`** - +#### `from` +
+スキーマ ```json { @@ -157,9 +176,12 @@ $request = new Request\ListTransfers( } ``` -**`to`** - +
+ +#### `to` +
+スキーマ ```json { @@ -168,9 +190,12 @@ $request = new Request\ListTransfers( } ``` -**`page`** - +
+#### `page` + +
+スキーマ ```json { @@ -179,9 +204,12 @@ $request = new Request\ListTransfers( } ``` -**`per_page`** - +
+ +#### `per_page` +
+スキーマ ```json { @@ -190,9 +218,12 @@ $request = new Request\ListTransfers( } ``` -**`shop_id`** - +
+#### `shop_id` + +
+スキーマ ```json { @@ -201,9 +232,12 @@ $request = new Request\ListTransfers( } ``` -**`shop_name`** - +
+ +#### `shop_name` +
+スキーマ ```json { @@ -212,9 +246,12 @@ $request = new Request\ListTransfers( } ``` -**`customer_id`** - +
+ +#### `customer_id` +
+スキーマ ```json { @@ -223,9 +260,12 @@ $request = new Request\ListTransfers( } ``` -**`customer_name`** - +
+#### `customer_name` + +
+スキーマ ```json { @@ -234,9 +274,12 @@ $request = new Request\ListTransfers( } ``` -**`transaction_id`** - +
+ +#### `transaction_id` +
+スキーマ ```json { @@ -245,9 +288,12 @@ $request = new Request\ListTransfers( } ``` -**`private_money_id`** - +
+#### `private_money_id` + +
+スキーマ ```json { @@ -256,9 +302,12 @@ $request = new Request\ListTransfers( } ``` -**`is_modified`** - +
+ +#### `is_modified` +
+スキーマ ```json { @@ -266,9 +315,12 @@ $request = new Request\ListTransfers( } ``` -**`transaction_types`** - +
+#### `transaction_types` + +
+スキーマ ```json { @@ -287,9 +339,9 @@ $request = new Request\ListTransfers( } ``` -**`transfer_types`** - +
+#### `transfer_types` 取引明細の種類でフィルターします。 以下の種類を指定できます。 @@ -315,6 +367,9 @@ $request = new Request\ListTransfers( 7. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -334,13 +389,16 @@ $request = new Request\ListTransfers( } ``` -**`description`** - +
+#### `description` 取引詳細を指定の取引詳細説明文でフィルターします。 取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -348,6 +406,8 @@ $request = new Request\ListTransfers( } ``` +
+ 成功したときは @@ -372,20 +432,20 @@ $request = new Request\ListTransfers( $request = new Request\ListTransfersV2( [ 'shop_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 店舗ID - 'shop_name' => "dVQzET3CTZR3naadmHoO937wRncWgLEMvwuXtyGneCNJhR9grzsET9HHziGJ2iqEYWh5QfKEnNvZa5", // 店舗名 + 'shop_name' => "LktsxpQNr6y6a28m0nRuldHpSuEUpdPie9qQ2GFfC0at9jn8DwInc5YWbNc2E2NkkI", // 店舗名 'customer_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // エンドユーザーID - 'customer_name' => "B6RuNHWw3kkEIImb7878ag0GpEoXRZP9Tuo6ihkLtNpmjVgJl2arbhJouxWQ6FlBm7k1iTzlm9ILQGKVJoUCSY35cdkgvsbAYCbaEHjTHUmx8bpMxYByLz0xsJRhRVsB9HjzBAZfWzO75yHWR5FLMa9CO3GmqQepv7doxpRjgZI2VSDvLJ", // エンドユーザー名 + 'customer_name' => "cBn5byBGxSlhAbqrppUqGdxMolEMce2oIWkzh6xh3kO5wXHuEli1NcEVyTrbdyJqmh3WRfGT9d54NzUibZax1gbEqwtEhHNUjZJEl7H6aHeFVmJSAKrLNuNDUQhJfNq76RxAuxSVrnur4Ju4ayidm5BuCe0yTSEIanUYTV2eUYLa", // エンドユーザー名 'transaction_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 取引ID 'private_money_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // マネーID - 'is_modified' => FALSE, // キャンセルフラグ - 'transaction_types' => ["exchange", "topup", "payment", "cashback", "expire"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment + 'is_modified' => TRUE, // キャンセルフラグ + 'transaction_types' => ["transfer", "payment"], // 取引種別 (複数指定可)、チャージ=topup、支払い=payment 'next_page_cursor_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 次ページへ遷移する際に起点となるtransferのID 'prev_page_cursor_id' => "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // 前ページへ遷移する際に起点となるtransferのID 'per_page' => 50, // 1ページ分の取引数 - 'transfer_types' => ["transfer", "campaign", "cashback", "exchange", "payment", "topup", "coupon"], // 取引明細種別 (複数指定可) + 'transfer_types' => ["coupon", "payment", "exchange"], // 取引明細種別 (複数指定可) 'description' => "店頭QRコードによる支払い", // 取引詳細説明文 - 'from' => "2021-09-11T00:32:00.000000Z", // 開始日時 - 'to' => "2024-09-02T16:24:54.000000Z" // 終了日時 + 'from' => "2020-07-05T14:20:24.000000Z", // 開始日時 + 'to' => "2023-02-03T08:16:27.000000Z" // 終了日時 ] ); ``` @@ -393,13 +453,14 @@ $request = new Request\ListTransfersV2( ### Parameters -**`shop_id`** - - +#### `shop_id` 店舗IDです。 フィルターとして使われ、指定された店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -407,13 +468,16 @@ $request = new Request\ListTransfersV2( } ``` -**`shop_name`** - +
+#### `shop_name` 店舗名です。 フィルターとして使われ、入力された名前に部分一致する店舗での取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -421,13 +485,16 @@ $request = new Request\ListTransfersV2( } ``` -**`customer_id`** - +
+#### `customer_id` エンドユーザーIDです。 フィルターとして使われ、指定されたエンドユーザーの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -435,13 +502,16 @@ $request = new Request\ListTransfersV2( } ``` -**`customer_name`** - +
+#### `customer_name` エンドユーザー名です。 フィルターとして使われ、入力された名前に部分一致するエンドユーザーでの取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -449,13 +519,16 @@ $request = new Request\ListTransfersV2( } ``` -**`transaction_id`** - +
+#### `transaction_id` 取引IDです。 フィルターとして使われ、指定された取引IDに部分一致(前方一致)する取引のみが一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -463,13 +536,16 @@ $request = new Request\ListTransfersV2( } ``` -**`private_money_id`** - +
+#### `private_money_id` マネーIDです。 指定したマネーでの取引が一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -477,23 +553,26 @@ $request = new Request\ListTransfersV2( } ``` -**`is_modified`** - +
+#### `is_modified` キャンセルフラグです。 これにtrueを指定するとキャンセルされた取引のみ一覧に表示されます。 デフォルト値はfalseで、キャンセルの有無にかかわらず一覧に表示されます。 +
+スキーマ + ```json { "type": "boolean" } ``` -**`transaction_types`** - +
+#### `transaction_types` 取引の種類でフィルターします。 以下の種類を指定できます。 @@ -520,6 +599,9 @@ $request = new Request\ListTransfersV2( 6. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -537,15 +619,18 @@ $request = new Request\ListTransfersV2( } ``` -**`next_page_cursor_id`** - +
+#### `next_page_cursor_id` 次ページへ遷移する際に起点となるtransferのID(前ページの末尾要素のID)です。 本APIのレスポンスにもnext_page_cursor_idが含まれており、これがnull値の場合は最後のページであることを意味します。 UUIDである場合は次のページが存在することを意味し、このnext_page_cursor_idをリクエストパラメータに含めることで次ページに遷移します。 next_page_cursor_idのtransfer自体は次のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -553,9 +638,9 @@ next_page_cursor_idのtransfer自体は次のページには含まれません } ``` -**`prev_page_cursor_id`** - +
+#### `prev_page_cursor_id` 前ページへ遷移する際に起点となるtransferのID(次ページの先頭要素のID)です。 本APIのレスポンスにもprev_page_cursor_idが含まれており、これがnull値の場合は先頭のページであることを意味します。 @@ -563,6 +648,9 @@ UUIDである場合は前のページが存在することを意味し、このp prev_page_cursor_idのtransfer自体は前のページには含まれません。 +
+スキーマ + ```json { "type": "string", @@ -570,13 +658,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取引数です。 デフォルト値は50です。 +
+スキーマ + ```json { "type": "integer", @@ -585,9 +676,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`transfer_types`** - +
+#### `transfer_types` 取引明細の種類でフィルターします。 以下の種類を指定できます。 @@ -613,6 +704,9 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません 7. expire 退会時失効取引 +
+スキーマ + ```json { "type": "array", @@ -632,13 +726,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`description`** - +
+#### `description` 取引詳細を指定の取引詳細説明文でフィルターします。 取引詳細説明文が完全一致する取引のみ抽出されます。取引詳細説明文は最大200文字で記録されています。 +
+スキーマ + ```json { "type": "string", @@ -646,13 +743,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`from`** - +
+#### `from` 抽出期間の開始日時です。 フィルターとして使われ、開始日時以降に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -660,13 +760,16 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` -**`to`** - +
+#### `to` 抽出期間の終了日時です。 フィルターとして使われ、終了日時以前に発生した取引のみ一覧に表示されます。 +
+スキーマ + ```json { "type": "string", @@ -674,6 +777,8 @@ prev_page_cursor_idのtransfer自体は前のページには含まれません } ``` +
+ 成功したときは diff --git a/docs/user.md b/docs/user.md index aa9b25ea..884d17dc 100644 --- a/docs/user.md +++ b/docs/user.md @@ -1,3 +1,8 @@ # User +ユーザを表すデータです。 +エンドユーザー(Customer)と店舗ユーザー(Merchant)の2種類が存在します。 +エンドユーザーは認証の主体であり、マネー毎にウォレットを持ちます。 +店舗ユーザーは組織に所属し、同じくマネー毎にウォレットを持ちます。 + diff --git a/docs/user_device.md b/docs/user_device.md index fdbd8da6..02a30275 100644 --- a/docs/user_device.md +++ b/docs/user_device.md @@ -3,7 +3,6 @@ UserDeviceはユーザー毎のデバイスを管理します。 あるユーザーが使っている端末を区別する必要がある場合に用いられます。 これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 - ## CreateUserDevice: ユーザーのデバイス登録 ユーザーのデバイスを新規に登録します @@ -20,9 +19,10 @@ $request = new Request\CreateUserDevice( ### Parameters -**`user_id`** - +#### `user_id` +
+スキーマ ```json { @@ -31,12 +31,14 @@ $request = new Request\CreateUserDevice( } ``` -**`metadata`** - +
+#### `metadata` ユーザーのデバイス用の情報をメタデータを保持するために用います。 例: 端末の固有情報やブラウザのUser-Agent +
+スキーマ ```json { @@ -45,6 +47,8 @@ $request = new Request\CreateUserDevice( } ``` +
+ 成功したときは @@ -75,9 +79,10 @@ $request = new Request\GetUserDevice( ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -86,6 +91,8 @@ $request = new Request\GetUserDevice( } ``` +
+ 成功したときは @@ -101,7 +108,6 @@ $request = new Request\GetUserDevice( ## ActivateUserDevice: デバイスの有効化 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 - ```PHP $request = new Request\ActivateUserDevice( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" // userDeviceId: ユーザーデバイスID @@ -111,9 +117,10 @@ $request = new Request\ActivateUserDevice( ### Parameters -**`user_device_id`** - +#### `user_device_id` +
+スキーマ ```json { @@ -122,6 +129,8 @@ $request = new Request\ActivateUserDevice( } ``` +
+ 成功したときは diff --git a/docs/webhook.md b/docs/webhook.md index e691aa5c..69a6f876 100644 --- a/docs/webhook.md +++ b/docs/webhook.md @@ -3,7 +3,6 @@ Webhookは特定のワーカータスクでの処理が完了した事を通知 WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 - ## ListWebhooks: 作成したWebhookの一覧を返す @@ -19,11 +18,12 @@ $request = new Request\ListWebhooks( ### Parameters -**`page`** - - +#### `page` 取得したいページ番号です。 +
+スキーマ + ```json { "type": "integer", @@ -31,11 +31,14 @@ $request = new Request\ListWebhooks( } ``` -**`per_page`** - +
+#### `per_page` 1ページ分の取得数です。デフォルトでは 50 になっています。 +
+スキーマ + ```json { "type": "integer", @@ -43,6 +46,8 @@ $request = new Request\ListWebhooks( } ``` +
+ 成功したときは @@ -68,18 +73,19 @@ $request = new Request\ListWebhooks( ```PHP $request = new Request\CreateWebhook( "bulk_shops", // task: タスク名 - "7mHIXsOqC" // url: URL + "ldC" // url: URL ); ``` ### Parameters -**`task`** - - +#### `task` ワーカータスク名を指定します +
+スキーマ + ```json { "type": "string", @@ -90,17 +96,22 @@ $request = new Request\CreateWebhook( } ``` -**`url`** - +
+#### `url` 通知先のURLを指定します +
+スキーマ + ```json { "type": "string" } ``` +
+ 成功したときは @@ -131,11 +142,12 @@ $request = new Request\DeleteWebhook( ### Parameters -**`webhook_id`** - - +#### `webhook_id` 削除するWebhookのIDです。 +
+スキーマ + ```json { "type": "string", @@ -143,6 +155,8 @@ $request = new Request\DeleteWebhook( } ``` +
+ 成功したときは @@ -162,7 +176,7 @@ $request = new Request\DeleteWebhook( $request = new Request\UpdateWebhook( "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // webhookId: Webhook ID [ - 'url' => "xcK", // URL + 'url' => "sSS", // URL 'is_active' => TRUE, // 有効/無効 'task' => "process_user_stats_operation" // タスク名 ] @@ -172,11 +186,12 @@ $request = new Request\UpdateWebhook( ### Parameters -**`webhook_id`** - - +#### `webhook_id` 更新するWebhookのIDです。 +
+スキーマ + ```json { "type": "string", @@ -184,33 +199,42 @@ $request = new Request\UpdateWebhook( } ``` -**`url`** - +
+#### `url` 変更するURLを指定します +
+スキーマ + ```json { "type": "string" } ``` -**`is_active`** - +
+#### `is_active` trueならWebhookによる通知が有効になり、falseなら無効になります +
+スキーマ + ```json { "type": "boolean" } ``` -**`task`** - +
+#### `task` 指定したタスクが終了したときにWebhookによる通知がされます +
+スキーマ + ```json { "type": "string", @@ -221,6 +245,8 @@ trueならWebhookによる通知が有効になり、falseなら無効になり } ``` +
+ 成功したときは diff --git a/init.php b/init.php index e585a221..d74326ae 100644 --- a/init.php +++ b/init.php @@ -11,6 +11,9 @@ require_once __DIR__ . '/lib/Request/GetPing.php'; require_once __DIR__ . '/lib/Request/SendEcho.php'; +require_once __DIR__ . '/lib/Request/PostCreditSession.php'; +require_once __DIR__ . '/lib/Request/CreateCreditSessionTransaction.php'; +require_once __DIR__ . '/lib/Request/CaptureCreditSession.php'; require_once __DIR__ . '/lib/Request/GetUser.php'; require_once __DIR__ . '/lib/Request/ListUserAccounts.php'; require_once __DIR__ . '/lib/Request/CreateUserAccount.php'; @@ -33,8 +36,14 @@ require_once __DIR__ . '/lib/Request/GetCheck.php'; require_once __DIR__ . '/lib/Request/UpdateCheck.php'; require_once __DIR__ . '/lib/Request/GetCpmToken.php'; +require_once __DIR__ . '/lib/Request/GetCvsAuthorizations.php'; +require_once __DIR__ . '/lib/Request/CreateCvsAuthorization.php'; +require_once __DIR__ . '/lib/Request/CancelCvsAuthorization.php'; +require_once __DIR__ . '/lib/Request/GetCvsAuthorization.php'; require_once __DIR__ . '/lib/Request/ListTransactions.php'; require_once __DIR__ . '/lib/Request/CreateTransaction.php'; +require_once __DIR__ . '/lib/Request/CreateTransactionGroup.php'; +require_once __DIR__ . '/lib/Request/ShowTransactionGroup.php'; require_once __DIR__ . '/lib/Request/ListTransactionsV2.php'; require_once __DIR__ . '/lib/Request/ListBillTransactions.php'; require_once __DIR__ . '/lib/Request/CreateTopupTransaction.php'; @@ -64,6 +73,10 @@ require_once __DIR__ . '/lib/Request/GetPrivateMoneys.php'; require_once __DIR__ . '/lib/Request/GetPrivateMoneyOrganizationSummaries.php'; require_once __DIR__ . '/lib/Request/GetPrivateMoneySummary.php'; +require_once __DIR__ . '/lib/Request/GetCustomerCards.php'; +require_once __DIR__ . '/lib/Request/DeleteCustomerCard.php'; +require_once __DIR__ . '/lib/Request/CreditCardTopupWithMembership.php'; +require_once __DIR__ . '/lib/Request/CreditCardTopupWithMdkToken.php'; require_once __DIR__ . '/lib/Request/ListCustomerTransactions.php'; require_once __DIR__ . '/lib/Request/GetBulkTransaction.php'; require_once __DIR__ . '/lib/Request/ListBulkTransactionJobs.php'; @@ -95,6 +108,14 @@ require_once __DIR__ . '/lib/Request/GetSevenBankATMSession.php'; require_once __DIR__ . '/lib/Response/Pong.php'; require_once __DIR__ . '/lib/Response/Echoed.php'; +require_once __DIR__ . '/lib/Response/CvsAuthorization.php'; +require_once __DIR__ . '/lib/Response/PaginatedCvsAuthorizations.php'; +require_once __DIR__ . '/lib/Response/CreditSession.php'; +require_once __DIR__ . '/lib/Response/CapturedCreditSession.php'; +require_once __DIR__ . '/lib/Response/CreditSessionTransactionResult.php'; +require_once __DIR__ . '/lib/Response/UserCard.php'; +require_once __DIR__ . '/lib/Response/PaginatedUserCards.php'; +require_once __DIR__ . '/lib/Response/CardAuthorizeResult.php'; require_once __DIR__ . '/lib/Response/Pagination.php'; require_once __DIR__ . '/lib/Response/AdminUserWithShopsAndPrivateMoneys.php'; require_once __DIR__ . '/lib/Response/Account.php'; @@ -102,6 +123,7 @@ require_once __DIR__ . '/lib/Response/AccountDetail.php'; require_once __DIR__ . '/lib/Response/ShopAccount.php'; require_once __DIR__ . '/lib/Response/AccountDeleted.php'; +require_once __DIR__ . '/lib/Response/CustomerCardDeleted.php'; require_once __DIR__ . '/lib/Response/AccountBalance.php'; require_once __DIR__ . '/lib/Response/Bill.php'; require_once __DIR__ . '/lib/Response/Check.php'; @@ -115,6 +137,7 @@ require_once __DIR__ . '/lib/Response/Organization.php'; require_once __DIR__ . '/lib/Response/Transaction.php'; require_once __DIR__ . '/lib/Response/TransactionDetail.php'; +require_once __DIR__ . '/lib/Response/TransactionGroup.php'; require_once __DIR__ . '/lib/Response/BillTransaction.php'; require_once __DIR__ . '/lib/Response/ShopWithMetadata.php'; require_once __DIR__ . '/lib/Response/ShopWithAccounts.php'; diff --git a/lib/PartnerAPI.php b/lib/PartnerAPI.php index cdc36988..b9dd70d0 100644 --- a/lib/PartnerAPI.php +++ b/lib/PartnerAPI.php @@ -10,7 +10,7 @@ class PartnerAPI private $clientSecret; private $apiBase; - const VERSION = '0.4.27'; + const VERSION = '0.4.28'; private $config = array(); diff --git a/lib/Request/CancelCvsAuthorization.php b/lib/Request/CancelCvsAuthorization.php new file mode 100644 index 00000000..75e208db --- /dev/null +++ b/lib/Request/CancelCvsAuthorization.php @@ -0,0 +1,36 @@ +orderId = $orderId; + + $this->optionalParams = array(); + } + + public function getPath() + { + return '/cvs' . '/' . $this->orderId; + } + + public function getParams() + { + $params = array( + + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/CaptureCreditSession.php b/lib/Request/CaptureCreditSession.php new file mode 100644 index 00000000..9ea81ccc --- /dev/null +++ b/lib/Request/CaptureCreditSession.php @@ -0,0 +1,36 @@ +sessionId = $sessionId; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/credit-sessions' . '/' . $this->sessionId . '/capture'; + } + + public function getParams() + { + $params = array( + + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/CreateCreditSessionTransaction.php b/lib/Request/CreateCreditSessionTransaction.php new file mode 100644 index 00000000..f5deef3f --- /dev/null +++ b/lib/Request/CreateCreditSessionTransaction.php @@ -0,0 +1,38 @@ +sessionId = $sessionId; + $this->amount = $amount; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/credit-sessions' . '/' . $this->sessionId . '/transactions'; + } + + public function getParams() + { + $params = array( + 'amount' => $this->amount, + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/CreateCvsAuthorization.php b/lib/Request/CreateCvsAuthorization.php new file mode 100644 index 00000000..7bb8364a --- /dev/null +++ b/lib/Request/CreateCvsAuthorization.php @@ -0,0 +1,54 @@ +customerId = $customerId; + $this->privateMoneyId = $privateMoneyId; + $this->amount = $amount; + $this->serviceOptionType = $serviceOptionType; + $this->name1 = $name1; + $this->name2 = $name2; + $this->tel = $tel; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/cvs'; + } + + public function getParams() + { + $params = array( + 'customer_id' => $this->customerId, + 'private_money_id' => $this->privateMoneyId, + 'amount' => $this->amount, + 'service_option_type' => $this->serviceOptionType, + 'name1' => $this->name1, + 'name2' => $this->name2, + 'tel' => $this->tel, + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/CreateTransactionGroup.php b/lib/Request/CreateTransactionGroup.php new file mode 100644 index 00000000..b465b7d4 --- /dev/null +++ b/lib/Request/CreateTransactionGroup.php @@ -0,0 +1,36 @@ +name = $name; + + $this->optionalParams = array(); + } + + public function getPath() + { + return '/transaction-groups'; + } + + public function getParams() + { + $params = array( + 'name' => $this->name, + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/CreditCardTopupWithMdkToken.php b/lib/Request/CreditCardTopupWithMdkToken.php new file mode 100644 index 00000000..59b27b18 --- /dev/null +++ b/lib/Request/CreditCardTopupWithMdkToken.php @@ -0,0 +1,44 @@ +customerId = $customerId; + $this->token = $token; + $this->privateMoneyId = $privateMoneyId; + $this->amount = $amount; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/customers' . '/' . $this->customerId . '/card-authorize' . '/topup-with-mdk-token'; + } + + public function getParams() + { + $params = array( + 'token' => $this->token, + 'private_money_id' => $this->privateMoneyId, + 'amount' => $this->amount, + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/CreditCardTopupWithMembership.php b/lib/Request/CreditCardTopupWithMembership.php new file mode 100644 index 00000000..cdeaa603 --- /dev/null +++ b/lib/Request/CreditCardTopupWithMembership.php @@ -0,0 +1,44 @@ +customerId = $customerId; + $this->cardUuid = $cardUuid; + $this->privateMoneyId = $privateMoneyId; + $this->amount = $amount; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/customers' . '/' . $this->customerId . '/card-authorize' . '/topup-with-membership'; + } + + public function getParams() + { + $params = array( + 'card_uuid' => $this->cardUuid, + 'private_money_id' => $this->privateMoneyId, + 'amount' => $this->amount, + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/DeleteCustomerCard.php b/lib/Request/DeleteCustomerCard.php new file mode 100644 index 00000000..d47b5434 --- /dev/null +++ b/lib/Request/DeleteCustomerCard.php @@ -0,0 +1,38 @@ +customerId = $customerId; + $this->cardUuid = $cardUuid; + + $this->optionalParams = array(); + } + + public function getPath() + { + return '/customers' . '/' . $this->customerId . '/cards' . '/delete'; + } + + public function getParams() + { + $params = array( + 'card_uuid' => $this->cardUuid, + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/GetCustomerCards.php b/lib/Request/GetCustomerCards.php new file mode 100644 index 00000000..e13ab6d2 --- /dev/null +++ b/lib/Request/GetCustomerCards.php @@ -0,0 +1,36 @@ +customerId = $customerId; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/customers' . '/' . $this->customerId . '/cards'; + } + + public function getParams() + { + $params = array( + + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/GetCvsAuthorization.php b/lib/Request/GetCvsAuthorization.php new file mode 100644 index 00000000..b751f142 --- /dev/null +++ b/lib/Request/GetCvsAuthorization.php @@ -0,0 +1,36 @@ +orderId = $orderId; + + $this->optionalParams = array(); + } + + public function getPath() + { + return '/cvs' . '/' . $this->orderId; + } + + public function getParams() + { + $params = array( + + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/GetCvsAuthorizations.php b/lib/Request/GetCvsAuthorizations.php new file mode 100644 index 00000000..2121148d --- /dev/null +++ b/lib/Request/GetCvsAuthorizations.php @@ -0,0 +1,36 @@ +privateMoneyId = $privateMoneyId; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/cvs'; + } + + public function getParams() + { + $params = array( + 'private_money_id' => $this->privateMoneyId, + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Request/PostCreditSession.php b/lib/Request/PostCreditSession.php new file mode 100644 index 00000000..238ecab2 --- /dev/null +++ b/lib/Request/PostCreditSession.php @@ -0,0 +1,49 @@ +customerId = $customerId; + $this->privateMoneyId = $privateMoneyId; + $this->cardId = $cardId; + $this->expiresAt = $expiresAt; + + $this->optionalParams = $optionalParams; + } + + public function getPath() + { + return '/credit-sessions'; + } + + public function getParams() + { + $params = array( + 'customer_id' => $this->customerId, + 'private_money_id' => $this->privateMoneyId, + 'card_id' => $this->cardId, + 'expires_at' => $this->expiresAt, + ); + + $params += $this->optionalParams; + + if (isset($params['expiresAt']) && $params['expiresAt'] instanceof DateTime) { + $params['expiresAt'] = $params['expiresAt']->format(DateTime::ATOM); + } + + return $params; + } +} diff --git a/lib/Request/ShowTransactionGroup.php b/lib/Request/ShowTransactionGroup.php new file mode 100644 index 00000000..50223de7 --- /dev/null +++ b/lib/Request/ShowTransactionGroup.php @@ -0,0 +1,36 @@ +uuid = $uuid; + + $this->optionalParams = array(); + } + + public function getPath() + { + return '/transaction-groups' . '/' . $this->uuid; + } + + public function getParams() + { + $params = array( + + ); + + $params += $this->optionalParams; + + + return $params; + } +} diff --git a/lib/Response/Bill.php b/lib/Response/Bill.php index 572800be..c97c329e 100644 --- a/lib/Response/Bill.php +++ b/lib/Response/Bill.php @@ -3,6 +3,7 @@ namespace Pokepay\Response; +use DateTimeZone; class Bill extends Base { @@ -38,4 +39,14 @@ class Bill extends Base * @var string */ public $token; + /** + * @var \DateTime + */ + public $createdAt; + + protected function normalize($timezone) + { + $tz = new DateTimeZone($timezone); + $this->createdAt->setTimezone($tz); + } } diff --git a/lib/Response/BulkTransaction.php b/lib/Response/BulkTransaction.php index 863b643e..5e6e8a88 100644 --- a/lib/Response/BulkTransaction.php +++ b/lib/Response/BulkTransaction.php @@ -43,11 +43,18 @@ class BulkTransaction extends Base * @var \DateTime */ public $updatedAt; + /** + * @var \DateTime|null + */ + public $scheduledAt; protected function normalize($timezone) { $tz = new DateTimeZone($timezone); $this->submittedAt->setTimezone($tz); $this->updatedAt->setTimezone($tz); + if (isset($this->scheduledAt)){ + $this->scheduledAt->setTimezone($tz); + } } } diff --git a/lib/Response/CapturedCreditSession.php b/lib/Response/CapturedCreditSession.php new file mode 100644 index 00000000..0820f413 --- /dev/null +++ b/lib/Response/CapturedCreditSession.php @@ -0,0 +1,13 @@ +expiresAt->setTimezone($tz); + } +} diff --git a/lib/Response/CreditSessionTransactionResult.php b/lib/Response/CreditSessionTransactionResult.php new file mode 100644 index 00000000..093b7f23 --- /dev/null +++ b/lib/Response/CreditSessionTransactionResult.php @@ -0,0 +1,9 @@ +payLimit->setTimezone($tz); + if (isset($this->doneAt)){ + $this->doneAt->setTimezone($tz); + } + if (isset($this->canceledAt)){ + $this->canceledAt->setTimezone($tz); + } + } +} diff --git a/lib/Response/PaginatedCvsAuthorizations.php b/lib/Response/PaginatedCvsAuthorizations.php new file mode 100644 index 00000000..99ecf2f4 --- /dev/null +++ b/lib/Response/PaginatedCvsAuthorizations.php @@ -0,0 +1,38 @@ +items as $item) { + $item->normalize($timezone); + } + } +} diff --git a/lib/Response/PaginatedUserCards.php b/lib/Response/PaginatedUserCards.php new file mode 100644 index 00000000..c6f36625 --- /dev/null +++ b/lib/Response/PaginatedUserCards.php @@ -0,0 +1,30 @@ +rows as $item) { + $item->normalize($timezone); + } + } +} diff --git a/lib/Response/TransactionGroup.php b/lib/Response/TransactionGroup.php new file mode 100644 index 00000000..27fe9f6a --- /dev/null +++ b/lib/Response/TransactionGroup.php @@ -0,0 +1,40 @@ +createdAt->setTimezone($tz); + $this->updatedAt->setTimezone($tz); + foreach ($this->transactions as $item) { + $item->normalize($timezone); + } + } +} diff --git a/lib/Response/UserCard.php b/lib/Response/UserCard.php new file mode 100644 index 00000000..33f3f183 --- /dev/null +++ b/lib/Response/UserCard.php @@ -0,0 +1,28 @@ +registeredAt->setTimezone($tz); + } +} diff --git a/partner.yaml b/partner.yaml index 187ca31f..944dab2c 100644 --- a/partner.yaml +++ b/partner.yaml @@ -13,9 +13,26 @@ info: tags: - name: Transaction + description: | + 取引を表すデータです。 + マネー(Private Money)のウォレット間の送金を記録し、キャンセルなどで状態が更新されることがあります。 + 取引種類として以下が存在します。 + + - topup: チャージ。Merchant => Customer送金 + - payment: 支払い。Customer => Merchant送金 + - transfer: 個人間譲渡。Customer => Customer送金 + - exchange: マネー間交換。1ユーザのウォレット間の送金(交換) + - expire: 退会時失効。退会時の払戻を伴わない残高失効履歴 + - cashback: 退会時払戻。退会時の払戻金額履歴 - name: Transfer - - name: Check description: | + 送金取引明細を表すデータです。 + マネー(Private Money)のウォレット間の送金記録を取得します。 + 取引(Transaction)は複数の送金明細(Transfer)で構成されています。 + 送金明細には送金元・送金先のアカウント情報、マネー額、ポイント額などが含まれます。 + 取引種別として、payment, topup, campaign-topup, transfer, exchange, refund-payment, refund-topup, cashback, expire等があります。 + - name: Check + description: |- 店舗ユーザが発行し、エンドユーザーがポケペイアプリから読み取ることでチャージ取引が発生するQRコードです。 チャージQRコードを解析すると次のようなURLになります(URLは環境によって異なります)。 @@ -25,9 +42,20 @@ tags: QRコードを読み取る方法以外にも、このURLリンクを直接スマートフォン(iOS/Android)上で開くことによりアプリが起動して取引が行われます。(注: 上記URLはsandbox環境であるため、アプリもsandbox環境のものである必要があります) 上記URL中の `xxxxxxxx-xxxx-xxxxxxxxx-xxxxxxxxxxxx` の部分がチャージQRコードのIDです。 - name: Bill - description: 支払いQRコード - - name: Cashtray description: | + 支払いQRコード(トークン)を表すデータです。 + URL文字列のまま利用されるケースとQR画像化して利用されるケースがあります。 + ログイン済みユーザアプリで読込むことで、支払い取引を作成します。 + 設定される支払い金額(amount)は、固定値とユーザによる自由入力の2パターンがあります。 + amountが空の場合は、ユーザによる自由入力で受け付けた金額で支払いを行います。 + 有効期限は比較的長命で利用される事例が多いです。 + + 複数マネー対応支払いQRコードについて: + オプショナルで複数のマネーを1つの支払いQRコードに設定可能です。 + その場合ユーザ側でどのマネーで支払うか指定可能です。 + 複数マネー対応支払いQRコードにはデフォルトのマネーウォレットを設定する必要があり、ユーザがマネーを明示的に選択しなかった場合はデフォルトのマネーによる支払いになります。 + - name: Cashtray + description: |- Cashtrayは支払いとチャージ両方に使えるQRコードで、店舗ユーザとエンドユーザーの間の主に店頭などでの取引のために用いられます。 店舗ユーザはCashtrayの状態を監視することができ、取引の成否やエラー事由を知ることができます。 Cashtrayによる取引では、エンドユーザーがQRコードを読み取った時点で即時取引が作られ、ユーザに対して受け取り確認画面は表示されません。 @@ -35,33 +63,98 @@ tags: また、Cashtrayには有効期限があり、デフォルトでは30分で失効します。 - name: Customer + description: | + エンドユーザー(顧客)のウォレット情報を管理するためのAPIです。 + エンドユーザーのウォレット(アカウント)の作成・更新・取得を行います。 + ウォレットにはマネー残高(有償バリュー)とポイント残高(無償バリュー)があり、 + 有効期限別に金額が管理されています。 + また、外部システム連携用のexternal_idやメタデータを設定することも可能です。 + - name: CreditSession + description: | + クレジットカード決済セッションを管理するためのAPIです。 + Veritrans(決済ゲートウェイ)との連携でクレジットカード決済を実現します。 + セッションには有効期限があり、セッション作成後に取引の実行や売上確定(キャプチャ)を行います。 + 3Dセキュア認証にも対応しています。 + - name: CVS + description: | + コンビニ決済(CVS)によるチャージの申込情報を表すデータです。 + 申込後に発行される払込票URL・受付番号を使ってコンビニで支払うと、完了通知を受けてチャージ取引が作成されます。 - name: Organization + description: | + 組織(発行体・加盟店組織)を表すデータです。 + Pokepay上でマネーを発行する発行体や、店舗を束ねる加盟店組織を管理します。 + 組織には組織コード、組織名、本社情報などが含まれます。 + 組織配下に複数の店舗(Shop)を持つことができます。 - name: Shop + description: | + 店舗(加盟店)を表すデータです。 + Pokepayプラットフォーム上で支払いを受け取る店舗ユーザーを管理します。 + 店舗は組織(Organization)に所属し、店舗ごとにウォレットを持ちます。 + 店舗情報には住所、電話番号、メールアドレス、外部連携用IDなどが含まれます。 + 店舗ステータス(active/disabled)の管理も可能です。 - name: User + description: | + ユーザを表すデータです。 + エンドユーザー(Customer)と店舗ユーザー(Merchant)の2種類が存在します。 + エンドユーザーは認証の主体であり、マネー毎にウォレットを持ちます。 + 店舗ユーザーは組織に所属し、同じくマネー毎にウォレットを持ちます。 - name: Account + description: | + ウォレットを表すデータです。 + CustomerもMerchantも所有し、ウォレット間の送金は取引として記録されます。 + Customerのウォレットはマネー残高(有償バリュー)、ポイント残高(無償バリュー)の2種類の残高をもちます。 + また有効期限別で金額管理しており、有効期限はチャージ時のコンテキストによって決定されます。 + ユーザはマネー別に複数のウォレットを保有することが可能です。 + ただし1マネー1ウォレットのみであり、同一マネーのウォレットを複数所有することはできません。 - name: Private Money + description: | + Pokepay上で発行する電子マネーを表すデータです。 + 電子マネーは1つの発行体(Organization)によって発行されます。 + 電子マネーはCustomerやMerchantが所有するウォレット間を送金されます。 + 電子マネー残高はユーザが有償で購入するマネーと無償で付与されるポイントの2種類のバリューで構成され、 + それぞれ有効期限決定ロジックは電子マネーの設定に依存します。 - name: Bulk + description: | + 一括取引処理を表すデータです。 + CSVファイルのアップロードにより、複数件の取引をバッチ処理する非同期APIを提供します。 + 一括処理のステータス(submitted, examining, queued, processing, error, done)を監視できます。 + 処理完了時にコールバックURLへの通知も可能です。 + また、スケジュール実行時刻を指定して将来の時点で処理を実行することもできます。 - name: Event + description: | + 外部決済イベント(ExternalTransaction)を表すデータです。 + Pokepay外の決済(現金決済、クレジットカード決済等)を記録し、ポケペイのポイント還元を実現します。 + 外部決済イベントを作成することで、キャンペーン連動によるポイント付与が可能になります。 + イベントのキャンセル(返金)にも対応しており、紐付いたポイント還元も同時にキャンセルされます。 + リクエストIDによる羃等性の担保もサポートしています。 - name: Campaign - - name: Webhook description: | + 自動ポイント還元ルールの設定を表すデータです。 + Pokepay管理画面やPartnerSDK経由でルール登録、更新が可能です。 + 取引(Transaction)または外部決済イベント(ExternalTransaction)の内容によって還元するポイント額を計算し、自動で付与するルールを設定可能です。 + targetとして取引または外部決済イベントを選択して個別設定します。 + - name: Webhook + description: |- Webhookは特定のワーカータスクでの処理が完了した事を通知します。 WebHookにはURLとタスク名、有効化されているかを設定することが出来ます。 通知はタスク完了時、事前に設定したURLにPOSTリクエストを行います。 - name: Coupon description: | - Couponは支払い時に指定し、支払い処理の前にCouponに指定の方法で値引き処理を行います。 - Couponは特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 + 割引クーポンを表すデータです。 + クーポンをユーザが明示的に利用することによって支払い決済時の割引(固定金額 or 割引率)が適用されます。 + クーポンは支払い時に指定し、支払い処理の前にクーポンに指定の方法で値引き処理を行います。 + クーポン原資を負担する発行店舗を設定したり、配布先を指定することも可能です。 + また、特定店舗で利用できるものや利用可能期間、配信条件などを設定できます。 - name: UserDevice - description: | + description: |- UserDeviceはユーザー毎のデバイスを管理します。 あるユーザーが使っている端末を区別する必要がある場合に用いられます。 これが必要な理由はBank Payを用いたチャージを行う場合は端末を区別できることが要件としてあるためです。 - name: BankPay - description: | + description: |- BankPayを用いた銀行からのチャージ取引などのAPIを提供しています。 - name: SevenBankATMSession - description: | + description: |- セブンATMチャージの取引内容を照会するAPIを提供しています。 components: @@ -81,6 +174,148 @@ components: pattern: '^ok$' message: type: string + CvsAuthorization: + x-pokepay-schema-type: "response" + type: object + properties: + account: + $ref: '#/components/schemas/AccountDetail' + user: + $ref: '#/components/schemas/User' + order_id: + type: string + format: uuid + title: 申し込みID + description: コンビニ決済の申し込みIDです。 + transaction_id: + type: string + format: uuid + nullable: true + title: 取引ID + description: 入金が完了したときに作成される取引のIDです。未入金の場合はnullです。 + pay_limit: + type: string + format: date-time + title: お支払期限 + tel: + type: string + title: 電話番号 + name1: + type: string + title: 顧客姓 + name2: + type: string + title: 顧客名 + amount: + type: integer + title: チャージ額 + service_option_type: + type: string + title: コンビニ種別 + haraikomi_url: + type: string + title: 払込票URL + receipt_no: + type: string + title: 受付番号 + done_at: + type: string + format: date-time + nullable: true + title: 入金完了日時 + canceled_at: + type: string + format: date-time + nullable: true + title: キャンセル日時 + PaginatedCvsAuthorizations: + x-pokepay-schema-type: "response" + properties: + per_page: + type: integer + minimum: 0 + count: + type: integer + minimum: 0 + items: + type: array + items: + $ref: '#/components/schemas/CvsAuthorization' + prev: + type: string + nullable: true + next: + type: string + nullable: true + CreditSession: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + expires_at: + type: string + description: 有効期限 + format: date-time + CapturedCreditSession: + x-pokepay-schema-type: "response" + properties: + session_id: + type: string + format: uuid + description: キャプチャされたセッションのID + CreditSessionTransactionResult: + x-pokepay-schema-type: "response" + description: クレジットセッション取引の結果。Veritrans microserviceから返されたレスポンス。 + type: object + UserCard: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: 'カード識別子' + description: 'カードの一意識別子(UUID)' + card_number: + type: string + title: 'マスク済みカード番号' + description: 'マスクされたカード番号(例: 411111********11)' + registered_at: + type: string + format: date-time + title: '登録日時' + description: 'カードが登録された日時' + PaginatedUserCards: + x-pokepay-schema-type: "response" + properties: + rows: + type: array + items: + $ref: '#/components/schemas/UserCard' + count: + type: integer + title: '総件数' + description: 'フィルタ条件に一致する全カードの件数' + pagination: + $ref: '#/components/schemas/Pagination' + CardAuthorizeResult: + x-pokepay-schema-type: "response" + description: 3Dセキュア認証開始用のレスポンス。 + type: object + properties: + authentication_html: + type: string + title: '認証開始用HTML' + description: |- + Veritransの3Dセキュア認証を開始するためのHTMLです。 + パートナーはこれをエンドユーザーのブラウザに出力してください。 + request_id: + type: string + format: uuid + title: 'リクエストID' + description: |- + この取引のリクエストIDです。 + GET /transactions/requests/{request_id} で結果を取得できます。 Pagination: x-pokepay-schema-type: "response" properties: @@ -129,68 +364,137 @@ components: type: string format: uuid title: 'ウォレットID' + description: 'ウォレットID' name: type: string title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 private_money: $ref: '#/components/schemas/PrivateMoney' title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' AccountWithUser: x-pokepay-schema-type: "response" properties: id: type: string format: uuid + title: 'ウォレットID' + description: 'ウォレットID' name: type: string + title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean + title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 private_money: $ref: '#/components/schemas/PrivateMoney' + title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' user: $ref: '#/components/schemas/User' + title: 'ユーザ情報' + description: 'ウォレットを所持しているユーザ情報です。' AccountDetail: x-pokepay-schema-type: "response" properties: id: type: string format: uuid + title: 'ウォレットID' + description: 'ウォレットID' name: type: string + title: 'ウォレット名' + description: 'ウォレット名' is_suspended: type: boolean + title: 'ウォレットが凍結されているかどうか' + description: |- + 管理者によってユーザのウォレットが凍結されているかどうかのフラグです。 + statusがsuspendedかどうかと同義です。 status: type: string enum: [active, suspended, pre-closed, closed] + title: 'ウォレット状態' + description: |- + ウォレットの状態です。active状態以外のウォレットでは取引が失敗します。 + + - active: 有効状態 + - suspended: 凍結状態。管理者によって凍結されている状態です。 + - pre-closed: 退会準備状態。退会の前にこの状態を経る必要があります。 + - closed: 退会状態。この状態では残高が0になっています。 balance: type: number format: decimal + title: '総残高' + description: 'ウォレットに入っている総残高です(マネー残高 + ポイント残高)。' money_balance: type: number format: decimal + title: 'マネー残高' + description: 'ウォレットに入っているマネー残高です。' point_balance: type: number format: decimal + title: 'ポイント残高' + description: 'ウォレットに入っているポイント残高です。' point_debt: type: number format: decimal + title: 'ポイント負債' + description: |- + ポイント負債とは、支払いによってポイントを消費した後で、それ以前のポイント付与取引をキャンセルした場合に生じる負のポイントです。 + 次回以降のポイント付与からポイント負債分が差し引かれます。 private_money: $ref: '#/components/schemas/PrivateMoney' + title: '設定マネー情報' + description: 'ウォレットが取り扱うマネーです。1つのウォレットが取り扱えるマネーは1つのみです。' user: $ref: '#/components/schemas/User' + title: 'ユーザ情報' + description: 'ウォレットを所持しているユーザ情報です。' external_id: type: string nullable: true maxLength: 50 + title: '外部ID' + description: |- + ウォレットに対して設定されている外部IDです。 + 外部IDはポケペイ外のシステムで発番されるもので、ポケペイのウォレットと紐付けて管理したい場合に使用されます。 + 任意で設定される項目で、最大50桁の文字列が指定できます。 ShopAccount: x-pokepay-schema-type: "response" properties: @@ -213,6 +517,9 @@ components: AccountDeleted: x-pokepay-schema-type: "response" properties: {} + CustomerCardDeleted: + x-pokepay-schema-type: "response" + properties: {} AccountBalance: x-pokepay-schema-type: "response" properties: @@ -263,6 +570,10 @@ components: token: type: string title: 支払いQRコードを解析したときに出てくるURL + created_at: + type: string + format: date-time + title: 支払いQRコードの作成日時 Check: x-pokepay-schema-type: "response" properties: @@ -379,6 +690,17 @@ components: description: |- 取引作成時に店舗側から指定されるメタデータです。 全てのkeyとvalueが文字列であるようなフラットな構造のJSON文字列です。 + strategy: + type: string + enum: [point-preferred, money-only] + nullable: true + title: 支払い時の残高消費方式 + description: |- + エンドユーザーがCPMトークン作成時に指定した残高消費方式です。 + nullの場合は支払い時にpoint-preferred(ポイント優先)として扱われます。 + + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます + - money-only: マネー残高のみから消費され、ポイント残高は使われません Cashtray: x-pokepay-schema-type: "response" @@ -572,7 +894,7 @@ components: type: type: string title: '取引種別' - description: | + description: |- 各取引種別の値の意味は以下の通りです。 - topup: チャージ - payment: 支払い @@ -586,13 +908,13 @@ components: title: '返金された取引かどうか' sender: $ref: '#/components/schemas/User' - title: '送金者情報' + title: '送金ユーザ情報' sender_account: $ref: '#/components/schemas/Account' title: '送金ウォレット情報' receiver: $ref: '#/components/schemas/User' - title: '受取者情報' + title: '受取ユーザ情報' receiver_account: $ref: '#/components/schemas/Account' title: '受取ウォレット情報' @@ -605,7 +927,7 @@ components: point_amount: type: number title: '取引ポイント額(キャンペーン付与ポイント合算)' - description: | + description: |- 取引のポイント額です。 キャンペーンによるポイント付与額との合算値なので、元々の取引のポイント額のみを取り出したいときは `raw_point_amount` を参照してください。 チャージ取引の場合、point_amount = raw_point_amount + campaign_point_amount @@ -614,21 +936,28 @@ components: raw_point_amount: type: number title: '取引ポイント額' - description: | + description: |- 取引のポイント額です。 - キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 + 支払いの場合、キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 nullable: true campaign_point_amount: type: number title: 'キャンペーンによるポイント付与額' + description: |- + ポケペイのキャンペーン機能により付与されたポイント額です。 + 支払い取引、チャージ取引のどちらでもポイント付与される可能性があり、本来の支払い金額/チャージ金額と分離するためのフィールドです。 nullable: true done_at: type: string format: date-time title: '取引日時' + description: |- + 取引が起こった日時です。 description: type: string title: '取引説明文' + description: |- + 取引の説明文です。 TransactionDetail: x-pokepay-schema-type: "response" properties: @@ -639,7 +968,7 @@ components: type: type: string title: '取引種別' - description: | + description: |- 各取引種別の値の意味は以下の通りです。 - topup: チャージ - payment: 支払い @@ -653,13 +982,13 @@ components: title: '返金された取引かどうか' sender: $ref: '#/components/schemas/User' - title: '送金者情報' + title: '送金ユーザ情報' sender_account: $ref: '#/components/schemas/Account' title: '送金ウォレット情報' receiver: $ref: '#/components/schemas/User' - title: '受取者情報' + title: '受取ユーザ情報' receiver_account: $ref: '#/components/schemas/Account' title: '受取ウォレット情報' @@ -672,7 +1001,7 @@ components: point_amount: type: number title: '取引ポイント額(キャンペーン付与ポイント合算)' - description: | + description: |- 取引のポイント額です。 キャンペーンによるポイント付与額との合算値なので、元々の取引のポイント額のみを取り出したいときは `raw_point_amount` を参照してください。 チャージ取引の場合、point_amount = raw_point_amount + campaign_point_amount @@ -681,23 +1010,58 @@ components: raw_point_amount: type: number title: '取引ポイント額' - description: | + description: |- 取引のポイント額です。 - キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 + 支払いの場合、キャンペーンによるポイント付与額を含まない、元々の取引で支払われたポイント額を表します。 campaign_point_amount: type: number title: 'キャンペーンによるポイント付与額' + description: |- + ポケペイのキャンペーン機能により付与されたポイント額です。 + 支払い取引、チャージ取引のどちらでもポイント付与される可能性があり、本来の支払い金額/チャージ金額と分離するためのフィールドです。 done_at: type: string format: date-time title: '取引日時' + description: |- + 取引が起こった日時です。 description: type: string title: '取引説明文' + description: |- + 取引の説明文です。 transfers: type: array items: $ref: '#/components/schemas/Transfer' + title: '取引明細一覧' + description: |- + 取引の内訳を表す取引明細の一覧です。 + 元々の取引に加えて、キャンペーンによるポイント付与や、キャンセル取引などが該当します。 + TransactionGroup: + x-pokepay-schema-type: "response" + properties: + id: + type: string + format: uuid + title: 'トランザクショングループID' + name: + type: string + maxLength: 64 + title: 'トランザクショングループ名' + created_at: + type: string + format: date-time + title: '作成日時' + updated_at: + type: string + format: date-time + title: '更新日時' + transactions: + type: array + items: + $ref: '#/components/schemas/Transaction' + title: 'グループに属する取引一覧' BillTransaction: x-pokepay-schema-type: "response" properties: @@ -832,6 +1196,11 @@ components: type: string format: date-time title: バルク取引が更新された日時 + scheduled_at: + type: string + format: date-time + nullable: true + title: バルク取引の予約実行日時 BulkTransactionJob: x-pokepay-schema-type: "response" properties: @@ -934,33 +1303,74 @@ components: id: type: string format: uuid + title: '取引明細ID' + description: '取引明細IDです。' sender_account: $ref: '#/components/schemas/AccountWithoutPrivateMoneyDetail' + title: '送金元ウォレット' + description: '送金元ウォレット情報です。' receiver_account: $ref: '#/components/schemas/AccountWithoutPrivateMoneyDetail' + title: '送金先ウォレット' + description: '送金先ウォレット情報です。' amount: type: number format: decimal minimum: 0 + title: '送金総額 (マネー額 + ポイント額)' + description: '取引明細の送金総額です (マネー額 + ポイント額)。' money_amount: type: number format: decimal minimum: 0 + title: '送金マネー額' + description: '取引明細のマネーのみの送金額です。' point_amount: type: number format: decimal minimum: 0 + title: '送金ポイント額' + description: '取引明細のポイントのみの送金額です。' done_at: type: string format: date-time + title: '送金日時' + description: |- + 送金が起こった日時です。 + 1つの取引の中でも、ポイント付与やキャンセルは遅れて行なわれるため、親取引の取引日時とは異なることがあります。 type: type: string enum: [topup, payment, refund-topup, refund-payment, transfer, exchange-inflow, exchange-outflow, refund-exchange-inflow, refund-exchange-outflow, campaign-topup, refund-campaign, use-coupon, refund-coupon, cashback, expire] + title: '取引明細種別' + description: |- + 各取引明細種別の値の意味は以下の通りです。 + - topup: チャージ + - payment: 支払い + - refund-topup: チャージ取引に対するキャンセル + - refund-payment: 支払い取引に対するキャンセル + - transfer: 個人間送金 + - exchange-inflow: マネー間交換 (他マネーのウォレットからの流入) + - exchange-outflow: マネー間交換 (他マネーのウォレットへのの流出) + - refund-exchange-inflow: マネー間交換のキャンセル (他マネーのウォレットからの流入のキャンセル) + - refund-exchange-outflow: マネー間交換のキャンセル (他マネーのウォレットへのの流出のキャンセル) + - campaign-topup: キャンペーンによるポイント付与 + - refund-campaign-topup: キャンペーンによるポイント付与のキャンセル + - use-coupon: クーポンによる値引き処理 + - cashback: ウォレット退会時の払い戻し処理 + - expire: ウォレット退会時の残高失効処理 description: type: string + title: '取引明細説明文' + description: |- + 取引明細の説明文です。 transaction_id: type: string format: uuid + title: '親取引ID' + description: |- + 親取引のIDです。 + 取引明細(Transfer)は親取引(Transaction)に対して複数存在します。 + ExternalTransaction: x-pokepay-schema-type: "response" properties: @@ -1029,7 +1439,7 @@ components: $ref: '#/components/schemas/TransactionDetail' nullable: true title: 関連ポケペイ取引詳細 - description: | + description: |- ポケペイ外取引と連動して作られたポケペイ取引の取引詳細です。 例えば、キャンペーンによるポイント付与取引やキャンセル状況などの情報が含まれます。 ポケペイ取引が存在しない場合はnullが設定されます。 @@ -1690,7 +2100,7 @@ components: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -1706,6 +2116,20 @@ components: token: type: string title: 'クーポンを特定するためのトークン' + num_recipients_cap: + type: integer + nullable: true + title: 'クーポンを受け取ることができるユーザ数上限' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ正の整数が返され、 + 上限が設定されていないクーポンではnullが返されます。 + num_recipients: + type: integer + nullable: true + title: 'クーポンを受け取ったユーザ数' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ、受け取り済みのユーザ数が表示されます。 + 上限が設定されていないクーポンではnullが返されます。 CouponDetail: x-pokepay-schema-type: "response" properties: @@ -1764,7 +2188,7 @@ components: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -1792,6 +2216,20 @@ components: private_money: $ref: '#/components/schemas/PrivateMoney' title: 'クーポンのマネー' + num_recipients_cap: + type: integer + nullable: true + title: 'クーポンを受け取ることができるユーザ数上限' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ正の整数が返され、 + 上限が設定されていないクーポンではnullが返されます。 + num_recipients: + type: integer + nullable: true + title: 'クーポンを受け取ったユーザ数' + description: |- + クーポンを受け取ることができるユーザ数の上限が設定されているクーポンに対してのみ、受け取り済みのユーザ数が表示されます。 + 上限が設定されていないクーポンではnullが返されます。 PaginatedCoupons: x-pokepay-schema-type: "response" properties: @@ -2027,6 +2465,12 @@ components: application/json: schema: $ref: '#/components/schemas/Conflict' + TemporarilyUnavailable: + description: Temporarily unavailable + content: + application/json: + schema: + $ref: '#/components/schemas/TemporarilyUnavailable' UserStatsOperationServiceUnavailable: description: User stats operation service is temporarily unavailable content: @@ -2066,6 +2510,191 @@ paths: $ref: '#/components/schemas/Echo' '400': $ref: '#/components/responses/BadRequest' + /credit-sessions: + post: + x-pokepay-operator-name: "PostCreditSession" + x-pokepay-allow-server-side: true + tags: + - CreditSession + summary: Create credit session + operationId: createCreditSession + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - customer_id + - private_money_id + - card_id + - expires_at + properties: + customer_id: + type: string + format: uuid + private_money_id: + type: string + format: uuid + card_id: + type: string + format: uuid + expires_at: + type: string + format: date-time + description: |- + セッション有効期限 + 制約: リクエスト時刻から30日以内 + 例: "2024-01-15T10:30:00+00:00" + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 + responses: + '200': + description: Credit session created + content: + application/json: + schema: + $ref: '#/components/schemas/CreditSession' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /credit-sessions/{session_id}/transactions: + post: + x-pokepay-operator-name: "CreateCreditSessionTransaction" + x-pokepay-allow-server-side: true + tags: + - CreditSession + summary: Create transaction with credit session + description: |- + クレジットセッションを使用して取引を作成します。 + セッションIDと取引金額を指定します。 + operationId: createCreditSessionTransaction + parameters: + - in: path + name: session_id + required: true + schema: + type: string + format: uuid + title: 'クレジットセッションID' + description: |- + クレジットセッションID + + 事前に作成されたクレジットセッションのIDを指定します。 + requestBody: + required: true + content: + application/json: + schema: + type: object + required: ["amount"] + properties: + amount: + type: number + minimum: 0 + description: |- + 取引金額 + 支払い金額を指定します。 + shop_id: + type: string + format: uuid + description: |- + 店舗ID + 支払いを行う店舗のIDを指定します。 + description: + type: string + maxLength: 200 + default: "" + description: |- + 取引説明 + 取引の説明や備考を指定します。省略時は空文字列になります。 + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 + responses: + '200': + description: Transaction created successfully + content: + application/json: + schema: + $ref: '#/components/schemas/CreditSessionTransactionResult' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /credit-sessions/{session_id}/capture: + post: + x-pokepay-operator-name: "CaptureCreditSession" + x-pokepay-allow-server-side: true + tags: + - CreditSession + summary: Capture credit session + description: |- + クレジットセッションの売上確定(キャプチャ)を行います。 + セッション内で行われた支払いの合計金額をクレジットカードに請求します。 + operationId: captureCreditSession + parameters: + - in: path + name: session_id + required: true + schema: + type: string + format: uuid + title: 'クレジットセッションID' + description: |- + クレジットセッションID + + キャプチャ対象のクレジットセッションのIDを指定します。 + requestBody: + required: false + content: + application/json: + schema: + type: object + properties: + request_id: + type: string + format: uuid + description: |- + 冪等性キー + 同一のrequest_idを持つリクエストは冪等に処理されます。 + responses: + '200': + description: Credit session captured successfully + content: + application/json: + schema: + $ref: '#/components/schemas/CapturedCreditSession' + '400': + $ref: '#/components/responses/BadRequest' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' /user: get: tags: @@ -2932,7 +3561,7 @@ paths: nullable: true format: decimal title: '支払い額' - description: | + description: |- 支払いQRコードを支払い額を指定します。省略するかnullを渡すと任意金額の支払いQRコードとなり、エンドユーザーがアプリで読み取った際に金額を入力します。 また、金額を指定する場合の上限額は支払いをするマネーの取引上限額です。 private_money_id: @@ -3068,7 +3697,7 @@ paths: minimum: 0 format: decimal title: '付与マネー額' - description: | + description: |- チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 point_amount: @@ -3076,7 +3705,7 @@ paths: minimum: 0 format: decimal title: '付与ポイント額' - description: | + description: |- チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`の少なくともどちらかは指定する必要があります。 account_id: @@ -3091,7 +3720,7 @@ paths: is_onetime: type: boolean title: 'ワンタイムかどうかのフラグ' - description: | + description: |- チャージQRコードが一度の読み取りで失効するときに`true`にします。デフォルト値は`true`です。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 @@ -3099,7 +3728,7 @@ paths: type: integer nullable: true title: 'ワンタイムでない場合の最大読み取り回数' - description: | + description: |- 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 デフォルト値はNULLです。 @@ -3108,7 +3737,7 @@ paths: type: string format: date-time title: 'チャージQRコード自体の失効日時' - description: | + description: |- チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。デフォルトでは作成日時から3ヶ月後になります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 @@ -3116,7 +3745,7 @@ paths: type: string format: date-time title: 'チャージQRコードによって付与されるポイント残高の有効期限' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効起源を指定します。デフォルトではマネー残高の有効期限と同じものが指定されます。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 @@ -3124,7 +3753,7 @@ paths: type: integer minimum: 1 title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 @@ -3133,7 +3762,7 @@ paths: type: string format: uuid title: 'ポイント額を負担する店舗のウォレットID' - description: | + description: |- ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 デフォルトではマネー発行体のデフォルト店舗(本店)がポイント負担先となります。 responses: @@ -3175,7 +3804,7 @@ paths: type: string format: uuid title: 'マネーID' - description: | + description: |- チャージQRコードのチャージ対象のマネーIDで結果をフィルターします。 organization_code: type: string @@ -3188,48 +3817,48 @@ paths: type: string format: date-time title: '有効期限の期間によるフィルター(開始時点)' - description: | + description: |- 有効期限の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 expires_to: type: string format: date-time title: '有効期限の期間によるフィルター(終了時点)' - description: | + description: |- 有効期限の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 created_from: type: string format: date-time title: '作成日時の期間によるフィルター(開始時点)' - description: | + description: |- 作成日時の期間によるフィルターの開始時点のタイムスタンプです。 デフォルトでは未指定です。 created_to: type: string format: date-time title: '作成日時の期間によるフィルター(終了時点)' - description: | + description: |- 作成日時の期間によるフィルターの終了時点のタイムスタンプです。 デフォルトでは未指定です。 issuer_shop_id: type: string format: uuid title: '発行店舗ID' - description: | + description: |- チャージQRコードを発行した店舗IDによってフィルターします。 デフォルトでは未指定です。 description: type: string title: 'チャージQRコードの説明文' - description: | + description: |- チャージQRコードの説明文(description)によってフィルターします。 部分一致(前方一致)したものを表示します。 デフォルトでは未指定です。 is_onetime: type: boolean title: 'ワンタイムのチャージQRコードかどうか' - description: | + description: |- チャージQRコードがワンタイムに設定されているかどうかでフィルターします。 `true` の場合はワンタイムかどうかでフィルターし、`false`の場合はワンタイムでないものをフィルターします。 未指定の場合はフィルターしません。 @@ -3237,7 +3866,7 @@ paths: is_disabled: type: boolean title: '無効化されたチャージQRコードかどうか' - description: | + description: |- チャージQRコードが無効化されているかどうかでフィルターします。 `true` の場合は無効なものをフィルターし、`false`の場合は有効なものをフィルターします。 未指定の場合はフィルターしません。 @@ -3314,7 +3943,7 @@ paths: minimum: 0 format: decimal title: '付与マネー額' - description: | + description: |- チャージQRコードによって付与されるマネー額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 point_amount: @@ -3322,21 +3951,21 @@ paths: minimum: 0 format: decimal title: '付与ポイント額' - description: | + description: |- チャージQRコードによって付与されるポイント額です。 `money_amount`と`point_amount`が両方0になるような更新リクエストはエラーになります。 description: type: string maxLength: 200 title: 'チャージQRコードの説明文' - description: | + description: |- チャージQRコードの説明文です。 チャージ取引後は、取引の説明文に転記され、取引履歴などに表示されます。 example: 'test check' is_onetime: type: boolean title: 'ワンタイムかどうかのフラグ' - description: | + description: |- チャージQRコードが一度の読み取りで失効するときに`true`にします。 `false`の場合、複数ユーザによって読み取り可能なQRコードになります。 ただし、その場合も1ユーザにつき1回のみしか読み取れません。 @@ -3344,7 +3973,7 @@ paths: type: integer nullable: true title: 'ワンタイムでない場合の最大読み取り回数' - description: | + description: |- 複数ユーザによって読み取り可能なチャージQRコードの最大読み取り回数を指定します。 NULLに設定すると無制限に読み取り可能なチャージQRコードになります。 ワンタイム指定(`is_onetime`)がされているときは、本パラメータはNULLである必要があります。 @@ -3352,7 +3981,7 @@ paths: type: string format: date-time title: 'チャージQRコード自体の失効日時' - description: | + description: |- チャージQRコード自体の失効日時を指定します。この日時以降はチャージQRコードを読み取れなくなります。 チャージQRコード自体の失効日時であって、チャージQRコードによって付与されるマネー残高の有効期限とは異なることに注意してください。マネー残高の有効期限はマネー設定で指定されているものになります。 @@ -3361,7 +3990,7 @@ paths: format: date-time nullable: true title: 'チャージQRコードによって付与されるポイント残高の有効期限' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効起源を指定します。 チャージQRコードにより付与されるマネー残高の有効期限はQRコード毎には指定できませんが、ポイント残高の有効期限は本パラメータにより、QRコード毎に個別に指定することができます。 @@ -3370,7 +3999,7 @@ paths: minimum: 1 nullable: true title: 'チャージQRコードによって付与されるポイント残高の有効期限(相対日数指定)' - description: | + description: |- チャージQRコードによって付与されるポイント残高の有効期限を相対日数で指定します。 1を指定すると、チャージQRコード作成日の当日中に失効します(翌日0時に失効)。 `point_expires_at`と`point_expires_in_days`が両方指定されている場合は、チャージQRコードによるチャージ取引ができた時点からより近い方が採用されます。 @@ -3380,12 +4009,12 @@ paths: type: string format: uuid title: 'ポイント額を負担する店舗のウォレットID' - description: | + description: |- ポイントチャージをする場合、ポイント額を負担する店舗のウォレットIDを指定することができます。 is_disabled: type: boolean title: '無効化されているかどうかのフラグ' - description: | + description: |- チャージQRコードを無効化するときに`true`にします。 `false`の場合は無効化されているチャージQRコードを再有効化します。 responses: @@ -3434,6 +4063,199 @@ paths: $ref: '#/components/responses/Forbidden' '422': $ref: '#/components/responses/UnprocessableEntity' + /cvs: + post: + tags: + - CVS + summary: 'コンビニ決済申込' + description: コンビニ決済の申し込みを行います。 + x-pokepay-operator-name: "CreateCvsAuthorization" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["customer_id", "private_money_id", "amount", "service_option_type", "name1", "name2", "tel"] + properties: + customer_id: + type: string + format: uuid + title: 'エンドユーザーのID' + description: |- + エンドユーザーIDです。 + + コンビニ決済を申し込むエンドユーザーを指定します。 + receiver_user_id が指定されない場合、このユーザーがチャージ先になります。 + receiver_user_id: + type: string + format: uuid + title: 'チャージ先エンドユーザーのID' + description: |- + チャージ先エンドユーザーIDです。 + + 指定した場合、customer_id とは別のユーザーをチャージ先にできます。 + 省略した場合は customer_id がチャージ先になります。 + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: |- + マネーIDです。 + + チャージするマネーを指定します。 + amount: + type: integer + minimum: 1 + maximum: 299999 + title: 'チャージ額' + description: 'チャージする金額を表します。' + service_option_type: + type: string + enum: + - 'sej' + - 'other' + - 'famima' + - 'lawson' + - 'econ' + title: 'コンビニ種別' + description: 'カスタマーが支払うコンビニの種別を表します。' + name1: + type: string + title: '顧客姓' + description: '顧客の姓を表します。' + name2: + type: string + title: '顧客名' + description: '顧客名を表します。' + tel: + type: string + title: '電話番号' + description: '顧客の電話番号を表します。' + topup_quota_id: + type: integer + minimum: 1 + title: 'チャージ可能枠ID' + description: |- + チャージするマネーにチャージ可能枠機能が設定されているとき、使用するチャージ可能枠のIDを表します。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CvsAuthorization' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + get: + tags: + - CVS + summary: 'コンビニ決済の申し込み情報一覧取得' + description: コンビニ決済の申し込み情報一覧を取得します。 + x-pokepay-operator-name: "GetCvsAuthorizations" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + required: ["private_money_id"] + properties: + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: 'マネーIDです。一覧を取得するマネーを指定します。' + customer_id: + type: string + format: uuid + title: 'エンドユーザーID' + description: 'エンドユーザーIDです。指定した場合、そのユーザーの申し込みに絞り込みます。' + status: + type: string + enum: [applied, payed, canceled, expired] + title: 'ステータス' + description: '申し込みのステータスで絞り込みます。' + before: + type: string + title: 'ページング(before)' + description: |- + ページングのためのパラメータです。 + 指定したIDの要素より後の申し込み情報が返されます。 + after: + type: string + title: 'ページング(after)' + description: |- + ページングのためのパラメータです。 + 指定したIDの要素より前の申し込み情報が返されます。 + per_page: + type: integer + minimum: 1 + maximum: 100 + default: 30 + format: int32 + title: '1ページあたりの表示件数' + description: '1ページあたりに表示する件数です。デフォルト値は30件です。' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedCvsAuthorizations' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /cvs/{order_id}: + parameters: + - name: order_id + in: path + required: true + schema: + type: string + format: uuid + description: 'コンビニ決済の申し込みID' + get: + tags: + - CVS + summary: 'コンビニ決済の申し込み情報取得' + description: コンビニ決済の申し込み情報を取得します。 + x-pokepay-operator-name: "GetCvsAuthorization" + x-pokepay-allow-server-side: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CvsAuthorization' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + delete: + tags: + - CVS + summary: 'コンビニ決済の申し込みキャンセル' + description: コンビニ決済の申し込みをキャンセルします。 + x-pokepay-operator-name: "CancelCvsAuthorization" + x-pokepay-allow-server-side: true + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CvsAuthorization' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' /transactions: get: tags: @@ -3638,13 +4460,83 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TransactionDetail' + $ref: '#/components/schemas/TransactionDetail' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /transaction-groups: + post: + tags: + - Transaction + summary: 'トランザクショングループを作成する' + description: |- + 複数の取引を1つのグループとして管理できるようにします。 + x-pokepay-operator-name: "CreateTransactionGroup" + x-pokepay-allow-server-side: true + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - name + properties: + name: + type: string + maxLength: 64 + description: |- + 作成するトランザクショングループの名称です。 + "pokepay" で始まる文字列は予約済みのため使用できません。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionGroup' '400': $ref: '#/components/responses/BadRequest' '403': $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' '422': $ref: '#/components/responses/UnprocessableEntity' + /transaction-groups/{uuid}: + get: + tags: + - Transaction + summary: 'トランザクショングループを取得する' + description: 指定したトランザクショングループの詳細を返します。 + x-pokepay-operator-name: "ShowTransactionGroup" + x-pokepay-allow-server-side: true + parameters: + - name: uuid + in: path + required: true + schema: + type: string + format: uuid + description: 取得したいトランザクショングループID + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/TransactionGroup' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' /transactions-v2: get: tags: @@ -4102,7 +4994,7 @@ paths: tags: - Check summary: 'チャージQRコードを読み取ることでチャージする' - description: | + description: |- 通常チャージQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバがチャージQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際のチャージ取引をリクエストすることになります。 エンドユーザーから受け取ったチャージ用QRコードのIDをエンドユーザーIDと共に渡すことでチャージ取引が作られます。 @@ -4163,7 +5055,7 @@ paths: tags: - Transaction summary: '支払いする' - description: | + description: |- 支払取引を作成します。 支払い時には、エンドユーザーの残高のうち、ポイント残高から優先的に消費されます。 x-pokepay-operator-name: "CreatePaymentTransaction" @@ -4277,7 +5169,7 @@ paths: tags: - Bill summary: '支払いQRコードを読み取ることで支払いをする' - description: | + description: |- 通常支払いQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 もしエンドユーザーとの通信をパートナーのサーバのみに限定したい場合、パートナーのサーバが支払いQRの情報をエンドユーザーから代理受けして、サーバ間連携APIによって実際の支払い取引をリクエストすることになります。 エンドユーザーから受け取った支払いQRコードのIDをエンドユーザーIDと共に渡すことで支払い取引が作られます。 @@ -4363,7 +5255,7 @@ paths: tags: - Transaction summary: 'CPMトークンによる取引作成' - description: | + description: |- CPMトークンにより取引を作成します。 CPMトークンに設定されたスコープの取引を作ることができます。 x-pokepay-operator-name: "CreateCpmTransaction" @@ -4435,15 +5327,15 @@ paths: strategy: type: string enum: [point-preferred, money-only] + nullable: true title: '支払い時の残高消費方式' description: |- 支払い時に残高がどのように消費されるかを指定します。 - デフォルトでは point-preferred (ポイント優先)が採用されます。 + エンドユーザーがCPMトークン作成時に指定した残高消費方式と一致するか、どちらか一方のみが指定されている必要があります。 + 両方が指定されていて値が異なる場合、cpm_token_strategy_conflictが返ります。 - - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます(デフォルト動作) + - point-preferred: ポイント残高が優先的に消費され、ポイントがなくなり次第マネー残高から消費されていきます - money-only: マネー残高のみから消費され、ポイント残高は使われません - - マネー設定でポイント残高のみの利用に設定されている場合(display_money_and_point が point-only の場合)、 strategy の指定に関わらずポイント優先になります。 example: 'point-preferred' responses: '200': @@ -4521,7 +5413,7 @@ paths: tags: - Cashtray summary: 'CashtrayQRコードを読み取ることで取引する' - description: | + description: |- エンドユーザーから受け取ったCashtray用QRコードのIDをエンドユーザーIDと共に渡すことで支払いあるいはチャージ取引が作られます。 通常CashtrayQRコードはエンドユーザーのアプリによって読み取られ、アプリとポケペイサーバとの直接通信によって取引が作られます。 @@ -4602,7 +5494,7 @@ paths: tags: - Transaction summary: '個人間送金' - description: | + description: |- エンドユーザー間での送金取引(個人間送金)を作成します。 個人間送金で送れるのはマネーのみで、ポイントを送ることはできません。送金元のマネー残高のうち、有効期限が最も遠いものから順に送金されます。 x-pokepay-operator-name: "CreateTransferTransaction" @@ -4774,7 +5666,7 @@ paths: description: |- 一括取引する情報を書いたCSVの文字列です。 1行目はヘッダ行で、2行目以降の各行にカンマ区切りの取引データを含みます。 - カラムは以下の7つです。任意のカラムには空文字を指定します。 + カラムは以下の9つです。任意のカラムには空文字を指定します。 - `type`: 取引種別 - 必須。'topup' または 'payment' @@ -4790,8 +5682,8 @@ paths: - 任意。ただし `money_amount` といずれかが必須。0以上の数字 - `description`: 取引の説明文 - 任意。200文字以内。取引履歴に表示される文章 - - `bear_account_id`: ポイント負担ウォレットID - - `point_amount` があるときは必須。UUID + - `bear_point_account_id`: ポイント負担ウォレットID + - 任意。UUID。省略した場合はマネー発行体の本店のウォレットがポイントを負担します - `point_expires_at`: ポイントの有効期限 - 任意。指定がないときはマネーに設定された有効期限を適用 request_id: @@ -4807,6 +5699,37 @@ paths: title: 'マネーID' description: |- マネーIDです。 マネーを指定します。 + callback_url: + type: string + nullable: true + format: url + title: コールバックURL + description: |- + 一括取引タスクが終了したときに通知されるコールバックURLです。これはオプショナルなパラメータで、未指定の場合は通知されません。 + + 指定したURLに対して、以下の内容のリクエストがPOSTメソッドで送信されます。 + + リクエスト例: + { + "bulk_transaction_id": "c9a0b2c0-e8d0-4a7f-9b1d-2f0c3e1a8b7a", + "request_id": "1640e29f-157a-46e2-af05-c402726cbf2b", + "completed_at": "2025-09-26T14:30:00Z", + "status": "done", + "success_count": 98, + "total_count": 100 + } + + - bulk_transaction_id: 一括取引タスクのタスクID + - request_id: 本APIにクライアント側から指定したrequest_id + - completed_at: 完了時刻 + - status: 終了時の状態。done (完了状態) か error (エラー) のいずれか + - success_count: 成功件数 + - total_count: 総件数 + + リトライ戦略について: + 対象URLにPOSTした結果、500, 502, 503, 504エラーを受け取ったとき、またはタイムアウト (10秒)したときに、最大3回までリトライします。 + 成功通知が複数回送信されることもありえるため、request_idで排他処理を行なってください。 + responses: '200': description: OK @@ -4944,7 +5867,7 @@ paths: tags: - Event summary: 'ポケペイ外部取引を作成する' - description: | + description: |- ポケペイ外部取引を作成します。 ポケペイ外の現金決済やクレジットカード決済に対してポケペイのポイントを付けたいというときに使用します。 @@ -5554,7 +6477,7 @@ paths: example: フクザワユキチ contact_name: type: string - maxLength: 256 + maxLength: 64 title: '担当者名' example: 佐藤清 responses: @@ -5582,14 +6505,14 @@ paths: pattern: '^[a-zA-Z0-9-]*$' maxLength: 32 title: '組織コード' - description: | + description: |- このパラメータを渡すとその組織の店舗のみが返され、省略すると加盟店も含む店舗が返されます。 example: 'pocketchange' private_money_id: type: string format: uuid title: 'マネーID' - description: | + description: |- このパラメータを渡すとそのマネーのウォレットを持つ店舗のみが返されます。 name: type: string @@ -5597,44 +6520,44 @@ paths: maxLength: 256 title: '店舗名' example: 'oxスーパー三田店' - description: | + description: |- このパラメータを渡すとその名前の店舗のみが返されます。 postal_code: type: string pattern: '^[0-9]{3}-?[0-9]{4}$' title: '店舗の郵便番号' - description: | + description: |- このパラメータを渡すとその郵便番号が登録された店舗のみが返されます。 address: type: string maxLength: 256 title: '店舗の住所' example: '東京都港区芝...' - description: | + description: |- このパラメータを渡すとその住所が登録された店舗のみが返されます。 tel: type: string pattern: '^0[0-9]{1,3}-?[0-9]{2,4}-?[0-9]{3,4}$' title: '店舗の電話番号' - description: | + description: |- このパラメータを渡すとその電話番号が登録された店舗のみが返されます。 email: type: string format: email maxLength: 256 title: '店舗のメールアドレス' - description: | + description: |- このパラメータを渡すとそのメールアドレスが登録された店舗のみが返されます。 external_id: type: string maxLength: 36 title: '店舗の外部ID' - description: | + description: |- このパラメータを渡すとその外部IDが登録された店舗のみが返されます。 with_disabled: type: boolean title: '無効な店舗を含める' - description: | + description: |- このパラメータを渡すと無効にされた店舗を含めて返されます。デフォルトでは無効にされた店舗は返されません。 page: type: integer @@ -5645,6 +6568,7 @@ paths: per_page: type: integer minimum: 1 + maximum: 1000 title: '1ページ分の取引数' description: 1ページ分の取引数です。 example: 50 @@ -6113,6 +7037,257 @@ paths: $ref: '#/components/responses/NotFound' '422': $ref: '#/components/responses/UnprocessableEntity' + /customers/{customer_id}/cards: + get: + tags: + - Customer + summary: 'エンドユーザーのクレジットカード一覧を取得する' + description: |- + エンドユーザーのクレジットカード一覧を取得します。 + 3D Secure認証済みのカードのみが返されます。 + idはcredit-sessions作成時に使用できます。 + x-pokepay-operator-name: "GetCustomerCards" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'エンドユーザーID' + description: エンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + properties: + page: + type: integer + minimum: 1 + title: 'ページ番号' + description: 取得したいページ番号です。デフォルト値は1です。 + per_page: + type: integer + minimum: 1 + maximum: 100 + title: '1ページ分の要素数' + description: 1ページ当たりの要素数です。デフォルト値は30です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedUserCards' + '403': + $ref: '#/components/responses/Forbidden' + '422': + $ref: '#/components/responses/UnprocessableEntity' + /customers/{customer_id}/cards/delete: + post: + tags: + - Customer + summary: 'エンドユーザーのクレジットカードを削除する' + description: |- + エンドユーザーの登録済みクレジットカードを削除します。 + 対象カードにアクティブなクレジットセッションがある場合は削除できません。 + x-pokepay-operator-name: "DeleteCustomerCard" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'エンドユーザーID' + description: カード保持者であるエンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - card_uuid + properties: + card_uuid: + type: string + format: uuid + title: 'カード識別子' + description: 削除対象カードのUUID(カード一覧の id)です。 + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CustomerCardDeleted' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /customers/{customer_id}/card-authorize/topup-with-membership: + post: + tags: + - Customer + summary: '登録済みクレジットカードでチャージする(3Dセキュア)' + description: |- + エンドユーザーの登録済みクレジットカードを使い、3Dセキュア認証付きでチャージします。 + レスポンスの authentication_html をエンドユーザーのブラウザに出力し認証を行ってください。 + receiver_user_id を指定すると、カード保持者と異なるユーザーの口座にチャージできます。 + x-pokepay-operator-name: "CreditCardTopupWithMembership" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'カード保持者のエンドユーザーID' + description: クレジットカードを保持するエンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - card_uuid + - private_money_id + - amount + properties: + card_uuid: + type: string + format: uuid + title: 'カード識別子' + description: 使用する登録済みカードのUUID(カード一覧の id)です。 + private_money_id: + type: string + format: uuid + title: 'マネーID' + description: チャージ先口座のマネーIDです。 + receiver_user_id: + type: string + format: uuid + title: 'チャージ先ユーザーID' + description: |- + チャージ先のエンドユーザーIDです。 + 省略時はカード保持者本人にチャージします。 + amount: + type: integer + minimum: 1 + title: 'チャージ金額' + delete_card_if_auth_fail: + type: boolean + title: '認証失敗時にカードを削除するか' + request_id: + type: string + format: uuid + title: 'リクエストID' + description: 冪等性のためのリクエストIDです。省略時はサーバーが生成します。 + topup_quota_id: + type: integer + title: 'チャージ可能枠ID' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CardAuthorizeResult' + '403': + $ref: '#/components/responses/Forbidden' + '404': + $ref: '#/components/responses/NotFound' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' + /customers/{customer_id}/card-authorize/topup-with-mdk-token: + post: + tags: + - Customer + summary: '未登録クレジットカード(MDKトークン)でチャージする(3Dセキュア)' + description: |- + MDKトークンで表されるクレジットカードを使い、カード登録なしで3Dセキュア認証付きチャージを行います。 + レスポンスの authentication_html をエンドユーザーのブラウザに出力し認証を行ってください。 + receiver_user_id を指定すると、カード保持者と異なるユーザーの口座にチャージできます。 + x-pokepay-operator-name: "CreditCardTopupWithMdkToken" + x-pokepay-allow-server-side: true + parameters: + - in: path + name: customer_id + required: true + schema: + type: string + format: uuid + title: 'カード保持者のエンドユーザーID' + description: クレジットカードを保持するエンドユーザーのIDです。 + requestBody: + required: true + content: + application/json: + schema: + type: object + required: + - token + - private_money_id + - amount + properties: + token: + type: string + title: 'MDKトークン' + description: VeritransのMDKトークンです。 + private_money_id: + type: string + format: uuid + title: 'マネーID' + receiver_user_id: + type: string + format: uuid + title: 'チャージ先ユーザーID' + description: 省略時はカード保持者本人にチャージします。 + amount: + type: integer + minimum: 1 + title: 'チャージ金額' + is_cardholder_name_specified: + type: boolean + title: 'カード名義人指定フラグ' + request_id: + type: string + format: uuid + title: 'リクエストID' + topup_quota_id: + type: integer + title: 'チャージ可能枠ID' + responses: + '200': + description: OK + content: + application/json: + schema: + $ref: '#/components/schemas/CardAuthorizeResult' + '400': + $ref: '#/components/responses/BadRequest' + '403': + $ref: '#/components/responses/Forbidden' + '409': + $ref: '#/components/responses/Conflict' + '422': + $ref: '#/components/responses/UnprocessableEntity' + '503': + $ref: '#/components/responses/TemporarilyUnavailable' /customers/transactions: get: tags: @@ -6305,7 +7480,7 @@ paths: tags: - Cashtray summary: 'Cashtrayを作る' - description: | + description: |- Cashtrayを作成します。 エンドユーザーに対して支払いまたはチャージを行う店舗の情報(店舗ユーザーIDとマネーID)と、取引金額が必須項目です。 @@ -6558,7 +7733,7 @@ paths: tags: - Campaign summary: 'ポイント付与キャンペーンを作る' - description: | + description: |- ポイント付与キャンペーンを作成します。 x-pokepay-operator-name: "CreateCampaign" x-pokepay-allow-server-side: true @@ -7458,7 +8633,7 @@ paths: tags: - Campaign summary: 'ポイント付与キャンペーンを更新する' - description: | + description: |- ポイント付与キャンペーンを更新します。 x-pokepay-operator-name: "UpdateCampaign" x-pokepay-allow-server-side: true @@ -8542,7 +9717,7 @@ paths: type: string format: json title: ユーザーデバイスのメタデータ - description: | + description: |- ユーザーのデバイス用の情報をメタデータを保持するために用います。 例: 端末の固有情報やブラウザのUser-Agent example: '{"user_agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:120.0) Gecko/20100101 Firefox/120.0"}' @@ -8599,7 +9774,7 @@ paths: tags: - UserDevice summary: デバイスの有効化 - description: | + description: |- 指定のデバイスを有効化し、それ以外の同一ユーザーのデバイスを無効化します。 parameters: - in: path @@ -8634,7 +9809,7 @@ paths: tags: - BankPay summary: 銀行口座の登録 - description: | + description: |- 銀行口座の登録を始めるAPIです。レスポンスに含まれるredirect_urlをユーザーの端末で開き銀行を登録します。 ユーザーが銀行口座の登録に成功すると、callback_urlにリクエストが行われます。 @@ -8853,41 +10028,41 @@ paths: type: string format: uuid title: '対象クーポンのマネーID' - description: | + description: |- 対象クーポンのマネーIDです(必須項目)。 存在しないマネーIDを指定した場合はprivate_money_not_foundエラー(422)が返ります。 coupon_id: type: string title: 'クーポンID' - description: | + description: |- 指定されたクーポンIDで結果をフィルターします。 部分一致(前方一致)します。 coupon_name: type: string title: 'クーポン名' - description: | + description: |- 指定されたクーポン名で結果をフィルターします。 issued_shop_name: type: string title: '発行店舗名' - description: | + description: |- 指定された発行店舗で結果をフィルターします。 available_shop_name: type: string title: '利用可能店舗名' - description: | + description: |- 指定された利用可能店舗で結果をフィルターします。 available_from: type: string format: date-time title: '利用可能期間 (開始日時)' - description: | + description: |- 利用可能期間でフィルターします。フィルターの開始日時をISO8601形式で指定します。 available_to: type: string format: date-time title: '利用可能期間 (終了日時)' - description: | + description: |- 利用可能期間でフィルターします。フィルターの終了日時をISO8601形式で指定します。 page: type: integer @@ -8971,7 +10146,7 @@ paths: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -9005,6 +10180,10 @@ paths: format: uuid title: "ストレージID" description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + num_recipients_cap: + type: integer + minimum: 1 + title: 'クーポンを受け取ることができるユーザ数上限' responses: '200': description: OK @@ -9116,7 +10295,7 @@ paths: is_hidden: type: boolean title: 'クーポン一覧に掲載されるかどうか' - description: | + description: |- アプリに表示されるクーポン一覧に掲載されるかどうか。 主に一時的に掲載から外したいときに用いられる。そのためis_publicの設定よりも優先される。 is_public: @@ -9148,6 +10327,10 @@ paths: format: uuid title: "ストレージID" description: "Storage APIでアップロードしたクーポン画像のStorage IDを指定します" + num_recipients_cap: + type: integer + minimum: 1 + title: 'クーポンを受け取ることができるユーザ数上限' responses: '200': description: OK diff --git a/tests/ActivateUserDeviceTest.php b/tests/ActivateUserDeviceTest.php index 32824402..86f4ac3c 100644 --- a/tests/ActivateUserDeviceTest.php +++ b/tests/ActivateUserDeviceTest.php @@ -8,7 +8,7 @@ public function testActivateUserDevice0() { $client = $this->newClient(); $request = new Request\ActivateUserDevice( - "ad99a445-2754-49df-a75f-759d219ba4dd" + "340b6509-0065-48e2-a025-9b7bd3ec4dff" ); try { $response = $client->send($request); diff --git a/tests/BulkCreateTransactionTest.php b/tests/BulkCreateTransactionTest.php index 85298b13..6cfe9b36 100644 --- a/tests/BulkCreateTransactionTest.php +++ b/tests/BulkCreateTransactionTest.php @@ -8,9 +8,9 @@ public function testBulkCreateTransaction0() { $client = $this->newClient(); $request = new Request\BulkCreateTransaction( - "joNHBAUn0qZzCUWIZlu3", - "CPUHg3H", - "pQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMb" + "yiodipyOhBLvJd18F7msVCl", + "IZ6Bq4ZCm1", + "53pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtF" ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testBulkCreateTransaction1() { $client = $this->newClient(); $request = new Request\BulkCreateTransaction( - "joNHBAUn0qZzCUWIZlu3", - "CPUHg3H", - "pQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMb", + "yiodipyOhBLvJd18F7msVCl", + "IZ6Bq4ZCm1", + "53pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtF", [ - 'private_money_id' => "8f7ec3a8-ace2-4f1a-bcd6-87a92c10a958" + 'callback_url' => "https://F9xx8GHc.example.com" ] ); try { @@ -45,12 +45,34 @@ public function testBulkCreateTransaction2() { $client = $this->newClient(); $request = new Request\BulkCreateTransaction( - "joNHBAUn0qZzCUWIZlu3", - "CPUHg3H", - "pQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMb", + "yiodipyOhBLvJd18F7msVCl", + "IZ6Bq4ZCm1", + "53pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtF", [ - 'description' => "8HS4JwKvfQBXbwG5FfO", - 'private_money_id' => "dd004762-aeba-46e2-8bd5-589322a803d3" + 'private_money_id' => "43f299ac-8faa-4d02-9a3c-6b585fb4d820", + 'callback_url' => "https://N3Xa70o7.example.com" + ] + ); + 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 testBulkCreateTransaction3() + { + $client = $this->newClient(); + $request = new Request\BulkCreateTransaction( + "yiodipyOhBLvJd18F7msVCl", + "IZ6Bq4ZCm1", + "53pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtF", + [ + 'description' => "nFXURkjCcagg1x0DC", + 'private_money_id' => "6631f3a6-4804-48f9-b43c-640d2ba2c473", + 'callback_url' => "https://hXKR7nTW.example.com" ] ); try { diff --git a/tests/CancelCashtrayTest.php b/tests/CancelCashtrayTest.php index 9e958c56..22b3158c 100644 --- a/tests/CancelCashtrayTest.php +++ b/tests/CancelCashtrayTest.php @@ -8,7 +8,7 @@ public function testCancelCashtray0() { $client = $this->newClient(); $request = new Request\CancelCashtray( - "1cbf2b06-cf32-46e0-a6eb-f3ef0282918b" + "272b3c5a-3ab6-4e06-8bde-448fd2a73794" ); try { $response = $client->send($request); diff --git a/tests/CancelCvsAuthorizationTest.php b/tests/CancelCvsAuthorizationTest.php new file mode 100644 index 00000000..fcba07b6 --- /dev/null +++ b/tests/CancelCvsAuthorizationTest.php @@ -0,0 +1,22 @@ +newClient(); + $request = new Request\CancelCvsAuthorization( + "90441e08-449c-405a-ac23-3ef1709a6e35" + ); + 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/CaptureCreditSessionTest.php b/tests/CaptureCreditSessionTest.php new file mode 100644 index 00000000..454c7f2b --- /dev/null +++ b/tests/CaptureCreditSessionTest.php @@ -0,0 +1,40 @@ +newClient(); + $request = new Request\CaptureCreditSession( + "40765da0-f6f2-41cc-b413-655243e97309" + ); + 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 testCaptureCreditSession1() + { + $client = $this->newClient(); + $request = new Request\CaptureCreditSession( + "40765da0-f6f2-41cc-b413-655243e97309", + [ + 'request_id' => "ff18fd70-52a7-4b0f-9227-95a7c5dcd5cd" + ] + ); + 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/CreateBankTest.php b/tests/CreateBankTest.php index f4db888b..21478a9f 100644 --- a/tests/CreateBankTest.php +++ b/tests/CreateBankTest.php @@ -8,10 +8,10 @@ public function testCreateBank0() { $client = $this->newClient(); $request = new Request\CreateBank( - "df43edfb-403e-487a-9122-b960789a4c24", - "aeb888bd-ec94-4d20-9eb1-c9662f8ed995", - "4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72Q", - "Nr" + "f1b8edca-a0c5-4dbb-8fad-838c7c89c2e0", + "aaa4a468-aa22-4f6e-b257-e1016238a40b", + "kQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60OEH7JgjiA", + "w3cGaLL5KHpinnRK5y0" ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreateBank1() { $client = $this->newClient(); $request = new Request\CreateBank( - "df43edfb-403e-487a-9122-b960789a4c24", - "aeb888bd-ec94-4d20-9eb1-c9662f8ed995", - "4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72Q", - "Nr", + "f1b8edca-a0c5-4dbb-8fad-838c7c89c2e0", + "aaa4a468-aa22-4f6e-b257-e1016238a40b", + "kQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60OEH7JgjiA", + "w3cGaLL5KHpinnRK5y0", [ - 'birthdate' => "pzY" + 'birthdate' => "zJ9Hvf2c" ] ); try { @@ -47,13 +47,13 @@ public function testCreateBank2() { $client = $this->newClient(); $request = new Request\CreateBank( - "df43edfb-403e-487a-9122-b960789a4c24", - "aeb888bd-ec94-4d20-9eb1-c9662f8ed995", - "4bmpdjKCTfj1GK9RSuRp80JIGIfZb0zQJuIdXR7obZEoGLvyrYRSePLUjWmS1Vfe4rF1Hr4pu5zkebHCqAbvDaj08T6AqfU9VC96cIIeErItINWil5tFd5fwAxEmAXCuaDk4OeOYMd636fXlQmJ9z2bnV3FEVOMMOncgSgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72Q", - "Nr", + "f1b8edca-a0c5-4dbb-8fad-838c7c89c2e0", + "aaa4a468-aa22-4f6e-b257-e1016238a40b", + "kQVh8G8vXFKeuF0FhTncNlMmgEuaHAHntz60OEH7JgjiA", + "w3cGaLL5KHpinnRK5y0", [ - 'email' => "fcTDxwidoK@xhgH.com", - 'birthdate' => "IlA44" + 'email' => "VYRMoN8ciC@bZWn.com", + 'birthdate' => "zcDnK" ] ); try { diff --git a/tests/CreateBankTopupTransactionTest.php b/tests/CreateBankTopupTransactionTest.php index b29927c6..2514387e 100644 --- a/tests/CreateBankTopupTransactionTest.php +++ b/tests/CreateBankTopupTransactionTest.php @@ -8,11 +8,11 @@ public function testCreateBankTopupTransaction0() { $client = $this->newClient(); $request = new Request\CreateBankTopupTransaction( - "7d8a3c84-5db0-49a6-8403-b936da907638", - "746267c0-b9e9-4de5-b62b-c31950e78f6c", - 5622, - "f1753180-4c03-48c0-adac-cdf4e9ea0d86", - "fb14762d-898a-4d5d-8d21-c65c7ff66cc2" + "da7497b4-4d60-4c4c-859a-605d114fcc41", + "ee1e76e0-430c-461d-aaa1-c23477cbbc67", + 5262, + "06d24278-51f2-48db-85ae-cafc348dccd7", + "82819cc7-6023-422c-8b51-3aed80efb049" ); try { $response = $client->send($request); @@ -27,13 +27,13 @@ public function testCreateBankTopupTransaction1() { $client = $this->newClient(); $request = new Request\CreateBankTopupTransaction( - "7d8a3c84-5db0-49a6-8403-b936da907638", - "746267c0-b9e9-4de5-b62b-c31950e78f6c", - 5622, - "f1753180-4c03-48c0-adac-cdf4e9ea0d86", - "fb14762d-898a-4d5d-8d21-c65c7ff66cc2", + "da7497b4-4d60-4c4c-859a-605d114fcc41", + "ee1e76e0-430c-461d-aaa1-c23477cbbc67", + 5262, + "06d24278-51f2-48db-85ae-cafc348dccd7", + "82819cc7-6023-422c-8b51-3aed80efb049", [ - 'receiver_user_id' => "04fd7392-f097-4997-9317-b2822e337102" + 'receiver_user_id' => "81ae9d1f-fcf1-4f8c-8ef7-2f2e0fcf2982" ] ); try { diff --git a/tests/CreateBillTest.php b/tests/CreateBillTest.php index 3dff979a..8b6d135e 100644 --- a/tests/CreateBillTest.php +++ b/tests/CreateBillTest.php @@ -8,8 +8,8 @@ public function testCreateBill0() { $client = $this->newClient(); $request = new Request\CreateBill( - "0be9aed6-e055-444b-80ba-1dc505caf290", - "f8ba3f31-b147-4492-854e-9639a042644a" + "c0fb4d20-913c-4b92-8d7c-f8465bf9a3f5", + "b4d1531a-08f2-4d8c-adb2-ad108e5eae01" ); try { $response = $client->send($request); @@ -24,10 +24,10 @@ public function testCreateBill1() { $client = $this->newClient(); $request = new Request\CreateBill( - "0be9aed6-e055-444b-80ba-1dc505caf290", - "f8ba3f31-b147-4492-854e-9639a042644a", + "c0fb4d20-913c-4b92-8d7c-f8465bf9a3f5", + "b4d1531a-08f2-4d8c-adb2-ad108e5eae01", [ - 'description' => "qLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHXCKDfS0S9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEmOeQFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafz" + 'description' => "HyY5rxBRsFTyEvnewbYd4rNZJsCq7m7arw2NKYH12xHXaAOFqIwxrvxkxwVYBD" ] ); try { @@ -43,11 +43,11 @@ public function testCreateBill2() { $client = $this->newClient(); $request = new Request\CreateBill( - "0be9aed6-e055-444b-80ba-1dc505caf290", - "f8ba3f31-b147-4492-854e-9639a042644a", + "c0fb4d20-913c-4b92-8d7c-f8465bf9a3f5", + "b4d1531a-08f2-4d8c-adb2-ad108e5eae01", [ - 'amount' => 8441.0, - 'description' => "U4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHoLHZ5Hyso5u9Osjia9h3ovwp1QqOYhJfTJv94bnDy" + 'amount' => 8169.0, + 'description' => "CyVTR3czNdwQ9LziqjK5MdQ1lZMyARXVB9A32ESqVUKE1GN9JqLEvyRdA5j20ws4Z1pnjZ8xWKeN3WKGyHX" ] ); try { diff --git a/tests/CreateCampaignTest.php b/tests/CreateCampaignTest.php index 4ce45017..f1dcb059 100644 --- a/tests/CreateCampaignTest.php +++ b/tests/CreateCampaignTest.php @@ -8,14 +8,14 @@ public function testCreateCampaign0() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"] + 'applicable_shop_ids' => ["ef1aa667-e69f-43da-ad9c-bb33e097e0bd"] ] ); try { @@ -31,15 +31,15 @@ public function testCreateCampaign1() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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" + 'applicable_shop_ids' => ["3dc59b1c-85a8-4ed3-81f3-4bea1e5cc9f0"], + 'bear_point_shop_id' => "8017b203-fc41-4416-b550-1c8a166d7ead" ] ); try { @@ -55,16 +55,16 @@ public function testCreateCampaign2() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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" + 'applicable_shop_ids' => ["3724ff20-1477-4fcf-92cd-3d4523e6c378", "a5811193-26ba-4643-b1f7-a2b6fea4f569"], + 'description' => "9ZUstqj7jJ1Xazd0M0QE8si7WktomTSIs3sss0bSZ1cR5rMDg0iBD2et6R89vRehYIZbMh6MfShA8D4Ev7O7TGT70LQ2epxhXvfJrqwCwzvGv", + 'bear_point_shop_id' => "b660b31b-7203-4f35-b429-7ffcc4095b83" ] ); try { @@ -80,17 +80,17 @@ public function testCreateCampaign3() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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" + 'applicable_shop_ids' => ["62e8fe42-f939-4eb3-bd5f-7fb4844dbeb1", "2334d3c1-38e4-47ab-9b04-955dbb85a1d1", "6ae6e1a1-cb1c-4ee0-a6ba-2f8a59d05e53", "b4ba968e-9076-4a72-b2bd-6e00177555ea", "a46f64c4-3d32-4e00-9ec3-59d056f6235e", "ba69f142-6510-4b0c-85a2-bee751e0c311", "8b4ead2b-aa36-47ab-b1c4-00d898aeaa68", "d85721d3-1248-4bb8-9c68-9c61f7c3fa5b", "393f2066-77ca-4e09-84f9-2405e3d9f93b"], + 'status' => "enabled", + 'description' => "sDTnMPtA7T3E2nC8JZcqIcqZB2nkhw5Vunnh29qWQZz14x", + 'bear_point_shop_id' => "d90ce142-2338-41b9-b1f2-01d0de7e7de0" ] ); try { @@ -106,18 +106,18 @@ public function testCreateCampaign4() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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' => "CN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXd", - 'bear_point_shop_id' => "b029329b-46bc-446e-9f1a-e8c54d0890ce" + 'applicable_shop_ids' => ["ca36e237-c346-463e-a364-7b872374db21", "1357dd08-2644-4a80-a512-1e10d9b922de", "d3bcc15b-5ec2-4eb6-b176-71630c4b01ff", "d923a73a-a024-40a2-8fda-5e60d2ac7e9d", "56f684b1-3dbc-430a-b5bf-8dcea0103f20", "a4f4f41c-be88-4502-8294-fca11d09cd41", "0a9c1064-7372-4000-9bba-1a7ca937775f"], + 'point_expires_at' => "2021-03-05T02:11:02.000000Z", + 'status' => "enabled", + 'description' => "lfzbfqKlnsG4", + 'bear_point_shop_id' => "d0b6e2bf-8c2e-4e30-83ac-ecf70f0145da" ] ); try { @@ -133,19 +133,19 @@ public function testCreateCampaign5() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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" + 'applicable_shop_ids' => ["700c8230-0552-4e02-80db-3e5425332304", "174be639-2230-402d-add4-bd769749be80", "6100fe7c-5f39-418c-a911-3c1fe703f07c"], + 'point_expires_in_days' => 3886, + 'point_expires_at' => "2023-04-02T00:07:27.000000Z", + 'status' => "disabled", + 'description' => "NiY62Bc0n5yxxXvKDa0c2v5NvERR1ovUoSMxuwois43hKOtAoX7opuae7lO58Ae6hTnrFSjbB1hiRjTNSU46DKPvyktKcWCyKm4tG2", + 'bear_point_shop_id' => "7c04e81b-4fc6-4c7a-a503-cdae5b266adf" ] ); try { @@ -161,20 +161,20 @@ public function testCreateCampaign6() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'applicable_shop_ids' => ["55097a89-80af-4a42-a440-eeff2e8a5b82", "7829c4d1-020f-439a-bcfa-9471262e0558"], + 'applicable_shop_ids' => ["ec36fb58-5978-45d0-8e36-aa522529f2e9", "c81e0ecd-1256-4668-86da-69ed998e8a1f", "dd0d9482-e990-4d6d-87ea-505ed69f3130", "85f9d611-d354-4d8d-8d91-7a0eb354c5a3", "4566b3ea-75d0-4e06-9726-7a920f2bb7ac", "3b07f1a8-c546-4fcc-a708-df18fe9a95cd", "02720b2b-3b1e-42b0-9c8f-8abee84c60c4", "e9a65a4c-a67c-4a88-a4f7-82c01657df15"], 'is_exclusive' => TRUE, - '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" + 'point_expires_in_days' => 5539, + 'point_expires_at' => "2020-12-10T11:53:21.000000Z", + 'status' => "enabled", + 'description' => "nfPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZ", + 'bear_point_shop_id' => "96ca31bf-f24b-4d6c-a270-5212a35f97c8" ] ); try { @@ -190,21 +190,21 @@ public function testCreateCampaign7() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"], + 'applicable_shop_ids' => ["b36198d1-a9c0-4dd4-b4fe-9b13112ae8ed", "804b5c8f-2fda-4151-bb5e-5b9ef56ffba7", "9bbc9428-d89b-4144-bf25-d0c274255d36"], 'subject' => "all", - 'is_exclusive' => TRUE, - '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" + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 666, + 'point_expires_at' => "2022-04-09T06:27:40.000000Z", + 'status' => "enabled", + 'description' => "kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAx", + 'bear_point_shop_id' => "b1f5d403-86af-45d0-bbf8-c982c585ed4c" ] ); try { @@ -220,14 +220,14 @@ public function testCreateCampaign8() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"], + 'applicable_shop_ids' => ["77b05288-f6bf-4592-a49b-90233bd1b791", "289903e7-7950-4a24-9e46-b00d0071c437", "d994eda7-a7ff-43d0-882d-1e399a84c1db", "b87cd8bc-126a-450f-b3fb-ae501b26b3bd", "09c2f4ff-72ef-432b-a9b3-b7f1872436d2", "19ab18e2-c75d-4bd8-8312-5382531d82b0", "0399760e-177b-4721-abb6-9da85b2a76e8"], '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] @@ -236,14 +236,15 @@ public function testCreateCampaign8() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 7115, - 'point_expires_at' => "2022-05-08T02:45:03.000000Z", + 'point_expires_in_days' => 9004, + 'point_expires_at' => "2025-09-17T20:53:09.000000Z", 'status' => "enabled", - 'description' => "tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3", - 'bear_point_shop_id' => "3ac17578-6ad0-4c51-baa1-c2502b58ffa5" + 'description' => "N6r", + 'bear_point_shop_id' => "59785c20-161f-431c-9314-5e7172e10607" ] ); try { @@ -259,35 +260,35 @@ public function testCreateCampaign9() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'applicable_shop_ids' => ["6056ebbb-a787-4abe-97bf-ad5aabca754d", "7c22c7ba-c0e1-43b3-a354-fced31ede7bb", "90c893aa-a810-41d4-bff3-603dafb2eb6c"], + 'applicable_shop_ids' => ["d8de25db-d611-41e8-98e3-d7bcb022ba01"], '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] ], - 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 6, - 'point_expires_at' => "2022-03-18T09:03:54.000000Z", + 'subject' => "all", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3555, + 'point_expires_at' => "2020-03-26T18:50:59.000000Z", 'status' => "disabled", - 'description' => "00PkzT3rjRscSaTDEUxwAJXNLOLDUjAEUO9KUSGzbSRmda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoX", - 'bear_point_shop_id' => "0f58ed12-6757-4a8e-84a2-5ab381847212" + 'description' => "pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EEO5Bp0TaBrm", + 'bear_point_shop_id' => "e2a9346e-e2bd-4d64-a982-e4c393ac070d" ] ); try { @@ -303,23 +304,26 @@ public function testCreateCampaign10() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'applicable_shop_ids' => ["ca3f93a4-28a8-41d2-bc2c-c9f19bd0ed6c", "ef0af12b-4f17-4bd4-8898-3e2ce859c485", "d2de2059-5ffb-4cf7-8dde-700741016714", "6442c90f-854f-40bf-a580-5e1715c1dd73"], + 'applicable_shop_ids' => ["27348258-af58-4500-b71a-aa6af30ba5c6", "b37b48e1-c926-4cd2-9bc1-580a3b683987", "5c625afb-e6bd-4865-9e54-62ae608aa8ae", "bf21c3f8-98a4-48a6-9f3d-5c9381d309e6", "c57304e5-f630-4359-9c9e-7010fc21e989", "15885351-8993-4a43-9ac8-3b7aedbbc1fc", "9d229aed-732e-4edb-b816-272832a00a7d", "9d661f9b-cd85-444f-877b-dd5d963d2747", "7fdbda95-d638-41fa-9b02-c9e39d8c7d9a"], '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] ], '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] @@ -328,14 +332,16 @@ public function testCreateCampaign10() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 2386, - 'point_expires_at' => "2021-06-24T11:48:48.000000Z", + 'subject' => "all", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 5704, + 'point_expires_at' => "2024-10-23T21:08:51.000000Z", 'status' => "enabled", - 'description' => "umGQVfUsw4hfYXr8Tws7k4", - 'bear_point_shop_id' => "08c1287b-3fb8-4192-b08c-e18740a510ff" + 'description' => "ZjjM6j3edDcpZu9iiEwcokneeQ36NR2IjhyB4vKQ7cGlo7SrCjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijW", + 'bear_point_shop_id' => "0c76ed08-29d2-4179-a9f8-8e184c40385b" ] ); try { @@ -351,17 +357,21 @@ public function testCreateCampaign11() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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], + 'applicable_shop_ids' => ["88a56f88-3d65-4a6b-a321-65d6a027c686", "37d0881e-f7b8-4963-8749-81ddadf594c4", "e2cb1bdb-265b-452f-9430-c9a029af4c5e", "752f129a-fa68-47ee-ad89-213b79b635b8", "bfa49ce8-6b24-44b8-bb1e-b2e59b7866f6", "415f1bdb-0557-4c2a-b626-a6047e03a7b8"], + 'applicable_days_of_week' => [0, 2, 3, 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_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] @@ -372,13 +382,13 @@ public function testCreateCampaign11() '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' => FALSE, - 'point_expires_in_days' => 4601, - 'point_expires_at' => "2025-08-05T06:27:11.000000Z", + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 6350, + 'point_expires_at' => "2024-04-14T09:52:19.000000Z", 'status' => "disabled", - 'description' => "U3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHLOb6c1NzcpMx2l8O1vhN74ziDPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3P", - 'bear_point_shop_id' => "160b4878-9b92-4a6f-abfa-2e600c4d4a76" + 'description' => "o6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U0K44BovHKqYzk7GBG1DZKj2tBRFerhSuL22gGga7pF0", + 'bear_point_shop_id' => "8eb682ee-cfed-434c-8d1a-a0e673c81adc" ] ); try { @@ -394,25 +404,24 @@ public function testCreateCampaign12() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'applicable_shop_ids' => ["2dbdb904-d2ee-4d67-83d7-cc70c752ddc1"], + 'applicable_shop_ids' => ["433fd12b-7b49-43af-9c59-42d4ec62a710", "a0a706fb-25d1-4764-be1e-50bab17f1c9b", "9611cef1-3192-4c83-bc1d-f0c83706b100", "31fe607f-9324-434a-9a25-6ab807cf05d7", "76ab9909-596e-46c0-8418-5d48161c9a8f", "e34e53c5-f2bc-4bd6-bea6-c066e68deb01", "1dadc827-55dc-4870-8928-c8bef1602442", "e35fed96-f61d-4c74-85a1-9bcf26d63e4d"], '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' => [1, 0, 2, 2, 5], + 'applicable_days_of_week' => [0, 3, 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] @@ -420,20 +429,18 @@ public function testCreateCampaign12() , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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", + 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 6774, - 'point_expires_at' => "2022-01-14T12:55:57.000000Z", + 'point_expires_in_days' => 3883, + 'point_expires_at' => "2024-09-18T19:30:17.000000Z", 'status' => "disabled", - 'description' => "Nu3aeeMh7MwqqZDhOobPpK6TParuulg11gUrgWq51AuUounyHv57rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUWFWHy2b5Vs5gPuvHuA5HWIqhNUoMi9wNIaJyI2pADs2B4yB1GZTk4B1PKHR", - 'bear_point_shop_id' => "8e4c4b91-425f-42a2-b213-5bc5a689a51f" + 'description' => "gmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgR", + 'bear_point_shop_id' => "5eb1c595-2b96-46fc-9491-4541bd69dc67" ] ); try { @@ -449,15 +456,15 @@ public function testCreateCampaign13() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'applicable_shop_ids' => ["4826c8bf-8719-46d7-a88c-a350b7a39824"], - 'minimum_number_of_products' => 7764, + 'applicable_shop_ids' => ["9c6eb4de-e7f8-4e90-80bf-a25a36300147", "639e3e09-1efe-4efb-82a6-e4c7ea49eb43", "6df8ee01-d393-4623-8671-7861f59a9942", "a25df4dc-6bf7-4aca-b9e9-6158ebec55ea", "c7307dd8-6abc-4c53-85e6-016284b2676b", "207b93dd-52e4-461f-9010-cb88302b2d92"], + 'minimum_number_of_products' => 749, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -466,21 +473,14 @@ public function testCreateCampaign13() , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [0, 2, 6, 3, 3, 3, 4], + 'applicable_days_of_week' => [1, 6, 3, 5, 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_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] @@ -489,14 +489,15 @@ public function testCreateCampaign13() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 5912, - 'point_expires_at' => "2022-10-10T00:56:20.000000Z", - 'status' => "enabled", - 'description' => "VHpUajLmD9cCimPwC97LHWaSOnICBJimGKiopraV9F", - 'bear_point_shop_id' => "0092027d-de89-4375-b437-5fbe008317be" + 'point_expires_in_days' => 8158, + 'point_expires_at' => "2023-02-21T00:34:24.000000Z", + 'status' => "disabled", + 'description' => "UOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1PUQiuVzdT2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6", + 'bear_point_shop_id' => "e24ba2cc-44ef-431a-9107-5eb51cf3d702" ] ); try { @@ -512,27 +513,35 @@ public function testCreateCampaign14() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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_shop_ids' => ["a93a3179-012f-4b53-832a-f7b12d940d94", "30d98b10-d7f6-4237-8804-414c71377bb6", "3ef65e3d-e46c-4a43-8d34-5ef996b2c940", "1a5a5186-589a-4812-b271-00bbeb417ab4"], + 'minimum_number_of_amount' => 2506, + 'minimum_number_of_products' => 2612, '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' => [3, 6, 0, 2, 2, 3, 1], + 'applicable_days_of_week' => [3, 6, 6, 6, 1, 6, 1, 4, 2, 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_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] @@ -543,7 +552,6 @@ 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] @@ -551,13 +559,13 @@ public function testCreateCampaign14() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 5164, - 'point_expires_at' => "2023-11-08T03:08:49.000000Z", + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 6168, + 'point_expires_at' => "2023-12-11T10:19:48.000000Z", 'status' => "disabled", - 'description' => "5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbx", - 'bear_point_shop_id' => "d1a03e2d-e5e2-42b3-b5c6-447ae8477085" + 'description' => "yNq2PW9ePZH1V16DlcE", + 'bear_point_shop_id' => "18b4bf35-58db-4f87-ad9b-8d7b5d9ac772" ] ); try { @@ -573,26 +581,32 @@ public function testCreateCampaign15() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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_shop_ids' => ["506ee6b4-a098-4114-89ad-f77bdfe59db9", "fead532d-0809-4dfe-b15d-e3c3e175cad0", "eacb74dd-15f1-42bf-8631-449a72ac22eb", "0022356c-abfe-4125-8e7d-cb29e970cad0", "4e347a1a-180f-4d86-99c9-bb8503a74be9", "2d72f7b4-5d7e-4366-9c67-a25a321df47a", "bc468cde-3c2e-4a70-bb0d-f32ee1140cc6", "feb5fd9e-b5e6-4587-8239-db99b2490f76", "00a11f3b-745d-4c84-a0c3-5852ff3f331a", "164f3696-242c-4d8d-94c4-9fa50832c755"], + 'minimum_number_for_combination_purchase' => 4511, + 'minimum_number_of_amount' => 29, + 'minimum_number_of_products' => 6389, '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, 2, 1, 3], + 'applicable_days_of_week' => [5, 3, 6, 0, 5, 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_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] @@ -606,14 +620,20 @@ public function testCreateCampaign15() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 3776, - 'point_expires_at' => "2020-06-16T06:30:24.000000Z", - 'status' => "disabled", - 'description' => "6GsJ8XiLApVwNY6zjKIEdqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78", - 'bear_point_shop_id' => "635dd8eb-45e0-4f23-b17a-b8ca435f49dc" + 'subject' => "money", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 2764, + 'point_expires_at' => "2025-06-12T12:02:35.000000Z", + 'status' => "enabled", + 'description' => "iBoGU1OxUmIl7jlWxrfEKMQ8FCs062PLb59yfzniw8Z7TrjWh0BQdrr7bOC0AUfJnZnSogxeCWxbc4wl0P2Dqh3DSK23Mk8m6Cln0nexx5CEw583J2WEBiiOFuwneTfWH1pqqlIhFKkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQ", + 'bear_point_shop_id' => "b560cc3b-57dc-4aac-9e5a-591656d37e94" ] ); try { @@ -629,35 +649,31 @@ public function testCreateCampaign16() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'applicable_shop_ids' => ["bcb2a5d5-6df3-4a7b-a69a-345f58bf30fd"], + 'applicable_shop_ids' => ["240f14af-8b16-4fa1-84dc-3dd686cf5383", "f93afa01-4d6f-418c-b2cd-67b8c3d20fb0", "deee7a98-bf1a-4512-aa82-e88a3e2c8c41", "55a7ae6e-7d9b-47e2-8c2f-0a98c2b4ef80", "6b60b63c-7823-4b25-8eb9-dbf0b84939c6", "c58626b2-a8fe-4041-bae9-926a94c6e959", "d63389e6-c2a9-4438-8af9-d0965aa52a0b", "eefad57b-b9e4-4c54-b7f3-2a02601c18b4"], 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 5516, - 'minimum_number_of_amount' => 9759, - 'minimum_number_of_products' => 8087, + 'minimum_number_for_combination_purchase' => 7634, + 'minimum_number_of_amount' => 9003, + 'minimum_number_of_products' => 2114, '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' => [2, 1, 4], + 'applicable_days_of_week' => [0, 2, 0, 0, 2, 6, 1, 2, 4, 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] @@ -665,16 +681,14 @@ public function testCreateCampaign16() , ["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' => "money", - 'is_exclusive' => TRUE, - '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" + 'subject' => "all", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 4319, + 'point_expires_at' => "2021-11-25T02:51:40.000000Z", + 'status' => "enabled", + 'description' => "L6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJI2fkoYuaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW", + 'bear_point_shop_id' => "65883cad-7fb3-460b-8aca-12d11cc39515" ] ); try { @@ -690,19 +704,19 @@ public function testCreateCampaign17() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'applicable_shop_ids' => ["bf27061c-56fc-49a9-a1a5-5a9c1f0e5d39"], - 'max_point_amount' => 1206, + 'applicable_shop_ids' => ["55879c08-9eec-4ce3-a9b0-fc6dcda37cae", "2b6f1f97-bc78-4a5b-9be6-e591d087460c"], + 'max_point_amount' => 8851, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 2237, - 'minimum_number_of_amount' => 9538, - 'minimum_number_of_products' => 3554, + 'minimum_number_for_combination_purchase' => 2188, + 'minimum_number_of_amount' => 4508, + 'minimum_number_of_products' => 3625, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -712,7 +726,7 @@ public function testCreateCampaign17() , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [2, 6, 2, 5, 0], + 'applicable_days_of_week' => [5, 3, 5, 3, 1, 6, 4, 3], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -720,8 +734,6 @@ 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_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] @@ -730,21 +742,23 @@ public function testCreateCampaign17() , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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' => 2656, - 'point_expires_at' => "2025-02-16T01:49:08.000000Z", + 'point_expires_in_days' => 1511, + 'point_expires_at' => "2022-10-09T21:42:12.000000Z", 'status' => "enabled", - 'description' => "0OJOUKjKLeGCgLyc3XcFOYpAAHYYK9z73uxDP2ictixYSW0AnlJyQ4ogjQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5vEcEoMjbT4VP8lZF0AhpuShoXCly79fXYfw5LEwfbe5dxC9nFb6EnR37XI7b090WiBtR", - 'bear_point_shop_id' => "7d8d0b5f-c27b-492d-aa68-c830506c48bc" + 'description' => "VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvc", + 'bear_point_shop_id' => "90b4fc12-fe73-45e7-a670-c332e2ada6b8" ] ); try { @@ -760,60 +774,48 @@ public function testCreateCampaign18() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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_shop_ids' => ["be42004e-b150-45fb-9771-4deff073f936", "62280b58-133a-4c71-ac97-23023d73b071", "810b7e23-b2f2-4309-92b9-45ecd92aeae7"], + 'max_total_point_amount' => 665, + 'max_point_amount' => 1777, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 7150, + 'minimum_number_of_amount' => 8314, + 'minimum_number_of_products' => 471, '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' => [6, 1, 3], + 'applicable_days_of_week' => [6, 4, 4, 4, 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_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] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 5584, - 'point_expires_at' => "2022-11-27T14:56:55.000000Z", + 'subject' => "all", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 5578, + 'point_expires_at' => "2020-03-11T19:21:14.000000Z", 'status' => "disabled", - 'description' => "yRwbRgUy7vFea5WeBAkgIciVnQYB9t75iPCouDaOPQZR4UpdKmspN8b2gkMcSPrmt0hjIJ", - 'bear_point_shop_id' => "7b804381-8d75-4f20-b49a-b801d39ba53b" + 'description' => "8", + 'bear_point_shop_id' => "62e7c9d2-b978-4b70-8533-4974aa4932e5" ] ); try { @@ -829,29 +831,31 @@ public function testCreateCampaign19() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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, + 'applicable_shop_ids' => ["e6e0fb50-6369-4961-999e-73459e3bdf8e", "2414fe1a-f4e5-484e-b8ee-20e3898ceaef", "1bd4fdcc-2ab5-4362-9cef-09d35f2d9a2b", "2a9ec45c-f142-4702-872c-3348e705592d", "5237d13c-b793-4dbc-a526-21f20b997745", "e926cede-9074-4e3d-be47-88e831f7ba96"], + 'dest_private_money_id' => "1ec55f27-dcc6-4b67-bb85-ff4a3a5d3c22", + 'max_total_point_amount' => 9701, + 'max_point_amount' => 2553, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 5368, - 'minimum_number_of_amount' => 6210, - 'minimum_number_of_products' => 6117, + 'minimum_number_for_combination_purchase' => 9182, + 'minimum_number_of_amount' => 621, + 'minimum_number_of_products' => 6636, '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' => [4, 3, 6, 5], + 'applicable_days_of_week' => [6, 4, 6, 5, 1, 4, 1, 0], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -873,14 +877,22 @@ public function testCreateCampaign19() ], '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' => TRUE, - 'point_expires_in_days' => 9413, - 'point_expires_at' => "2020-11-02T22:18:52.000000Z", - 'status' => "disabled", - 'description' => "uaSpYl1TGEiugglxJJBGt0dcPbtQc4uSkk26uSRwX6Rx7fOEoFSQiDYpTTgrywklVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za", - 'bear_point_shop_id' => "0a19e7fd-1e31-4118-ae37-9dbdf9e353c9" + 'point_expires_in_days' => 3463, + 'point_expires_at' => "2026-02-23T17:50:25.000000Z", + 'status' => "enabled", + 'description' => "jg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89mD0TpxWczQUyWaVgBaLWMWptjgf0Fi", + 'bear_point_shop_id' => "d9aea15a-31da-4b03-8493-0c601fa20991" ] ); try { @@ -896,23 +908,23 @@ public function testCreateCampaign20() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'applicable_shop_ids' => ["5735c800-05bc-4a21-9729-880145ff8b1c", "f7fdf44d-2880-476c-9d72-e9bd3f7406df", "093ed6d6-5e31-4e13-a579-601eaa4ee730", "268334a5-f346-4223-9331-277fc0332c01"], + 'applicable_shop_ids' => ["e4c1c90a-35ae-43ba-96c5-c04f039e65b2", "c61e58fc-50fb-4050-9aad-03dc8c9a00c1", "a48fa2a0-6bb9-48e2-a989-baefbd45c484", "6d85d2d1-1f2b-4e5f-8d88-035007759247", "2ccd9893-1a31-4f2b-94c5-83b8307e8bb1", "28cceaae-606a-4e96-ac8b-cac3e75f01c1"], 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - '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, + 'dest_private_money_id' => "b5823fe0-9fd2-49fd-a960-a95c4b89f6d8", + 'max_total_point_amount' => 5821, + 'max_point_amount' => 4835, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 5925, + 'minimum_number_of_amount' => 4733, + 'minimum_number_of_products' => 6840, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -922,22 +934,18 @@ public function testCreateCampaign20() , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [6, 0], + 'applicable_days_of_week' => [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_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] @@ -945,14 +953,15 @@ public function testCreateCampaign20() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 2476, - 'point_expires_at' => "2023-09-11T10:51:33.000000Z", + 'point_expires_in_days' => 8058, + 'point_expires_at' => "2024-09-07T16:02:20.000000Z", 'status' => "disabled", - 'description' => "4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCNEj4KngWmPwy7k0E27omWruIWs4TAGfq9ue8TvZwYbMntyIPzqAGarjc22UJafoQs8oM8ozoz", - 'bear_point_shop_id' => "4abeceac-1148-480b-932c-bd76a0051f89" + 'description' => "xBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNoucyBbEpxFX7PDggr", + 'bear_point_shop_id' => "1218eafa-876e-43ce-978a-8cc2e76f0856" ] ); try { @@ -968,35 +977,34 @@ public function testCreateCampaign21() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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_shop_ids' => ["7379a4b0-2f5d-4205-b00f-26b9cc760a8d", "e1638b08-21c2-4dc2-8f54-752c66834a54", "0fa189f0-92ab-4d29-b69c-73c1bba5dfc7", "37e084f0-a94d-4e9a-8e82-55cd35039622", "2b68eaa3-3ae0-428f-9d3e-09cfdad7109e", "950b447e-4e3d-4e81-b3e2-17745dfcd0c0", "9da3ff48-daad-4f59-a39c-a61729d6e947", "19d439e9-f5aa-4dc2-a814-9fb42ad1fb98", "7930df2d-070a-4a1b-91e1-44ec248aa002", "d40a1b75-b1b6-4f03-9c00-85120c5d789e"], 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - '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' => 5391, - 'minimum_number_of_amount' => 9774, - 'minimum_number_of_products' => 3266, + 'dest_private_money_id' => "3c0c4263-0168-4627-ba3b-dca2a369adc4", + 'max_total_point_amount' => 792, + 'max_point_amount' => 7127, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 8481, + 'minimum_number_of_amount' => 6353, + 'minimum_number_of_products' => 5604, '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' => [5, 2, 6, 4, 2, 6, 1], + 'applicable_days_of_week' => [6, 1, 2, 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] @@ -1005,8 +1013,6 @@ public function testCreateCampaign21() , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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] @@ -1014,14 +1020,17 @@ public function testCreateCampaign21() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 3860, - 'point_expires_at' => "2021-05-13T09:47:55.000000Z", - 'status' => "enabled", - 'description' => "jKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcRO2Sa3zE9qA6JlqvTos7SrIAldP", - 'bear_point_shop_id' => "07ac6128-9bad-4835-bd0d-f1af17913a5e" + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 5912, + 'point_expires_at' => "2022-08-15T08:38:37.000000Z", + 'status' => "disabled", + 'description' => "3qZWTYzGouuBX6LUUUBENz9R18rNQjTARxcKWcb1nyLLVIf7PJ4PKI", + 'bear_point_shop_id' => "a1efb859-a897-41d2-816c-a331ffa8685d" ] ); try { @@ -1037,39 +1046,39 @@ public function testCreateCampaign22() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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_shop_ids' => ["b7f4f943-7a75-4ddc-93d1-b17b76ef6b79", "700af5e3-ddd7-4b67-9846-2f6ca99c995b", "ee279551-dcf2-4b94-9ec7-8a2f3e83bc2d", "23746f5b-a15c-4de4-9bd2-6e8f6939c371", "ee21a37f-b22d-4856-a433-42c386afe982", "c7c944fd-9649-4996-acc5-f8b359a968a0"], + 'budget_caps_amount' => 287824169, 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - '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, + 'dest_private_money_id' => "b7593be0-76ab-4be4-a54f-d5ac55a1cbb8", + 'max_total_point_amount' => 2249, + 'max_point_amount' => 3731, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 7550, + 'minimum_number_of_amount' => 8066, + 'minimum_number_of_products' => 6209, '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, 2], + 'applicable_days_of_week' => [3, 0, 1, 1, 3, 2, 1, 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_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] @@ -1077,6 +1086,10 @@ public function testCreateCampaign22() , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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] @@ -1084,11 +1097,11 @@ public function testCreateCampaign22() ], 'subject' => "money", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 5552, - 'point_expires_at' => "2020-10-02T00:14:24.000000Z", + 'point_expires_in_days' => 5608, + 'point_expires_at' => "2021-03-28T05:20:29.000000Z", 'status' => "enabled", - 'description' => "gMO9grD73ccOw2h3Fa222nHBaN6510b", - 'bear_point_shop_id' => "048dd806-ee8c-4a9f-815d-dcc8f6655be4" + 'description' => "K5b9hyZhcZh8MuSlVRKgCSpIL13YYuGN17rfT9nOtCiuSxp7i1rcacR4EWmJRYE0vg", + 'bear_point_shop_id' => "f4066ccc-1a9d-4791-88be-b03d73692afc" ] ); try { @@ -1104,14 +1117,14 @@ public function testCreateCampaign23() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"] + 'blacklisted_shop_ids' => ["4ec18423-7318-4604-a66e-47b27e45a51d", "e3ad3080-0913-4c4f-a42d-3bfd6fd08b0f", "e85bb160-d910-461c-ace0-f7ad35dc5bf8", "b8acf4e7-55f8-4999-b703-113d670c33c6", "739a4832-6bb9-420a-a5d6-a3695fe54c26", "1a752f00-5300-43dd-b50e-76dc9092a377", "1774efcb-dd12-4aa6-b47e-026abf113df3", "dae269a3-7540-49a9-926a-867af3dc3ba2"] ] ); try { @@ -1127,15 +1140,15 @@ public function testCreateCampaign24() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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" + 'blacklisted_shop_ids' => ["bbc2331e-b729-451f-b6aa-c8e26cba52bf", "68c089bf-3938-4a58-a88e-1655ad1b9101", "a1fbd9ee-2d09-43e5-bc89-72c007e1208a", "f06c77c7-5c4e-463f-8e30-7a16e0fd4967", "5425531c-f6e3-4062-9e05-8660382787ea"], + 'bear_point_shop_id' => "746865c8-679f-4a83-bcc5-e5b01a56fc79" ] ); try { @@ -1151,16 +1164,16 @@ public function testCreateCampaign25() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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" + 'blacklisted_shop_ids' => ["ebddeb6b-de4f-4bd7-86b2-491b06ece43a", "400a139b-7579-47a5-bebd-b7d608e2c9ec", "a8c9db92-41c8-4dee-afe4-7808f46ffb4d", "e028601b-f382-4d1e-bc27-620b5e8f9ebf", "f23ca28b-ca20-4d1b-8164-fc7daca7f457", "e3db3f0a-ffd9-4edf-803c-f45ee98b68b9", "825ae512-22c8-4990-aa07-304e0b5e4108"], + 'description' => "OFWD0f28rlwLb9YSbpNpmMET9MPbipC8utokXPq016coqfiAUWXxFRzN5EfouqVIJLmWFeGJqYbyf9xqeV9Lg6T4ooRxK5KRr3h8egFMYUCN7QJ0QWlqwtDL88aLfgCd3mseLQBXIUiYpTvNgfaK3PoowpKAx3kfA31wXd04SY1O8gGOF1kRrye61uzmBIXdnE", + 'bear_point_shop_id' => "4d0890ce-6446-4695-b329-bf8848a5cf33" ] ); try { @@ -1176,17 +1189,17 @@ public function testCreateCampaign26() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"], + 'blacklisted_shop_ids' => ["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"], 'status' => "disabled", - 'description' => "WLqvzthoXVcLebdhYmokN15vn0WBXfGwW2mMW1", - 'bear_point_shop_id' => "23d2aca0-c866-40a8-b9e2-d0388befa367" + 'description' => "t8PxiPIwClGZ1KOGgE2sj7Hu6WK5M7npguch6s2J670P8hn4WhIeMSn521mnmeh5QEBdCZJtrUa6Fgp7ym0", + 'bear_point_shop_id' => "1bcfaea1-e2e8-4184-9925-eef11293af08" ] ); try { @@ -1202,18 +1215,18 @@ public function testCreateCampaign27() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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" + 'blacklisted_shop_ids' => ["3b90c901-332d-4507-95c1-60d70cf03e4d", "2a60ea59-321f-411f-bcdc-1478a89ae957", "2ffdbfbb-b626-4966-bfdc-c92dc333cb03", "e1c183c7-322a-4f8b-ab4e-34c3cf57b028", "52f6c1a7-f4bb-4ba7-8530-a50c166e4677"], + 'point_expires_at' => "2023-07-14T22:58:10.000000Z", + 'status' => "disabled", + 'description' => "V3aBOX1Ig8hROFB3MljHGXrpVSkSdQBQzqXHWCk88yAdkNbUUlXp2sT5T809AbvtJaUy0K5oRI2Afv57nsS8pT7iwNl9CKN5yCsDMuuaWg6vjoZFJU5quwxFBXnJ5Eq6GcNPCEV", + 'bear_point_shop_id' => "cfaee0db-75fb-400f-903e-26a4c985a0f1" ] ); try { @@ -1229,19 +1242,19 @@ public function testCreateCampaign28() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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", + 'blacklisted_shop_ids' => ["ecb94336-bc40-45c7-a4c9-ff50eb9b5625", "d9aec62c-684a-48ed-a338-37e1d6178cdc", "a9f24063-de9d-4c28-99aa-34e2f4da519d", "bc35ca97-5c1d-46fa-b44b-5a3355569cc9", "ed370fc1-cf38-4cca-827d-baac45dfb826"], + 'point_expires_in_days' => 7745, + 'point_expires_at' => "2020-09-09T09:03:21.000000Z", 'status' => "disabled", - 'description' => "7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oepRB7yq0O", - 'bear_point_shop_id' => "dd8e7727-94e1-4d1f-b153-fcbd505cc87a" + 'description' => "LwDYHWq9h3ayYxNgOJ9lz7HMs7r8Mwpfor2g0yfZY1uTlDfXz0uDeov2GaxLjZM7ftEliKPQLWJArPq3tph1c8gKwadNnw5eCqfZdksVLOzbmWJa8YkV10V05hf8WtQGHpv3xPQzPNZMa3cTmTslTDHzq00PkzT3rjRscSaT", + 'bear_point_shop_id' => "063dcaba-9144-4e1c-857f-642112c0d8d5" ] ); try { @@ -1257,20 +1270,20 @@ public function testCreateCampaign29() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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' => 5063, - 'point_expires_at' => "2023-06-03T00:22:24.000000Z", + 'blacklisted_shop_ids' => ["db07faf8-13f7-448e-a0c1-144a243d50d8", "5fca59df-0e4e-469d-8c5e-994f2c13d94c", "922f60a5-5f2b-4044-956a-0cc18bd35327", "054c1ec5-3020-4555-8fb9-a15c9ab35bfc", "68ce2acb-b555-4ba0-93d3-420d068ae647"], + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 1635, + 'point_expires_at' => "2021-10-02T08:45:04.000000Z", 'status' => "disabled", - 'description' => "3GwpJ6pUWjvsxF7sC23pAVbXivHZtrIAyP3B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8h", - 'bear_point_shop_id' => "73508bd6-5dd6-4752-a8a6-a15a932cf485" + 'description' => "mda66Hxc4wf0VsciZqVg9CY4JyxUqm9QYX9eOR0RPX1REGDLSjexe42N6h2JPSKXOz8JwoXWD3OcRqlTHYw", + 'bear_point_shop_id' => "47d02a8d-60de-4007-940f-854fc85f70bf" ] ); try { @@ -1286,21 +1299,21 @@ public function testCreateCampaign30() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"], + 'blacklisted_shop_ids' => ["0576df80-5e17-4d73-b40e-be2c47d29e82", "d79126e6-24de-4587-aa51-9020d2ba2446", "50bf5615-4f0a-4f75-a660-236d349829c7", "c9baddd1-ed56-41af-a6ad-2ba528541b17", "53a96c08-7d97-4455-b3f7-8723b197ec34", "26481e90-ea0b-430d-85e8-81e6638acdd9"], 'subject' => "money", 'is_exclusive' => TRUE, - '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" + 'point_expires_in_days' => 8121, + 'point_expires_at' => "2021-03-28T19:03:53.000000Z", + 'status' => "enabled", + 'description' => "ws7k48pGfLa44NJMCeJ8jlsCf1ZGfe6gS6x1DqMOxCGU3f6AMPJnByO8IAY8ZIAKOHAMaB7ZxbhLpAG3vIRMVqbJVgHdPhvPKwzwzrbVYcpu84LTKQxDTzMnM7RDpI6DZQTPfIajSBmWzFbVfaL5LT2cPjctfArtA5QzauCKeqrCHL", + 'bear_point_shop_id' => "3f4edd4f-6b06-45e2-b681-85af3ffed4a6" ] ); try { @@ -1316,14 +1329,14 @@ public function testCreateCampaign31() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"], + 'blacklisted_shop_ids' => ["bd07d001-39b1-4a0f-8e5c-e71387e7c81f", "b3fed67a-ea63-47f0-92cd-41f8142e043b", "d5599594-1232-426c-a3b8-5d1d118c704f", "e6f6a3b1-0c76-4ae8-8e25-abb739f7db21"], '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] @@ -1333,14 +1346,15 @@ public function testCreateCampaign31() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 9537, - 'point_expires_at' => "2021-03-09T20:49:48.000000Z", - 'status' => "enabled", - 'description' => "8tOl1gapEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6Bwq", - 'bear_point_shop_id' => "cc1e4045-7904-4dbb-94ee-bc617ff74821" + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 1275, + 'point_expires_at' => "2023-07-29T17:34:04.000000Z", + 'status' => "disabled", + 'description' => "DPGC2ST6zTd6xVdSlQkj4Z4gR5YjMfLJAECo2gNDDCrV3PxozvlpngWpA6xbZMfc0uwppINu3aeeMh7MwqqZDhOobPpK6TParuulg11gUr", + 'bear_point_shop_id' => "beadc325-a593-4be7-9771-a7b52a247e31" ] ); try { @@ -1356,35 +1370,39 @@ public function testCreateCampaign32() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'blacklisted_shop_ids' => ["31dc4435-b342-4d67-a705-0e656388c754", "80a13c54-43f3-4bbb-9ed4-716412233358"], + 'blacklisted_shop_ids' => ["c4359b9f-867f-4618-acf5-ecd54ab3d9fd", "46e244c0-ddbb-4cbc-bd3c-949f8e78ff6f"], '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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 1176, - 'point_expires_at' => "2025-02-20T21:24:25.000000Z", + 'point_expires_in_days' => 6775, + 'point_expires_at' => "2020-07-24T17:49:41.000000Z", 'status' => "disabled", - 'description' => "gtXl8b4nZOZsr1VPBj7ivp8ue6C3vcL7BXf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSIq", - 'bear_point_shop_id' => "c7c281c4-b7d2-43d1-a2b8-6c6c505a180c" + 'description' => "rDbvmuL7BqYd28Ylq4PTRllx603bU9utxlgE1LKaCgZVizYnvZve6TUW", + 'bear_point_shop_id' => "8818651c-e2a3-4bc6-9f20-5657eaad3e0f" ] ); try { @@ -1400,14 +1418,14 @@ public function testCreateCampaign33() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'blacklisted_shop_ids' => ["b5f3afbe-fbe6-492c-9fb3-3e6c95a8f538", "d6f4662e-ad48-4951-ab1e-a9516c7b7f75"], + 'blacklisted_shop_ids' => ["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", "9e987df1-a368-49ce-8803-775de371bea5", "79319822-3a55-44af-af4d-1405f6983a08", "a32b4412-c600-4b9a-aee9-39bf2445d1b9", "b1031177-4e07-41ce-893c-6d610f7a155d"], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1415,20 +1433,32 @@ 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_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' => 9205, - 'point_expires_at' => "2020-02-13T15:54:21.000000Z", - 'status' => "enabled", - 'description' => "s2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h", - 'bear_point_shop_id' => "a281b693-fe5e-462c-ab04-f7859ce1b7b1" + 'point_expires_in_days' => 6597, + 'point_expires_at' => "2024-08-27T16:38:42.000000Z", + 'status' => "disabled", + 'description' => "B4yB1GZTk4B1PKHR2EWhPZSvV8nScTvJ4VHpUajLmD9cCimPwC9", + 'bear_point_shop_id' => "81e9a8ab-c0b7-44cc-95c8-f7bcde157a86" ] ); try { @@ -1444,15 +1474,15 @@ public function testCreateCampaign34() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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_shop_ids' => ["63ac092d-0ae1-4e53-9bcf-056ec6baf649", "33a04813-a943-4a25-880a-a2ba0b583f08", "d24dbc22-c4c2-4aca-a96d-b42a6a1b7547", "c349af82-0e02-484b-bb69-048c9892516f", "480758f0-8314-43ac-a0f2-9e3d6d48beae", "b7156c61-2881-41d6-80b9-4cc60092027d", "924ede89-d375-4c34-b7be-17be17e3a7d7", "337f2c14-48e9-407d-86df-2344a47333e7"], + 'applicable_days_of_week' => [4, 4, 6], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1461,20 +1491,33 @@ 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_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] ], - 'subject' => "all", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 6812, - 'point_expires_at' => "2022-01-15T23:02:27.000000Z", + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 2204, + 'point_expires_at' => "2020-01-21T04:30:23.000000Z", 'status' => "disabled", - 'description' => "OMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJlao6arWtW2Kf2i4IAcwQjuFWx2kNI9qHm3gWQVGMb", - 'bear_point_shop_id' => "230c69c5-7d0a-452a-8b75-eda55a53c02f" + 'description' => "17kjNr295nMRl2EDxJjIsLyTAA5MEWhdNFDbX7fss0ltmaJnxslaUL7RrxqbBxY5tCbxb", + 'bear_point_shop_id' => "e84ca2b3-1d35-47c6-ba85-c37c462e61c1" ] ); try { @@ -1490,18 +1533,25 @@ public function testCreateCampaign35() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"], + 'blacklisted_shop_ids' => ["864d006d-3796-433a-abaa-de16ebbbdbe4", "c31328b3-33f0-481c-a492-06f54401b62c", "c3e9b077-3ad5-4a27-827d-af83ba0e9685", "566a5e27-c496-495b-ab72-eff136b7127b", "eb7729ad-81f2-4d76-8a0a-4633e5c19dc7", "bcb6ca96-bed6-4ebf-80f3-657c61bc8936", "a139ea1b-b7c7-452d-bc73-9e1256e6e89f"], '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, 4, 5, 5, 1, 0, 5, 2, 3], + 'applicable_days_of_week' => [1, 4, 4, 6, 2, 1, 0, 6, 6], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1513,17 +1563,32 @@ public function testCreateCampaign35() ], '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] + , ["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' => 4630, - 'point_expires_at' => "2020-09-11T00:50:27.000000Z", - 'status' => "enabled", - 'description' => "pOWKljojyXNatscwZjWuBesyFuc4sWKFJn", - 'bear_point_shop_id' => "664c7d09-bb5f-4acc-8437-322904312ced" + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3307, + 'point_expires_at' => "2025-08-24T07:24:59.000000Z", + 'status' => "disabled", + 'description' => "dqTZCuDots6oOpUnX5paeprWtPSGZrL9UrmNU3vFgZ69vwXIbJ7yB2uIbdTxo63tcXPzmao0EWnRVCjlgZcfxXnQfXvfoocz3td7BZN78kqzJ0Us2fGrJyLKsRHFPpRHSTTSFxnvRwj3Oa3urFP8R4bhOdaBwGLVVHwtN3AFb20DhVqIxWOmhxrSYnMI0dEOIqOFLq", + 'bear_point_shop_id' => "467d9c6e-ee0c-47b2-a05a-f6de0baf9c17" ] ); try { @@ -1539,49 +1604,38 @@ public function testCreateCampaign36() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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, + 'blacklisted_shop_ids' => ["81e6c84c-012f-42eb-97de-97b5bfa13fc7", "014b9ca6-a8a8-4146-b246-7006283254d5", "af5496f5-2c79-477b-84d6-3d078a2d6a11", "fc72153b-b455-46f0-925b-5dda5378f06e", "ec6b6ca7-bfc3-4f35-aaa2-ec552ae39159", "b613a92b-1965-40de-babd-e32c10e7a730"], + 'minimum_number_of_products' => 6684, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] - , ["from" => "12:00", "to" => "23:59"] - , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [0, 6, 4, 0, 3, 5], + 'applicable_days_of_week' => [3, 5, 0, 2, 0, 3, 5, 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_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] ], 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 4663, - 'point_expires_at' => "2021-03-28T14:07:04.000000Z", + 'point_expires_in_days' => 477, + 'point_expires_at' => "2022-05-08T13:01:59.000000Z", 'status' => "disabled", - 'description' => "9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqAnDQImUocNLmlkEs1s3oajWUDkbVb94dhcQ", - 'bear_point_shop_id' => "9e9908ed-3a5f-4f90-8ea2-96bd9a0c2d23" + 'description' => "e7wXOOVc8GIqj26qcMQ423OrAYOyd21L95eAaG4JW0HS70OJOUKjK", + 'bear_point_shop_id' => "65ae8acc-fae5-4b47-9c5d-eade8e0b91c3" ] ); try { @@ -1597,26 +1651,35 @@ public function testCreateCampaign37() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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, + 'blacklisted_shop_ids' => ["eb58da4c-d411-417b-9ddb-541e2f16cd2e", "e5e88518-bdf9-43e3-b388-0a214d05eed8", "398450ad-f999-44e3-a125-2b4612bd1099", "f6448fcf-0759-47ad-b0c1-76c1c28cf6ac", "e1236987-3648-4281-a959-030d700aa6d9", "bc0a72cb-9439-4f7a-8637-c53b73928685", "926840b3-bf8b-4575-b844-eb507a488f7c", "55e9260a-66b2-4810-9569-960667beb763"], + 'minimum_number_of_amount' => 3061, + 'minimum_number_of_products' => 1193, '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, 0, 2, 0, 4, 3, 6], + 'applicable_days_of_week' => [2, 3, 6, 0, 1, 3, 3, 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_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] @@ -1625,19 +1688,26 @@ 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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 6051, - 'point_expires_at' => "2020-10-18T14:55:08.000000Z", + 'subject' => "all", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 2199, + 'point_expires_at' => "2021-09-18T11:35:30.000000Z", 'status' => "disabled", - 'description' => "qxLBzmQKSHkl", - 'bear_point_shop_id' => "0909ef8d-aaff-4aa3-9032-7747fd65f909" + 'description' => "jQgbj8PRfNm4vkTJ8joyTSHmI2see5qGgNKlkv5", + 'bear_point_shop_id' => "232f2690-3408-41f6-858f-6afde9d9b686" ] ); try { @@ -1653,37 +1723,40 @@ public function testCreateCampaign38() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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, + 'blacklisted_shop_ids' => ["0b3861df-d05c-4e3b-89c5-0a6f79186922", "d987a0cd-1d06-4d6a-ba3f-696281225754", "794fde34-4656-49d0-b85d-786c9246c5da", "eff909c6-bcad-42b0-8168-d05b10f910fb"], + 'minimum_number_for_combination_purchase' => 6538, + 'minimum_number_of_amount' => 4726, + 'minimum_number_of_products' => 5903, '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' => [4, 4, 6], + 'applicable_days_of_week' => [2, 0, 3, 3, 6, 4, 2, 1, 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] @@ -1693,16 +1766,14 @@ 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] - , ["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' => 7307, - 'point_expires_at' => "2020-06-19T20:23:54.000000Z", + 'subject' => "all", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3448, + 'point_expires_at' => "2023-01-15T04:35:08.000000Z", 'status' => "disabled", - 'description' => "raJiLHRNzuStDZHp5MvhzfbMCo9qyaARx", - 'bear_point_shop_id' => "00c07ff4-fd3e-485d-a15a-ffa16d2ad75f" + 'description' => "5LEwfbe5dxC9nFb6EnR37XI7b090WiBtRh0avWom7iSFIO4uZdtJGn6HWLBVq7JK", + 'bear_point_shop_id' => "a4dd7fcc-0b1f-45b8-92a6-7627b95cbfaf" ] ); try { @@ -1718,18 +1789,18 @@ public function testCreateCampaign39() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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, + 'blacklisted_shop_ids' => ["61415e7f-8e73-4249-8077-b74083841b31", "a57b6db7-95cf-49b7-9f45-cc790aa1fbd2", "f264ed2e-f17c-4477-9562-06032db7f39b", "45941a1f-8ad2-4189-bbe7-a78294a09755", "8dce04f9-4037-41af-b6a0-aec6c446417d", "ac1167a9-5106-4165-a1be-78069295dd60", "6bc5c39e-a2a0-4f1b-b557-9b653bae6523", "e4100b87-f642-4d8b-81fb-80a0beb291a8", "27d10618-dbeb-4324-9660-d16799ea23a4", "2d1f0949-3663-40a1-87e9-8556c4eef1ee"], + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 792, + 'minimum_number_of_amount' => 5934, + 'minimum_number_of_products' => 1059, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -1741,28 +1812,23 @@ public function testCreateCampaign39() , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [4], + 'applicable_days_of_week' => [5, 5, 6, 1, 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_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] ], 'subject' => "all", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 3995, - 'point_expires_at' => "2021-10-01T03:18:14.000000Z", + 'point_expires_in_days' => 1454, + 'point_expires_at' => "2021-02-28T18:27:26.000000Z", 'status' => "enabled", - 'description' => "gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt", - 'bear_point_shop_id' => "4d5d5d35-2114-492c-a747-18d38dcf747e" + 'description' => "OPQZR4UpdKmspN8b2gkMcSPrmt0hjIJu43wB7scWlYirrj6XmXYoqVEvKvw3AdEs5hGDLuaSpYl1TGEiugglxJJBGt0dcPbtQc", + 'bear_point_shop_id' => "18a70f0b-e834-4289-a8f5-40530d0484eb" ] ); try { @@ -1778,25 +1844,24 @@ public function testCreateCampaign40() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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, + 'blacklisted_shop_ids' => ["f86c6a82-0cc0-4296-b6f5-0a02d8ca8cd3", "d4ffa6d2-d4fc-48f7-9836-f24037695fd2", "0894505e-f626-4578-b766-40891a8942cf"], + 'max_point_amount' => 3526, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 7764, + 'minimum_number_of_amount' => 7838, + 'minimum_number_of_products' => 8334, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [5], + 'applicable_days_of_week' => [1, 4, 1, 0, 6, 3, 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] @@ -1807,26 +1872,20 @@ 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] ], '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' => TRUE, - 'point_expires_in_days' => 3520, - 'point_expires_at' => "2023-02-02T20:04:20.000000Z", - 'status' => "disabled", - 'description' => "E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7TWphUCFQOl", - 'bear_point_shop_id' => "1c2c0ede-6902-495f-8e95-16e84aba1c82" + 'point_expires_in_days' => 5513, + 'point_expires_at' => "2021-12-27T08:34:08.000000Z", + 'status' => "enabled", + 'description' => "klVD4mELe2edQd6Mwu12UeT7ThuLLgJ9PT2zGkxOOzhTpPLnUQXea3eTBlP1za1n7IcWMlrV1ey0F13qC7iArhwm76E35ql4XfUae14Wbt93t26LiQAMBYx057AoBwLeryNecuIhUBXRQRCvkSHsmDbMU34aVyZLcCN", + 'bear_point_shop_id' => "874aa396-be8e-4545-aaa4-25b418584b4b" ] ); try { @@ -1842,38 +1901,49 @@ public function testCreateCampaign41() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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' => 9451, - 'minimum_number_of_amount' => 4266, - 'minimum_number_of_products' => 855, + 'blacklisted_shop_ids' => ["429f1990-7940-42d7-aced-18502887b7f7", "87d957f9-2537-45eb-b0c5-533247a92337", "eaad126f-ce60-4d6d-ae03-008aff865ea0", "69ca8429-32dc-4ba1-97bc-32f20fe59e0e", "993eb375-9bc9-4557-b381-8d03d79392a6", "16837334-bdd4-49c1-80af-4e10412c1047", "a0cddf05-8966-405e-b199-84b9f52324fe", "1eb04df5-7d65-4808-b8d4-98f60f4bbc04"], + 'max_total_point_amount' => 2395, + 'max_point_amount' => 924, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 3868, + 'minimum_number_of_amount' => 3901, + 'minimum_number_of_products' => 9946, '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' => [4, 0, 4, 6, 3, 6, 0, 4, 6], + 'applicable_days_of_week' => [5, 5, 6], '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] ], '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' => 5441, - 'point_expires_at' => "2022-08-24T11:45:25.000000Z", - 'status' => "disabled", - 'description' => "JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4", - 'bear_point_shop_id' => "8ef5b770-fba8-4c26-9b4d-9befbc582743" + 'point_expires_in_days' => 5962, + 'point_expires_at' => "2022-10-12T10:45:36.000000Z", + 'status' => "enabled", + 'description' => "qAG", + 'bear_point_shop_id' => "c04254a4-219d-46e1-a88a-2e3fc69aac00" ] ); try { @@ -1889,21 +1959,21 @@ public function testCreateCampaign42() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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, + 'blacklisted_shop_ids' => ["03ff9c2e-f48b-492d-a9dc-b008f21aa19b", "9919206a-c063-47b2-8bb2-28555b6e284a", "cb938a61-5a2a-4409-a085-f2e6d19fd0ef"], + 'dest_private_money_id' => "b82853d1-56a4-4280-bd73-6c00387ceb3a", + 'max_total_point_amount' => 7865, + 'max_point_amount' => 8944, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 8855, - 'minimum_number_of_amount' => 2378, - 'minimum_number_of_products' => 8413, + 'minimum_number_for_combination_purchase' => 7965, + 'minimum_number_of_amount' => 7353, + 'minimum_number_of_products' => 3626, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -1913,29 +1983,32 @@ public function testCreateCampaign42() , ["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, 6], + 'applicable_days_of_week' => [4, 6, 1, 4], '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] ], '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' => TRUE, - 'point_expires_in_days' => 6661, - 'point_expires_at' => "2020-09-14T16:41:04.000000Z", + 'subject' => "all", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 1393, + 'point_expires_at' => "2025-01-27T18:07:15.000000Z", 'status' => "disabled", - 'description' => "KRHlq0wqM01LRxPcYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHMXBj8otEAcFy5ooXoXuzlRpCyCoZoaTfbTmVX0Xq", - 'bear_point_shop_id' => "bff96bf1-e04c-4207-b244-581b16796688" + 'description' => "jn2vqwiu14DVHGOrsaIKsQ11QA0zf5QFhEcKjjKztGRK6K9KAPEUIedziHih60rhQZO78Ysa8FmX0ccAumcgyg4cqEaxSmm8kmOYz37PEcPNNiKvN5Ht8RLA9ghACTJRDSXhb0oNXnX7lDuTKN6ygQ5h7kN0paU2HC64wcGrUcdcR", + 'bear_point_shop_id' => "54a761a9-04de-454f-b27d-0d1171b4e453" ] ); try { @@ -1951,63 +2024,47 @@ public function testCreateCampaign43() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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"], + 'blacklisted_shop_ids' => ["29cb70b3-38a2-4da5-ba09-a9c500ee3639", "57ee5edb-a971-4e84-8d09-17bf3681810f"], 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - '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' => 1334, - 'minimum_number_of_amount' => 453, - 'minimum_number_of_products' => 5643, + 'dest_private_money_id' => "1040f50e-f108-465d-8684-fbc191ffcf9f", + 'max_total_point_amount' => 2328, + 'max_point_amount' => 3255, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 7021, + 'minimum_number_of_amount' => 513, + 'minimum_number_of_products' => 3999, '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, 5, 6, 6, 3, 3, 4, 2, 2], + 'applicable_days_of_week' => [6, 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] ], '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", + 'subject' => "money", 'is_exclusive' => FALSE, - '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" + 'point_expires_in_days' => 1962, + 'point_expires_at' => "2025-02-23T14:26:20.000000Z", + 'status' => "disabled", + 'description' => "IAldP5taDahvoqIf3H7H22Xm9qyhmrKIzglEahNrgMO9grD73ccOw2h3Fa222nHBaN6510bAHdVRRVqtJb7GLA5jeThW5qr3yEd4dXuL0rYsAz43Mmx6hv0Ug3INp6i2B7flubMg8I3PFzXHSWu8scihqWwWKLIsgxoxZCQ2441blMtS", + 'bear_point_shop_id' => "7d64234f-4e7f-4d5a-886f-d925d69e9057" ] ); try { @@ -2023,31 +2080,29 @@ public function testCreateCampaign44() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - 'blacklisted_shop_ids' => ["9c635b5e-7d5d-408e-94d6-8671be3af2c3", "80273963-9436-4023-bbbb-7313b0fdfd7d", "292ed000-62b2-4943-b34c-755621d94a01"], + 'blacklisted_shop_ids' => ["60619afd-e884-4676-aefa-0b123a0846fc", "96b2b574-e79f-4806-bc14-071ca21d6d68"], 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'dest_private_money_id' => "cb2e1220-a514-4400-9259-104b2282f150", - 'max_total_point_amount' => 4509, - 'max_point_amount' => 6010, + 'dest_private_money_id' => "67fc1bae-656f-4158-9618-afab3b7d41e3", + 'max_total_point_amount' => 8800, + 'max_point_amount' => 1599, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 3192, - 'minimum_number_of_amount' => 122, - 'minimum_number_of_products' => 9276, + 'minimum_number_for_combination_purchase' => 4069, + 'minimum_number_of_amount' => 8207, + 'minimum_number_of_products' => 8816, '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' => [1, 2, 1, 6], + 'applicable_days_of_week' => [5, 6, 5, 6, 6, 0, 2, 0], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -2055,8 +2110,6 @@ public function testCreateCampaign44() , ["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] @@ -2066,18 +2119,23 @@ public function testCreateCampaign44() , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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", 'is_exclusive' => FALSE, - 'point_expires_in_days' => 3780, - 'point_expires_at' => "2021-03-24T07:20:56.000000Z", - 'status' => "enabled", - 'description' => "sObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1opS6XVL", - 'bear_point_shop_id' => "e490be31-b19a-4c14-bbd5-3d387267020e" + 'point_expires_in_days' => 1075, + 'point_expires_at' => "2020-09-20T08:31:55.000000Z", + 'status' => "disabled", + 'description' => "W1f9b8gICLPqqow4qG8fKRsijZT9ACbFhSbUnXdQpmPpnHFqiJvOHOlQFLdxOm16oejI9dat1CLgQo", + 'bear_point_shop_id' => "93b7ea52-866c-497a-ba75-ac260357b85f" ] ); try { @@ -2093,29 +2151,38 @@ public function testCreateCampaign45() { $client = $this->newClient(); $request = new Request\CreateCampaign( - "LWMWptjgf0FiZZDEEO2PZA9bioQMPG1E81jCARXbk7MR17C6RF6LyMxBAxNrASDj9VGr6rQWfEP7s2f7f5rT4gnJZ2Cz81XNou", - "ad4c1d63-f179-4042-a281-658f939209e2", - "2022-05-26T22:20:53.000000Z", - "2022-07-23T11:21:13.000000Z", - 3464, - "topup", + "bfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hjtD1VYnThEQOLtlkRPIAeI3C1kLw", + "f77d846f-d253-4b4a-b02b-57a7e55fc8f4", + "2025-01-04T14:37:11.000000Z", + "2021-10-01T05:50:40.000000Z", + 6136, + "external-transaction", [ - '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, + 'blacklisted_shop_ids' => ["39adc21c-d9f8-4e08-8218-c3997cacfd32", "3b34f451-8447-41f2-83a9-a93e9fde868e", "8298a950-0bed-45d1-b4b1-020ce5cf64db", "0bd780b5-6102-4c2f-8574-7d2dde6438ba", "cf9a56dd-0404-47df-8c32-f92a28c2b15c", "68e741d3-6d5b-4305-8782-daf138eb03a9", "328c53e7-9ef9-48b7-82d7-fb6f16f49e77", "61c60d63-1e20-406d-8c3d-518a2a51dbfc", "86632482-0033-48c3-ad29-f1c6102e1566", "dcbebd78-0f2d-4370-95f9-30165d3e6edc"], + 'budget_caps_amount' => 176165032, 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'dest_private_money_id' => "0cad39ab-3073-4b4c-8ad6-97a108e60f00", - 'max_total_point_amount' => 9104, - 'max_point_amount' => 6073, + 'dest_private_money_id' => "0129c343-15d0-4670-a028-b8f38a6c09a2", + 'max_total_point_amount' => 3745, + 'max_point_amount' => 4799, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 4630, - 'minimum_number_of_amount' => 4968, - 'minimum_number_of_products' => 9964, + 'minimum_number_for_combination_purchase' => 1275, + 'minimum_number_of_amount' => 8919, + 'minimum_number_of_products' => 9197, '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, 2, 2, 0, 3, 4, 3, 2], + 'applicable_days_of_week' => [4, 1], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -2124,29 +2191,16 @@ 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] - , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 1833, - 'point_expires_at' => "2025-09-15T17:39:47.000000Z", + 'subject' => "all", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 9424, + 'point_expires_at' => "2022-12-05T07:58:13.000000Z", 'status' => "enabled", - 'description' => "Ia6s2Oi", - 'bear_point_shop_id' => "2acdd953-e4b4-4929-b497-735e52177dc0" + 'description' => "9CFz87kImOLWynZ7sTqSkOWWDLZmiyY4qSDce16GC4wPtLkv3o4mk88yYjRj6ppJLnlec8JObXuRsPVeFJcsOCB9dZH0k0NKC7bYH6IQhPn4Xu22OkprhqhwvNpMEMbpSnLulsX8V7SnJwOTksCozm6o1k9oe", + 'bear_point_shop_id' => "f07070f0-95d2-48c2-b78f-803da0ec24a8" ] ); try { diff --git a/tests/CreateCashtrayTest.php b/tests/CreateCashtrayTest.php index 6fbde510..e1648581 100644 --- a/tests/CreateCashtrayTest.php +++ b/tests/CreateCashtrayTest.php @@ -8,9 +8,9 @@ public function testCreateCashtray0() { $client = $this->newClient(); $request = new Request\CreateCashtray( - "5ca2bbb1-3216-48f0-b171-26ec05dfcc03", - "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68", - 7688.0 + "fc981986-ee4d-43d5-95ac-a89576490394", + "78d88e5c-4959-43e2-aca3-907bf9069ec1", + 9551.0 ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testCreateCashtray1() { $client = $this->newClient(); $request = new Request\CreateCashtray( - "5ca2bbb1-3216-48f0-b171-26ec05dfcc03", - "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68", - 7688.0, + "fc981986-ee4d-43d5-95ac-a89576490394", + "78d88e5c-4959-43e2-aca3-907bf9069ec1", + 9551.0, [ - 'expires_in' => 2305 + 'expires_in' => 3865 ] ); try { @@ -45,12 +45,12 @@ public function testCreateCashtray2() { $client = $this->newClient(); $request = new Request\CreateCashtray( - "5ca2bbb1-3216-48f0-b171-26ec05dfcc03", - "63d7205e-21c9-48a8-a0bd-bb1d4eb5cc68", - 7688.0, + "fc981986-ee4d-43d5-95ac-a89576490394", + "78d88e5c-4959-43e2-aca3-907bf9069ec1", + 9551.0, [ - 'description' => "KkOnPRe3g3OqYMD6Y7flopJpL06wROQZ33dSb51CrQZVorM80jAnbL9pF2AijYf8ydTws4HIQ4AniWPzD9CM0oL6ak44VafBlkQEtaE8xbTpd0PiIwS54q66i2nXWkvfusE3magRZXBvYQN11diTIPMylP78XJ", - 'expires_in' => 4682 + 'description' => "w5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lYSdkRdIHlBo7iMGslQeLzTg9FCP6boJkANEWZ0xko5rtXdkj", + 'expires_in' => 3340 ] ); try { diff --git a/tests/CreateCheckTest.php b/tests/CreateCheckTest.php index 2143f2dd..4b2be3e2 100644 --- a/tests/CreateCheckTest.php +++ b/tests/CreateCheckTest.php @@ -8,9 +8,9 @@ public function testCreateCheck0() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 4069.0 + 'money_amount' => 6896.0 ] ); try { @@ -26,10 +26,10 @@ public function testCreateCheck1() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 1565.0, - 'description' => "1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF6zxkmTZed" + 'money_amount' => 2977.0, + 'description' => "NZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEomxqdvzxKVxdoit0" ] ); try { @@ -45,11 +45,11 @@ public function testCreateCheck2() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 7956.0, - 'is_onetime' => FALSE, - 'description' => "LbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1UgGMHbk2I" + 'money_amount' => 7556.0, + 'is_onetime' => TRUE, + 'description' => "sRdkY0a6T9IRy95uKnYj6aDVb3qDkr4zFWttvA7t4NS9wkdOXwioDpfXuzoNbRpuKefj9znX2XonFzQcO5QEOmdgUm73I2kFchNQksZB6ByT3lV" ] ); try { @@ -65,12 +65,12 @@ public function testCreateCheck3() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 5158.0, - 'usage_limit' => 2569, - 'is_onetime' => FALSE, - 'description' => "flsvwuZxk0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoA" + 'money_amount' => 4946.0, + 'usage_limit' => 2385, + 'is_onetime' => TRUE, + 'description' => "7O823WFeXCsADfveWv5SetJLuZcB6tdcwibyPvTHbjOWbqqVGNOP2f7Fmc6XSXX" ] ); try { @@ -86,13 +86,13 @@ public function testCreateCheck4() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 8588.0, - 'expires_at' => "2021-01-26T06:24:15.000000Z", - 'usage_limit' => 5493, - 'is_onetime' => TRUE, - 'description' => "PSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmXWb6cDTOBEvT" + 'money_amount' => 2094.0, + 'expires_at' => "2024-09-11T12:51:25.000000Z", + 'usage_limit' => 6416, + 'is_onetime' => FALSE, + 'description' => "Y5XPxnjFhfkfYgvABxRhjV7rXm6F6onhtgkbe1I3fnSrAjiMpnuQgQNZWqLAFAWqZBqyjs43AAjNChMERBnJER6lOBQBwAgsTow2Z3Uka1wds9TY9Bp5VDJiBPB1XeTNJcIKtWyeNc1zzlxW2hgOK8NI225RAsUHuuLFS4058hKDGnyjbxrF" ] ); try { @@ -108,14 +108,14 @@ public function testCreateCheck5() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 4511.0, - 'point_expires_at' => "2023-03-20T09:30:14.000000Z", - 'expires_at' => "2023-07-08T20:47:28.000000Z", - 'usage_limit' => 9856, + 'money_amount' => 2702.0, + 'point_expires_at' => "2022-03-10T22:59:02.000000Z", + 'expires_at' => "2021-07-30T12:40:06.000000Z", + 'usage_limit' => 7160, 'is_onetime' => TRUE, - 'description' => "YocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG3F55uy56fVMl4ovKtbbNMLWzz4xf72t" + 'description' => "kmTZedVWeLbSdWlORFkWxf1fgII7vrhxHZrOEIH6HNdDlfIrfFFwUdXhpSi4j72IcAxs47XeIzYlwiQaQGyn4Age91Y1cWNDBnv9RrzZK5kL8kuH9QZjAoA9Wjz3xWF4fJVtnG3Avmta20vIgud6F1U" ] ); try { @@ -131,15 +131,15 @@ public function testCreateCheck6() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - '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, + 'money_amount' => 3850.0, + 'point_expires_in_days' => 2815, + 'point_expires_at' => "2021-03-16T04:27:51.000000Z", + 'expires_at' => "2022-11-20T03:26:05.000000Z", + 'usage_limit' => 3528, 'is_onetime' => TRUE, - 'description' => "yikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsxk71kIOiSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9xqXNJMeqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrz" + 'description' => "k2IRflsv" ] ); try { @@ -155,16 +155,16 @@ public function testCreateCheck7() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - '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, + 'money_amount' => 9079.0, + 'bear_point_account' => "93a55815-5475-4f22-807c-a196eea46726", + 'point_expires_in_days' => 5723, + 'point_expires_at' => "2026-01-14T18:47:03.000000Z", + 'expires_at' => "2026-01-28T13:14:11.000000Z", + 'usage_limit' => 418, 'is_onetime' => TRUE, - 'description' => "Uv1CsWTy6z2FdXbfXavW2HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzK" + 'description' => "k0nQmXMvg0FcWUrBHOSV7LC2s46hfsRF0YKxTClCMK7WZ9OzNLNkjfoAuPSksHUuefNAm0yTlB8Y7jnhE6v0ICVfZpB32LWZFMYYNQ77hNnDgeQkP6BrHNLW2TjgwJkClYsxYjLV6mNckmX" ] ); try { @@ -180,10 +180,10 @@ public function testCreateCheck8() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 8777.0, - 'point_amount' => 8833.0 + 'money_amount' => 3927.0, + 'point_amount' => 1661.0 ] ); try { @@ -199,11 +199,11 @@ public function testCreateCheck9() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 2840.0, - 'point_amount' => 966.0, - 'description' => "cpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQb" + 'money_amount' => 9955.0, + 'point_amount' => 431.0, + 'description' => "TOBEvT1fZYocBrtgwRLixenA1GWqf2JPqamqpbbuSj1PURjYRasH9ARntTDK9f1O2csoG" ] ); try { @@ -219,12 +219,12 @@ public function testCreateCheck10() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 5144.0, - 'point_amount' => 453.0, - 'is_onetime' => FALSE, - 'description' => "VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDvZ2PuoFKU33PYYZTEIyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63d" + 'money_amount' => 1704.0, + 'point_amount' => 650.0, + 'is_onetime' => TRUE, + 'description' => "55uy56fVMl4ovKtbbNML" ] ); try { @@ -240,13 +240,13 @@ public function testCreateCheck11() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 8402.0, - 'point_amount' => 4676.0, - 'usage_limit' => 125, + 'money_amount' => 1019.0, + 'point_amount' => 3999.0, + 'usage_limit' => 2524, 'is_onetime' => TRUE, - 'description' => "xKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6" + 'description' => "xf72tklHyikvXSu1xVqKMzKtPMLBX6YLvmDqPAbWtHJHRtQBqCHsx" ] ); try { @@ -262,14 +262,14 @@ public function testCreateCheck12() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'money_amount' => 4802.0, - 'point_amount' => 4362.0, - 'expires_at' => "2020-03-01T15:51:02.000000Z", - 'usage_limit' => 6251, + 'money_amount' => 4232.0, + 'point_amount' => 5355.0, + 'expires_at' => "2021-03-26T09:43:13.000000Z", + 'usage_limit' => 7806, 'is_onetime' => FALSE, - 'description' => "23xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJtROtnJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6Hyc" + 'description' => "iSHcZ37iojnk7j2j33qMA4N2evwLBNS7QyCEhtgNDuAnxydB9u3o7ZMeTosoRh4S0mExQI1uCwHXvSS9" ] ); try { @@ -285,15 +285,15 @@ public function testCreateCheck13() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - '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" + 'money_amount' => 7160.0, + 'point_amount' => 2088.0, + 'point_expires_at' => "2026-02-06T23:34:09.000000Z", + 'expires_at' => "2020-03-30T00:48:24.000000Z", + 'usage_limit' => 3022, + 'is_onetime' => TRUE, + 'description' => "eqv2rRxx8SeYgA5RTAZIE0d3whSKLF4xWXCgQOdSsQVPrApoltrzZbMjGbqCaDUv1CsWTy6z2FdXbf" ] ); try { @@ -309,16 +309,16 @@ public function testCreateCheck14() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - '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, + 'money_amount' => 8280.0, + 'point_amount' => 3169.0, + 'point_expires_in_days' => 2302, + 'point_expires_at' => "2020-06-21T10:51:14.000000Z", + 'expires_at' => "2020-10-25T14:15:25.000000Z", + 'usage_limit' => 3135, 'is_onetime' => FALSE, - 'description' => "DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmz" + 'description' => "HwaVVWGcOvRgfjTir1eeHpnGAvFN5uVHKI7mM3plgJR5fwzKIFQcpGZZVlRU03Fa2F6PUopGrOCijX4VQZjHwhb9lV9sTjbq8Wo22UU1er3T1gBtfr20CiDsCwyLdW5AzEeQbE5VhNxjrtNh84WLuHKWoYQpDLtJyiWbDVy6Ss7attO0KDv" ] ); try { @@ -334,17 +334,17 @@ public function testCreateCheck15() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - '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' => "OOmiUvKwyiQYSSoPK3N5ZGrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr" + 'money_amount' => 6578.0, + 'point_amount' => 4934.0, + 'bear_point_account' => "e96623cb-b255-40b3-b3d0-7fd936255c3f", + 'point_expires_in_days' => 3930, + 'point_expires_at' => "2021-06-23T00:37:46.000000Z", + 'expires_at' => "2020-08-08T16:24:09.000000Z", + 'usage_limit' => 4996, + 'is_onetime' => TRUE, + 'description' => "IyRndmm72c26Cd6B3OB7swghUIdkqUOY2HAI87h7tC8vMnTzjNmFWDzLZEPN7HQXwymFrbXYvN3cal4RO9jT63dRDxKNVoewLoaJggIMA5wXB3CTdPu3I6Gb57N6Bfk723xgVJhWc2FLmu9RV4wTQ1eFfFoOmA6KgKFTgUMIqeaKPydQtxKkPEiJ9F7s09s2D07ZJt" ] ); try { @@ -360,9 +360,9 @@ public function testCreateCheck16() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'point_amount' => 1185.0 + 'point_amount' => 1362.0 ] ); try { @@ -378,10 +378,10 @@ public function testCreateCheck17() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'point_amount' => 133.0, - 'description' => "Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0gAPfWDnSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c81K9V4uwaN6FqKGuMQ" + 'point_amount' => 9935.0, + 'description' => "nJyz65lsPnpU0js5rsIZ4cWpER3UtPkG2eq1I6SZr9Xo8DUROCVDxPSk72x92MmliF75MFhbZKuKGU7dTPisUgKnCVzFujd5tp1lylHobnm6HycWppeOG" ] ); try { @@ -397,11 +397,11 @@ public function testCreateCheck18() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'point_amount' => 2757.0, + 'point_amount' => 3859.0, 'is_onetime' => FALSE, - 'description' => "IhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLi" + 'description' => "5c4bSqVBGp3Ank6BTTvgxHzzgdLIxgPMdYrCUsTg7mFBD5JyTl3OSbQF6o9LFFmkiVCdqahnfY1HR9DfMzD3LCASqee9bY3sHOGNF3Mai4m7no77RN8AasCH56gnyuHFpFsNPJmzuH1GHYOOmiUvKwyiQYSSoPK3" ] ); try { @@ -417,12 +417,12 @@ public function testCreateCheck19() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'point_amount' => 7675.0, - 'usage_limit' => 4642, + 'point_amount' => 3592.0, + 'usage_limit' => 2357, 'is_onetime' => TRUE, - 'description' => "TT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAhk4Q5" + 'description' => "GrmU0unMptspEioBBqGcJLaXcepDTPRHElLNQrvWUnk17KWAioiFIGH7shpxz5S2r82nr4Char2DsC6IOlQ3ZCa8lZmMT5mAFAIeN7EOzXnRCcbLOsMiN4tjoxBAROpiRc0j39oPNkDTFwGmGihFz2z0g" ] ); try { @@ -438,13 +438,13 @@ public function testCreateCheck20() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'point_amount' => 6469.0, - 'expires_at' => "2020-07-18T03:30:33.000000Z", - 'usage_limit' => 6615, + 'point_amount' => 7066.0, + 'expires_at' => "2020-02-09T04:52:58.000000Z", + 'usage_limit' => 5158, 'is_onetime' => TRUE, - 'description' => "c6DIDKem3xaXPio5o0" + 'description' => "nSv3peMsqUtDBVf5JNWPBpzSQtetKx5V0IU1H2quyHwM52367FRSK6ZN3dPGJYhssMJ1c" ] ); try { @@ -460,14 +460,14 @@ public function testCreateCheck21() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - 'point_amount' => 6281.0, - 'point_expires_at' => "2024-04-17T16:46:41.000000Z", - 'expires_at' => "2023-03-09T16:35:05.000000Z", - 'usage_limit' => 4472, + 'point_amount' => 3007.0, + 'point_expires_at' => "2025-08-08T18:23:02.000000Z", + 'expires_at' => "2022-06-22T04:29:19.000000Z", + 'usage_limit' => 7940, 'is_onetime' => TRUE, - 'description' => "yrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYKRMPV8lVcOO1w2GShMQxP1XNaA4tMwkt9CE" + 'description' => "uwaN6FqKGuMQEbIhSKLSxcJDAAH0jwIPbMhYlMMXruKsOetb8P3w3wpAlq46MRFhBa1KSFCImukjAtQPb0UOTifX7KrzTtAdseC51TTzGU05VTqLiAQDTT40IDYkIvu0sCcHMaDTHEOIiZjdOoQxmayWcgZvBQUAudiHvhALf0xr0YedjAtAh" ] ); try { @@ -483,15 +483,15 @@ public function testCreateCheck22() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - '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" + 'point_amount' => 379.0, + 'point_expires_in_days' => 5154, + 'point_expires_at' => "2023-03-21T03:25:06.000000Z", + 'expires_at' => "2025-12-03T20:22:03.000000Z", + 'usage_limit' => 1588, + 'is_onetime' => FALSE, + 'description' => "5ZEYWHc6DIDKem3xaXPio5o0q9x0iUyrfJOMPlYYA9d24g2qlkQeuW1v6Ot04JjRtKJ3Y50yRgOZb7LyYK" ] ); try { @@ -507,16 +507,16 @@ public function testCreateCheck23() { $client = $this->newClient(); $request = new Request\CreateCheck( - "1218966b-259f-47a0-8426-0e620a5da89b", + "11aa316d-7eda-4f20-b8ce-da3b961ab7b4", [ - '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" + 'point_amount' => 1031.0, + 'bear_point_account' => "24a7f392-2f7b-4452-8d3f-b8d06a33d356", + 'point_expires_in_days' => 3897, + 'point_expires_at' => "2026-03-28T15:42:36.000000Z", + 'expires_at' => "2021-08-08T21:23:34.000000Z", + 'usage_limit' => 5543, + 'is_onetime' => FALSE, + 'description' => "cOO1w2GShMQxP1XNaA4tMwkt9CEIs7P52Qn8Ps6rGg4gxhQEPHlDMgzo7RyqyjDQCvIVLohtP7YX7LIJvkHIDHAM5JdvPW8u4K9jehE0FIX2d1fsIJRaq4cseT3Jr8x9EZ1qV4Ufa8eDK" ] ); try { diff --git a/tests/CreateCouponTest.php b/tests/CreateCouponTest.php index 566cbd23..d6f05028 100644 --- a/tests/CreateCouponTest.php +++ b/tests/CreateCouponTest.php @@ -8,13 +8,13 @@ public function testCreateCoupon0() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 1652 + 'discount_amount' => 2825 ] ); try { @@ -30,14 +30,14 @@ public function testCreateCoupon1() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 5260, - 'storage_id' => "7033b9a0-1891-4bb9-bbcd-c0ae3d8f5dba" + 'discount_amount' => 1898, + 'num_recipients_cap' => 6242 ] ); try { @@ -53,15 +53,15 @@ public function testCreateCoupon2() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 5087, - 'min_amount' => 5576, - 'storage_id' => "60e30a97-574b-4b17-811b-a94b37f49ab4" + 'discount_amount' => 2686, + 'storage_id' => "c2cb8ba6-9663-4590-9ccb-b1ca871c97d3", + 'num_recipients_cap' => 4391 ] ); try { @@ -77,16 +77,16 @@ public function testCreateCoupon3() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 8386, - 'usage_limit' => 1711, - 'min_amount' => 2743, - 'storage_id' => "4be306f3-704a-4234-b2b4-37e0787a3040" + 'discount_amount' => 6749, + 'min_amount' => 6802, + 'storage_id' => "6d9d1dc8-381d-4b6c-b7c6-866cc03798fd", + 'num_recipients_cap' => 3428 ] ); try { @@ -102,17 +102,17 @@ public function testCreateCoupon4() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 8262, - 'code' => "7dkeP", - 'usage_limit' => 4539, - 'min_amount' => 4628, - 'storage_id' => "ad06a318-3398-4311-a207-cef05010cbf2" + 'discount_amount' => 3366, + 'usage_limit' => 7852, + 'min_amount' => 9075, + 'storage_id' => "55d2db9d-a225-4eec-bf74-d46a1416086a", + 'num_recipients_cap' => 960 ] ); try { @@ -128,18 +128,18 @@ public function testCreateCoupon5() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 2331, - 'is_public' => TRUE, - 'code' => "qXJLC9", - 'usage_limit' => 3524, - 'min_amount' => 9964, - 'storage_id' => "4bdfda0e-9e27-4d1e-8708-6fa123467822" + 'discount_amount' => 3823, + 'code' => "DQEUx", + 'usage_limit' => 8260, + 'min_amount' => 9319, + 'storage_id' => "e04cb02b-4d68-453b-b62c-9ab7c063a344", + 'num_recipients_cap' => 2823 ] ); try { @@ -155,19 +155,19 @@ public function testCreateCoupon6() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 9578, - 'is_hidden' => TRUE, + 'discount_amount' => 9454, 'is_public' => FALSE, - 'code' => "Yc", - 'usage_limit' => 1115, - 'min_amount' => 437, - 'storage_id' => "898a7733-e75b-425c-ab02-a901188a9c05" + 'code' => "C5Rf", + 'usage_limit' => 885, + 'min_amount' => 48, + 'storage_id' => "8627ea81-0c5d-4e1e-8330-c9f595082217", + 'num_recipients_cap' => 6830 ] ); try { @@ -183,20 +183,20 @@ public function testCreateCoupon7() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 7028, - 'is_disabled' => TRUE, + 'discount_amount' => 1042, 'is_hidden' => FALSE, - 'is_public' => FALSE, - 'code' => "D", - 'usage_limit' => 1150, + 'is_public' => TRUE, + 'code' => "wmpPkPj", + 'usage_limit' => 9863, 'min_amount' => 482, - 'storage_id' => "5cf27213-7406-450f-be70-b906bc11e64e" + 'storage_id' => "31f1197c-e26c-4745-89db-289d93afcd8a", + 'num_recipients_cap' => 4120 ] ); try { @@ -212,21 +212,21 @@ public function testCreateCoupon8() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 1132, - 'display_ends_at' => "2023-09-22T17:22:23.000000Z", + 'discount_amount' => 5458, 'is_disabled' => FALSE, 'is_hidden' => FALSE, 'is_public' => TRUE, - 'code' => "IqFEpEzlkb", - 'usage_limit' => 6104, - 'min_amount' => 2850, - 'storage_id' => "ac034b73-d584-445e-a83e-30dcd0cf40c8" + 'code' => "TFSpI6", + 'usage_limit' => 1161, + 'min_amount' => 4714, + 'storage_id' => "3ab6a819-9b77-4dca-9560-df55b9792d20", + 'num_recipients_cap' => 598 ] ); try { @@ -242,22 +242,22 @@ public function testCreateCoupon9() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 4965, - 'display_starts_at' => "2025-01-14T01:00:59.000000Z", - 'display_ends_at' => "2020-12-06T13:27:21.000000Z", - 'is_disabled' => FALSE, + 'discount_amount' => 8475, + 'display_ends_at' => "2024-03-15T06:02:11.000000Z", + 'is_disabled' => TRUE, 'is_hidden' => FALSE, - 'is_public' => TRUE, - 'code' => "R7zZjof", - 'usage_limit' => 7512, - 'min_amount' => 9518, - 'storage_id' => "e89fee8a-1bff-4d25-8770-bd3821dd4d71" + 'is_public' => FALSE, + 'code' => "el2A200gV", + 'usage_limit' => 4996, + 'min_amount' => 2195, + 'storage_id' => "eb472636-1115-405e-867d-4478e504f290", + 'num_recipients_cap' => 8447 ] ); try { @@ -273,23 +273,23 @@ public function testCreateCoupon10() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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, + 'discount_amount' => 9561, + 'display_starts_at' => "2024-11-29T07:25:20.000000Z", + 'display_ends_at' => "2025-03-31T13:28:06.000000Z", + 'is_disabled' => FALSE, 'is_hidden' => TRUE, - 'is_public' => TRUE, - 'code' => "6Vch", - 'usage_limit' => 257, - 'min_amount' => 8481, - 'storage_id' => "b66aa2aa-2748-4918-bc77-584f51b8f33d" + 'is_public' => FALSE, + 'code' => "wCiS0MuC", + 'usage_limit' => 6220, + 'min_amount' => 4755, + 'storage_id' => "3529c673-7100-42fd-b7f8-f2442522d814", + 'num_recipients_cap' => 6359 ] ); try { @@ -305,24 +305,24 @@ public function testCreateCoupon11() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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, + 'discount_amount' => 6756, + 'discount_upper_limit' => 2791, + 'display_starts_at' => "2026-04-05T08:50:26.000000Z", + 'display_ends_at' => "2025-01-07T18:01:55.000000Z", + 'is_disabled' => FALSE, 'is_hidden' => TRUE, - 'is_public' => FALSE, - 'code' => "8mYG8iBp", - 'usage_limit' => 9003, - 'min_amount' => 519, - 'storage_id' => "a4c4c6af-5741-450a-b98e-4ef786cfcea6" + 'is_public' => TRUE, + 'code' => "LSvZ2KQOR", + 'usage_limit' => 6904, + 'min_amount' => 205, + 'storage_id' => "70328b16-c6fc-487b-88f2-cf19193eba6f", + 'num_recipients_cap' => 7739 ] ); try { @@ -338,15 +338,25 @@ public function testCreateCoupon12() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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"] + 'discount_amount' => 111, + 'description' => "jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKq", + 'discount_upper_limit' => 6700, + 'display_starts_at' => "2022-10-08T05:52:11.000000Z", + 'display_ends_at' => "2022-08-22T03:20:36.000000Z", + 'is_disabled' => TRUE, + 'is_hidden' => TRUE, + 'is_public' => FALSE, + 'code' => "jrUlmk", + 'usage_limit' => 459, + 'min_amount' => 7688, + 'storage_id' => "7d2be485-4d81-4752-bc2d-5f812b78a096", + 'num_recipients_cap' => 4197 ] ); try { @@ -362,16 +372,15 @@ public function testCreateCoupon13() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 7545, + 'discount_amount' => 9896, 'is_shop_specified' => TRUE, - '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" + 'available_shop_ids' => ["78dd7be5-5769-4d65-99de-cb7cd715657b", "57ee39d9-a836-4f28-81ed-0a4d3e719d5e", "88af3f42-3a14-4933-a5a8-be8f079f8196", "77b656b8-483c-44d7-83a9-34a914248419", "91424faf-e3ab-4271-8147-df5a94a6aaa3", "b42212d1-b9d7-424e-a2e5-138d77ce1de4", "f7bfef35-a942-48cc-a4b6-30ffe10a9bed", "1cfddede-4d0d-413a-b65c-9535efc4e197", "bb598f30-95ee-445c-b052-77ed5eb511c0"] ] ); try { @@ -387,17 +396,16 @@ public function testCreateCoupon14() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 4512, + 'discount_amount' => 929, '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" + 'available_shop_ids' => ["9a5a3e2f-28ff-4350-9d4e-678ed17fbbfe", "2496519b-f1a7-4166-ac7b-6f8e426a90b1", "24faaadb-bb01-4c3f-91e4-aefddada5a04", "72eb79d3-8b46-4390-a173-359e2992c092", "a158dfec-b4c9-4416-bbfe-b15e26e0ed43", "bde3ffa1-e7ce-4ab4-aa02-dc96da5fad78", "c4bdc889-b749-4865-a511-a953385b7867", "c68277e3-8aa5-4fc7-8a80-10f325f9c2d3", "470878b3-2b21-4518-90c1-da1711bbb9a8"], + 'num_recipients_cap' => 2870 ] ); try { @@ -413,18 +421,17 @@ public function testCreateCoupon15() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 3122, + 'discount_amount' => 9773, '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" + 'available_shop_ids' => ["cf93c8cd-43d5-4f7f-aab5-9c3fb2e2b80f", "3a7c73b4-7115-4c37-acce-4a90957180ca", "9bf46afe-fe64-413d-9ece-beb5c2dddb0c"], + 'storage_id' => "f990cab7-7733-431a-8307-a690a574e4e1", + 'num_recipients_cap' => 7592 ] ); try { @@ -440,19 +447,18 @@ public function testCreateCoupon16() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 2400, + 'discount_amount' => 5486, '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" + 'available_shop_ids' => ["6fe69433-f951-45e9-a96a-c2164f8f5d58", "e36685d7-49af-400c-8cb3-f61963fbf8bb", "4d2cfd10-4c9a-4992-a38e-a5b6826f0e0f", "43d6794e-cee5-47a8-b920-eec2f01b552a", "c5e381c9-f3a7-4e96-a340-fefde054d30d", "78ef7f1b-3ff9-4044-bc13-deb0ac740eba"], + 'min_amount' => 8918, + 'storage_id' => "9599c701-0c05-4398-b3f8-d32de94a2fbd", + 'num_recipients_cap' => 5974 ] ); try { @@ -468,20 +474,19 @@ public function testCreateCoupon17() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 8803, - 'is_shop_specified' => FALSE, - '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' => "aMAc0JPV", - 'usage_limit' => 8322, - 'min_amount' => 1978, - 'storage_id' => "2c0b1ea2-e02e-4c76-9018-585fa28aaee8" + 'discount_amount' => 3931, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["339a753f-ff32-4ac0-9af0-d61f08fe69f9", "b8d54085-166e-48ea-b228-7a99824ee785"], + 'usage_limit' => 2025, + 'min_amount' => 8505, + 'storage_id' => "40cf004a-9bd3-45af-a8c8-fc4d025db973", + 'num_recipients_cap' => 7608 ] ); try { @@ -497,21 +502,20 @@ public function testCreateCoupon18() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 876, - 'is_shop_specified' => FALSE, - 'available_shop_ids' => ["bd693b97-7331-4cfd-9474-43eb50501383"], - 'is_hidden' => FALSE, - 'is_public' => TRUE, - 'code' => "QHQhhRs2PI", - 'usage_limit' => 7694, - 'min_amount' => 9569, - 'storage_id' => "1e2bbcfb-aea7-4816-aba8-c93d2ff7017f" + 'discount_amount' => 6884, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["db90d7c8-2a62-4b15-a885-8d29ba90d006", "8c9e246d-9b7a-4b6d-9b97-ed97b0c19844", "f80d69ad-e813-4fbd-be07-fdf651b88385", "31f752f3-9940-4e75-b897-4064957acc5c", "fba8dad1-ee7e-4a28-8620-58465a5bc583", "6b3cfb31-da62-4f90-827c-aa8ac7dbfa5b", "89a52cbb-b02e-40b9-86a7-12c68b281556", "7be14553-0694-495d-a9fe-def81430abce", "cec6db8a-37c0-4b40-92a7-cf8132f30968", "39bd25ad-f628-4259-9eb3-d194e1f2e343"], + 'code' => "G383Fy", + 'usage_limit' => 9830, + 'min_amount' => 998, + 'storage_id' => "08ddde84-47a4-4921-bf30-ae47e8715c5e", + 'num_recipients_cap' => 429 ] ); try { @@ -527,22 +531,21 @@ public function testCreateCoupon19() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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, + 'discount_amount' => 599, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["15b67fbd-6184-464a-912b-4fcd655b8435", "d07f4855-d771-4e92-9c14-c5c78223d1b4", "7f1bfcb0-5ea7-46d4-94b5-ad9a70661c17", "0afb9707-7ec0-4248-b1d9-522918c3c04f", "e5b53b03-3979-4c58-a5c4-9c378e0f5dec", "799e7e3d-cebe-46f0-b309-8be83b3a187f", "701c2296-8304-413b-bc3a-bd8e9aa6b651"], 'is_public' => TRUE, - 'code' => "c", - 'usage_limit' => 889, - 'min_amount' => 1191, - 'storage_id' => "dc11ebad-29a0-4280-9cc4-7c5c46a8182c" + 'code' => "7", + 'usage_limit' => 8962, + 'min_amount' => 5531, + 'storage_id' => "aaa46969-d7d4-4d9a-95e4-dff4f0a14659", + 'num_recipients_cap' => 4140 ] ); try { @@ -558,23 +561,22 @@ public function testCreateCoupon20() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_amount' => 4877, - 'is_shop_specified' => FALSE, - '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' => FALSE, - 'code' => "YbDKlivy", - 'usage_limit' => 2499, - 'min_amount' => 9591, - 'storage_id' => "d80e34bf-1640-46d3-8ea4-7317c4e175f3" + 'discount_amount' => 5146, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["fcb46ff9-a75a-4cf4-92d9-c98c59cb9c81", "9893ddce-d137-454e-9211-6ee3f3b87a16", "5206e128-2890-42a3-95c3-eae5aad70444", "935df521-c9fe-4458-80c9-8f25fbbb8484", "c54da7b0-7c95-4a31-90bd-b5bc64c96904", "94ce1b9c-ea5b-42e9-bba6-5fba1cf4acef", "5ce3bed4-93b6-4d09-a4c5-b73553a52e39", "5f6b0d18-0ee5-4c89-8657-62e5a6edfc13"], + 'is_hidden' => FALSE, + 'is_public' => TRUE, + 'code' => "x", + 'usage_limit' => 5139, + 'min_amount' => 330, + 'storage_id' => "cbd3c9bb-4768-4fc8-8d03-59368788e1ac", + 'num_recipients_cap' => 7121 ] ); try { @@ -590,24 +592,23 @@ public function testCreateCoupon21() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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, + 'discount_amount' => 6749, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["c6170fbf-2851-483a-a778-617df795fa00", "f23ba8a8-4001-4723-aa33-a6972f1c4c66", "cef2bf34-1c95-4b77-a8b8-ccc5dba619ec"], + 'is_disabled' => FALSE, 'is_hidden' => FALSE, 'is_public' => TRUE, - 'code' => "1", - 'usage_limit' => 2588, - 'min_amount' => 4057, - 'storage_id' => "61a7a3f2-15fa-47f5-90f2-f16bdc11b00f" + 'code' => "GgfInUuZU", + 'usage_limit' => 1754, + 'min_amount' => 8623, + 'storage_id' => "2b9792e3-12a8-4b7f-a4d8-e5ab812c334a", + 'num_recipients_cap' => 76 ] ); try { @@ -623,25 +624,24 @@ public function testCreateCoupon22() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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' => TRUE, + 'discount_amount' => 2668, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["224ea208-e960-40e4-9cdc-126ff73bb6c4", "34028b22-6d75-49f6-b97e-6a5442513cc1"], + 'display_ends_at' => "2020-10-25T19:59:00.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => FALSE, 'is_public' => TRUE, - 'code' => "rF", - 'usage_limit' => 5901, - 'min_amount' => 9491, - 'storage_id' => "7394ee64-0f6a-4a07-841e-6303ead7e18b" + 'code' => "XHRXocL0a", + 'usage_limit' => 4146, + 'min_amount' => 6597, + 'storage_id' => "1d9aef80-9e5c-4c4e-809b-417c131f120e", + 'num_recipients_cap' => 5670 ] ); try { @@ -657,26 +657,25 @@ public function testCreateCoupon23() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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' => FALSE, + 'discount_amount' => 271, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["2554c02c-ea34-4659-a4eb-d7ca7fd43c17"], + 'display_starts_at' => "2025-02-02T18:36:48.000000Z", + 'display_ends_at' => "2024-01-04T03:34:47.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => TRUE, 'is_public' => TRUE, - 'code' => "4", - 'usage_limit' => 3336, - 'min_amount' => 5789, - 'storage_id' => "e0a172e3-3f23-4945-8bbe-5981d0ab5c65" + 'code' => "KTEIA1", + 'usage_limit' => 589, + 'min_amount' => 5799, + 'storage_id' => "079ff9c1-1766-48ad-b216-2c48c7f80667", + 'num_recipients_cap' => 9101 ] ); try { @@ -692,13 +691,26 @@ public function testCreateCoupon24() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 4040.0 + 'discount_amount' => 3201, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["619dfaab-8187-436c-b72b-e2b49d615746", "6790c1f9-d9d2-409d-9053-4154d115e4a0", "655b3f03-979e-4115-b71c-8253a1819563", "cbd73c2f-33ae-48e6-a0e4-8ce1fcd2dee9", "1d3cde0a-8412-42d8-8930-9f61ea093670", "53aa895b-c7e8-438d-8718-11eece17cba5", "356d653a-87bb-49d1-9470-20ed82944109", "7dd0c4e1-1845-49c8-b41b-253603093e9c", "2e777984-13ca-4f95-9d70-d678315aa7cd", "76fdf526-731f-450b-96f7-374273828a3f"], + 'discount_upper_limit' => 7957, + 'display_starts_at' => "2020-12-11T15:09:15.000000Z", + 'display_ends_at' => "2023-12-26T22:48:55.000000Z", + 'is_disabled' => TRUE, + 'is_hidden' => TRUE, + 'is_public' => TRUE, + 'code' => "twUXazpjq", + 'usage_limit' => 9720, + 'min_amount' => 5166, + 'storage_id' => "0d4699c5-20a5-4906-9245-b784ee0e53ea", + 'num_recipients_cap' => 9471 ] ); try { @@ -714,14 +726,27 @@ public function testCreateCoupon25() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 5234.0, - 'storage_id' => "b318c1ae-11bb-4926-b436-eb3370e78305" + 'discount_amount' => 7611, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["b71d8280-679e-4ca0-a7df-7da0b7ac8171", "5fb260ca-1c3b-4f92-abdb-d0c5febeff64", "ab2565e6-e382-486b-9ebf-2ed9faa51aa1", "99b05f8d-7cad-4720-a396-831a1eb855a7", "3f89c576-ba7c-45bc-9569-89a092e4d94d", "92631867-2286-4ba6-be42-f9708687f65a", "0a47aadc-41c1-45d9-82aa-1562dda1aae3", "38d4fc76-35d2-4a11-9b5a-4c7a3aabbd89", "17eabea4-4b61-4915-8933-dc8f3b417fb7", "87efc471-72eb-488c-b5bb-31a970bd77d1"], + 'description' => "pl5Gz36NQavWZXSE0IrKdpz0FXntwLwsP6PlvtKfS7zk6Hoi0oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0r", + 'discount_upper_limit' => 7758, + 'display_starts_at' => "2022-02-06T18:05:29.000000Z", + 'display_ends_at' => "2025-01-30T23:27:12.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => TRUE, + 'is_public' => FALSE, + 'code' => "Ac", + 'usage_limit' => 1247, + 'min_amount' => 8561, + 'storage_id' => "a6ec0773-59e2-4eb1-bb58-c80e67485d2e", + 'num_recipients_cap' => 3513 ] ); try { @@ -737,15 +762,13 @@ public function testCreateCoupon26() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 8727.0, - 'min_amount' => 2203, - 'storage_id' => "00a728ec-e896-46d2-9cd8-e4dee993b89b" + 'discount_percentage' => 6364.0 ] ); try { @@ -761,16 +784,14 @@ public function testCreateCoupon27() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 6612.0, - 'usage_limit' => 7666, - 'min_amount' => 2847, - 'storage_id' => "68524588-a469-403f-8dd0-2902327b4cab" + 'discount_percentage' => 6683.0, + 'num_recipients_cap' => 7425 ] ); try { @@ -786,17 +807,15 @@ public function testCreateCoupon28() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 8048.0, - 'code' => "0j1CI", - 'usage_limit' => 9139, - 'min_amount' => 8812, - 'storage_id' => "f8686f3d-bdb6-4d9d-94ca-f214ca063810" + 'discount_percentage' => 5134.0, + 'storage_id' => "45c1c951-4dad-4e85-961c-1d8c36420a6a", + 'num_recipients_cap' => 1722 ] ); try { @@ -812,18 +831,16 @@ public function testCreateCoupon29() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 6129.0, - 'is_public' => TRUE, - 'code' => "jXV2f", - 'usage_limit' => 8505, - 'min_amount' => 4187, - 'storage_id' => "4f3f253b-57b9-4024-ad7e-39d09cb349cf" + 'discount_percentage' => 3857.0, + 'min_amount' => 3319, + 'storage_id' => "e9a46b92-26a3-497c-a78a-b166a4db93af", + 'num_recipients_cap' => 8874 ] ); try { @@ -839,19 +856,17 @@ public function testCreateCoupon30() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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" + 'discount_percentage' => 6995.0, + 'usage_limit' => 4181, + 'min_amount' => 6808, + 'storage_id' => "5754ae7f-3909-48b4-976a-5c4c156c3ccb", + 'num_recipients_cap' => 1598 ] ); try { @@ -867,20 +882,18 @@ public function testCreateCoupon31() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 629.0, - 'is_disabled' => TRUE, - 'is_hidden' => TRUE, - 'is_public' => TRUE, - 'code' => "XLsbYmrfH", - 'usage_limit' => 1408, - 'min_amount' => 933, - 'storage_id' => "beeaeb57-00b6-4fa3-9fc1-c51021177765" + 'discount_percentage' => 6816.0, + 'code' => "T02GEDF", + 'usage_limit' => 6951, + 'min_amount' => 1772, + 'storage_id' => "3ad21380-1da9-4b9e-affa-bb30053c9b3e", + 'num_recipients_cap' => 797 ] ); try { @@ -896,21 +909,19 @@ public function testCreateCoupon32() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 4635.0, - 'display_ends_at' => "2023-12-10T00:55:04.000000Z", - 'is_disabled' => FALSE, - 'is_hidden' => TRUE, + 'discount_percentage' => 9913.0, 'is_public' => FALSE, - 'code' => "u9jSykyDM", - 'usage_limit' => 6165, - 'min_amount' => 5141, - 'storage_id' => "8e269f26-f402-4778-aadb-b7d1604dc668" + 'code' => "5UFuC5J", + 'usage_limit' => 3026, + 'min_amount' => 5154, + 'storage_id' => "13d29ad6-e761-40f9-86e6-0d3693fa4d6f", + 'num_recipients_cap' => 7049 ] ); try { @@ -926,22 +937,20 @@ public function testCreateCoupon33() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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, + 'discount_percentage' => 4601.0, 'is_hidden' => TRUE, - 'is_public' => FALSE, - 'code' => "qsNkUwp", - 'usage_limit' => 2564, - 'min_amount' => 8157, - 'storage_id' => "8a19749b-c16e-4fde-b84f-924ae4809762" + 'is_public' => TRUE, + 'code' => "Zu", + 'usage_limit' => 1837, + 'min_amount' => 7733, + 'storage_id' => "67c97b81-30e0-4ab6-83c1-2b3138d95277", + 'num_recipients_cap' => 5464 ] ); try { @@ -957,23 +966,21 @@ public function testCreateCoupon34() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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", + 'discount_percentage' => 1046.0, 'is_disabled' => TRUE, - 'is_hidden' => TRUE, - 'is_public' => FALSE, - 'code' => "5NaDqvIkEg", - 'usage_limit' => 6914, - 'min_amount' => 3797, - 'storage_id' => "298f0d91-6abf-4131-a947-894aa1e2916f" + 'is_hidden' => FALSE, + 'is_public' => TRUE, + 'code' => "Txm1b", + 'usage_limit' => 8831, + 'min_amount' => 3456, + 'storage_id' => "cb6792a8-2672-4af7-917b-7b4b21a385e8", + 'num_recipients_cap' => 9161 ] ); try { @@ -989,24 +996,22 @@ public function testCreateCoupon35() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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' => "TuFX", - 'usage_limit' => 6751, - 'min_amount' => 9718, - 'storage_id' => "e8d9374a-c281-46d4-b2eb-1699428f08b8" + 'discount_percentage' => 7172.0, + 'display_ends_at' => "2021-08-15T04:10:27.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => FALSE, + 'is_public' => TRUE, + 'code' => "75H", + 'usage_limit' => 2549, + 'min_amount' => 7608, + 'storage_id' => "c06ef196-cfa6-4359-8a4a-20edbc666fb3", + 'num_recipients_cap' => 6633 ] ); try { @@ -1022,15 +1027,23 @@ public function testCreateCoupon36() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 16.0, - 'is_shop_specified' => TRUE, - 'available_shop_ids' => ["3b0ac878-46b5-4918-a3ab-95d6aebe6e4d", "6941497d-cf5f-4d5e-a3b8-b3f565f89da3", "90edb614-dfa8-4361-9c9f-246b71a3a69d", "fe255ee3-b545-4049-a579-b2f8b3915f51"] + 'discount_percentage' => 8369.0, + 'display_starts_at' => "2024-05-16T05:43:47.000000Z", + 'display_ends_at' => "2025-04-20T05:48:29.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => TRUE, + 'is_public' => TRUE, + 'code' => "t5Sss", + 'usage_limit' => 4538, + 'min_amount' => 4585, + 'storage_id' => "ff2aa541-5a6a-4f18-8bd7-738d81c15685", + 'num_recipients_cap' => 9611 ] ); try { @@ -1046,16 +1059,24 @@ public function testCreateCoupon37() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 7034.0, - 'is_shop_specified' => TRUE, - '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" + 'discount_percentage' => 4090.0, + 'discount_upper_limit' => 8753, + 'display_starts_at' => "2024-02-12T04:28:50.000000Z", + 'display_ends_at' => "2026-01-22T08:17:26.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => FALSE, + 'is_public' => FALSE, + 'code' => "o6cvEGD", + 'usage_limit' => 4213, + 'min_amount' => 1382, + 'storage_id' => "60888fe1-8d1c-49d3-bd0e-4808b082592d", + 'num_recipients_cap' => 6009 ] ); try { @@ -1071,17 +1092,25 @@ public function testCreateCoupon38() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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" + 'discount_percentage' => 6322.0, + 'description' => "VVAwQqeQUNQCi45yyQTl9wTWmj", + 'discount_upper_limit' => 6746, + 'display_starts_at' => "2024-05-25T21:21:27.000000Z", + 'display_ends_at' => "2021-12-06T14:57:20.000000Z", + 'is_disabled' => TRUE, + 'is_hidden' => TRUE, + 'is_public' => TRUE, + 'code' => "WstjkwC6ll", + 'usage_limit' => 167, + 'min_amount' => 4917, + 'storage_id' => "68a6d684-b73a-4466-aafa-e94399c10b48", + 'num_recipients_cap' => 3264 ] ); try { @@ -1097,18 +1126,15 @@ public function testCreateCoupon39() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - '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" + 'discount_percentage' => 6000.0, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["3eafc484-fd30-4f34-8041-cf5c1e48b5c4", "f8e41956-b39a-4a45-a7aa-74153759b246", "ec88715c-cc6d-4555-a5e8-24e7dde250e9"] ] ); try { @@ -1124,19 +1150,16 @@ public function testCreateCoupon40() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 8262.0, - 'is_shop_specified' => FALSE, - '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" + 'discount_percentage' => 6438.0, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["b0c84f83-5289-4305-9b36-e430f8158ab5", "6eb06f21-e513-4e94-8dbc-ff28b50d702f", "de366758-764b-4c5a-ab7e-b6caefb54d43", "f85dc9bb-a8e2-4404-9614-49ad915a1b73", "9ff8110b-c94e-4b75-a982-6d718d72e4de", "5cdd7c7c-0715-4771-9629-2e641a188ad5"], + 'num_recipients_cap' => 7177 ] ); try { @@ -1152,20 +1175,17 @@ public function testCreateCoupon41() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 3592.0, + 'discount_percentage' => 8700.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' => "Qwp", - 'usage_limit' => 2617, - 'min_amount' => 4372, - 'storage_id' => "074bd6b9-0ba5-4b9f-a376-1830f8e26c18" + 'available_shop_ids' => ["4250e7d6-6864-4728-97c8-9d1ba702b73d", "e588a7c6-bd05-4dfb-92d6-b8023b5ace9a", "c42e521a-a2a2-4fc8-acfa-bd30c2d3cd04", "b6adf3f5-fdc9-4d2c-843d-48081a469111", "b182e4c6-63a1-4015-8b5f-1fcadfd8a590"], + 'storage_id' => "50a7ce5f-aaef-4b44-9765-865fe9491d15", + 'num_recipients_cap' => 2416 ] ); try { @@ -1181,21 +1201,18 @@ public function testCreateCoupon42() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 4996.0, + 'discount_percentage' => 4636.0, 'is_shop_specified' => 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' => "o3ZtB", - 'usage_limit' => 4429, - 'min_amount' => 5828, - 'storage_id' => "545f6b80-fa17-4944-a09b-673b175ddbb0" + 'available_shop_ids' => ["3fb00f20-4029-4d59-9401-d36408a4bf07", "1cbad2c4-a1f9-4c3a-91ba-b14070034d7e"], + 'min_amount' => 1749, + 'storage_id' => "fd5a42eb-b441-4bb8-8b06-402cfaeaacc8", + 'num_recipients_cap' => 4865 ] ); try { @@ -1211,22 +1228,19 @@ public function testCreateCoupon43() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 7313.0, - 'is_shop_specified' => TRUE, - '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' => FALSE, - 'code' => "880", - 'usage_limit' => 1602, - 'min_amount' => 9533, - 'storage_id' => "6d0eb481-9344-4ac5-aa88-0a402854fade" + 'discount_percentage' => 1965.0, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["58ba6ca8-8cd4-4859-a3f5-a492da7fd783", "16890673-47c1-41b1-927e-c15b4a208b4b", "2db0fbe9-d765-4ed1-b1ec-cfe40eb3ea69", "f9d2ca70-ec82-430b-83b3-6e80e75ac2bd", "166aa2a5-1b71-4d2e-a46f-9bd1c26a75b4", "0238d958-02f7-4ecc-8991-8e069cfd1c3c", "42bc480d-9644-40f3-8af1-f25ab0b48027", "b75133fb-c3ff-462a-a30a-b3bbaef19894", "835d8633-c207-4ada-ba2f-af46453a733e"], + 'usage_limit' => 8627, + 'min_amount' => 8231, + 'storage_id' => "af312d23-db1e-41b8-8893-14680c080c06", + 'num_recipients_cap' => 2935 ] ); try { @@ -1242,23 +1256,20 @@ public function testCreateCoupon44() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 2292.0, + 'discount_percentage' => 8498.0, 'is_shop_specified' => FALSE, - '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' => TRUE, - 'code' => "wm", - 'usage_limit' => 5860, - 'min_amount' => 4606, - 'storage_id' => "54038678-f3af-4939-88a5-9330ab25d64f" + 'available_shop_ids' => ["44780d0b-20ac-4f1f-878f-1b9fc07829ba", "92a476db-72e6-477e-87bf-1e24e2e97b2a"], + 'code' => "feAIGZfO7O", + 'usage_limit' => 3626, + 'min_amount' => 9330, + 'storage_id' => "e752e422-df53-4b09-a912-197230b035b8", + 'num_recipients_cap' => 4387 ] ); try { @@ -1274,24 +1285,21 @@ public function testCreateCoupon45() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 6352.0, - 'is_shop_specified' => 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, + 'discount_percentage' => 7744.0, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["d0adf8b2-97dc-4e2f-9117-0f8f38c3970a", "3f408c50-b551-4539-9a59-bf17ff9d29bc", "4770c815-eedc-4832-9240-6d8d85aca15b"], 'is_public' => TRUE, - 'code' => "zXIFX", - 'usage_limit' => 8794, - 'min_amount' => 5390, - 'storage_id' => "6fefa024-e1e2-47ea-b369-4a6963ace58f" + 'code' => "j0he", + 'usage_limit' => 1315, + 'min_amount' => 9777, + 'storage_id' => "f7d447f0-22fc-4ae3-9257-251235198c42", + 'num_recipients_cap' => 7845 ] ); try { @@ -1307,25 +1315,22 @@ public function testCreateCoupon46() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 974.0, + 'discount_percentage' => 8369.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, + 'available_shop_ids' => ["b42c1302-e854-4f03-af33-ed31ae9f2294", "bc7888bf-539e-4663-bd09-7d88ac57f25b", "3d011551-4ca0-4e1a-b49c-bf66eca1f362", "98d257ab-f295-4f7c-9043-86991ead4f40", "44d29f41-4dd4-418e-a266-6691ad99a445"], 'is_hidden' => TRUE, 'is_public' => FALSE, - 'code' => "rNxQgJ", - 'usage_limit' => 419, - 'min_amount' => 1970, - 'storage_id' => "0e3f20fd-d064-4eb1-92ab-5aea1c5941d2" + 'code' => "M8KooCtS", + 'usage_limit' => 62, + 'min_amount' => 2170, + 'storage_id' => "2bceb711-0222-4960-a4bd-ec942e1c2d20", + 'num_recipients_cap' => 5087 ] ); try { @@ -1341,26 +1346,161 @@ public function testCreateCoupon47() { $client = $this->newClient(); $request = new Request\CreateCoupon( - "95211c5b-07c2-4920-816c-7394f1f9625b", - "f", - "2020-04-14T11:16:32.000000Z", - "2020-09-04T21:17:15.000000Z", - "1330505e-bc9a-4de8-b068-7a07c009ebc6", + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", [ - 'discount_percentage' => 5956.0, + 'discount_percentage' => 6577.0, 'is_shop_specified' => TRUE, - '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, + 'available_shop_ids' => ["70e1d1e3-3da0-4c34-a29d-f76d5a60df11", "4c46df23-bc70-4264-aafb-a84bd4025018", "e5594943-73a2-47d4-ab88-08902f039766", "3b753cfc-1ddc-42ea-b1de-61c7001f32cb", "85657fbd-5f39-45a3-921a-a604f5d35eab", "bca12e92-a2c0-485e-9375-cb16e4cf2852"], + 'is_disabled' => TRUE, 'is_hidden' => FALSE, 'is_public' => FALSE, - 'code' => "ZqFQRMY", - 'usage_limit' => 1570, - 'min_amount' => 2282, - 'storage_id' => "adcdd6b7-7165-42c9-96bb-e192156d31b0" + 'code' => "0JIGIfZb0", + 'usage_limit' => 4602, + 'min_amount' => 21, + 'storage_id' => "889cf4a4-5fa3-45d1-8a1a-6a1a5e186d3f", + 'num_recipients_cap' => 4342 + ] + ); + 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 testCreateCoupon48() + { + $client = $this->newClient(); + $request = new Request\CreateCoupon( + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", + [ + 'discount_percentage' => 7433.0, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["bd5883d8-a982-42ae-9752-5ab74f32958d", "81bf00ef-fd62-4b5a-96c5-f96fb72db847", "640b98cc-dd91-4af6-b9db-4b726146cfd9", "229a6552-9b53-44db-a5d0-0e4cb618e71f", "6acfd9d5-087b-4b84-98ea-37c0bfe60957"], + 'display_ends_at' => "2026-06-03T16:21:30.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => FALSE, + 'is_public' => TRUE, + 'code' => "1Vfe", + 'usage_limit' => 3058, + 'min_amount' => 6961, + 'storage_id' => "570c8d48-1705-440f-b2b4-c42770f1ddf0", + 'num_recipients_cap' => 6800 + ] + ); + 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 testCreateCoupon49() + { + $client = $this->newClient(); + $request = new Request\CreateCoupon( + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", + [ + 'discount_percentage' => 6453.0, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["dfb306fa-359a-4aeb-a5a6-f062b9015fc8", "509563c3-1af1-49c1-a8e2-057c215d093c"], + 'display_starts_at' => "2021-09-06T12:12:46.000000Z", + 'display_ends_at' => "2021-10-02T10:09:01.000000Z", + 'is_disabled' => TRUE, + 'is_hidden' => FALSE, + 'is_public' => TRUE, + 'code' => "8", + 'usage_limit' => 1280, + 'min_amount' => 3521, + 'storage_id' => "49375371-4cfc-4da2-a616-2092c9438a8b", + 'num_recipients_cap' => 3596 + ] + ); + 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 testCreateCoupon50() + { + $client = $this->newClient(); + $request = new Request\CreateCoupon( + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", + [ + 'discount_percentage' => 2361.0, + 'is_shop_specified' => TRUE, + 'available_shop_ids' => ["844af104-58c3-4139-8713-dfb642ef0663", "9e81f249-2d22-42ad-925c-30209b330abb", "6a21ee49-a465-4845-b2c9-42fd1050083c", "e197a5f4-34c9-4abd-8ec0-bc57857210e9", "e7c7c621-66df-4a6c-bd3e-8c35c0163a21", "b953fd74-5104-4fc6-a4de-203e524e26b5", "cb4612e6-eb14-4277-819f-bb1187dbbb83"], + 'discount_upper_limit' => 317, + 'display_starts_at' => "2020-02-15T00:45:51.000000Z", + 'display_ends_at' => "2024-08-30T12:54:16.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => TRUE, + 'is_public' => TRUE, + 'code' => "XC", + 'usage_limit' => 5539, + 'min_amount' => 4843, + 'storage_id' => "0742a2b4-424f-40e5-8f59-6c4dd2413ce4", + 'num_recipients_cap' => 1832 + ] + ); + 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 testCreateCoupon51() + { + $client = $this->newClient(); + $request = new Request\CreateCoupon( + "a51826d4-ad25-4aae-a53a-f14706bf5a01", + "XAkdlmbDvPcxbP00J7QmpOVA7MePtYYSm3L3WBUYIGLXhu0DvMLxvuDjJfJxeesKkwbEHxkNigyccRVuXaxHAAztkflrbX507aitxdTcYjjCJVatXW3", + "2021-06-11T14:54:53.000000Z", + "2021-04-15T21:32:35.000000Z", + "69d3e088-87dd-49b3-ada1-7eac06fbc962", + [ + 'discount_percentage' => 7990.0, + 'is_shop_specified' => FALSE, + 'available_shop_ids' => ["3f451436-aae6-4f58-86ec-1c513e52cf6d", "6d0c064a-718e-4c98-8b39-387a7314a2b2", "389d9685-e199-41ba-9215-ad62bba9d18b", "8779c0ae-4dab-416e-8556-645df5cb1e33", "aa476246-e045-4189-bfd6-b47ce5673c21", "bf4460e0-814f-4c97-804d-7c4d13eaf17c", "ebfe1320-aacf-4e60-abee-a5ac88a76fe3"], + 'description' => "SgfpnmC2KuXyRgGfUfNENrDu8T1J2YZjgzjmCRB6BbdWS6JCIuNd5OFNrZXER72QaNrZpzYfcTDxwidoKxhgH4IlA44068ievlutMBS788il7UEqSzLy9xJxJq4hHbOAXXYVgVjKzFhmxuYV64qe5o2B2OlLXdk5kJbuw4YuJbyUdwtweakDyg0TFsZujDlCiTABlfIhphFt9MZHKK4Bljx7sJ424DF7dkePprAJ", + 'discount_upper_limit' => 9863, + 'display_starts_at' => "2020-06-04T20:41:21.000000Z", + 'display_ends_at' => "2020-12-08T06:26:13.000000Z", + 'is_disabled' => FALSE, + 'is_hidden' => TRUE, + 'is_public' => TRUE, + 'code' => "JLC9DlGjq", + 'usage_limit' => 1625, + 'min_amount' => 4707, + 'storage_id' => "0b64445b-81b5-4733-9b5c-ec6b7020e302", + 'num_recipients_cap' => 7174 ] ); try { diff --git a/tests/CreateCpmTransactionTest.php b/tests/CreateCpmTransactionTest.php index baaf927e..bdd5d411 100644 --- a/tests/CreateCpmTransactionTest.php +++ b/tests/CreateCpmTransactionTest.php @@ -8,9 +8,9 @@ public function testCreateCpmTransaction0() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "8poH65gFI1eD4xOb3KkBBL", - "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", - 6121.0 + "poRoPKUgWvYVa3Gv9xbfzv", + "eff2a7e7-b112-41bf-93e3-3c6f2d6e2ae8", + 9219.0 ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testCreateCpmTransaction1() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "8poH65gFI1eD4xOb3KkBBL", - "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", - 6121.0, + "poRoPKUgWvYVa3Gv9xbfzv", + "eff2a7e7-b112-41bf-93e3-3c6f2d6e2ae8", + 9219.0, [ - 'strategy' => "money-only" + 'strategy' => "point-preferred" ] ); try { @@ -45,11 +45,11 @@ public function testCreateCpmTransaction2() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "8poH65gFI1eD4xOb3KkBBL", - "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", - 6121.0, + "poRoPKUgWvYVa3Gv9xbfzv", + "eff2a7e7-b112-41bf-93e3-3c6f2d6e2ae8", + 9219.0, [ - 'request_id' => "96cc9c41-f4a1-488b-820b-c7fa5a5c2823", + 'request_id' => "63274829-d1f6-49e6-a688-9b87c609b7de", 'strategy' => "money-only" ] ); @@ -66,17 +66,18 @@ public function testCreateCpmTransaction3() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "8poH65gFI1eD4xOb3KkBBL", - "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", - 6121.0, + "poRoPKUgWvYVa3Gv9xbfzv", + "eff2a7e7-b112-41bf-93e3-3c6f2d6e2ae8", + 9219.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" => "{}"] + , ["jan_code" => "abc", "name" => "name1", "unit_price" => 100, "price" => 100, "quantity" => 1, "is_discounted" => FALSE, "other" => "{}"] ], - 'request_id' => "8ecf7882-4123-409e-bcae-6ae1c1a6bd6c", - 'strategy' => "money-only" + 'request_id' => "419d5176-c2a3-49f3-9ea1-e7fa815a75c6", + 'strategy' => "point-preferred" ] ); try { @@ -92,22 +93,15 @@ public function testCreateCpmTransaction4() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "8poH65gFI1eD4xOb3KkBBL", - "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", - 6121.0, + "poRoPKUgWvYVa3Gv9xbfzv", + "eff2a7e7-b112-41bf-93e3-3c6f2d6e2ae8", + 9219.0, [ 'metadata' => "{\"key\":\"value\"}", 'products' => [["jan_code" => "abc", "name" => "name1", "unit_price" => 100, "price" => 100, "quantity" => 1, "is_discounted" => FALSE, "other" => "{}"] , ["jan_code" => "abc", "name" => "name1", "unit_price" => 100, "price" => 100, "quantity" => 1, "is_discounted" => FALSE, "other" => "{}"] - , ["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' => "f7306339-7165-4108-a074-16331f4f3df3", + 'request_id' => "cb1c705a-0e88-4da3-8bda-93307b20cb66", 'strategy' => "money-only" ] ); @@ -124,21 +118,18 @@ public function testCreateCpmTransaction5() { $client = $this->newClient(); $request = new Request\CreateCpmTransaction( - "8poH65gFI1eD4xOb3KkBBL", - "8b38929d-fbf9-4afd-926d-9e7ad1dc4c58", - 6121.0, + "poRoPKUgWvYVa3Gv9xbfzv", + "eff2a7e7-b112-41bf-93e3-3c6f2d6e2ae8", + 9219.0, [ - 'description' => "JPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCP", + 'description' => "irdy", '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' => "859b5f2a-cb8e-4882-aee3-8d1c457c9345", - 'strategy' => "money-only" + 'request_id' => "55df9738-8e4e-42b5-a04e-c3b4ee665675", + 'strategy' => "point-preferred" ] ); try { diff --git a/tests/CreateCreditSessionTransactionTest.php b/tests/CreateCreditSessionTransactionTest.php new file mode 100644 index 00000000..2ac5f5e7 --- /dev/null +++ b/tests/CreateCreditSessionTransactionTest.php @@ -0,0 +1,83 @@ +newClient(); + $request = new Request\CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0 + ); + 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 testCreateCreditSessionTransaction1() + { + $client = $this->newClient(); + $request = new Request\CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0, + [ + 'request_id' => "2c826d8b-e412-4dbe-a759-328251097330" + ] + ); + 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 testCreateCreditSessionTransaction2() + { + $client = $this->newClient(); + $request = new Request\CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0, + [ + 'description' => "BddIYIaGsnHTfyj3vGhpYs6lE3PVxThCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiN", + 'request_id' => "637c48af-86f9-48ed-82e1-99558a467bfe" + ] + ); + 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 testCreateCreditSessionTransaction3() + { + $client = $this->newClient(); + $request = new Request\CreateCreditSessionTransaction( + "adc1965b-ba46-41c2-8dfc-c8ee6468fd6e", + 9780.0, + [ + 'shop_id' => "4d1e7adb-31c9-4ea0-b5b6-7310d8249eec", + 'description' => "IyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa6h6AAgB9jXehhbgsnyiHZ1n3qwk3r3QhfSXAhy6Q6NsE0G4ETHn0hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUg", + 'request_id' => "3c19993c-6f8f-4de2-b2ae-9871bf5118f1" + ] + ); + 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/CreateCustomerAccountTest.php b/tests/CreateCustomerAccountTest.php index e772a2ff..242b7fdb 100644 --- a/tests/CreateCustomerAccountTest.php +++ b/tests/CreateCustomerAccountTest.php @@ -8,7 +8,7 @@ public function testCreateCustomerAccount0() { $client = $this->newClient(); $request = new Request\CreateCustomerAccount( - "1bd95560-4dc2-4d80-a2f6-6688072d0b3f" + "835f1a89-8691-4df3-aab7-584d1e24c526" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testCreateCustomerAccount1() { $client = $this->newClient(); $request = new Request\CreateCustomerAccount( - "1bd95560-4dc2-4d80-a2f6-6688072d0b3f", + "835f1a89-8691-4df3-aab7-584d1e24c526", [ - 'external_id' => "7caRg" + 'external_id' => "nGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkO" ] ); try { @@ -41,10 +41,10 @@ public function testCreateCustomerAccount2() { $client = $this->newClient(); $request = new Request\CreateCustomerAccount( - "1bd95560-4dc2-4d80-a2f6-6688072d0b3f", + "835f1a89-8691-4df3-aab7-584d1e24c526", [ - 'account_name' => "ncONv8Kje2pUTWzADNDe87oiAkJDB6ZsUUsk6umIdkjysmBoCy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg28Msl4sq96mAewFZHEg2RF0uEHwK5Jbwu9JRSn5a7ymUxn4mfvD7ycu", - 'external_id' => "n86BZW4IWD5G" + 'account_name' => "NNAjB", + 'external_id' => "CYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3a" ] ); try { @@ -60,11 +60,11 @@ public function testCreateCustomerAccount3() { $client = $this->newClient(); $request = new Request\CreateCustomerAccount( - "1bd95560-4dc2-4d80-a2f6-6688072d0b3f", + "835f1a89-8691-4df3-aab7-584d1e24c526", [ - 'user_name' => "y4J15w0ovSrq2HjQnZoVWhOdLDSpe9mEjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzFPAF7SEHME8DlS2m5Kv5IbgTWsj7MinGr0IGEeLzU5ms0HjwVmUqLVvuFmzvx3MioePO7gkONNAjBCYm4KWEpCDEdkn0OKxjITuRCVadPy2BbYSAUfNgtCT3aJmzxxuQUVBryDZD3LHlYNS", - 'account_name' => "3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoaELlrJk6MRPKi62IzWH9emhQ0CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5LBba7yo5q8iS", - 'external_id' => "TBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWx" + 'user_name' => "JmzxxuQUVBryDZ", + 'account_name' => "3LHlYNS3c0MUvvhZyFdpqg4zFLwpBAFUZ73GCZjYfwcSTcjOL0y0KRT0zFenF09DVyQoa", + 'external_id' => "LlrJk6" ] ); try { diff --git a/tests/CreateCvsAuthorizationTest.php b/tests/CreateCvsAuthorizationTest.php new file mode 100644 index 00000000..ef1fc8cf --- /dev/null +++ b/tests/CreateCvsAuthorizationTest.php @@ -0,0 +1,77 @@ +newClient(); + $request = new Request\CreateCvsAuthorization( + "009b5207-ead3-4b25-bfc1-f0824b266d1a", + "3efc29ad-0881-40ca-b6b3-cbf83cc26c60", + 45428, + "famima", + "kw6yfFQ", + "c", + "HRn98CcSX" + ); + 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 testCreateCvsAuthorization1() + { + $client = $this->newClient(); + $request = new Request\CreateCvsAuthorization( + "009b5207-ead3-4b25-bfc1-f0824b266d1a", + "3efc29ad-0881-40ca-b6b3-cbf83cc26c60", + 45428, + "famima", + "kw6yfFQ", + "c", + "HRn98CcSX", + [ + 'topup_quota_id' => 2313 + ] + ); + 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 testCreateCvsAuthorization2() + { + $client = $this->newClient(); + $request = new Request\CreateCvsAuthorization( + "009b5207-ead3-4b25-bfc1-f0824b266d1a", + "3efc29ad-0881-40ca-b6b3-cbf83cc26c60", + 45428, + "famima", + "kw6yfFQ", + "c", + "HRn98CcSX", + [ + 'receiver_user_id' => "85b8af0e-9318-4bcb-a500-21862bb622b5", + 'topup_quota_id' => 6535 + ] + ); + 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/CreateExchangeTransactionTest.php b/tests/CreateExchangeTransactionTest.php index 36900103..a5a8c6ce 100644 --- a/tests/CreateExchangeTransactionTest.php +++ b/tests/CreateExchangeTransactionTest.php @@ -8,10 +8,10 @@ public function testCreateExchangeTransaction0() { $client = $this->newClient(); $request = new Request\CreateExchangeTransaction( - "a5067d30-2da2-404b-aff3-21cbbfe23a51", - "82b59381-c73f-45ea-ae62-1e2d716d363c", - "196f5c49-dd46-4df0-aca5-e91d91973ac4", - 4705 + "7532f26c-d2a6-414c-a89e-c8bbc90ca1d6", + "ff9c3de2-0cc8-457c-94de-d27ba2847867", + "d6e0a968-5b2c-46c0-a7b4-5c6c9e86db5b", + 5926 ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreateExchangeTransaction1() { $client = $this->newClient(); $request = new Request\CreateExchangeTransaction( - "a5067d30-2da2-404b-aff3-21cbbfe23a51", - "82b59381-c73f-45ea-ae62-1e2d716d363c", - "196f5c49-dd46-4df0-aca5-e91d91973ac4", - 4705, + "7532f26c-d2a6-414c-a89e-c8bbc90ca1d6", + "ff9c3de2-0cc8-457c-94de-d27ba2847867", + "d6e0a968-5b2c-46c0-a7b4-5c6c9e86db5b", + 5926, [ - 'request_id' => "3c302ccc-2e5f-44a0-99e2-eccd842d3d3b" + 'request_id' => "9ad190da-7e0e-4c53-aed6-46f860561158" ] ); try { @@ -47,13 +47,13 @@ public function testCreateExchangeTransaction2() { $client = $this->newClient(); $request = new Request\CreateExchangeTransaction( - "a5067d30-2da2-404b-aff3-21cbbfe23a51", - "82b59381-c73f-45ea-ae62-1e2d716d363c", - "196f5c49-dd46-4df0-aca5-e91d91973ac4", - 4705, + "7532f26c-d2a6-414c-a89e-c8bbc90ca1d6", + "ff9c3de2-0cc8-457c-94de-d27ba2847867", + "d6e0a968-5b2c-46c0-a7b4-5c6c9e86db5b", + 5926, [ - 'description' => "Mvlh9JCT1xGcQLRIyKzcfWhCzi1Z89pSvPCqCpyLyZq", - 'request_id' => "009743b5-a7fd-4c30-a691-3510e5264873" + 'description' => "qYiDQPFv2xIXm", + 'request_id' => "7e33e549-d7b4-49d0-a7ec-c13a756c6a50" ] ); try { diff --git a/tests/CreateExternalTransactionTest.php b/tests/CreateExternalTransactionTest.php index a61b1a3b..1df99f52 100644 --- a/tests/CreateExternalTransactionTest.php +++ b/tests/CreateExternalTransactionTest.php @@ -8,10 +8,10 @@ public function testCreateExternalTransaction0() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", - "e103bb09-335d-425d-9411-fab6f0bcab9c", - "c8abf1fb-bc08-446b-97c5-f8abaf064dda", - 2861 + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + "3fa2379c-6293-4a55-8990-f5cc94a3bb0e", + 4175 ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreateExternalTransaction1() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", - "e103bb09-335d-425d-9411-fab6f0bcab9c", - "c8abf1fb-bc08-446b-97c5-f8abaf064dda", - 2861, + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + "3fa2379c-6293-4a55-8990-f5cc94a3bb0e", + 4175, [ - 'done_at' => "2021-10-27T19:04:46.000000Z" + 'done_at' => "2023-01-30T23:32:34.000000Z" ] ); try { @@ -47,13 +47,13 @@ public function testCreateExternalTransaction2() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", - "e103bb09-335d-425d-9411-fab6f0bcab9c", - "c8abf1fb-bc08-446b-97c5-f8abaf064dda", - 2861, + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + "3fa2379c-6293-4a55-8990-f5cc94a3bb0e", + 4175, [ - 'request_id' => "48d73a4a-a118-4ef4-bce6-c7049d4cc8f6", - 'done_at' => "2023-11-05T03:17:32.000000Z" + 'request_id' => "990f50e9-ecfa-497f-b666-78015480b78b", + 'done_at' => "2025-08-24T01:52:10.000000Z" ] ); try { @@ -69,17 +69,17 @@ public function testCreateExternalTransaction3() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", - "e103bb09-335d-425d-9411-fab6f0bcab9c", - "c8abf1fb-bc08-446b-97c5-f8abaf064dda", - 2861, + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + "3fa2379c-6293-4a55-8990-f5cc94a3bb0e", + 4175, [ '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' => "0d76909d-f600-42a0-95d4-654dc4e31b4d", - 'done_at' => "2022-08-18T14:37:28.000000Z" + 'request_id' => "a40fb329-11d4-427c-9f1b-cf9acc1a9c98", + 'done_at' => "2026-04-25T10:10:51.000000Z" ] ); try { @@ -95,18 +95,18 @@ public function testCreateExternalTransaction4() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", - "e103bb09-335d-425d-9411-fab6f0bcab9c", - "c8abf1fb-bc08-446b-97c5-f8abaf064dda", - 2861, + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + "3fa2379c-6293-4a55-8990-f5cc94a3bb0e", + 4175, [ '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' => "71731cfe-ebab-43be-96bd-cf1ada493903", - 'done_at' => "2020-05-10T05:43:56.000000Z" + 'request_id' => "5a533d72-30e8-4590-aedc-1c5cfb747dfb", + 'done_at' => "2023-02-09T06:58:10.000000Z" ] ); try { @@ -122,26 +122,17 @@ public function testCreateExternalTransaction5() { $client = $this->newClient(); $request = new Request\CreateExternalTransaction( - "0d6a41c4-3c4e-4d22-bdb2-983f7c41ed3f", - "e103bb09-335d-425d-9411-fab6f0bcab9c", - "c8abf1fb-bc08-446b-97c5-f8abaf064dda", - 2861, + "f1f108ae-d050-4b36-b4ee-2726df63f8f1", + "fa068c0c-0448-4810-ae0a-e3756bdb906f", + "3fa2379c-6293-4a55-8990-f5cc94a3bb0e", + 4175, [ - 'description' => "v3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDB", + 'description' => "0kbVP56HQVtzlq6MKoB", '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' => "3416b632-e5b8-4476-8544-2f73b7658696", - 'done_at' => "2020-10-07T22:23:21.000000Z" + 'request_id' => "790c05fd-d7be-4ae5-8a7a-f21f79369c0f", + 'done_at' => "2021-08-27T09:40:58.000000Z" ] ); try { diff --git a/tests/CreateOrganizationTest.php b/tests/CreateOrganizationTest.php index 13e5daf8..dbe8a67a 100644 --- a/tests/CreateOrganizationTest.php +++ b/tests/CreateOrganizationTest.php @@ -8,11 +8,11 @@ public function testCreateOrganization0() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com" + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com" ); try { $response = $client->send($request); @@ -27,13 +27,13 @@ public function testCreateOrganization1() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com", + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com", [ - 'contact_name' => "rNeMACItmOkY1pUONfZUthj8CTdPwk2g7DYhFuXWtax2gH7mosTYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sS" + 'contact_name' => "UedGEpNztrZH4AytTHxVvHVgjPvTnTRbAGxJFBzSBdN9rH7" ] ); try { @@ -49,14 +49,14 @@ public function testCreateOrganization2() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com", + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com", [ 'bank_account_holder_name' => "」", - 'contact_name' => "2djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9Fi73fT2ekfbMypSoZArmvOOmVqy7LHITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCGBFwcqnjKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BT" + 'contact_name' => "Ml90EeuZgaP20pyyEjfyZn" ] ); try { @@ -72,15 +72,15 @@ public function testCreateOrganization3() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com", + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com", [ - 'bank_account' => "16", - 'bank_account_holder_name' => "/", - 'contact_name' => "bUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6t46b4EgFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANt" + 'bank_account' => "156", + 'bank_account_holder_name' => "0", + 'contact_name' => "VqBZqNRFUo9BhqQxq9FR8VF2gH7EAnlFEgMmyi8jmBN0T80aLvrKoRyTXgP" ] ); try { @@ -96,16 +96,16 @@ public function testCreateOrganization4() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com", + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com", [ 'bank_account_type' => "other", - 'bank_account' => "335868", - 'bank_account_holder_name' => "キ", - 'contact_name' => "I9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna0lYNQbEnbMVdbi" + 'bank_account' => "841557", + 'bank_account_holder_name' => ")", + 'contact_name' => "RyqlWwyCNVezTDDCUN00F2Vhn3XqmCSMDzeEDKcNHBIUBy90lb" ] ); try { @@ -121,17 +121,17 @@ public function testCreateOrganization5() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com", + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com", [ - 'bank_branch_code' => "107", - 'bank_account_type' => "current", - 'bank_account' => "47496", - 'bank_account_holder_name' => "/", - 'contact_name' => "gHJA1FfneXYRV1FBu9VqwmK2QWEkaIk3Nf30" + 'bank_branch_code' => "", + 'bank_account_type' => "other", + 'bank_account' => "955", + 'bank_account_holder_name' => ")", + 'contact_name' => "LgJllatyS0exoVZwnX2Y3MjJVkSKFu78PD8Nsi0ghqRiHIikuwLQAi0Yor" ] ); try { @@ -147,18 +147,18 @@ public function testCreateOrganization6() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com", + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com", [ - 'bank_branch_name' => "AeRoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWp", - 'bank_branch_code' => "088", - 'bank_account_type' => "current", - 'bank_account' => "50", - 'bank_account_holder_name' => " ", - 'contact_name' => "XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YBOfulEIFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKACRqDnzgekX1v8dvD0ApeDNVXLZhDHmMPohPl8jvZE0kmWyBRnvtcRhoAfyfPvqb" + 'bank_branch_name' => "HLBFs", + 'bank_branch_code' => "940", + 'bank_account_type' => "other", + 'bank_account' => "058853", + 'bank_account_holder_name' => "\\", + 'contact_name' => "b43g0nK7tb3btHVGJJQejQb3sdWfi2Z2Wvmx0ZqLEwxwj8U4A4K" ] ); try { @@ -174,19 +174,19 @@ public function testCreateOrganization7() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com", + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com", [ - 'bank_code' => "2027", - 'bank_branch_name' => "VyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLsp", - 'bank_branch_code' => "770", - 'bank_account_type' => "saving", - 'bank_account' => "5", - 'bank_account_holder_name' => ")", - 'contact_name' => "crgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRS" + 'bank_code' => "", + 'bank_branch_name' => "BQdvuQb5QYDYt7CyctlhtAXqf6u", + 'bank_branch_code' => "", + 'bank_account_type' => "current", + 'bank_account' => "60", + 'bank_account_holder_name' => "ホ", + 'contact_name' => "3iPqRhb6DnnO4ty38IkhtTfaQWLqh" ] ); try { @@ -202,20 +202,20 @@ public function testCreateOrganization8() { $client = $this->newClient(); $request = new Request\CreateOrganization( - "5o7r", - "N4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOK", - ["4022ff6f-fccb-47a5-9d07-eaa6d6a3f800", "4713becd-d03f-4a3f-bda0-5f3cb9a04cbb", "2b384f1f-fa33-4542-ab1a-c969d952c63e", "fb2eeb00-01d1-4591-b5ca-fc4378e73e5e", "ab5ad517-5c5f-42ce-8c55-39514c49291b", "6dd04350-79ff-495c-8a70-c9448827cccf", "3b66b7ef-8f47-48ce-926b-2d3e46389901", "ba524d42-7aef-47db-834b-0c9c6bedb4f8", "cbafdd1e-c784-4654-b600-ed8aba665e1e"], - "ABwe33UWeS@zKCZ.com", - "wv4PwJOyIc@ULWz.com", + "ZhxLtCHCm7yUf", + "m7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxVquVYsbDyysRisRQ9ectqoj4yKOsEPCrpQPvSjUDltH57ysDpO4lTbJ9dqwKn5NSHIJ7mbc5qbOnYCYxA4AjI47p6qtIsaCpt80GzH1FRWe6zLcwMHae", + ["e7365805-8406-4ac6-8358-4cf14b85d63f", "1d329980-788e-418e-9b08-9ef72d697ac1", "b6afc3d9-867b-4237-bc35-25734bb8f484", "a2a765fd-cb1e-4f94-b4a5-498fdec32aab", "55ebcc3f-a616-4e9f-91c4-d53686afb8a4", "0aa1fcac-7d89-4787-9341-71e82ab925b4", "c3800f18-f180-4631-9ce6-ff3d754881da", "b892eae9-c35f-4040-ba29-931608b591e9"], + "84vybd1Jsf@0jR3.com", + "rzbwtxyn2F@Ah1z.com", [ - 'bank_name' => "9NZATmh", - 'bank_code' => "4867", - 'bank_branch_name' => "mf", + 'bank_name' => "FbA6TsT4rGSzhCtzrrQIFeK35Z3EF7SWnL", + 'bank_code' => "", + 'bank_branch_name' => "5qkYPGTd8wILW", 'bank_branch_code' => "", 'bank_account_type' => "current", - 'bank_account' => "", - 'bank_account_holder_name' => "0", - 'contact_name' => "9Lp665rg0d7eGITtIklkYFTO7OJe9dSEOGALN8S7z1KForIQgwx8oosJLK5Rq67VXMpZGMSz7kvOMHYRjzAZw05Ty0nenwzHOaIVwMTjPFMGevwVMeZt8EqIvyxvlj5Ka" + 'bank_account' => "62154", + 'bank_account_holder_name' => " ", + 'contact_name' => "Vo6kwtt0eE996vZBp0zzwPN5DIhcy9tg03Xeu2UN5sKl9fYJxmaO84WKiqpzyFw" ] ); try { diff --git a/tests/CreatePaymentTransactionTest.php b/tests/CreatePaymentTransactionTest.php index 97b48fcd..a326a0bd 100644 --- a/tests/CreatePaymentTransactionTest.php +++ b/tests/CreatePaymentTransactionTest.php @@ -8,10 +8,10 @@ public function testCreatePaymentTransaction0() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "ed340ee9-cdf1-4c08-89fb-8c27d552b262", - "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - 57 + "68dcc9c2-8238-482a-a05a-6cd1eebdb16d", + "8d4be100-f3e8-410a-bfd8-eb48fcbcc1a5", + "c4ac4a92-7a8d-4ec7-8ad3-b97d1b07a123", + 9814 ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreatePaymentTransaction1() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "ed340ee9-cdf1-4c08-89fb-8c27d552b262", - "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - 57, + "68dcc9c2-8238-482a-a05a-6cd1eebdb16d", + "8d4be100-f3e8-410a-bfd8-eb48fcbcc1a5", + "c4ac4a92-7a8d-4ec7-8ad3-b97d1b07a123", + 9814, [ - 'coupon_id' => "76591b43-9794-4d8b-807c-7fa2f592dffe" + 'coupon_id' => "d59b8d17-1967-4cd6-a73b-438302099884" ] ); try { @@ -47,13 +47,13 @@ public function testCreatePaymentTransaction2() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "ed340ee9-cdf1-4c08-89fb-8c27d552b262", - "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - 57, + "68dcc9c2-8238-482a-a05a-6cd1eebdb16d", + "8d4be100-f3e8-410a-bfd8-eb48fcbcc1a5", + "c4ac4a92-7a8d-4ec7-8ad3-b97d1b07a123", + 9814, [ 'strategy' => "money-only", - 'coupon_id' => "89da56aa-edbe-4684-aeec-e9f45c36a8fb" + 'coupon_id' => "672986f3-e6b3-440f-8f51-104d936c06e4" ] ); try { @@ -69,14 +69,14 @@ public function testCreatePaymentTransaction3() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "ed340ee9-cdf1-4c08-89fb-8c27d552b262", - "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - 57, + "68dcc9c2-8238-482a-a05a-6cd1eebdb16d", + "8d4be100-f3e8-410a-bfd8-eb48fcbcc1a5", + "c4ac4a92-7a8d-4ec7-8ad3-b97d1b07a123", + 9814, [ - 'request_id' => "7b2377d8-99ec-4cc7-9fb6-6fdda8df1525", - 'strategy' => "money-only", - 'coupon_id' => "31ac8e7e-4561-4107-a84e-bde370e3e166" + 'request_id' => "c8aa6248-d9f1-4e5a-8c92-f56c3254b000", + 'strategy' => "point-preferred", + 'coupon_id' => "9be9b330-63b1-4186-bd77-b1475a6b1196" ] ); try { @@ -92,20 +92,16 @@ 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, + "68dcc9c2-8238-482a-a05a-6cd1eebdb16d", + "8d4be100-f3e8-410a-bfd8-eb48fcbcc1a5", + "c4ac4a92-7a8d-4ec7-8ad3-b97d1b07a123", + 9814, [ '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' => "a8b0c5b2-de32-4150-abf2-1890b5134305", - 'strategy' => "money-only", - 'coupon_id' => "6db53240-3aa5-4b2c-acfc-4573e343977b" + 'request_id' => "c246e6f1-0482-48cf-9f8c-5d155ccee4a7", + 'strategy' => "point-preferred", + 'coupon_id' => "eccdf35f-458a-4025-aeb2-2e6a8561e5c9" ] ); try { @@ -121,26 +117,20 @@ public function testCreatePaymentTransaction5() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "ed340ee9-cdf1-4c08-89fb-8c27d552b262", - "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - 57, + "68dcc9c2-8238-482a-a05a-6cd1eebdb16d", + "8d4be100-f3e8-410a-bfd8-eb48fcbcc1a5", + "c4ac4a92-7a8d-4ec7-8ad3-b97d1b07a123", + 9814, [ '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' => "fe5cdccb-1bd7-450e-99f8-9e470c869c1f", + 'request_id' => "2dd48ea9-1946-44f3-9707-95e2e03db3ef", 'strategy' => "money-only", - 'coupon_id' => "1bb43774-8ad1-4ea0-af6a-aeb4abf1e64f" + 'coupon_id' => "792b9e62-86ab-4513-8e70-ded105764292" ] ); try { @@ -156,12 +146,12 @@ public function testCreatePaymentTransaction6() { $client = $this->newClient(); $request = new Request\CreatePaymentTransaction( - "ed340ee9-cdf1-4c08-89fb-8c27d552b262", - "bc8c30ba-25fc-4c51-9c33-5d4de972d2d1", - "e93012a1-cd8c-4d04-922f-a6ff3627a3a4", - 57, + "68dcc9c2-8238-482a-a05a-6cd1eebdb16d", + "8d4be100-f3e8-410a-bfd8-eb48fcbcc1a5", + "c4ac4a92-7a8d-4ec7-8ad3-b97d1b07a123", + 9814, [ - 'description' => "VmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKeNp7Z6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep", + 'description' => "anT6PszkN335U1t4DYsuiE88p3Hog0k8dxuKgCFI0Qv1brn8ATMTNMMEyVApkaDeYuOtBoCZgc4gwc8RSE7B5wsqfAkho5yO5EQGpb9AHk6UF1UjWUyw97H5Wi0UlM5hWRopq8fm3QjwrUJDS6QIEgbGEOQG1PZp7fjd91zgh1RHHtL55R7YEprCJ0", '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" => "{}"] @@ -169,14 +159,10 @@ public function testCreatePaymentTransaction6() , ["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' => "134750bb-b7e5-40c8-aece-2079c9f9cedc", - 'strategy' => "money-only", - 'coupon_id' => "dc7c1a06-09b4-4efa-b9db-5107092db159" + 'request_id' => "5dbf4334-f093-479d-9616-88d1690de4ad", + 'strategy' => "point-preferred", + 'coupon_id' => "3a0f7000-c5cc-495a-afa3-1587b29343d7" ] ); try { diff --git a/tests/CreatePaymentTransactionWithBillTest.php b/tests/CreatePaymentTransactionWithBillTest.php index eee6ba61..3cf4a44a 100644 --- a/tests/CreatePaymentTransactionWithBillTest.php +++ b/tests/CreatePaymentTransactionWithBillTest.php @@ -8,8 +8,8 @@ public function testCreatePaymentTransactionWithBill0() { $client = $this->newClient(); $request = new Request\CreatePaymentTransactionWithBill( - "05c27c83-161f-495a-aaf3-9027f8a00157", - "5fc53b74-229f-40ba-9ed9-cab10690c928" + "f388a16d-ec22-440c-873a-03f6168a7404", + "09b87654-5971-48ff-90bf-35884391544c" ); try { $response = $client->send($request); @@ -24,10 +24,10 @@ public function testCreatePaymentTransactionWithBill1() { $client = $this->newClient(); $request = new Request\CreatePaymentTransactionWithBill( - "05c27c83-161f-495a-aaf3-9027f8a00157", - "5fc53b74-229f-40ba-9ed9-cab10690c928", + "f388a16d-ec22-440c-873a-03f6168a7404", + "09b87654-5971-48ff-90bf-35884391544c", [ - 'strategy' => "money-only" + 'strategy' => "point-preferred" ] ); try { @@ -43,11 +43,11 @@ public function testCreatePaymentTransactionWithBill2() { $client = $this->newClient(); $request = new Request\CreatePaymentTransactionWithBill( - "05c27c83-161f-495a-aaf3-9027f8a00157", - "5fc53b74-229f-40ba-9ed9-cab10690c928", + "f388a16d-ec22-440c-873a-03f6168a7404", + "09b87654-5971-48ff-90bf-35884391544c", [ - 'request_id' => "0b232386-c58b-4857-a92a-0c5cc8f09147", - 'strategy' => "point-preferred" + 'request_id' => "32ad195b-bdd1-4d77-a106-b05a65cb7602", + 'strategy' => "money-only" ] ); try { @@ -63,11 +63,11 @@ public function testCreatePaymentTransactionWithBill3() { $client = $this->newClient(); $request = new Request\CreatePaymentTransactionWithBill( - "05c27c83-161f-495a-aaf3-9027f8a00157", - "5fc53b74-229f-40ba-9ed9-cab10690c928", + "f388a16d-ec22-440c-873a-03f6168a7404", + "09b87654-5971-48ff-90bf-35884391544c", [ 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "3e1ce7f5-88ff-44bf-a263-40aea121a8e6", + 'request_id' => "46803cf6-7dcf-4fee-9ef6-fc366fbb69b7", 'strategy' => "money-only" ] ); diff --git a/tests/CreateShopTest.php b/tests/CreateShopTest.php index 050c283c..dbafaf86 100644 --- a/tests/CreateShopTest.php +++ b/tests/CreateShopTest.php @@ -8,7 +8,7 @@ public function testCreateShop0() { $client = $this->newClient(); $request = new Request\CreateShop( - "BEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFu" + "vtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmf" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testCreateShop1() { $client = $this->newClient(); $request = new Request\CreateShop( - "BEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFu", + "vtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmf", [ - 'organization_code' => "-7Vh--3--Ez-6-zg" + 'organization_code' => "jLob-H4-X-495StP-1oY-oK78LG2" ] ); try { @@ -41,10 +41,10 @@ public function testCreateShop2() { $client = $this->newClient(); $request = new Request\CreateShop( - "BEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFu", + "vtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmf", [ - 'shop_external_id' => "qeTxBrSdGB4t2pP3Ko", - 'organization_code' => "P-13i--OcHYW-R-" + 'shop_external_id' => "IQgwx8oosJLK5Rq67VXMpZGMSz7k", + 'organization_code' => "-Ork-w6nh57--5l" ] ); try { @@ -60,11 +60,11 @@ public function testCreateShop3() { $client = $this->newClient(); $request = new Request\CreateShop( - "BEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFu", + "vtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmf", [ - 'shop_email' => "Gp1Rn3U4KQ@sAmd.com", - 'shop_external_id' => "QrUihNu2f4606Zw3XOfvqGL", - 'organization_code' => "65Fg8STCN6Tc-P0-h" + 'shop_email' => "t8EqIvyxvl@j5Ka.com", + 'shop_external_id' => "qxA7HuqvdSNv", + 'organization_code' => "Q24-hS-Xw8u0Ph2Nc97g-LP" ] ); try { @@ -80,12 +80,12 @@ public function testCreateShop4() { $client = $this->newClient(); $request = new Request\CreateShop( - "BEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFu", + "vtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmf", [ - 'shop_tel' => "027-3119057", - 'shop_email' => "J7JGBC1o5R@c96w.com", - 'shop_external_id' => "VrWrKd8Zckn", - 'organization_code' => "--KfDWMg2-2X--K7qE6-38JgxL1S-6-M" + 'shop_tel' => "0776-483198", + 'shop_email' => "l8dtzcqD6r@qwGD.com", + 'shop_external_id' => "VRdojGjig", + 'organization_code' => "8-OH-76-" ] ); try { @@ -101,13 +101,13 @@ public function testCreateShop5() { $client = $this->newClient(); $request = new Request\CreateShop( - "BEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFu", + "vtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmf", [ - 'shop_address' => "xtHaQbqrekxj6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEdpqCcPOpWjivoOnvdw0Yvld3IeJyhTlRgTT2NxSiphZRlLoLjMmLSHQhe4tHPdlvKxC8QojNKN0zqICt7BPEI", - 'shop_tel' => "061-5089-9188", - 'shop_email' => "xaPzoaDv6U@6SXL.com", - 'shop_external_id' => "Had9cOSRej1Twb2rvpiwJLSyh", - 'organization_code' => "-c8-Zb-56--B7-k---p--SOd8" + 'shop_address' => "ElkSct56tB3QvYjy8mUgDyXQYOSshpGMCke10fApKjBHnAmdlKiUj9JqianI8FqIXqzelGZDONUAJfl2HMto7yaW0Gkt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20f", + 'shop_tel' => "08856-571", + 'shop_email' => "4sfxVOVqIg@ogob.com", + 'shop_external_id' => "lTBvrKruisPGcjRxKz0hnHtPEmOFzy", + 'organization_code' => "6--U" ] ); try { @@ -123,14 +123,14 @@ public function testCreateShop6() { $client = $this->newClient(); $request = new Request\CreateShop( - "BEPErYjV24xKSbfZiVFE1mx2zGT1xfUftI30JyBIPqdCDvWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFu", + "vtcRhoAfyfPvqbgkbgVyEBxJxS2dp5fON6g3h5b1QYmVCtk78JxdSgtNZkgpDcQrvPvYu9rBGsdWvnLspaw0X1BOuUcrgAIrlVAxUxxoJ3m2cOYFN3fJYwkLiuasNI3TQ4Ubb8U4LoGEUFzMVQ4l9WdfwN1GBXrbSDIYZlYLOis5sBRV50E243Lt7Q0CkQGlHLmFUomkHrvNClWFSWTgMn5wd60p6qorRSF9NZATmhqoWmf", [ - 'shop_postal_code' => "3776878", - 'shop_address' => "F0T8Nh7eoO6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6GGJ1GXo5UP", - 'shop_tel' => "0096-533", - 'shop_email' => "rEGcY5I6vY@JqEc.com", - 'shop_external_id' => "nsSsP2ceIvKP9bgYanQbVQM9Z6RG0kCsPd", - 'organization_code' => "QQ-31c97F4v-OahJ" + 'shop_postal_code' => "859-9259", + 'shop_address' => "UwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0Y", + 'shop_tel' => "02589937760", + 'shop_email' => "VOxZ4jRFNa@6hoB.com", + 'shop_external_id' => "ihdHvejLf7HUNUhM", + 'organization_code' => "9-W-eN67-3" ] ); try { diff --git a/tests/CreateShopV2Test.php b/tests/CreateShopV2Test.php index d821190d..c444c874 100644 --- a/tests/CreateShopV2Test.php +++ b/tests/CreateShopV2Test.php @@ -8,7 +8,7 @@ public function testCreateShopV20() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE" + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testCreateShopV21() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE", + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W", [ - 'can_topup_private_money_ids' => ["1d4fc23d-35fb-42ba-9f31-bbe80da3a8bd", "b7523360-3ac5-4c0c-8786-fda0cdbda3bc", "6dfc5bb2-db27-49c5-8691-f76ba0a75deb", "c84572dd-065e-440c-9032-ba0dbc6193ae", "2d58df56-9425-4008-9d49-79167295efd0", "2b10f1f9-aa02-473e-b77b-5d48383aaa3e", "4c403e89-a085-4557-b724-efc593789e5e", "3b7a5ae5-91a7-4d5c-b7a8-a9a9b52a70fe"] + 'can_topup_private_money_ids' => ["99fb2b87-b800-45d5-9ccc-a84cd86ff4ab", "cc4085d1-2f7c-4a94-9c9b-99c2cefbcc0e", "f7381f1c-957b-4322-817c-cf890b8911b3", "710a7568-4bde-447a-83a2-1f5ab13d5bdb", "645f2215-67c7-42a5-bf7c-d8b3c6e508b5"] ] ); try { @@ -41,10 +41,10 @@ public function testCreateShopV22() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE", + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W", [ - 'private_money_ids' => ["d8dfba6b-43c2-48b9-badd-8e207b381308", "95937bbc-621f-4d12-8229-9642fe742928", "8c2074b1-389e-4d18-9983-fd4e371fac2f", "bc376943-66ec-4e7f-933a-ebc5709d6830"], - 'can_topup_private_money_ids' => ["b439f16e-a33b-4838-b7c1-c6332fafc38a", "a7547d92-2f06-4e89-b00c-f76c863ce2b6", "16e5e3c0-e10b-4176-9cdb-f773338d9290", "14f655f0-d85c-46be-9b3f-34ff5258974e", "1c97342a-7014-443b-9bac-4fdd6f01a7d7", "9b7ce308-d6bf-46c8-b988-3f755e696e38", "ab3091ae-39f8-48b4-99a6-42dff95c9471", "5a68800c-8596-4032-bc92-26edac99e578"] + 'private_money_ids' => ["10f8bb0b-6150-4850-be7e-afeed12d3f57", "fefb5b6c-16cd-4e51-acaa-66bb1a1d2315", "4c6d4c4f-354f-48b6-9fa7-f68ad4a56535", "912fe71a-3649-4cc6-9772-67078b3b8a49", "67b4c1b1-040b-400d-824a-11aa0ff2abcd", "a3ca8fa7-692c-4709-be9d-1f69e258a2d7", "d49f8cd0-1c76-4ab5-9309-efe4e2562da4", "2d9d1396-bdc1-40a0-a2a8-c45521106820"], + 'can_topup_private_money_ids' => ["ee92a2d7-3d14-46f4-a11b-0336af30c5b8", "bb5eccf6-eb1b-4009-a128-cf0c31126e86"] ] ); try { @@ -60,11 +60,11 @@ public function testCreateShopV23() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE", + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W", [ - 'organization_code' => "-RL--v--7973-gZsa-t0", - 'private_money_ids' => ["c646f284-8614-409f-ab10-ee8d46d030ff", "5f07daa2-0f0b-4576-a7f7-f24da1c66764", "0a3ffcfd-7f43-4336-99f3-a41a64c3c9a5", "0e6ebc85-941b-4a51-962a-3506fa317942", "37057106-964d-4406-b682-c33186778905", "786d25b5-b842-4d53-82cc-ae5222df5154", "675ac042-2fb4-449c-b09c-3d689daa9bf0", "4ce7836a-ff62-46de-b402-e7018b5851b6"], - 'can_topup_private_money_ids' => ["22c7329d-8dab-491d-91fd-d5849fa8b21c", "440b88ff-2ba0-4dc8-970e-6365cf4ab4af", "2b09da44-002e-4da8-8bac-b58320d33981", "77b88c78-bbde-4bd8-96e4-081f1feb6bc5", "dc6a7fe7-e426-4f8a-a0b3-574fa019c6ff", "86b32d97-e378-4efb-a8df-4647f63b846c", "94418ef3-8e5a-46e1-9624-9d53c0a80e3f"] + 'organization_code' => "24AF---y", + 'private_money_ids' => ["13b87373-2ffb-44c3-8dd5-9fcf1ee4d998", "5d4a8ae5-bdd3-4c49-8c20-a10e0d40ede9"], + 'can_topup_private_money_ids' => ["505cbf63-664b-450d-a43d-8e4a76f6ac75", "b8598991-8892-462e-a750-c1cd64fa7968", "36906701-539b-46a3-ab62-684ee7a0971f", "d8567a8a-2b57-4f14-a72a-e9078e9a16b4", "ca14b518-5a80-4f3f-b478-32b534448dec", "3d7d365b-9714-49f0-9421-d31962b5a9e9", "c2b7521c-a0ab-4660-ba1a-8c65d9219f6c", "51799888-5578-4b7f-b68e-bb7d45c517da", "7afbd6f7-2ab3-4dc1-8e5d-ebeb58937524", "62e9f9a7-3ddf-457b-b2ae-0a04a7c92ce5"] ] ); try { @@ -80,11 +80,11 @@ public function testCreateShopV24() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE", + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W", [ - 'external_id' => "joQ6ff", - 'organization_code' => "37a0EMxE15GAS-ggI81--O2-t", - 'private_money_ids' => ["4b2a7e91-c6c6-4def-8b62-952a5f1622b7"], + 'external_id' => "MSnigb4Yb3t6kmv", + 'organization_code' => "bVso1r--0-mnj-Q", + 'private_money_ids' => ["cd36c7b3-b42c-4190-824e-605ba78a956e", "248bb91d-a4d0-46ca-a0af-a0ef820abc23"], 'can_topup_private_money_ids' => [] ] ); @@ -101,13 +101,13 @@ public function testCreateShopV25() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE", + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W", [ - 'email' => "jYgx3gTJKy@6dBb.com", - 'external_id' => "YYVRZ4jdyfDGYQa0QPCC60HT399N8hk", - 'organization_code' => "---ZA7o454H8-3--2-P-92p-h-F7X3u", - 'private_money_ids' => ["a360186d-7e10-49c9-b1e4-2ba77c3b3998", "5ac313ed-69c0-4976-9fa0-75baa08f82d4", "94ea973c-8356-4a38-9ed2-c042ff96f8fa", "d8341aa3-8899-4d1a-9f70-6a15390ea6de"], - 'can_topup_private_money_ids' => ["bcddb5b0-3380-46e7-aa69-b1781ae93bf3", "b2277304-e182-4b99-8b5a-9510530aa3d7", "93bd386f-2155-4fab-93e5-d44f4fef0152", "340a4a3a-bacc-41b9-9438-20a31ed476ad", "1ee4c4d1-219f-4e3e-8476-e93914dd405b", "1a248e54-600e-4dd7-b3df-5c043da5762f", "0589a6f4-4aff-4fef-976e-59f20c10f216", "4d0bbbf5-94b5-4fc4-bd01-5f2e0cd2aef8"] + 'email' => "CH10GQb96J@zcef.com", + 'external_id' => "3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HE", + 'organization_code' => "J--wZTo", + 'private_money_ids' => ["b965356c-c5fe-4b2a-b2ed-0511fa884138", "ced19f17-9f17-486e-a7e0-26a1e3699168", "3e48325c-8d5d-4909-ad68-0357259cc6ed", "b91eeb96-906c-44c4-83b5-88df8fae0ca6", "52008481-fa2a-403f-9d41-1d274fa170e7"], + 'can_topup_private_money_ids' => ["819bf434-af03-4a40-8804-5264b88b8484", "95515cae-a54f-4db8-93bb-45560f7cd745", "cf5c05a1-2e60-47a9-993c-f23e5098f2a7", "c1b6c41c-6d74-4a33-94e8-87f92796544e", "7991c030-b127-4f8b-9eb1-d8f81e6c77d7", "77d674a1-30cb-4570-a5f9-3dbc81f23c66", "f134355d-2806-4efb-bd9a-11d31bdb2104", "62b566df-25ca-42d8-b1cf-26691282f2ce", "caecd3aa-e107-4e8d-95ab-d42d163d8c55", "a787810d-87e2-4623-8a99-ec71932d38c8"] ] ); try { @@ -123,14 +123,14 @@ public function testCreateShopV26() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE", + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W", [ - 'tel' => "02-2716289", - 'email' => "R4daTST401@zYU9.com", - 'external_id' => "O5bmxo", - 'organization_code' => "21v-PA--8", - 'private_money_ids' => ["f9e15c0e-1d28-453a-a975-730a022b6491", "f145e3a1-d506-4774-b3de-4f04b212bab0", "3ca2b36f-445f-4388-9206-17a809bf05f3", "70aa5107-0453-40cc-a311-db5f89d60c60", "20782fe9-9d26-45a8-b40a-0e46d4789816", "f75d8514-b4c1-45d7-9eea-6476944f2b9a", "ad9963a3-ebce-482f-a27f-494679e8a56c", "e38ec102-3cfd-41cd-84a9-cc47ffd9c668", "bd55871b-3acf-4c00-b7cd-776a57527f0a", "ab4ad005-0fef-4e0d-9fae-b684cc5754a9"], - 'can_topup_private_money_ids' => ["d48528e9-d448-4b4c-a2f4-a44e19e6620d", "62858739-55d9-47bb-b179-dfb71bf80fa0", "5543418d-1b52-45de-b553-782de5b2dbe5", "1004dc98-062e-417b-acb4-b122c2e4ff7c", "cbcf6df2-af71-43ea-b144-f4b68eff0bed", "e7a67824-d91d-4742-b267-36be8188d3ab"] + 'tel' => "08-575-8265", + 'email' => "LmM8qznKIn@9uBo.com", + 'external_id' => "N3XKkwmXFnLL0v", + 'organization_code' => "ujWy-3-zL0-8-E2-I3o30-F-gf", + 'private_money_ids' => ["642d2db8-dca1-4b48-884a-85ad4f15f960", "94ec44a3-d9dc-441d-88be-ad66b7a9c4bc", "7a989435-a4a4-4eb0-9495-8d824b8872df", "747d59c3-4a92-47b5-b95c-ba90e09f37b2"], + 'can_topup_private_money_ids' => ["6d8e4e09-16a2-4e13-8e81-ae1e8e0837f2", "8f71e296-a8d0-413d-a7b3-a034def31f8b", "38239268-48a8-4744-bbb1-f1f5333d1d78", "22b2992f-fb49-4be2-9f75-aba0895db964", "e9d0ef50-7480-43e7-8b63-065f668fb8c1", "f28609c8-1734-47cc-9e71-ba05da352da9", "8253cef4-f576-408e-8782-f06e33633259", "0064c313-69e4-4902-8f05-e5054879fcfc"] ] ); try { @@ -146,15 +146,15 @@ public function testCreateShopV27() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE", + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W", [ - 'address' => "z0FIdNSbIrXOBo1I3rdkLB5vuUQlHHWHdfJKJGJOe4o3A7Ast7GZKKewMQbpvWdRIf0j2NcGpd9kTg7fbzWuGj28bjzoMkUfQZyG6ql9kvIc3ugQfVcwKEOAlMUYblAnOJUw5uYgLUj2LWIHcZ5Kh7Upt9fM2ThdFR4ZGmC3lY", - 'tel' => "0424-270-738", - 'email' => "lQeLzTg9FC@P6bo.com", - 'external_id' => "kANEWZ0xko5", - 'organization_code' => "2By-J--1-Gp89-7-C---2--HA9a-Jye", - 'private_money_ids' => ["cb1affe6-0055-47b3-9b80-3bd439bf55aa", "efffde14-f5c3-488c-b1c1-25fc069e8f38", "d0f43b66-a3d6-45b5-9c03-bfeef84419eb", "b6b03683-907a-48f9-a107-5b4d85a6316f"], - 'can_topup_private_money_ids' => ["c812412c-d410-4948-8e8b-104698adc9ea", "e53b51ce-4f31-4cb6-8df4-e1315c75ea4e", "2b70ca17-9707-49ce-ae88-84de3f45a5fc", "1c20eaa4-ebfb-4e86-9430-86923737bf97", "8165ffcc-595b-4709-96d3-75ee0b3b8dd7", "ca20ee9b-28f9-4320-8c43-15497e5859e9"] + 'address' => "JrsgVxWy0PirB5ccKSjPsnaJy0xSUaUZ3KYipGveNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFoj", + 'tel' => "00-5825105", + 'email' => "zVuitJAWBn@MTQr.com", + 'external_id' => "Lb4F279GcsdDtM3uSE", + 'organization_code' => "-A9m02ZiT----MH-9o-yfn-lI", + 'private_money_ids' => ["8382ef5d-03c2-46c5-9084-f89a8bf61b16", "f52e6f45-aa72-4559-a5ea-24d66b6a85b2", "fb1b6034-9c9b-457c-a6f8-b8cb7bdea653", "d242dd9c-0c62-4ee6-9a0f-6de910e2fcd6", "6b7e475b-6dba-4ca2-8645-c823ef7c2f60", "f9bb7831-a16d-430b-b832-a4fa123ab093", "2ec3f29a-ee7e-4f13-bb47-2854fbf34e5c", "c27cb131-7778-4282-8828-477ca0dc7e3f", "55e9c6a8-fc9d-4f66-84dc-132dc97378d5", "525c72e6-0e25-42ff-b48b-0b3b186699c9"], + 'can_topup_private_money_ids' => ["102b939e-0d33-4fb0-864a-4626ba1f9479"] ] ); try { @@ -170,16 +170,16 @@ public function testCreateShopV28() { $client = $this->newClient(); $request = new Request\CreateShopV2( - "I44xL3mfrFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE", + "z35aQ4D94kR9S0XTdmHcC0cGFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16oNA3cZ4NnyIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4W", [ - 'postal_code' => "1381991", - 'address' => "yCFBUZkKwMvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0sn1Jp9ctBvXrxjspmUg2Jofbfd8lI7ca3oyQQIsUl3rCM2ZMpE4WDor4IADTHdTPsjhUsWbuhnbIUFlfvobOclFXKfvdQivs3hj", - 'tel' => "04265-4850", - 'email' => "QOLtlkRPIA@eI3C.com", - 'external_id' => "woSJ0t0xwzgZ3", - 'organization_code' => "", - 'private_money_ids' => ["a293ec16-f815-4210-9073-8df4085b720a", "5e745902-f29d-4e15-a9f1-776a21eae237", "67229903-c86a-4ca8-8aaf-5db1a95a9558", "f4428aa8-2018-4961-bae4-5db03f8e3005", "781c38c0-897f-4b4d-9730-d5d1c2553615", "48608f45-8415-40b8-a287-a926e9dd5ff3", "db65c1e9-c691-46b7-be57-fdeb56918886", "839228f4-74fb-4eef-a16d-f65449b03e53"], - 'can_topup_private_money_ids' => ["45ab6949-7188-4bfd-adf3-deb32aa99c00", "4af6e773-8b06-4c73-bdf3-513a5c44d3b0", "fb9613e2-8dd3-455a-b1fc-2b6344f9c3a0", "66e0c7d2-0187-4635-b204-bfdd62185cbd"] + 'postal_code' => "290-1439", + 'address' => "vWnTRvriMMqT8Y2wPxWWXEUoqg0zXsuvc8LF4mbP1hyPDbNVjct5yQNjVn35rDh040vhQYw5VlT5PtGoiFuhhxPNxJedAo6IB1JwI4HtHPlHFEuPGo3GkdygOOVSyzQqeTxBrSdGB4t2pP3KohbOZsA8epkaCTJpPbbkDn1ZrOBafUzNTBXIV1wGp1Rn3U4KQsAmd", + 'tel' => "0983240-592", + 'email' => "hNu2f4606Z@w3XO.com", + 'external_id' => "LqQiqaG2", + 'organization_code' => "-", + 'private_money_ids' => ["c9b63a05-67be-474d-ba06-1735f94735f3", "1675ba5c-7d22-43c7-b10f-a4a6f7eff38e", "2d5f9f80-54c7-4300-a7a1-9979210e2272"], + 'can_topup_private_money_ids' => ["80a01a7d-6f95-4b2c-a3ef-2ce18beaeafc", "9fad6b91-5d92-4881-89d0-08153cbb0cfe", "ee4e17aa-fd3c-4347-964a-2437c7df64ca", "e3f52347-0c42-4b7e-8300-8f9fccedbd0b", "b9f61eb1-2e17-4c6f-9135-39bc4f448452", "5289a905-aba0-40dc-9ea5-3a6308ae7609", "4c77c839-263e-44b6-b7bb-e466ef4f316d"] ] ); try { diff --git a/tests/CreateTopupTransactionTest.php b/tests/CreateTopupTransactionTest.php index 692fdb29..0c72b10e 100644 --- a/tests/CreateTopupTransactionTest.php +++ b/tests/CreateTopupTransactionTest.php @@ -8,9 +8,9 @@ public function testCreateTopupTransaction0() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "1ab63957-28f6-469b-992d-5babc333d21b", - "e0eaf756-9705-4513-bfdd-41a01c99ea3e", - "828591fe-a607-41e1-af1e-f1337b002d47" + "92847029-98af-44a7-a610-b7114d0bea42", + "2fb57c9e-ca3b-4fe7-91ed-10c46badc15b", + "1f3944d3-e875-40f8-8f98-f36d6f48d80e" ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testCreateTopupTransaction1() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "1ab63957-28f6-469b-992d-5babc333d21b", - "e0eaf756-9705-4513-bfdd-41a01c99ea3e", - "828591fe-a607-41e1-af1e-f1337b002d47", + "92847029-98af-44a7-a610-b7114d0bea42", + "2fb57c9e-ca3b-4fe7-91ed-10c46badc15b", + "1f3944d3-e875-40f8-8f98-f36d6f48d80e", [ - 'request_id' => "5bcac3a7-45f6-4f8a-acb9-2b0815fe82f8" + 'request_id' => "2f92baaa-8d1d-4a70-a8eb-b05b0c31ec21" ] ); try { @@ -45,12 +45,12 @@ public function testCreateTopupTransaction2() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "1ab63957-28f6-469b-992d-5babc333d21b", - "e0eaf756-9705-4513-bfdd-41a01c99ea3e", - "828591fe-a607-41e1-af1e-f1337b002d47", + "92847029-98af-44a7-a610-b7114d0bea42", + "2fb57c9e-ca3b-4fe7-91ed-10c46badc15b", + "1f3944d3-e875-40f8-8f98-f36d6f48d80e", [ 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "44e402e2-f666-4112-ba82-a5de35a1e328" + 'request_id' => "95d5a2af-b5fa-4a1e-9390-cc1727c6cd69" ] ); try { @@ -66,13 +66,13 @@ public function testCreateTopupTransaction3() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "1ab63957-28f6-469b-992d-5babc333d21b", - "e0eaf756-9705-4513-bfdd-41a01c99ea3e", - "828591fe-a607-41e1-af1e-f1337b002d47", + "92847029-98af-44a7-a610-b7114d0bea42", + "2fb57c9e-ca3b-4fe7-91ed-10c46badc15b", + "1f3944d3-e875-40f8-8f98-f36d6f48d80e", [ - 'description' => "vgScohGvfvszFZKZ0fsirdyb8N5N4uLXeppDXZ9aq2pYugtiiL7qWoYElTKmZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXc", + 'description' => "G6p4HsLeIcNrFvlQBIX1JBgnrD1yLFlL5k", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "ef979665-ff1f-4bc4-a9af-5d55fe2005fe" + 'request_id' => "bf8ef162-059c-4ae7-b39c-c69deccaaa20" ] ); try { @@ -88,14 +88,14 @@ public function testCreateTopupTransaction4() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "1ab63957-28f6-469b-992d-5babc333d21b", - "e0eaf756-9705-4513-bfdd-41a01c99ea3e", - "828591fe-a607-41e1-af1e-f1337b002d47", + "92847029-98af-44a7-a610-b7114d0bea42", + "2fb57c9e-ca3b-4fe7-91ed-10c46badc15b", + "1f3944d3-e875-40f8-8f98-f36d6f48d80e", [ - 'point_expires_at' => "2020-05-07T03:46:10.000000Z", - 'description' => "70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy1dRKuzOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFlgp2lLhVbHghg4l", + 'point_expires_at' => "2024-11-21T00:50:04.000000Z", + 'description' => "6xUgxf5sOofYseOtl3ilNOPpyIVjtUk", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "9e86db5b-d725-40da-8e53-15aebae898d6" + 'request_id' => "2e7b2586-244c-4dd4-936b-f7165f300acf" ] ); try { @@ -111,15 +111,15 @@ public function testCreateTopupTransaction5() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "1ab63957-28f6-469b-992d-5babc333d21b", - "e0eaf756-9705-4513-bfdd-41a01c99ea3e", - "828591fe-a607-41e1-af1e-f1337b002d47", + "92847029-98af-44a7-a610-b7114d0bea42", + "2fb57c9e-ca3b-4fe7-91ed-10c46badc15b", + "1f3944d3-e875-40f8-8f98-f36d6f48d80e", [ - 'point_amount' => 1784, - 'point_expires_at' => "2020-03-06T06:48:56.000000Z", - 'description' => "qYiDQPFv2xIXm", + 'point_amount' => 8693, + 'point_expires_at' => "2020-04-19T02:50:32.000000Z", + 'description' => "30Id9YuKsTGECVvJsAnqjel2la3rWWdK2ybDtXJiikZzBktm983ksDd", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "7e33e549-d7b4-49d0-a7ec-c13a756c6a50" + 'request_id' => "3863fc4b-8a2b-46e6-a243-81904003f8a8" ] ); try { @@ -135,16 +135,16 @@ public function testCreateTopupTransaction6() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "1ab63957-28f6-469b-992d-5babc333d21b", - "e0eaf756-9705-4513-bfdd-41a01c99ea3e", - "828591fe-a607-41e1-af1e-f1337b002d47", + "92847029-98af-44a7-a610-b7114d0bea42", + "2fb57c9e-ca3b-4fe7-91ed-10c46badc15b", + "1f3944d3-e875-40f8-8f98-f36d6f48d80e", [ - 'money_amount' => 1014, - 'point_amount' => 6051, - 'point_expires_at' => "2024-11-06T03:07:37.000000Z", - 'description' => "odipyOhBLvJd18F7msVClYIZ6Bq4ZCm153pAwidsKM1ZphpLhv7NIoqmlJpzKOYIsRtFF9xx8GHcZXN3Xa70o7nFXURkjCcagg1x0DCy4shXKR7nTWCyIt3Gr6ubUQRiycmsaOa8T2aG0PP6tnqHnu", + 'money_amount' => 569, + 'point_amount' => 1078, + 'point_expires_at' => "2025-06-21T06:42:39.000000Z", + 'description' => "BMvuC0QTfx8l2ZZBjyQqeO19KhFrkxiVRAQ6FFjz1w", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "6bdb906f-379c-4293-95c9-38904234f5cc" + 'request_id' => "8724bb2e-be8a-448a-ae17-b913d3a5342b" ] ); try { @@ -160,17 +160,17 @@ public function testCreateTopupTransaction7() { $client = $this->newClient(); $request = new Request\CreateTopupTransaction( - "1ab63957-28f6-469b-992d-5babc333d21b", - "e0eaf756-9705-4513-bfdd-41a01c99ea3e", - "828591fe-a607-41e1-af1e-f1337b002d47", + "92847029-98af-44a7-a610-b7114d0bea42", + "2fb57c9e-ca3b-4fe7-91ed-10c46badc15b", + "1f3944d3-e875-40f8-8f98-f36d6f48d80e", [ - '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", + 'bear_point_shop_id' => "94b4fa2b-41ea-4415-89d2-206acd42b5a6", + 'money_amount' => 8335, + 'point_amount' => 4621, + 'point_expires_at' => "2024-02-06T08:03:05.000000Z", + 'description' => "MofqJJncHBCR1qP1zId4mLJCzHpOgkhaasWI8ELqJwRA62Ghe0ne6pcNR1V7JprfFD47gNL9WM6cSeojzOZZrLxO3x6r1ViuO", 'metadata' => "{\"key\":\"value\"}", - 'request_id' => "1f313dd8-be6d-4f70-af60-17222eb9b471" + 'request_id' => "c46fcb15-bbee-4b73-9d22-047080b75c8e" ] ); try { diff --git a/tests/CreateTopupTransactionWithCheckTest.php b/tests/CreateTopupTransactionWithCheckTest.php index 4ac5db54..6afb85e1 100644 --- a/tests/CreateTopupTransactionWithCheckTest.php +++ b/tests/CreateTopupTransactionWithCheckTest.php @@ -8,8 +8,8 @@ public function testCreateTopupTransactionWithCheck0() { $client = $this->newClient(); $request = new Request\CreateTopupTransactionWithCheck( - "8b459ee6-7683-421b-9086-26ed3e9f5b49", - "4394d472-1b0d-4a61-a4c7-da5661d36a8f" + "9739f38e-2a61-418c-bbb8-ccec606fe1b8", + "2c247acf-3615-4ff8-b14d-0c403eee8aba" ); try { $response = $client->send($request); @@ -24,10 +24,10 @@ public function testCreateTopupTransactionWithCheck1() { $client = $this->newClient(); $request = new Request\CreateTopupTransactionWithCheck( - "8b459ee6-7683-421b-9086-26ed3e9f5b49", - "4394d472-1b0d-4a61-a4c7-da5661d36a8f", + "9739f38e-2a61-418c-bbb8-ccec606fe1b8", + "2c247acf-3615-4ff8-b14d-0c403eee8aba", [ - 'request_id' => "0a3b86e8-ccbd-49f3-bc4c-0d4a1cbb5515" + 'request_id' => "4ea54aae-80a7-460a-b0cc-8172ca696586" ] ); try { diff --git a/tests/CreateTransactionGroupTest.php b/tests/CreateTransactionGroupTest.php new file mode 100644 index 00000000..cf757bc4 --- /dev/null +++ b/tests/CreateTransactionGroupTest.php @@ -0,0 +1,22 @@ +newClient(); + $request = new Request\CreateTransactionGroup( + "TeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7" + ); + 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/CreateTransactionTest.php b/tests/CreateTransactionTest.php index 8669432b..3a6aed06 100644 --- a/tests/CreateTransactionTest.php +++ b/tests/CreateTransactionTest.php @@ -8,9 +8,9 @@ public function testCreateTransaction0() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "d60a13d6-f664-4a16-ac01-df9fba2ae897", - "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", - "6e4a6348-e90e-4594-bd19-959f986dd8b5" + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5", + "6dd14e7e-5638-4902-81cb-a0185959ff6d" ); try { $response = $client->send($request); @@ -25,11 +25,11 @@ public function testCreateTransaction1() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "d60a13d6-f664-4a16-ac01-df9fba2ae897", - "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", - "6e4a6348-e90e-4594-bd19-959f986dd8b5", + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5", + "6dd14e7e-5638-4902-81cb-a0185959ff6d", [ - 'description' => "Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mwTeB7HbtOFrcDL7mosyloW0gLyNig5qU771SYwG9bLFfHIbs98VpOgmc8pS7" + 'description' => "NYXCce6NgXmM6SU8mT9N7YdoyhvIOK96oQgvpt3OE4bGWfPwqWxwC3DU0ZYNIFrYHkTuOzrywGRNkAeSHinr7X7r9y8K62vZdczxzKDF7OzztIRdIBCYTSHrtKwDRbFJx9qY9kB8kVD" ] ); try { @@ -45,12 +45,12 @@ public function testCreateTransaction2() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "d60a13d6-f664-4a16-ac01-df9fba2ae897", - "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", - "6e4a6348-e90e-4594-bd19-959f986dd8b5", + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5", + "6dd14e7e-5638-4902-81cb-a0185959ff6d", [ - 'point_expires_at' => "2023-04-28T14:17:57.000000Z", - 'description' => "ZiumuB2TNJcJGvSmksA1MuW1A79SIV4QucaCTIuwp4PaSBE0QhobjzNQVW3hP0Ve0rN3Em7q1SjNjatjjDZX7RIKgDX3b9" + 'point_expires_at' => "2026-06-01T11:21:33.000000Z", + 'description' => "JMjy6rf4CluMJ3q8UHdGY9c6av2inoQmoszzzj7gjncZRjG49ZyE9dB8fCGfTM2Oyolj4kfEe2uvMtiKxUivt9MIJ97msI3tBe6ti0SO07EXHC5hQ6" ] ); try { @@ -66,13 +66,13 @@ public function testCreateTransaction3() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "d60a13d6-f664-4a16-ac01-df9fba2ae897", - "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", - "6e4a6348-e90e-4594-bd19-959f986dd8b5", + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5", + "6dd14e7e-5638-4902-81cb-a0185959ff6d", [ - 'point_amount' => 6465, - 'point_expires_at' => "2020-12-08T17:02:41.000000Z", - 'description' => "2xLkpis0qy5MfISyoLqEQKhMnAGBrL3KeptreugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqz" + 'point_amount' => 9496, + 'point_expires_at' => "2026-04-28T02:49:21.000000Z", + 'description' => "WDcVyEH0QvPCR5IiYZhX71qxxCDFjWtGssb86D9XZfo8j2fPJCGzVYdohDRxcepsSsdecspEcH6zAIM8ju98Xf3eDqYA5vYg7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5Qx" ] ); try { @@ -88,14 +88,14 @@ public function testCreateTransaction4() { $client = $this->newClient(); $request = new Request\CreateTransaction( - "d60a13d6-f664-4a16-ac01-df9fba2ae897", - "8d1f33b3-7b31-4b3e-ac03-4b178ac7d565", - "6e4a6348-e90e-4594-bd19-959f986dd8b5", + "54834b5c-2549-4c46-95f2-4d29e2e821d4", + "f5f8a4d2-f1ee-49e5-b9a2-8631397a70f5", + "6dd14e7e-5638-4902-81cb-a0185959ff6d", [ - 'money_amount' => 5766, - 'point_amount' => 4156, - 'point_expires_at' => "2023-09-25T18:36:20.000000Z", - 'description' => "sahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSghDCw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8" + 'money_amount' => 6858, + 'point_amount' => 1488, + 'point_expires_at' => "2025-05-07T04:42:36.000000Z", + 'description' => "bbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumMVdl31leH5Dl7ZUHzS51rJLdw2n2tQfnXr078yWrpzKRIJrBD5D7CpKjeG53Xpalhw5eupOSaoLetupiLJGKA08kULtDXm7mGq20CccqYOFtqhMLy1fSrOZfnZ2mw" ] ); try { diff --git a/tests/CreateTransactionWithCashtrayTest.php b/tests/CreateTransactionWithCashtrayTest.php index c8de3e5d..a81a833f 100644 --- a/tests/CreateTransactionWithCashtrayTest.php +++ b/tests/CreateTransactionWithCashtrayTest.php @@ -8,8 +8,8 @@ public function testCreateTransactionWithCashtray0() { $client = $this->newClient(); $request = new Request\CreateTransactionWithCashtray( - "dac31b90-dd57-4ed9-bb81-df03abab299d", - "8c8c39e5-57e2-4685-b434-f952aa6599d5" + "ccc31522-7295-404c-9865-12709143bd70", + "fda8238f-bf93-4696-9ac4-5858cceb7dda" ); try { $response = $client->send($request); @@ -24,10 +24,10 @@ public function testCreateTransactionWithCashtray1() { $client = $this->newClient(); $request = new Request\CreateTransactionWithCashtray( - "dac31b90-dd57-4ed9-bb81-df03abab299d", - "8c8c39e5-57e2-4685-b434-f952aa6599d5", + "ccc31522-7295-404c-9865-12709143bd70", + "fda8238f-bf93-4696-9ac4-5858cceb7dda", [ - 'request_id' => "7d06e704-1247-4652-b12c-0a5ca2d298be" + 'request_id' => "c8bfcd39-c161-4e71-a5a9-57b2c79975f0" ] ); try { @@ -43,11 +43,11 @@ public function testCreateTransactionWithCashtray2() { $client = $this->newClient(); $request = new Request\CreateTransactionWithCashtray( - "dac31b90-dd57-4ed9-bb81-df03abab299d", - "8c8c39e5-57e2-4685-b434-f952aa6599d5", + "ccc31522-7295-404c-9865-12709143bd70", + "fda8238f-bf93-4696-9ac4-5858cceb7dda", [ 'strategy' => "money-only", - 'request_id' => "3fc7b354-7611-400f-b31e-7b3f4d823177" + 'request_id' => "99151ebd-ff9c-4a75-975f-5b0cb1a1be2b" ] ); try { diff --git a/tests/CreateTransferTransactionTest.php b/tests/CreateTransferTransactionTest.php index f18ec37f..f46823e9 100644 --- a/tests/CreateTransferTransactionTest.php +++ b/tests/CreateTransferTransactionTest.php @@ -8,10 +8,10 @@ public function testCreateTransferTransaction0() { $client = $this->newClient(); $request = new Request\CreateTransferTransaction( - "6154dce3-609a-4c75-a365-21fd04a25b79", - "e8f62a9c-b153-4201-8329-ac22ac1e99de", - "2986f329-4061-4422-a278-a3f2742ec81a", - 8807.0 + "0bf905e7-3274-4387-a3e9-f3e974cea023", + "8a509414-e1cc-4a82-a586-8ffbb735829f", + "70cf82b7-eb11-46fb-b157-a61b9581f1ef", + 8340.0 ); try { $response = $client->send($request); @@ -26,12 +26,12 @@ public function testCreateTransferTransaction1() { $client = $this->newClient(); $request = new Request\CreateTransferTransaction( - "6154dce3-609a-4c75-a365-21fd04a25b79", - "e8f62a9c-b153-4201-8329-ac22ac1e99de", - "2986f329-4061-4422-a278-a3f2742ec81a", - 8807.0, + "0bf905e7-3274-4387-a3e9-f3e974cea023", + "8a509414-e1cc-4a82-a586-8ffbb735829f", + "70cf82b7-eb11-46fb-b157-a61b9581f1ef", + 8340.0, [ - 'request_id' => "0c2d43d4-c00f-4e7c-9853-a4f856c173da" + 'request_id' => "43b45d59-6310-4905-9645-146c7bcc15d4" ] ); try { @@ -47,13 +47,13 @@ public function testCreateTransferTransaction2() { $client = $this->newClient(); $request = new Request\CreateTransferTransaction( - "6154dce3-609a-4c75-a365-21fd04a25b79", - "e8f62a9c-b153-4201-8329-ac22ac1e99de", - "2986f329-4061-4422-a278-a3f2742ec81a", - 8807.0, + "0bf905e7-3274-4387-a3e9-f3e974cea023", + "8a509414-e1cc-4a82-a586-8ffbb735829f", + "70cf82b7-eb11-46fb-b157-a61b9581f1ef", + 8340.0, [ - 'description' => "g1Ud9jBS9C", - 'request_id' => "276861d1-333d-4d5f-9f2a-9206b00ae910" + 'description' => "mZkEzCv7OKUa8NeEnF41oUMWRj1sxtSyQgT1GkRhboXHY39x3Xs6KbKOjUQYLsphxNcJXceDU70KRGU02ETtMe3p5BruF5QOJx8zwWTQtwhgEUQrpqVtFI20RqU84wWVej7KjR7PO79YOuc2btzI2HvKaIy", + 'request_id' => "aa271e93-3db1-4a64-9e52-264b5b9c0875" ] ); try { @@ -69,14 +69,14 @@ public function testCreateTransferTransaction3() { $client = $this->newClient(); $request = new Request\CreateTransferTransaction( - "6154dce3-609a-4c75-a365-21fd04a25b79", - "e8f62a9c-b153-4201-8329-ac22ac1e99de", - "2986f329-4061-4422-a278-a3f2742ec81a", - 8807.0, + "0bf905e7-3274-4387-a3e9-f3e974cea023", + "8a509414-e1cc-4a82-a586-8ffbb735829f", + "70cf82b7-eb11-46fb-b157-a61b9581f1ef", + 8340.0, [ 'metadata' => "{\"key\":\"value\"}", - 'description' => "qv6T7eIQXHJd8SnpNPnO39WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sPYWAKIaPAnlgG8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6", - 'request_id' => "c0a7c0f1-a262-44d2-92a2-e1ef20f24617" + 'description' => "zOlLMmdBSZr220xtZpZdQ9ssluYJHAlylPpV6xWxt7f2oLFl", + 'request_id' => "8e09df9d-1b67-4d9a-a670-60bc84573ab2" ] ); try { diff --git a/tests/CreateUserAccountTest.php b/tests/CreateUserAccountTest.php index 83a9ff8b..9133d431 100644 --- a/tests/CreateUserAccountTest.php +++ b/tests/CreateUserAccountTest.php @@ -8,8 +8,8 @@ public function testCreateUserAccount0() { $client = $this->newClient(); $request = new Request\CreateUserAccount( - "1cca797a-a4ae-4807-a9ad-4bab80f00988", - "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d" + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9" ); try { $response = $client->send($request); @@ -24,8 +24,8 @@ public function testCreateUserAccount1() { $client = $this->newClient(); $request = new Request\CreateUserAccount( - "1cca797a-a4ae-4807-a9ad-4bab80f00988", - "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d", + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9", [ 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" ] @@ -43,10 +43,10 @@ public function testCreateUserAccount2() { $client = $this->newClient(); $request = new Request\CreateUserAccount( - "1cca797a-a4ae-4807-a9ad-4bab80f00988", - "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d", + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9", [ - 'external_id' => "FBMnn24Y00BddIYIaGsnHTfyj3vGhpYs6lE3PVx", + 'external_id' => "kAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6", 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" ] ); @@ -63,11 +63,11 @@ public function testCreateUserAccount3() { $client = $this->newClient(); $request = new Request\CreateUserAccount( - "1cca797a-a4ae-4807-a9ad-4bab80f00988", - "a7de9f4c-0cba-468f-80c5-ac4cef1a2e6d", + "53a50385-11f5-46f5-a3d9-62a90c8a29c4", + "6cddcb78-7848-485a-a46e-a0ab2dc39ee9", [ - 'name' => "hCRcEAVa4JmfjoJZ9ajsO39BqxPDSP5BpfA0dYcuMmHpa4aDHWm32hBFhI0DxRhz83lKq4Wp1hKlNvpHM0s7Dd9Uu6qWqC0qUtLag9adxARTcCtKjz1M2kusM3cVDMOGMtpxWNvKR6Gcp6PWCiNymBaUIu6lQIyVNDYRttS46oTXBYnbHbMuAdnXANiixumuncg7egxc7L05i8jkZ1Waa", - 'external_id' => "h6AAgB9jXehhbgs", + 'name' => "Qi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfddKJfLPJmxAhDpkltxfpGBgKzLBW", + 'external_id' => "M", 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" ] ); diff --git a/tests/CreateUserDeviceTest.php b/tests/CreateUserDeviceTest.php index d58543b9..83adf8f3 100644 --- a/tests/CreateUserDeviceTest.php +++ b/tests/CreateUserDeviceTest.php @@ -8,7 +8,7 @@ public function testCreateUserDevice0() { $client = $this->newClient(); $request = new Request\CreateUserDevice( - "eca1f362-57ab-4295-bcd0-b84375ca8699" + "4d74e6b5-867f-4c58-b219-352da67a1ead" ); try { $response = $client->send($request); @@ -23,7 +23,7 @@ public function testCreateUserDevice1() { $client = $this->newClient(); $request = new Request\CreateUserDevice( - "eca1f362-57ab-4295-bcd0-b84375ca8699", + "4d74e6b5-867f-4c58-b219-352da67a1ead", [ '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 f4374994..e36876bb 100644 --- a/tests/CreateWebhookTest.php +++ b/tests/CreateWebhookTest.php @@ -8,8 +8,8 @@ public function testCreateWebhook0() { $client = $this->newClient(); $request = new Request\CreateWebhook( - "bulk_shops", - "WBx1" + "process_user_stats_operation", + "oVskU" ); try { $response = $client->send($request); diff --git a/tests/CreditCardTopupWithMdkTokenTest.php b/tests/CreditCardTopupWithMdkTokenTest.php new file mode 100644 index 00000000..7bf9bf31 --- /dev/null +++ b/tests/CreditCardTopupWithMdkTokenTest.php @@ -0,0 +1,115 @@ +newClient(); + $request = new Request\CreditCardTopupWithMdkToken( + "c2b009f3-b574-46b7-879e-c0deafb14a5a", + "K", + "57638b03-cd7d-44cb-bd2e-81869617c865", + 5757 + ); + 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 testCreditCardTopupWithMdkToken1() + { + $client = $this->newClient(); + $request = new Request\CreditCardTopupWithMdkToken( + "c2b009f3-b574-46b7-879e-c0deafb14a5a", + "K", + "57638b03-cd7d-44cb-bd2e-81869617c865", + 5757, + [ + 'topup_quota_id' => 5879 + ] + ); + 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 testCreditCardTopupWithMdkToken2() + { + $client = $this->newClient(); + $request = new Request\CreditCardTopupWithMdkToken( + "c2b009f3-b574-46b7-879e-c0deafb14a5a", + "K", + "57638b03-cd7d-44cb-bd2e-81869617c865", + 5757, + [ + 'request_id' => "429cca8a-737d-4221-994d-c5d185854662", + 'topup_quota_id' => 1886 + ] + ); + 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 testCreditCardTopupWithMdkToken3() + { + $client = $this->newClient(); + $request = new Request\CreditCardTopupWithMdkToken( + "c2b009f3-b574-46b7-879e-c0deafb14a5a", + "K", + "57638b03-cd7d-44cb-bd2e-81869617c865", + 5757, + [ + 'is_cardholder_name_specified' => TRUE, + 'request_id' => "89204903-b376-41d7-a48c-1752cd85d618", + 'topup_quota_id' => 8411 + ] + ); + 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 testCreditCardTopupWithMdkToken4() + { + $client = $this->newClient(); + $request = new Request\CreditCardTopupWithMdkToken( + "c2b009f3-b574-46b7-879e-c0deafb14a5a", + "K", + "57638b03-cd7d-44cb-bd2e-81869617c865", + 5757, + [ + 'receiver_user_id' => "50c9a915-28c9-41be-a630-a0ea43976194", + 'is_cardholder_name_specified' => TRUE, + 'request_id' => "c6ff9025-3d2d-414e-a347-9789832241f0", + 'topup_quota_id' => 1892 + ] + ); + 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/CreditCardTopupWithMembershipTest.php b/tests/CreditCardTopupWithMembershipTest.php new file mode 100644 index 00000000..aebb9622 --- /dev/null +++ b/tests/CreditCardTopupWithMembershipTest.php @@ -0,0 +1,115 @@ +newClient(); + $request = new Request\CreditCardTopupWithMembership( + "e6591e1e-7e04-49dd-afb1-c65e914750c9", + "e0e1ca89-2533-44e0-a818-fa72414d35a2", + "ff99bdbe-b484-4fe4-806b-86cc976ff242", + 1015 + ); + 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 testCreditCardTopupWithMembership1() + { + $client = $this->newClient(); + $request = new Request\CreditCardTopupWithMembership( + "e6591e1e-7e04-49dd-afb1-c65e914750c9", + "e0e1ca89-2533-44e0-a818-fa72414d35a2", + "ff99bdbe-b484-4fe4-806b-86cc976ff242", + 1015, + [ + 'topup_quota_id' => 6911 + ] + ); + 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 testCreditCardTopupWithMembership2() + { + $client = $this->newClient(); + $request = new Request\CreditCardTopupWithMembership( + "e6591e1e-7e04-49dd-afb1-c65e914750c9", + "e0e1ca89-2533-44e0-a818-fa72414d35a2", + "ff99bdbe-b484-4fe4-806b-86cc976ff242", + 1015, + [ + 'request_id' => "0e9546c8-d7c8-4ed7-bd2c-a8016090e19d", + 'topup_quota_id' => 5604 + ] + ); + 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 testCreditCardTopupWithMembership3() + { + $client = $this->newClient(); + $request = new Request\CreditCardTopupWithMembership( + "e6591e1e-7e04-49dd-afb1-c65e914750c9", + "e0e1ca89-2533-44e0-a818-fa72414d35a2", + "ff99bdbe-b484-4fe4-806b-86cc976ff242", + 1015, + [ + 'delete_card_if_auth_fail' => FALSE, + 'request_id' => "901c577b-007e-4ce6-8a07-e07c4e8de54b", + 'topup_quota_id' => 8650 + ] + ); + 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 testCreditCardTopupWithMembership4() + { + $client = $this->newClient(); + $request = new Request\CreditCardTopupWithMembership( + "e6591e1e-7e04-49dd-afb1-c65e914750c9", + "e0e1ca89-2533-44e0-a818-fa72414d35a2", + "ff99bdbe-b484-4fe4-806b-86cc976ff242", + 1015, + [ + 'receiver_user_id' => "8b280d0c-f61f-4247-8acf-e45bf951b312", + 'delete_card_if_auth_fail' => FALSE, + 'request_id' => "a905c034-03ef-43b3-81a1-1ab7407f462f", + 'topup_quota_id' => 1985 + ] + ); + 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/DeleteAccountTest.php b/tests/DeleteAccountTest.php index d7d867cd..07038592 100644 --- a/tests/DeleteAccountTest.php +++ b/tests/DeleteAccountTest.php @@ -8,7 +8,7 @@ public function testDeleteAccount0() { $client = $this->newClient(); $request = new Request\DeleteAccount( - "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d" + "6e0f5443-faad-451b-9992-5ce9c4e4ae3a" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testDeleteAccount1() { $client = $this->newClient(); $request = new Request\DeleteAccount( - "ce348e12-e7ee-4579-a9c8-94dd3d6c2f3d", + "6e0f5443-faad-451b-9992-5ce9c4e4ae3a", [ - 'cashback' => TRUE + 'cashback' => FALSE ] ); try { diff --git a/tests/DeleteBankTest.php b/tests/DeleteBankTest.php index 52a4aceb..638bbfce 100644 --- a/tests/DeleteBankTest.php +++ b/tests/DeleteBankTest.php @@ -8,8 +8,8 @@ public function testDeleteBank0() { $client = $this->newClient(); $request = new Request\DeleteBank( - "8afed34d-4a9d-473c-9b83-3805b3a22524", - "c970698c-2885-4338-8b2f-a3961de526ef" + "31d85352-8ef5-46e0-8c81-e3ddae12bb98", + "bb891556-1d62-4abd-ba5c-4fd0e4afddd5" ); try { $response = $client->send($request); diff --git a/tests/DeleteCustomerCardTest.php b/tests/DeleteCustomerCardTest.php new file mode 100644 index 00000000..99bff981 --- /dev/null +++ b/tests/DeleteCustomerCardTest.php @@ -0,0 +1,23 @@ +newClient(); + $request = new Request\DeleteCustomerCard( + "a4b2f47c-6e9d-4f8f-9c7d-adc9bd5a0a9d", + "8528bc40-17f2-4c2c-984f-ef420cfa3b2c" + ); + 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/DeleteWebhookTest.php b/tests/DeleteWebhookTest.php index 860024dc..ca2c66a1 100644 --- a/tests/DeleteWebhookTest.php +++ b/tests/DeleteWebhookTest.php @@ -8,7 +8,7 @@ public function testDeleteWebhook0() { $client = $this->newClient(); $request = new Request\DeleteWebhook( - "9d5a228d-a804-4302-9403-50afcfa8d933" + "b1f508c8-a37b-4a0d-89ad-ba2072f5efba" ); try { $response = $client->send($request); diff --git a/tests/GetAccountTest.php b/tests/GetAccountTest.php index aacee5b0..4a5bd336 100644 --- a/tests/GetAccountTest.php +++ b/tests/GetAccountTest.php @@ -8,7 +8,7 @@ public function testGetAccount0() { $client = $this->newClient(); $request = new Request\GetAccount( - "e2f27231-d218-406e-b371-622b2afd45f7" + "659420e6-ccd8-47bd-9f80-4444609cfe97" ); try { $response = $client->send($request); diff --git a/tests/GetAccountTransferSummaryTest.php b/tests/GetAccountTransferSummaryTest.php index bfb698e2..846f0c3e 100644 --- a/tests/GetAccountTransferSummaryTest.php +++ b/tests/GetAccountTransferSummaryTest.php @@ -8,7 +8,7 @@ public function testGetAccountTransferSummary0() { $client = $this->newClient(); $request = new Request\GetAccountTransferSummary( - "d79ada44-2554-41d3-a753-5725590e9c63" + "2784c798-d5ac-46da-8465-d2dbc213a805" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testGetAccountTransferSummary1() { $client = $this->newClient(); $request = new Request\GetAccountTransferSummary( - "d79ada44-2554-41d3-a753-5725590e9c63", + "2784c798-d5ac-46da-8465-d2dbc213a805", [ - 'transfer_types' => ["exchange-outflow", "exchange-inflow", "refund-topup", "use-coupon", "refund-coupon", "payment", "refund-campaign", "campaign-topup", "refund-exchange-outflow"] + 'transfer_types' => ["use-coupon"] ] ); try { @@ -41,10 +41,10 @@ public function testGetAccountTransferSummary2() { $client = $this->newClient(); $request = new Request\GetAccountTransferSummary( - "d79ada44-2554-41d3-a753-5725590e9c63", + "2784c798-d5ac-46da-8465-d2dbc213a805", [ - 'to' => "2022-08-23T05:52:55.000000Z", - 'transfer_types' => ["exchange-outflow", "use-coupon", "refund-payment", "topup", "payment", "exchange-inflow", "refund-exchange-outflow"] + 'to' => "2023-02-07T22:58:38.000000Z", + 'transfer_types' => ["refund-exchange-outflow", "exchange-outflow", "refund-campaign", "refund-exchange-inflow", "payment", "refund-payment", "campaign-topup", "topup", "refund-coupon", "refund-topup", "use-coupon"] ] ); try { @@ -60,11 +60,11 @@ public function testGetAccountTransferSummary3() { $client = $this->newClient(); $request = new Request\GetAccountTransferSummary( - "d79ada44-2554-41d3-a753-5725590e9c63", + "2784c798-d5ac-46da-8465-d2dbc213a805", [ - 'from' => "2024-08-01T20:42:17.000000Z", - 'to' => "2022-12-23T22:37:41.000000Z", - 'transfer_types' => ["refund-campaign", "refund-payment", "use-coupon", "refund-exchange-outflow", "exchange-inflow", "refund-topup"] + 'from' => "2023-09-02T11:04:26.000000Z", + 'to' => "2023-04-29T14:54:57.000000Z", + 'transfer_types' => ["payment", "refund-coupon", "campaign-topup", "refund-exchange-outflow", "topup", "refund-campaign"] ] ); try { diff --git a/tests/GetBillTest.php b/tests/GetBillTest.php index 7c5bddca..9ff83911 100644 --- a/tests/GetBillTest.php +++ b/tests/GetBillTest.php @@ -8,7 +8,7 @@ public function testGetBill0() { $client = $this->newClient(); $request = new Request\GetBill( - "ceb060c8-59cb-4cac-a867-3f37e701e96a" + "f87fba5f-f102-4493-be3d-e2203cd347c3" ); try { $response = $client->send($request); diff --git a/tests/GetBulkTransactionTest.php b/tests/GetBulkTransactionTest.php index 1c0bdee7..a63f036e 100644 --- a/tests/GetBulkTransactionTest.php +++ b/tests/GetBulkTransactionTest.php @@ -8,7 +8,7 @@ public function testGetBulkTransaction0() { $client = $this->newClient(); $request = new Request\GetBulkTransaction( - "774f7d6e-0e80-413f-871b-c9ad0aa54f65" + "3b224ee7-a1d1-4682-8815-e72f29b0d066" ); try { $response = $client->send($request); diff --git a/tests/GetCampaignTest.php b/tests/GetCampaignTest.php index dfb53a96..a9494a91 100644 --- a/tests/GetCampaignTest.php +++ b/tests/GetCampaignTest.php @@ -8,7 +8,7 @@ public function testGetCampaign0() { $client = $this->newClient(); $request = new Request\GetCampaign( - "f8df46fc-51b8-4fab-ba59-d311353d81a7" + "bb23ecba-b7f9-439f-b130-e55b5adbf7cf" ); try { $response = $client->send($request); diff --git a/tests/GetCashtrayTest.php b/tests/GetCashtrayTest.php index 8391f43d..8713ba1e 100644 --- a/tests/GetCashtrayTest.php +++ b/tests/GetCashtrayTest.php @@ -8,7 +8,7 @@ public function testGetCashtray0() { $client = $this->newClient(); $request = new Request\GetCashtray( - "ddb0dd59-258d-4611-878e-db9420db9586" + "2f248e15-ed10-4b58-94ad-26ebd47cf6e9" ); try { $response = $client->send($request); diff --git a/tests/GetCheckTest.php b/tests/GetCheckTest.php index b0d23896..c98e9c9d 100644 --- a/tests/GetCheckTest.php +++ b/tests/GetCheckTest.php @@ -8,7 +8,7 @@ public function testGetCheck0() { $client = $this->newClient(); $request = new Request\GetCheck( - "f616c977-5ef1-4010-ae24-f1fe2440fe98" + "6cdc5517-57ff-4d82-8fc2-6f2ad7130968" ); try { $response = $client->send($request); diff --git a/tests/GetCouponTest.php b/tests/GetCouponTest.php index 2a4c1d2f..c039f4bb 100644 --- a/tests/GetCouponTest.php +++ b/tests/GetCouponTest.php @@ -8,7 +8,7 @@ public function testGetCoupon0() { $client = $this->newClient(); $request = new Request\GetCoupon( - "8b2db09a-324f-46e9-a7d4-5e226d78ffe7" + "5bb6b948-9b74-4866-b9e3-2040ac4aa4c4" ); try { $response = $client->send($request); diff --git a/tests/GetCpmTokenTest.php b/tests/GetCpmTokenTest.php index 0f908bb0..389c5f87 100644 --- a/tests/GetCpmTokenTest.php +++ b/tests/GetCpmTokenTest.php @@ -8,7 +8,7 @@ public function testGetCpmToken0() { $client = $this->newClient(); $request = new Request\GetCpmToken( - "TjYiVtdGDmgs4Vk2VUx2tI" + "s4Vk2VUx2tI5N4bIOpNtWw" ); try { $response = $client->send($request); diff --git a/tests/GetCustomerAccountsTest.php b/tests/GetCustomerAccountsTest.php index 512db767..7cddc233 100644 --- a/tests/GetCustomerAccountsTest.php +++ b/tests/GetCustomerAccountsTest.php @@ -8,7 +8,7 @@ public function testGetCustomerAccounts0() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625" + "0e4e7760-d0c1-43f4-8192-1c94876e3f07" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testGetCustomerAccounts1() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ - 'email' => "cm0Sp2RluF@OAxJ.com" + 'email' => "fcLabY2vDz@XzQx.com" ] ); try { @@ -41,10 +41,10 @@ public function testGetCustomerAccounts2() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ - 'tel' => "07-0551-2657", - 'email' => "TcJlnsa7zu@y1tu.com" + 'tel' => "0386914", + 'email' => "9VFC5bo0KX@fPAS.com" ] ); try { @@ -60,11 +60,11 @@ public function testGetCustomerAccounts3() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ - 'external_id' => "dw", - 'tel' => "071-69745487", - 'email' => "fKkMLwrBpO@RQ9L.com" + 'external_id' => "w8jPQ0hMJ4nPgNJOUuVI3xkUSOX0v", + 'tel' => "0074-316-0237", + 'email' => "pl9MWii2ex@Aarz.com" ] ); try { @@ -80,12 +80,12 @@ public function testGetCustomerAccounts4() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ - 'status' => "suspended", - 'external_id' => "lnKRmCd4n", - 'tel' => "045-981479", - 'email' => "qpn3W7S36l@34SS.com" + 'status' => "active", + 'external_id' => "UllrgsQZQAnUYeKIbZQuPYAKNLvTyMc", + 'tel' => "039-279393", + 'email' => "z5jRHNPv9L@O3Mt.com" ] ); try { @@ -101,13 +101,13 @@ public function testGetCustomerAccounts5() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ 'is_suspended' => FALSE, 'status' => "active", - 'external_id' => "W72gqSjd8QPzbjt0rt7UmerReZGbvGgvA", - 'tel' => "09215911045", - 'email' => "P1AnQALadF@sAzg.com" + 'external_id' => "yt1wTnktL8AY", + 'tel' => "004073-175", + 'email' => "ncONv8Kje2@pUTW.com" ] ); try { @@ -123,14 +123,14 @@ public function testGetCustomerAccounts6() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ - 'created_at_to' => "2022-07-27T22:59:50.000000Z", - 'is_suspended' => TRUE, - 'status' => "pre-closed", - 'external_id' => "tuXgZDedIJqTHGgnOhGiwZBj5AvHdO2Atfc", - 'tel' => "0129-664-818", - 'email' => "3sP8V6IT9V@FC5b.com" + 'created_at_to' => "2022-04-21T04:20:10.000000Z", + 'is_suspended' => FALSE, + 'status' => "suspended", + 'external_id' => "NDe87", + 'tel' => "045226365", + 'email' => "Usk6umIdkj@ysmB.com" ] ); try { @@ -146,15 +146,15 @@ public function testGetCustomerAccounts7() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ - 'created_at_from' => "2021-03-24T19:42:09.000000Z", - 'created_at_to' => "2020-09-24T18:38:11.000000Z", + 'created_at_from' => "2022-05-05T01:50:52.000000Z", + 'created_at_to' => "2024-03-10T11:23:04.000000Z", 'is_suspended' => TRUE, - 'status' => "active", - 'external_id' => "PASw8jPQ0hMJ4nPgNJOUuVI3xkUSOX0vTgyFK1F", - 'tel' => "002-97-992", - 'email' => "exAarzlUll@rgsQ.com" + 'status' => "suspended", + 'external_id' => "Cy1Ud1e5PrxfXmPZX1VlVfqebv0ckwSJ4e9e0pY47yGoAwg2", + 'tel' => "0343-6615", + 'email' => "wFZHEg2RF0@uEHw.com" ] ); try { @@ -170,16 +170,16 @@ public function testGetCustomerAccounts8() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ - 'per_page' => 6435, - 'created_at_from' => "2022-12-18T13:21:30.000000Z", - 'created_at_to' => "2025-06-21T23:46:25.000000Z", + 'per_page' => 2583, + 'created_at_from' => "2022-08-10T17:00:59.000000Z", + 'created_at_to' => "2023-09-15T19:26:54.000000Z", 'is_suspended' => FALSE, - 'status' => "pre-closed", - 'external_id' => "U", - 'tel' => "070-062-041", - 'email' => "uPYAKNLvTy@McIY.com" + 'status' => "suspended", + 'external_id' => "Jbwu9JRSn5a7ymUxn4mfvD7ycun86BZW4IWD5", + 'tel' => "0416-7601-378", + 'email' => "rq2HjQnZoV@WhOd.com" ] ); try { @@ -195,17 +195,17 @@ public function testGetCustomerAccounts9() { $client = $this->newClient(); $request = new Request\GetCustomerAccounts( - "e981839f-7730-40a4-9991-3f49bc7c0625", + "0e4e7760-d0c1-43f4-8192-1c94876e3f07", [ - '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, + 'page' => 9504, + 'per_page' => 992, + 'created_at_from' => "2024-11-26T21:23:31.000000Z", + 'created_at_to' => "2026-05-27T18:46:45.000000Z", + 'is_suspended' => TRUE, 'status' => "suspended", - 'external_id' => "Sz5j", - 'tel' => "084-00934", - 'email' => "Pyt1wTnktL@8AYk.com" + 'external_id' => "EjTApY38vZyrfHaX2ePxiTIXhf26BicGgC0Q3onqPmyIzF", + 'tel' => "06-385030", + 'email' => "DlS2m5Kv5I@bgTW.com" ] ); try { diff --git a/tests/GetCustomerCardsTest.php b/tests/GetCustomerCardsTest.php new file mode 100644 index 00000000..cbe41e90 --- /dev/null +++ b/tests/GetCustomerCardsTest.php @@ -0,0 +1,59 @@ +newClient(); + $request = new Request\GetCustomerCards( + "78f87e28-1030-4446-89e4-0dce77b26453" + ); + 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 testGetCustomerCards1() + { + $client = $this->newClient(); + $request = new Request\GetCustomerCards( + "78f87e28-1030-4446-89e4-0dce77b26453", + [ + 'per_page' => 42 + ] + ); + 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 testGetCustomerCards2() + { + $client = $this->newClient(); + $request = new Request\GetCustomerCards( + "78f87e28-1030-4446-89e4-0dce77b26453", + [ + 'page' => 9345, + 'per_page' => 99 + ] + ); + 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/GetCvsAuthorizationTest.php b/tests/GetCvsAuthorizationTest.php new file mode 100644 index 00000000..c54a1269 --- /dev/null +++ b/tests/GetCvsAuthorizationTest.php @@ -0,0 +1,22 @@ +newClient(); + $request = new Request\GetCvsAuthorization( + "024716d0-6e42-452b-9ab9-e7f60894880b" + ); + 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/GetCvsAuthorizationsTest.php b/tests/GetCvsAuthorizationsTest.php new file mode 100644 index 00000000..f73a693c --- /dev/null +++ b/tests/GetCvsAuthorizationsTest.php @@ -0,0 +1,122 @@ +newClient(); + $request = new Request\GetCvsAuthorizations( + "8f08513d-8d1d-4edb-9218-d082d51d154a" + ); + 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 testGetCvsAuthorizations1() + { + $client = $this->newClient(); + $request = new Request\GetCvsAuthorizations( + "8f08513d-8d1d-4edb-9218-d082d51d154a", + [ + 'per_page' => 41 + ] + ); + 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 testGetCvsAuthorizations2() + { + $client = $this->newClient(); + $request = new Request\GetCvsAuthorizations( + "8f08513d-8d1d-4edb-9218-d082d51d154a", + [ + 'after' => "taFGOOZN", + 'per_page' => 83 + ] + ); + 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 testGetCvsAuthorizations3() + { + $client = $this->newClient(); + $request = new Request\GetCvsAuthorizations( + "8f08513d-8d1d-4edb-9218-d082d51d154a", + [ + 'before' => "womkOYYXss", + 'after' => "h0", + 'per_page' => 98 + ] + ); + 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 testGetCvsAuthorizations4() + { + $client = $this->newClient(); + $request = new Request\GetCvsAuthorizations( + "8f08513d-8d1d-4edb-9218-d082d51d154a", + [ + 'status' => "expired", + 'before' => "Um", + 'after' => "BE", + 'per_page' => 58 + ] + ); + 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 testGetCvsAuthorizations5() + { + $client = $this->newClient(); + $request = new Request\GetCvsAuthorizations( + "8f08513d-8d1d-4edb-9218-d082d51d154a", + [ + 'customer_id' => "59b79ec4-2f57-4974-814e-a4206a752548", + 'status' => "applied", + 'before' => "5sfx", + 'after' => "Sg9q1O62I", + 'per_page' => 82 + ] + ); + 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/GetExternalTransactionByRequestIdTest.php b/tests/GetExternalTransactionByRequestIdTest.php index 22943e33..3b2d88e9 100644 --- a/tests/GetExternalTransactionByRequestIdTest.php +++ b/tests/GetExternalTransactionByRequestIdTest.php @@ -8,7 +8,7 @@ public function testGetExternalTransactionByRequestId0() { $client = $this->newClient(); $request = new Request\GetExternalTransactionByRequestId( - "555b2bee-f118-47ce-9c46-2befdd2a7b4e" + "25dbfc9a-2a1b-4e9b-8ef0-36b71a610985" ); try { $response = $client->send($request); diff --git a/tests/GetPrivateMoneyOrganizationSummariesTest.php b/tests/GetPrivateMoneyOrganizationSummariesTest.php index 99186612..a02b172f 100644 --- a/tests/GetPrivateMoneyOrganizationSummariesTest.php +++ b/tests/GetPrivateMoneyOrganizationSummariesTest.php @@ -8,7 +8,7 @@ public function testGetPrivateMoneyOrganizationSummaries0() { $client = $this->newClient(); $request = new Request\GetPrivateMoneyOrganizationSummaries( - "ff54fc91-7642-4ae0-919d-07e4e7d7a11f" + "a5f9db79-dfb7-4fa0-8d52-05de64e12ab5" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testGetPrivateMoneyOrganizationSummaries1() { $client = $this->newClient(); $request = new Request\GetPrivateMoneyOrganizationSummaries( - "ff54fc91-7642-4ae0-919d-07e4e7d7a11f", + "a5f9db79-dfb7-4fa0-8d52-05de64e12ab5", [ - 'page' => 13 + 'page' => 7142 ] ); try { @@ -41,10 +41,10 @@ public function testGetPrivateMoneyOrganizationSummaries2() { $client = $this->newClient(); $request = new Request\GetPrivateMoneyOrganizationSummaries( - "ff54fc91-7642-4ae0-919d-07e4e7d7a11f", + "a5f9db79-dfb7-4fa0-8d52-05de64e12ab5", [ - 'per_page' => 627, - 'page' => 3171 + 'per_page' => 7321, + 'page' => 1583 ] ); try { @@ -60,10 +60,10 @@ public function testGetPrivateMoneyOrganizationSummaries3() { $client = $this->newClient(); $request = new Request\GetPrivateMoneyOrganizationSummaries( - "ff54fc91-7642-4ae0-919d-07e4e7d7a11f", + "a5f9db79-dfb7-4fa0-8d52-05de64e12ab5", [ - 'from' => "2024-11-05T18:59:45.000000Z", - 'to' => "2020-09-03T19:49:23.000000Z" + 'from' => "2021-05-11T15:27:55.000000Z", + 'to' => "2021-10-28T09:43:16.000000Z" ] ); try { @@ -79,11 +79,11 @@ public function testGetPrivateMoneyOrganizationSummaries4() { $client = $this->newClient(); $request = new Request\GetPrivateMoneyOrganizationSummaries( - "ff54fc91-7642-4ae0-919d-07e4e7d7a11f", + "a5f9db79-dfb7-4fa0-8d52-05de64e12ab5", [ - 'from' => "2021-04-04T15:41:36.000000Z", - 'to' => "2022-07-23T21:24:52.000000Z", - 'page' => 6486 + 'from' => "2020-07-08T09:30:10.000000Z", + 'to' => "2021-07-16T01:27:24.000000Z", + 'page' => 5099 ] ); try { @@ -99,12 +99,12 @@ public function testGetPrivateMoneyOrganizationSummaries5() { $client = $this->newClient(); $request = new Request\GetPrivateMoneyOrganizationSummaries( - "ff54fc91-7642-4ae0-919d-07e4e7d7a11f", + "a5f9db79-dfb7-4fa0-8d52-05de64e12ab5", [ - 'from' => "2023-03-13T13:21:42.000000Z", - 'to' => "2021-08-11T18:21:11.000000Z", - 'per_page' => 6895, - 'page' => 2455 + 'from' => "2020-01-21T09:33:37.000000Z", + 'to' => "2023-05-25T19:51:32.000000Z", + 'per_page' => 3054, + 'page' => 6430 ] ); try { diff --git a/tests/GetPrivateMoneySummaryTest.php b/tests/GetPrivateMoneySummaryTest.php index 0b053a62..b9d5ce0a 100644 --- a/tests/GetPrivateMoneySummaryTest.php +++ b/tests/GetPrivateMoneySummaryTest.php @@ -8,7 +8,7 @@ public function testGetPrivateMoneySummary0() { $client = $this->newClient(); $request = new Request\GetPrivateMoneySummary( - "e8a6c2da-79ee-489b-936f-02677817e878" + "68f75742-ff32-4a67-beab-d3a9432d107a" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testGetPrivateMoneySummary1() { $client = $this->newClient(); $request = new Request\GetPrivateMoneySummary( - "e8a6c2da-79ee-489b-936f-02677817e878", + "68f75742-ff32-4a67-beab-d3a9432d107a", [ - 'to' => "2022-02-21T20:18:06.000000Z" + 'to' => "2023-11-21T04:10:19.000000Z" ] ); try { @@ -41,10 +41,10 @@ public function testGetPrivateMoneySummary2() { $client = $this->newClient(); $request = new Request\GetPrivateMoneySummary( - "e8a6c2da-79ee-489b-936f-02677817e878", + "68f75742-ff32-4a67-beab-d3a9432d107a", [ - 'from' => "2020-05-17T00:49:18.000000Z", - 'to' => "2020-12-07T20:20:30.000000Z" + 'from' => "2020-07-27T18:38:32.000000Z", + 'to' => "2025-01-06T07:58:17.000000Z" ] ); try { diff --git a/tests/GetPrivateMoneysTest.php b/tests/GetPrivateMoneysTest.php index 611675eb..0555d1b5 100644 --- a/tests/GetPrivateMoneysTest.php +++ b/tests/GetPrivateMoneysTest.php @@ -22,7 +22,7 @@ public function testGetPrivateMoneys1() $client = $this->newClient(); $request = new Request\GetPrivateMoneys( [ - 'per_page' => 5299 + 'per_page' => 3655 ] ); try { @@ -39,8 +39,8 @@ public function testGetPrivateMoneys2() $client = $this->newClient(); $request = new Request\GetPrivateMoneys( [ - 'page' => 6796, - 'per_page' => 1258 + 'page' => 6167, + 'per_page' => 1301 ] ); try { @@ -57,9 +57,9 @@ public function testGetPrivateMoneys3() $client = $this->newClient(); $request = new Request\GetPrivateMoneys( [ - 'organization_code' => "aS3qLR873-i-2m5ZG9-807s-2-i", - 'page' => 4191, - 'per_page' => 4017 + 'organization_code' => "9", + 'page' => 5594, + 'per_page' => 1010 ] ); try { diff --git a/tests/GetSevenBankATMSessionTest.php b/tests/GetSevenBankATMSessionTest.php index 4e7f1fa4..2520d2e0 100644 --- a/tests/GetSevenBankATMSessionTest.php +++ b/tests/GetSevenBankATMSessionTest.php @@ -8,7 +8,7 @@ public function testGetSevenBankAtmSession0() { $client = $this->newClient(); $request = new Request\GetSevenBankATMSession( - "BOJZocfpIF" + "zqeaCyQXA4" ); try { $response = $client->send($request); diff --git a/tests/GetShopAccountsTest.php b/tests/GetShopAccountsTest.php index dcba461f..31cd3eee 100644 --- a/tests/GetShopAccountsTest.php +++ b/tests/GetShopAccountsTest.php @@ -8,7 +8,7 @@ public function testGetShopAccounts0() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "a6714648-ca18-4c6a-9ecb-b1f97ca44a38" + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testGetShopAccounts1() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", [ - 'is_suspended' => FALSE + 'is_suspended' => TRUE ] ); try { @@ -41,10 +41,10 @@ public function testGetShopAccounts2() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", [ - 'created_at_to' => "2024-07-25T03:44:04.000000Z", - 'is_suspended' => FALSE + 'created_at_to' => "2021-10-31T16:57:13.000000Z", + 'is_suspended' => TRUE ] ); try { @@ -60,11 +60,11 @@ public function testGetShopAccounts3() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", [ - 'created_at_from' => "2023-03-19T21:52:50.000000Z", - 'created_at_to' => "2021-05-16T14:27:26.000000Z", - 'is_suspended' => FALSE + 'created_at_from' => "2023-11-06T02:31:37.000000Z", + 'created_at_to' => "2024-07-07T08:34:30.000000Z", + 'is_suspended' => TRUE ] ); try { @@ -80,12 +80,12 @@ public function testGetShopAccounts4() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", [ - 'per_page' => 2991, - 'created_at_from' => "2021-03-14T12:40:20.000000Z", - 'created_at_to' => "2023-05-24T08:19:28.000000Z", - 'is_suspended' => TRUE + 'per_page' => 6667, + 'created_at_from' => "2023-12-12T11:10:42.000000Z", + 'created_at_to' => "2023-11-10T03:08:06.000000Z", + 'is_suspended' => FALSE ] ); try { @@ -101,13 +101,13 @@ public function testGetShopAccounts5() { $client = $this->newClient(); $request = new Request\GetShopAccounts( - "a6714648-ca18-4c6a-9ecb-b1f97ca44a38", + "4ba9474d-bb29-4b26-92d0-60cb26e8cd8d", [ - '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 + 'page' => 7903, + 'per_page' => 1435, + 'created_at_from' => "2021-06-16T10:57:24.000000Z", + 'created_at_to' => "2020-01-11T14:03:41.000000Z", + 'is_suspended' => TRUE ] ); try { diff --git a/tests/GetShopTest.php b/tests/GetShopTest.php index 419f5115..801c5faf 100644 --- a/tests/GetShopTest.php +++ b/tests/GetShopTest.php @@ -8,7 +8,7 @@ public function testGetShop0() { $client = $this->newClient(); $request = new Request\GetShop( - "97a6a400-27cd-4844-89bd-5a6728da9a96" + "8a54778a-60d6-48f2-97f2-0e4b99a0b664" ); try { $response = $client->send($request); diff --git a/tests/GetTransactionByRequestIdTest.php b/tests/GetTransactionByRequestIdTest.php index 178144bd..a46de40e 100644 --- a/tests/GetTransactionByRequestIdTest.php +++ b/tests/GetTransactionByRequestIdTest.php @@ -8,7 +8,7 @@ public function testGetTransactionByRequestId0() { $client = $this->newClient(); $request = new Request\GetTransactionByRequestId( - "9749343c-1c9c-4430-afba-cecf7c5238e3" + "1e32187f-185b-48b0-9c50-ddbbcfa5867d" ); try { $response = $client->send($request); diff --git a/tests/GetTransactionTest.php b/tests/GetTransactionTest.php index abe86f1d..4bd58b75 100644 --- a/tests/GetTransactionTest.php +++ b/tests/GetTransactionTest.php @@ -8,7 +8,7 @@ public function testGetTransaction0() { $client = $this->newClient(); $request = new Request\GetTransaction( - "3667a2a0-8fb2-49f7-8fb8-d6a3db04f8ca" + "a4923dc3-f579-4dc9-b4b3-d44783056e8b" ); try { $response = $client->send($request); diff --git a/tests/GetUserDeviceTest.php b/tests/GetUserDeviceTest.php index e9adcf30..e07b6d66 100644 --- a/tests/GetUserDeviceTest.php +++ b/tests/GetUserDeviceTest.php @@ -8,7 +8,7 @@ public function testGetUserDevice0() { $client = $this->newClient(); $request = new Request\GetUserDevice( - "1ead4f40-9f41-4dd4-8e62-f7660e956691" + "fc2fba66-d0e4-46a9-8554-4cf3217d2901" ); try { $response = $client->send($request); diff --git a/tests/ListAccountBalancesTest.php b/tests/ListAccountBalancesTest.php index 44860e38..ae411312 100644 --- a/tests/ListAccountBalancesTest.php +++ b/tests/ListAccountBalancesTest.php @@ -8,7 +8,7 @@ public function testListAccountBalances0() { $client = $this->newClient(); $request = new Request\ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95" + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListAccountBalances1() { $client = $this->newClient(); $request = new Request\ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", [ - 'direction' => "desc" + 'direction' => "asc" ] ); try { @@ -41,10 +41,10 @@ public function testListAccountBalances2() { $client = $this->newClient(); $request = new Request\ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", [ - 'expires_at_to' => "2020-10-07T18:59:38.000000Z", - 'direction' => "desc" + 'expires_at_to' => "2024-07-17T16:43:47.000000Z", + 'direction' => "asc" ] ); try { @@ -60,10 +60,10 @@ public function testListAccountBalances3() { $client = $this->newClient(); $request = new Request\ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", [ - 'expires_at_from' => "2020-09-07T21:25:03.000000Z", - 'expires_at_to' => "2024-10-02T20:33:17.000000Z", + 'expires_at_from' => "2021-04-06T08:41:06.000000Z", + 'expires_at_to' => "2023-06-02T11:51:13.000000Z", 'direction' => "desc" ] ); @@ -80,11 +80,11 @@ public function testListAccountBalances4() { $client = $this->newClient(); $request = new Request\ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", [ - 'per_page' => 5374, - 'expires_at_from' => "2021-01-13T03:58:59.000000Z", - 'expires_at_to' => "2024-09-16T05:40:45.000000Z", + 'per_page' => 4634, + 'expires_at_from' => "2024-01-18T23:56:06.000000Z", + 'expires_at_to' => "2021-12-10T18:32:08.000000Z", 'direction' => "desc" ] ); @@ -101,12 +101,12 @@ public function testListAccountBalances5() { $client = $this->newClient(); $request = new Request\ListAccountBalances( - "0adcc451-9f5b-4fe8-8803-fd1118c34c95", + "d5604b93-65ee-41d4-b3d2-ab9edcaac0bf", [ - 'page' => 9044, - 'per_page' => 3584, - 'expires_at_from' => "2024-10-29T10:47:52.000000Z", - 'expires_at_to' => "2022-05-05T20:55:29.000000Z", + 'page' => 5372, + 'per_page' => 1503, + 'expires_at_from' => "2021-10-12T09:36:01.000000Z", + 'expires_at_to' => "2023-11-12T04:37:14.000000Z", 'direction' => "asc" ] ); diff --git a/tests/ListAccountExpiredBalancesTest.php b/tests/ListAccountExpiredBalancesTest.php index 1df6543c..1c47a4ac 100644 --- a/tests/ListAccountExpiredBalancesTest.php +++ b/tests/ListAccountExpiredBalancesTest.php @@ -8,7 +8,7 @@ public function testListAccountExpiredBalances0() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "a4a782a4-76f9-4936-a8d1-35b63e8bbb60" + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f" ); try { $response = $client->send($request); @@ -23,7 +23,7 @@ public function testListAccountExpiredBalances1() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", [ 'direction' => "desc" ] @@ -41,9 +41,9 @@ public function testListAccountExpiredBalances2() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", [ - 'expires_at_to' => "2020-10-21T06:08:14.000000Z", + 'expires_at_to' => "2020-05-12T06:39:28.000000Z", 'direction' => "desc" ] ); @@ -60,10 +60,10 @@ public function testListAccountExpiredBalances3() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", [ - 'expires_at_from' => "2024-05-06T22:47:15.000000Z", - 'expires_at_to' => "2021-02-10T04:23:33.000000Z", + 'expires_at_from' => "2021-08-10T22:28:30.000000Z", + 'expires_at_to' => "2022-01-02T23:11:37.000000Z", 'direction' => "asc" ] ); @@ -80,11 +80,11 @@ public function testListAccountExpiredBalances4() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", [ - 'per_page' => 9269, - 'expires_at_from' => "2022-07-27T12:24:37.000000Z", - 'expires_at_to' => "2020-03-19T18:01:03.000000Z", + 'per_page' => 4714, + 'expires_at_from' => "2020-04-19T21:07:10.000000Z", + 'expires_at_to' => "2023-01-28T20:39:36.000000Z", 'direction' => "desc" ] ); @@ -101,13 +101,13 @@ public function testListAccountExpiredBalances5() { $client = $this->newClient(); $request = new Request\ListAccountExpiredBalances( - "a4a782a4-76f9-4936-a8d1-35b63e8bbb60", + "154960a2-ce1f-44d3-ad4e-01f7bc94c80f", [ - 'page' => 6531, - 'per_page' => 2579, - 'expires_at_from' => "2023-10-07T04:30:21.000000Z", - 'expires_at_to' => "2023-04-20T20:38:29.000000Z", - 'direction' => "asc" + 'page' => 2353, + 'per_page' => 7193, + 'expires_at_from' => "2025-03-14T13:29:46.000000Z", + 'expires_at_to' => "2021-07-19T10:26:05.000000Z", + 'direction' => "desc" ] ); try { diff --git a/tests/ListBanksTest.php b/tests/ListBanksTest.php index f4f5b150..20bea2d3 100644 --- a/tests/ListBanksTest.php +++ b/tests/ListBanksTest.php @@ -8,7 +8,7 @@ public function testListBanks0() { $client = $this->newClient(); $request = new Request\ListBanks( - "aff84fa3-5610-4c5d-9c3e-0d6f93f40543" + "075462b8-815e-4bf2-870d-03b1c8dcddd4" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListBanks1() { $client = $this->newClient(); $request = new Request\ListBanks( - "aff84fa3-5610-4c5d-9c3e-0d6f93f40543", + "075462b8-815e-4bf2-870d-03b1c8dcddd4", [ - 'private_money_id' => "e768535b-5005-45f4-a553-3a1ea727e938" + 'private_money_id' => "8ce3a62e-fd04-433f-87b2-9af9a5f57314" ] ); try { diff --git a/tests/ListBillTransactionsTest.php b/tests/ListBillTransactionsTest.php index 8e4350a4..31cf8f7e 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' => 166 + 'per_page' => 227 ] ); try { @@ -39,8 +39,8 @@ public function testListBillTransactions2() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'prev_page_cursor_id' => "60fe0e50-aba1-4233-bb7c-2964f54d34af", - 'per_page' => 505 + 'prev_page_cursor_id' => "2a67173e-b942-43a4-ae81-adefee312533", + 'per_page' => 329 ] ); try { @@ -57,9 +57,9 @@ public function testListBillTransactions3() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'next_page_cursor_id' => "d15140cc-1a68-49c4-a1ea-7e8a71ca7b90", - 'prev_page_cursor_id' => "031f1872-bdf4-4c21-b4af-9b43b371718c", - 'per_page' => 327 + 'next_page_cursor_id' => "3edd73da-a3af-468e-9d04-ffe87a2c959c", + 'prev_page_cursor_id' => "29f2e505-1bee-4cf9-8e5a-6a354d01fb19", + 'per_page' => 850 ] ); try { @@ -76,10 +76,10 @@ public function testListBillTransactions4() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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 + 'to' => "2023-08-03T15:24:11.000000Z", + 'next_page_cursor_id' => "ccbb09bb-df37-4016-b78f-a5d54e3090ab", + 'prev_page_cursor_id' => "d67b2b98-1a30-4bb4-a12c-e9de9b83b890", + 'per_page' => 294 ] ); try { @@ -96,11 +96,11 @@ public function testListBillTransactions5() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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 + 'from' => "2025-04-12T09:53:49.000000Z", + 'to' => "2024-05-13T09:34:33.000000Z", + 'next_page_cursor_id' => "39f20a17-71cc-4111-b301-89167d16d33d", + 'prev_page_cursor_id' => "d34cd134-bce8-4a6d-b934-10c36e116eb2", + 'per_page' => 224 ] ); try { @@ -118,11 +118,11 @@ public function testListBillTransactions6() $request = new Request\ListBillTransactions( [ '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 + 'from' => "2025-11-05T01:00:16.000000Z", + 'to' => "2023-09-28T21:39:19.000000Z", + 'next_page_cursor_id' => "aa9eba9a-af06-4238-893b-50a8e0abd640", + 'prev_page_cursor_id' => "a31802d7-f60d-4209-ae01-b64337f29b9a", + 'per_page' => 723 ] ); try { @@ -139,13 +139,13 @@ public function testListBillTransactions7() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'bill_id' => "04fa6b35-29b7-40b4-bce5-ee23988082bf", - 'is_modified' => TRUE, - '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 + 'bill_id' => "c7adb47c-89e6-4827-8cfa-5a32a83f79ec", + 'is_modified' => FALSE, + 'from' => "2022-09-04T06:37:11.000000Z", + 'to' => "2023-06-12T03:51:25.000000Z", + 'next_page_cursor_id' => "f2914d65-79fd-4827-af8f-6a2366054429", + 'prev_page_cursor_id' => "c76517f6-5f8f-40e2-bbaf-462a36dbd131", + 'per_page' => 979 ] ); try { @@ -162,14 +162,14 @@ public function testListBillTransactions8() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - 'transaction_id' => "3bf4dabf-bab6-45fa-b1b4-ab0bb6108139", - 'bill_id' => "c9b848ca-a142-4c52-9adb-3ced964ca051", + 'transaction_id' => "ed1f2fbf-fcb7-4ecf-b69d-f6ab3af9f151", + 'bill_id' => "bcfe0d4f-f6e7-4e5f-a29e-e398c28ba1dc", 'is_modified' => FALSE, - '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 + 'from' => "2023-01-28T04:13:11.000000Z", + 'to' => "2026-07-02T00:24:18.000000Z", + 'next_page_cursor_id' => "2a8c8013-18fa-4770-8763-4514ef3f7b13", + 'prev_page_cursor_id' => "a99d878b-e4e1-484c-9d97-567be224783d", + 'per_page' => 377 ] ); try { @@ -186,15 +186,15 @@ public function testListBillTransactions9() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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 + 'description' => "a2QZma6CRo8nyJO9Y3f9djMgk8QSZwJ1udEIb7zDJ6KZTEk0mDRGqd8jGihF2z", + 'transaction_id' => "a15dc3ef-3aa6-4b80-b2c7-a5ff6501f219", + 'bill_id' => "4309bea3-b6ce-4b8e-b39d-227b06ecaf87", + 'is_modified' => FALSE, + 'from' => "2026-03-20T09:05:04.000000Z", + 'to' => "2020-05-20T13:27:53.000000Z", + 'next_page_cursor_id' => "a4d3bc44-891f-4eff-bc9f-bf83700c66ad", + 'prev_page_cursor_id' => "2b4a49c7-f836-4803-8da6-d22837d6948c", + 'per_page' => 324 ] ); try { @@ -211,16 +211,16 @@ public function testListBillTransactions10() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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 + 'terminal_id' => "445665da-5c53-4f31-9b10-583b6dcf6ad0", + 'description' => "e5LZz", + 'transaction_id' => "316b91e9-3e5f-442f-b2ce-528b1e6b7bde", + 'bill_id' => "fb105dae-1f0c-43ff-8eed-56571879cf42", + 'is_modified' => TRUE, + 'from' => "2020-01-02T01:36:47.000000Z", + 'to' => "2024-08-01T12:37:50.000000Z", + 'next_page_cursor_id' => "0699a675-d348-47f2-9287-f960d88f7c7a", + 'prev_page_cursor_id' => "15b2cbe6-f6ec-4919-8ff9-402c60f9f9ae", + 'per_page' => 719 ] ); try { @@ -237,17 +237,17 @@ public function testListBillTransactions11() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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' => "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 + 'customer_name' => "d3ROmH9nMfAHnX3LOs6P3dxLhDjrt4CFESWJnPCLUxGLtrgoghS3pPHE574eeX1ksH4R2MgyW6z149JBRZmQUgzecqWdDVSstoEtPVoykbtA6l7WDayqQLAKXyhWYdlIHfSBBKI1KQl4cK6HLesoN7AsxjaX4bkzoW5SSzFCKjOEE829PJZq44v95w5OTBAsM3ixdWcd35lzGg9k8zX5Zx6rdzZ6K", + 'terminal_id' => "21ef5869-d4f7-4f36-b045-bacbce62448b", + 'description' => "pO7FL05ARSiRG2UPRPUxcw9rvtxOfCP20hUm1E2Nlz5V1CO5TSFyNtopqI6bCrDgQTiBz8hopleWuv10dzqDmxXKufPIjjJpzSXKPSRMVYMVxniANdM0yy6srRZNC9bYJUFWp4SJDd9Vw0g", + 'transaction_id' => "f14c9268-689c-4c76-9c55-cdf79b5ef9c8", + 'bill_id' => "19a91c59-b734-4147-80d0-a82a1224a44d", + 'is_modified' => FALSE, + 'from' => "2021-01-22T12:32:39.000000Z", + 'to' => "2025-09-09T19:01:16.000000Z", + 'next_page_cursor_id' => "64d2b294-2c2d-4771-a134-a48708482670", + 'prev_page_cursor_id' => "314577a6-b1b3-47ce-bb00-8914649a83c2", + 'per_page' => 25 ] ); try { @@ -264,18 +264,18 @@ public function testListBillTransactions12() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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", + 'customer_id' => "a033e0d6-2736-41ea-bb6e-b1c4c5e5a33a", + 'customer_name' => "mNinmBAkCQlWqd4VgtaT7nx9nCCSGOYqsqY3PQB7j8S1LcJM99jV6h5DQ4TL9sXbFiutZ4", + 'terminal_id' => "ae223a77-53c6-4e93-aa9a-c34748d1c6ac", + 'description' => "xBLsRpox6uXLc6he8Kxv6FPaZ8I6AxiybIUdjn2JlMSQ6V8dRYSFDiggsas4Nm4Pbqn0MLycuAIyd8Tc91YrDumA0BEPaxu5hz8quH88gYqQC45YQseyms9QyHVorEq6zLZyg3cEPs9bN7e1DJRmWCvXV5", + 'transaction_id' => "115f8e66-a183-47b7-9c2f-288a1e96000e", + 'bill_id' => "29f58d4e-478d-4bc6-b808-2d078291b6de", '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 + 'from' => "2024-03-08T13:37:22.000000Z", + 'to' => "2020-03-19T07:04:39.000000Z", + 'next_page_cursor_id' => "68bdd1d4-e6a9-43d4-974f-bb23a2e8b5be", + 'prev_page_cursor_id' => "b0240214-2ee0-4a98-8b8c-5f1ea7cfda68", + 'per_page' => 934 ] ); try { @@ -292,19 +292,19 @@ public function testListBillTransactions13() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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", + 'shop_id' => "b3995ebf-bbdf-415f-adb4-b5994954e7a0", + 'customer_id' => "91239de3-bba4-4df0-9a81-428b47f12107", + 'customer_name' => "2t8rtdj0F82hhuu2d72PSRBNNGTP71wcJLJGkIvTZnRNAv7oeQjUez1G0bwCFur", + 'terminal_id' => "54882a78-a46d-4905-a17f-b1af5e488f23", + 'description' => "HHuXDOcuycPW2WYY40yWZt9ZjHKqLir6qmCF3zfoEN4hG6jzrPFiN4YTSJ9o4hVc0u6tzaZ3sbYKC", + 'transaction_id' => "287696ce-0879-49e2-ad10-c341f407c76c", + 'bill_id' => "a855f58d-be8f-436b-a10a-ab9345d7dca0", 'is_modified' => TRUE, - '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 + 'from' => "2022-07-03T05:19:06.000000Z", + 'to' => "2021-05-12T13:37:16.000000Z", + 'next_page_cursor_id' => "92f0b0f6-22f5-4019-a27c-8ede3dd4dfd2", + 'prev_page_cursor_id' => "b39bbba2-797b-4b84-9c8f-a2f3ac30cf0d", + 'per_page' => 248 ] ); try { @@ -321,20 +321,20 @@ public function testListBillTransactions14() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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' => "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 + 'organization_code' => "-5Sk-1-hf", + 'shop_id' => "df42fa53-5475-402d-a787-813fb5c51899", + 'customer_id' => "c9ae151c-582e-4a88-8730-3736f1500b00", + 'customer_name' => "FE8juzeNIN", + 'terminal_id' => "836bfeda-3beb-4925-803f-3ef4ea8d0525", + 'description' => "FZU0JpHpSrpNbF8O3WzYFSGY9bWV5jbNBEz14f9BIpTXI2luGWaGy1CoCYoYmaL", + 'transaction_id' => "f679ccf2-2131-4cc2-875f-1edefa6d078b", + 'bill_id' => "4f498ecc-31d9-422d-91e4-e7235301348d", + 'is_modified' => FALSE, + 'from' => "2023-01-25T15:49:07.000000Z", + 'to' => "2022-11-14T01:18:42.000000Z", + 'next_page_cursor_id' => "ac96b514-5cf3-47ff-820e-903c13690a37", + 'prev_page_cursor_id' => "2634458e-85bb-446e-a604-45b3d926b280", + 'per_page' => 251 ] ); try { @@ -351,21 +351,21 @@ public function testListBillTransactions15() $client = $this->newClient(); $request = new Request\ListBillTransactions( [ - '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", + 'private_money_id' => "bb5358b7-60a7-4afa-9d37-25b6ea44fecf", + 'organization_code' => "K-95oru--w13-dL-Oj6-T77-Q", + 'shop_id' => "c578b72c-212a-4fbf-84a5-390818ba94bc", + 'customer_id' => "e40c8793-77b2-4411-8713-1fffa4dfd137", + 'customer_name' => "yVjYZzSkjksojB4PnV9sBfF1BkHf1A87wLQ9bOIRS2WYI5ck8HRSP5FHw4UX4tGWi4N1WpwhPzDe8V1DYdcKn6nAl4cEX7", + 'terminal_id' => "b3c2dbb1-e508-4c82-a005-8b0592105b5c", + 'description' => "br7jv7EDkwXN76HyKk1SGbd2fzw9nBiKXYeHN7C4dOhcXyEVzhZku2OJwUM0ktk1yse4CdNhZgpKbkXWC5tLFNUhqVPCyC44juCu9OYkti8QhcNElbkx4K7ompotaJBLyz8KN17fL", + 'transaction_id' => "125b6bf8-f5d0-4a8e-9a19-d8553ba80017", + 'bill_id' => "21605911-0131-4f23-a39e-92c72fe9331c", '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 + 'from' => "2022-12-03T13:32:38.000000Z", + 'to' => "2020-08-08T17:35:17.000000Z", + 'next_page_cursor_id' => "5603cd0c-0835-4b6f-8a6e-1ec82ba3c436", + 'prev_page_cursor_id' => "a6a17b9a-b39e-4ce0-bce8-f6cff8e0f112", + 'per_page' => 42 ] ); try { diff --git a/tests/ListBillsTest.php b/tests/ListBillsTest.php index b4b7ad7e..3b1546ae 100644 --- a/tests/ListBillsTest.php +++ b/tests/ListBillsTest.php @@ -39,8 +39,8 @@ public function testListBills2() $client = $this->newClient(); $request = new Request\ListBills( [ - 'upper_limit_amount' => 3549, - 'is_disabled' => TRUE + 'upper_limit_amount' => 9364, + 'is_disabled' => FALSE ] ); try { @@ -57,8 +57,8 @@ public function testListBills3() $client = $this->newClient(); $request = new Request\ListBills( [ - 'lower_limit_amount' => 7634, - 'upper_limit_amount' => 4359, + 'lower_limit_amount' => 9372, + 'upper_limit_amount' => 5960, 'is_disabled' => FALSE ] ); @@ -76,9 +76,9 @@ public function testListBills4() $client = $this->newClient(); $request = new Request\ListBills( [ - 'shop_id' => "0444cb55-e682-46a6-a9b9-ba047a7d4d84", - 'lower_limit_amount' => 1715, - 'upper_limit_amount' => 3003, + 'shop_id' => "0c7a21e5-557f-4a6d-955b-517b3dd30ee8", + 'lower_limit_amount' => 209, + 'upper_limit_amount' => 816, 'is_disabled' => FALSE ] ); @@ -96,11 +96,11 @@ public function testListBills5() $client = $this->newClient(); $request = new Request\ListBills( [ - 'shop_name' => "ljq1Q8TjukgNdosrcsbqXkWqVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTYqN", - 'shop_id' => "487a51ce-007c-4246-8750-f801fe583563", - 'lower_limit_amount' => 2571, - 'upper_limit_amount' => 9230, - 'is_disabled' => FALSE + 'shop_name' => "CqvNNBrhyRg9xxzNXJhnMZrEqyRqPCGzbSmOoYCMUQNjvF4AYLzd022rwQVNfYYCfZZWpAcyBWwWi1DgvTt4hTTZowFPycMflfcbIeOIKes05558vbabHcGuqU0Zpo5L", + 'shop_id' => "ef7517ac-5c42-4f95-a261-57ac8b4cab9d", + 'lower_limit_amount' => 8117, + 'upper_limit_amount' => 3441, + 'is_disabled' => TRUE ] ); try { @@ -117,11 +117,11 @@ public function testListBills6() $client = $this->newClient(); $request = new Request\ListBills( [ - '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, + 'created_to' => "2021-01-15T02:18:17.000000Z", + 'shop_name' => "iTBSZQPeDSY9S36TscHpgaN0j8ZeP1HDPDTHzzRIdWxHjKy82N74miDUcOuIVqRIEU93kljq1Q8TjukgNdos", + 'shop_id' => "63703d90-5372-48e3-8528-95733bb1fe11", + 'lower_limit_amount' => 5799, + 'upper_limit_amount' => 2746, 'is_disabled' => FALSE ] ); @@ -139,13 +139,13 @@ public function testListBills7() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'created_from' => "2023-03-11T09:56:39.000000Z", + 'created_to' => "2022-01-02T12:50:41.000000Z", + 'shop_name' => "qVhxkWkSbCcQV2KWKaXCJgJ38wW32AKvILX828FihWZQyqSbK0FMXzQI3K0upT8cYYAuEa7VHyo1Pr6ZXG8JSWzel5X6ggilnbIikjMsDtvgyHs8kXaVldBOvstCOu5vNtx3bBib1BS1IIGWD4mpTYqNNFPcbcfJ8JMK49acleVRspcldtQ5tmURvImdniels4ZrQj5DbpL3fJFTwwcn9WP3m8Vy", + 'shop_id' => "4a5bbff5-1352-4de5-9689-46c39d5f9223", + 'lower_limit_amount' => 472, + 'upper_limit_amount' => 7168, + 'is_disabled' => FALSE ] ); try { @@ -162,14 +162,14 @@ public function testListBills8() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'description' => "5WTYs7Yv5KDLwBcz7zjgazophuiC1VR8XiXW8JGdOuAk94khcXRAwlFr4tlYuwMI02c6YHU8uGe8qGNvTmA6H2tH06f3cpkGDNNhHR4jcwCrCwplpzKOK41mu", + 'created_from' => "2022-11-06T08:17:48.000000Z", + 'created_to' => "2021-10-05T03:28:27.000000Z", + 'shop_name' => "IO2q9f6dQ5BvDAnz25uvrmGGKjRYVWTh4n3trK0bvzHyQJ1u0mKrSXl5b4zkBhHXIiOwN14umNbs9HzTMzg2AFGgoFwChMKyFjnp6NWuVTvukHEJJxjvwAaSkrlPscgFZA7kgmnQGh0g7xEy0gjIfqsy3qqeO2uL3gmJXocI00jDfhi9nkYKzlD45lOs5FqPThDPFGAn6g71", + 'shop_id' => "c5f38ba3-1edd-465f-b7ab-d342a8f1472a", + 'lower_limit_amount' => 569, + 'upper_limit_amount' => 971, + 'is_disabled' => FALSE ] ); try { @@ -186,15 +186,15 @@ public function testListBills9() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'organization_code' => "-wrS-x6H6C--D5S6--8xd364V-k1D", + 'description' => "8An", + 'created_from' => "2021-08-02T04:48:29.000000Z", + 'created_to' => "2026-05-23T20:57:14.000000Z", + 'shop_name' => "oXtmv8LerXQe8LjF8Q6qvpD5ZbBwXFvQ1skGDixXFJczCMVyjlRecAjobCopZKVFLb9UiV0XEmtc9iB2syyuELfawMoOZtkTktpas3rTKhS7CSUreJUtTC5W6xtdNcZmGzg6LOAwdB03Wi69g5bppku3R9lJVdDaUu8gKI7uxlsX8tJTVN1o4Avhi0fX5dozKzovfXQ3PHUhjHLVEtSIaxZ8O9N2SLzG35Urh2rbZx2aArvrKFEW", + 'shop_id' => "611e61b0-4d63-4e16-a1c4-585d3d689c31", + 'lower_limit_amount' => 5806, + 'upper_limit_amount' => 8942, + 'is_disabled' => FALSE ] ); try { @@ -211,16 +211,16 @@ public function testListBills10() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'private_money_id' => "7aba3f2f-45cf-4590-bacb-060ad1610810", + 'organization_code' => "e7--S-GJ--u72-kqv", + 'description' => "hVSBtTuiSKN3fmfJoVUvvyWz4acD4YN59s59xIWGujcTxFFrrXyLyMOsteVH8YLvoUoraYyVUvoHuSd144X7ZEq8UGlMat7Q5BMcC1v73v60y8DMLWrlnr061xWZsz1ogogHitDMic7XGDhIwoiIw8buBfBCDG7j4DoWkpZIbqBi9TROGFtlR9rLj2Y1", + 'created_from' => "2020-11-22T11:42:30.000000Z", + 'created_to' => "2024-05-30T01:45:41.000000Z", + 'shop_name' => "R9gKdUSrcKHlFd3Ur1MCMIUROIYftW7QMsIbzCAj1GsSvfXjxUW5PMdDuBsMe04PTf8vSsZQwwHu7ykbtkzGPhzROeLpMaUZfjz7mGpF3omDB92rueqlmfnAfu7erS3gFr3FTdQ8rwckpkfwdxwxZ95sfTG55oAI4VCG4sTwcY", + 'shop_id' => "e80b7065-a188-4a46-90a5-ef7727a42563", + 'lower_limit_amount' => 6736, + 'upper_limit_amount' => 9760, + 'is_disabled' => TRUE ] ); try { @@ -237,17 +237,17 @@ public function testListBills11() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'bill_id' => "7", + 'private_money_id' => "7c5edf83-adfe-405a-adcc-4379ce4a60e7", + 'organization_code' => "bF2-JR---id1i-qhN-B3eYx-KH3r", + 'description' => "7GOWj7LV4v5yotPxhlRj2vkjikjfOo5Zy9zD8cfycxdjXF6cmwiKvevzAx7rHin0MHYFpvhqZUg2yG4Wo0L4evFZLjpsodOQD4", + 'created_from' => "2025-03-28T21:18:36.000000Z", + 'created_to' => "2020-01-08T13:59:56.000000Z", + 'shop_name' => "fZ5T5bk20dIuBp2e25agSXyEGickpeze5Yn7vyzhltNB5edjt157B8n6abEccTMUOFUG9Fme9wlEEj2gZC8ckmFOzWRdKb11QTIHM0x5oJQ4O2Nwel4rHJTDGFvqXggC9Tcy7ogKmUw0VnsFyzfyt6Bg95FB1a7IFTBkW9tPubyeqITUoc54", + 'shop_id' => "9be9dd90-eb0f-481a-9faf-a893342c07c8", + 'lower_limit_amount' => 271, + 'upper_limit_amount' => 1376, + 'is_disabled' => TRUE ] ); try { @@ -264,17 +264,17 @@ public function testListBills12() $client = $this->newClient(); $request = new Request\ListBills( [ - '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, + 'per_page' => 9176, + 'bill_id' => "6lY3NxA2Qq", + 'private_money_id' => "491c89a6-4836-4e81-8c2d-385b812a3387", + 'organization_code' => "-0dgdTpvFpuHP-9p-x28C3", + 'description' => "26EDkzDLnAr7NHvMDZLOk3Kn6N9IKA2DQ0UDl0RkGXqQRpkGArTGUPugetKJLdESdgB4DMlPhuAgx6J23S5a4KJH2dJnXO", + 'created_from' => "2025-09-14T22:54:14.000000Z", + 'created_to' => "2021-06-15T01:10:36.000000Z", + 'shop_name' => "eAy8xYgmSSWd6nFdHza9f0TF30iljDxgSpyfoekUtYXnQ6dyRqDXbojqilSXXfg", + 'shop_id' => "346f8807-de18-4999-8c31-53dbb4914c91", + 'lower_limit_amount' => 2355, + 'upper_limit_amount' => 670, 'is_disabled' => TRUE ] ); @@ -292,19 +292,19 @@ public function testListBills13() $client = $this->newClient(); $request = new Request\ListBills( [ - '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 + 'page' => 1851, + 'per_page' => 3837, + 'bill_id' => "kM", + 'private_money_id' => "6782b486-91d9-4829-9d53-b4df6c9fa16b", + 'organization_code' => "cIqFB-D2n-1J", + 'description' => "Rbysguh0xXqdkQK8VGfHRzulBqoPAVuBC2EUluqb81O3ZagKE8LcCa8bz2nHShe5EoHVudmx1iMacSt3whWHQ5cbR62EyfrAyRxoXmZ8au8D4esSHy55WYfHfvN0QEBe9OUmuQoNyAxdhT65YfaNVM2xjqlPxxy8RqwFWTQ1", + 'created_from' => "2020-08-30T19:09:28.000000Z", + 'created_to' => "2023-01-14T06:34:30.000000Z", + 'shop_name' => "Vt9bN2zIxNZx4eE9mHPjq6XCvYjxbcuNA5AOQHru6gAXocPu4UpOUbFxl1xg8SX1voG8Gydqo4fQ7D47J36mgyKf2pLnur36TYPgxIzfeirgwWnuJKugM3OQh2JHBnxbiEM0oFGnnvKX9mW4mLerHweV6", + 'shop_id' => "0d5d8b86-11f9-4095-9e3d-92c45f7dddf1", + 'lower_limit_amount' => 7433, + 'upper_limit_amount' => 2436, + 'is_disabled' => FALSE ] ); try { diff --git a/tests/ListBulkTransactionJobsTest.php b/tests/ListBulkTransactionJobsTest.php index a2f880c1..0b8b63e1 100644 --- a/tests/ListBulkTransactionJobsTest.php +++ b/tests/ListBulkTransactionJobsTest.php @@ -8,7 +8,7 @@ public function testListBulkTransactionJobs0() { $client = $this->newClient(); $request = new Request\ListBulkTransactionJobs( - "852eee3b-f35b-4508-9588-d9d4de2e22af" + "8758efd6-a503-4e63-b7cb-9fc5c7ed9715" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListBulkTransactionJobs1() { $client = $this->newClient(); $request = new Request\ListBulkTransactionJobs( - "852eee3b-f35b-4508-9588-d9d4de2e22af", + "8758efd6-a503-4e63-b7cb-9fc5c7ed9715", [ - 'per_page' => 8470 + 'per_page' => 5440 ] ); try { @@ -41,10 +41,10 @@ public function testListBulkTransactionJobs2() { $client = $this->newClient(); $request = new Request\ListBulkTransactionJobs( - "852eee3b-f35b-4508-9588-d9d4de2e22af", + "8758efd6-a503-4e63-b7cb-9fc5c7ed9715", [ - 'page' => 4071, - 'per_page' => 5065 + 'page' => 7234, + 'per_page' => 8813 ] ); try { diff --git a/tests/ListCampaignsTest.php b/tests/ListCampaignsTest.php index 445efd12..4b2f3aeb 100644 --- a/tests/ListCampaignsTest.php +++ b/tests/ListCampaignsTest.php @@ -8,7 +8,7 @@ public function testListCampaigns0() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "fd800db0-acbf-4388-a854-baf08f22a10a" + "9bb30add-f970-468b-9039-ab63ccb21374" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListCampaigns1() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "fd800db0-acbf-4388-a854-baf08f22a10a", + "9bb30add-f970-468b-9039-ab63ccb21374", [ - 'per_page' => 29 + 'per_page' => 3 ] ); try { @@ -41,10 +41,10 @@ public function testListCampaigns2() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "fd800db0-acbf-4388-a854-baf08f22a10a", + "9bb30add-f970-468b-9039-ab63ccb21374", [ - 'page' => 9391, - 'per_page' => 38 + 'page' => 631, + 'per_page' => 25 ] ); try { @@ -60,11 +60,11 @@ public function testListCampaigns3() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "fd800db0-acbf-4388-a854-baf08f22a10a", + "9bb30add-f970-468b-9039-ab63ccb21374", [ - 'available_to' => "2022-03-04T06:42:31.000000Z", - 'page' => 1796, - 'per_page' => 36 + 'available_to' => "2021-07-13T02:05:38.000000Z", + 'page' => 6496, + 'per_page' => 43 ] ); try { @@ -80,12 +80,12 @@ public function testListCampaigns4() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "fd800db0-acbf-4388-a854-baf08f22a10a", + "9bb30add-f970-468b-9039-ab63ccb21374", [ - 'available_from' => "2022-04-27T15:23:38.000000Z", - 'available_to' => "2020-01-23T22:52:17.000000Z", - 'page' => 7546, - 'per_page' => 25 + 'available_from' => "2021-08-27T21:26:11.000000Z", + 'available_to' => "2023-10-20T13:24:00.000000Z", + 'page' => 3542, + 'per_page' => 40 ] ); try { @@ -101,13 +101,13 @@ public function testListCampaigns5() { $client = $this->newClient(); $request = new Request\ListCampaigns( - "fd800db0-acbf-4388-a854-baf08f22a10a", + "9bb30add-f970-468b-9039-ab63ccb21374", [ - 'is_ongoing' => FALSE, - 'available_from' => "2024-12-16T18:45:53.000000Z", - 'available_to' => "2023-03-17T19:45:26.000000Z", - 'page' => 3011, - 'per_page' => 12 + 'is_ongoing' => TRUE, + 'available_from' => "2022-09-26T13:48:20.000000Z", + 'available_to' => "2023-06-19T21:03:06.000000Z", + 'page' => 8395, + 'per_page' => 48 ] ); try { diff --git a/tests/ListChecksTest.php b/tests/ListChecksTest.php index 3e264ce1..54a4ca49 100644 --- a/tests/ListChecksTest.php +++ b/tests/ListChecksTest.php @@ -39,7 +39,7 @@ public function testListChecks2() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'is_onetime' => FALSE, + 'is_onetime' => TRUE, 'is_disabled' => FALSE ] ); @@ -57,9 +57,9 @@ public function testListChecks3() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'description' => "vzxKV", - 'is_onetime' => TRUE, - 'is_disabled' => TRUE + 'description' => "Hyso5u9O", + 'is_onetime' => FALSE, + 'is_disabled' => FALSE ] ); try { @@ -76,10 +76,10 @@ public function testListChecks4() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'issuer_shop_id' => "640b29df-4bdd-4fdd-8f8b-c2f8a00ad6e4", - 'description' => "oit", - 'is_onetime' => TRUE, - 'is_disabled' => TRUE + 'issuer_shop_id' => "44c818ea-319b-40a4-bde9-3d130386e39b", + 'description' => "a9h", + 'is_onetime' => FALSE, + 'is_disabled' => FALSE ] ); try { @@ -96,9 +96,9 @@ public function testListChecks5() $client = $this->newClient(); $request = new Request\ListChecks( [ - 'created_to' => "2021-01-09T20:47:56.000000Z", - 'issuer_shop_id' => "3c1ae76e-dbfe-46a3-b306-105227017b64", - 'description' => "0a6T9IRy95", + 'created_to' => "2026-01-03T11:20:35.000000Z", + 'issuer_shop_id' => "b75feffd-26df-441a-a4aa-9db3fbc1786f", + 'description' => "wp1QqOY", 'is_onetime' => TRUE, 'is_disabled' => TRUE ] @@ -117,11 +117,11 @@ public function testListChecks6() $client = $this->newClient(); $request = new Request\ListChecks( [ - '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, + 'created_from' => "2023-07-11T03:28:10.000000Z", + 'created_to' => "2020-10-21T18:24:20.000000Z", + 'issuer_shop_id' => "464c154a-4b25-4bdb-9f10-3b9d60f88476", + 'description' => "4bnDyHKg7j", + 'is_onetime' => FALSE, 'is_disabled' => FALSE ] ); @@ -139,11 +139,11 @@ public function testListChecks7() $client = $this->newClient(); $request = new Request\ListChecks( [ - '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", + 'expires_to' => "2023-05-05T01:01:26.000000Z", + 'created_from' => "2020-09-09T12:46:47.000000Z", + 'created_to' => "2022-12-15T10:35:00.000000Z", + 'issuer_shop_id' => "ca7d6152-c142-4ebb-ae11-c6c44cca8ff5", + 'description' => "rb62", 'is_onetime' => TRUE, 'is_disabled' => TRUE ] @@ -162,13 +162,13 @@ public function testListChecks8() $client = $this->newClient(); $request = new Request\ListChecks( [ - '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, + 'expires_from' => "2023-03-14T04:19:53.000000Z", + 'expires_to' => "2024-05-29T11:57:01.000000Z", + 'created_from' => "2023-07-29T10:54:52.000000Z", + 'created_to' => "2020-06-15T15:29:49.000000Z", + 'issuer_shop_id' => "b3e5f712-1465-4c99-ba61-864ed82b85dc", + 'description' => "035TYh", + 'is_onetime' => FALSE, 'is_disabled' => FALSE ] ); @@ -186,13 +186,13 @@ public function testListChecks9() $client = $this->newClient(); $request = new Request\ListChecks( [ - '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", + 'organization_code' => "YVT689", + 'expires_from' => "2020-10-22T00:16:10.000000Z", + 'expires_to' => "2024-06-09T23:04:00.000000Z", + 'created_from' => "2025-09-08T11:46:38.000000Z", + 'created_to' => "2024-12-15T16:14:57.000000Z", + 'issuer_shop_id' => "409608c2-1a2b-4b49-94b9-fe38a4928645", + 'description' => "3v", 'is_onetime' => TRUE, 'is_disabled' => FALSE ] @@ -211,15 +211,15 @@ public function testListChecks10() $client = $this->newClient(); $request = new Request\ListChecks( [ - '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, + 'private_money_id' => "adf8571c-8fa2-4769-88ee-9aca7db9a162", + 'organization_code' => "C3RzxMs", + 'expires_from' => "2025-08-25T20:46:16.000000Z", + 'expires_to' => "2020-05-23T14:03:51.000000Z", + 'created_from' => "2022-02-16T23:55:05.000000Z", + 'created_to' => "2020-11-23T03:12:04.000000Z", + 'issuer_shop_id' => "8afa46d4-9052-441f-91a3-85d656335b20", + 'description' => "bDG", + 'is_onetime' => FALSE, 'is_disabled' => FALSE ] ); @@ -237,16 +237,16 @@ public function testListChecks11() $client = $this->newClient(); $request = new Request\ListChecks( [ - '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, + 'per_page' => 7756, + 'private_money_id' => "3c9ea4c6-0df6-4e9a-9666-05f25bb86037", + 'organization_code' => "cTIqfZGa8VmM7LxaafZsEiZ4", + 'expires_from' => "2025-09-22T02:09:44.000000Z", + 'expires_to' => "2023-04-19T23:42:54.000000Z", + 'created_from' => "2025-11-27T06:26:52.000000Z", + 'created_to' => "2020-10-17T06:21:09.000000Z", + 'issuer_shop_id' => "6bd061f4-f5cc-41a7-85bb-c198be55b3de", + 'description' => "S", + 'is_onetime' => TRUE, 'is_disabled' => FALSE ] ); @@ -264,17 +264,17 @@ public function testListChecks12() $client = $this->newClient(); $request = new Request\ListChecks( [ - '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, + 'page' => 9404, + 'per_page' => 4850, + 'private_money_id' => "790d017c-4b43-434d-959e-adc88a3e8a23", + 'organization_code' => "Uv6WI9WlLqAjFF", + 'expires_from' => "2023-03-14T11:32:38.000000Z", + 'expires_to' => "2020-07-03T17:47:10.000000Z", + 'created_from' => "2026-05-03T04:20:32.000000Z", + 'created_to' => "2024-09-07T06:38:44.000000Z", + 'issuer_shop_id' => "8a3ab96f-fd08-4bf6-93c9-22c1dd10edb3", + 'description' => "7if4YoZJ", + 'is_onetime' => TRUE, 'is_disabled' => TRUE ] ); diff --git a/tests/ListCouponsTest.php b/tests/ListCouponsTest.php index 243c3bb8..9f9af345 100644 --- a/tests/ListCouponsTest.php +++ b/tests/ListCouponsTest.php @@ -8,7 +8,7 @@ public function testListCoupons0() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1" + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListCoupons1() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1", + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7", [ - 'per_page' => 5485 + 'per_page' => 8849 ] ); try { @@ -41,10 +41,10 @@ public function testListCoupons2() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1", + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7", [ - 'page' => 2145, - 'per_page' => 4061 + 'page' => 464, + 'per_page' => 4479 ] ); try { @@ -60,11 +60,11 @@ public function testListCoupons3() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1", + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7", [ - 'available_to' => "2024-01-11T13:13:31.000000Z", - 'page' => 6061, - 'per_page' => 5678 + 'available_to' => "2021-06-04T06:42:57.000000Z", + 'page' => 7340, + 'per_page' => 476 ] ); try { @@ -80,12 +80,12 @@ public function testListCoupons4() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1", + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7", [ - 'available_from' => "2024-11-10T14:43:52.000000Z", - 'available_to' => "2025-06-19T01:49:43.000000Z", - 'page' => 3798, - 'per_page' => 7026 + 'available_from' => "2025-08-08T08:13:16.000000Z", + 'available_to' => "2020-02-15T21:08:03.000000Z", + 'page' => 2193, + 'per_page' => 98 ] ); try { @@ -101,13 +101,13 @@ public function testListCoupons5() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1", + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7", [ - '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 + 'available_shop_name' => "w4", + 'available_from' => "2021-04-23T15:20:10.000000Z", + 'available_to' => "2023-06-24T14:16:32.000000Z", + 'page' => 7048, + 'per_page' => 4749 ] ); try { @@ -123,14 +123,14 @@ public function testListCoupons6() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1", + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7", [ - '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 + 'issued_shop_name' => "RftnlC", + 'available_shop_name' => "8XMJnZ0C", + 'available_from' => "2021-12-15T00:43:55.000000Z", + 'available_to' => "2023-06-12T05:01:53.000000Z", + 'page' => 8226, + 'per_page' => 6318 ] ); try { @@ -146,15 +146,15 @@ public function testListCoupons7() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1", + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7", [ - '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 + 'coupon_name' => "FEN83", + 'issued_shop_name' => "K6KJ48", + 'available_shop_name' => "2qLWZ", + 'available_from' => "2023-06-20T03:58:13.000000Z", + 'available_to' => "2023-11-28T02:28:01.000000Z", + 'page' => 6718, + 'per_page' => 8685 ] ); try { @@ -170,16 +170,16 @@ public function testListCoupons8() { $client = $this->newClient(); $request = new Request\ListCoupons( - "a6b15bb7-5638-4c99-9738-8fe9399d52a1", + "a42f3ef1-83b8-4d05-b081-a701bd36dfc7", [ - '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 + 'coupon_id' => "gJBoE", + 'coupon_name' => "ylA7L", + 'issued_shop_name' => "gVEY", + 'available_shop_name' => "H5K", + 'available_from' => "2023-10-18T15:39:51.000000Z", + 'available_to' => "2026-06-09T07:06:19.000000Z", + 'page' => 9118, + 'per_page' => 8298 ] ); try { diff --git a/tests/ListCustomerTransactionsTest.php b/tests/ListCustomerTransactionsTest.php index b6364446..f2d24188 100644 --- a/tests/ListCustomerTransactionsTest.php +++ b/tests/ListCustomerTransactionsTest.php @@ -8,7 +8,7 @@ public function testListCustomerTransactions0() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec" + "d8301bb9-ae3a-45eb-943c-1b99ddfca567" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListCustomerTransactions1() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec", + "d8301bb9-ae3a-45eb-943c-1b99ddfca567", [ - 'per_page' => 7230 + 'per_page' => 4408 ] ); try { @@ -41,10 +41,10 @@ public function testListCustomerTransactions2() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec", + "d8301bb9-ae3a-45eb-943c-1b99ddfca567", [ - 'page' => 8126, - 'per_page' => 3761 + 'page' => 8807, + 'per_page' => 5129 ] ); try { @@ -60,11 +60,11 @@ public function testListCustomerTransactions3() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec", + "d8301bb9-ae3a-45eb-943c-1b99ddfca567", [ - 'to' => "2022-09-20T17:58:40.000000Z", - 'page' => 3013, - 'per_page' => 5760 + 'to' => "2023-04-22T21:35:54.000000Z", + 'page' => 5923, + 'per_page' => 1147 ] ); try { @@ -80,12 +80,12 @@ public function testListCustomerTransactions4() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec", + "d8301bb9-ae3a-45eb-943c-1b99ddfca567", [ - 'from' => "2024-02-21T14:04:56.000000Z", - 'to' => "2023-09-20T00:36:01.000000Z", - 'page' => 9065, - 'per_page' => 5172 + 'from' => "2021-08-29T16:53:21.000000Z", + 'to' => "2023-11-13T21:53:27.000000Z", + 'page' => 1270, + 'per_page' => 1691 ] ); try { @@ -101,13 +101,13 @@ public function testListCustomerTransactions5() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec", + "d8301bb9-ae3a-45eb-943c-1b99ddfca567", [ 'is_modified' => FALSE, - 'from' => "2020-10-22T23:31:16.000000Z", - 'to' => "2021-05-13T16:08:43.000000Z", - 'page' => 6860, - 'per_page' => 1972 + 'from' => "2025-09-24T05:28:10.000000Z", + 'to' => "2020-10-27T14:17:57.000000Z", + 'page' => 6175, + 'per_page' => 4238 ] ); try { @@ -123,14 +123,14 @@ public function testListCustomerTransactions6() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec", + "d8301bb9-ae3a-45eb-943c-1b99ddfca567", [ - 'type' => "expire", - 'is_modified' => FALSE, - 'from' => "2022-02-09T05:00:48.000000Z", - 'to' => "2023-07-11T23:03:57.000000Z", - 'page' => 4460, - 'per_page' => 2624 + 'type' => "transfer", + 'is_modified' => TRUE, + 'from' => "2022-05-03T13:55:04.000000Z", + 'to' => "2025-06-15T14:05:01.000000Z", + 'page' => 6627, + 'per_page' => 5650 ] ); try { @@ -146,15 +146,15 @@ public function testListCustomerTransactions7() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec", + "d8301bb9-ae3a-45eb-943c-1b99ddfca567", [ - 'receiver_customer_id' => "b28d2b38-3a16-4384-ad36-9ac34c384bec", + 'receiver_customer_id' => "a4c9b73f-4903-4afc-aa0f-b3fa8c760b6f", 'type' => "expire", 'is_modified' => TRUE, - 'from' => "2024-07-09T20:44:32.000000Z", - 'to' => "2020-09-27T00:50:45.000000Z", - 'page' => 8852, - 'per_page' => 1401 + 'from' => "2022-11-10T19:25:01.000000Z", + 'to' => "2025-02-27T14:17:15.000000Z", + 'page' => 8423, + 'per_page' => 8530 ] ); try { @@ -170,16 +170,16 @@ public function testListCustomerTransactions8() { $client = $this->newClient(); $request = new Request\ListCustomerTransactions( - "80ccf0e2-b363-43b4-a8f7-e85d3882f8ec", + "d8301bb9-ae3a-45eb-943c-1b99ddfca567", [ - 'sender_customer_id' => "88b15035-4c8d-4ac3-85f7-dc35bb3de47e", - 'receiver_customer_id' => "95bba404-1c12-49b8-b33c-80cae6f8f332", - 'type' => "expire", + 'sender_customer_id' => "27f2bc02-47a5-49da-b9c7-6bae786f6bb6", + 'receiver_customer_id' => "727b4eba-5711-47f1-ac39-1e6b0b3c2c76", + 'type' => "payment", 'is_modified' => TRUE, - 'from' => "2024-11-12T16:05:48.000000Z", - 'to' => "2023-11-30T16:04:38.000000Z", - 'page' => 7185, - 'per_page' => 9592 + 'from' => "2021-10-29T03:30:02.000000Z", + 'to' => "2024-04-12T03:53:04.000000Z", + 'page' => 1204, + 'per_page' => 4491 ] ); try { diff --git a/tests/ListOrganizationsTest.php b/tests/ListOrganizationsTest.php index b91eb664..b0c58905 100644 --- a/tests/ListOrganizationsTest.php +++ b/tests/ListOrganizationsTest.php @@ -8,7 +8,7 @@ public function testListOrganizations0() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "fb66ff47-57a3-40a1-9961-20f013711956" + "07716ada-1020-41e9-b5b2-14f937b19b37" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListOrganizations1() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "fb66ff47-57a3-40a1-9961-20f013711956", + "07716ada-1020-41e9-b5b2-14f937b19b37", [ - 'code' => "yu0AtoOYT3" + 'code' => "voekl" ] ); try { @@ -41,10 +41,10 @@ public function testListOrganizations2() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "fb66ff47-57a3-40a1-9961-20f013711956", + "07716ada-1020-41e9-b5b2-14f937b19b37", [ - 'name' => "8xXDG", - 'code' => "31wijg" + 'name' => "R5ig74Fkbt", + 'code' => "b0S" ] ); try { @@ -60,11 +60,11 @@ public function testListOrganizations3() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "fb66ff47-57a3-40a1-9961-20f013711956", + "07716ada-1020-41e9-b5b2-14f937b19b37", [ - 'per_page' => 7926, - 'name' => "WSuuP7", - 'code' => "XI" + 'per_page' => 2413, + 'name' => "KbT", + 'code' => "BQ8WxGHxi" ] ); try { @@ -80,12 +80,12 @@ public function testListOrganizations4() { $client = $this->newClient(); $request = new Request\ListOrganizations( - "fb66ff47-57a3-40a1-9961-20f013711956", + "07716ada-1020-41e9-b5b2-14f937b19b37", [ - 'page' => 9105, - 'per_page' => 6871, - 'name' => "zNjNiLWADY", - 'code' => "WxDRpy" + 'page' => 4121, + 'per_page' => 9055, + 'name' => "0", + 'code' => "cuW1" ] ); try { diff --git a/tests/ListShopsTest.php b/tests/ListShopsTest.php index 9eac3f3c..afee7c63 100644 --- a/tests/ListShopsTest.php +++ b/tests/ListShopsTest.php @@ -22,7 +22,7 @@ public function testListShops1() $client = $this->newClient(); $request = new Request\ListShops( [ - 'per_page' => 5101 + 'per_page' => 228 ] ); try { @@ -39,8 +39,8 @@ public function testListShops2() $client = $this->newClient(); $request = new Request\ListShops( [ - 'page' => 4594, - 'per_page' => 9261 + 'page' => 895, + 'per_page' => 177 ] ); try { @@ -57,9 +57,9 @@ public function testListShops3() $client = $this->newClient(); $request = new Request\ListShops( [ - 'with_disabled' => TRUE, - 'page' => 4133, - 'per_page' => 6660 + 'with_disabled' => FALSE, + 'page' => 2620, + 'per_page' => 791 ] ); try { @@ -76,10 +76,10 @@ public function testListShops4() $client = $this->newClient(); $request = new Request\ListShops( [ - 'external_id' => "7H", + 'external_id' => "5qDH6cAdyVZn4o55", 'with_disabled' => FALSE, - 'page' => 1835, - 'per_page' => 5513 + 'page' => 3218, + 'per_page' => 322 ] ); try { @@ -96,11 +96,11 @@ public function testListShops5() $client = $this->newClient(); $request = new Request\ListShops( [ - 'email' => "qvdSNveWzW@I5L6.com", - 'external_id' => "QvZvRJLln3CmVmPz2bcH2x", - 'with_disabled' => TRUE, - 'page' => 1987, - 'per_page' => 73 + 'email' => "5DSTN7FZ8Y@8t8M.com", + 'external_id' => "K7GdyM50Xm", + 'with_disabled' => FALSE, + 'page' => 1309, + 'per_page' => 249 ] ); try { @@ -117,12 +117,12 @@ public function testListShops6() $client = $this->newClient(); $request = new Request\ListShops( [ - 'tel' => "028724297", - 'email' => "7EYCf76ToH@cl8d.com", - 'external_id' => "zcqD6rqwGDVRdojGjigHpZl8InHQBhMIrdZ", + 'tel' => "043-389190", + 'email' => "m3Ela8zcR9@4JgH.com", + 'external_id' => "tiXrfi45gdORj3Jla3Pfb8Og", 'with_disabled' => TRUE, - 'page' => 9741, - 'per_page' => 409 + 'page' => 9705, + 'per_page' => 264 ] ); try { @@ -139,13 +139,13 @@ public function testListShops7() $client = $this->newClient(); $request = new Request\ListShops( [ - 'address' => "9MnQgGfElkSct56tB3QvYjy8mUgDyXQYOSshpGMC", - 'tel' => "006-53-924", - 'email' => "BHnAmdlKiU@j9Jq.com", - 'external_id' => "anI8FqIXqzelGZDONUAJfl2", - 'with_disabled' => TRUE, - 'page' => 7886, - 'per_page' => 4341 + 'address' => "qnfBQjVsClPPd45bUBovESo5O7DwwlNZPFf6xG0YeVkLQLhc7hbuv3B8S8pH3eqOx8cOR3TFR9a8hMUMtt7RdIKeKSciqwdkkgvqZQpEwqxxIpXTryBWY7YmTtJYjps5n0FjmTFvO6PZjVX87PLzR29oTCv16fPXjhVlLpKgtr0aXml0I8A7sPYx7KWs9GrfkcGFxlkTYjYgPlxnzpf9XcHDiw8sqMTw9CGMrpupn", + 'tel' => "0700-87340424", + 'email' => "QeMKNjNC6v@4LdJ.com", + 'external_id' => "q0nifAUuGHUnCvc4A", + 'with_disabled' => FALSE, + 'page' => 493, + 'per_page' => 269 ] ); try { @@ -162,14 +162,14 @@ public function testListShops8() $client = $this->newClient(); $request = new Request\ListShops( [ - 'postal_code' => "079-3170", - 'address' => "kt1pOBZosxcU6W1vFMKN952VUdQ3t63Wpysg20fNhPhFK8mUwq4sfxVOVqIgogobrlTBvrKr", - 'tel' => "099637328", - 'email' => "Kz0hnHtPEm@OFzy.com", - 'external_id' => "sMn1h", + 'postal_code' => "3224174", + 'address' => "llUlOCGYapVIyu0AtoOYT3d8xXDGe31wijgcuuWSuuP7qXIDVYzNjNiLWADYEWxDRpy5o7rEN4eiDqYJVEg5UZOhJAbHwNLgu8Nky9WURMByjAKTzdQ2llGcXl5Cw9ahtSHvWHxDbu1GOKxoKM3BkiQ5JCNLUQPpDOoGNkBoKxTvABwe33UWeSzKCZwv4", + 'tel' => "02-9298-357", + 'email' => "zrNeMACItm@OkY1.com", + 'external_id' => "pUONfZUthj8CTdPwk", 'with_disabled' => TRUE, - 'page' => 4466, - 'per_page' => 5277 + 'page' => 5164, + 'per_page' => 259 ] ); try { @@ -186,15 +186,15 @@ public function testListShops9() $client = $this->newClient(); $request = new Request\ListShops( [ - 'name' => "gZ4Scflk2JdjznjOojFztUyYyUwwyS9B5htgNIDpUpzKyj3BEvYp1TbuySIy9vMfjs9RSVIuRLJamUgod9vJRMh5laf7AaoLGt4pe6BC2Sel2QniqdOC9my1YOO8CjR0YFmv40UM5wZgue67e0YlrO8E3L7gW6pVO", - 'postal_code' => "8742621", - 'address' => "hoBOihdHvejLf7HUNUhMpEnczyOhMWAPbHXytdjUT8FkE6WXDem2rgS", - 'tel' => "0335-251-492", - 'email' => "4kR9S0XTdm@HcC0.com", - 'external_id' => "GFAfEKgLlOIWqFFofKhzWzCAqp2ZanhrL16o", - 'with_disabled' => FALSE, - 'page' => 2383, - 'per_page' => 2532 + 'name' => "2g7DYhFuXWta", + 'postal_code' => "8277334", + 'address' => "TYAgSjd1Lu4N1G4DllEfWLsx2f1PjIk5LFEcZYZR1K1ULgGU5oSrsDCn36n92LJoBnxVWA0Bmx0P3sSh52djDx2E8q2Tl06IVYw4zb7KKLj26g9D4jd9", + 'tel' => "0097-25624903", + 'email' => "oZArmvOOmV@qy7L.com", + 'external_id' => "HITpCScM5po6zQrUB5yHtoGfycJYa2GIKQCG", + 'with_disabled' => TRUE, + 'page' => 6209, + 'per_page' => 199 ] ); try { @@ -211,16 +211,16 @@ public function testListShops10() $client = $this->newClient(); $request = new Request\ListShops( [ - 'private_money_id' => "5d9925ba-e57c-4dbe-a6da-ce343ae9064e", - 'name' => "yIEjaN6dYZY4p9bZgscBV3pXiPPiW2qUm4FbQucsmz0GYwY85K8kF9CcO2FCZ7wQECuEigH9T54l9EXWThBhNBtq0Hlr5VUDcRjPWhcWE5Ed0Dp6qm5enNIYlp4WuULLQB3hzZG357PPnWlMQlOO65IFrI1BJMiWPv5dAbUBWta68v79KNgsodWT1kP64chZLEzZTeXAsCUOeSILicKJugPMhkbNW44x5lpizelx6Zw3ANk", - 'postal_code' => "4724531", - 'address' => "nigb4Yb3t6kmvyhjD7Y1lgzqIh5MLpUpAeuRnJqWXlTPA3BNnPJo0CH10GQb96Jzcef7f3He1f0QYEkgJnc3iiJ3NDVFkNizSfk2HEbXxayxzM2cghdc2Ljaj2GsuiV9UsDnl2m8nhmhWmlD5AgJ4dO8VEt3hyN01xWKpyfSJX1OiNUbqHXuSEWeM8VLmM8qznKIn9uBoqN3XKkwmXFnLL0vhZmz", - 'tel' => "09-245-6818", - 'email' => "VnjFoEs5f6@4mvX.com", - 'external_id' => "C0yIYDrOmfZv", - 'with_disabled' => FALSE, + 'private_money_id' => "5181e13b-b177-45ae-9d63-f77175f74d95", + 'name' => "njKtXS5ctb0sUDamQiJFavfIlsQjs1Uxv98uoxa9cfqdBZBSSyuPsLgc14jRH1daAJWkWpeGVt7BTtK3VwbUSgXIGfDPEPwHED0KtmDzxLUbUeg7w8cIU7UKhxLe1FMHoh3041czvU7tiTGNYlDyRk3aGMps1HN2Oi8GzWre6yIHCge3KvTMWtvAOdqc6", + 'postal_code' => "4422408", + 'address' => "gFIpDVk2sqQhlAUNF0Kr6ekdB7WSGlsT24mzzvf0uixfzgMS7DAxRVXjpoYOkLYbJM46YGKDJVQANtfUdHVcsouxX3xI9CHdZGkENDSkRyfWKAxjQWjCB8nFcqmENfDor1zgwF9x3xZsR5bLJPhH3FEHzbfU4cD6smAeqngifjNikqDE3OudXpYhNwFWUAKOnWlhna", + 'tel' => "019-12520631", + 'email' => "dbi9G5aE3q@4gTN.com", + 'external_id' => "3gHJA1F", + 'with_disabled' => TRUE, 'page' => 6631, - 'per_page' => 897 + 'per_page' => 684 ] ); try { @@ -237,17 +237,17 @@ public function testListShops11() $client = $this->newClient(); $request = new Request\ListShops( [ - 'organization_code' => "j31", - 'private_money_id' => "2882ae1e-37f2-4296-903d-4aa75728d3b3", - 'name' => "hD1uxIbudPgKcAH4LqtvnYdJrsgVxWy0PirB5ccKSjPsnaJy0xSUa", - 'postal_code' => "953-9907", - 'address' => "veNp11WiSr08uCzB0JSt7hZNL6cvcqBnhGnyRs1ZbgEX46DL0EY9Dfg2K2KSBJ32yceHkpeJS53rQYrIERvl0KriuNlhP5RwfRsdmSnnsKFojcLOuuurZaaP5zVuitJAWBnM", - 'tel' => "08-112676", - 'email' => "F279GcsdDt@M3uS.com", - 'external_id' => "EYbuaOy1AtJbZFvX4DTrnYj6rE9HuWGm5x", - 'with_disabled' => TRUE, - 'page' => 6566, - 'per_page' => 9582 + 'organization_code' => "-h-s-6", + 'private_money_id' => "c8d32b33-d5b0-41b4-9f1f-9a176213d6c1", + 'name' => "RoMBnYRrC4cXtKQ0a4OPrt2tro65RM4SYyWPQ4b5EvFhF0JaiWpiphXqNgzf5XFTYAHJdFeGZi1JIa9NTrkMeAKNU2qNMrw4Jay2YB", + 'postal_code' => "876-5592", + 'address' => "IFK5T7Dc8oOst1MM9PmjRDk75J779k3qO5Tt2uQGKAC", + 'tel' => "0475-1688401", + 'email' => "peDNVXLZhD@HmMP.com", + 'external_id' => "Pl8jvZE0kmWyBR", + 'with_disabled' => FALSE, + 'page' => 7343, + 'per_page' => 422 ] ); try { diff --git a/tests/ListTransactionsTest.php b/tests/ListTransactionsTest.php index 192b6a36..bdeac573 100644 --- a/tests/ListTransactionsTest.php +++ b/tests/ListTransactionsTest.php @@ -22,7 +22,7 @@ public function testListTransactions1() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'description' => "N4bIOpNtWwRJ7taFGOOZNR9womkOYYXss1h0acoAUmABE9DWtANH45sfx8Sg9q1O62IQSAJ63xgskw6yfFQPcXHRn98CcSXK5Zlq5PBZ9vRV0xbdBDEvdzHS5KI84n4B4JwtxMbsrynFzleqVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXu" + 'description' => "RV0xbdBDEv" ] ); try { @@ -39,8 +39,8 @@ public function testListTransactions2() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'types' => ["payment"], - 'description' => "q9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGKt4lw9lRVMCA" + 'types' => ["cashback"], + 'description' => "S5KI84n4B4JwtxMbsrynF" ] ); try { @@ -58,8 +58,8 @@ public function testListTransactions3() $request = new Request\ListTransactions( [ 'is_modified' => TRUE, - 'types' => ["payment"], - 'description' => "f4mhVFw56RKDemCYdfHKy6kNARZB0e7gSo7Ck5GjWL9QXL9sfwRokQiO2gJLOs7NWiVmOaSDg31Umvi1k0xZepHVlU5UCBk1" + 'types' => ["exchange_inflow", "cashback", "payment", "topup", "expire"], + 'description' => "qVzZvPQrwaZ5xfzumz05DAlrcpNez8TuusjLCXuqGq9aXt2RyxOmHZB8Yd9TYL0bkCAVqSRIdac4BtBwC2bbOKrqEvtHSmLf6gZqSXb2Lr55RtyiRtGJ1HUxolj1KPz6vAaVd6Sg4zOt2LPb0nLBvCfu5QWsdUnRrH9KHVuXFGK" ] ); try { @@ -76,10 +76,10 @@ public function testListTransactions4() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'private_money_id' => "7fa37eed-4d43-4f3c-b2b6-b411425247b0", + 'private_money_id' => "2eda5a83-88dc-42f4-a134-31bef34a5ddc", 'is_modified' => TRUE, - 'types' => ["cashback", "payment"], - 'description' => "7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixLpvf" + 'types' => ["cashback", "expire"], + 'description' => "lRVMCAhIxweHf4mhVFw56RKDemCYdfHKy6kNARZB0" ] ); try { @@ -96,11 +96,11 @@ public function testListTransactions5() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'organization_code' => "803-2UWgF9A28O1--25djJe--", - 'private_money_id' => "ada11cee-4e79-408b-bda5-b1d542c267a2", + 'organization_code' => "-Sh23-x-791q--w", + 'private_money_id' => "022e7e7d-3660-4d10-ad4f-416196217c53", 'is_modified' => TRUE, - 'types' => ["exchange_inflow"], - 'description' => "1h3V5Qywi2pn04JUSx27eVHz2wOx9gOffBCzdP" + 'types' => ["cashback", "exchange_inflow"], + 'description' => "Umvi1k0xZepHVlU5UCBk1mC260SZIPf7lUxpBEwOCUnBV1wl8i3xQfqNGTjhBSpAIG2GVjRLCF7S26ypTzMExe5LQXN3tfMMeaiTEdRlgPRLO6iu4xB9p9hHVjuFskSUixL" ] ); try { @@ -117,12 +117,12 @@ public function testListTransactions6() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'transaction_id' => "5lY5r", - 'organization_code' => "-SPF--Ue-xT-4af1yX--Qo3P-88", - 'private_money_id' => "2674231f-ff7f-43b2-84c3-4c6ceedee5b6", + 'transaction_id' => "pvflY8M", + 'organization_code' => "Y03-2U", + 'private_money_id' => "8751fda1-2336-45b8-86f5-e32552727f1a", 'is_modified' => TRUE, - 'types' => ["payment", "topup", "cashback", "expire", "exchange_inflow"], - 'description' => "2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayj" + 'types' => ["payment", "exchange_outflow", "topup"], + 'description' => "IBQsKNbECUonyUv3nTPZ701h3" ] ); try { @@ -139,13 +139,13 @@ public function testListTransactions7() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'terminal_id' => "16dbac2a-774f-4f16-9eb1-33222607a3df", - 'transaction_id' => "h3s3e", - 'organization_code' => "", - 'private_money_id' => "2893ee91-9131-4550-8a92-0a2dcc76bea5", + 'terminal_id' => "63c948a2-fd94-4223-967f-44359577ead1", + 'transaction_id' => "ywi2p", + 'organization_code' => "-Y--H-GGc-4e-M-", + 'private_money_id' => "c9294359-f03b-4735-bca4-6614975adc1e", 'is_modified' => TRUE, - 'types' => ["topup", "cashback", "exchange_inflow"], - 'description' => "4IfskzbRh2KXDkJqy1UyPaGHVkyMSdmemZcovbEUc9TiM3DTS" + 'types' => ["exchange_outflow", "cashback"], + 'description' => "s73QnlHzwGBVLp2Vmg3eprOU7ktZcHWsZTpEtZX9770nlSO8H2DCl6imPJgn2XjYsZUpQvLebh65Hdtxmvs4SwxRthVVayjO1th3s3e6fayZ2E32vm3RMvvWttu1PJb3d04IfskzbRh2KXDkJqy1UyPaGHVk" ] ); try { @@ -162,14 +162,14 @@ public function testListTransactions8() $client = $this->newClient(); $request = new Request\ListTransactions( [ - 'customer_name' => "7pJlo8JS6mIVfCl8O6XTpGUPEJOaNnRanlNyuKHWuXq7zEzVgAAIhzrVmMQ7zQf4j1Xlnx61iQEXBdwXQXBx9CjvSgZke3VuPI", - 'terminal_id' => "669a3849-4187-44c2-a5d5-8d53644ea80d", - 'transaction_id' => "xLQqoj9SXP", - 'organization_code' => "---39", - 'private_money_id' => "1c45b4fa-8a23-479b-81c1-4b370fc82244", + 'customer_name' => "yMSdmemZcovbEUc9TiM3DTSa7pJlo8JS6mIVfCl8O6XT", + 'terminal_id' => "3703a79b-b8f0-40a5-879b-eb1b8955fe5c", + 'transaction_id' => "PEJOaN", + 'organization_code' => "kJsWNR-R", + 'private_money_id' => "de093a66-d57f-45b4-aab1-8d5802910a6c", 'is_modified' => FALSE, - 'types' => ["topup", "expire"], - 'description' => "6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzW" + 'types' => ["topup", "exchange_outflow"], + 'description' => "XBdwXQXBx9CjvSgZke3VuPIIBeUSxLQqoj9SXP9EgDJcoagTJNb42JvVKNsj3zA7Dw0uibv6O0nFaLFwVLIZnC6rDyYuuG1XnlSIVaCTCoBzc3PolsdbrxUTbpTkQr9CA458OFUiC0xNjD1g6ausYOsWjmgSVes0LvRpIOKLgAa2m76DTKceEBbKe1QbzWrTYvHigd" ] ); try { @@ -186,15 +186,15 @@ public function testListTransactions9() $client = $this->newClient(); $request = new Request\ListTransactions( [ - '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' => ["payment", "expire", "topup", "cashback", "exchange_outflow", "exchange_inflow"], - 'description' => "HQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6KqsDEeelMkJvsg1mQveiZolVhKjCQVZwzstz19XaUt7HUg2vBtQ3icUlEOMImvGy37aG3VpRlqKVbLVJ59qzi8H" + 'customer_id' => "9e832bc2-0116-4e8a-992b-9776209ccb11", + 'customer_name' => "VDdotVdsHD1HarFGRZ0Q28LywVGUz2sIRxtNbAYMzHePlwRHJLPebYCA3qabphyjXP3xuhhy9uGR", + 'terminal_id' => "248394f3-3ace-4fce-9ecf-875d9d394cfc", + 'transaction_id' => "zmZ5n", + 'organization_code' => "8mf", + 'private_money_id' => "86301539-6e26-4f95-a764-41b630efe5d1", + 'is_modified' => TRUE, + 'types' => ["payment", "expire"], + 'description' => "L" ] ); try { @@ -211,16 +211,16 @@ public function testListTransactions10() $client = $this->newClient(); $request = new Request\ListTransactions( [ - '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' => ["topup"], - 'description' => "kBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyBabDj1sJ7k6dP6L13ja9VovumOjMgFf" + 'shop_id' => "2d0db3db-49b5-44e3-b49e-6b3a1ad5452b", + 'customer_id' => "180f6db0-c1c7-4608-8793-483d48bbb718", + 'customer_name' => "i4ivBi3eJhDgAiQ5RhXwEfmyakwCi2K41MKrJ8u3JtJHw13BJLqURa9CDG8z1r52NxmvSo3IMgKOG9RqgqLtsxscDVj4qDxwlIsjYdDsgNzWfMVYN8tFORiCKaN1GSBkTmsnETZgON7wI25XD4LDGgtc1eHQx1a38fcy9G2ru7CIugZBUKc64A8KJDFHDE0sPhVLSmxr0FU3DnW6K", + 'terminal_id' => "5608c25b-1d92-410e-99f1-9ff3a5830e98", + 'transaction_id' => "DE", + 'organization_code' => "-iW73r1Y-bvxv", + 'private_money_id' => "2c87a899-7567-45b2-b6a0-45c2556c6174", + 'is_modified' => FALSE, + 'types' => ["topup", "exchange_outflow", "expire", "payment"], + 'description' => "lEOMImvGy37aG3VpRlqKVbLVJ59qzi8HFxZtC5ypm8TU2Y6m10oazOnSDRVBADkHpYoJtK8deELoxPb8vCqW8Z" ] ); try { @@ -237,17 +237,17 @@ public function testListTransactions11() $client = $this->newClient(); $request = new Request\ListTransactions( [ - '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", + 'per_page' => 7693, + 'shop_id' => "fbd6a0e0-3372-4d23-ab95-b071eef4d2bb", + 'customer_id' => "e9ff71e6-bb4e-4dbe-a7a4-8cffa2826d0d", + 'customer_name' => "GAkbzmAIScfq8JbwsUjFhr3NwoEyag2SfuJiolnAr0O5Bazm", + 'terminal_id' => "dcc9becb-ce3e-47f1-897d-62a08961c648", + 'transaction_id' => "UlvI3TLRDU", + 'organization_code' => "1T54RprF9e", + 'private_money_id' => "9921668a-1c8c-4b66-a8c6-1f5b26c71db0", 'is_modified' => TRUE, - 'types' => ["exchange_inflow", "topup", "expire", "cashback", "payment", "exchange_outflow"], - 'description' => "KUwWsCFULHC5xu9xwKzEEFrv0p5VC2XFSxIKMXYPxeKc6v3uyZaCEMZ2Ju8UbXHSU9E0Qlg3gebvAwjzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0ru" + 'types' => ["payment", "exchange_outflow", "cashback", "topup", "expire", "exchange_inflow"], + 'description' => "Rg4eijui0x4AzukqXii06wz9NdLnaFp0d8NnYZXWwwPUfmYGEVrOM4dkj0diMGxwkBMFBNKhTrrGkGVnz7dW1L5JRcqWGZoB7J2SLBuVTFPFKYeglUQAESlFenRvUgW2C0Pk55puUaBmR66mDvQf3SzEAz6sFhOXUyleHUBygYLLJFfbbjnOxn1Ii4QyB" ] ); try { @@ -264,18 +264,18 @@ public function testListTransactions12() $client = $this->newClient(); $request = new Request\ListTransactions( [ - '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" + 'page' => 5957, + 'per_page' => 1458, + 'shop_id' => "25a1b673-3f5f-40a3-914a-98fc7e5cba0a", + 'customer_id' => "e3566da9-311c-4e37-916b-d3b6fa03dae4", + 'customer_name' => "P6L13ja9VovumOjMgFfs83kBzSot4H9G2QRAYPymeRfFOHsPVjb9UCbPcYx5YXiYOW0oa5SUOR88F7Ubd6EIlmfbIWBjq1h3aM3MFSn6Z9Xp0dYAIwKPnm62HiK775FUjJKUwWsCFULHC5xu9xwKzEEFr", + 'terminal_id' => "8b340176-3230-4a84-86f0-96b569f2b4d6", + 'transaction_id' => "2XFS", + 'organization_code' => "80-tv9Fy1", + 'private_money_id' => "ffac6395-94ec-438f-9b99-6ee786500033", + 'is_modified' => FALSE, + 'types' => ["topup", "exchange_inflow"], + 'description' => "jzG8UYapgA4DXNtjsg9PgQkXqYPn4dGIxCAVXu8wPFdMI0g8RX9GwTm1EaeDH0runisLVA8D7RtvLwRN8QmXijHIyMGxrgTxrmP2c2b7AqdqrRaU4tsNqOUt" ] ); try { @@ -292,19 +292,19 @@ public function testListTransactions13() $client = $this->newClient(); $request = new Request\ListTransactions( [ - '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", + 'to' => "2022-02-07T22:47:04.000000Z", + 'page' => 812, + 'per_page' => 771, + 'shop_id' => "8e5fd89b-2b53-49bb-b81f-9d5341ae038f", + 'customer_id' => "63f4bd61-127c-44de-b53e-1571a8764f09", + 'customer_name' => "YfKcdpEzIZoGgQ8JT7nM2XSRS8qzeJVaYua", + 'terminal_id' => "8e1a411c-2bbb-45e0-855b-273288fccdd7", + 'transaction_id' => "PHw1U", + 'organization_code' => "99q-L-I7f5-U2--fa-Lleb-7e-5-", + 'private_money_id' => "de760078-73fb-4ab5-8577-64070047582e", 'is_modified' => FALSE, - 'types' => ["cashback", "exchange_inflow", "topup", "expire", "exchange_outflow"], - 'description' => "RdIBCYTSHrtKwDRbFJx9qY9kB8kVDqJMjy6rf4CluMJ3q8UHdGY9c6av2in" + 'types' => ["exchange_inflow", "exchange_outflow", "payment", "expire", "cashback"], + 'description' => "5OvQdZofRUOUAciXVcpzKCMcrOD6Emk2wkp2iXzqZDQWG9JIPYO9QhKjYAAaWngq9PQfQxKRvEszf3mWAEHwNafuFelOU7xCAyi0eUz4xXH5OLhVoB1lIuiOfxpiSD0ualUMr1aiX" ] ); try { @@ -321,20 +321,20 @@ public function testListTransactions14() $client = $this->newClient(); $request = new Request\ListTransactions( [ - '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", + 'from' => "2025-09-04T12:32:59.000000Z", + 'to' => "2025-10-28T02:35:46.000000Z", + 'page' => 723, + 'per_page' => 2710, + 'shop_id' => "4a4ab0f2-d9fc-4b30-be59-5496244cb9f4", + 'customer_id' => "a380ba3c-56b6-45ae-8fdf-ed9ddd0b2f6e", + 'customer_name' => "t0eqhymEV4KDx3FmD9kbbli1vOnH69EFivIjA6JEHCCuKl", + 'terminal_id' => "1a939b17-6eee-4066-95ce-fcae5000d78a", + 'transaction_id' => "TWFTkh4", + 'organization_code' => "W-i-MgUl-7-e-2lbp47YIY-S-", + 'private_money_id' => "3d39693e-5973-446c-84bb-a724682b8804", 'is_modified' => FALSE, - 'types' => ["expire", "exchange_outflow"], - 'description' => "7TRPpd99WNI7yrXSKnnTIb76zTEtm8AaIiuGx9L9HalOMU5vigXX7Icn5jXA5QxJPbbGkUILhTXtRtmknLVk7hQOvzRC9zFhAU2LnJOGL09rrRBaBOdWWGJsxArgIuumM" + 'types' => ["exchange_outflow", "expire", "exchange_inflow", "payment", "topup"], + 'description' => "JS" ] ); try { diff --git a/tests/ListTransactionsV2Test.php b/tests/ListTransactionsV2Test.php index 2bfac5ec..5ae13d94 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' => 515 + 'per_page' => 267 ] ); try { @@ -39,8 +39,8 @@ public function testListTransactionsV22() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'prev_page_cursor_id' => "01a288ce-86a9-45f9-a25c-24fb20e7a337", - 'per_page' => 70 + 'prev_page_cursor_id' => "2d6b2f87-f014-45f5-ad0d-10e0b5367189", + 'per_page' => 422 ] ); try { @@ -57,9 +57,9 @@ public function testListTransactionsV23() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'next_page_cursor_id' => "aebb53f8-8db4-4c7a-a6dc-f0cc65d2b079", - 'prev_page_cursor_id' => "8d3a473f-2823-465e-acfd-450c5315b0ac", - 'per_page' => 93 + 'next_page_cursor_id' => "c248bfa6-de5c-429f-b5fb-5fc27c00ea7c", + 'prev_page_cursor_id' => "58ce8032-e8d4-481c-8ace-6dcabd783681", + 'per_page' => 996 ] ); try { @@ -76,10 +76,10 @@ public function testListTransactionsV24() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - '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 + 'to' => "2022-01-12T07:05:06.000000Z", + 'next_page_cursor_id' => "0aefbbca-9b47-4ae0-b605-f38cd3f02fd3", + 'prev_page_cursor_id' => "4405b26d-69eb-4914-b341-35b18464694d", + 'per_page' => 118 ] ); try { @@ -96,11 +96,11 @@ public function testListTransactionsV25() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - '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 + 'from' => "2023-01-05T16:53:50.000000Z", + 'to' => "2025-04-01T04:25:21.000000Z", + 'next_page_cursor_id' => "e9d81bfe-877e-442e-81b7-81b9bc91d8d3", + 'prev_page_cursor_id' => "abcd1149-1aba-41bc-961e-a206827712be", + 'per_page' => 172 ] ); try { @@ -117,12 +117,12 @@ public function testListTransactionsV26() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - '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 + 'types' => ["payment", "expire", "topup", "cashback"], + 'from' => "2023-08-04T17:40:54.000000Z", + 'to' => "2023-11-02T15:41:31.000000Z", + 'next_page_cursor_id' => "59b1d643-abd4-4449-af0c-aaa29d626ff5", + 'prev_page_cursor_id' => "972a7718-71fc-4777-9b04-e0a1018d6670", + 'per_page' => 788 ] ); try { @@ -140,12 +140,12 @@ public function testListTransactionsV27() $request = new Request\ListTransactionsV2( [ '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 + 'types' => ["exchange_inflow", "cashback", "payment", "topup", "exchange_outflow"], + 'from' => "2022-04-26T09:01:04.000000Z", + 'to' => "2025-10-16T17:34:04.000000Z", + 'next_page_cursor_id' => "c3f39995-c5e1-40bf-93c2-e62c3326875b", + 'prev_page_cursor_id' => "c0ebcfc5-b7dc-4630-9191-e8aa76b2e620", + 'per_page' => 105 ] ); try { @@ -162,14 +162,14 @@ public function testListTransactionsV28() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'transaction_id' => "w0", + 'transaction_id' => "jzN", '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 + 'types' => ["payment"], + 'from' => "2020-07-03T21:11:56.000000Z", + 'to' => "2022-10-01T05:54:37.000000Z", + 'next_page_cursor_id' => "c70d1ca8-221a-42b0-96e5-9bb0baa6147e", + 'prev_page_cursor_id' => "6f98c972-bfce-4433-9186-7f1d34f50fc5", + 'per_page' => 348 ] ); try { @@ -186,15 +186,15 @@ public function testListTransactionsV29() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'description' => "SLVITcWyXkWwNeThL", - 'transaction_id' => "K", + 'description' => "m7q1SjNjatjjDZX7RIKgDX3b9oA142xLkpis0qy5MfI", + 'transaction_id' => "SyoLqEQKh", '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 + 'types' => ["exchange_outflow", "payment", "cashback", "expire"], + 'from' => "2024-12-08T13:12:39.000000Z", + 'to' => "2023-10-06T22:46:26.000000Z", + 'next_page_cursor_id' => "f73d2590-2281-47f2-8c02-47842a1d6833", + 'prev_page_cursor_id' => "6975e905-43cb-485c-a589-32820fe751f0", + 'per_page' => 44 ] ); try { @@ -211,16 +211,16 @@ public function testListTransactionsV210() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'customer_name' => "9Tu", - 'description' => "4ZsbCHGDImjW34z4jE8W9hhkpYWEzZLn5uyvbNkfkqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAsvQQw8eNXwtPfKAW4", - 'transaction_id' => "Uw", + 'customer_name' => "treugpuZPDhn3kvKQdinTisU7JGahMN0pspm5VBpWaMfH3OlTb5uoxVylmhf3ESdF0EHZGgpE19g89rUgV81h6fR4XXAReVSL8MjPf2nDJncUb7prKqWXHoSFTkZLdy8B9WWqNrXVXI1wRTqwqzVsahBGWwps3iARDJTRZkOOEQFC19Wtss23YjQBhHozeYJjV02y90GWowMI3ASCsApxBJptaJJRDQ6YTYkiFEIISprQ3cmpI6bh8YrVsWGSgh", + 'description' => "Cw1Un7nnaTSFczRArCskatgTSAk3a8TcT02JvhzyAvEGRwH1gqt79bzapcrIrLur4lrAgRY4qmYCDpX8Ny7Ex4zLyYmVuuwRZjnfSOf90ILh1FnEv5pCv1ztILSktq1cNxb1w0fAXCRcSE6z5QHSLVITcWyXkWwNeThLpKI1N6RIMY7t0u9TuR54ZsbCHGDImjW34", + 'transaction_id' => "jE8W9", '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 + 'types' => ["topup", "payment"], + 'from' => "2024-12-06T07:46:31.000000Z", + 'to' => "2020-08-22T20:50:43.000000Z", + 'next_page_cursor_id' => "d0fbabc5-4b3c-417a-9a4c-56ee1759fc35", + 'prev_page_cursor_id' => "0a53ed85-292f-4da9-b5f9-6f767e7bbb10", + 'per_page' => 40 ] ); try { @@ -237,17 +237,17 @@ public function testListTransactionsV211() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - 'customer_id' => "602a6bf4-fbeb-44af-9c84-85b1cf275f99", - 'customer_name' => "inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwvHQFKDImV0W8uMWRziTXMumFeaEHdh8PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6", - 'description' => "Q3vZwFKRF7w", - 'transaction_id' => "plclcWB9", + 'customer_id' => "81a32662-8cce-4c6b-9866-a821dfad102f", + 'customer_name' => "kqdGOYba42tK1ETZVrimXQx2toEzw7Z1gM6fgx4uEjyIUvTVKqmlOa23scUcryj4GBWTbDzAVeKXVTyNRuvNAUp6ljdawfubjQ03lDRu1dHypEu4pqRk9KXyywxfAs", + 'description' => "vQQw8eNXwtPfKAW4UwDxtqXzHNdytk1inQrWiktMK0FHLyLnvzTdFf0Y1JODoBhEEJFs7RURiJHf6mnglgKA3t551AWYy2EKxgIvudVQKM3ivlyVYA6fe68jtm2G7nC3SW8MPeFKTYT7eEYLwv", + 'transaction_id' => "QFKDImV0W", 'is_modified' => TRUE, - '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 + 'types' => ["topup", "exchange_inflow", "exchange_outflow", "cashback", "expire", "payment"], + 'from' => "2025-03-25T05:46:06.000000Z", + 'to' => "2024-04-21T17:54:26.000000Z", + 'next_page_cursor_id' => "2b5accaf-7713-497a-a9d4-62d873471c01", + 'prev_page_cursor_id' => "54af3204-35cd-4688-a7a2-dd2bcd991ef5", + 'per_page' => 643 ] ); try { @@ -264,18 +264,18 @@ public function testListTransactionsV212() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - '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' => ["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 + 'terminal_id' => "e06b45ed-b807-4346-aa3e-1d26809eb9e5", + 'customer_id' => "a6716e61-64c5-4648-a40a-41163b9005e8", + 'customer_name' => "PePoMZwnAEmuUL6pb761IWS7zT3jmF3XMzgKDKO5o6UqQsbMF41dYUnemzRdROKbGph7rDrumGN6tQ3vZwFKRF7w7plclcWB9bNRwQ0LABzLS5AginlSJbgCOpN21EzYv53e8C68gL6nh3hboA1VaXQqYz47H8v5OYX2Bb7kgjpYtpWxkJ26TN1Vk", + 'description' => "tFjJy7P4SbKkoz4u4vqNtkYjPXUyJ1V0r5CHRNT2ecfLdc33OSn94wpSCBGnb27KI1Ko9Ro9P2UOPHKcZd7kJ0a09BOfp", + 'transaction_id' => "TrIx", + 'is_modified' => FALSE, + 'types' => ["exchange_inflow", "exchange_outflow", "payment"], + 'from' => "2020-11-20T16:52:18.000000Z", + 'to' => "2021-06-13T07:29:08.000000Z", + 'next_page_cursor_id' => "64a8d224-6cf8-4c22-a7a7-4066c71fbc30", + 'prev_page_cursor_id' => "ec3597a7-cf65-4da1-8106-abd0dd90cb80", + 'per_page' => 389 ] ); try { @@ -292,19 +292,19 @@ public function testListTransactionsV213() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - '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", + 'shop_id' => "375ec13e-2110-49ea-9f6f-a5eb88fda305", + 'terminal_id' => "23f38ec5-ffd6-467e-8810-e8ba33a63e95", + 'customer_id' => "d2bd4e13-65d2-4382-aa46-79ccf1b1c13b", + 'customer_name' => "hiMn2sJjV2bGnLruRc9c27Gpu7iWb08UbIXfazIWogjdxJNEfM7ZphEzx62f8FNzaDel7ro4JT6XY3Y33ek4ahxmsrZJPb5B1K9ZLJjl", + 'description' => "QzrcG4cFx990D5go4dBLdUCSZVd4cTqnNfSRiX", + 'transaction_id' => "Lw6IXxo", '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 + 'types' => ["cashback", "topup", "exchange_outflow", "expire", "payment"], + 'from' => "2024-01-23T19:32:02.000000Z", + 'to' => "2026-04-10T14:13:13.000000Z", + 'next_page_cursor_id' => "9af3b345-8ee5-4ff2-8c4e-7127a8577917", + 'prev_page_cursor_id' => "bd51d245-8c4b-4321-be4d-9459c0099b05", + 'per_page' => 937 ] ); try { @@ -321,20 +321,20 @@ public function testListTransactionsV214() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - '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", + 'organization_code' => "49Z3-Af-3QQb-j0Nu-", + 'shop_id' => "ab504349-7dd1-464b-9151-b9010663148b", + 'terminal_id' => "886558c8-2f62-4afc-a436-5ce6ea945ae9", + 'customer_id' => "659e2b6b-6fa7-41ae-9dd6-43e781f6f138", + 'customer_name' => "3XBigR3jya01cL7edhmrVi5NIsblUeDquiQL8YRreNoLAWMJdywYSICtYcbHl2ktF16gpa54attROZcBbejZS9wdnnNKINI7vj8qEDPsdJ8JkL6K4fbUtzmymsdzvhUXmrc210VozYCz4wR9Gfv1ooHMcqzJF0zVNZ8zHF5mnetJol0g7uhhZVwBBSB9NQuG198o4cE8ye8xiCptr8X3OQ", + 'description' => "s9cvMVMzYpfEHHq4AVCPhpFJVl2NE9OohrFLhvABt92YjeNGkeRyZCxDwnyuzPdWfYw482S6oHFsZh9ksnqT", + 'transaction_id' => "KQYa", '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 + 'types' => ["cashback", "expire", "payment"], + 'from' => "2023-08-25T10:38:14.000000Z", + 'to' => "2026-01-09T02:36:33.000000Z", + 'next_page_cursor_id' => "ef9cdccd-f19a-4961-af30-71e90fcf08bc", + 'prev_page_cursor_id' => "da52fd4d-76a8-4c82-a72c-d484de4bda95", + 'per_page' => 427 ] ); try { @@ -351,21 +351,21 @@ public function testListTransactionsV215() $client = $this->newClient(); $request = new Request\ListTransactionsV2( [ - '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", + 'private_money_id' => "14935578-5f37-4732-8daf-af8eb59f58e3", + 'organization_code' => "--amCO3FHU--68M6-tQ04mYLv-7Yw", + 'shop_id' => "010e53f6-3199-4844-bc33-2cc24c9fc25c", + 'terminal_id' => "36b28d04-d454-4eee-821f-c314311c68a9", + 'customer_id' => "4888faa6-9a4e-41e3-a1c9-b97624edf9b4", + 'customer_name' => "Cy2qiGNeSDJueWNAF2iLhkB08mWoSEw4Yfnz5e3bjXKldANGzSZe49qKV1rholLnfHAgpNJKDDEjuzSmETPUL6TDRxNmjKWPDEzen9VEh9JKwUlzsxb9tQKSZdMATJHlP3s2aiyvcn73", + 'description' => "2KUYpvpwWJTv2DUcm", + 'transaction_id' => "sWBT", '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 + 'types' => ["payment", "cashback", "expire", "exchange_outflow", "topup"], + 'from' => "2025-10-08T09:55:20.000000Z", + 'to' => "2021-07-29T07:10:06.000000Z", + 'next_page_cursor_id' => "a0db3eec-5bbf-4c95-8f0e-96e89e7c004e", + 'prev_page_cursor_id' => "db94a50f-e06f-4452-8555-1b698d3a02ef", + 'per_page' => 230 ] ); try { diff --git a/tests/ListTransfersTest.php b/tests/ListTransfersTest.php index 6f166b6a..83f6db3f 100644 --- a/tests/ListTransfersTest.php +++ b/tests/ListTransfersTest.php @@ -22,7 +22,7 @@ public function testListTransfers1() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'description' => "a90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyltrhPzNi7jenj4X3xdXKxR7POl5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTL" + 'description' => "6KeHafoOKYuUs7zf9dIsiva1vYlz4sIXfB3ep9eHnNy54z9YZjsWtY1WGlubcf8poH65gFI1eD4xOb3KkBBLymzX1iK" ] ); try { @@ -39,8 +39,8 @@ public function testListTransfers2() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'transfer_types' => ["expire"], - 'description' => "rSUmgTJgltXUvopMAE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB" + 'transfer_types' => ["payment", "exchange", "campaign", "topup"], + 'description' => "alQh9et3sJPwGPZVdfeHb6D60qrRKjcydAgQf1kjgylUDTK4jhJH0jAjNW1ZH6MoDDkoySCPKncEWYebt4RUGRqT3wcuceySCabxrgTXSxZbg1Ud9jBS9CQqv6T7eIQXHJd" ] ); try { @@ -57,9 +57,9 @@ public function testListTransfers3() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'transaction_types' => ["payment", "exchange", "topup", "transfer"], - 'transfer_types' => ["topup", "expire", "transfer", "cashback"], - 'description' => "5Zq2CPEph5LyiHrKKZHYeA6KMsRSBkbfNhFwjSSUkqouGV2ULftf3KLi" + 'transaction_types' => ["topup", "cashback", "transfer", "expire", "exchange"], + 'transfer_types' => ["expire", "topup", "campaign", "transfer", "cashback", "exchange", "coupon", "payment"], + 'description' => "9WNWvjXlHUhCIHkbLQ7KL6y3Sdoxdn1tpYM1z5XMrmRY7bQCW9sP" ] ); try { @@ -77,9 +77,9 @@ public function testListTransfers4() $request = new Request\ListTransfers( [ 'is_modified' => FALSE, - 'transaction_types' => ["cashback"], - 'transfer_types' => ["campaign", "transfer"], - 'description' => "WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3t" + 'transaction_types' => ["payment", "cashback"], + 'transfer_types' => ["payment", "cashback", "transfer", "topup", "coupon", "exchange", "expire"], + 'description' => "G8mho7qKjeP1Vs1el3tVDmtz0qcHqLIsXtLIzc5kRp3WnRoU2x23XKfAMBShU6I6qbRRo0KsKQjbIFpDLYbMMvlh9JCT1xGcQLRIyKzc" ] ); try { @@ -96,11 +96,11 @@ public function testListTransfers5() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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" + 'private_money_id' => "68162a94-32a3-4c23-a69b-4a1aabdf4257", + 'is_modified' => FALSE, + 'transaction_types' => ["topup", "cashback", "transfer", "payment"], + 'transfer_types' => ["coupon", "exchange", "transfer", "campaign", "topup", "payment", "expire"], + 'description' => "9pSvPCqCpyLyZq50fssjoNHBAUn0qZzCUWIZlu3nVCPUHg3HpQOkzK7LlGZ5l2cQL9XINJ3Yd9vs5R5vReMbbVX8HS4JwKvfQBXbwG5FfObbKUS2wO8JUS6TcMNwfudd0OcDN26k" ] ); try { @@ -117,12 +117,12 @@ public function testListTransfers6() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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" + 'transaction_id' => "cd876817-29c5-48ab-9a2d-c1ce48d73a4a", + 'private_money_id' => "b67ea118-5ef4-423c-a604-c8f6173b284c", + 'is_modified' => TRUE, + 'transaction_types' => ["transfer"], + 'transfer_types' => ["campaign", "topup", "expire", "transfer"], + 'description' => "VxGv3INa5f54YI1Ph3OUBAsVaG6TxK3slQw2Vv1qEnKcaw1pz9vX015UD9qqTdXnkHVwtuWRPDBo28vDsYr2EOFyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S" ] ); try { @@ -139,13 +139,13 @@ public function testListTransfers7() $client = $this->newClient(); $request = new Request\ListTransfers( [ - 'customer_name' => "hwjqe7Rve16qe5BUa3mrtCxkktMbdZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjBGi2vt3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3Ln", - 'transaction_id' => "5f987127-adf0-4d62-bba1-e872f6008350", - 'private_money_id' => "fa3b1f29-7cbc-4613-919a-d78f5d494ca2", + 'customer_name' => "0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTfnNFoNra90XKkUB3tuq1X9Hm0SHBKCUruJxi1ST1WXtfeKSzrq1Zc5Ju53UYOCwl5C8rEq5yNfh8NoRe5rX0rVCmpqdlLHNNlbdnW1ooZFRDSiyl", + 'transaction_id' => "cf085cf4-dd72-4e92-a8d0-347a661789ce", + 'private_money_id' => "560d3869-9db7-4292-886a-e6e588ca95ac", 'is_modified' => FALSE, - 'transaction_types' => ["transfer", "exchange", "expire", "cashback", "payment"], - 'transfer_types' => ["transfer", "expire", "cashback", "payment", "coupon", "exchange"], - 'description' => "U7DSfY3LgW5M2IvR52" + 'transaction_types' => ["transfer"], + 'transfer_types' => ["coupon", "topup", "transfer", "cashback", "payment", "campaign", "exchange", "expire"], + 'description' => "Ol5XLEB6rdcoyFq3Dy2RXyPUAe3PgOIxNaz33MDlMm45c417ClVPZadCz21oTLg0Zh082rSUmgTJgltXU" ] ); try { @@ -162,14 +162,14 @@ public function testListTransfers8() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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", + 'customer_id' => "1d4252f6-deef-4390-b05e-44cdce27c897", + 'customer_name' => "AE6nKVgCC79b4Ei190OQ71CLczodkHUHlo8UiDVjyL8K2mxNxSNDBAB21jRDnDfUt4YgIyZaTsiHOmcCShoExxXDzwmu0NmtxroKVUk7sDu4lw8ZxL5ooBCUmbexHlOYPdRDRXfcFEKebPAHiatKRmL7K8IMJIBW1vB1RC8WQ75Zq2CPEph5LyiHrKKZ", + 'transaction_id' => "3fedc792-2f3a-46c8-8090-5459edb3ce95", + 'private_money_id' => "46ffd7a7-b5e5-4add-acc1-a3090d5b7b9d", 'is_modified' => TRUE, - 'transaction_types' => ["exchange", "cashback", "topup"], - 'transfer_types' => ["transfer", "campaign", "cashback", "payment", "coupon", "topup", "exchange", "expire"], - 'description' => "Ezja1NmQHCUATGGz590dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQ" + 'transaction_types' => ["cashback", "topup", "transfer", "payment"], + 'transfer_types' => ["exchange", "coupon", "payment"], + 'description' => "fNhFwjSSUkqouGV2ULftf3KLiOm0u6Od" ] ); try { @@ -186,15 +186,15 @@ public function testListTransfers9() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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", + 'shop_name' => "YvY1WMa6BMdHbor9Bi8VjYjeAF8N8XvRYyNjj6LzPNoFY0NPc7gW3tdaerbfAUj6MGuDCQRgbbh69IfOOqdFvcvTYHWhMSc2JtDSCuxpXIBKjX0wbEINtuhWyJmxhctiEpL1KlL20SY28CEIpXvCz2lX0WFgkUTJYHHOr63hjnglJCcSZdRjCOwyap0lsb8d4Dc5yMU1TN0yX6wxY6IPo", + 'customer_id' => "b8163620-4505-4bd0-89f9-79c5a795a88a", + 'customer_name' => "8klncfGkEwHBWOqOmjPQjCJIqduyEzfF4ihEMnqIdNLL8T5msTmgqj81RXJ34GFY2SrpQfm9Le0rSPWlrPa8fbLwdjVaS9JydpHqXjqW7D3uCGCdE3Z7gIcLSudPl4JIrQmLFWJxcGB9NLriuIsMTYyCUoOEa9YZaUNPTMagDSPeHLGCGYvgqbqCIdoPTyGfjAlvbOwBRftL3mTfJhTjDs9c8QNUGvnht1UycVdhwjqe7Rve16q", + 'transaction_id' => "db5328e5-c9b5-4f42-8dd5-e20a530c5761", + 'private_money_id' => "e949b1ab-3fa4-4fad-bd33-bd5fc1e35493", 'is_modified' => TRUE, - 'transaction_types' => ["expire", "exchange", "cashback", "payment"], - 'transfer_types' => ["topup", "payment", "campaign", "expire"], - 'description' => "4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6vULSy1FKdTtu" + 'transaction_types' => ["expire", "cashback", "payment", "topup", "exchange"], + 'transfer_types' => ["transfer", "campaign", "exchange", "cashback", "topup", "payment", "expire"], + 'description' => "dZ0Ff5nebRZC0vDYNEWMfxXSVHRY4YZdsEswklf9tWgAr9KxjsUzeefEvU98BI4BdtnYVFOF5IXA6lNw66Yqs62ry4EX0H5SsjB" ] ); try { @@ -211,16 +211,16 @@ public function testListTransfers10() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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", "cashback", "payment", "exchange"], - 'transfer_types' => ["coupon", "exchange", "cashback", "transfer", "payment", "expire"], - 'description' => "ac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6" + 'shop_id' => "d321002b-aa47-4390-a9de-6cb2150af984", + 'shop_name' => "t3IVLujfoeXIyA6Ao821XE55hc29pv4sZBooZY5wA4Og2kdAYLVTxSOsaSsUmdY0CLcfoUMFSIdEJMG98zC6otpSw3LnpbrPkZnNjPWO55U7DSfY3LgW5M2", + 'customer_id' => "cddabac9-2e20-4040-b6a4-eb52dc3617b5", + 'customer_name' => "2CgIBy3eLTys12HHDFFeqLoUtYmfM0XLYceQxhubY3jVYhbh4RW4SjcPHu2gIp7HlCgxYlFZzBuHZ8tjsh68ScZg3aAMErPcV9o0TcGJkIJgRMahTjY4B83KCbssdnciBK2yKUyBpazsFHLyPhoCqWWrzikH0DrThI9ndCARX9iZhUIwUrsQ8Uijo55dyiBxXbKWYhqIQcADAJhWFwASll2hGkEzja", + 'transaction_id' => "5513be31-fea9-4b0d-8ea9-31fd681251a1", + 'private_money_id' => "3f2ea785-bb00-496d-9185-f1274edbd2c8", + 'is_modified' => TRUE, + 'transaction_types' => ["cashback", "topup", "expire", "payment", "transfer"], + 'transfer_types' => ["expire", "campaign"], + 'description' => "dtBhucZ4e0BzAWy80f2MmxJUnd92RrjDmsbpR1t9xme9U0GR2pRvNpULEoTr6H5p2Y5YBaOZdS1seolNILNbVpFGvZ3N4x3uvaLnbw12Ii4C82SzJJG4lODNS2Ij7U5b72UTWbjXGfzCmZ2vkYmrCrWwA7IkDmk9acr8tX9JQSHyiFose" ] ); try { @@ -237,17 +237,17 @@ public function testListTransfers11() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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" + 'per_page' => 7846, + 'shop_id' => "d682c415-4e88-445d-88e0-7df19841e2fb", + 'shop_name' => "yK8GIOW0PGU45uzPdd0dJeNNvUC0bqs1hvmd5I8evbrAQGpnYomE2cpD4cThkIOO2LW0e3G1sTmjjHcN57ZbAikJ2o", + 'customer_id' => "46fd0870-06c7-4d79-a01b-350912aba172", + 'customer_name' => "ja3zumve771kQ7mwZnfGMQasC1yb1Dq2UL9Kx0jYk7sZRicOTg", + 'transaction_id' => "937f615f-22b2-4c88-b327-1f133ca6d181", + 'private_money_id' => "c7944617-cae6-4da4-b547-c37d4c90873d", + 'is_modified' => TRUE, + 'transaction_types' => ["payment"], + 'transfer_types' => ["coupon", "expire", "exchange", "payment", "topup", "campaign"], + 'description' => "zTzm0HG0TosxKz4jitwHt" ] ); try { @@ -264,18 +264,18 @@ public function testListTransfers12() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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", + 'page' => 5667, + 'per_page' => 2619, + 'shop_id' => "e40ac1f5-87ea-497f-8b4b-84685730a63b", + 'shop_name' => "wCFGwiyv4vlR", + 'customer_id' => "817c8bc2-dc22-4452-88f8-3e90eccd6f0f", + 'customer_name' => "HZeKBVf4jVtecQNubIdHetIBPUrvpeN86f46tWgyM43AJZ0KTwWOYBSX4EzfsIiIDCSxoowqwobMRj4K8plKuk4zON6lsKCXAkk07Q9YuV27x2ZZwJNPJ0aXH1uRWCYsw6VRBfXAF7xeoT0y6lNlDnKEOyMV89HUL5OwvTmfkSpdcLQvsJQRiuvWpRkphzntqbTr2vHF1iF0Y7dBxe8hiTzwkLtzBfAa7kaQm6v", + 'transaction_id' => "a76a705d-36d5-430a-8cd3-7196f9e3f1bf", + 'private_money_id' => "c3fdb679-6331-44c6-89cb-d2e4a301632b", 'is_modified' => TRUE, - 'transaction_types' => ["cashback", "expire", "exchange"], - 'transfer_types' => ["exchange", "cashback", "coupon", "transfer", "topup", "expire", "campaign"], - 'description' => "A9hELkacVB4dzDqQ1LbTyVIgVP7fIz1xemnrDx9P7HPwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJGZG6LzTWIbd8ZNVrafdiivNn4NbNLXIdoiq" + 'transaction_types' => ["exchange", "expire", "transfer", "cashback", "topup"], + 'transfer_types' => ["campaign"], + 'description' => "tnRGbdpbMjOs6NsjUaiDroY6Q3IK7BQ6AmswdAM3IJrwVbs9pMxfMCthiv1a2EEHF" ] ); try { @@ -292,19 +292,19 @@ public function testListTransfers13() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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", + 'to' => "2020-04-10T03:44:46.000000Z", + 'page' => 8860, + 'per_page' => 6878, + 'shop_id' => "692889d1-a677-4134-8fed-544a54af57f3", + 'shop_name' => "XraAGliEBPmHrH76ocsr7yZptwOIMGRxZLktLdV7uiWarFr5GP0wp4l70ZsGyPlyZYRURgUMf0P5ozHDn0iOeoWIRRMyR0nQkh8Zz7eaFGoiOPKR0rUW9UTcnGDBsZuPfABdiNvfS9Anufij6THnocikBJOkD", + 'customer_id' => "133ca333-e046-4225-8f5b-4776f71a0e77", + 'customer_name' => "naI0WeOGlWmmegc1KGhe3TxnuKac7CS1DK4Gnrr3oBLGMXHrz9mqfRhRmUp8pN9pjtBKEK15Dd3XxCT0Zmu6u7tOxquneNatGolCf6SjeF7SeZXyMS6WkNJ2GvSwQUcruYP4H5cCw5ExNqh41OXXFwVmaHYw6oEFbK8qER1LlAIi", + 'transaction_id' => "c7fb400a-57bd-4f35-bd71-2ed9a8093154", + 'private_money_id' => "5b075671-e598-4d9a-a5c9-1dcebd21f698", 'is_modified' => FALSE, - 'transaction_types' => ["payment", "cashback", "transfer"], - 'transfer_types' => ["topup", "cashback", "payment", "coupon"], - 'description' => "M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyMo26iqol80j1t4n" + 'transaction_types' => ["expire", "exchange"], + 'transfer_types' => ["cashback", "campaign", "payment", "exchange"], + 'description' => "ZDKCnQigIBcgyeHE0tecRrYBgXoYNaRDH3xa5ZXl3L94kmDiQZVmfdCV9wGJUROgp1VTNstKsbk2wvZcZmJCZwuee4w9Rkvag9C19xRl1IlJpGXqlhd5uwOg53j3Qic0iyKLnZxaZi9iCa2kj9ID" ] ); try { @@ -321,20 +321,20 @@ public function testListTransfers14() $client = $this->newClient(); $request = new Request\ListTransfers( [ - '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", + 'from' => "2021-07-02T05:53:08.000000Z", + 'to' => "2025-07-07T04:26:56.000000Z", + 'page' => 150, + 'per_page' => 8391, + 'shop_id' => "986a0d1a-fd3c-47cc-9b5d-4f55b9ee4f25", + 'shop_name' => "3H4cTCafuN856J50SdiADG37eydGENMPuSUGCPNHip0Y3dBWcNdXe1sIjLSVztCspdpKcDGU85LATApzQ2dQG1XtK0UfX1fzmKZw4jAX5TdVMZA3FsBWHTaR7q8iHovbTWoPNbCUX3WmvU0lnYW7MWulxJqejEoXiemEzy22TP2wtSY9IoDSrJ", + 'customer_id' => "a440e929-8555-4811-97c1-281814bb3f3a", + 'customer_name' => "sSTBsOwjVmr0bTbO79fqhITnnz7WaCAiQd9B8sle88sl7rSWKN9oQjHsNX48VkSyiuzE1L2wv36YuE4jwp0IiR44I5KLiOrRKq3qxtTGifN6KrraD5uojwDmQdLNOKHIlDiaOh78QfhNbZ3YfGhlbqaOElvScjtjkG1WEjltqaYkhp7caXj", + 'transaction_id' => "e8190629-2755-4df4-a8c2-f86343687ace", + 'private_money_id' => "e616708f-9d65-4c39-9879-b21d6186f09f", 'is_modified' => TRUE, - 'transaction_types' => ["payment", "transfer", "expire"], - 'transfer_types' => ["transfer"], - 'description' => "Y47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWHgQ0VE" + 'transaction_types' => ["payment", "transfer", "topup", "cashback", "exchange"], + 'transfer_types' => ["transfer", "expire", "exchange", "topup", "payment", "coupon", "campaign", "cashback"], + 'description' => "XBErIUB1p7aPMzXnAdDrY96Gn0OAQ9xSN0zfKx7ivixiVqjgvBNcsQLQxAtJmVTcXWtKUzkNd35gyuBKlwozbM8BIp6WWFtoNM3mKKWyblmmA" ] ); try { diff --git a/tests/ListTransfersV2Test.php b/tests/ListTransfersV2Test.php index 67373c34..b7bff4c9 100644 --- a/tests/ListTransfersV2Test.php +++ b/tests/ListTransfersV2Test.php @@ -22,7 +22,7 @@ public function testListTransfersV21() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'to' => "2025-02-28T01:08:36.000000Z" + 'to' => "2020-12-16T08:58:48.000000Z" ] ); try { @@ -39,8 +39,8 @@ public function testListTransfersV22() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'from' => "2023-05-21T16:25:44.000000Z", - 'to' => "2025-08-01T18:16:06.000000Z" + 'from' => "2020-04-15T04:15:14.000000Z", + 'to' => "2020-12-29T07:52:51.000000Z" ] ); try { @@ -57,9 +57,9 @@ public function testListTransfersV23() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'description' => "spW9b9NBdczTSynCfTiWLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKkXBWEu4RSjxgCW3jFlgob", - 'from' => "2021-08-13T10:57:59.000000Z", - 'to' => "2021-08-02T03:38:13.000000Z" + 'description' => "YCV0EDw10SY48ZoA8oj9alrEKYDjBWPKCwbirzvScUvjsqVkcSInvOjFPIL9qlVMwg0ANEHCj5eM805Swtsg2NkJBDvuxWoqdLq3QmHRbZpwbPRidVG7B6hajGJrCJBxTKH0YUW8iwJJuJPCjlaztijN3vebjT869RjYRPCqvnZ1Yzdr", + 'from' => "2025-05-08T23:55:20.000000Z", + 'to' => "2020-09-25T21:43:55.000000Z" ] ); try { @@ -76,10 +76,10 @@ public function testListTransfersV24() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'transfer_types' => ["payment", "expire", "transfer", "campaign"], - 'description' => "qFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6BlopujNmJIuVKWvjUjC0u3f2Lo9NqlV6u", - 'from' => "2024-01-11T23:49:58.000000Z", - 'to' => "2024-08-17T18:28:14.000000Z" + 'transfer_types' => ["expire", "topup", "transfer", "exchange"], + 'description' => "NoGD", + 'from' => "2020-04-13T03:55:24.000000Z", + 'to' => "2020-03-23T20:09:32.000000Z" ] ); try { @@ -96,11 +96,11 @@ public function testListTransfersV25() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - '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" + 'per_page' => 892, + 'transfer_types' => ["topup", "exchange", "transfer", "payment", "cashback", "coupon"], + 'description' => "2NN7jWbTA8sT9CjYdhYyR9ZtWhMAKSZHQ2Tjahc0hASAcEibjku1f", + 'from' => "2022-03-21T22:27:48.000000Z", + 'to' => "2021-05-23T18:00:49.000000Z" ] ); try { @@ -117,12 +117,12 @@ public function testListTransfersV26() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - '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" + 'prev_page_cursor_id' => "25fe47e5-ba99-4f74-a20b-28879b3ea51d", + 'per_page' => 360, + 'transfer_types' => ["coupon", "payment", "transfer", "expire", "topup"], + 'description' => "FrkXVihIdQWu7J4NYirXryPP6taqbm6hsnA9hELkacVB4dzDqQ1LbTyVIgVP7fIz1x", + 'from' => "2025-06-30T16:25:03.000000Z", + 'to' => "2024-10-04T09:37:41.000000Z" ] ); try { @@ -139,13 +139,13 @@ public function testListTransfersV27() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - '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" + 'next_page_cursor_id' => "2bd4a9ed-f6ee-4b72-842a-bf927606ae85", + 'prev_page_cursor_id' => "144561f8-fbb9-443f-90a4-39935cbf0329", + 'per_page' => 703, + 'transfer_types' => ["expire", "cashback", "campaign", "exchange", "coupon", "payment", "transfer", "topup"], + 'description' => "PwLX5lwWZKuWWf4n5wNPq2rjN28QfQLnQ9Qr2gs4rAyEVt2ws7WkJzpgGUX4mtxobZ9ZCpNJG", + 'from' => "2021-05-18T07:31:38.000000Z", + 'to' => "2025-11-11T23:53:48.000000Z" ] ); try { @@ -162,14 +162,14 @@ public function testListTransfersV28() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - '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" + 'transaction_types' => ["payment"], + 'next_page_cursor_id' => "a412eaab-aa22-4936-8c9e-6dfa9b256054", + 'prev_page_cursor_id' => "adaed457-6903-43be-895d-2ee2d3616293", + 'per_page' => 101, + 'transfer_types' => ["topup", "transfer"], + 'description' => "afdiivNn4NbNLXIdoiqtrelImUNmLeKEfXUc2dQExu22E4bXnTsrAuXzcUztcjpDcIzv8TjKb1dIcQKtgPEpt9Ynsu0LI4T70lQwB453YpOK96EoFGx", + 'from' => "2022-11-25T05:47:02.000000Z", + 'to' => "2024-03-14T01:51:23.000000Z" ] ); try { @@ -186,15 +186,15 @@ public function testListTransfersV29() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'is_modified' => FALSE, - '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" + 'is_modified' => TRUE, + 'transaction_types' => ["cashback", "payment", "expire", "transfer"], + 'next_page_cursor_id' => "260bf97f-e81b-4bce-8a54-6916deff3616", + 'prev_page_cursor_id' => "c695cba4-6a65-4a2f-a02e-5a529da6f008", + 'per_page' => 801, + 'transfer_types' => ["payment", "topup"], + 'description' => "eFRtau24yc1kusN7qW2yhhPFbHNPhRgnqYnUlh4JbOrMj5jFwrAdcz57ZOWsDr0Djt9M12BOno1AcjM96oftC7mHhiSDgXKvVy5paxKD2XcOfyM", + 'from' => "2025-01-07T02:31:11.000000Z", + 'to' => "2020-08-07T21:30:42.000000Z" ] ); try { @@ -211,16 +211,16 @@ public function testListTransfersV210() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'private_money_id' => "b26c9bb1-cd1d-44db-ba1a-084df4297737", + 'private_money_id' => "4ed462df-6336-45fb-a9e0-1d71ca25eeef", 'is_modified' => FALSE, - '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" + 'transaction_types' => ["payment", "expire"], + 'next_page_cursor_id' => "84d43ab0-a9dd-4006-aa2e-d5312847b6f4", + 'prev_page_cursor_id' => "3364592d-0393-41b4-bdee-d3ae726e4333", + 'per_page' => 135, + 'transfer_types' => ["payment", "campaign", "exchange", "cashback", "coupon", "topup"], + 'description' => "Ox6Ov6eGwjQCqxdtQnDY4S9N4HhJ5rCsXRcUZY47cpIh03BvqB7CzLjYHoO28zEE65UlKtMCe12MUV2dxrA2428zEWnFZLX87qtedPzV8NdiYCurcmVOPZzwMWH", + 'from' => "2021-09-26T13:36:39.000000Z", + 'to' => "2025-04-08T19:13:21.000000Z" ] ); try { @@ -237,17 +237,17 @@ public function testListTransfersV211() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'transaction_id' => "f02842a4-ee1e-4735-b122-300ec40eba10", - 'private_money_id' => "c0f95adf-a8ba-4af9-8102-a699e1982cd9", + 'transaction_id' => "0f672fbc-57b0-4800-96c5-a15309b52b94", + 'private_money_id' => "e65e6508-2366-40bd-b306-70897cd8a370", '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" + 'transaction_types' => ["cashback", "transfer"], + 'next_page_cursor_id' => "8aad33ce-e6c2-4ae4-868c-3de3d9ed35fa", + 'prev_page_cursor_id' => "e5282410-6808-4354-93db-e07936f1c104", + 'per_page' => 350, + 'transfer_types' => ["coupon", "expire", "campaign", "exchange", "transfer", "topup", "payment"], + 'description' => "WLEN2pEbq7ZeB8PVJkE9NzaeTptZ5kX9rLpagdWQnEnTlLyubwibc5uG9Y4cn6ApRZ5NX6gFb5nuODlmm9rpn022H3wQmNFzbLFmfFSz1uperYHhU5vbLxW8Yq15XpRuu89q3NykiRPYO2oQiAYMcKk", + 'from' => "2024-09-28T18:24:24.000000Z", + 'to' => "2024-04-07T17:17:54.000000Z" ] ); try { @@ -264,18 +264,18 @@ public function testListTransfersV212() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - 'customer_name' => "uCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJRZi52y7KvoeklIR5ig74Fkbtbb0SlK2KbT8BQ8WxGHxi6f0cuW1ZhxLtCHCm7yUfJm7Fg98YgjSKRGLQpNx8ciNrKweGJtnGqdSp90ci6D0iGddOVzLT6tirwJLurByrAGwszVwlQAuTXTWtKg2YB5YxV", - 'transaction_id' => "a1343529-1396-48e0-8871-c975b8afee7c", - 'private_money_id' => "23f95c17-2392-4085-9614-66d9410122f3", - 'is_modified' => TRUE, - '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" + 'customer_name' => "WEu4RSjxgCW3jFlgob7yobgqdqFleVhpCebdmmx3jJLFYo72YjP5pod5QaLCZTmFLxumOnvrupx16EXCUXyPfCabjEtMliIf7wKoPmNQWU6zl3h0ZGoCe5IIfEbaRlpdhTTQpQoSRT6b0IY83jSy9CLjq8yjjxInoBnLVw5NxHP7CI9Yb5tOQ2qp6Bl", + 'transaction_id' => "fbff9421-b2ef-4b82-9e70-8bf522cb80ea", + 'private_money_id' => "4334642b-5cce-48ed-994a-47130cf7f7a9", + 'is_modified' => FALSE, + 'transaction_types' => ["expire", "topup"], + 'next_page_cursor_id' => "5209bd57-5c96-4d96-9bae-ea76f79df42b", + 'prev_page_cursor_id' => "71b946ea-75ac-469d-98d5-d0bed00a2c89", + 'per_page' => 747, + 'transfer_types' => ["transfer", "coupon", "exchange"], + 'description' => "Lo9NqlV6uXM4yE9kd7lV6QKkz6REzoI7cZYW4c0G", + 'from' => "2025-02-28T02:05:45.000000Z", + 'to' => "2026-06-19T22:05:03.000000Z" ] ); try { @@ -292,19 +292,19 @@ public function testListTransfersV213() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - '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", + 'customer_id' => "7b0a0e4e-34af-4b2e-9868-8436d72c1d91", + 'customer_name' => "EpQVqX4KE4B5KRDxSSppVORQLy6PO73cHGKqjz0v27dHE8re", + 'transaction_id' => "0fe93bdb-9a68-410a-b9e2-78b3f50fa776", + 'private_money_id' => "9c2b08b7-2ffa-42f1-a502-657f1226ff80", 'is_modified' => FALSE, - '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" + 'transaction_types' => ["exchange", "topup", "cashback"], + 'next_page_cursor_id' => "fe05e27f-0e6e-4617-b025-a0c5f618db47", + 'prev_page_cursor_id' => "ad5bdb0a-11f3-4dbf-a0d0-ced03b526462", + 'per_page' => 520, + 'transfer_types' => ["cashback", "coupon"], + 'description' => "APBJ7wmgCWNKDP1enxAKZBD2FhNoFZKIbAgSoRCKxxDEWQZO9yz4Mc4BWxPS7UaVHpVi4pZYZOGKLSewvJuaN97ObUNQZ0A0Rwk2Z2omGatD", + 'from' => "2020-07-17T18:33:53.000000Z", + 'to' => "2026-07-08T21:24:56.000000Z" ] ); try { @@ -321,20 +321,20 @@ public function testListTransfersV214() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - '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" + 'shop_name' => "CcJfOMaGd4kHySUJY", + 'customer_id' => "0ddbdf18-57f2-473e-9c4b-fdc9ffeefc34", + 'customer_name' => "UyLazcdaqg9M9b56VUQzIG7Yr7fsBnFuG56tOVY8vi9Z9lrbTGfh4QbdPS2DfLew9jsvLcXjFRqAsdyU0EjzFGdoCEVoN09yrlyTlHcxkp2hdiJWs83eoAqvgg01zZW75gRDgWRTNwobRsB1baR1aePdc9fGHLcwyelAg5Jr7zEeO7nUDqxXj74j6", + 'transaction_id' => "0004ca20-f02e-4eb4-9607-53b3603d0189", + 'private_money_id' => "94554824-f106-4ac1-890c-874fea426456", + 'is_modified' => FALSE, + 'transaction_types' => ["cashback"], + 'next_page_cursor_id' => "06b9a482-cb6b-478a-b9f1-3938e6154807", + 'prev_page_cursor_id' => "9090a091-9022-4e3e-9f51-65c8d9de2657", + 'per_page' => 666, + 'transfer_types' => ["coupon", "topup", "expire", "cashback", "payment", "exchange", "transfer", "campaign"], + 'description' => "Nric3MBQYWsKtvnxoQJLloM94TQVFchkaV", + 'from' => "2021-10-18T03:34:36.000000Z", + 'to' => "2025-10-31T10:58:03.000000Z" ] ); try { @@ -351,21 +351,21 @@ public function testListTransfersV215() $client = $this->newClient(); $request = new Request\ListTransfersV2( [ - '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" + 'shop_id' => "3b3398ee-ef4b-462d-bf95-80c0f39d2edb", + 'shop_name' => "q1JcpZfZUH2UsKCxnRcuSoLNAly4QR5kzfucn7LZFZwhy5RIJGwbFSZ2qU3L9frpqlrETgz3O9wlyQ0TWfR4Gx21z", + 'customer_id' => "2d10321a-084d-4737-9d57-c25b92a2d549", + 'customer_name' => "GDsPsJyAShBlCJPjtVj6RA58jW2j8noWbhryHKQAP2bBeZkmIh2UeN7Z047tEp9MnaMKkPTTOh4KlFXKgt", + 'transaction_id' => "6e7429e9-b6f8-42f3-b1e0-1f0eb0f2c120", + 'private_money_id' => "dec0dc56-7454-41d9-b2f2-eeade81cadc0", + 'is_modified' => FALSE, + 'transaction_types' => ["exchange", "cashback", "expire", "topup"], + 'next_page_cursor_id' => "10b1435a-eab1-4781-a130-e6f49618f5bf", + 'prev_page_cursor_id' => "d5c23d7a-c51c-4126-b4bf-0bacfe0ea1c5", + 'per_page' => 123, + 'transfer_types' => ["coupon", "campaign", "payment", "transfer", "topup", "cashback", "expire"], + 'description' => "hUCHWp85qyAYWUJWst1yIlHOt0XiM6Qkur8SbZd3wcuCesxkTgeUlIAlQvL5t780R8L5VrLxzRQlVu0ZdkmHWdPUiVDqeHPcQVtlOjSB31Mxq8SXpxSHJR", + 'from' => "2022-09-25T21:25:14.000000Z", + 'to' => "2021-07-16T19:53:11.000000Z" ] ); try { diff --git a/tests/ListUserAccountsTest.php b/tests/ListUserAccountsTest.php index 70f8212a..bea6f613 100644 --- a/tests/ListUserAccountsTest.php +++ b/tests/ListUserAccountsTest.php @@ -8,7 +8,7 @@ public function testListUserAccounts0() { $client = $this->newClient(); $request = new Request\ListUserAccounts( - "f7badafa-54a1-4511-b337-e4aa1c1fe652" + "580852da-986e-4146-8a04-b74de803cf9c" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testListUserAccounts1() { $client = $this->newClient(); $request = new Request\ListUserAccounts( - "f7badafa-54a1-4511-b337-e4aa1c1fe652", + "580852da-986e-4146-8a04-b74de803cf9c", [ - 'per_page' => 5145 + 'per_page' => 6774 ] ); try { @@ -41,10 +41,10 @@ public function testListUserAccounts2() { $client = $this->newClient(); $request = new Request\ListUserAccounts( - "f7badafa-54a1-4511-b337-e4aa1c1fe652", + "580852da-986e-4146-8a04-b74de803cf9c", [ - 'page' => 7996, - 'per_page' => 3122 + 'page' => 4049, + 'per_page' => 405 ] ); try { diff --git a/tests/ListWebhooksTest.php b/tests/ListWebhooksTest.php index b626a1f1..200cb776 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' => 4838 + 'per_page' => 3179 ] ); try { @@ -39,8 +39,8 @@ public function testListWebhooks2() $client = $this->newClient(); $request = new Request\ListWebhooks( [ - 'page' => 1316, - 'per_page' => 9778 + 'page' => 6403, + 'per_page' => 6312 ] ); try { diff --git a/tests/PostCreditSessionTest.php b/tests/PostCreditSessionTest.php new file mode 100644 index 00000000..9665b683 --- /dev/null +++ b/tests/PostCreditSessionTest.php @@ -0,0 +1,46 @@ +newClient(); + $request = new Request\PostCreditSession( + "f7badafa-54a1-4511-b337-e4aa1c1fe652", + "7c419418-aa59-4e5c-bbdc-7d8d6bf88c31", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "2024-03-08T03:04:44.000000Z" + ); + 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 testPostCreditSession1() + { + $client = $this->newClient(); + $request = new Request\PostCreditSession( + "f7badafa-54a1-4511-b337-e4aa1c1fe652", + "7c419418-aa59-4e5c-bbdc-7d8d6bf88c31", + "1cca797a-a4ae-4807-a9ad-4bab80f00988", + "2024-03-08T03:04:44.000000Z", + [ + 'request_id' => "cc450cba-668f-4380-854c-2e6dae6d9426" + ] + ); + 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/RefundExternalTransactionTest.php b/tests/RefundExternalTransactionTest.php index 4c0fd7ac..89725353 100644 --- a/tests/RefundExternalTransactionTest.php +++ b/tests/RefundExternalTransactionTest.php @@ -8,7 +8,7 @@ public function testRefundExternalTransaction0() { $client = $this->newClient(); $request = new Request\RefundExternalTransaction( - "cdbd239f-e0ab-44f2-b2db-84dde5c5fec5" + "26621fbf-7522-4d9c-ba53-ba5a348aec47" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testRefundExternalTransaction1() { $client = $this->newClient(); $request = new Request\RefundExternalTransaction( - "cdbd239f-e0ab-44f2-b2db-84dde5c5fec5", + "26621fbf-7522-4d9c-ba53-ba5a348aec47", [ - 'description' => "FyjAKpCpIzZXmsoGSwaJTi7OUK0vKQ13gfO1QSAIUcA7AjSSLuHYzu2Ra1BMEr62gevnEoyfpAANnkoel9aDgdNSfmE5De5bTvMyHpd2S0WD3FaqRKAgoYEGpNOGzwWmNqL0QHxylFWlu94S8FVSDMY5BU7ZXRTf" + 'description' => "JZ1h8km3mkAPAZ0UMnnwlo100h7H4BT2IdLeJZDTCEki4ZW2q7YUbIlt759XkPd0Pd9Lm5F7XmpoqfPmIraGVhsLJiqbQ3MQR9CltXlG6ahNcft22PrlsKWxGtQj4OhVmQAfFvVtR4Fr5En7ms3KrOq6LmEP7tafjyhKgvwh227cUJMuQ1t83oitBAmKCKe" ] ); try { diff --git a/tests/RefundTransactionTest.php b/tests/RefundTransactionTest.php index c882d0fb..ef30de9e 100644 --- a/tests/RefundTransactionTest.php +++ b/tests/RefundTransactionTest.php @@ -8,7 +8,7 @@ public function testRefundTransaction0() { $client = $this->newClient(); $request = new Request\RefundTransaction( - "667f2955-f2d3-432c-b654-f563b2624d26" + "9361b3f2-32b6-44f5-8762-43d5a872b993" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testRefundTransaction1() { $client = $this->newClient(); $request = new Request\RefundTransaction( - "667f2955-f2d3-432c-b654-f563b2624d26", + "9361b3f2-32b6-44f5-8762-43d5a872b993", [ - 'returning_point_expires_at' => "2024-02-23T15:18:38.000000Z" + 'returning_point_expires_at' => "2022-11-17T08:09:54.000000Z" ] ); try { @@ -41,10 +41,10 @@ public function testRefundTransaction2() { $client = $this->newClient(); $request = new Request\RefundTransaction( - "667f2955-f2d3-432c-b654-f563b2624d26", + "9361b3f2-32b6-44f5-8762-43d5a872b993", [ - 'description' => "wfudd", - 'returning_point_expires_at' => "2022-04-23T18:20:52.000000Z" + 'description' => "iycmsaOa8T2aG", + 'returning_point_expires_at' => "2024-08-26T02:53:00.000000Z" ] ); try { diff --git a/tests/RequestUserStatsTest.php b/tests/RequestUserStatsTest.php index efe3a2c9..d14a4c4c 100644 --- a/tests/RequestUserStatsTest.php +++ b/tests/RequestUserStatsTest.php @@ -8,8 +8,8 @@ public function testRequestUserStats0() { $client = $this->newClient(); $request = new Request\RequestUserStats( - "2020-09-08T19:28:18.000000Z", - "2021-02-01T07:15:30.000000Z" + "2024-02-01T13:18:04.000000Z", + "2024-11-06T07:17:09.000000Z" ); try { $response = $client->send($request); diff --git a/tests/ShowTransactionGroupTest.php b/tests/ShowTransactionGroupTest.php new file mode 100644 index 00000000..93f9d7ed --- /dev/null +++ b/tests/ShowTransactionGroupTest.php @@ -0,0 +1,22 @@ +newClient(); + $request = new Request\ShowTransactionGroup( + "0c94c2d7-f495-4c5d-959d-d75a15c697e9" + ); + 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/TerminateUserStatsTest.php b/tests/TerminateUserStatsTest.php index 86c49152..6bff649e 100644 --- a/tests/TerminateUserStatsTest.php +++ b/tests/TerminateUserStatsTest.php @@ -8,7 +8,7 @@ public function testTerminateUserStats0() { $client = $this->newClient(); $request = new Request\TerminateUserStats( - "9e996d8d-a15b-4270-b3a5-c26a074f4830" + "837b7d22-8cf7-472f-8eb1-35ffd4ce46ac" ); try { $response = $client->send($request); diff --git a/tests/UpdateAccountTest.php b/tests/UpdateAccountTest.php index d2f0b75b..12c34436 100644 --- a/tests/UpdateAccountTest.php +++ b/tests/UpdateAccountTest.php @@ -8,7 +8,7 @@ public function testUpdateAccount0() { $client = $this->newClient(); $request = new Request\UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f" + "95c86f58-0405-4529-92d0-94c33ae0c1e2" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testUpdateAccount1() { $client = $this->newClient(); $request = new Request\UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f", + "95c86f58-0405-4529-92d0-94c33ae0c1e2", [ - 'can_transfer_topup' => TRUE + 'can_transfer_topup' => FALSE ] ); try { @@ -41,7 +41,7 @@ public function testUpdateAccount2() { $client = $this->newClient(); $request = new Request\UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f", + "95c86f58-0405-4529-92d0-94c33ae0c1e2", [ 'status' => "pre-closed", 'can_transfer_topup' => TRUE @@ -60,7 +60,7 @@ public function testUpdateAccount3() { $client = $this->newClient(); $request = new Request\UpdateAccount( - "f687016b-d0b3-46f2-8833-e8985291851f", + "95c86f58-0405-4529-92d0-94c33ae0c1e2", [ 'is_suspended' => TRUE, 'status' => "active", diff --git a/tests/UpdateBillTest.php b/tests/UpdateBillTest.php index aaaedaae..7a88dec4 100644 --- a/tests/UpdateBillTest.php +++ b/tests/UpdateBillTest.php @@ -8,7 +8,7 @@ public function testUpdateBill0() { $client = $this->newClient(); $request = new Request\UpdateBill( - "dc8f373f-bb9f-4466-b754-615276c7c142" + "e0f0d313-534b-44c4-9166-3cd3cae8eca8" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testUpdateBill1() { $client = $this->newClient(); $request = new Request\UpdateBill( - "dc8f373f-bb9f-4466-b754-615276c7c142", + "e0f0d313-534b-44c4-9166-3cd3cae8eca8", [ - 'is_disabled' => FALSE + 'is_disabled' => TRUE ] ); try { @@ -41,9 +41,9 @@ public function testUpdateBill2() { $client = $this->newClient(); $request = new Request\UpdateBill( - "dc8f373f-bb9f-4466-b754-615276c7c142", + "e0f0d313-534b-44c4-9166-3cd3cae8eca8", [ - 'description' => "Dusrb62imeaN035TYhQYVT6897JBIT98Ea3vOiHnJbC3Rzx", + 'description' => "9olxtCG8sS34enFyHhIbteE1tQOMttUhD0OiwEvovxL7L6kZ3KaNub1zwaCdHgj8ik3dmsSURUNaSg6OcHEm", 'is_disabled' => FALSE ] ); @@ -60,11 +60,11 @@ public function testUpdateBill3() { $client = $this->newClient(); $request = new Request\UpdateBill( - "dc8f373f-bb9f-4466-b754-615276c7c142", + "e0f0d313-534b-44c4-9166-3cd3cae8eca8", [ - 'amount' => 3143.0, - 'description' => "TRQVbbDGQ3KFvfr7wcTIqfZGa8VmM7LxaafZsEiZ4h1kUtLESZUqCMHUv6WI9WlLqAjFFVtovIA3w7if4YoZJ6xmZ8N4p4uCNZaugRp11iMcrfILoN8ZP7287JaoYb8spv1FcaYx8c7c37K2BoQEo", - 'is_disabled' => FALSE + 'amount' => 9641.0, + 'description' => "QFO3Ox8qDzSQ0YVNC6SfrLsEgbwDrafzykU4qQWwEl9RBh7JkqQ2DDr8e6Qf8fK7SBxethCuCr4dBSWzD3agMTAvZtCmtviHLHOBHo", + 'is_disabled' => TRUE ] ); try { diff --git a/tests/UpdateCampaignTest.php b/tests/UpdateCampaignTest.php index 47426ec0..64f0eeec 100644 --- a/tests/UpdateCampaignTest.php +++ b/tests/UpdateCampaignTest.php @@ -8,9 +8,9 @@ public function testUpdateCampaign0() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"] + 'applicable_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"] ] ); try { @@ -26,10 +26,10 @@ public function testUpdateCampaign1() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'applicable_shop_ids' => ["6315f497-9fb8-4920-84a2-1c4513af3ce8", "25df8399-bbf6-4b47-a6ca-fcc68acaebe8"], - 'name' => "LPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3XGoxNY" + 'applicable_shop_ids' => ["305b93c6-566f-4b74-abc0-30c1d94f968a", "d0542b33-a69d-4bc7-b72b-a30996b2fbf0", "053e3bca-5236-4d10-b0d5-232dec6bc5d7", "2dcd19ea-e1f6-4d73-b87c-cec6aaed660e", "dbb38829-d5b7-4673-8943-b03271bb9998", "e856d3bf-6733-4e87-b041-9ad6f8d37362", "7fab679b-4d7f-47d8-a980-1c8acd5ee476", "5e4ee540-08c8-4bda-8d74-b1f25aca899b", "4e45b4bc-77c9-4cc1-8118-47799f962550"], + 'name' => "B3n1m451mPU8dTD7bnX1r8l3hCw6Snm9mfcT5cLUh34lWYk1AXf6CZiEJmgnIHDOUd6m8hlpqS572AEF2Ig4ikrPHEQKtfhnULfkSB8hVVRhZgs0ShDA1T4kxBhv1AOy0nxwzXXsopchwGQjGjB8p2sVlc1F7AjO7bJtO7Dnnc0m9rCGM5hv" ] ); try { @@ -45,11 +45,11 @@ public function testUpdateCampaign2() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'applicable_shop_ids' => ["769f66a2-cc89-4cf9-bc06-0aae5ea1305a", "4ea2c0a8-7834-4101-807a-fe6cde556322", "8253e658-1d38-4874-8f08-f56cbd327a20"], + 'starts_at' => "2022-08-22T09:34:41.000000Z", + 'name' => "apEcvHpCxJHTvEJuFQdQk10O1BigovU99ROsTZK65zQOhilbvDcAlCpIpPo9knGna2qU0GmaUmeizgJ6BwqETnaq5BggeTTsTdXg3gtX" ] ); try { @@ -65,12 +65,12 @@ public function testUpdateCampaign3() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'applicable_shop_ids' => ["cda9796c-14fb-498d-a138-191390c8df62", "99f2d404-8734-406e-a583-17847600c2da", "97f33acf-2b80-435a-a0f3-6cf2d593f62a", "6872e831-f756-4fd0-aec2-6beac61df8c0", "6b787837-6c69-45bf-9876-8f3a4eb284f0", "0d1530b8-1f2f-4226-abf5-9565ccd4d85e", "d47de725-85b6-44c3-b324-c6769af8d9e3", "594419ba-552b-405c-bb98-b4cc643e7537"], + 'ends_at' => "2021-07-22T16:58:12.000000Z", + 'starts_at' => "2024-07-18T13:18:58.000000Z", + 'name' => "Xf3IHjK0XiCg0zcQRlonr1N4IocuKCcZ1hdXCgyALhLsPZ4xEZBaL9gPoE5PnOxSYIBQUZMwQEKQp536z2WYA1sx132uYplZstFpjBFQy9bZmz7mGiFtXmRSje5IwYSI" ] ); try { @@ -86,13 +86,13 @@ public function testUpdateCampaign4() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'applicable_shop_ids' => ["c7c281c4-b7d2-43d1-a2b8-6c6c505a180c", "1844b33a-3531-4fbe-a62c-9f9f181da9b3"], + 'priority' => 9774, + 'ends_at' => "2021-02-17T21:44:40.000000Z", + 'starts_at' => "2022-03-18T15:50:41.000000Z", + 'name' => "QuvmK2Ptks2ZcRpli1kcYUjdKenDWjLTaaBosz7aBykLG1RzGMmx1hSkje9X0kmePd8GXi22Jw1idAxcQ9RQcA93jzkpVE1oN8GZytUXsp14vePeJl09h1SmSe7z9uXJe9aRBNGFiXbom9IOMRvPLFSPNSfRkv8Et2jCeNHdXqCXUrpWRIEnGneOjH6PTi68jf1Ll0O4t8yu2YY3amcbZRFCGWEFlMAhGqMbfoqHBJla" ] ); try { @@ -108,14 +108,14 @@ public function testUpdateCampaign5() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'applicable_shop_ids' => ["6808440c-93e1-41bc-b2d7-49f455196dfc", "258267d7-6299-460a-8f9c-ae32e6b21ecb", "6a6cbc1c-b2e6-4989-821c-97b2003cdc5f", "19793628-3ce9-451c-a582-a1b4fcdf8904", "a7d44f49-f43e-4941-a3ac-d5f749b99851", "29a5e7ae-c66a-4895-800c-63f5483d96c6", "e68795d7-25f8-42b2-abbe-dccea39e0abf"], + 'event' => "payment", + 'priority' => 3933, + 'ends_at' => "2026-02-11T14:15:13.000000Z", + 'starts_at' => "2021-04-08T18:51:52.000000Z", + 'name' => "m3gWQVGMbEKu4AfuwweTMrw4f2dzO7lqy4kEKJ1Q7c8C0SZpOWKljojyXNa" ] ); try { @@ -131,15 +131,15 @@ public function testUpdateCampaign6() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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", + 'applicable_shop_ids' => ["24e76f15-4aad-471d-b363-9d7728d26c11", "4cec2cbf-f0da-4de0-aad7-56920b2813fb", "f9daf675-80c2-473c-a5f3-9f10e2c6623f", "95ac8879-2446-4e75-a3b4-9e7394c945ae", "0e14e606-e557-4e00-8e4b-a9c6a1cc74ca"], + 'description' => "nLD7m3pQpjDhF5ByJUZoKtqULctVH6JYk9cBHdXfv4mxi0ybLSzTGhHvgOYEOxJ03xV3nSGPvtC19a5RpyBdhfDtmpMgxIW5ljI6yfgW8zOoaul3ISoLlGYqCoXoGAustVKiyGKg6I2c4vjJ0uuFNk5xEatUCGYnUIhqA", 'event' => "external-transaction", - 'priority' => 8374, - 'ends_at' => "2023-11-01T17:07:57.000000Z", - 'starts_at' => "2020-02-12T19:25:41.000000Z", - 'name' => "gOCupwcIPxBzhbkfELKrUPd9GpW6Q92PXWpLmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqE" + 'priority' => 2686, + 'ends_at' => "2023-10-19T05:59:01.000000Z", + 'starts_at' => "2025-04-24T00:37:29.000000Z", + 'name' => "mUocNLmlkEs1s3oajWUDkbVb94dhcQmTjATi4FvTByqrSIzi26MGgpQ9DKPsTX2x6llLqyqxLBzmQKSHklP2GNjfKFk3xSPN2EauZcekm4uUHwCvLyAybYYI1PTnYt6AX3ZMraJiLHRNzuStDZHp5MvhzfbMCo9q" ] ); try { @@ -155,16 +155,16 @@ public function testUpdateCampaign7() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'applicable_shop_ids' => ["19b86012-79f9-4661-81d2-ddf800c07ff4"], + 'status' => "enabled", + 'description' => "ZqgB5ft0k4jfS4r5kfrLJkZytv5gO2QqNTMBVQz08laq2biuqoxBaoCNpyYWsiSLe8XgZiLcB9lkuwUmt5gGSX2SbBRPaY", + 'event' => "payment", + 'priority' => 2158, + 'ends_at' => "2020-07-17T13:29:12.000000Z", + 'starts_at' => "2021-10-10T13:44:53.000000Z", + 'name' => "kGZMrt25VWYHR7PmuYOuy85eAINi4DCh9E1piomvY0y0iLigYmahsEfLajE38CSizXaYXCbSM5b6xxCi9aS7pUn8sHDE4F3kcf0hrQ4a3rPgThS8KkZCOZQxeSP2z9qxNvFrLUebeM3qu8knhRZPaevJazOcUuFHzOggogIb0heOl2hQPfOiPoRxRiCop5Q0A9gBKU33EhyGU9Sc7T" ] ); try { @@ -180,17 +180,17 @@ public function testUpdateCampaign8() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => "NmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyT", - 'event' => "topup", - 'priority' => 8359, - 'ends_at' => "2025-03-06T22:13:05.000000Z", - 'starts_at' => "2024-06-16T11:49:05.000000Z", - 'name' => "FexxHoOsY3XmfSCMMI0hPIOcfptkBjffHuYKUEJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuU" + 'applicable_shop_ids' => ["14173218-5ff0-4fde-a826-b40c783793fc", "50f9ac27-ca55-4e19-83c6-6baee1503dba", "d93de7a8-c73f-4c0e-91c0-0e4f9174570a", "2bba0a92-31a7-42ec-9e02-495f37f3e40e", "44dae595-16e8-4c82-8ac3-cb9dd3a19800", "071dad93-85ff-4ffa-9388-94495824b92e", "6eb3a910-9607-4c02-b533-bd9dbba7524c", "e2313334-a605-4f6f-96a5-a9c206cf879f"], + 'point_expires_at' => "2020-05-21T04:14:40.000000Z", + 'status' => "disabled", + 'description' => "QKjjVXdg6wCnP4F0PUy8JyZq3ofPUU0rY2rRd10bnDEPKoSGRnM40Adb2lsHFBNfL0ieognilvSR4pMoCwkxpSpqKLDrvgRvBVvAYQP0NP5o8oIbQ6bcvTH9KRHlq0wqM01L", + 'event' => "payment", + 'priority' => 3832, + 'ends_at' => "2023-04-08T05:45:58.000000Z", + 'starts_at' => "2020-01-06T22:20:15.000000Z", + 'name' => "cYJN00R6J1knyJeLDqePaGS57qQUn9QotexnhecBro7jHBJHSTWFK0aJRYTfxgM2RajM6sQRgc1VEyXHM" ] ); try { @@ -206,18 +206,18 @@ public function testUpdateCampaign9() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => "7LVnhxTyA", + 'applicable_shop_ids' => ["71a9edc2-8b9a-4999-972c-bf6a51fc4cb8", "5be83b26-d80d-4325-af74-4693279c11c5", "5d4e6e88-d6a3-49af-8196-7c63f6b9dd5e", "f399ffa1-7446-4eaa-b9b5-2f12618b356f", "af157eef-f058-4def-a517-8f02bea15958", "20581ffd-0375-487a-9d0e-930bb34e88fc", "0760bb6c-0b99-49d2-bb2d-90707de8c69c", "22987843-7379-40e0-836f-78aab5e7a21e", "cd3f77da-8d9c-4a6f-880f-5787ae4b322c"], + 'point_expires_in_days' => 2146, + 'point_expires_at' => "2023-11-09T08:31:16.000000Z", + 'status' => "enabled", + 'description' => "bTmVX0XqqL2DDCdNGv9QaNMmxX2S2fPh6fy135I5DGGggnvkdWrHaspAw5Vcp7CE78JSe44PvWgrDoffEic8syvxPXUni2oM8QHA7lWY5GLHqITj0UgJwxmfaF0gGfgNlG67XOfGi887nNv1eh26ZZWkeJQym7n7CGmjd25iFSdn", 'event' => "topup", - 'priority' => 382, - 'ends_at' => "2022-09-09T03:06:11.000000Z", - 'starts_at' => "2023-12-24T09:05:30.000000Z", - 'name' => "fZDkQ2r2xXuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42w" + 'priority' => 8963, + 'ends_at' => "2021-01-03T10:29:43.000000Z", + 'starts_at' => "2025-02-11T10:27:19.000000Z", + 'name' => "rQSPU5tCjVy8COfDZrZRHs0hjVGtY7fDHExM6iUcBW9LDUejJe4" ] ); try { @@ -233,19 +233,19 @@ public function testUpdateCampaign10() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => 4902, - 'point_expires_at' => "2025-01-03T12:57:34.000000Z", - 'status' => "enabled", - 'description' => "ftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM0", + 'applicable_shop_ids' => ["89f82ad4-ac08-4d05-82c6-ff8f702cd692", "38abf2eb-16e3-45ca-81f9-7ad084671d39"], + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 8592, + 'point_expires_at' => "2024-03-15T15:10:36.000000Z", + 'status' => "disabled", + 'description' => "R5fJ1SCFuFJ", 'event' => "external-transaction", - 'priority' => 6836, - 'ends_at' => "2024-01-01T04:51:29.000000Z", - 'starts_at' => "2023-12-19T12:56:00.000000Z", - 'name' => "SYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBo" + 'priority' => 7006, + 'ends_at' => "2021-08-30T22:40:29.000000Z", + 'starts_at' => "2021-08-20T01:12:46.000000Z", + 'name' => "VqCc62CsLVYKPyOwySSjaFxy00IGCXmzsObY8JjUm176PqMxSejYJwKQkQhcSsOlDNZZsSWHBkBrsiXhCnZzamORmWcssL2FF3HAzhtt18u7MooUueVWo8T9dRNvfu3qkwBDNVzugQpgEVipsMl1o" ] ); try { @@ -261,20 +261,20 @@ public function testUpdateCampaign11() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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", + 'applicable_shop_ids' => ["4a47d970-307e-4fdf-9395-965c01b38253", "463dd6b6-aafb-4610-981d-555690eb0ecc"], + 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 3124, - 'point_expires_at' => "2022-02-25T19:36:20.000000Z", + 'point_expires_in_days' => 3093, + 'point_expires_at' => "2025-03-21T10:54:51.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" + 'description' => "vfTPgZQoGXLb8hT5vzbbFysLVW03Q8sgkwbt7bycdIa6s2OiS448zYYuS", + 'event' => "payment", + 'priority' => 6503, + 'ends_at' => "2025-06-19T20:09:24.000000Z", + 'starts_at' => "2021-10-24T15:21:20.000000Z", + 'name' => "ThqkxWuN4OkYmUnkAFHrW518DEhvGfJFhBLPIWgGXu2FRRBCtapsc2OJEtIYHTkPMCnHWRhGK3T2O4zTKZrpJNYtglnu99Onqaf5iTxaKHt4HXxpMz5eg3TFJnOMXlccrSM4NeRkShSKYnhr8JJ6rqJ58uKWhjJEVfg4kmmGr3fEZnBlmzkrtoyKm38BDyuj1U15iB0VVURHNCTBSkvCAJURQ0xc8v3X" ] ); try { @@ -290,9 +290,9 @@ public function testUpdateCampaign12() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"], + 'applicable_shop_ids' => ["44752d7f-9eef-4cf8-bbce-2baa73e14b94", "b00e6a24-c196-451f-9942-9b204bda5afa", "572568d1-0946-4432-87b6-8aaef1d25352", "1945e599-0ad2-47ee-8dcc-c4cb6c691a90", "320852cd-66b2-4ff6-a140-7d2ad8dff86a", "d5bf3048-7e7a-41f5-a0fe-1fe8280d873d", "6e813ce0-718f-4beb-8daf-d53eb47aac5e", "922a227d-520b-4f1d-b8af-723cc0de9e6d"], '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] @@ -301,20 +301,18 @@ public function testUpdateCampaign12() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 8017, - 'point_expires_at' => "2024-12-28T11:15:16.000000Z", + 'subject' => "all", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 1551, + 'point_expires_at' => "2023-06-26T03:18:17.000000Z", 'status' => "disabled", - 'description' => "b3qItRRs3F", - 'event' => "topup", - 'priority' => 3894, - 'ends_at' => "2021-08-11T07:12:44.000000Z", - 'starts_at' => "2025-04-30T13:59:29.000000Z", - 'name' => "lrydgPmYNQmdCCSHSb7Peq" + 'description' => "MUBMqpZFx6CyPOvMtoUIDYTTb9YLUK2ZY6omFZc6c5lAiaH7ksthq2qt1fISbJLQ2IGy7A4O5EuFDi3ep7E8KTwqzGZlqsrJTtHeL1jl3TaroJ97KS7PIYmqHtFEvZxOLgNEFPzTNAeMR2CvVgTRCY2rEPprVjpNeaYJXDFnN5l443TmO", + 'event' => "external-transaction", + 'priority' => 7286, + 'ends_at' => "2022-05-04T06:14:41.000000Z", + 'starts_at' => "2022-10-04T09:18:04.000000Z", + 'name' => "fQxkSjhKrHXePF1aNsQcGEPe2hgvk3yuDeTC8XzXR9jncya31KgghsgYe3TbLJN21a8hZtm5so8Mz8sE9" ] ); try { @@ -330,35 +328,28 @@ public function testUpdateCampaign13() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'applicable_shop_ids' => ["24f2600a-f196-41c7-894e-454ef835fd9d", "0ecc5198-c71c-4879-aec7-a0ab375b09fb", "c7c6212a-07ad-484d-b806-af8a3c10f09a"], + 'applicable_shop_ids' => ["39732417-56af-40c4-8306-716d049130c8", "7a6a2ae4-6489-49de-a3f5-896b65717a5e", "b4cfd2d6-1e5f-4c9d-a499-21fc2d9b7f1d", "80feea5b-8a25-42e8-a461-bd6c31ddaa51", "48a214ad-3b85-4f09-b19f-270459d884d2", "f7490e50-ae79-4b54-a301-d7f6e6d4a447"], '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' => 3155, - 'point_expires_at' => "2022-06-03T04:33:51.000000Z", + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 1927, + 'point_expires_at' => "2024-06-10T18:02:56.000000Z", 'status' => "disabled", - 'description' => "poUBZS7wM2sjFT50Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDmWqMmM9IYmurAkMd4wD", - 'event' => "payment", - 'priority' => 6368, - 'ends_at' => "2023-01-11T13:07:39.000000Z", - 'starts_at' => "2025-02-15T11:38:55.000000Z", - 'name' => "01hvmpIXnG4" + 'description' => "eRbQcNODGa3IhebkRxi8kuGoSk8mmCPAG5TaOSJrFwT6IMSTQQD3aZSLuV5KvsCMKR5EbTWV4WWsRyRXgRYVg4CYuzSBW4stkoPc7UXRyRiV8Pax53IDmwuQOCWjbIPmFGWkh7DM", + 'event' => "external-transaction", + 'priority' => 4015, + 'ends_at' => "2020-07-01T14:25:53.000000Z", + 'starts_at' => "2025-11-15T09:08:00.000000Z", + 'name' => "SWi3zPKlO0ubMaaWt2sfRwBothNvTY3vFr4ELRXyBW70oqJ1JP1EYwzYF5YE8jQgUzmyBkd9RsSiJlXzLN5312aQsa3khCQuI0KxC45PIbfMDQsr0pTvhXVGg9hnQlyenzuwrO3gGQmGe09eXlKtPgqSA0ERaGz46vIiA4hbe1yI3CGp5lj6m" ] ); try { @@ -374,35 +365,32 @@ public function testUpdateCampaign14() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"], + 'applicable_shop_ids' => ["a0387035-8666-4367-a6aa-a24f71c0d38e", "ae7548c3-d475-4270-b7e0-b163fad779a1", "427261c9-60e0-4f50-97f8-585dcc7ee919", "e8bf6c2f-c742-40fa-a82a-a715800012e2", "42dcec8b-f8eb-4212-a645-ab21cfc2194c", "c4c6fb97-0b2a-4bcb-9b04-c172b6098109", "e191edbf-93d5-46d0-a309-58648b17d339", "f9ca2547-3bfd-45fc-b0d7-88e02c071483", "434950b6-7e19-428d-bc5f-901c2273ded1"], '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] ], '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' => "money", + 'subject' => "all", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 2984, - 'point_expires_at' => "2025-07-30T03:49:35.000000Z", + 'point_expires_in_days' => 1456, + 'point_expires_at' => "2023-12-01T00:54:48.000000Z", 'status' => "disabled", - 'description' => "arYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnOvPtZOQ7wRQgMz", - 'event' => "topup", - 'priority' => 9169, - 'ends_at' => "2021-06-17T16:47:19.000000Z", - 'starts_at' => "2025-08-06T10:46:43.000000Z", - 'name' => "Yhb78oA" + 'description' => "LmGFM1PrngLs4Zq6rjFKNHUPj8OaHLD3inc4333SWlp4s7jMjS5PtJzYsdA5qhl1QGqEwjgkrGn0uAn0iqI2b5rxtzGOZhKJMKwzvYsbBzTdo6bpA", + 'event' => "payment", + 'priority' => 227, + 'ends_at' => "2024-06-25T16:05:18.000000Z", + 'starts_at' => "2024-05-08T08:28:17.000000Z", + 'name' => "WNJrNTsv2Llex1ejGQ2ugzGxu81Sx50Yf2M71M8zENOSGlzUlDTz33P2rJ14YHcAJKWHCf11oIN1lhxfCtQoWt3KCnkWzy38cC0E7gsSEITDei3yOkB642y5M6ZGKLNmOSXPLkVgGHidiNxSMbU65iFGAAyuGpPep5MlLDDmy5H5WNxLWXFOkEFZiHMkNkDC4XjAgnNgPyTasq1IFexxHoOsY3Xmf" ] ); try { @@ -418,18 +406,25 @@ public function testUpdateCampaign15() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'applicable_shop_ids' => ["83e7edcc-a993-4d27-a193-e4c5dcec5439"], - 'applicable_days_of_week' => [0, 0, 5, 2, 4], + 'applicable_shop_ids' => ["62c3088f-812b-4c43-8dcd-8ddb33cdbec0", "3620a8c9-ad07-4d30-9c05-39e86a024150", "9bad328a-f9fb-463c-89cf-9163b0f7f8e6", "3b2a8770-ee1f-4aa7-ba74-4487b3b3dfeb"], + 'applicable_days_of_week' => [2, 0, 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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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] @@ -438,21 +433,18 @@ 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' => FALSE, - 'point_expires_in_days' => 8788, - 'point_expires_at' => "2021-11-05T04:16:46.000000Z", + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3930, + 'point_expires_at' => "2024-02-23T15:10:03.000000Z", 'status' => "enabled", - 'description' => "ZEncCQxjIhrUeBMFsGSoFMs14cvovqZ6GQpcxkL1iWim0Xpy9XRR4FHqayBd9Y6naDnC", + 'description' => "EJ4zrJepcLNjePvmbsJ6aAodX3lOsSzeTfXuUhrzyKZN2IpvZDbUGNbf92zGejiy7b3srgm7LVnhxTyAZfZDkQ", 'event' => "external-transaction", - 'priority' => 3297, - 'ends_at' => "2020-02-11T19:45:46.000000Z", - 'starts_at' => "2021-05-18T05:57:05.000000Z", - 'name' => "IshUK5sOcLMoSdluvLDw0rIOalhSCHrt5J1YKxmhpIQaAHuF1XqBsQEc2YHzb0v51JNexx20BlobdlTY6n3LbK6Vu4m4rhE7PkEzPYVXfzwtjxI8n9Z0CQKMUdsLKbKLcaV6nH18WcZidvZ55mAgOE16AnmYbzCLHYWconVaiJFwoOHJhs1D1kk2Z65xpUZ28FCmVx3QLXn5K0ujHfTEebumDwnUvtTuwE1P6w3jvuc6WVynWZlMwTGtLKHN" + 'priority' => 4402, + 'ends_at' => "2022-12-07T15:32:02.000000Z", + 'starts_at' => "2020-12-27T04:06:10.000000Z", + 'name' => "XuIalmcupP8PaFubqXmo0h47ayHi8sXxsnC42wCpyAiBnUBLAV97YftKTMpHhWMUK3SCmPb9BXoLZ7wKHtX23HwTLkUG7zxtQPL0ebUOhv3B3t2DzpE8reI7vFyo7eM4dNHW25nKJYDvzM004QSYdkecoFJzr3brOZ5f3RQvkhtySJKYRUQ3NzIgBoxko0Q38viglT3j7uK9FEO8wpTMbUo34OhjcbIFy00bHfPtADraHJBywFUVQhJIv" ] ); try { @@ -468,14 +460,20 @@ public function testUpdateCampaign16() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["16f1b9d7-c2a7-45a6-8d19-923ed49878f0", "9e77c511-cfc0-4c11-838d-8c0cf7c000d8", "5c1f80cc-c305-4f2d-b0b2-dbfd2378afe7", "534c7e55-906e-4388-b81a-2a386cd8e9ef"], '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' => [6, 0, 1, 6, 5, 1], + 'applicable_days_of_week' => [1, 2, 3, 1, 3, 1], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -494,18 +492,23 @@ public function testUpdateCampaign16() , ["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' => 3901, - 'point_expires_at' => "2021-05-05T20:45:37.000000Z", + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 302, + 'point_expires_at' => "2023-05-11T13:05:35.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" + 'description' => "v5tebk72bnq5V1PYuyQsrCeZvlknHwyCYeoTGD6IVelM1xkQHIURZCUVG9E4BcH9vh8Qcd9Qr1jGxJh75seT2MlMasdJCSgZ4nn16A08HMuzRKVjoY87iExdEHTNDtgEpdMlXJAKinvVKW5jNBic0lbP5i9pPDb3qItRRs3FY", + 'event' => "external-transaction", + 'priority' => 5996, + 'ends_at' => "2025-04-30T13:59:29.000000Z", + 'starts_at' => "2022-05-24T04:12:05.000000Z", + 'name' => "lrydgPmYNQmdCCSH" ] ); try { @@ -521,14 +524,15 @@ public function testUpdateCampaign17() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["aa75c0d3-b225-4fe2-9cb7-bcd00644e519", "345e98e5-d687-497d-b162-600acca8f196", "551fe1c7-c889-444e-8e9d-5198440cc71c", "05250879-b92e-44c7-abfb-212ac77707ad", "b5db784d-13f8-4406-8a9a-8e646d5f0af7"], + 'minimum_number_of_products' => 6634, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] + , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [3, 0, 0, 6, 4], + 'applicable_days_of_week' => [2, 0, 5, 2, 2, 3, 1, 3], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -537,35 +541,31 @@ public function testUpdateCampaign17() , ["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' => FALSE, - '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" + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 8519, + 'point_expires_at' => "2022-12-07T21:04:20.000000Z", + 'status' => "disabled", + 'description' => "0Pr6H3Lr5Vqadi7ItSc4oUdi9EYp8oXZ4d1DUqCUDm", + 'event' => "payment", + 'priority' => 3825, + 'ends_at' => "2021-08-15T13:24:55.000000Z", + 'starts_at' => "2020-05-17T11:48:24.000000Z", + 'name' => "mM9IYmurAkMd4wDsAO01hvmpIXnG4Vdq7gNAtqrqKm6uKQNQH3PDcRwUCecSBjOParYUfATbiJrkxUEwT3M91XjHrTG7fMCl81IJPQuSHXTmEReE1YV9ebnUBpzD7d9DsGnO" ] ); try { @@ -581,11 +581,11 @@ public function testUpdateCampaign18() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["1fabf200-1250-4374-9a4f-c31ce35ed6d1", "c00754b7-baf7-4fd2-9da5-b1a5d4d415a2", "dd2d0f2a-3b2a-40d1-a796-4c2953449a28", "d5b939cd-2f7a-460b-ac45-e3d1affeb905", "e2bf9b97-5193-4006-9968-ebe2b8390816", "1d20b0ae-d5b7-4f23-bfaa-d0a1a9c6178b", "5ca17638-c5ef-4ac1-b0cc-a9939647cd27"], + 'minimum_number_of_amount' => 660, + 'minimum_number_of_products' => 9414, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -595,30 +595,40 @@ public function testUpdateCampaign18() , ["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, 6, 2, 4, 5, 3, 1, 4, 6], + '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_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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 5299, - 'point_expires_at' => "2023-09-11T03:17:07.000000Z", + 'subject' => "all", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 8788, + 'point_expires_at' => "2021-11-05T04:16:46.000000Z", 'status' => "enabled", - 'description' => "vDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2IC", - 'event' => "payment", - 'priority' => 870, - 'ends_at' => "2021-05-21T07:42:04.000000Z", - 'starts_at' => "2020-07-09T23:15:24.000000Z", - 'name' => "qeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnX" + '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 { @@ -634,34 +644,17 @@ public function testUpdateCampaign19() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_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"], + 'minimum_number_for_combination_purchase' => 109, + 'minimum_number_of_amount' => 7103, + 'minimum_number_of_products' => 8993, '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, 2, 6, 2, 1, 0, 3, 0, 5, 3], + 'applicable_days_of_week' => [6, 5, 1, 1, 5, 4, 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_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] @@ -671,24 +664,21 @@ public function testUpdateCampaign19() , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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' => 8782, - 'point_expires_at' => "2022-12-12T17:22:30.000000Z", - 'status' => "disabled", - 'description' => "PZEq0xgguEtAXJ6WozfUGo1oVRA1PV2JD5SjzUvS2Jlq6P8", + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 143, + 'point_expires_at' => "2024-06-13T05:35:58.000000Z", + 'status' => "enabled", + 'description' => "RGGhLK4md8CvDRXJmyMUq3nONdNUldEzZzYqTFGHLldYwHPZ5GyoYYcgPPK3Dchqik562nQJ7JN9nE", 'event' => "payment", - 'priority' => 9887, - 'ends_at' => "2025-07-16T04:08:45.000000Z", - 'starts_at' => "2020-12-17T16:16:41.000000Z", - 'name' => "1PRe6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rg" + 'priority' => 1829, + 'ends_at' => "2024-09-06T23:44:27.000000Z", + 'starts_at' => "2023-12-27T09:20:04.000000Z", + 'name' => "H9ZULXMKOjFu2fGiShoySflnRPKvTH4Qb4HK1DE5zpHipftSBuuUyajKD4UG1MO97nrik73QyiaNKms0iFYGrWxxlKwOlCibtq2e0nqtXLNITG9Gffmmox8hwqx5x7fQZGPMXFo6oIvZGxUJAAeHeUyg78eCpqwfbVaGI8MUg6pkTJeF4LA5VGWmlO55tLRhXfPthFrTbvP80JDs4TLAvvWwguBec41EmwzzFrg" ] ); try { @@ -704,28 +694,34 @@ public function testUpdateCampaign20() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["9ff45d27-a2b7-4d30-b97c-931414a18221", "7e1f6323-f9be-4ae1-9db7-64dbd5ea71a1", "297f62d0-cf39-4081-8b74-40aa1d9bfed4", "3fa0f2dd-605b-4112-abc8-e8f2599a583a"], + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 9211, + 'minimum_number_of_amount' => 6088, + 'minimum_number_of_products' => 7993, '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' => [5], + 'applicable_days_of_week' => [6, 1, 3, 3, 0, 2, 4, 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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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] @@ -734,18 +730,21 @@ 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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 7427, - 'point_expires_at' => "2020-06-16T07:48:24.000000Z", - 'status' => "enabled", - 'description' => "eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ93Y52C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl", - 'event' => "payment", - 'priority' => 8169, - 'ends_at' => "2022-05-03T17:23:28.000000Z", - 'starts_at' => "2021-03-10T18:10:35.000000Z", - 'name' => "UkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag7kVTYLZtjqA6blCNXCxB23NKDv8dBki6rCZ5MRu3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9oHgjnPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZ" + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 4466, + 'point_expires_at' => "2022-10-17T16:53:13.000000Z", + 'status' => "disabled", + 'description' => "ohrRiHbftN77E9sKP2LWTHQkvbYQTkmfSmGSFmTTeLGAy7h6m0YyagUC0Ij3N9K7EVH4f0I", + 'event' => "topup", + 'priority' => 1848, + 'ends_at' => "2023-01-04T23:30:56.000000Z", + 'starts_at' => "2021-12-25T10:43:54.000000Z", + 'name' => "I5hMMqGagepFcb0C3pMehBLw9uhZslxpk65zsLMOaWLvqiZty5Zp232IvDDPPtMusem1WSPOdAkWLCHhP7q7jyjEo8V3Di9DtzhzAGKUtsDdhPal5eEvQkTNVI1DbDv2ICSa1fLqeRzwnNnU8Hy7seU6TPp7YTcvCbmuWQvyjmdKhWFzroFJfg0zCih9qHu842U5SnXNqipKVsIIUjVYx3ZiMVPZEq0" ] ); try { @@ -761,51 +760,48 @@ public function testUpdateCampaign21() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => 9817, - 'minimum_number_of_amount' => 4874, - 'minimum_number_of_products' => 4078, + 'applicable_shop_ids' => ["fbf793e7-2f06-44fb-aa67-0bf50b1dd945", "735c4cba-ce74-4994-81be-32581ddc2aca", "94a59936-63d7-446f-bae6-cca7464fd155", "60071621-bd07-4ac7-afb1-ed93c3e864ef", "33fbb956-a081-42d2-bac1-38a21debb7b1", "8ea3b850-bc3a-45d6-b28c-14cad20e0026", "741621a0-e044-4423-96b5-e73e029cf9d3", "5541d022-936a-40fa-9502-e4766e31c1e0", "11418cd3-2db2-4edf-8aaf-950aabd4f5a8"], + 'max_point_amount' => 8887, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 5433, + 'minimum_number_of_amount' => 3770, + 'minimum_number_of_products' => 9888, '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, 3, 6, 4], + 'applicable_days_of_week' => [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] - , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 7978, - 'point_expires_at' => "2021-11-14T05:12:08.000000Z", - 'status' => "disabled", - 'description' => "LCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa", - 'event' => "topup", - 'priority' => 2431, - 'ends_at' => "2021-04-06T18:22:39.000000Z", - 'starts_at' => "2023-08-29T19:33:07.000000Z", - 'name' => "NDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31HpRLtjhMxgRT9FEddBtVan5HyW6Uan9MoYMbeeBKUXDDy014vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369wBiPR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4" + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 3483, + 'point_expires_at' => "2020-09-05T19:14:54.000000Z", + 'status' => "enabled", + 'description' => "Re6ex8zQnoMXPxIs0d6X24reGHeQvAPqGMsA1rgfPu4olvC1KDDE1G2mGU9YeDH5Tysjz5v4HW6eqkSknjWS4aW80Xp5YCo9TXEMx6Q3N4lydCpBzThmgOIjIatpE7508LaYMNkxpSQqkfWLu8WbqqwjfwNPVeBo88egFulBO0tWJ9", + 'event' => "payment", + 'priority' => 4703, + 'ends_at' => "2023-09-04T06:29:07.000000Z", + 'starts_at' => "2022-06-24T15:54:29.000000Z", + 'name' => "2C590AS7UiB0DiDGREmImyJDbbC2wEGBfcAGc0EsTxqnb80BRFYcLTC4xCABLekowD1pN0MSUSSu62wEl3iPUkIv4a2NsBAg7OoWmbOWXvcqkH6OCG8bjnFs6Wxag" ] ); try { @@ -821,15 +817,15 @@ public function testUpdateCampaign22() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'applicable_shop_ids' => ["be22404f-c66b-4f57-9a04-fce87dcf25c8", "f82aba7b-72c6-4f20-b8ac-a0338250e150"], - 'max_total_point_amount' => 7351, - 'max_point_amount' => 5636, + 'applicable_shop_ids' => ["0a6d4740-e76b-4406-968c-30d47806258b", "31f13282-4659-4fcc-85da-f1748eaf616a", "58808f90-8ef1-460f-a02e-384186b325b6", "0a758ae2-fd6c-4c95-9e43-a0ceb14e4e2d", "2114fb2b-fc58-488d-8317-d7aa3039c402", "d9e90e2c-1178-4689-8c42-5624c347c9b2", "5bd55ca9-bc33-4c4e-8b02-3e86c59f9b44", "bbba38ad-d2fc-4e19-b625-35170c206705"], + 'max_total_point_amount' => 6073, + 'max_point_amount' => 7932, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 8999, - 'minimum_number_of_amount' => 7918, - 'minimum_number_of_products' => 1145, + 'minimum_number_for_combination_purchase' => 9283, + 'minimum_number_of_amount' => 1670, + 'minimum_number_of_products' => 4844, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -841,41 +837,35 @@ public function testUpdateCampaign22() , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] ], - 'applicable_days_of_week' => [1, 5, 1, 4, 3, 5, 2, 4], + 'applicable_days_of_week' => [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_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' => "money", - 'is_exclusive' => TRUE, - 'point_expires_in_days' => 7879, - 'point_expires_at' => "2023-03-28T08:28:08.000000Z", + 'subject' => "all", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 7454, + 'point_expires_at' => "2026-04-24T03:23:33.000000Z", 'status' => "disabled", - 'description' => "b7w6ZClkoqVajvuG5cGcBP5wA9GwSB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jN", - 'event' => "payment", - 'priority' => 89, - 'ends_at' => "2025-04-30T06:25:22.000000Z", - 'starts_at' => "2021-08-20T19:26:44.000000Z", - 'name' => "CMs9TezTj3A085y5hWQ3gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1m" + 'description' => "u3n3kWR611LhXRF1WjDXemYssWVQAa0S9OWEqIPoWhsZ81p0D8THD4dpuhxNvhxjPfdLCMpGSOhV764tKT9", + 'event' => "topup", + 'priority' => 1853, + 'ends_at' => "2021-02-22T22:33:19.000000Z", + 'starts_at' => "2022-06-25T23:11:28.000000Z", + 'name' => "nPne51YZOU0zGq4PpZBc0rJPOstD7C9IM7suB5w40dZFTsuKZGsFElmQpA4RSTaTlLaqlkU49OXmcM1eYLCIvDzYzwAtEksQWSl6Am3gCBrhM35EfmrtOFWMml5EKRiDsWg9ZcujQMFmb4vZ2HzNm8wdK6sB9HsuClaKx3AfzVa9lboQsNDBH1uzKMqlEF94aThPURq2Q4ZM2ZH2d8EggWOOiiO67HWQCePWkLnY7y5P2vTc2kTDF85U9g31Hp" ] ); try { @@ -891,17 +881,17 @@ public function testUpdateCampaign23() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["14fab21f-5252-41cc-9409-6a830e838615", "bf9ab51a-61f4-4f9f-ad6a-27685959c7cd", "8316cdf8-880a-4de7-818c-727ec5a5b552", "c12f315c-bc54-4a39-86c5-c3e409dd5405", "bcf79c64-2391-4f42-b42d-c4d665ad3661", "73bc71ee-3788-4689-ba1c-e993505982a9", "34fbd791-4b03-4335-bec8-ec0761a1b412", "10f9c25d-4af9-4c57-809b-a99fe5c98d02"], 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 2493, - 'max_point_amount' => 4350, + 'max_total_point_amount' => 3414, + 'max_point_amount' => 864, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 5841, - 'minimum_number_of_amount' => 8713, - 'minimum_number_of_products' => 9532, + 'minimum_number_for_combination_purchase' => 4253, + 'minimum_number_of_amount' => 8092, + 'minimum_number_of_products' => 1122, 'applicable_time_ranges' => [["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] , ["from" => "12:00", "to" => "23:59"] @@ -910,34 +900,42 @@ public function testUpdateCampaign23() , ["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, 0, 1], + 'applicable_days_of_week' => [1, 5, 1, 2, 3, 3, 0, 5, 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_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] ], 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 4824, - 'point_expires_at' => "2022-07-02T15:24:10.000000Z", - 'status' => "disabled", - 'description' => "WLcKpd2P335Nv6jpCTg7cImjgcPmkAEumRe3a", - 'event' => "payment", - 'priority' => 3464, - 'ends_at' => "2023-06-15T15:39:22.000000Z", - 'starts_at' => "2020-06-03T07:16:58.000000Z", - 'name' => "g8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyBqIIySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkM" + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 9982, + 'point_expires_at' => "2021-08-01T07:54:25.000000Z", + 'status' => "enabled", + 'description' => "4vqgIch5W6XuTL0vlIdvdIMbz7wUi6BXoKUl0tR07369", + 'event' => "external-transaction", + 'priority' => 1288, + 'ends_at' => "2024-10-17T01:59:24.000000Z", + 'starts_at' => "2025-12-12T01:11:30.000000Z", + 'name' => "PR32MXZafz3jffpT8lgGERnFdcWhSdaJfJ60D0H2T0aKhnL3FlnAD82QrpYaKuslNraOesyAiawWiyWkSV3bs4OkWhHFx3P67yxFmxWAZt" ] ); try { @@ -953,27 +951,39 @@ public function testUpdateCampaign24() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["5eca11d3-a81d-4f6f-a9d6-d972d5532ac9", "03143f5d-1ec6-436e-bb18-f42be89eed7f", "c3345d03-2062-4137-be5d-8ca303bb3b77", "89e58c3a-8805-40b6-a7da-362b5f1d9943", "fd1e562e-2418-48fe-ac6b-c33f86e5578d", "9d990def-80f1-4056-a16a-503f645c65af"], 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 2604, - 'max_point_amount' => 9589, + 'max_total_point_amount' => 3841, + 'max_point_amount' => 5495, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 3675, - 'minimum_number_of_amount' => 4042, - 'minimum_number_of_products' => 7761, + 'minimum_number_for_combination_purchase' => 9928, + 'minimum_number_of_amount' => 47, + 'minimum_number_of_products' => 3613, '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, 5, 1, 6, 6, 6, 0, 4], + 'applicable_days_of_week' => [5, 3, 2, 2, 0, 5, 0, 1, 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_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] @@ -987,24 +997,18 @@ public function testUpdateCampaign24() , ["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' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1205, - 'point_expires_at' => "2021-04-09T14:41:56.000000Z", + 'subject' => "all", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 5168, + 'point_expires_at' => "2020-07-29T18:52:39.000000Z", 'status' => "enabled", - 'description' => "0pgRwqKcwLRpyfhvSp3huvf9IS", + 'description' => "SB8bfxMId7hFKERGvYa7vbD1cIywVpXocQ5N98CAVKuKRC5FLAIRiGKuI8CNBTqLCZ99AjVbK3l31NeAICSoLJdEVZoJB0H5I2jNmYRtpCMs9TezTj3A085y5hWQ", 'event' => "payment", - 'priority' => 7891, - 'ends_at' => "2023-02-10T05:38:34.000000Z", - 'starts_at' => "2020-07-10T02:06:41.000000Z", - 'name' => "V5b6lHxDKXrcl2EVGtJV2Ntce9IqiVZ5m5eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWlkrqUcz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3" + 'priority' => 8977, + 'ends_at' => "2020-01-29T05:35:47.000000Z", + 'starts_at' => "2022-06-16T00:43:21.000000Z", + 'name' => "gdeDOWFExGORRYNLJdsZ6n3IGoF44i0499bTqwmusaHN4dAo0kcMwrj6lsuth9pSzmqVAxW3BZh2UFG0NdobuyCqKAyF8XBloHn7nUM7l934bPMQ7DIwFMXGuPCrmdUDxKggDFfFvOJkxhc8IPvtQD4QxNm6tX3Guvbo2vDNfvQpElqxJKgNyOMeXS2rUoCJ5iHqorIswPc2cBsLEwskU0m8hSr1melep" ] ); try { @@ -1020,50 +1024,56 @@ public function testUpdateCampaign25() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["e67d1dcc-61df-4228-85ee-4677c308c9c9", "026e8de0-0e73-468a-ab55-de11761be225", "30ca42e3-2ed3-4edc-9b6d-9da06a206fa5", "9cb20b76-9f62-4734-874f-c60d2d7e75db", "49763bd5-91f1-4bc3-bab9-9c633dd3e347", "d3cc3444-d022-4a8b-97c9-2ce839b5c9bc", "eceab63e-fa06-40fd-acd0-bd8990e16c74", "5ede6208-b6b5-453b-870f-e0b21724d17a", "70b371d0-cb37-4c59-9332-12c4df180e28", "b46ec211-fca1-42d7-941a-fd7505cfcff3"], + 'budget_caps_amount' => 1334110757, 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - '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, + 'max_total_point_amount' => 5848, + 'max_point_amount' => 2148, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 7548, + 'minimum_number_of_amount' => 5617, + 'minimum_number_of_products' => 9189, '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' => [1, 6, 1, 1, 6, 5, 1, 0, 3], + 'applicable_days_of_week' => [5, 0, 3, 4, 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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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' => FALSE, - '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" + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 9457, + 'point_expires_at' => "2025-02-12T03:53:02.000000Z", + 'status' => "disabled", + 'description' => "CTg7cImjgcPmkAEumRe3ajMg8VGC0KZL7VMaMEGv2NsNRGCHkqW6b190Xf2yHeAyB", + 'event' => "topup", + 'priority' => 7934, + 'ends_at' => "2021-05-17T18:14:45.000000Z", + 'starts_at' => "2023-08-20T02:56:49.000000Z", + 'name' => "IySMiYLD3kq3Znz8pepfEmpSiLZTFdERWScAwFtubDUWmymMiDwFFfcNNLAfTp6G3m2S11HDiNC2T6Z1NRFWi9xNJqHv5TG4qAHZdsob31RGFcTjCHIRk6EOKDYDfh7IyYBfSv2V1UV4oPfCtFaYiWkYeLppJ33CkMXXFMJbGPqbgq29Gzz59vVOvin5VZAtZIBDPoHNl5" ] ); try { @@ -1079,9 +1089,9 @@ public function testUpdateCampaign26() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'blacklisted_shop_ids' => ["93336af9-6227-4d95-8bfd-ea9ab781991e"] + 'blacklisted_shop_ids' => ["3dbdabee-dd9e-49b6-802c-9cb4cd4c2d49", "09f1c43e-93a6-45fc-b5b4-86b48caa6f2a", "4b60c1cb-32e0-4319-a1b0-b0f0d484df67", "d4f438d2-9e77-48be-bd71-f9e07b0a6e4b", "b18547e3-8bf7-4f95-99cc-81d28d825140", "96c6a170-9605-408c-ad95-4ef9f5b68989", "4d5ab15d-729f-4792-a668-391b19742876", "be285653-82bd-4e3b-9e22-a97023e28692", "c0591e99-c9b3-4e25-bc1e-58de6dc78de8", "ae755ba1-7575-4cf6-be97-6266e06ac05e"] ] ); try { @@ -1097,10 +1107,10 @@ public function testUpdateCampaign27() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'blacklisted_shop_ids' => ["48a16919-ffa4-48f3-94f2-5dd17721e060", "b4d111c3-f41e-45a3-ac7b-92179006e649"], - 'name' => "NbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rUqwv3jfmweeo8" + 'blacklisted_shop_ids' => ["b1aa5349-1053-472d-935a-f813cea6fb12", "50fbec31-0d7d-4456-9bb5-3a62a8a86ffd", "a7e23b99-50b6-4013-ac48-207856fc6f87", "e6741c44-8fcb-449b-9dd8-b8f24324b8a6", "7ed97293-5663-4d06-aca8-4a32c7d56e5f", "8d6f2145-3ed6-4b47-aaf4-574ab819e556", "c91c7932-c5ce-4d5f-a374-d563f30ee015", "643c6ce5-78c0-4e39-839b-31495e51bea1", "c173bba7-bbf1-4e8f-a9d6-78dacae39235", "a5288cae-9e5f-48ed-8d9e-bf3f3bbdd135"], + 'name' => "eyekXLeKtBuImxNnX45R5ZNIieikdp8w9LWl" ] ); try { @@ -1116,11 +1126,11 @@ public function testUpdateCampaign28() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'blacklisted_shop_ids' => ["55e0de9e-c50c-48ff-ab72-be3be19f9c8d", "15dcc571-fa3b-4727-ae82-bd92b528c9ba"], + 'starts_at' => "2020-09-24T15:50:18.000000Z", + 'name' => "cz43dBm26Or7FE7oxXwqyeP95WFsrDTZsTHaLMAx4xhJmPNb2Vt3kMgTzAxm3nuCtm4tM4rQ7TMWwQQegAiqW5Gh3EedIVkoAN4R6PBgm1bgbkQVRY8MuhwDykulFo5mDyJw8V3XaTOkFDFDXkJRYuzmNrD0IPFMYc" ] ); try { @@ -1136,12 +1146,12 @@ public function testUpdateCampaign29() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'blacklisted_shop_ids' => ["c53dce70-44ef-4684-857e-c271bdd184ae"], + 'ends_at' => "2026-02-27T22:32:03.000000Z", + 'starts_at' => "2020-09-25T08:16:26.000000Z", + 'name' => "YNWKYupHW3vkZPbupwOmpLyfcnvR24ekndSEuijqLz34cJjz9WzSXV2waIpnDEjnPuGDOLqsy43AtWyT6hyzJkPIxdv4Vr2ADhNnBQ2AhJrtrRhEmEhncAz9T8Jn6tKv842hmKtJWGe0W2JoBVxOBG6QSEaMM6DcJjfAtdrmKAg3KBKDu0vlbYdVC6n9nVLo43cE33CQPF6kxIlI0uguDnziraNYM7VX5YLnlD8HOOCDlP4GZ7" ] ); try { @@ -1157,13 +1167,13 @@ public function testUpdateCampaign30() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'blacklisted_shop_ids' => ["272f41a5-e7ed-440c-984d-f9cf095a9299", "bc0b4735-9108-4efa-bb96-293e5975c187", "2e9c9a56-9d4d-4677-a608-03a840f4e69c"], + 'priority' => 1825, + 'ends_at' => "2024-09-20T14:55:34.000000Z", + 'starts_at' => "2022-11-22T01:54:03.000000Z", + 'name' => "CehTHNb57OPgysrQCIrNbKg5EGtS1CRG8HTOfVnvp3qGXZFBsOSpPHbliv7UIdhUMzObVJcG5btiH5rur7GsubMGTjIcOXKD9o8Kba3zToGBURahT5P9DvE8UV0j2YqC15yVJZpc8KVpHARBDgg1Gn2XcmC1vS6JUWIFuWHifSCeHqDX4OovF1kPsfFAfUD6hedBMnO5c5siBhPS0PdEUgltcrxJuLRpPyEyLzg5USUF0acnAYj9bCB7rU" ] ); try { @@ -1179,14 +1189,14 @@ public function testUpdateCampaign31() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"], + 'blacklisted_shop_ids' => ["fb5b4377-84f6-4fb3-9a1c-5b06fe75f96a", "07124f66-a8ed-4b77-9c99-c8a2cdef77de"], 'event' => "topup", - 'priority' => 3006, - 'ends_at' => "2023-05-22T21:36:00.000000Z", - 'starts_at' => "2024-12-09T02:33:15.000000Z", - 'name' => "93ttYPJhOiPCYhnxitPJhteZ9v4lYIFrYpnV35pBMGKJEJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZcFEPnIDVyEjs1xIVAG7PJaXsPvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmpVcy9ixDX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPS" + 'priority' => 4965, + 'ends_at' => "2020-04-18T09:28:15.000000Z", + 'starts_at' => "2023-06-06T19:03:01.000000Z", + 'name' => "8gmjkrVbM4yoFbYRleOf9KOkq0RFzjJHwRArvOU8komJ1Atk5RVlui7mGRMrDuzhgMwi2QEwxvEfxvbfoaYN92mmS964bSnGq9n7PpIOomMWW66P" ] ); try { @@ -1202,15 +1212,15 @@ public function testUpdateCampaign32() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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" + 'blacklisted_shop_ids' => ["ad0eb8c9-9a2c-483c-ac48-a82704e146ba", "5a7d2530-3b21-416b-9158-45ed79557273", "27f5ed54-96cd-4ae4-bdf5-3c2c63b5945c", "14b15118-4ce7-42c4-bf1c-6f28de9acf5d"], + 'description' => "smRtGnF7L4kFCWrbFqt27c2GHcIyayD2aKjXN0NBWyTy0xC6byToeZcV73t7vuEmirlewYMI5WNi6AMJzfUo3Mw8SUD48UFtXOBKAPivd5iJNrdqAuTxyB0A3WX2EcUb892jz3Nv10xFyFeM64iLpLDhctAZixWvzCjvZGuuLmpXAGJua2paAAkUgzb5zEs", + 'event' => "payment", + 'priority' => 9945, + 'ends_at' => "2021-08-02T00:18:15.000000Z", + 'starts_at' => "2026-01-07T18:27:45.000000Z", + 'name' => "bxzOIV2r2JtDEGxgzX90xQ1qEwnOjzBjMdE2ZgqC6g1ENWOPFMuygZod8nuff2bwE3RDjoGhPLmonziI8gPB410GLPQCeC7jS6W3DftZcdyglmNXEppEtAwequ8PJiYpSm0jLeVc0IIOPvouCcBMs9oEUXdmuJ5CsXeAgeVmz0XdBqvz2LZqSb1Cr9GvJk1u6JVnb04lQy4ktenk93ttYPJhOiPCYhnx" ] ); try { @@ -1226,16 +1236,16 @@ public function testUpdateCampaign33() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => "NWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskr", - 'event' => "external-transaction", - 'priority' => 3296, - 'ends_at' => "2021-07-15T00:23:15.000000Z", - 'starts_at' => "2020-11-30T09:23:15.000000Z", - 'name' => "NQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2kLaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4lH8T3KxBkSfET7NeTYdPy8UjYc9OlslQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udBME6WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8" + 'blacklisted_shop_ids' => ["4558c169-557c-46f4-affd-653bcf22cede", "cd740150-a55c-4d4a-aade-2468dcf14df4", "17d6b390-9365-4510-9a39-eef6db056334", "aaa1b908-9794-4b2c-97ec-c8d97dee4f87", "20151b49-91c6-452a-b27f-5ad9f4eae660", "138d7670-6985-4312-a2ee-0a0729bf86bb", "49a72c56-8d0a-4da3-9cab-d88c4eb2a397"], + 'status' => "disabled", + 'description' => "35pBM", + 'event' => "topup", + 'priority' => 7442, + 'ends_at' => "2021-12-11T21:57:27.000000Z", + 'starts_at' => "2023-11-07T05:53:14.000000Z", + 'name' => "EJkpn6Mlr99tmpLoTFQeHIPsIBBDhi4oQ1t1s3zE32Vk24Ceen1NSjytDUp3byZ" ] ); try { @@ -1251,17 +1261,17 @@ public function testUpdateCampaign34() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => "o5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7ByqCBViT8YJSc5gafw5E7JxTvjUc1aT5EbGpCQn8B7l65BYMvNkhE", - 'event' => "topup", - 'priority' => 5346, - 'ends_at' => "2025-08-19T15:10:56.000000Z", - 'starts_at' => "2024-04-20T04:02:26.000000Z", - 'name' => "q7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2EnvF9kW30yXFj5pEZQNOtIwcrR2Tap7tnXzfq7vVXcZZXk" + 'blacklisted_shop_ids' => ["596e1263-17c6-45a5-8560-9450d92addee", "a4afdd49-67c4-41d6-b927-fddbf20d2c3f", "4a413fc5-d22c-4985-aaea-6cf3e06c58b1", "989f0878-6381-42c9-960c-a07b73b02ec1", "b089801d-cd28-445d-87b7-6e5068538313", "1f222e7b-bf1c-4f88-9a22-63bfb838c5ca", "e14bd961-3f58-4786-8c2d-32ad4707eabe"], + 'point_expires_at' => "2021-04-02T23:21:35.000000Z", + 'status' => "disabled", + 'description' => "PvnXy7JLPWT4POJKIKUBKfvAdAdVhR8qFWp5tCaOkj67zOOhzPjoLUnpes4zWmp", + 'event' => "external-transaction", + 'priority' => 9699, + 'ends_at' => "2023-03-17T03:58:49.000000Z", + 'starts_at' => "2025-06-14T19:19:56.000000Z", + 'name' => "DX4fCfbAE0AZjhFFPDiC5XgRDuJC7DFGXWJ1DsLyOnXTqwNlXWPSNst44xBM1tMMoOyWoAqWcD5ADFBSPh7o2MC5sMNAQhF0HCoj9Dj4ZpJqp2buSHK5WKI86hTWo47qb9nSKNBR3LjzCdQo4GwTY7y2Am8ZcyGh3BczuQ1HmAT4U7cCHORIBupKF2LGLWlWRqEU1R3HVfumJrkxA1RBhkJnrKn6T4UBYf7XzEp3cMOeoQItbJApNFNbi" ] ); try { @@ -1277,18 +1287,18 @@ public function testUpdateCampaign35() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => "NQtFJaR", - 'event' => "payment", - 'priority' => 5841, - 'ends_at' => "2023-06-06T10:12:20.000000Z", - 'starts_at' => "2025-03-01T19:39:22.000000Z", - 'name' => "5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjezB3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw" + 'blacklisted_shop_ids' => ["7ddc6b13-9953-44c5-9b4b-910cebdc970f", "f0eff714-a09c-4a0c-8394-5d766f7824ce"], + 'point_expires_in_days' => 8989, + 'point_expires_at' => "2025-11-07T09:37:06.000000Z", + 'status' => "enabled", + 'description' => "iLTmRsG1pcvzPfSNlMjgyCm3l36NNuyyweAXXanZiLS6lbj9JXoVWEOjNWcJ8Pqob8ZBDc2LIkAJFpX3tMiPvkskrBs7cZNQht6pUXt6QkeG9pRp1c5EcN6nLJcb0NEcuMnzKSDbJDSeKRyRniwPaN0afN8mRVY0r2", + 'event' => "topup", + 'priority' => 3727, + 'ends_at' => "2025-02-25T12:22:03.000000Z", + 'starts_at' => "2025-12-07T22:20:23.000000Z", + 'name' => "LaYAQQnNWq5gJk8ucSDE2uEYUD0C3IXLL4" ] ); try { @@ -1304,19 +1314,19 @@ public function testUpdateCampaign36() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => 684, - 'point_expires_at' => "2024-12-15T12:24:42.000000Z", + 'blacklisted_shop_ids' => ["82b1328f-f30a-4c27-ac48-86b8e91ba47e", "ac07e854-d28f-4bb3-8bf8-2ac288acb32e", "0618fd11-22dc-42eb-93dd-0d9a8478be66", "91bb0345-1c8b-49fc-9437-403dd6cb534e", "7e244304-7a0b-4a40-a513-d654127bc459", "b818442a-a0e4-4ed0-b938-303d50eda01a", "fd970dd5-206a-41dc-8059-8b985b76f015"], + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 976, + 'point_expires_at' => "2024-10-12T23:59:40.000000Z", 'status' => "enabled", - '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" + 'description' => "slQQZIq7zSOEeSzczj6ObIBdQwmJP2q6udB", + 'event' => "payment", + 'priority' => 2245, + 'ends_at' => "2020-07-27T11:55:24.000000Z", + 'starts_at' => "2026-05-12T10:50:35.000000Z", + 'name' => "WRlyybO27figMsVRHKPW8EbdfuKdbyfcjYNDVx4A2ovqPMZA8irXJ9E6ZcMzkLyAqgwSoddiujWTgn11mpxaVIYgQo5GvBiHKw3I5f57jFE45d3P21Pzx2jnlKrw0LdNS4VtkXCDrt0LJOE3QgwrCcszhfH09Y5OthVwPmvHXBFS5mnHJDaN7By" ] ); try { @@ -1332,20 +1342,20 @@ public function testUpdateCampaign37() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"], + 'blacklisted_shop_ids' => ["d68f0071-de43-4fc2-848d-c48d330dd5d6", "4e0d1ee9-b754-4fb8-998e-fa8d1b867081", "df799dca-aed3-4a05-94bc-9d630b24f2b5", "4724ce3e-631d-4a67-a1a3-c50e587a1d14", "c56bd91f-bf93-4b91-ae09-d01abc47060a", "f01db8c0-7ca8-4194-9b8c-3884fa1bcd5f", "c7dc2206-781b-4766-9dbd-5cbf00400af7", "47b4a9b5-ddc5-42b7-9fca-7060ec98d4f8", "6ad12a3a-31a3-443b-9476-4a979e14276a", "92d70ebc-56d5-4963-b1e1-a2fcf716acd4"], 'subject' => "all", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 1412, - 'point_expires_at' => "2022-01-14T06:39:49.000000Z", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 8006, + 'point_expires_at' => "2024-05-28T03:24:18.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" + 'description' => "CQn8B7l65BYMvNkhEwbRq7C0zj85JoEScisdzkhxnXFFT7CXS50vaovkROQbPFa2Q0QZFPxPWcwwu3uh9fDL3S3NHvBIxMXxVOS8aVOpiS1EeKe2E", + 'event' => "topup", + 'priority' => 2030, + 'ends_at' => "2025-03-27T15:40:38.000000Z", + 'starts_at' => "2024-12-03T06:56:44.000000Z", + 'name' => "F" ] ); try { @@ -1361,22 +1371,27 @@ public function testUpdateCampaign38() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'blacklisted_shop_ids' => ["0497fb68-314f-418b-8e94-0068a429f0f7", "dfef3d57-62c7-4b48-84e1-63949c29299a", "ae7280d1-b9a6-4352-b374-35ffeb9f5685", "05b86921-0b3c-4bbd-8d05-04fa86c63df9"], + 'blacklisted_shop_ids' => ["90183c28-eb90-48b9-aba0-4b255654f39c", "5be9e2dd-2702-48d7-b322-c2df2957b730", "08a54af9-1d58-4afe-861f-9e6a86248235", "d538a69f-409f-4107-b0dd-6882505e52a4", "57ed6e45-d8da-42d1-9c7f-f7bc0c895a1c", "f0991bce-ebcf-4674-89af-25f72a30dde0", "ca6eba63-8487-4172-92b2-670f5be4bb54", "4900dc21-5261-4391-8c97-b90918e3b770"], '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' => 4420, - 'point_expires_at' => "2020-06-14T14:16:59.000000Z", + 'point_expires_in_days' => 1013, + 'point_expires_at' => "2026-03-26T10:41:50.000000Z", 'status' => "enabled", - 'description' => "r4ZI5zg9bDUlUJBBIg9Fd6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1JlrHqbdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0", + 'description' => "fq7vVXcZZXkAjYTEO65NQtFJaRQvj5yyqZjpM3EGDvxc2vHpfKAFMK87o5EDfCnjGchqfzXJGnbGhZsKdVrETxLEt4GFvxAKZGN2hkrp4AuDVFN5fAvBVJFsjez", 'event' => "payment", - 'priority' => 466, - 'ends_at' => "2020-10-01T09:50:09.000000Z", - 'starts_at' => "2022-05-19T00:42:06.000000Z", - 'name' => "q2AUltkkF5RV8aSNO9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328x" + 'priority' => 5001, + 'ends_at' => "2021-06-21T21:09:24.000000Z", + 'starts_at' => "2022-10-31T00:02:36.000000Z", + 'name' => "3YP3w02SjMN6p0E72qWtOk3QUVbESEWPtcFyu37VMAkI2ylOPtFPfUfw5cNQlmY98v9" ] ); try { @@ -1392,26 +1407,27 @@ public function testUpdateCampaign39() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"], + 'blacklisted_shop_ids' => ["efdec9c5-7efd-415c-9d21-37eb7fe9aa0f", "456a1961-1519-45e8-9ca5-f7075d9fae32", "02572a46-5f05-412f-b073-adaac76e754b", "c7165007-f685-4825-b389-7c3058d502ab", "8952e98a-cfc0-4c9a-8b7f-3adc345e6ed7", "4001db58-1668-402e-8af1-0d9d2dd6ee63"], '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' => "all", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 9612, - 'point_expires_at' => "2023-01-05T19:17:48.000000Z", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 2774, + 'point_expires_at' => "2025-09-23T21:59:01.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" + 'description' => "a3AEPf", + 'event' => "payment", + 'priority' => 1817, + 'ends_at' => "2020-10-11T12:17:29.000000Z", + 'starts_at' => "2024-11-02T06:44:22.000000Z", + 'name' => "cCoy2dXgtWk5Skp4k9FjiQcyxviUOicaOZqLE3MkcTFrJK4NHPvl4VhqOdqyKHcIOPhbvogj2mEAT9kQkxX80ARofdpsoiXVeBxFuF7c05YcbHgR3SFdYgsuZbSs" ] ); try { @@ -1427,36 +1443,38 @@ public function testUpdateCampaign40() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["9e420d15-c40f-43ed-86a9-cd59e81e3878", "77136a8c-1e89-422f-ab96-2e75fa43fa4c", "2ea8ab12-3f72-4198-914d-0d2621841143", "46933907-76e8-412d-a9f7-bbf73da31a33", "ed128915-8352-4685-8f84-ec92cfa06faa", "7ca09d59-0e43-46c9-a586-8d8d523ae562", "596abec3-b8b9-4070-8085-ee045446d92a", "fa43ed82-435b-488c-a6b8-15d71fed6d40"], '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] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 3239, - 'point_expires_at' => "2022-08-13T22:16:39.000000Z", + 'point_expires_in_days' => 9966, + 'point_expires_at' => "2025-01-03T07:33:08.000000Z", 'status' => "disabled", - 'description' => "46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBkQNn9uWl9JunPyftwg9sZ6EOXmzMsMVDh", + 'description' => "oir96Zk4wBbHbRE9tWUhNPatHCNYgstx4oloda7k12vM37GlbZJKSAFS4eQAmyXqltVLiYXrByWE1iViSMuTkME7Xo3gZLzoJUOW0EXfG", 'event' => "payment", - 'priority' => 7585, - 'ends_at' => "2022-01-15T07:23:38.000000Z", - 'starts_at' => "2023-12-08T17:26:53.000000Z", - 'name' => "fFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imj" + 'priority' => 6483, + 'ends_at' => "2020-10-20T21:22:11.000000Z", + 'starts_at' => "2024-01-18T15:46:08.000000Z", + 'name' => "B9sMClBaFjZtZBNIprWMfHv0Adc0Cr3QSzeJKZKHWOY" ] ); try { @@ -1472,38 +1490,41 @@ public function testUpdateCampaign41() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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_shop_ids' => ["7204b49a-8479-409c-b8d8-612e26aeb761", "c23f8d31-b46e-4d17-a14c-c36257b937f0", "aa317fba-6290-4405-b779-8a0f1fa881ef", "4fa13bc3-8d6b-431d-950c-19c33b2640eb", "b62e89c9-34cc-4408-88c4-823f8b62b2a3"], + '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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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", + 'subject' => "all", '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" + 'point_expires_in_days' => 7447, + 'point_expires_at' => "2023-04-25T01:31:17.000000Z", + 'status' => "enabled", + 'description' => "SoFWNBFxzeu6Kj8LSmqtcTHfZNvkLrHlNhP", + 'event' => "external-transaction", + 'priority' => 5806, + 'ends_at' => "2026-04-07T13:48:36.000000Z", + 'starts_at' => "2022-08-01T16:56:15.000000Z", + 'name' => "I7mVEEqd8S9trsTY1RY9q3EI5KlF19OJHZirKKYCiI5WbqIsQYvdmHcE3kg67Mp0CzjOzftNuETzfXonmfKJhNI2H30SlKK1O1UKOiryeoJ2KHqioForPYYFDgWpGReS1ZkiP3jHymN76Njiv2bjGekXOVbuSOvVu" ] ); try { @@ -1519,20 +1540,20 @@ public function testUpdateCampaign42() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'blacklisted_shop_ids' => ["23023c05-f7a0-468a-b4a0-ad5c08c36595", "7d6a3de7-321d-44d1-a011-d39d63b8d21c"], + 'blacklisted_shop_ids' => ["312061f0-0017-460e-9b53-82e1f17c3e70", "0418bb38-ba8b-48f0-b4e6-7635ca84549a", "6267805d-802c-4fe5-8ee6-24e752f4d364", "491be80a-c37a-4528-89b6-d26703306c79", "7ec60425-acdc-45ac-bff0-be0c20c5db31", "f72d5a5f-d847-4b19-97a4-0d9cf4f26dac", "3b9332e3-7f53-41b4-a789-cf91bece283b", "a536844e-15af-43d5-b562-9c0cc6310002"], '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' => [2, 4, 0, 2, 0, 0], + 'applicable_days_of_week' => [4, 4, 4, 2, 2, 0], '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] - , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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] @@ -1540,22 +1561,18 @@ 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] - , ["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' => 4167, - 'point_expires_at' => "2020-09-29T03:34:33.000000Z", + 'subject' => "money", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 6746, + 'point_expires_at' => "2022-03-10T05:45:34.000000Z", 'status' => "disabled", - 'description' => "pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L", - 'event' => "external-transaction", - 'priority' => 2681, - 'ends_at' => "2025-05-31T09:41:09.000000Z", - 'starts_at' => "2022-11-02T08:24:20.000000Z", - 'name' => "kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2PelpywqnkqJGFUWWcs7OK2a7LaTGiS" + 'description' => "DyRb4tqKolqMgdRHskFZ317m16rSuV3GWqnvnIS00nrMnQNFRYYqQB2LOvvxaJWdM6RyNE08AoCyr23XqnSacLmBXCHDyWfJbD0iY7FmSIIJxWwKBqcUUGOv4rpZxW6C", + 'event' => "payment", + 'priority' => 989, + 'ends_at' => "2020-12-23T03:52:42.000000Z", + 'starts_at' => "2022-03-28T16:38:24.000000Z", + 'name' => "o0zvPKHwlN5cgpKhTDjrt62aO0gTJKvsFX8pC" ] ); try { @@ -1571,25 +1588,27 @@ public function testUpdateCampaign43() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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, + 'blacklisted_shop_ids' => ["9dfe3b82-44ab-4bd5-8e64-c102d1a994d9", "650b3458-4208-4751-8368-314f1caee18b", "9c45d2ce-0094-4068-b757-62c7cc66db48", "398e67c4-a9e1-4394-9ad1-b9a6be84b352", "eec9ca73-2a74-45ff-8521-0b3ceffa1bbd", "8671740d-5f05-44fa-b990-5166e4f1e3c3", "264d2e4d-3aab-4143-9b2a-c3b66c4be372", "7e38dc34-c9da-485e-8935-b43afddec67a"], + 'minimum_number_of_products' => 5296, '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, 0, 2, 6, 2], + 'applicable_days_of_week' => [1, 6, 2, 6, 4, 6, 5, 4, 0, 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_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] @@ -1599,18 +1618,20 @@ public function testUpdateCampaign43() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] + , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 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" + 'point_expires_in_days' => 7773, + 'point_expires_at' => "2025-11-03T07:48:22.000000Z", + 'status' => "enabled", + 'description' => "6Y7e4aTjbZiLOaWRsEnzqZ6lGrz0tQnP1Co4x4AXMvzQhY1", + 'event' => "external-transaction", + 'priority' => 9863, + 'ends_at' => "2023-05-29T11:52:12.000000Z", + 'starts_at' => "2021-01-16T19:15:20.000000Z", + 'name' => "bdULcyqcFghqKIiyi3aAuGXWsNdhyWJyqrPAKmmZGZJNC4j2awHXlJF9A7cu6AxfU8HIO6LO5Dd5XiFWL9oU011XoGoCpelXPpOt9Y3msxtcs0WRQE" ] ); try { @@ -1626,49 +1647,46 @@ public function testUpdateCampaign44() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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, + 'blacklisted_shop_ids' => ["7c564ca3-6071-417b-b28f-ed2372a97441"], + 'minimum_number_of_amount' => 9302, + 'minimum_number_of_products' => 885, '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, 4, 6, 5, 3, 6, 6, 6, 3, 3], + 'applicable_days_of_week' => [3, 2, 6, 6, 0, 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] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 1918, - 'point_expires_at' => "2024-05-29T19:18:30.000000Z", - 'status' => "enabled", - 'description' => "II6xukRoB486IcnSrXwZGPsDFfbhpjo6CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiXGIWU4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51N", - 'event' => "payment", - 'priority' => 8399, - 'ends_at' => "2025-01-01T23:58:29.000000Z", - 'starts_at' => "2021-08-05T10:55:15.000000Z", - 'name' => "8RI7n9XLkQqGxRAu4ClCzUyuIEYrXjU1Rl6vF7n9cWf5sF0ARyOKP3HCUhOEdj0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEE" + 'point_expires_in_days' => 7939, + 'point_expires_at' => "2026-01-15T20:33:20.000000Z", + 'status' => "disabled", + 'description' => "O9GQnDszD12NRIYvg8bbFQzPdXDpujuzOkg0dnSdALdNv5r8wM328xFuBm1H3xUdHsESYPWyVyErNbO", + 'event' => "external-transaction", + 'priority' => 348, + 'ends_at' => "2021-04-20T22:49:57.000000Z", + 'starts_at' => "2020-06-30T05:35:24.000000Z", + 'name' => "OH6RQgeafcESSUHZ6h2XaPg728RkvVOUbcGA0kjIj9fnBbIK8dSJpAN6wI" ] ); try { @@ -1684,18 +1702,20 @@ public function testUpdateCampaign45() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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, + 'blacklisted_shop_ids' => ["0967dac9-d7d1-4462-a6e0-5d5406c3ef21", "90de9157-14c0-4deb-a57b-0e83d087329a", "0f98b0fc-fc77-4d25-a3d8-453e50566257", "1c25ef02-42b1-4452-bfe7-f2131baaf2c4", "b10dfe60-5ef6-4d90-8278-4a3f77f5432a", "0fd0de10-4d1f-4a65-aa13-ec75fb7b4568", "a59beb91-ad74-4971-a32f-73852727747d", "b17580dc-5a30-4b82-ac56-6075137f9285", "ba00cb56-1786-40a0-80e5-6affbd737376"], + 'minimum_number_for_combination_purchase' => 2499, + 'minimum_number_of_amount' => 923, + 'minimum_number_of_products' => 7793, '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' => [0, 4, 2, 6, 1, 4, 0, 6, 1, 3], + 'applicable_days_of_week' => [1, 2, 6, 3, 5, 0, 5, 2, 0, 3], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1703,32 +1723,25 @@ public function testUpdateCampaign45() , ["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] ], - 'subject' => "all", - 'is_exclusive' => FALSE, - '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" + 'subject' => "money", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 1425, + 'point_expires_at' => "2020-08-17T13:36:35.000000Z", + 'status' => "enabled", + 'description' => "kORoCtdXbeAqJmttYcSXDoCgwypQnQUsnWOKMZ3rJ8aRGwz6VDq2kLV7UR9Ys1BTbKj9QeMGWU46l1ev23Q5PTPgtt4yAIzCwP1Z0JVfF9RSrf0Q1pmhWHNJvae7EjBk", + 'event' => "payment", + 'priority' => 1937, + 'ends_at' => "2022-09-15T19:55:58.000000Z", + 'starts_at' => "2023-11-25T08:19:32.000000Z", + 'name' => "9uWl9JunPyftwg9sZ6EOXmzMsMVDhbzfFvUl3UtKdNP5TLVhbhll0GP4QAkQeOPrTAo5HhYx5jCaGbLEuJCfBO4W1IV2UViZVHRWPkdj3cWX27LHxVCRXJ7RR9vhNIu31vkGd5KFMjSHWQRA9E535lViSyzzCHjVEEg0SpYDFFDY1quxNkSS1vmCLOUldc17zrM7imjJVYnMFmZVKbnQskJ4SJWYdnxMjsH9rlpcWw1Vg5A" ] ); try { @@ -1744,21 +1757,22 @@ public function testUpdateCampaign46() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"], + 'blacklisted_shop_ids' => ["3621f56a-34c9-4fa5-be5f-6720278e6e59", "da1143b5-cfd4-489b-92dd-2bd6840af296", "e66a6629-b428-4944-ae5c-b8dddb5197b7", "466bd282-148a-470e-965f-c802f899a2c1"], 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 7206, - 'minimum_number_of_amount' => 6614, - 'minimum_number_of_products' => 3229, + 'minimum_number_for_combination_purchase' => 3817, + 'minimum_number_of_amount' => 5991, + 'minimum_number_of_products' => 5938, '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' => [2, 1], 'blacklisted_product_rules' => [["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] , ["product_code" => "4912345678904", "classification_code" => "c123"] @@ -1772,7 +1786,6 @@ public function testUpdateCampaign46() ], '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] @@ -1781,20 +1794,18 @@ public function testUpdateCampaign46() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 3969, - 'point_expires_at' => "2024-07-15T18:34:58.000000Z", - 'status' => "disabled", - 'description' => "jTfUU5d5AtOipE6L0lEeYXxSLgJV1GwAOqdc8zzTPJEfMbaKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbi", - 'event' => "topup", - 'priority' => 8410, - 'ends_at' => "2021-06-13T01:48:41.000000Z", - 'starts_at' => "2021-06-18T22:24:18.000000Z", - 'name' => "Oey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgCiw12joVskUHIrzFx85stT5X2fdTs" + 'point_expires_in_days' => 7641, + 'point_expires_at' => "2023-12-02T13:00:18.000000Z", + 'status' => "enabled", + 'description' => "6Y5FN9bW9vksFBm8sMwbh1WFtpEmCrFqNwdLZ15QmFMvlNaa2goLZ5E9OEvOUIiBwbJ5GuqfgOe9nVnbOf1mceXbMKgmiS2lNCj0coTfFCchnpKAXXDxQv4bOJ9FCs7r9SIiPLZxhYcpGO5FAV5Tmz4fnzfWLRafbjHHiTlinfVLWJIyG", + 'event' => "payment", + 'priority' => 6001, + 'ends_at' => "2024-05-28T19:21:20.000000Z", + 'starts_at' => "2021-01-27T05:34:29.000000Z", + 'name' => "GZ3LjtgQn48RP8UioFkI4pFJl8a49K0SiRVrDmJ5TPkLuNgnu18c0Kn6PzJQm77hC3byYhnk9L6y5R4kNHRMXQTzW1iBiUI5JGbGoEyKdo0WvNvuZ2zOymd6UzJ163lry8C4rDtJNzcEFdrvo427ISByum8MIrVugVBfTif3qpXYgZnZ3LJOu3iwipHdsS3ShjnA4Sr1gSN2PelpywqnkqJGFUWWcs7OK2a7LaTGiSi2nVCa3OWfS7AqwLlHPiO" ] ); try { @@ -1810,30 +1821,29 @@ public function testUpdateCampaign47() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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' => 8059, - 'minimum_number_of_amount' => 4049, - 'minimum_number_of_products' => 7638, + 'blacklisted_shop_ids' => ["6d295ec9-6fb9-43f1-ad81-0e4632de72ea", "c65213cf-fc50-49c6-8dd9-e75eabf8cad1", "3a2e564c-8b11-4c1b-8b08-cc4b66910a85"], + 'max_point_amount' => 9835, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 9312, + 'minimum_number_of_amount' => 6002, + 'minimum_number_of_products' => 1889, '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, 1, 4], + 'applicable_days_of_week' => [0, 4, 1, 0, 2, 6, 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_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] @@ -1846,19 +1856,18 @@ public function testUpdateCampaign47() ], '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' => TRUE, - 'point_expires_in_days' => 8390, - 'point_expires_at' => "2021-07-10T17:54:03.000000Z", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 2083, + 'point_expires_at' => "2022-05-20T04:27:02.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" + '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 { @@ -1874,30 +1883,38 @@ public function testUpdateCampaign48() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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, + 'blacklisted_shop_ids' => ["ec27e1fa-9594-4fa8-a7eb-b855cd0d96de", "07290fc4-9498-4953-9376-3885d8206030", "fb7a2b86-05cc-473d-ab49-047a7dcefae3", "a8c4a1a6-b35a-4518-a2de-3c11f40dfbee"], + 'max_total_point_amount' => 3566, + 'max_point_amount' => 3508, + 'exist_in_each_product_groups' => TRUE, + 'minimum_number_for_combination_purchase' => 3229, + 'minimum_number_of_amount' => 9271, + 'minimum_number_of_products' => 9980, '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' => [3, 0, 4, 3, 2, 3, 1], + 'applicable_days_of_week' => [6, 3, 3, 3, 4, 5, 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] + , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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] @@ -1906,20 +1923,18 @@ public function testUpdateCampaign48() , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_or_equal" => 1000, "subject_less_than" => 5000] - , ["point_amount" => 5, "point_amount_unit" => "percent", "subject_more_than_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' => 2759, - 'point_expires_at' => "2022-12-11T05:15:24.000000Z", + 'point_expires_in_days' => 7754, + 'point_expires_at' => "2024-09-07T14:03:41.000000Z", 'status' => "disabled", - 'description' => "sltjjmodDQEUxDaghv7DnSC5Rfu0C0uKFwmpPkPjblE3KxRrUTFSpI6jwJUUxrUc5YmXel2A200gV6FxYfWwCiS0MuCLswxDV9dr", - 'event' => "external-transaction", - 'priority' => 2835, - 'ends_at' => "2023-02-06T16:39:04.000000Z", - 'starts_at' => "2023-04-03T17:33:28.000000Z", - 'name' => "LSvZ2KQORxMHroQo6jM66W2y8KrZ8xMlNalvWasLjNh8s14cZJ7e4Q9GCUyL2v9u3mWzZwKqxzujrUlmkKRdRXeieY6AmMB38" + 'description' => "6xukRoB486IcnSrXwZGPsDFfbhpjo6CvZmit6sG22LWplDlWahPig9MKERKZGyJip4Qp4t6WiX", + 'event' => "payment", + 'priority' => 9436, + 'ends_at' => "2026-03-24T12:47:19.000000Z", + 'starts_at' => "2025-03-04T12:45:09.000000Z", + 'name' => "4TxH2FAjMtbi1KGeJyFNO2KrkgbsXcbEbgPoZFbPh9J838rL1gDfq3VsJIZMJTMvIMK26sORVFvF51NUOj8RI7n9XLkQqGxRA" ] ); try { @@ -1935,30 +1950,26 @@ public function testUpdateCampaign49() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"], + 'blacklisted_shop_ids' => ["e660e6b4-e143-44a3-8a6c-d343bd1fb901", "9b98d9fa-54a1-4e9e-95f9-88f58e806bc9", "cff2181d-01c5-48d9-b20e-63218320a0d8", "0fc2b22a-cfea-4d55-b152-a55be093af19", "60f6ad90-8b6c-4760-92b6-b910417931af", "6b155b76-d3c6-4cb7-aeb9-c8630f3c6f57"], 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 4274, - 'max_point_amount' => 4306, + 'max_total_point_amount' => 4084, + 'max_point_amount' => 7719, 'exist_in_each_product_groups' => TRUE, - 'minimum_number_for_combination_purchase' => 6661, - 'minimum_number_of_amount' => 2887, - 'minimum_number_of_products' => 9570, + 'minimum_number_for_combination_purchase' => 7234, + 'minimum_number_of_amount' => 5715, + 'minimum_number_of_products' => 2682, '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' => [4, 1, 6], + 'applicable_days_of_week' => [6, 3, 3, 0, 3, 4, 5, 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_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] @@ -1968,15 +1979,15 @@ public function testUpdateCampaign49() ], 'subject' => "money", 'is_exclusive' => TRUE, - 'point_expires_in_days' => 7319, - 'point_expires_at' => "2025-07-07T09:08:08.000000Z", + 'point_expires_in_days' => 5062, + 'point_expires_at' => "2025-11-26T06:29:56.000000Z", 'status' => "disabled", - 'description' => "eeSgcGsS3PA5BMU547lNJdN573CatnkU3QijXWL36Ne9BIyD0VsxUMLq2pynj2i9JShHMs7dpH", - 'event' => "external-transaction", - 'priority' => 9448, - 'ends_at' => "2024-05-20T19:54:45.000000Z", - 'starts_at' => "2025-09-25T16:30:33.000000Z", - 'name' => "mzmDvsu" + 'description' => "0FvKzWLO0X17seRboXyaTp5fxFISfuSj9R4g3InaFkgEEKedrMwdHukpCicHBj64f1DT6D6Mien3I4QpNgQKGBSiEs2F3MGwgLve3TZFNm4", + 'event' => "topup", + 'priority' => 6201, + 'ends_at' => "2026-01-26T23:15:17.000000Z", + 'starts_at' => "2025-11-28T11:16:39.000000Z", + 'name' => "Imcm3HEYVU" ] ); try { @@ -1992,51 +2003,46 @@ public function testUpdateCampaign50() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - '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"], + 'blacklisted_shop_ids' => ["91154a53-3dac-46fb-8292-098475886a71", "e96464f3-8f43-4ab3-8193-0a02c8db5e72"], 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - '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, + 'max_total_point_amount' => 1898, + 'max_point_amount' => 1162, + 'exist_in_each_product_groups' => FALSE, + 'minimum_number_for_combination_purchase' => 4106, + 'minimum_number_of_amount' => 781, + 'minimum_number_of_products' => 8516, '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' => [5, 1, 2, 4, 4, 4], + 'applicable_days_of_week' => [3, 0, 3], 'blacklisted_product_rules' => [["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] ], 'subject' => "money", - 'is_exclusive' => FALSE, - 'point_expires_in_days' => 7192, - 'point_expires_at' => "2021-11-07T05:10:24.000000Z", - 'status' => "enabled", - 'description' => "YOyXeD7lp3hQ7iTUdtYXMwyZtYN7NcCeDXI01ioT6dE59eFWe4", + 'is_exclusive' => TRUE, + 'point_expires_in_days' => 2592, + 'point_expires_at' => "2023-06-04T03:20:23.000000Z", + 'status' => "disabled", + 'description' => "ULKwo1UdPl33Js1Kuu0UegnQjK5K12MWvCvA9DjpAvmSouPF8sEd3lBtNl0JB2dKxVrlXLEonC1KsoREeh2RXqHgFOF3b7VdwEdOPGXSe9OOoep5LkQDV7qJw1By6uFHkBHhur", 'event' => "topup", - 'priority' => 5139, - 'ends_at' => "2022-05-26T14:47:41.000000Z", - 'starts_at' => "2021-08-23T04:47:36.000000Z", - 'name' => "M6PRObQxj3f4w8El4HGgfInUuZUZacdXJKlldoDuv9TA2XHRXocL0a2ENjq4YdkJGWgFmKTEIA1MAf2HgecIl74FyRST7ScfdaiXI0aphnQpmaEH46JpxMwBWB66twUXazpjqxEREjqmyqJkEdfkYviMgBpZAYBbcvRZzaI37qk5Qpl5Gz36NQavWZXSE0IrKdpz0FXnt" + 'priority' => 7514, + 'ends_at' => "2020-08-10T00:21:56.000000Z", + 'starts_at' => "2021-09-15T08:00:44.000000Z", + 'name' => "vR7Q0" ] ); try { @@ -2052,63 +2058,54 @@ public function testUpdateCampaign51() { $client = $this->newClient(); $request = new Request\UpdateCampaign( - "93fcaf0e-d5d9-407e-b5d3-62e51d486cf2", + "dd8e7727-94e1-4d1f-b153-fcbd505cc87a", [ - 'blacklisted_shop_ids' => ["aa13fcf7-3319-4fcc-bc00-35f75f64d073", "1a794928-7850-46b6-bc50-bea1616b4c28"], - 'budget_caps_amount' => 2136805741, + 'blacklisted_shop_ids' => ["55ff1ed4-9328-4c64-a37b-5367a6a8ff74", "4e612bd2-8f38-4939-baaa-2b48f1f076b4", "1bb3e4c2-7ad2-43e2-98a2-e4042ef17b1d", "ae5ff034-af1b-4e97-8c2e-bf785fecf46a", "a231cf03-db07-44d9-9726-d2fefeca4a70", "72ade807-f886-46ff-b12c-418249c751d6", "e7c26046-c418-41d8-a9df-feb662412d35", "9371ba88-a283-4bc9-9808-acd757b92cc0"], + 'budget_caps_amount' => 20443465, 'applicable_transaction_metadata' => ["key" => "rank", "value" => "bronze"] , 'applicable_account_metadata' => ["key" => "sex", "value" => "male"] , - 'max_total_point_amount' => 8720, - 'max_point_amount' => 3404, + 'max_total_point_amount' => 819, + 'max_point_amount' => 5261, 'exist_in_each_product_groups' => FALSE, - 'minimum_number_for_combination_purchase' => 9703, - 'minimum_number_of_amount' => 2132, - 'minimum_number_of_products' => 5551, + 'minimum_number_for_combination_purchase' => 9913, + 'minimum_number_of_amount' => 5307, + 'minimum_number_of_products' => 568, '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' => [1, 5, 2, 2, 2, 3, 6, 2], + 'applicable_days_of_week' => [5, 6, 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] , ["point_amount" => 5, "point_amount_unit" => "percent", "product_code" => "4912345678904", "is_multiply_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' => 4169, - 'point_expires_at' => "2023-02-13T11:20:27.000000Z", + 'subject' => "money", + 'is_exclusive' => FALSE, + 'point_expires_in_days' => 1190, + 'point_expires_at' => "2023-07-23T02:14:05.000000Z", 'status' => "disabled", - 'description' => "oeAT0NWEwBSET0oVnBy6crZKnvytNg93oYMrwaGFqX3wegLSKGRpqSEuwLWT9k07B088FFfNZznrcL9APcDhFVXImIJBKStcO3wB304Jmf05hgJ0rNiPO7Acqsb1X8oQj9wf9SU4WjLK1VT02GEDFloz09QK5UFuC5JXRVayFf6oyQZu5", - 'event' => "payment", - 'priority' => 4727, - 'ends_at' => "2022-06-30T14:42:31.000000Z", - 'starts_at' => "2020-12-18T12:48:22.000000Z", - 'name' => "KTTxm1brwQKhHT3R75Hu8YJJm39h1WaxTt5SssiAjKWyz1Cvo6cvEGDQNsufaSx2VVAwQqeQUNQCi45yyQTl9wTWmjZWPblWstjkwC6ll5fjzCHapR04ADVEFmUehgiDu605XKZkJCbVsNuqqVdUDyaVdHFVHz0uIFKJoDWeoZQYdDyUkA8HMjkxTYcusA1RKieQ1ldipC3qoQ4XwLIDsqZ3ZF38hv2ikQGfIfeAIGZfO7OrSr8B2QPQ9Y2" + 'description' => "qVFQp8fp9IpDGNT32XXjSeAsfsowmrnytFnDNPErJC0T6j8TSBN1GRIxfJ3UGUUM2jHDzbRjTfUU5d5AtOipE6L0lEeYXxSLgJV1GwAOqdc8zzTPJEf", + 'event' => "external-transaction", + 'priority' => 2052, + 'ends_at' => "2020-03-27T18:41:17.000000Z", + 'starts_at' => "2023-08-13T10:55:09.000000Z", + 'name' => "aKIEhnBHfV6tGM4VGRurvyE3ASr9IOsPHz4Zd6uXHhCBvnC8wCQDn5TxePGCKc6zq0vbsfAwCBSEwRfx0DBbiZykOey7zjJ6OyJP83x3uLLTOPjH6jjFnlRSGQkOLow4uOPR7jYUkie5Rbdop3nbAQNRasJaqAeaFh0mPOgC" ] ); try { diff --git a/tests/UpdateCashtrayTest.php b/tests/UpdateCashtrayTest.php index 5f619bce..62ee3120 100644 --- a/tests/UpdateCashtrayTest.php +++ b/tests/UpdateCashtrayTest.php @@ -8,7 +8,7 @@ public function testUpdateCashtray0() { $client = $this->newClient(); $request = new Request\UpdateCashtray( - "2d39a92c-e0bd-4586-a492-a61b1264550a" + "8ffb3e4d-86f8-44b1-ab7f-2f3d07e56a48" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testUpdateCashtray1() { $client = $this->newClient(); $request = new Request\UpdateCashtray( - "2d39a92c-e0bd-4586-a492-a61b1264550a", + "8ffb3e4d-86f8-44b1-ab7f-2f3d07e56a48", [ - 'expires_in' => 6558 + 'expires_in' => 2005 ] ); try { @@ -41,10 +41,10 @@ public function testUpdateCashtray2() { $client = $this->newClient(); $request = new Request\UpdateCashtray( - "2d39a92c-e0bd-4586-a492-a61b1264550a", + "8ffb3e4d-86f8-44b1-ab7f-2f3d07e56a48", [ - 'description' => "uaeWPZ92K6Zt1zTkBm5QsUJIx79pUjuQLW3JQAlc0mxfIBEGWMOeqgVzvGmf46VZC1gROo7yDwwPoswLPrFl08abqydMndg7MmFsD2bCpZf9Kmzx2cSvcsgfp28NPWqo6Xqlqr", - 'expires_in' => 4874 + 'description' => "bpRx79qoFTViWGk7rsKgu2ihoMxDsfU3TC1A8fV5nkzyaMo6HNFjN16Mt1NNT0LSnWyLCIiaSmxOiabyCFBUZkK", + 'expires_in' => 4779 ] ); try { @@ -60,11 +60,11 @@ public function testUpdateCashtray3() { $client = $this->newClient(); $request = new Request\UpdateCashtray( - "2d39a92c-e0bd-4586-a492-a61b1264550a", + "8ffb3e4d-86f8-44b1-ab7f-2f3d07e56a48", [ - 'amount' => 3257.0, - 'description' => "ptmz4nyVSUDS2rGPI8RxpE3teEPiaYEeN8ncoL5boSBHerEtGhFgJdxHlskgg6LM7DHhWIQ2aljg7pW5tLDSL3EPYXvMXdIXxGA8eOtdDg4emZxxvv3UzyZmkPPeL3QSeHszKal8UJ7mvjTFU0wWAMu89", - 'expires_in' => 2117 + 'amount' => 4380.0, + 'description' => "MvzRhZdC9PIbxRIokrSMcAe6DLpfhwjho9qAj035em2B0e1zQxL4LWrEkUrKUADYaUMS4V1xY0z6q9RliuqOBINm4Q77ByqizVQoe2X9mQJiEELVlycfdA0s", + 'expires_in' => 3787 ] ); try { diff --git a/tests/UpdateCheckTest.php b/tests/UpdateCheckTest.php index a9809c5c..b4db4fb8 100644 --- a/tests/UpdateCheckTest.php +++ b/tests/UpdateCheckTest.php @@ -8,7 +8,7 @@ public function testUpdateCheck0() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7" + "42e4c570-334e-4c3e-98b1-216afe7ba057" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testUpdateCheck1() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - 'is_disabled' => FALSE + 'is_disabled' => TRUE ] ); try { @@ -41,9 +41,9 @@ public function testUpdateCheck2() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - 'bear_point_account' => "039690c9-b516-4b44-b092-30e5dc164209", + 'bear_point_account' => "58c6fc1e-aad0-4008-ab38-5edabe3ef82d", 'is_disabled' => FALSE ] ); @@ -60,10 +60,10 @@ public function testUpdateCheck3() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - 'point_expires_in_days' => 9805, - 'bear_point_account' => "d64426a4-a705-4a79-ab5a-aa2d135d029a", + 'point_expires_in_days' => 4917, + 'bear_point_account' => "9ec4d7b3-6797-4a91-82b0-fdf90cdc7109", 'is_disabled' => FALSE ] ); @@ -80,11 +80,11 @@ public function testUpdateCheck4() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - 'point_expires_at' => "2020-03-06T08:42:24.000000Z", - 'point_expires_in_days' => 4807, - 'bear_point_account' => "f22beb4e-a05a-4d14-b711-7187892faaa4", + 'point_expires_at' => "2023-02-13T17:32:32.000000Z", + 'point_expires_in_days' => 8643, + 'bear_point_account' => "c0540a40-0adc-4b7b-9bb9-59edfa1e7d66", 'is_disabled' => FALSE ] ); @@ -101,13 +101,13 @@ public function testUpdateCheck5() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - '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 + 'expires_at' => "2022-06-05T04:11:55.000000Z", + 'point_expires_at' => "2020-12-11T01:27:46.000000Z", + 'point_expires_in_days' => 4491, + 'bear_point_account' => "b9ac68ce-2cea-490d-8793-427b16d1e03d", + 'is_disabled' => TRUE ] ); try { @@ -123,13 +123,13 @@ public function testUpdateCheck6() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - '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", + 'usage_limit' => 2417, + 'expires_at' => "2026-01-18T10:29:27.000000Z", + 'point_expires_at' => "2020-10-13T06:16:41.000000Z", + 'point_expires_in_days' => 4862, + 'bear_point_account' => "41af95e2-3d54-4991-b94f-c977e4835ef1", 'is_disabled' => TRUE ] ); @@ -146,14 +146,14 @@ public function testUpdateCheck7() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ '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", + 'usage_limit' => 5924, + 'expires_at' => "2023-09-25T18:35:42.000000Z", + 'point_expires_at' => "2022-04-06T00:32:24.000000Z", + 'point_expires_in_days' => 8158, + 'bear_point_account' => "7b996ceb-e2e1-48d0-b02c-5cf7705995fd", 'is_disabled' => FALSE ] ); @@ -170,16 +170,16 @@ public function testUpdateCheck8() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - '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 + 'description' => "D0eLyZpFNZ79bus52pNLLPo", + 'is_onetime' => FALSE, + 'usage_limit' => 7584, + 'expires_at' => "2025-03-24T19:47:24.000000Z", + 'point_expires_at' => "2022-08-06T09:15:36.000000Z", + 'point_expires_in_days' => 7861, + 'bear_point_account' => "70108e13-b814-4953-921d-722526c89c5d", + 'is_disabled' => FALSE ] ); try { @@ -195,16 +195,16 @@ public function testUpdateCheck9() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - 'point_amount' => 1815.0, - 'description' => "8MFakoJp4sttlPyu0hLTf3LV1FvqM27O2bqybT3XFSWXNEvBDeb", + 'point_amount' => 7063.0, + 'description' => "CEhVooVmB4cFvbTIGcXWAqG4BSfipEZMFGhk16I7iXigWOnUAkBWGfv1h3SdKWf7Mk6qxlTgasH11ZahWwt0KCw4FDQO05qLTqGDbzQDuaFv4VsaDUMga8HPHLfj8VAxLQCn6DppPY7uZKs5wMf3MBYDCuFCMBOgtd28MFakoJp4sttlPyu0hLTf3LV1FvqM27", '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", + 'usage_limit' => 2449, + 'expires_at' => "2020-08-03T06:46:10.000000Z", + 'point_expires_at' => "2026-06-03T16:13:08.000000Z", + 'point_expires_in_days' => 2622, + 'bear_point_account' => "a69aa3f1-6679-49e2-bfd4-193394ba5d95", 'is_disabled' => TRUE ] ); @@ -221,18 +221,18 @@ public function testUpdateCheck10() { $client = $this->newClient(); $request = new Request\UpdateCheck( - "60141fdd-6ceb-42e1-9070-532c13725cf7", + "42e4c570-334e-4c3e-98b1-216afe7ba057", [ - '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 + 'money_amount' => 4647.0, + 'point_amount' => 6854.0, + 'description' => "WXNEvBDebROkI568yn3vAdg2WzE6cQfJbdKVhYmdIeaGtyZiVBFtaHsVEu5jHLt1IIKsQ450xUM6O5hfI4vi32RsgmtpDzruBR2bpCJbWCsF1XOMwOMfbCbRi8MeoObjQBbD5vivOmPF0WWyAe43BTjYiVtd", + 'is_onetime' => TRUE, + 'usage_limit' => 9498, + 'expires_at' => "2022-07-24T17:11:56.000000Z", + 'point_expires_at' => "2020-01-26T22:14:55.000000Z", + 'point_expires_in_days' => 1480, + 'bear_point_account' => "98e54544-381c-4b93-956d-36e72f84859e", + 'is_disabled' => TRUE ] ); try { diff --git a/tests/UpdateCouponTest.php b/tests/UpdateCouponTest.php index e0d997a6..0e9736d2 100644 --- a/tests/UpdateCouponTest.php +++ b/tests/UpdateCouponTest.php @@ -8,9 +8,9 @@ public function testUpdateCoupon0() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 7248 + 'discount_amount' => 9982 ] ); try { @@ -26,10 +26,10 @@ public function testUpdateCoupon1() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 8890, - 'name' => "r68fP2A8RCqVjIMZulltZtj" + 'discount_amount' => 9806, + 'name' => "KlOmIqFEpEzlkbZXsHeK96R7zZjofXop8q4Bfps6VchHwOSBaSPaNKxM4bPYP" ] ); try { @@ -45,11 +45,11 @@ public function testUpdateCoupon2() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 8983, - 'description' => "MfuDxn3QgsidEuf2NvBHeZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps6u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmOJlSRN9rogVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6", - 'name' => "MEWefziiHI3E" + 'discount_amount' => 8942, + 'description' => "UYIRAISeS032nbwP9uwXrTBWthKP8SFB1epaCsenfTVlWMFnuMgJI5wZ1", + 'name' => "cKhV86" ] ); try { @@ -65,12 +65,12 @@ public function testUpdateCoupon3() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 9849, - 'discount_upper_limit' => 4095, - 'description' => "NpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4eyiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2", - 'name' => "LnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzMBL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8" + 'discount_amount' => 8499, + 'discount_upper_limit' => 179, + 'description' => "fLMEPLjDOHvTYhO06QE7ACXnugqJAsKtBEhfGR87GnzBbDtq5K3lfoJShMC6uD2oZ5QpD7GXwDffXUtXBf9of2MaByNhkorzLzXS7sax7iYOPlAj5UlMDxo6iDarlMDzJC7wMAkFYNemkzZpvDvog0lglLv2T", + 'name' => "90aOF7qLZJG6mWFW8mYG8iBpA9wK7FerK" ] ); try { @@ -86,13 +86,13 @@ public function testUpdateCoupon4() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 3145, - 'starts_at' => "2024-10-02T04:32:20.000000Z", - 'discount_upper_limit' => 9077, - 'description' => "nWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wD", - 'name' => "3YT1DlU5jqThl0v0LlAw1sxsypKPTUBVqh1Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSu" + 'discount_amount' => 1389, + 'starts_at' => "2023-07-31T03:12:28.000000Z", + 'discount_upper_limit' => 934, + 'description' => "DJDN9kjnEAtWkM10yTZC3mt5NbCfjtxFXhJHyZxe38yvM1SEczLfO3bcMSuKdq3FslGbkHo1PhxbbT", + 'name' => "umORVj1yDfkPqeu7VGzhCxzDjEPJsArCV0qEvJPpVoq77PuYo1F" ] ); try { @@ -108,14 +108,14 @@ public function testUpdateCoupon5() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 2270, + 'ends_at' => "2020-01-09T00:59:02.000000Z", + 'starts_at' => "2023-08-18T03:35:57.000000Z", + 'discount_upper_limit' => 2276, + 'description' => "DE8cTf3i5qFGBCHYpL8ODBvwgaMAc0JPVvhl1tkrYQHQhhRs2PIaofbMQ1Wyxx6iPX8wNVpCNUyiEzApKM66ZkEOto1oTpzcZyDOIWVwoFQcmGYbDKlivyrCrMwSNsOLmKdqXCCeTbwp9jzAmkVeybVqp1Y", + 'name' => "zurkqIAwcJ63x2WplkqrFdjX6CETl764u1bEUuZsZXEigsXHGq2ofRToY5BXgCjIyZIJEzXmOEMtSXxzZokGYkRiArikWZSvWA49o8HQUEwypAtZsgS" ] ); try { @@ -131,15 +131,15 @@ public function testUpdateCoupon6() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 7620, + 'display_starts_at' => "2020-01-08T19:41:03.000000Z", + 'ends_at' => "2020-11-04T00:52:13.000000Z", + 'starts_at' => "2024-07-24T16:24:33.000000Z", + 'discount_upper_limit' => 9599, + 'description' => "S6m6W4ycEKeHr4636lRXTr2iPpZt0j1CI3l6J30qBjXV2f99mPOolq1eiW9RuNHXLsbYmrfHwiW6AehvKLu9jSykyDMxjQhXvqsNkUwpnxOJbMzTMi5NaDqvIkEgkU1iGJo4Veu1nD62pEennAfXO8IbuWWi93UYOzWoEzm8A2AGl9yivXZBxfQ6TXMiAoASOIgsAFMRnA6RqJv3Yoi1HNQ6SUUx", + 'name' => "HdkFZrSjoj4E906hjOODSKfXhRhf12fH18u3lWSr6bxBxhq8hzLJKGl7pegu99iLkGceRH09p3Djf3UXXM3TuFXvJTrk8Ursx5VM8ua" ] ); try { @@ -155,16 +155,16 @@ public function testUpdateCoupon7() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 8351, + 'display_ends_at' => "2020-11-14T07:30:37.000000Z", + 'display_starts_at' => "2022-04-17T04:23:33.000000Z", + 'ends_at' => "2026-04-30T01:32:57.000000Z", + 'starts_at' => "2025-02-07T05:33:25.000000Z", + 'discount_upper_limit' => 8569, + 'description' => "Qz7D46SGfEdpD0URVkFLTmlxp8SI9cXescrmSD5nkp7THGlyH3t2HB4wHFbCGx0Xzqx2wtaKpu1qdmiKn22F3ctIsxTTV24W3iMjgCaf4v1F7zb24TvVYyzGoNYLIXxqonkMGqXlJpJRQwp9nn9cv0p2uygmHKqGnnOeMtFto3ZtBMyDD0JldWFE85ZjbUaTENhmx5ChLqBvfWnrg6wEB880lMBDEtofOwuX4DmXscPUoeV1XH78h5Guq", + 'name' => "wmdx9H0OP7RXsy9" ] ); try { @@ -180,17 +180,17 @@ public function testUpdateCoupon8() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 8099, + 'discount_amount' => 5045, 'is_disabled' => FALSE, - '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" + 'display_ends_at' => "2021-05-25T15:04:25.000000Z", + 'display_starts_at' => "2020-10-28T00:09:22.000000Z", + 'ends_at' => "2024-01-09T02:06:57.000000Z", + 'starts_at' => "2022-05-07T00:51:33.000000Z", + 'discount_upper_limit' => 4023, + 'description' => "XdzXIFXZbjsiiNi", + 'name' => "XZ0lFTg0buQwKeaQ" ] ); try { @@ -206,18 +206,18 @@ public function testUpdateCoupon9() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 9800, + 'is_hidden' => FALSE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2025-11-20T02:34:56.000000Z", + 'display_starts_at' => "2024-06-24T01:51:17.000000Z", + 'ends_at' => "2025-03-31T05:45:25.000000Z", + 'starts_at' => "2021-03-09T04:00:04.000000Z", + 'discount_upper_limit' => 8031, + 'description' => "vtLGTKy9baAXpUrNxQgJv2d1RjRDvxxlQFhM2eopmIlmvqzqnGOYbg6rd", + 'name' => "qjemTbEPE7it6nxw8VlzyCNbz8zcALV0qfa" ] ); try { @@ -233,19 +233,19 @@ public function testUpdateCoupon10() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 8914, - 'is_public' => TRUE, - 'is_hidden' => TRUE, - 'is_disabled' => TRUE, - '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" + 'discount_amount' => 360, + 'is_public' => FALSE, + 'is_hidden' => FALSE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2023-05-22T03:16:41.000000Z", + 'display_starts_at' => "2022-04-06T06:07:30.000000Z", + 'ends_at' => "2022-02-12T10:30:43.000000Z", + 'starts_at' => "2021-08-09T17:49:18.000000Z", + 'discount_upper_limit' => 7536, + 'description' => "bWk8lIjmXf3crokuVBQQlsA8T5nZUMuDqspHuPmGiUoPt", + 'name' => "za9Foxx3GETJuunMNM7JUVu7YgDI0zSm63cU49za1QJALcpDZJ7YKoaGZqFQRMYj7eI0OiTgfPr68fP2A8RCqVjIMZulltZtjgMfuD" ] ); try { @@ -261,20 +261,20 @@ public function testUpdateCoupon11() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 8718, - 'code' => "qGzpCuGxgj", - 'is_public' => FALSE, - 'is_hidden' => TRUE, - 'is_disabled' => TRUE, - '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" + 'discount_amount' => 1912, + 'code' => "Qgsi", + 'is_public' => TRUE, + 'is_hidden' => FALSE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2025-03-13T18:25:35.000000Z", + 'display_starts_at' => "2024-06-05T18:41:57.000000Z", + 'ends_at' => "2020-06-28T04:06:10.000000Z", + 'starts_at' => "2020-01-14T00:33:18.000000Z", + 'discount_upper_limit' => 5954, + 'description' => "eZX8hYKnrzJWptMhyWUi64YZbGeyCSFHt3mcrCB8tq8q2IVY2UPxEK8mwHnigIC2xteLEmOps", + 'name' => "u4P22rjT4dupTBgLrwJlYmSqD3jh0KtoQaeaW3v7wYe7b9HTOawWBmO" ] ); try { @@ -290,21 +290,21 @@ public function testUpdateCoupon12() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 9267, - 'usage_limit' => 5310, - 'code' => "fTD5o4Kn6T", + 'discount_amount' => 9162, + 'usage_limit' => 5740, + 'code' => "S", 'is_public' => TRUE, - 'is_hidden' => FALSE, - 'is_disabled' => FALSE, - '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" + 'is_hidden' => TRUE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2020-01-21T11:29:07.000000Z", + 'display_starts_at' => "2023-08-16T09:10:21.000000Z", + 'ends_at' => "2026-02-08T14:03:05.000000Z", + 'starts_at' => "2021-02-28T20:31:09.000000Z", + 'discount_upper_limit' => 7154, + 'description' => "gVZwJO2xNcltqUbvpNyoJI0vqJ8n0oUjQYsKaRMsrJUacY2rYQO4gmGHCfbUV5BkcqYiSNlDYC6MEWefziiHI3EykNpjwCPjAkzyY2kmUe2JJ53U3N6F0e26pbO3HttlG4eyiatMI7VF3dtugJSz1Q3vovXNsgFsW05W19aXuGVVRQlUVJv9CZ2ZsBhmJBENJ2Jp2YLnPueitIaB8AWaFb8JKCZbl1FLUJSG0fudQ9bvTSzM", + 'name' => "BL1Qigyh82R8yfv5oZ1A8LucSTZwJytxSEpRfXYxFxMDsqe8NITOunWJGeGMfsCgwJoSsvq0p2vMuqT6yOdp5xmnGGOh83wDY3YT1DlU5jqThl0v0LlAw1sxsypK" ] ); try { @@ -320,22 +320,22 @@ public function testUpdateCoupon13() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 4048, - 'min_amount' => 131, - 'usage_limit' => 2541, - 'code' => "a5YJsZS", + 'discount_amount' => 4754, + 'min_amount' => 9311, + 'usage_limit' => 1175, + 'code' => "T", 'is_public' => TRUE, 'is_hidden' => TRUE, - 'is_disabled' => TRUE, - '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" + 'is_disabled' => FALSE, + 'display_ends_at' => "2022-08-31T17:30:42.000000Z", + 'display_starts_at' => "2022-06-01T03:46:12.000000Z", + 'ends_at' => "2026-07-01T21:27:25.000000Z", + 'starts_at' => "2022-12-08T11:28:29.000000Z", + 'discount_upper_limit' => 9320, + 'description' => "Y1karSx9kbbfwykuboyLPrrY2btuxHx9YophvSLqEzRt6XTR3oDpLSuhWGSp4IuNXEvAYv341undTljbWPhfpiwPMjupC65xVDnAJbsKD6b895iftqbY67Ut2zsAKH6lKT6gJXbaEKAddoUM0CRdaSDeoQ9lXXELG9oQdgpEse81VvpXr3", + 'name' => "euSevupI3Lg6cydG4CQY3zROLCcC3cDzGwCmJXHiF5C2aKJupg0Hph0EUCWBeCDLYnE6HiVXo" ] ); try { @@ -351,23 +351,23 @@ public function testUpdateCoupon14() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 9985, + 'discount_amount' => 8000, 'is_shop_specified' => FALSE, - '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" + 'min_amount' => 5063, + 'usage_limit' => 30, + 'code' => "9", + 'is_public' => FALSE, + 'is_hidden' => TRUE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2024-10-06T21:29:00.000000Z", + 'display_starts_at' => "2022-01-24T19:11:14.000000Z", + 'ends_at' => "2026-05-31T09:44:10.000000Z", + 'starts_at' => "2024-09-02T09:48:59.000000Z", + 'discount_upper_limit' => 5694, + 'description' => "WMyEn4Q3X3BDxBJJ5t6h3IPcBKQDcagEkitF8iACEva8PGaDArnv6F3HhJclpvEl0kBLWjkCR0Mj5I3Hqz506kx1IdZKDkCNCl989Inr9h5bKrK2A0mcFTtdvdsEkzDVoxJr0lAnMovtOnbZ68JstsOcxw5PoatcF0TU5W5omYIqjFLKdIYieVX7m2aCCypluKCuWAlkVHsDkHFJvihW5VcQOv2mc2ISnCuuu6HEZIC", + 'name' => "TUsFd55cysKpzPw06buTFvYo4vEubGw6jVHah2jNyPqoWcQPdnYsCcbQIY2KFXsspdkpVkTBJa3OTrsXs88kJNoIZazm0" ] ); try { @@ -383,24 +383,24 @@ public function testUpdateCoupon15() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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' => 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" + 'discount_amount' => 3692, + 'available_shop_ids' => ["c7709cd0-38d4-450c-a6db-7b18c5ccd65a", "a756ce84-ea1c-4381-b707-452d892ab3e5", "9198e666-e92c-4824-a83b-09c850eb46d6", "a019cf83-1214-470e-b007-87340ee57012", "1022d544-ef75-442f-b662-b8718d5e2b02", "7a0727d6-c207-498b-a02d-a67acc4cbb71", "f1190ebd-dfb0-4f48-b93a-1b9c40945268", "c39fd1db-2325-46bd-874e-2044b3c338c9"], + 'is_shop_specified' => TRUE, + 'min_amount' => 1288, + 'usage_limit' => 4891, + 'code' => "OGRlL4QD", + 'is_public' => FALSE, + 'is_hidden' => FALSE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2024-03-16T21:26:39.000000Z", + 'display_starts_at' => "2024-02-15T17:20:12.000000Z", + 'ends_at' => "2025-08-09T11:24:46.000000Z", + 'starts_at' => "2025-03-06T18:22:23.000000Z", + 'discount_upper_limit' => 2173, + 'description' => "zYwdZH6RYisLngmui2yyfAvCUPPfC6gPSyCFjnlF5wS89FXtStGksuJSc3uI6YbNMb4YSuPWKo7xO0kav9UABs7zcSSckrHrP7zrKa6Deu24AbEENpv2mR4vcFbZYPGyrsGLqJFlR", + 'name' => "MGfDCisIe5qHDsMdG7wbTK" ] ); try { @@ -416,25 +416,25 @@ public function testUpdateCoupon16() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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' => 838, - 'usage_limit' => 6051, - 'code' => "f9vj51i", - 'is_public' => FALSE, + 'discount_amount' => 5957, + 'storage_id' => "9fcc1670-210d-4c14-a958-911ac59654fa", + 'available_shop_ids' => ["5a6439d3-9dfe-473d-b1a1-378c95ad3002", "ebcbb1f1-f018-4425-a303-ca34dd6f9cad", "1a324ea1-1373-4bab-985d-e7d0ede5301b", "07b634fb-0761-4b00-a95d-f6e45b4e27b6", "b48a540e-e597-4f78-bd75-05f78ea20b1d", "268f9c55-4af1-4169-8db6-348486b6a734", "7c1999d9-34be-4f84-9952-ac54cc54ba59", "1b452bf4-e673-4a4f-a865-0a83342b0588", "2b62b1c5-10ce-4b97-9518-6a39a9954ad8", "48a95762-8877-41ec-8367-fb0ad7e7f677"], + 'is_shop_specified' => TRUE, + 'min_amount' => 1986, + 'usage_limit' => 7545, + 'code' => "OkIYkb", + 'is_public' => TRUE, '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" + 'display_ends_at' => "2025-09-27T12:51:13.000000Z", + 'display_starts_at' => "2023-06-25T10:14:41.000000Z", + 'ends_at' => "2021-12-31T10:33:10.000000Z", + 'starts_at' => "2024-02-26T11:10:44.000000Z", + 'discount_upper_limit' => 7760, + 'description' => "qh2Y5zV0C85Vn4l2htJKp8EeWwIbRZU73CECtq6YH4jkVjZI7iaSuegvmESb5ZkkQma", + 'name' => "0HXRKU" ] ); try { @@ -450,10 +450,26 @@ public function testUpdateCoupon17() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 646, - 'discount_percentage' => 9684.0 + 'discount_amount' => 4496, + 'num_recipients_cap' => 7960, + 'storage_id' => "0c4ce6fb-f1fd-4726-a15b-d0251c15ebba", + 'available_shop_ids' => ["c847f617-b076-45b4-ac1f-6e5ec6b275ff", "9b1a77fa-396b-48f7-ac04-01bdeef6b35a", "16c0b207-d246-49fd-be74-6d539d740fad", "db1da604-9fd7-41f8-b461-e140471d75d2", "f9a43945-6e1e-4417-838d-7f673a428d53", "c81bf52d-16b2-4f52-ba26-5673c05e8129", "65075ab2-417f-4c7d-9ff9-52ecf425b57e"], + 'is_shop_specified' => FALSE, + 'min_amount' => 8859, + 'usage_limit' => 9969, + 'code' => "ZtrGXV", + 'is_public' => FALSE, + 'is_hidden' => FALSE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2021-10-24T12:03:22.000000Z", + 'display_starts_at' => "2024-03-17T09:07:39.000000Z", + 'ends_at' => "2021-11-03T16:20:37.000000Z", + 'starts_at' => "2022-04-25T08:12:24.000000Z", + 'discount_upper_limit' => 3723, + 'description' => "REfojZVoiIjURbvF5cuoyvA3tbiunsY6SNRraYwc8QDfAEfV4F8XUQw7FOCvHUkEBp2LxsthHBe9EWUoT5QLe9Yg2CBY3rucfBues6uHoyn0kY9tu08AkjC0WPKbQvYow9FaOH3zD7SQmRuyNCMpGLgUAKK4AYXStTHGYGCT6FSvry2ciGzpWdg5yn158N5eaT1YQUtPEMBFK5RCvbOFISTKPBIbnB4IlVf", + 'name' => "zKQeAZtwqv4AGYkQ5YWzuO0mrMzlLTVYxU13omHKmdh" ] ); try { @@ -469,11 +485,10 @@ public function testUpdateCoupon18() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 9945, - 'discount_percentage' => 2129.0, - 'name' => "PT" + 'discount_amount' => 1202, + 'discount_percentage' => 9454.0 ] ); try { @@ -489,12 +504,11 @@ public function testUpdateCoupon19() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 2769, - 'discount_percentage' => 4924.0, - 'description' => "EDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVb", - 'name' => "nnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLS" + 'discount_amount' => 6333, + 'discount_percentage' => 4636.0, + 'name' => "xlmB0D7qlClsr3peE1RPsdDZEoaT5osfv5Au45ikmQzjXEIrL5tEVsPc" ] ); try { @@ -510,13 +524,12 @@ public function testUpdateCoupon20() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 1095, - 'discount_percentage' => 339.0, - 'discount_upper_limit' => 2271, - 'description' => "aP0CNMNfb6VowWUVfzovzP7VL5ebcijLtVhmlM6kBu7DCNg4aU7Bl", - 'name' => "WsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdno" + 'discount_amount' => 8844, + 'discount_percentage' => 8718.0, + 'description' => "qGzpCuGxgjotbAnDFm6nBFTBcp5MgKi6djde9q9Gx06zspIhW3gmaN6JcrvmX5G7cBGoNqTURH3hLLIVR7YcRrTeQOsLdvK2PUyIdpshyxjFJxJ7Fcj7Ywb40WRFS5iP8DHnWS95dKYCDWjMDqXUFGoRA4XvfiL62Wv2vl8qJafcwBDpLTRN1a0lar5cvmWk6HP3Edv56q9t5VGuIJJqB3hC6IgJljp1y8KOJgfu4W", + 'name' => "T3sPLKGiMRgfz5jiMdvRW63Z9043h9SU3fTD5o4Kn6TQ5PsH9YtmnNiOZyV9AO3DnB1YRES" ] ); try { @@ -532,14 +545,13 @@ public function testUpdateCoupon21() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 4461, - 'discount_percentage' => 2723.0, - 'starts_at' => "2020-11-26T20:15:19.000000Z", - 'discount_upper_limit' => 7587, - 'description' => "lXA8y2v", - 'name' => "wAsTNYaeLyV7CWdrmk" + 'discount_amount' => 2612, + 'discount_percentage' => 3647.0, + 'discount_upper_limit' => 9848, + 'description' => "lc6449ibwy8gDnWqdIP3eIh1PycrJFKeRKa6OogwkyZYeik5qw2qVOD7lJwoEqJ4uimGtF4vDevDABoV1497oKjyplKXUyjuZoAdZaiUShsjoKemD9IJVji3EhQ10nakJ4Xx7Bos", + 'name' => "awhL51XW0lt" ] ); try { @@ -555,15 +567,14 @@ public function testUpdateCoupon22() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 4634, + 'discount_percentage' => 4259.0, + 'starts_at' => "2023-10-24T19:51:54.000000Z", + 'discount_upper_limit' => 5688, + 'description' => "yBqdUl09HCPEoMCgQwCdLCVxkfS7LC09h1a33P4feIw8rNkq1IJcIVXzbXoLITUciADNRcm8cr7h7uvpVmJgh2hspBOtxaFVpQwu69vaYb020lVhpK1uj", + 'name' => "AV4SIGQkIPmfa5YJsZSIV5H0hKFZRjFJsBJwxE5ymHkkfvwj75uGxXyxLiKv" ] ); try { @@ -579,16 +590,15 @@ public function testUpdateCoupon23() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 2589, + 'discount_percentage' => 8953.0, + 'ends_at' => "2022-04-07T06:21:15.000000Z", + 'starts_at' => "2022-12-16T20:54:47.000000Z", + 'discount_upper_limit' => 3750, + 'description' => "Q0Cmh0GR2iNpQgbrTS2HEffP70DHCUohTMu269OO6DIw88je3Px2M6UQ20lAXsAZIDxFXqpctZUoXMEwvfZIhfCcdWRRWKBpAMRk3KT9aHDvn680BNVo61whu52VEWHzeXnCqnnjKe2ZokcQxt9okwN5c4Mkgq5YYKEEntoCEiLAHJ2sW9FitjutUJJsIkCXGENUTkzcX", + 'name' => "ykkKJlN107OaiUpqdHMS0BnQNQ8yntRPdiO7nDWAmmXsETvex6E" ] ); try { @@ -604,17 +614,16 @@ public function testUpdateCoupon24() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 9213, + 'discount_percentage' => 1179.0, + 'display_starts_at' => "2024-08-22T23:10:47.000000Z", + 'ends_at' => "2024-03-31T09:06:52.000000Z", + 'starts_at' => "2021-05-07T23:44:21.000000Z", + 'discount_upper_limit' => 5620, + 'description' => "MqxtCSMEZWLR3IYMZqZQp71KYV2dqAhSRH0jBaTj6CKr7da3Hc5MrDSrYQmTFD8MK4LhwIRladKEnUCUBMTsHjSLXQWZdqZHXOS9NchMxuvMOV5pE0ThIcNVnpd1n04FvafoOT5XflXygJfyBJl1nws6Ne3S7kdpHli9FCf9", + 'name' => "vj51iwXi5vVkai7fMidPllBkchJ2ELHNBkuEPtWGn" ] ); try { @@ -630,18 +639,17 @@ public function testUpdateCoupon25() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 1850, + 'discount_percentage' => 3093.0, + 'display_ends_at' => "2025-03-11T08:44:44.000000Z", + 'display_starts_at' => "2021-07-26T11:21:57.000000Z", + 'ends_at' => "2024-06-30T03:27:13.000000Z", + 'starts_at' => "2020-02-14T18:14:30.000000Z", + 'discount_upper_limit' => 1447, + 'description' => "tknXv7iBjpuz8kXfTQVtq7nYSMGg6A5q48d0VvhbqvZRxaI0AVDH5phIrM988xOpACBuWehCLI5Ithzpo1sbw0fi8Tfl4MiezYuuDN5NO2HkiJUlQ4dKgR3uo3pyHQ", + 'name' => "KCLEzAV2HW0T6wtgFowhjkpuax7inTCKJlAlkDX0z" ] ); try { @@ -657,19 +665,18 @@ public function testUpdateCoupon26() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 888, - 'discount_percentage' => 817.0, - 'is_hidden' => TRUE, + 'discount_amount' => 2100, + 'discount_percentage' => 2903.0, '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" + 'display_ends_at' => "2023-05-19T00:53:00.000000Z", + 'display_starts_at' => "2025-01-17T01:02:54.000000Z", + 'ends_at' => "2023-12-25T17:43:44.000000Z", + 'starts_at' => "2025-07-23T12:14:40.000000Z", + 'discount_upper_limit' => 4671, + 'description' => "t1pGDCB7WpLioRLUylhwp3jBXylmnzTDYQPTQEhEDpiIl88uXhFr9tzNaCFLhrW7Qg63LOoyDRk2frbKYDtHXRSpeSviFk4W1qsOLMcNwe8KEeqmGGreSt4nt1ybC0Ywm3a7y1jkUDzYlQVbUnnRBBQRDsGnvgO2bodBPeKpRFsQIEwGMkEBFs4OKbpkXgOJ3P1nM9riBWugVW8sRaEhx8aJkSJHuUfzU3cxqLSG8S4aP0CNMNfb6VowWUVfzovz", + 'name' => "7VL5ebcijLtVhmlM6kBu7DCNg4aU7BlWsNECFWA4hHlvtcjGtIPadSKiVX8t6IuP7AfSh1iSdnomWlXA8" ] ); try { @@ -685,20 +692,19 @@ public function testUpdateCoupon27() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_amount' => 5298, + 'discount_percentage' => 8831.0, + 'is_hidden' => TRUE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2021-01-14T13:29:32.000000Z", + 'display_starts_at' => "2025-09-26T05:00:51.000000Z", + 'ends_at' => "2021-08-24T08:11:06.000000Z", + 'starts_at' => "2021-11-02T20:51:13.000000Z", + 'discount_upper_limit' => 4250, + 'description' => "TNYaeLyV7CWdrmk7DRyx2nAdRh4U2Gnj6HilrfsKlPIExrXeCFOu5KxrV4xhz7DzBywKIciMlN0S7L0N0uBHj0xIlmI7crwjgiJmBq8x2BMoiejWmPY8", + 'name' => "wKCFWRUhTWJtrSHM5KvGCx3jvLeQXqJ7fOtRApW564YK0LvLN69VHlYJhXH6cUQL7XLfiXA0zUZ8WIiKSeWU9z6lAbD3wpFlmsWusC8RGaBKUJdHLf" ] ); try { @@ -714,21 +720,20 @@ public function testUpdateCoupon28() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 8671, - 'discount_percentage' => 4903.0, - 'code' => "6", - 'is_public' => TRUE, + 'discount_amount' => 2052, + 'discount_percentage' => 2745.0, + 'is_public' => FALSE, 'is_hidden' => TRUE, 'is_disabled' => FALSE, - '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" + 'display_ends_at' => "2022-02-27T14:13:43.000000Z", + 'display_starts_at' => "2022-01-08T12:00:33.000000Z", + 'ends_at' => "2024-05-20T21:17:17.000000Z", + 'starts_at' => "2025-12-15T06:18:21.000000Z", + 'discount_upper_limit' => 6829, + 'description' => "RbmzAo5vzrqC43kvR5VzS4JSx7Qk5qYm8EJV1By6vGk0FuWZ3ptkSyNBcc9paWacdvlF8sKq6M8TMch0t9MLsXgvG8EYKbsPpBkO0z5h9VDX3NEhsO0rjGagO", + 'name' => "Q6x9sSfu0zX8zdCniT7rbp4RdF8jzLLX07kGwmRZR89QJDyeQCnprhi7qh3KP4T37Wi9g9nZZh" ] ); try { @@ -744,22 +749,21 @@ public function testUpdateCoupon29() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 2675, - 'discount_percentage' => 1484.0, - 'usage_limit' => 5487, - 'code' => "6", - 'is_public' => TRUE, + 'discount_amount' => 4130, + 'discount_percentage' => 643.0, + 'code' => "iq9TM1kLn", + 'is_public' => FALSE, 'is_hidden' => FALSE, 'is_disabled' => FALSE, - '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" + 'display_ends_at' => "2025-09-23T07:42:21.000000Z", + 'display_starts_at' => "2024-07-25T14:08:33.000000Z", + 'ends_at' => "2023-01-04T05:32:31.000000Z", + 'starts_at' => "2020-12-02T21:13:00.000000Z", + 'discount_upper_limit' => 7081, + 'description' => "yQ1SL4LwXctk2uyuazqzFpngLk90ZBFe71DIECbUavopCer6amUqWii2uDVrmTki6pqO0f8cnptMkBRjmpnnbeCg4xumOoxK0oT4F795unttA065Yr03Qzj1SYSb", + 'name' => "k7QSMdkkKPrtzfsCSKaR3OFn1WKJz5hhBZBCZgSERTDaoK9IqITw9RXh5VLaBXSS3EzsrMpj8GBIyJaRyweuGKy2nXN4UBPwGQ9mhvxLr7QQx" ] ); try { @@ -775,23 +779,22 @@ public function testUpdateCoupon30() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 8804, - 'discount_percentage' => 7125.0, - 'min_amount' => 8575, - 'usage_limit' => 7742, - 'code' => "D", + 'discount_amount' => 3847, + 'discount_percentage' => 9682.0, + 'usage_limit' => 2228, + 'code' => "V", '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" + 'is_disabled' => FALSE, + 'display_ends_at' => "2024-03-08T02:32:59.000000Z", + 'display_starts_at' => "2025-11-21T09:13:43.000000Z", + 'ends_at' => "2025-09-01T06:26:32.000000Z", + 'starts_at' => "2020-04-25T17:58:08.000000Z", + 'discount_upper_limit' => 3328, + 'description' => "LknXBVXV6IePzMvb8rIAKh", + 'name' => "AUImOpB9NJd0FGb0jOdIa2VbV1E7pIBf60ZOpXb0uUTjEzrW5FEq6VpVqu1DpFd0JaB" ] ); try { @@ -807,24 +810,23 @@ public function testUpdateCoupon31() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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' => "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" + 'discount_amount' => 7539, + 'discount_percentage' => 2236.0, + 'min_amount' => 2000, + 'usage_limit' => 9538, + 'code' => "jjxsN8", + 'is_public' => TRUE, + 'is_hidden' => TRUE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2024-03-24T04:31:49.000000Z", + 'display_starts_at' => "2024-08-18T02:06:47.000000Z", + 'ends_at' => "2024-11-16T16:03:00.000000Z", + 'starts_at' => "2025-05-16T23:26:14.000000Z", + 'discount_upper_limit' => 8571, + 'description' => "6MclFLskpVJhF8OvhWGp3gTZC60RTw4fZ8zWBqSC3vDIMcnooU2vsEkhFzbMP7H4x70jy8CyXSjsNQfhm4JdiSR8LU0sAxVpKo9Pr8tnCR4b3VVcnR7ySaTJSLXaRbjFaOCY9HY0faJMcRsZ3tfn14pqdpY2gOVzxC2AMFcqtkzhdfPKiy9SERDVnpaYhOvVB8b8Y5rPTIoQafvlfkuyBchbjOVFfaAmwoPiUeFs2", + 'name' => "qGGZk77FXigkPx1NC7bcdhHDyq2BmegmNcooOzsV0UAnFDq2j42XbKSjWX0mczdG92I3EQWa6MviKhzgN1WE1E9QE8I1WOtKGTOoDsggK2zVvIrNmjPyMt7JZTknlcS" ] ); try { @@ -840,25 +842,24 @@ public function testUpdateCoupon32() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_amount' => 8850, - 'discount_percentage' => 3071.0, - 'available_shop_ids' => ["939d6507-7f99-4488-8a01-a9a02b633607"], - 'is_shop_specified' => TRUE, - 'min_amount' => 5902, - 'usage_limit' => 1422, - 'code' => "80a47LYIcD", + 'discount_amount' => 5452, + 'discount_percentage' => 8271.0, + 'is_shop_specified' => FALSE, + 'min_amount' => 5249, + 'usage_limit' => 1429, + 'code' => "Hki7iEUU", 'is_public' => FALSE, - 'is_hidden' => TRUE, - 'is_disabled' => FALSE, - '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" + 'is_hidden' => FALSE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2023-04-28T18:22:54.000000Z", + 'display_starts_at' => "2025-06-01T21:20:10.000000Z", + 'ends_at' => "2023-11-13T10:01:23.000000Z", + 'starts_at' => "2024-08-08T19:49:45.000000Z", + 'discount_upper_limit' => 7682, + 'description' => "8I8w6YX9AjYRSoiU1BYQYTGkBMdZ9gxwOlUDOeBSRiyqeameMaY0bgN8gTUkelv3hkGmk4iWQZAVafOlabiOcEnloh2DXft8ZR3ZIT5H8aSOl3MDXnG9yHqEAThwDuq1zewsMIx1hpzHiKxcCexEPrWNcD1BCJ2Q7A3yxMyBqUSnmfmyMf158jbodxUJxcIS6QwIFvAWCZsB1EYOxuNXsb8K4XyQ60l6nZCLpElUd6iH1X66E0nqBBGmKnZ6", + 'name' => "uDIn3iuFQrrgeXzyNXNrNkeWa" ] ); try { @@ -874,26 +875,25 @@ public function testUpdateCoupon33() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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"], + 'discount_amount' => 697, + 'discount_percentage' => 9896.0, + 'available_shop_ids' => ["14e28e5f-7885-4568-9773-2e886af645cc"], 'is_shop_specified' => FALSE, - 'min_amount' => 1081, - 'usage_limit' => 7481, - 'code' => "Q", + 'min_amount' => 5487, + 'usage_limit' => 9232, + 'code' => "RhlRrNd", 'is_public' => TRUE, - '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" + 'is_hidden' => FALSE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2020-09-27T22:40:13.000000Z", + 'display_starts_at' => "2021-11-23T07:14:41.000000Z", + 'ends_at' => "2022-10-24T11:13:56.000000Z", + 'starts_at' => "2026-02-08T07:41:05.000000Z", + 'discount_upper_limit' => 7811, + 'description' => "yDW12s5SKsd06fYHa9pHdUJ2NkpD9XRln1g4q1AmzenaBAIYsPX5BEVEkSwN7Jl7UfMqNeIWxDQ5mYkDBp76iPlz0WyF7I2Snzg812cd0lMhCHFE2kwBpeHriIaXxYmUfeD23BKTCZPKhRk3w9r2MS5qnBpeG29hBWbNKIGuoyWD3", + 'name' => "HeU5bcdtREmG3PoPoUnVURoRDP0303M0EUzCR0XC7UBINwESq7hPy7a3F5MBC2C7VfA" ] ); try { @@ -909,9 +909,26 @@ public function testUpdateCoupon34() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 7385.0 + 'discount_amount' => 5419, + 'discount_percentage' => 3364.0, + 'storage_id' => "839275be-93ce-4775-8a33-317082b182a6", + 'available_shop_ids' => ["3895162c-e2b2-474b-8dc4-15a18d431c57", "db683b0a-c918-447e-8f38-190c0649eb54", "1e6ff891-2f99-4144-b20b-364cf7d1f33b", "1c8a0098-6858-4a9b-a990-ec44f7c96cfc", "c88d6a71-0b38-47be-9a83-859f3aaa76cd", "88064234-1cc8-4d94-b00c-820790b9b9d3", "d15b0698-8da9-4425-8a7b-4e37d1ad2b2f"], + 'is_shop_specified' => TRUE, + 'min_amount' => 4453, + 'usage_limit' => 1903, + 'code' => "VM6P", + 'is_public' => TRUE, + 'is_hidden' => FALSE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2021-10-12T07:47:24.000000Z", + 'display_starts_at' => "2020-03-25T06:32:14.000000Z", + 'ends_at' => "2023-08-21T12:51:45.000000Z", + 'starts_at' => "2022-08-19T14:52:23.000000Z", + 'discount_upper_limit' => 2466, + 'description' => "dlDXYh8F3jX5Rw62VEObOlMsiJRl1b2ESa", + 'name' => "JKCDCVaIjvXY9buv1PGDaqpxNAcB7XJ2PMH0HA7mMCx" ] ); try { @@ -927,10 +944,27 @@ public function testUpdateCoupon35() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 1498.0, - 'name' => "6Fkp0v2rObj5KP7CaX5R9O7hn" + 'discount_amount' => 5228, + 'discount_percentage' => 7427.0, + 'num_recipients_cap' => 4603, + 'storage_id' => "645f3969-09df-40e1-8dca-2d31f0c391ee", + 'available_shop_ids' => ["aeacade8-4cc9-49b9-9379-720461430209"], + 'is_shop_specified' => FALSE, + 'min_amount' => 8056, + 'usage_limit' => 5879, + 'code' => "pdyrj7Y", + 'is_public' => TRUE, + 'is_hidden' => TRUE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2025-07-07T00:23:55.000000Z", + 'display_starts_at' => "2025-01-26T23:33:54.000000Z", + 'ends_at' => "2025-10-04T13:18:24.000000Z", + 'starts_at' => "2022-01-16T01:26:13.000000Z", + 'discount_upper_limit' => 7933, + 'description' => "BIbPwZWptKeWMAfjTzhjO10bQwyTU6ZUhrOp80a47LYIcD", + 'name' => "79HHiydYwYbStQsIHShYuqMOfry8huKLaun9q8fRCMt2pzYekawpUo" ] ); try { @@ -946,11 +980,9 @@ public function testUpdateCoupon36() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 1999.0, - 'description' => "MfDj4u8or1Z5ajnFBytvfCWU5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhvmvIjVKe7aM7QiN4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSB", - 'name' => "niTvgiF" + 'discount_percentage' => 9644.0 ] ); try { @@ -966,12 +998,10 @@ public function testUpdateCoupon37() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 2915.0, - 'discount_upper_limit' => 5152, - 'description' => "fXoobW27D2zSsjxSJQCC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1", - 'name' => "VXjUggH7qMtHhSfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8M" + 'discount_percentage' => 4774.0, + 'name' => "uvYHKlj0GUL0Fcnz7fEngR6pF3m54VmwYrgFgT3RyUt1Kexb2ZIYN08OgDDQYpUk" ] ); try { @@ -987,13 +1017,11 @@ public function testUpdateCoupon38() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 201.0, - 'starts_at' => "2021-09-26T21:03:13.000000Z", - 'discount_upper_limit' => 348, - 'description' => "c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6mDyiAjmPC8FhIFplNkUQpOFZAAuAkdYYYV8q02r77ePIgPu4dPH7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5x", - 'name' => "iIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6zSSSsJChBCfGVrTTzFEA3cEkuniAENmbJtM74yoK3yNaovdjb7urlPondGWEfVzKMwihh3UCJATPnnGfbSAjt8y1LpRX9w" + 'discount_percentage' => 4994.0, + 'description' => "QvTpwbva3X3fUufQzzx2hzebS68SpNEGkfmS3Uyy5Zn41VzLKUg3om1YNfeeKoLdFE8Hmt9R8Bv1AJsBz3l6W699PQnfTErfIkmiU4i2bFcYt3zvnnQAgg6WKGNaTc3A08bOic61u1yVQPNCQEFIkbwhO9RJiR7mxn7kYGzShazSiZH6DDfNqfsVRi", + 'name' => "zxzsVzVJLxpF9uCjOUSNMH9fWh27PiOpr3HMMXsb4Lh4b0Gko8iE" ] ); try { @@ -1009,14 +1037,12 @@ public function testUpdateCoupon39() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_percentage' => 8656.0, + 'discount_upper_limit' => 8764, + 'description' => "Cu0AOaTlKzyVFYYoK00acoGlEqYYGWZUMgU5LJ8nedbEkL6VCbZl", + 'name' => "YCZFu0YjXrvick1kbCzvMElblaTUskxDWTi4syFdijXYZ6Fkp0v2rObj5KP7CaX5R9O7hnOQMfDj4u8or1Z5ajnFBytvfC" ] ); try { @@ -1032,15 +1058,13 @@ public function testUpdateCoupon40() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_percentage' => 9478.0, + 'starts_at' => "2020-04-10T14:21:15.000000Z", + 'discount_upper_limit' => 3594, + 'description' => "5lvasIan6Df8qsq2k3ETquM3SQujWFDE153B47G8gAIFr9zY1ABG4Q6S1AZ81ee9F1zaeUGprRtPpZgZzOhvmvIjVKe7aM7QiN4LuTtB8ZF5mN9clYyKl8cUsYw8CW8rHVcmWZsjKlFT0f7did2pSfVDNNjekhaUaqNZOry7pQcwkQvvHfTZTUiaSBniTvgiFcfFWfXoobW27D2zSsjxSJ", + 'name' => "CC2TKE3m70u0i2E7e3WCog3HknLhb4mGHjaX24jJAlJFQ82MhyQQoipgFNSux0jeobdQD1VXjUggH7qMtH" ] ); try { @@ -1056,16 +1080,14 @@ public function testUpdateCoupon41() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_percentage' => 9704.0, + 'ends_at' => "2023-11-23T15:07:20.000000Z", + 'starts_at' => "2025-04-19T10:14:30.000000Z", + 'discount_upper_limit' => 8636, + 'description' => "SfZdXUyjb1NxKa8yAWf3eI4rn2GKxT8MfsHveV88627AlMJYf8MI0c9iCp3raZonaiDazAfoVN5ZcNoMxEFE11voG9m7gWIlidcsFhnnSlOPQSKVW980GqQVfPuvUPiEFV6mDyiAjmPC8FhI", + 'name' => "FplNkUQpOFZAAuAkdYYYV8q02r77ePIgP" ] ); try { @@ -1081,17 +1103,15 @@ public function testUpdateCoupon42() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_percentage' => 8728.0, + 'display_starts_at' => "2026-05-30T11:09:41.000000Z", + 'ends_at' => "2021-08-20T08:47:48.000000Z", + 'starts_at' => "2026-02-06T07:00:41.000000Z", + 'discount_upper_limit' => 5476, + 'description' => "H7ImSF7bIQ97lNoNEqqi11P4GN23Eb6NlDd7BTwpYu4Valw5xiIJ7Q1Cipp2CPMRifbrHbdPk0z0U5np6", + 'name' => "zSSSsJChB" ] ); try { @@ -1107,18 +1127,16 @@ public function testUpdateCoupon43() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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" + 'discount_percentage' => 6983.0, + 'display_ends_at' => "2023-04-02T03:56:06.000000Z", + 'display_starts_at' => "2025-10-08T21:19:46.000000Z", + 'ends_at' => "2024-01-16T06:23:16.000000Z", + 'starts_at' => "2022-10-25T00:37:40.000000Z", + 'discount_upper_limit' => 130, + 'description' => "FEA3cEkuniAENmbJtM74yoK3yNaovdjb7u", + 'name' => "rlPondGWEfVzKMwi" ] ); try { @@ -1134,19 +1152,17 @@ public function testUpdateCoupon44() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 9920.0, - 'is_public' => TRUE, - 'is_hidden' => TRUE, + 'discount_percentage' => 6208.0, '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" + 'display_ends_at' => "2020-08-18T23:12:40.000000Z", + 'display_starts_at' => "2024-11-23T10:30:11.000000Z", + 'ends_at' => "2020-01-21T15:44:21.000000Z", + 'starts_at' => "2023-10-10T00:24:42.000000Z", + 'discount_upper_limit' => 1450, + 'description' => "ATPnnGfbSAjt8y1LpRX9w3aEMSDM7H", + 'name' => "DKpMVCMs6AqPF1N4VGIihJYcZH1yqyLKdrb7VdvBferrdPPsgFTBp21" ] ); try { @@ -1162,20 +1178,75 @@ public function testUpdateCoupon45() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", + [ + 'discount_percentage' => 5856.0, + 'is_hidden' => FALSE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2025-09-14T07:31:19.000000Z", + 'display_starts_at' => "2026-05-18T00:12:06.000000Z", + 'ends_at' => "2024-11-22T05:35:11.000000Z", + 'starts_at' => "2024-07-03T09:27:12.000000Z", + 'discount_upper_limit' => 9717, + 'description' => "NthlN8cTNxtClPPAh3ydu7juMaO7kqGjaASQkqyw2Q45pim16jWY8Li2yJuAILC9WmiQzTAP0hsvYk94ECXfwyrT6FNWSeiPJDkaNGUUFy37fVBCxguWkgEaSRxikajDhky1e9MUM8ZY9eEBDTjFI18oRpgCoDiEOfsuO3LMtz", + 'name' => "Pm5pmHiztzTLcjSeNyveotr1Sb" + ] + ); + 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 testUpdateCoupon46() + { + $client = $this->newClient(); + $request = new Request\UpdateCoupon( + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 9655.0, - 'code' => "LViM", + 'discount_percentage' => 3325.0, + 'is_public' => TRUE, + 'is_hidden' => FALSE, + 'is_disabled' => FALSE, + 'display_ends_at' => "2021-03-18T14:12:47.000000Z", + 'display_starts_at' => "2022-01-19T12:01:32.000000Z", + 'ends_at' => "2022-08-12T07:54:33.000000Z", + 'starts_at' => "2023-06-21T12:02:26.000000Z", + 'discount_upper_limit' => 7501, + 'description' => "h2SXQaAm6iMSYVoPQWfV62UhTGJS1L9KLOsA2Q2Z23Mwd98ipOldTUQCXPcZtLDZ6t1d7NhS3tIbiaQ9UqJHQZFkEmVia7WMZwoONY9mYcjUD3BWfN3hpObBbd0WPCuqh90wnUEefdvvGn56xgqcINC0MaOVTzOYUS4YiFzadS1dG4VhCAXd", + 'name' => "vLcusNkP92lEHAtBr5uMSg7mI2h9L5UgNj" + ] + ); + 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 testUpdateCoupon47() + { + $client = $this->newClient(); + $request = new Request\UpdateCoupon( + "82d0fe37-c47e-4b25-a213-74063216750f", + [ + 'discount_percentage' => 7750.0, + 'code' => "9pGXPoR", 'is_public' => FALSE, 'is_hidden' => TRUE, '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" + 'display_ends_at' => "2023-04-05T07:18:14.000000Z", + 'display_starts_at' => "2023-03-12T23:18:51.000000Z", + 'ends_at' => "2025-04-30T19:52:55.000000Z", + 'starts_at' => "2020-05-02T13:48:56.000000Z", + 'discount_upper_limit' => 8249, + 'description' => "G2E8mJwg74tJdyJ5Llab29gfUQ6hTQL306GhITMLHDmfb2965KcWooPsLAa0LofoeILq2j1JbokM11iel9SifEKQQKEl5jTOYEn550ChTMJy5Ri4", + 'name' => "QipR66DYXbWwtCBK4yI7b7ruIn1DQefV0LKmn0D6u1aqXUgLXLPq2aRw08aQ0rfHosccmXhG1yeE5aq4GKVSCfP0aoPIG5NuiBMU7rfLf6FhpORYw57l88LjJn3" ] ); try { @@ -1187,25 +1258,25 @@ public function testUpdateCoupon45() $this->assertTrue(false); } } - public function testUpdateCoupon46() + public function testUpdateCoupon48() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 3879.0, - 'usage_limit' => 7741, - 'code' => "FPReFsmx", + 'discount_percentage' => 4732.0, + 'usage_limit' => 8402, + 'code' => "RSOmlXSQfz", 'is_public' => TRUE, 'is_hidden' => FALSE, 'is_disabled' => TRUE, - '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" + 'display_ends_at' => "2022-11-23T23:21:46.000000Z", + 'display_starts_at' => "2022-11-02T03:53:56.000000Z", + 'ends_at' => "2026-02-26T00:36:13.000000Z", + 'starts_at' => "2025-01-01T02:40:39.000000Z", + 'discount_upper_limit' => 7790, + 'description' => "Dxt4Xew7YzDaZ1J9OdsQM2IVUV93tsgTE0JEew3ek7732woVpaWAn4e207OnXy1NWRJfp7ZK3WimQaowti0F0S2aIOKkN5iwpVUwFU1amkd1FBZBysFgH8TiyAaF4dUSAbqyi68iyJ302sQl233vCftoqwC5tymvF1K23X2uYu46ypSW9Pxt", + 'name' => "aID1SUCfz9yEelMoF9a26c2RLHzQWOO42l0o0g8SXRzZ3pUKHHeXuuwg12Ygg3AsTOryINKyRmJ3gWCDcmsuvkMrJePtGFhv4aIw1aGtGR" ] ); try { @@ -1217,26 +1288,26 @@ public function testUpdateCoupon46() $this->assertTrue(false); } } - public function testUpdateCoupon47() + public function testUpdateCoupon49() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 8456.0, - 'min_amount' => 2768, - 'usage_limit' => 9997, - 'code' => "lq0FFnt", - 'is_public' => TRUE, + 'discount_percentage' => 7427.0, + 'min_amount' => 8702, + 'usage_limit' => 1843, + 'code' => "fEQ", + 'is_public' => FALSE, 'is_hidden' => FALSE, 'is_disabled' => FALSE, - '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" + 'display_ends_at' => "2021-05-14T20:59:42.000000Z", + 'display_starts_at' => "2024-04-21T08:23:22.000000Z", + 'ends_at' => "2024-06-11T07:58:58.000000Z", + 'starts_at' => "2024-02-24T23:41:21.000000Z", + 'discount_upper_limit' => 8943, + 'description' => "XnXONHGXDMcl8tuhVdB5KkP8PHvZEmmcBKkGsr9sdEDTBkey7pr4d2jpa", + 'name' => "f36YY6mrG9Y2ztoKUUUx5B1bSO8xEgnoe60dnWT" ] ); try { @@ -1248,27 +1319,27 @@ public function testUpdateCoupon47() $this->assertTrue(false); } } - public function testUpdateCoupon48() + public function testUpdateCoupon50() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - 'discount_percentage' => 2914.0, + 'discount_percentage' => 7766.0, 'is_shop_specified' => FALSE, - 'min_amount' => 5095, - 'usage_limit' => 9999, - 'code' => "mtEHAWzKV", + 'min_amount' => 7661, + 'usage_limit' => 783, + 'code' => "x115", 'is_public' => FALSE, 'is_hidden' => FALSE, - '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" + 'is_disabled' => TRUE, + 'display_ends_at' => "2020-05-24T20:18:29.000000Z", + 'display_starts_at' => "2023-06-18T19:53:10.000000Z", + 'ends_at' => "2022-01-25T09:14:02.000000Z", + 'starts_at' => "2024-10-07T21:49:08.000000Z", + 'discount_upper_limit' => 7606, + 'description' => "CGgqZsePkl6iY0bdXM6Nza2rTctUJQmh0gNd3qkWY4lVW5zCUF3zWzIdrHm6OsiyHBxsWBtx4G7cLViMByCBNzcDCX5bbsPzVUGeD2BWp2XUNEsAtEjlivj0NhalsavWYZduuXynvh05rJdAnnKPkjJzRbGyuQYyb8948tP6VkRaNaNdjmk2wkclkjGIdrGdF8qpLKYfd3JbJX5QcdKyJ1DmsToKu4w1tRUaP", + 'name' => "awM87Mt7bWysOyzqkBrGaMjb1sugqjEeek3DeIDBfKsRBbYLkU2TfJXz" ] ); try { @@ -1280,28 +1351,28 @@ public function testUpdateCoupon48() $this->assertTrue(false); } } - public function testUpdateCoupon49() + public function testUpdateCoupon51() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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"], + 'discount_percentage' => 6261.0, + 'available_shop_ids' => ["50ab7f42-e9aa-4c60-b13c-0847cbddcf27", "5db6de3d-8907-4b03-8697-72d0d7abd4d2", "a706f965-281d-4046-8173-bc0d4abe958c", "fb3da3fb-80ab-4cde-a1ed-2302272686f8", "2e57cd2c-5e61-4bf8-9495-81b8e2353f2e", "a4369958-9417-4b0d-9d2d-a11e8a8a8a3c", "b12cb5de-ada3-41f7-92f5-8b80d1ab0363", "edbce1b6-8334-4f9f-be60-a20178def6b9", "67e9137d-73e4-43dd-baa4-caeec040adde", "3b1412ea-cbf3-4f20-9ff1-773a863af827"], 'is_shop_specified' => FALSE, - 'min_amount' => 2018, - 'usage_limit' => 1453, - 'code' => "DROtzb2h", - 'is_public' => FALSE, + 'min_amount' => 7719, + 'usage_limit' => 8094, + 'code' => "ML0aHpiMu", + 'is_public' => TRUE, '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" + 'display_ends_at' => "2025-07-04T16:39:40.000000Z", + 'display_starts_at' => "2024-05-16T01:39:05.000000Z", + 'ends_at' => "2021-10-22T17:42:48.000000Z", + 'starts_at' => "2020-04-24T17:13:27.000000Z", + 'discount_upper_limit' => 6124, + 'description' => "U", + 'name' => "rE8EACTMWkW53gnqE0TT1OD00WYy85d5RKAlbrPQ0st0t7yJcv8GqBqgGEHafl1jNP9k7uydClg9A7an27PrV" ] ); try { @@ -1313,29 +1384,64 @@ public function testUpdateCoupon49() $this->assertTrue(false); } } - public function testUpdateCoupon50() + public function testUpdateCoupon52() { $client = $this->newClient(); $request = new Request\UpdateCoupon( - "694d5520-76fe-4c3f-aaac-0966b2ebfd3d", + "82d0fe37-c47e-4b25-a213-74063216750f", [ - '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' => 4503, - 'usage_limit' => 9296, - 'code' => "mdwaTBcNwq", + 'discount_percentage' => 7824.0, + 'storage_id' => "0f9cefbf-ab78-44c2-a2f1-8f699f273b14", + 'available_shop_ids' => ["81e6f739-0da9-4a59-990a-3c57d79cee0d", "1105550d-4c21-4fef-b8ab-7f7844171f94", "ff0f42ea-94ed-41bd-ba42-a011dbadd840", "79334d1c-ac5f-41c7-aaca-0a5622a9d3a3", "c3bf7877-96d4-4454-9be1-3da3bc3b10be", "5efe1c2a-255f-4e22-9c04-acaa11d1b4dd"], + 'is_shop_specified' => TRUE, + 'min_amount' => 7209, + 'usage_limit' => 7259, + 'code' => "AXyFjLag", 'is_public' => FALSE, 'is_hidden' => FALSE, 'is_disabled' => FALSE, - '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" + 'display_ends_at' => "2026-05-09T20:02:24.000000Z", + 'display_starts_at' => "2020-01-15T04:40:07.000000Z", + 'ends_at' => "2025-06-07T13:43:36.000000Z", + 'starts_at' => "2022-11-23T18:52:00.000000Z", + 'discount_upper_limit' => 9997, + 'description' => "lq0FFntKGY10p27NPGQTdAXKNGuLNgDO4Ma1ptA22IkyjkgPuZUMAq2NjJocNYKTrm2m1ssPqyT3XyCFCrR8uZnHFgU1ZOwuoeukDxIIOg9CcbCgtxt4qQAP06TDLYKBc2zPf6wToG8lTKcMPiFJX3LNKTomMc8wnROYRP673oHx5N3DOO7AdxANDE2ea2N2bsCqxQkk2AG5TTqX05IlCZ5tUdSwXVRIVCnlZj6NtOwX2FI8Wr1369u", + 'name' => "aTF42abkgSmtE" + ] + ); + 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 testUpdateCoupon53() + { + $client = $this->newClient(); + $request = new Request\UpdateCoupon( + "82d0fe37-c47e-4b25-a213-74063216750f", + [ + 'discount_percentage' => 2858.0, + 'num_recipients_cap' => 9211, + 'storage_id' => "279cd34b-9f3b-4f56-adf7-0c6d15bb24f1", + 'available_shop_ids' => ["8c395f61-95f8-4601-a060-29315433af51", "233bad21-edb1-42dc-bd03-58c65374d01c", "06b2a068-8b5d-4761-8cdf-23ad79e70cb0", "52ae6904-8988-401b-a0ef-b326838d1c31", "632def4a-080b-43f8-925d-9925d21e6a05"], + 'is_shop_specified' => TRUE, + 'min_amount' => 1670, + 'usage_limit' => 5220, + 'code' => "7s", + 'is_public' => TRUE, + 'is_hidden' => TRUE, + 'is_disabled' => TRUE, + 'display_ends_at' => "2026-01-05T10:25:49.000000Z", + 'display_starts_at' => "2021-03-13T06:06:05.000000Z", + 'ends_at' => "2024-02-09T10:12:25.000000Z", + 'starts_at' => "2022-03-07T06:38:35.000000Z", + 'discount_upper_limit' => 4350, + 'description' => "OiIt9zNKCX0VzisXLLiEpULitiIsW57odiOHhS8DsZfAQRFK6oTTeP8tTTuInowX2TMHi2vDKbmu86aUF4jypKaAY4yQaiw0JpUpNfjrUKaUCU4cuncfOgZgC0vnz9vdHX3zI21M9POKUqkrXtAeLmERqX5bw", + 'name' => "DROtzb2h" ] ); try { diff --git a/tests/UpdateCustomerAccountTest.php b/tests/UpdateCustomerAccountTest.php index c2e42dd6..51e4a91a 100644 --- a/tests/UpdateCustomerAccountTest.php +++ b/tests/UpdateCustomerAccountTest.php @@ -8,7 +8,7 @@ public function testUpdateCustomerAccount0() { $client = $this->newClient(); $request = new Request\UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab" + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af" ); try { $response = $client->send($request); @@ -23,7 +23,7 @@ public function testUpdateCustomerAccount1() { $client = $this->newClient(); $request = new Request\UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af", [ 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" ] @@ -41,9 +41,9 @@ public function testUpdateCustomerAccount2() { $client = $this->newClient(); $request = new Request\UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af", [ - 'external_id' => "hBw4No1YXyGaN9eZjSIQORsTn19Lt83IRfp6apsZzwHUgb2qq", + 'external_id' => "wIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fcKm", 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" ] ); @@ -60,10 +60,10 @@ public function testUpdateCustomerAccount3() { $client = $this->newClient(); $request = new Request\UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af", [ - 'account_name' => "rLtRpMZnFJMuPuuYDxHZdnikAchiJbVP3ZTnJxIJTqpbj9hQa29LtqbzIUCtrgI5GH6wQi2f3OojTDEk0fitYgKzfXu0N7ZPQ6Ey6Tu3BU56A0DovC2AWlgsj8AO1bqHH9NHpqZwH1tkpyNDcuWxfr4xKRRC5UPfd", - 'external_id' => "KJfLPJmxAhDpkltxfpGBgKzLBWMCYifXDXPCb", + 'account_name' => "GRUw7sMhCFW8ODbHkZSUPXBsmObvnHUjDTSSciw3PX7IImkvl5vCAHh7QD95u0YIcm0Sp2RluFOAxJTKKlkJp5ENq52OLTcJlnsa7zuy1tusdwen7Z1wrrgdxWfKkML", + 'external_id' => "wrBpORQ9LHlnKRmCd4nadmeyKnqGyqpn3W7S36l", 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" ] ); @@ -80,11 +80,11 @@ public function testUpdateCustomerAccount4() { $client = $this->newClient(); $request = new Request\UpdateCustomerAccount( - "86e1558d-113e-4ea6-8a48-226ea0c2dcab", + "2b9a8465-d8cb-48e1-87c5-c9f23ead12af", [ - 'status' => "pre-closed", - 'account_name' => "nT3R8fCd8115VzfSNwUPij0JCeKaErwIngTct5VctC8ahSG576Yk267hNuqsd2aOEu5ugI0fc", - 'external_id' => "KmGRUw7sMhCFW8ODbHkZSUPXBsmObvnHUj", + 'status' => "suspended", + 'account_name' => "4SSSOxW72gqSjd8QPzbjt0rt7UmerReZGbvGgvAZbyLJ1Lea6an4", + 'external_id' => "P1AnQALadFsAzgfKjbtuXg", 'metadata' => "{\"key1\":\"foo\",\"key2\":\"bar\"}" ] ); diff --git a/tests/UpdateShopTest.php b/tests/UpdateShopTest.php index 049869b9..4cb87678 100644 --- a/tests/UpdateShopTest.php +++ b/tests/UpdateShopTest.php @@ -8,7 +8,7 @@ public function testUpdateShop0() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907" + "2c3b64b8-8920-4dda-a36b-156e80e5d760" ); try { $response = $client->send($request); @@ -23,7 +23,7 @@ public function testUpdateShop1() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ 'status' => "active" ] @@ -41,9 +41,9 @@ public function testUpdateShop2() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ - 'can_topup_private_money_ids' => ["923525c2-b844-4414-9232-05e5ff431718", "2cffdc74-cb11-4e36-8c05-44119128dad2", "3193dd38-9339-41f6-9282-4807c885f481", "f806a765-a4e8-4559-895a-7ae2615ddcbf", "c96ae27c-b9cd-4268-b625-25cdbaafb710", "8586262f-49e6-47bf-a503-03bb2df6977d", "9658ed1e-04aa-4653-a841-edb8e44b5244", "908165b4-d940-44e0-85f6-32b72d26c00f", "2e3f1e1a-bf21-47cf-9cb7-e680fdf09ebe"], + 'can_topup_private_money_ids' => ["8729de97-7c50-4e6e-9c70-e09ecb48001f", "be9d0ab3-c8ee-4dbf-a8a5-4c1201194f12", "3e4c0adb-c413-4b91-bccc-156fae2b56cd", "e6c42624-9681-43e5-af02-fbecd647f8e5", "a34ee48e-e4b3-4e70-9b70-8fcfcd028ca8", "8ae07d62-b238-4276-a27f-5ecf193c5bc1"], 'status' => "active" ] ); @@ -60,11 +60,11 @@ public function testUpdateShop3() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ - 'private_money_ids' => ["9885c747-0754-4b37-b04c-832f9d1167a1", "81201ac0-ee90-450a-915d-92b283a73614", "f10c6465-4af0-4511-b868-148e76a70713", "56e6a8d8-cb94-4f76-ae08-ad1330b0d366"], - 'can_topup_private_money_ids' => ["df8b51f2-cbdf-4ffe-9471-7d7f76fe8201", "646e9318-231f-490c-a7f7-53bc32725ac3", "7a7d65aa-a585-478b-b72b-017ad48a03dd", "7ef3ef76-4f1f-42c7-b61b-72038cfd8f35", "32a1d374-4729-4ffc-830e-b55862e8fe42", "61edf939-6eb3-47fd-9fb4-beb12334d3c1", "8a5b38e4-47ab-441b-845d-a1d16ae6e1a1", "674bcb1c-aee0-4ba6-ba8a-5e53b4ba968e", "80589076-5a72-49b2-bd00-55eaa46f64c4", "b5bb3d32-6e00-4ede-83d0-235eba69f142"], - 'status' => "active" + 'private_money_ids' => ["65d942e5-f87d-4443-a19b-045f23dbb2d6", "8d580d05-5cac-4e88-860e-81daaa2818df", "08db3f1e-2bfa-4892-9fca-b232a51c29b1", "06f5b7d7-93ab-4f6b-a9ea-81127c85eb77", "c054a868-d95f-4ab0-b904-c13eb78bf37f"], + 'can_topup_private_money_ids' => ["825dbe27-a9aa-41df-9376-b5088514d659", "26f28329-cd40-4006-b097-4f5998aa12eb", "caa38ce6-7f7c-4af1-8172-6bebbfd57156", "8f57ea06-fe4f-4791-ac80-6f3dcf3e6efb", "8dcc96f8-43bf-4728-b4c8-2c0618243261", "a68e0251-d820-450c-a28f-0af1271abaf2"], + 'status' => "disabled" ] ); try { @@ -80,11 +80,11 @@ public function testUpdateShop4() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ - 'external_id' => "Eg6qDXhSH8haf", - 'private_money_ids' => ["377d2e09-0084-42f9-853b-4130bc346f2d", "1ac6c21d-850d-45c0-b344-d589be5aa228", "6cc9893e-f182-412e-946e-f44d2b5db9d0", "4eeabefc-557c-4810-b441-205e1d34e9b7", "a9ad5a26-6e54-4590-9a25-1533c6829584", "72f4c4c5-9aae-4db2-ae25-e2245c201e11", "098b7ec3-4ba4-4c80-9bb8-1aca95917aa0", "3293505a-2ee3-481b-b116-b3c9d04ee163", "5ee3fb19-2571-415a-a9c2-eb321e7b1f6e", "3278bc7b-886b-4b3e-9e82-bd68e6d341ad"], - 'can_topup_private_money_ids' => ["7a9a3fb5-84d6-42f5-ae6e-e6a43816bee8", "3ff40a32-a939-4b1a-ac98-7071b3c259fd", "86cfcbd7-ded1-4b5a-ba10-9f316ffcd5ab", "4746e334-e201-4ef8-8238-c1b9f00700b1", "add80cf2-01d0-4de0-9637-c346fa1a063e", "53563263-e064-4b87-a108-26440a046a80", "9ff31b65-4012-4e10-9e5b-5ec2545afeb6"], + 'external_id' => "6KVFbsIqYgBl99xXSIGv3Ovn3SH7ljqEd", + 'private_money_ids' => [], + 'can_topup_private_money_ids' => ["e50a2107-50aa-4d2a-b143-229794b8e2e3", "b61d89d0-a22c-4ccf-bd05-cf70cdb65b57", "838b2c26-e225-426a-ac2f-5f690d5601f6", "fcbc0302-fcaa-4aa9-afcf-95ee250268a9", "0089222b-df97-4b19-8386-9776a7831964", "adfae4f7-1aa5-47dc-8507-2986e9c8873c", "5ebcf9dd-fb2a-482f-b00b-93d9521515bb", "ea979086-9a17-4c76-bdec-6ce426b04c3b", "5e7dbab3-a03c-4649-a5ca-7517e35c7111", "86b577f9-ade8-483f-ad12-00af73bfd454"], 'status' => "disabled" ] ); @@ -101,12 +101,12 @@ public function testUpdateShop5() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ - 'email' => "vcOZ1uNBAd@r6lf.com", - 'external_id' => "zbfqKlnsG40wZo0RT90mTv9ime", - 'private_money_ids' => ["094322e9-25a6-4f3e-99b6-d4b279373a42", "c9c34063-d8b0-458f-ae35-217984cf1178", "2a5f035f-efae-46a7-a778-32586fadc776", "50ad7ebb-354b-4006-a4df-2144aaba6be1", "349fe32a-e318-4f30-8d5f-0563edf0f317", "fc55b7b2-9476-4d35-bc4e-7cf60b6b7bbe", "396c6fc5-f352-4fff-921b-888fc4e05db1", "d5c2afef-fd0b-44f6-953b-1a6f88d74210", "24b42053-9a4d-4614-b889-d77520ef0b2b", "8f0408f7-7414-413c-9fef-f569440d7e73"], - 'can_topup_private_money_ids' => ["c9443f33-8f0c-433d-8615-b1680bf7fbcb", "e853b0cf-778e-4574-8841-7bef4119283f", "34e24629-048d-4f58-88a7-3137560b7d27", "1935306f-0970-462c-94f5-b2619b1b44e5"], + 'email' => "lRgTT2NxSi@phZR.com", + 'external_id' => "lLoLjMmLSHQhe4tHPdlvKxC8QojNK", + 'private_money_ids' => ["4471f930-7bae-4ffa-95f1-8f1601202749"], + 'can_topup_private_money_ids' => ["0d948686-f905-423b-9012-5f7480c99fc0", "6bc89d13-9fb7-4c42-90c5-0b7b90e47328", "890cbfc9-7a89-40a6-be8d-47168c127e01"], 'status' => "disabled" ] ); @@ -123,14 +123,14 @@ public function testUpdateShop6() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ - 'tel' => "00-8125841", - 'email' => "rFSjbB1hiR@jTNS.com", - 'external_id' => "U46DKPvyktKcWCyKm4tG2F", - 'private_money_ids' => ["b37e8ae5-7c03-4dae-9fd7-fb5862325978", "36eb65d0-8b4e-4936-92e9-0ecd44c21256", "82837668-4286-4fda-ad1f-94829086e990", "706f4d6d-ff47-4aea-9e30-d61108add354", "27a38d8d-6d4d-4c91-8ea3-b3eaef1475d0", "c5f62e06-7f17-4426-92ac-f1a83e64c546", "4fc42fcc-6da7-4908-98cd-0b2b27293b1e", "4dcee2b0-d25c-468f-bec4-5a4c24fca67c", "78c18a88-f764-47f7-8015-8d569a8c6fd8", "7988f124-15a2-4b31-aa24-1c1f3f0f923f"], - 'can_topup_private_money_ids' => [], - 'status' => "active" + 'tel' => "05089918881", + 'email' => "PzoaDv6U6S@XLkH.com", + 'external_id' => "d9cOSRej1Twb2rvpiwJLSyhoqY6ZnwMWmZ", + 'private_money_ids' => ["cb2a538d-fee4-4a6f-b3d4-e93b7fd6d68b", "b93f9474-adeb-4041-8da4-c1e0708557d0", "8d68d91a-0a87-4a0a-8ce6-be26f09cfa7a", "4c0acee9-6686-40f9-a412-c3de35a3efff", "b6910004-413b-4ec2-b248-44a367de818d"], + 'can_topup_private_money_ids' => ["19760078-71e1-44d3-92f5-00aa990d70bb", "74899646-7783-4423-a501-fe7667f81c87", "b02d11e3-257c-47ea-b373-c02b8874d80c", "77441aaf-bc1f-41af-95b2-3ad1672e8fee", "cb77e988-6303-4e5e-b833-dee7beb678db", "95ece3be-7ed7-4916-86c8-257f34d20737", "78c9a768-24bc-46bd-8630-aaa689c4450f", "6cee271f-ecd4-4902-8438-ce2742d3e903", "2fa4d94e-c768-4c37-a5ef-3e1f8999785b"], + 'status' => "disabled" ] ); try { @@ -146,14 +146,14 @@ public function testUpdateShop7() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ - 'address' => "fPZtzGunVJbtCnsdFVcjFxpkr7nBijaa4uqZKlbpHQT4mZQDB6u1kMJt8otXLMwiqJK6MisPTXvJ9APWVf0nkI2cpiZrwht02dhTsSxNXBuhLAxPxLgPF7PH9jsPo3qRbXC06hH5q5N6rSqlhclxbbI1pwNVNkX1wbtHq7h4XHkBbxR0RnLtirGJS2N5S6EE", - 'tel' => "052-0491-9945", - 'email' => "BrmndiCNxX@XwjF.com", - 'external_id' => "RAeTxfe0YQCHzm8OG8zcqkOxIGcWZjjM6j", - 'private_money_ids' => ["a5ab3533-b49b-43ff-a507-0bae901ca15e", "4a9013ad-7082-4a3b-a493-f22cfe809c44", "acf091e3-799b-4270-9a75-85ff0a3de75d", "f14fea1d-27b9-49e9-8ee9-8b8f7d30d0c0", "2ebe0345-930a-451c-b709-c6e3bc72d66f"], - 'can_topup_private_money_ids' => ["f5427be5-1b9e-43a2-84d1-0633483129b6", "8538da80-0fce-43d2-a5b2-c62c9624cc49", "21b9ace0-02ea-41bc-a879-aabf1879aac2", "e6bd7634-da84-4ba7-9bbe-1c76d4a21acb", "8b3a6610-93ac-4809-bbd1-5fdd85bba8b7"], + 'address' => "6asjOox0RRzWzgJ8qllmxnkMgshIHzbucfDhID3qemlo7JMNmGUe8JtqofMq1TyFcW0Uuc5ug2SpDoeGryI5OQQ9GoRehaS9O2M3fskqX8WbkxbWTp66iGj1lRR9XuMVcs2zeQQbQwb51zUDjfyGpNkIiUDvsd07Li3GyEdt6G", + 'tel' => "01750504", + 'email' => "iFJuScrEGc@Y5I6.com", + 'external_id' => "vYJqEcansSsP2ceIvKP9bgYanQbVQM", + 'private_money_ids' => ["8f70a35a-aab6-4c86-92c7-1ab0914f49eb", "f6138ebc-e98f-4043-9898-8e7394213f14", "70955c26-c1d0-4be4-a27a-04f796e90c90", "e3471f45-95f2-4c1d-bd2c-c8b55f9dda11", "6b009b6d-0a58-4988-882b-02beece06829", "6e105dc7-f13f-4bfa-b54c-cb024ebae585", "53d9c527-dad7-4833-866b-9cd79641807f", "3added3e-959a-4469-8d39-acdaf1094468", "386e4949-19fb-4f3a-af6f-d18f52fd75ea"], + 'can_topup_private_money_ids' => ["3d22700f-fe5a-4def-81f0-6b6521623f30", "63e1970f-b256-4863-860e-fcc1c2944358", "e39317ba-0102-4d56-8a29-8fce3b7059a7", "429113fd-da05-438a-9b04-db9c2bcb1895", "7b87f493-5001-49ce-9020-12b83332cf27", "60a4fcb1-c009-4ccc-87c9-aefb536ecf8b"], 'status' => "active" ] ); @@ -170,15 +170,15 @@ public function testUpdateShop8() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ - 'postal_code' => "237-1703", - 'address' => "Cjimdlgwn9qvauQ2kDhj5HLJcSNTCm30yK3y8WItCe9VYgMydEalG76qE4T1vOrKA4IwgS5AgijWRyxneekV8cIDT0hnm8h8evW68NKpdkq0PMSo6iR11TAHpgNTXOxFwqhkpZVaDhpFPp5bfKVt9DPYJAVzV6vyI6ywfpyKilj5zg8pn57kF0DYbPLXjuwrpeD0A9IDYP4sAiFNwaac9r9GBqh0SVIl9M1spjv4mKXU1rVLf6U", - 'tel' => "04-42-610", - 'email' => "HKqYzk7GBG@1DZK.com", - 'external_id' => "BRFerhSu", - 'private_money_ids' => ["128b3e97-2200-4214-a2b2-bb7e371cbb21", "6a3bc367-9347-44bc-a2e7-123e512f87e1"], - 'can_topup_private_money_ids' => ["640b19f0-0b03-47a8-8630-82ee9a6dcfed", "8c5f834c-fc4d-4d1a-a6dc-16ee560b2307", "433fd12b-7b49-43af-9c59-42d4ec62a710", "a0a706fb-25d1-4764-be1e-50bab17f1c9b", "9611cef1-3192-4c83-bc1d-f0c83706b100", "31fe607f-9324-434a-9a25-6ab807cf05d7", "76ab9909-596e-46c0-8418-5d48161c9a8f"], + 'postal_code' => "484-7331", + 'address' => "rFPuEOVKpPzDCyUBg3VaVg5lQKirhrBQImBbFTGr24vRn0V1KmKqNhpuD1AS4IxvpFPGaTF6gXtd3nJyyNe74Q2bvFtDokudzPS7PJ09whlF6CVlMKFHkTHEGRWUBVUZa1rmAxzFUF6ihvlI4uoOEnKraNjpsN9SjDxtxrgs7e0dkiAAa8jwX6FLCB1XlvzBazSCE1hEG2EkkP2VIPy7HW7Ee7skB9BB1YNClE0", + 'tel' => "08-269606", + 'email' => "spNWH9u8x4@Yq2m.com", + 'external_id' => "Iub5W9d4fa79SnOHSfjKk", + 'private_money_ids' => [], + 'can_topup_private_money_ids' => ["cfe3927c-a951-48df-976b-61a948d99ac9", "37089e9c-029d-4d9f-b1b1-0add43e5aceb", "b87315a7-e6ab-4750-95cf-793b6ed4a1a2"], 'status' => "disabled" ] ); @@ -195,17 +195,17 @@ public function testUpdateShop9() { $client = $this->newClient(); $request = new Request\UpdateShop( - "79730e08-bc85-44b0-847c-58afb26ed907", + "2c3b64b8-8920-4dda-a36b-156e80e5d760", [ - 'name' => "VfpIBtEOMP2U7IkYygmkkDxd3MzpkzvPsPo2vcZvKaf470Dw5YI6SeAOBDBgRAgmjxZGGCqaBwJ9iXjXSEfbkdsvlfnd1NOUEcUOGTeYua5DveJsn8lhIUcgIkY0oNU4ZtZZObHmdr0N6vylnlZRhGDMxuj8A7eDOAWeoDpeF6vcSyg1N9plx7jjHK1E1", - 'postal_code' => "051-9562", - 'address' => "T2YVVNgkhGiOaJk8HWWbXOMsyMVL1Y0FzVGqOKFoU3xJNKmuaDr4cMSAgHDAlLlP6Lo5yS1v7L6lCM4yrq4lI3mHyvfAo1Zkwkd2A", - 'tel' => "0429007-5087", - 'email' => "1V16DlcE5m@r4I9.com", - 'external_id' => "qCPq1klPYI", - 'private_money_ids' => ["03a74be9-f7b4-4d7e-a61c-1367a873a25a", "321df47a-8cde-4c2e-b0bb-f90d410cf32e", "e1140cc6-fd9e-45e6-8782-5e3934f3db99", "b2490f76-1f3b-445d-8420-acc3418c5852", "ff3f331a-3696-442c-8d94-87c45afc9fa5"], - 'can_topup_private_money_ids' => ["84cdb638-b9ca-4bb5-b99e-b84f7786305b", "b01b001c-98f4-44e3-af5f-26eb61ab243c", "4bc11f86-237f-4e1d-ab3e-7aa89137b5c5", "a6cda5df-7a84-4216-a84d-ea4d0ac938d6", "01024e5e-0d9b-485d-89e8-d46db38ecacb"], - 'status' => "disabled" + 'name' => "IOCC9XRXSkWvgwMdC6YsQVBM615BSLRTB4phpjbt6QH", + 'postal_code' => "7548318", + 'address' => "XdEg3OxGlsZaVSpjoQ6ffYAe6kpXiCTiSBUIe5iqIMOcjyqBKlSFGLuqDn2oMYRFh8cqnV2spFoKb7jYgx3gTJKy6dBb3ykYYVRZ4jdyfDGYQa0QPCC60HT399N8hkxoSQFYDUU0HuG332kYdREQC39nZBUv4F8J7UzyDYEv7bctcmIqdmvTV8RBzp0gixsKZWoUeORL98QDv9TW3tonru5DxxR1kiR", + 'tel' => "0140-3095", + 'email' => "9O5bmxo5R8@HDeI.com", + 'external_id' => "8UDixRQOs", + 'private_money_ids' => ["be0574cf-22f8-44ca-b90e-1d28a9dba53a", "9bd28a69-bc75-430a-91a1-d5062a2ca774"], + 'can_topup_private_money_ids' => ["bae993de-4f04-4ab0-af5f-338866e78052", "3f1dbc06-17a8-45f3-8753-40ccce9c2a23", "bf738611-db5f-4c60-a926-45a8c22edb34"], + 'status' => "active" ] ); try { diff --git a/tests/UpdateWebhookTest.php b/tests/UpdateWebhookTest.php index 1070b6a9..e26740e5 100644 --- a/tests/UpdateWebhookTest.php +++ b/tests/UpdateWebhookTest.php @@ -8,7 +8,7 @@ public function testUpdateWebhook0() { $client = $this->newClient(); $request = new Request\UpdateWebhook( - "5ac0ed31-2294-48bf-9e63-6a7ddcb86809" + "478fa41b-49f2-44fa-869f-58dcef7627f8" ); try { $response = $client->send($request); @@ -23,9 +23,9 @@ public function testUpdateWebhook1() { $client = $this->newClient(); $request = new Request\UpdateWebhook( - "5ac0ed31-2294-48bf-9e63-6a7ddcb86809", + "478fa41b-49f2-44fa-869f-58dcef7627f8", [ - 'task' => "bulk_shops" + 'task' => "process_user_stats_operation" ] ); try { @@ -41,10 +41,10 @@ public function testUpdateWebhook2() { $client = $this->newClient(); $request = new Request\UpdateWebhook( - "5ac0ed31-2294-48bf-9e63-6a7ddcb86809", + "478fa41b-49f2-44fa-869f-58dcef7627f8", [ 'is_active' => FALSE, - 'task' => "process_user_stats_operation" + 'task' => "bulk_shops" ] ); try { @@ -60,10 +60,10 @@ public function testUpdateWebhook3() { $client = $this->newClient(); $request = new Request\UpdateWebhook( - "5ac0ed31-2294-48bf-9e63-6a7ddcb86809", + "478fa41b-49f2-44fa-869f-58dcef7627f8", [ - 'url' => "t", - 'is_active' => TRUE, + 'url' => "5st", + 'is_active' => FALSE, 'task' => "bulk_shops" ] );