/**
  * OpenpayCardAdapter constructor.
  * @param ClientInterface $client
  * @param OpenpayCardMapper $cardMapper
  * @param OpenpayExceptionMapper $exceptionMapper
  * @param array $config
  */
 public function __construct(ClientInterface $client, OpenpayCardMapper $cardMapper, OpenpayExceptionMapper $exceptionMapper, array $config)
 {
     $this->merchantId = $config['merchantId'];
     $this->apiKey = $config['apiKey'];
     $this->options = $this->getHeaderOptions($this->apiKey);
     $this->cardMapper = $cardMapper;
     parent::__construct($client, $exceptionMapper);
 }
 /**
  * OpenpayCustomerTransaction constructor.
  * @param ClientInterface $client
  * @param OpenpayExceptionMapper $exceptionMapper
  * @param OpenpayTransferValidator $validator
  * @param OpenpayTransactionMapper $transactionMapper
  * @param array $config
  */
 public function __construct(ClientInterface $client, OpenpayExceptionMapper $exceptionMapper, OpenpayTransferValidator $validator, OpenpayTransactionMapper $transactionMapper, array $config = [])
 {
     parent::__construct($client, $exceptionMapper);
     $this->transferValidator = $validator;
     $this->merchantId = $config['merchantId'];
     $this->apiKey = $config['apiKey'];
     $this->transactionMapper = $transactionMapper;
     $this->options = $this->getHeaderOptions($this->apiKey);
 }
 /**
  * OpenpayCustomerAdapter constructor.
  * @param OpenpayCustomerMapper $customerMapper
  * @param OpenpayCustomerType $customerType
  * @param ClientInterface $client
  * @param OpenpayCustomerValidator $customerValidator
  * @param OpenpayExceptionMapper $exceptionMapper
  * @param array $config
  */
 public function __construct(OpenpayCustomerMapper $customerMapper, OpenpayCustomerType $customerType, ClientInterface $client, OpenpayCustomerValidator $customerValidator, OpenpayExceptionMapper $exceptionMapper, array $config = [])
 {
     $this->merchantId = $config['merchantId'];
     $this->apiKey = $config['apiKey'];
     $this->customerMapper = $customerMapper;
     $this->customerType = $customerType;
     $this->customerValidator = $customerValidator;
     $this->options = $this->getHeaderOptions($this->apiKey);
     parent::__construct($client, $exceptionMapper);
 }