add status registration instead of boolean value
This commit is contained in:
parent
e9b8a8e42c
commit
c34d2b28a3
4 changed files with 25 additions and 4 deletions
|
@ -36,7 +36,7 @@ try {
|
|||
|
||||
if ($response !== null) {
|
||||
$arResult['BONUS_COUNT'] = $response->amount;
|
||||
$arResult['ACTIVE'] = $response->active;
|
||||
$arResult['ACTIVE_STATUS'] = $response->status;
|
||||
$arResult['CARD'] = $response->cardNumber !== ''
|
||||
? $response->cardNumber
|
||||
: GetMessage('CARD_NOT_LINKED');
|
||||
|
|
|
@ -37,3 +37,7 @@ $MESS['SIMPLE_PRODUCTS'] = 'Обычные товары:';
|
|||
$MESS['SALE_PRODUCTS'] = 'Акционные товары:';
|
||||
$MESS['REMAINING_SUM'] = 'Сумма, оставшаяся до перехода на следующий уровень:';
|
||||
$MESS['ACTIVATE'] = 'Активировать';
|
||||
$MESS['STATUS'] = 'Статус участия';
|
||||
$MESS['STATUS_NOT_CONFIRMED'] = 'не подтверждено';
|
||||
$MESS['STATUS_DEACTIVATED'] = 'деактивировано';
|
||||
$MESS['STATUS_ACTIVE'] = 'активно';
|
||||
|
|
|
@ -19,11 +19,18 @@ if (!defined('B_PROLOG_INCLUDED') || B_PROLOG_INCLUDED !== true) {
|
|||
<?php if (isset($arResult['LOYALTY_LEVEL_ID'])) { ?>
|
||||
<b><?=GetMessage('LOYALTY_LEVEL_ID')?></b> <?=$arResult['LOYALTY_LEVEL_ID']?><br>
|
||||
<?php } ?>
|
||||
<?php if (isset($arResult['ACTIVE'])) { ?>
|
||||
<b><?=GetMessage('ACTIVE')?></b> <?=$arResult['ACTIVE'] ? GetMessage('YES') : GetMessage('NO')?>
|
||||
<?php if ($arResult['ACTIVE'] === false) { ?>
|
||||
<?php if (isset($arResult['ACTIVE_STATUS'])) { ?>
|
||||
<b><?=GetMessage('STATUS')?>: </b>
|
||||
<?php if ($arResult['ACTIVE_STATUS'] === 'not_confirmed') { ?>
|
||||
<?= GetMessage('STATUS_NOT_CONFIRMED')?>
|
||||
<a href="/lp-register?activate=Y"> <?= GetMessage('ACTIVATE') ?></a>
|
||||
<?php } ?>
|
||||
<?php if ($arResult['ACTIVE_STATUS'] === 'deactivated') { ?>
|
||||
<?=GetMessage('STATUS_DEACTIVATED')?>
|
||||
<?php } ?>
|
||||
<?php if ($arResult['ACTIVE_STATUS'] === 'activated') { ?>
|
||||
<?= GetMessage('STATUS_ACTIVE')?>
|
||||
<?php } ?>
|
||||
<br>
|
||||
<?php } ?>
|
||||
<?php if (isset($arResult['LOYALTY_LEVEL_NAME'])) { ?>
|
||||
|
|
|
@ -163,4 +163,14 @@ class LoyaltyAccount
|
|||
* @Mapping\SerializedName("customFields")
|
||||
*/
|
||||
public $customFields;
|
||||
|
||||
/**
|
||||
* Статус участия. Возможные значения: not_confirmed, activated, deactivated
|
||||
*
|
||||
* @var string $status
|
||||
*
|
||||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("status")
|
||||
*/
|
||||
public $status;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue