Issue:
feat(connector): [Authorizedotnet] implement payment and refund webhook flow for Authorizedotnet 

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
Payments and refund Webhook Flow for Authorizedotnet

### Additional Changes

- [ ] This PR modifies the API contract
- [ ] 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`
2. `crates/router/src/configs`
3. `loadtest/config`
-->


## Motivation and Context
<!--
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).
-->
Payments and refund webhook flow Authorizedotnet

## How did you test it?
<!--
Did you write an integration/unit/API test to verify the code changes?
Or did you test this change manually (provide relevant screenshots)?
-->
Outgoing payment webhook 
<img width="1169" alt="Screenshot 2023-05-16 at 7 55 40 PM" src="https://github.com/juspay/hyperswitch/assets/121822803/0a35ba1a-9c4a-4cd3-9863-4ec22fd5029f">

Payment retrieve for same payment
<img width="1280" alt="Screenshot 2023-05-16 at 7 56 17 PM" src="https://github.com/juspay/hyperswitch/assets/121822803/697ad716-1224-4f63-a46a-ce4f6117331f">



## Checklist
<!-- Put an `x` in the boxes that apply -->

- [x] I formatted the code `cargo +nightly fmt --all`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed submitted code
- [ ] I added unit tests for my changes where possible
- [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable


Resolution:
<think>
PR Context:
- Title: feat(connector): [Authorizedotnet] implement Capture flow and webhooks for Authorizedotnet
- Merged: 2023-05-18T15:05:33Z
- Files changed: 3 files
- Commits: 13 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates
- [ ] Documentation
- [ ] CI/CD

## Description
<!-- Describe your changes in detail -->
This PR modifies following changes 
1)add capture flow to authorizedotnet
2)add unit tests for authorizedotnet
3)refactor exisiting code for authorizedotnet
4)Payments and refund Webhooks #1176

**Note** :To update the status after autho
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(connector): [Authorizedotnet] implement Capture flow and webhooks for Authorizedotnet (#1171)
S
Files to modify:


**crates/router/src/connector/authorizedotnet.rs**
  Add:
    - function: private::build_headers
    - function: private::get_headers
    - function: private::get_content_type
    - function: private::get_url
    - function: private::get_request_body
    - function: private::build_request
    - function: private::handle_response
    - function: private::get_error_response
    - impl: impl ConnectorCommonExt<Flow, Request, Response> for Authorizedotnet
    - impl: impl ConnectorIntegration<api::Verify, types::VerifyRequestData, types::PaymentsResponseData> for Authorizedotnet
    - impl: impl ConnectorIntegration<api::Capture, types::PaymentsCaptureData, types::PaymentsResponseData> for Authorizedotnet
    - impl: impl impl ConnectorIntegration<api::Authorize, types::PaymentsAuthorizeData, types::PaymentsResponseData>

**crates/router/src/connector/authorizedotnet/transformers.rs**
  Remove:
    - struct: private::TransactionVoidRequest
    - struct: private::ResponseMessage
  Add:
    - struct: private::TransactionVoidOrCaptureRequest

**crates/router/tests/connectors/authorizedotnet.rs**
  Add:
    - function: private::get_data
    - function: private::get_auth_token
    - function: private::should_capture_authorized_payment
    - function: private::should_sync_authorized_payment
    - function: private::should_void_authorized_payment
    - function: private::should_make_payment
    - function: private::should_sync_auto_captured_payment
    - function: private::should_fail_payment_for_empty_card_number
    - function: private::should_fail_payment_for_incorrect_cvc
    - function: private::should_fail_payment_for_invalid_exp_month
    - function: private::should_fail_payment_for_incorrect_expiry_year
    - function: private::should_fail_void_payment_for_auto_capture
    - impl: impl ConnectorActions for AuthorizedotnetTest