Skip to content

Commit

Permalink
fix: cherry pick fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hschoenenberger committed Oct 10, 2023
1 parent 5aedaee commit 8141cbf
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 52 deletions.
47 changes: 47 additions & 0 deletions classes/Adapter/ConfigurationKeys.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?php

namespace PrestaShop\Module\PsAccounts\Adapter;

use ReflectionClass;

class ConfigurationKeys
{
const PSX_UUID_V4 = 'PSX_UUID_V4';

// PS Shop Account
const PS_ACCOUNTS_FIREBASE_ID_TOKEN = 'PS_ACCOUNTS_FIREBASE_ID_TOKEN';
const PS_ACCOUNTS_FIREBASE_REFRESH_TOKEN = 'PS_ACCOUNTS_FIREBASE_REFRESH_TOKEN';
const PS_ACCOUNTS_FIREBASE_REFRESH_TOKEN_FAILURE = 'PS_ACCOUNTS_FIREBASE_REFRESH_TOKEN_FAILURE';

// PS User Account
const PS_ACCOUNTS_FIREBASE_EMAIL = 'PS_ACCOUNTS_FIREBASE_EMAIL';
const PS_ACCOUNTS_FIREBASE_EMAIL_IS_VERIFIED = 'PS_ACCOUNTS_FIREBASE_EMAIL_IS_VERIFIED';
const PS_ACCOUNTS_USER_FIREBASE_UUID = 'PS_ACCOUNTS_USER_FIREBASE_UUID';
const PS_ACCOUNTS_USER_FIREBASE_ID_TOKEN = 'PS_ACCOUNTS_USER_FIREBASE_ID_TOKEN';
const PS_ACCOUNTS_USER_FIREBASE_REFRESH_TOKEN = 'PS_ACCOUNTS_USER_FIREBASE_REFRESH_TOKEN';
const PS_ACCOUNTS_USER_FIREBASE_REFRESH_TOKEN_FAILURE = 'PS_ACCOUNTS_USER_FIREBASE_REFRESH_TOKEN_FAILURE';
const PS_ACCOUNTS_SHOP_UNLINKED_AUTO = 'PS_ACCOUNTS_SHOP_UNLINKED_AUTO';

// PS Backend User
const PS_ACCOUNTS_EMPLOYEE_ID = 'PS_ACCOUNTS_EMPLOYEE_ID';

// API keys
const PS_ACCOUNTS_RSA_PUBLIC_KEY = 'PS_ACCOUNTS_RSA_PUBLIC_KEY';
const PS_ACCOUNTS_RSA_PRIVATE_KEY = 'PS_ACCOUNTS_RSA_PRIVATE_KEY';
const PS_ACCOUNTS_RSA_SIGN_DATA = 'PS_ACCOUNTS_RSA_SIGN_DATA';

// /!\ Compat with ps_checkout
const PS_CHECKOUT_SHOP_UUID_V4 = 'PS_CHECKOUT_SHOP_UUID_V4';
const PS_PSX_FIREBASE_ID_TOKEN = 'PS_PSX_FIREBASE_ID_TOKEN';
const PS_PSX_FIREBASE_REFRESH_TOKEN = 'PS_PSX_FIREBASE_REFRESH_TOKEN';
const PS_PSX_FIREBASE_REFRESH_DATE = 'PS_PSX_FIREBASE_REFRESH_DATE';
const PS_PSX_FIREBASE_EMAIL = 'PS_PSX_FIREBASE_EMAIL';

/**
* @return array
*/
public static function getKeys()
{
return (new ReflectionClass(self::class))->getConstants();
}
}
51 changes: 0 additions & 51 deletions src/Adapter/ConfigurationKeys.php

This file was deleted.

2 changes: 1 addition & 1 deletion tests/Feature/Api/v1/ShopLinkAccount/StoreTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function itShouldSucceedWithoutEmployeeId()
],
]);

$json = $this->getResponseJson($response);
$json = $response->json();

$this->module->getLogger()->info(print_r($json, true));

Expand Down

0 comments on commit 8141cbf

Please sign in to comment.