---
# System prepended metadata

title: '#166922105 Biller response config rules'

---

# #166922105 Biller response config rules

https://www.pivotaltracker.com/story/show/166922105

## Scenario Test

### On Postman
```gherkin=
Scenario Outline: Response Rules Success
    Given Biller Config Set
    When User Input command_type : <command_type>
    And Input product_id : <product_id>
    And Send request
    And User Get FBS response status : <status>
    And User Get FBS response data.serial_number : <serial_number>
    Then User Get Http response code : <http_response_code>
    And User get next command : <next>

    Examples: 
      | command_type | product_id | status | serial_number    | next     | http_response_code |
      | advise       |        175 | sukses | a                | advice   |                200 |
      | purchase     |         26 | gagal  |     110931978314 | reversal |                200 |
      | inquiry      |        221 | sukses | 0051003619319900 | reversal |                200 |
      | reversal     |        175 | sukses | serial           | null     |                200 |
      | reversal     |         26 | gagal  | a                | reversal |                200 |

  Scenario Outline: Response Rules Failed
    Given Biller Config Set
    When User Input biller_label : <biller_label>
    When User Input command_type : <command_type>
    And Input product_id : <product_id>
    And Send request
    Then User Get Http response code : <http_response_code>
    And message : <message>

    Examples: 
      | biller_label | command_type | product_id | http_response_code | message                        |
      | Reinard      | advise       |         26 |                501 | Invalid response mapping rules |
```