contacts_subscriptions-1.x-dev/contacts_subscriptions.workflows.yml

contacts_subscriptions.workflows.yml
contacts_subscription:
  id: contacts_subscription
  group: contacts_subscription
  label: 'Default'
  states:
    none:
      label: 'No membership'
    active:
      label: 'Active'
    cancelled_pending:
      label: 'Cancellation pending'
    cancelled:
      label: 'Cancelled'
    expired_payment_pending:
      label: 'Payment failed'
    expired_payment:
      label: 'Expired (payment failed)'
    needs_payment:
      label: 'Active - Needs Payment Details'
  transitions:
    activate:
      label: 'Activate'
      from:
        - none
        - cancelled_pending
        - cancelled
        - expired_payment_pending
        - expired_payment
        - needs_payment
      to: active
    cancel_renewal:
      label: 'Do not renew'
      from:
        - active
      to: cancelled_pending
    cancel:
      label: 'Cancel now'
      from:
        - active
        - cancelled_pending
        - expired_payment_pending
        - needs_payment
      to: cancelled
    needs_payment:
      label: 'Activate (Needs Payment Details)'
      from:
        - none
        - active
        - expired_payment_pending
      to: needs_payment
    payment_failed:
      label: 'Payment failed'
      from:
        - active
      to: expired_payment_pending
    payment_failed_cleanup:
      label: 'Inactivate - no payment'
      from:
        - active
        - expired_payment_pending
      to: expired_payment

order_contacts_subscription:
  id: order_contacts_subscription
  group: commerce_order
  label: 'Job subscription'
  states:
    draft:
      label: Draft
    pending:
      label: Pending
    payment_declined:
      label: 'Payment declined'
    payment_error:
      label: 'Payment error'
    completed:
      label: Completed
    canceled:
      label: Canceled
  transitions:
    place:
      label: 'Place'
      from: [draft]
      to: pending
    payment_declined:
      label: 'Payment declined'
      from: [pending, payment_error]
      to: payment_declined
    payment_error:
      label: 'Payment error'
      from: [pending, payment_declined]
      to: payment_error
    paid:
      label: 'Order paid'
      from: [draft, pending, payment_declined, payment_error]
      to: completed
    cancel:
      label: 'Cancel order'
      from: [draft, pending, payment_declined, payment_error, completed]
      to:   canceled

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

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