---

test_name: Add orchard_pricing_tier should return 200 POST
marks:
  - usefixtures:
      - oa_pricing_resource_access_allowed_session_token
stages:
  - name: Add orchard_pricing_tier should return 200 POST
    request:
      url: "{grass_host}{pricing_admin_orchard_pricing_tier}"
      headers:
        session: "{oa_pricing_resource_access_allowed_session_token}"
      method: POST
      json:
        name: Integration Testing
        pricing_family_id: "{pricing_family_id}"
        sort_order: 50
        is_default: false
    response:
      status_code: 200
---

test_name: Add orchard_pricing_tier should return 403 POST
marks:
  - usefixtures:
      - oa_pricing_resource_access_denied_session_token
stages:
  - name: Add orchard_pricing_tier should return 403 POST
    request:
      url: "{grass_host}{pricing_admin_orchard_pricing_tier}"
      headers:
        session: "{oa_pricing_resource_access_denied_session_token}"
      method: POST
      json:
        name: Integration Testing
        pricing_family_id: "{pricing_family_id}"
        sort_order: 50
        is_default: false
    response:
      status_code: 403
---

test_name: Update orchard_pricing_tier should return 200 PUT
marks:
  - usefixtures:
      - oa_pricing_resource_access_allowed_session_token
stages:
  - name: Update orchard_pricing_tier should return 200 PUT
    request:
      url: "{grass_host}{pricing_admin_orchard_pricing_tier}/{orchard_pricing_tier}"
      headers:
        session: "{oa_pricing_resource_access_allowed_session_token}"
      method: PUT
      json:
        name: Deluxe Four
        pricing_family_id: "{pricing_family_id}"
        sort_order: 1
        is_default: false
    response:
      status_code: 200
---

test_name: Update orchard_pricing_tier should return 403 PUT
marks:
  - usefixtures:
      - oa_pricing_resource_access_denied_session_token
stages:
  - name: Update orchard_pricing_tier should return 403 PUT
    request:
      url: "{grass_host}{pricing_admin_orchard_pricing_tier}/{orchard_pricing_tier}"
      headers:
        session: "{oa_pricing_resource_access_denied_session_token}"
      method: PUT
      json:
        name: Deluxe Four
        pricing_family_id: "{pricing_family_id}"
        sort_order: 1
        is_default: false
    response:
      status_code: 403
---

test_name: Add store_pricing_scheme should return 200 POST
marks:
  - usefixtures:
      - oa_pricing_resource_access_allowed_session_token
stages:
  - name: Add store_pricing_scheme should return 200 POST
    request:
      url: "{grass_host}{pricing_admin_store_pricing_scheme}"
      headers:
        session: "{oa_pricing_resource_access_allowed_session_token}"
      method: POST
      json:
        name: Integration Testing
        pricing_family_id: "{pricing_family_id}"
        store_id: "{store_id}"
    response:
      status_code: 200
---

test_name: Add store_pricing_scheme should return 403 POST
marks:
  - usefixtures:
      - oa_pricing_resource_access_denied_session_token
stages:
  - name: Add store_pricing_scheme should return 403 POST
    request:
      url: "{grass_host}{pricing_admin_store_pricing_scheme}"
      headers:
        session: "{oa_pricing_resource_access_denied_session_token}"
      method: POST
      json:
        name: Integration Testing
        pricing_family_id: "{pricing_family_id}"
        store_id: "{store_id}"
    response:
      status_code: 403
---

test_name: Update store_pricing_scheme should return 200 PUT
marks:
  - usefixtures:
      - oa_pricing_resource_access_allowed_session_token
stages:
  - name: Update store_pricing_scheme should return 200 PUT
    request:
      url: "{grass_host}{pricing_admin_store_pricing_scheme}/{store_pricing_scheme}"
      headers:
        session: "{oa_pricing_resource_access_allowed_session_token}"
      method: PUT
      json:
        name: Operations Testing
        pricing_family_id: "{pricing_family_id}"
        use_interval_pricing: false
    response:
      status_code: 200
---

test_name: Update store_pricing_scheme should return 403 PUT
marks:
  - usefixtures:
      - oa_pricing_resource_access_denied_session_token
stages:
  - name: Update store_pricing_scheme should return 403 PUT
    request:
      url: "{grass_host}{pricing_admin_store_pricing_scheme}/{store_pricing_scheme}"
      headers:
        session: "{oa_pricing_resource_access_denied_session_token}"
      method: PUT
      json:
        name: Operations Testing
        pricing_family_id: "{pricing_family_id}"
        use_interval_pricing: false
    response:
      status_code: 403
---

test_name: Add store_pricing_tier should return 200 POST
marks:
  - usefixtures:
      - oa_pricing_resource_access_allowed_session_token
