Skip to content

Commit

Permalink
Field service add (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzGablo committed Mar 28, 2024
1 parent bdc0b9e commit 2609972
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/Model/Fields/Account/MerchantApiConsent.php
@@ -0,0 +1,15 @@
<?php

namespace Tpay\OpenApi\Model\Fields\Account;

use Tpay\OpenApi\Model\Fields\Field;

/**
* @method getValue(): bool
*/
class MerchantApiConsent extends Field
{
protected $name = __CLASS__;
protected $type = self::BOOL;
protected $value = false;
}
5 changes: 5 additions & 0 deletions src/Model/Objects/RequestBody/Account.php
Expand Up @@ -4,6 +4,7 @@

use Tpay\OpenApi\Model\Fields\Account\Krs;
use Tpay\OpenApi\Model\Fields\Account\LegalForm;
use Tpay\OpenApi\Model\Fields\Account\MerchantApiConsent;
use Tpay\OpenApi\Model\Fields\Account\NotifyByEmail;
use Tpay\OpenApi\Model\Fields\Account\OfferCode;
use Tpay\OpenApi\Model\Fields\Account\Regon;
Expand All @@ -25,6 +26,7 @@ class Account extends Objects
'krs' => Krs::class,
'legalForm' => LegalForm::class,
'categoryId' => CategoryId::class,
'merchantApiConsent' => MerchantApiConsent::class,
'notifyByEmail' => NotifyByEmail::class,
'website' => [PointOfSale::class],
'address' => [Address::class],
Expand Down Expand Up @@ -52,6 +54,9 @@ class Account extends Objects
/** @var CategoryId */
public $categoryId;

/** @var MerchantApiConsent */
public $merchantApiConsent;

/** @var NotifyByEmail */
public $notifyByEmail;

Expand Down

0 comments on commit 2609972

Please sign in to comment.