public function OrderPayment::fields in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/ubercart/src/Plugin/migrate/source/OrderPayment.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\OrderPayment::fields()
- 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\sourceCode
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;
}