commerce1_payment.yml in Commerce Migrate 8.2
Same filename and directory in other branches
modules/commerce/migrations/commerce1_payment.yml
File
modules/commerce/migrations/commerce1_payment.ymlView source
- id: commerce1_payment
- label: Commerce payment
- migration_tags:
- - Drupal 7
- - Commerce
- - Content
- source:
- plugin: commerce1_payment_transaction
- constants:
- type: payment_manual
- process:
- # If you are using this file to build a custom migration consider removing
- # the payment_id field to allow incremental migrations.
- payment_id: transaction_id
- payment_gateway:
- -
- plugin: migration_lookup
- migration: commerce1_payment_gateway
- source: payment_method
- -
- plugin: skip_on_empty
- method: row
- # Migrated payments are considered historical and should not initiate real
- # transactions; therefore the manual payment gateway is used.
- type: 'constants/type'
- order_id:
- -
- plugin: migration_lookup
- migration: commerce1_order
- source: order_id
- -
- plugin: skip_on_empty
- method: row
- 'amount/number': amount
- 'amount/currency_code': currency_code
- 'refunded_amount/number': refund_amount
- 'refunded_amount/currency_code': currency_code
- state: status
- completed: received
- destination:
- plugin: entity:commerce_payment
- destination_module: commerce_payment
- migration_dependencies:
- required:
- - commerce1_order
- - commerce1_payment_gateway