You are here

public function OrderPayment::fields in Commerce Migrate 8.2

Same name and namespace in other branches
  1. 3.1.x modules/ubercart/src/Plugin/migrate/source/OrderPayment.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\OrderPayment::fields()
  2. 3.0.x modules/ubercart/src/Plugin/migrate/source/OrderPayment.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\OrderPayment::fields()

Returns available fields on the source.

Return value

array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.

Overrides MigrateSourceInterface::fields

File

modules/ubercart/src/Plugin/migrate/source/OrderPayment.php, line 43

Class

OrderPayment
Provides migration source for orders.

Namespace

Drupal\commerce_migrate_ubercart\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'receipt_id' => $this
      ->t('Payment receipt ID'),
    'order_id' => $this
      ->t('Order ID'),
    'method' => $this
      ->t('Payment method'),
    'amount' => $this
      ->t('Payment amount'),
    'currency' => $this
      ->t('Currency'),
    'refund_amount' => $this
      ->t('Refunded amount'),
    'uid' => $this
      ->t('User ID of order'),
    'data' => $this
      ->t('Payment data'),
    'received' => $this
      ->t('Date/time of payment was received'),
    'state' => $this
      ->t('State of the order'),
  ];
  return $fields;
}