Issue:
fix: fixing payment method information for refunds

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [x] Bugfix

## Description

This PR solves the following bugs
1. Refund not working for normal payments
2. Refund not working for recurring payments
3. While also maintaining support for `authorizedotnet` refunds

<!-- Describe your changes in detail -->


### Additional Changes

- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<!-- 
Provide links to the files with corresponding changes.

Following are the paths where you can find config files:
1. `config`
5. `crates/router/src/configs`
6. `loadtest/config`
-->


## Motivation and Context
N/A
<!--
Why is this change required? What problem does it solve?
If it fixes an open issue, please link to the issue here.

If you don't have an issue, we'd recommend starting with one first so the PR
can focus on the implementation (unless its an obvious bug or documentation fix
that will have little conversation).
-->


## How did you test it?
<img width="688" alt="Screenshot 2023-01-06 at 5 25 32 PM" src="https://user-images.githubusercontent.com/51093026/211007775-4a04ad9a-2dd0-4866-8af1-f6c8c5ed1e5a.png">


<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->


## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed submitted code


Resolution:
<think>
PR Context:
- Title: fix: refund fix with `connector_metadata`
- Merged: 2023-01-10T13:54:19Z
- Files changed: 28 files
- Commits: 5 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [x] Bugfix

## Description
This PR overturns #313 & #314 

This PR solves the following bugs
1. Refund not working for normal payments
2. Refund not working for recurring payments
3. While also maintaining support for `authorizedotnet` refunds

<!-- Describe your changes in detail -->


### Additional Changes

- [x] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment 
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** fix: refund fix with `connector_metadata` (#330)
Files to modify:


**crates/router/src/compatibility/stripe/errors.rs**
  Modify existing code

**crates/router/src/connector/aci/transformers.rs**
  Modify existing code

**crates/router/src/connector/adyen/transformers.rs**
  Modify existing code

**crates/router/src/connector/authorizedotnet/transformers.rs**
  Modify existing code

**crates/router/src/connector/braintree/transformers.rs**
  Modify existing code

**crates/router/src/connector/checkout/transformers.rs**
  Modify existing code

**crates/router/src/connector/cybersource/transformers.rs**
  Modify existing code

**crates/router/src/connector/klarna/transformers.rs**
  Modify existing code

**crates/router/src/connector/shift4/transformers.rs**
  Modify existing code

**crates/router/src/connector/stripe/transformers.rs**
  Modify existing code

**crates/router/src/connector/worldpay.rs**
  Modify existing code

**crates/router/src/connector/worldpay/transformers.rs**
  Modify existing code

**crates/router/src/core/errors/api_error_response.rs**
  Modify existing code

**crates/router/src/core/payments/operations/payment_response.rs**
  Modify existing code

**crates/router/src/core/payments/transformers.rs**
  Modify existing code

**crates/router/src/core/refunds.rs**
  Modify existing code

**crates/router/src/core/refunds/validator.rs**
  Add:
    - function: pub::validate_for_valid_refunds

**crates/router/src/core/utils.rs**
  Modify existing code

**crates/router/src/db/payment_attempt.rs**
  Modify existing code

**crates/router/src/types.rs**
  Modify existing code

**crates/router/tests/connectors/aci.rs**
  Modify existing code

**crates/router/tests/connectors/authorizedotnet.rs**
  Modify existing code

**crates/router/tests/connectors/checkout.rs**
  Modify existing code

**crates/router/tests/connectors/utils.rs**
  Modify existing code

**crates/storage_models/src/payment_attempt.rs**
  Modify existing code

**crates/storage_models/src/schema.rs**
  Modify existing code