Oro\Bundle\OrganizationBundle\Entity\Organization:
    second_organization:
        name: 'Second Organization'
        enabled: true

Oro\Bundle\OrganizationBundle\Entity\BusinessUnit:
    bu_second_organization:
        name: 'Business Unit (Second Organization)'
        organization: '@second_organization'

Oro\Bundle\LocaleBundle\Entity\LocalizedFallbackValue:
    lineItemDiscountPromotionLabel:
        string: 'Line Item Discount Promotion'
    lineItemDiscountPromotionDesc:
        string: 'Line Item Discount Promotion Description'
    orderDiscountPromotionLabel:
        string: 'Order Discount Promotion'
    orderDiscountPromotionDesc:
        string: 'Order Discount Promotion Description'
    shippingDiscountPromotionLabel:
        string: 'Shipping Discount Promotion'
    shippingDiscountPromotionDesc:
        string: 'Shipping Discount Promotion Description'
    orderDiscountPromotionForSecondOrganizationLabel:
        string: 'Order Discount Promotion (Second Organization)'

Oro\Bundle\SegmentBundle\Entity\Segment:
    lineItemDiscountPromotionSegment:
        name: 'Promotion Matching Products #1'
        type: '@segment_dynamic_type'
        entity: 'Oro\\Bundle\\ProductBundle\\Entity\\Product'
        definition: <('{"filters":[[{"columnName":"sku","criterion":{"filter":"string","data":{"value":"SKU2","type":"1"}}}]],"columns":[{"name":"id","label":"id","sorting":null,"func":null},{"name":"sku","label":"sku","sorting":null,"func":null}]}')>
        organization: '@organization'
        owner: '@business_unit'
    orderDiscountPromotionSegment:
        name: 'Promotion Matching Products #2'
        type: '@segment_dynamic_type'
        entity: 'Oro\\Bundle\\ProductBundle\\Entity\\Product'
        definition: <('{"filters":[[{"columnName":"sku","criterion":{"filter":"string","data":{"value":"SKU2","type":"1"}}}]],"columns":[{"name":"id","label":"id","sorting":null,"func":null},{"name":"sku","label":"sku","sorting":null,"func":null}]}')>
        organization: '@organization'
        owner: '@business_unit'
    orderDiscountPromotionForSecondOrganizationSegment:
        name: 'Promotion Matching Products (Second Organization)'
        type: '@segment_dynamic_type'
        entity: 'Oro\\Bundle\\ProductBundle\\Entity\\Product'
        definition: <('{"filters":[[{"columnName":"sku","criterion":{"filter":"string","data":{"value":"SKU2","type":"1"}}}]],"columns":[{"name":"id","label":"id","sorting":null,"func":null},{"name":"sku","label":"sku","sorting":null,"func":null}]}')>
        organization: '@organization'
        owner: '@bu_second_organization'

Oro\Bundle\PromotionBundle\Entity\DiscountConfiguration:
    lineItemDiscountPromotionDiscountConfiguration:
        type: 'line_item'
        options:
            discount_type: 'percent'
            discount_product_unit_code: 'item'
            discount_value: 0.5
            apply_to: 'line_items_total'
            maximum_qty: 100
    orderDiscountPromotionDiscountConfiguration:
        type: 'order'
        options:
            discount_type: 'percent'
            discount_value: 0.5
    shippingDiscountPromotionDiscountConfiguration:
        type: 'shipping'
        options:
            discount_type: 'amount'
            discount_value: 1
            discount_currency: 'USD'
            shipping_options:
                shipping_method: 'flat_rate_1'
                shipping_method_type: 'primary'
    orderDiscountPromotionDiscountForSecondOrganizationConfiguration:
        type: 'order'
        options:
            discount_type: 'percent'
            discount_value: 5

Oro\Bundle\RuleBundle\Entity\Rule:
    lineItemDiscountPromotionRule:
        enabled: true
        sortOrder: 1
        name: 'line Item Discount Promotion'
    orderDiscountPromotionRule:
        enabled: true
        sortOrder: 1
        name: 'order Discount Promotion'
    shippingDiscountPromotionRule:
        enabled: true
        sortOrder: 1
        name: 'shipping Discount Promotion'
    orderDiscountPromotionForSecondOrganizationRule:
        enabled: true
        sortOrder: 1
        name: 'order Discount Promotion (Second Organization)'

Oro\Bundle\PromotionBundle\Entity\Promotion:
    lineItemDiscountPromotion:
        __calls:
            - addLabel: ['@lineItemDiscountPromotionLabel']
            - addDescription: ['@lineItemDiscountPromotionDesc']
            - addScope: ['@default_scope']
        productsSegment: '@lineItemDiscountPromotionSegment'
        rule: '@lineItemDiscountPromotionRule'
        discountConfiguration: '@lineItemDiscountPromotionDiscountConfiguration'
        organization: '@organization'
        owner: '@admin'
        useCoupons: false
    orderDiscountPromotion:
        __calls:
            - addLabel: ['@orderDiscountPromotionLabel']
            - addDescription: ['@orderDiscountPromotionDesc']
            - addScope: ['@default_scope']
        productsSegment: '@orderDiscountPromotionSegment'
        rule: '@orderDiscountPromotionRule'
        discountConfiguration: '@orderDiscountPromotionDiscountConfiguration'
        organization: '@organization'
        owner: '@admin'
        useCoupons: false
    shippingDiscountPromotion:
        __calls:
            - addLabel: ['@shippingDiscountPromotionLabel']
            - addDescription: ['@shippingDiscountPromotionDesc']
            - addScope: ['@default_scope']
        productsSegment: '@orderDiscountPromotionSegment'
        rule: '@shippingDiscountPromotionRule'
        discountConfiguration: '@shippingDiscountPromotionDiscountConfiguration'
        organization: '@organization'
        owner: '@admin'
        useCoupons: false
    orderDiscountPromotionForSecondOrganization:
        __calls:
            - addLabel: ['@orderDiscountPromotionForSecondOrganizationLabel']
            - addScope: ['@default_scope']
        productsSegment: '@orderDiscountPromotionForSecondOrganizationSegment'
        rule: '@orderDiscountPromotionForSecondOrganizationRule'
        discountConfiguration: '@orderDiscountPromotionDiscountForSecondOrganizationConfiguration'
        organization: '@second_organization'
        owner: '@admin'
        useCoupons: false
