commerce_xero-8.x-1.x-dev/src/CommerceXeroDataTypePluginInterface.php

src/CommerceXeroDataTypePluginInterface.php
<?php

namespace Drupal\commerce_xero;

use Drupal\commerce_payment\Entity\PaymentInterface;
use Drupal\commerce_xero\Entity\CommerceXeroStrategyInterface;
use Drupal\Component\Plugin\ConfigurableInterface;
use Drupal\Component\Plugin\PluginInspectionInterface;
use Drupal\xero\TypedData\XeroItemInterface;

/**
 * Describes how a Commerce Xero plugin should be implemented.
 */
interface CommerceXeroDataTypePluginInterface extends ConfigurableInterface, PluginInspectionInterface {

  /**
   * Make a bank transaction.
   *
   * @param \Drupal\commerce_payment\Entity\PaymentInterface $payment
   *   The payment to use.
   * @param \Drupal\commerce_xero\Entity\CommerceXeroStrategyInterface $strategy
   *   The strategy to use.
   *
   * @return \Drupal\xero\TypedData\XeroItemInterface
   *   The "typed data" data type.
   */
  public function make(PaymentInterface $payment, CommerceXeroStrategyInterface $strategy): XeroItemInterface;

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc