<?php declare(strict_types=1);
/*
* (c) shopware AG <info@shopware.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Swag\PayPal\Installment\Banner;
use Shopware\Core\Framework\Struct\Struct;
class BannerData extends Struct
{
protected string $clientId;
protected float $amount;
protected string $currency;
protected string $partnerAttributionId;
protected string $merchantPayerId;
protected string $layout = 'text';
protected string $color = 'blue';
protected string $ratio = '8x1';
protected string $logoType = 'primary';
protected string $textColor = 'black';
protected string $paymentMethodId;
protected bool $footerEnabled;
protected bool $cartEnabled;
protected bool $offCanvasCartEnabled;
protected bool $loginPageEnabled;
protected bool $detailPageEnabled;
protected ?string $crossBorderBuyerCountry;
/**
* @deprecated tag:v8.0.0 - will be empty, use `assign()` instead
*/
public function __construct(
string $paymentMethodId,
string $clientId,
float $amount,
string $currency,
string $layout = 'text',
string $color = 'blue',
string $ratio = '8x1',
string $logoType = 'primary',
string $textColor = 'black'
) {
$this->paymentMethodId = $paymentMethodId;
$this->clientId = $clientId;
$this->amount = $amount;
$this->currency = $currency;
$this->layout = $layout;
$this->color = $color;
$this->ratio = $ratio;
$this->logoType = $logoType;
$this->textColor = $textColor;
}
public function getPaymentMethodId(): string
{
return $this->paymentMethodId;
}
public function getMerchantPayerId(): string
{
return $this->merchantPayerId;
}
public function setMerchantPayerId(string $merchantPayerId): void
{
$this->merchantPayerId = $merchantPayerId;
}
public function getPartnerAttributionId(): string
{
return $this->partnerAttributionId;
}
public function setPartnerAttributionId(string $partnerAttributionId): void
{
$this->partnerAttributionId = $partnerAttributionId;
}
public function getClientId(): string
{
return $this->clientId;
}
public function setClientId(string $clientId): void
{
$this->clientId = $clientId;
}
public function getAmount(): float
{
return $this->amount;
}
public function getCurrency(): string
{
return $this->currency;
}
public function getLayout(): string
{
return $this->layout;
}
public function getColor(): string
{
return $this->color;
}
public function getRatio(): string
{
return $this->ratio;
}
public function getLogoType(): string
{
return $this->logoType;
}
public function getTextColor(): string
{
return $this->textColor;
}
public function getFooterEnabled(): bool
{
return $this->footerEnabled;
}
public function getCartEnabled(): bool
{
return $this->cartEnabled;
}
public function getOffCanvasCartEnabled(): bool
{
return $this->offCanvasCartEnabled;
}
public function getLoginPageEnabled(): bool
{
return $this->loginPageEnabled;
}
public function getDetailPageEnabled(): bool
{
return $this->detailPageEnabled;
}
public function setAmount(float $amount): void
{
$this->amount = $amount;
}
public function setCurrency(string $currency): void
{
$this->currency = $currency;
}
public function setLayout(string $layout): void
{
$this->layout = $layout;
}
public function setColor(string $color): void
{
$this->color = $color;
}
public function setRatio(string $ratio): void
{
$this->ratio = $ratio;
}
public function setLogoType(string $logoType): void
{
$this->logoType = $logoType;
}
public function setTextColor(string $textColor): void
{
$this->textColor = $textColor;
}
public function setFooterEnabled(bool $footerEnabled): void
{
$this->footerEnabled = $footerEnabled;
}
public function setCartEnabled(bool $cartEnabled): void
{
$this->cartEnabled = $cartEnabled;
}
public function setOffCanvasCartEnabled(bool $offCanvasCartEnabled): void
{
$this->offCanvasCartEnabled = $offCanvasCartEnabled;
}
public function setLoginPageEnabled(bool $loginPageEnabled): void
{
$this->loginPageEnabled = $loginPageEnabled;
}
public function setDetailPageEnabled(bool $detailPageEnabled): void
{
$this->detailPageEnabled = $detailPageEnabled;
}
public function getCrossBorderBuyerCountry(): ?string
{
return $this->crossBorderBuyerCountry;
}
public function setCrossBorderBuyerCountry(?string $crossBorderBuyerCountry): void
{
$this->crossBorderBuyerCountry = $crossBorderBuyerCountry;
}
}