@frontend_royalties
@ows_royalties
@ows_payment
@ows_abacus_event
@ows_abacus_state
@cleanup_payment_groups
Feature: Abacus Payments 1

  Background:
    Given an orchard employee label_7123_admin_3 for abacus
    When I log in

  @id_957dc61bd073ff425855e54cc6fc77023de931c2adbab91b04971ac7d1dd944a
  Scenario: Payment for specific account
    Given I prepare an abacus account data:
      | Key              | Value                   |
      | companyBrandName | awal                    |
      | paidBy           | AWAL-US                 |
      | agreementType    | AWAL Core               |
      | currency         | EUR                     |
      | owner            | awal                    |
      | paymentMinimum   | 123                     |
      | paymentSchedule  | 45 days after month end |
    And I create 1 new active account via API
    And I update payment description
    And I have a Distribution runcontroller created
    And I have a new Distribution contract lifecycle created with accounts created for AWAL Recordings America, Inc.
    Then I should be able to add a payment for specific accounts
    And I should be able to delete the payment

  @id_0dde7c33a4ea5a54b30112bc95cd771e0294bf3b8dd4cd491997f3c1578fd494
  Scenario: Create and archive payment group
    When I have a new payment group created
    Then I can archive created group