stages:
  - name: Add store_pricing_tier should return 200 POST
    request:
      url: "{grass_host}{pricing_admin_store_pricing_scheme}/{store_pricing_scheme}/store-pricing-tier"
      headers:
        session: "{oa_pricing_resource_access_allowed_session_token}"
      method: POST
      json:
        name: Integration Testing
        orchard_pricing_tier_id: "{orchard_pricing_tier}"
        sort_order: 1
    response:
      status_code: 200
---

test_name: Add store_pricing_tier should return 403 POST
marks:
  - usefixtures:
      - oa_pricing_resource_access_denied_session_token
stages:
  - name: Add store_pricing_tier should return 403 POST
    request:
      url: "{grass_host}{pricing_admin_store_pricing_scheme}/{store_pricing_scheme}/store-pricing-tier"
      headers:
        session: "{oa_pricing_resource_access_denied_session_token}"
      method: POST
      json:
        name: Integration Testing
        orchard_pricing_tier_id: "{orchard_pricing_tier}"
        sort_order: 1
    response:
      status_code: 403
---

test_name: Update store_pricing_tier should return 200 PUT
marks:
  - usefixtures:
      - oa_pricing_resource_access_allowed_session_token
stages:
  - name: Update store_pricing_tier should return 200 PUT
    request:
      url: "{grass_host}{pricing_admin_store_pricing_scheme}/store-pricing-tier/{store_pricing_tier}"
      headers:
        session: "{oa_pricing_resource_access_allowed_session_token}"
      method: PUT
      json:
        name: Regular 4
        orchard_pricing_tier_id: "{orchard_pricing_tier}"
        sort_order: 1
    response:
      status_code: 200
---

test_name: Update store_pricing_tier should return 403 PUT
marks:
  - usefixtures:
      - oa_pricing_resource_access_denied_session_token
stages:
  - name: Update store_pricing_tier should return 403 PUT
    request:
      url: "{grass_host}{pricing_admin_store_pricing_scheme}/store-pricing-tier/{store_pricing_tier}"
      headers:
        session: "{oa_pricing_resource_access_denied_session_token}"
      method: PUT
      json:
        name: Regular 4
        orchard_pricing_tier_id: "{orchard_pricing_tier}"
        sort_order: 1
    response:
      status_code: 403
---

test_name: Add store_pricing_tier_code should return 200 POST
marks:
  - usefixtures:
      - oa_pricing_resource_access_allowed_session_token
      - random_string
stages:
  - name: Add store_pricing_tier_code should return 200 POST
    request:
      url: "{grass_host}{pricing_admin_store_pricing_tier}/{store_pricing_tier}/store-pricing-tier-code"
      headers:
        session: "{oa_pricing_resource_access_allowed_session_token}"
      method: POST
      json:
        price_code: "{random_string}"
        resolution: ""
        applies_worldwide: false
        territory_list_include: true
        territories:
          - AF
          - AX
    response:
      status_code: 200
---

test_name: Add store_pricing_tier_code should return 403 POST
marks:
  - usefixtures:
      - oa_pricing_resource_access_denied_session_token
      - random_string
stages:
  - name: Add store_pricing_tier_code should return 403 POST
    request:
      url: "{grass_host}{pricing_admin_store_pricing_tier}/{store_pricing_tier}/store-pricing-tier-code"
      headers:
        session: "{oa_pricing_resource_access_denied_session_token}"
      method: POST
      json:
        price_code: "{random_string}"
        resolution: ""
        applies_worldwide: false
        territory_list_include: true
        territories:
          - AF
          - AX
    response:
      status_code: 403
---

test_name: Update store_pricing_tier_code should return 200 PUT
marks:
  - usefixtures:
      - oa_pricing_resource_access_allowed_session_token
stages:
  - name: Update store_pricing_tier_code should return 200 PUT
    request:
      url: "{grass_host}{pricing_admin_store_pricing_tier}/{store_pricing_tier}/store-pricing-tier-code/{store_pricing_tier_code}"
      headers:
        session: "{oa_pricing_resource_access_allowed_session_token}"
      method: PUT
      json:
        price_code: 100
        resolution: ""
        applies_worldwide: true
        territory_list_include: true
    response:
      status_code: 200
---

test_name: Update store_pricing_tier_code should return 403 PUT
marks:
  - usefixtures:
      - oa_pricing_resource_access_denied_session_token
stages:
  - name: Update store_pricing_tier_code should return 403 PUT
    request:
      url: "{grass_host}{pricing_admin_store_pricing_tier}/{store_pricing_tier}/store-pricing-tier-code/{store_pricing_tier_code}"
      headers:
        session: "{oa_pricing_resource_access_denied_session_token}"
      method: PUT
      json:
        price_code: 100
        resolution: ""
        applies_worldwide: true
        territory_list_include: true
    response:
      status_code: 403
