Issue:
Rename `PaymentsRequestSyncData` struct to `PaymentsSyncData`.

Rename the struct `PaymentsRequestSyncData` to `PaymentsSyncData`.
Use this pattern `<Feature>Data`.

And rename PaymentsRouterSyncData struct to PaymentsSyncRouterData.
Pattern - `<Feature>RouterData`

And rename the field name called `request` to `data` in `RouterData` struct.

_Originally posted by @jarnura in https://github.com/juspay/orca/pull/7#discussion_r1032366000_
      

Resolution:
<think>
PR Context:
- Title: refactor: rename the payment request struct
- Merged: 2022-12-01T11:00:34Z
- Files changed: 29 files
- Commits: 10 commits

Implementation approach:
## Type of Change

- [x] Refactoring

## Description
Rename the payment request router data with respective feature data, as suggesed [here](https://github.com/juspay/orca/pull/7#discussion_r1032366000)


### Additional Changes
N.A

## Motivation and Context
This PR closes #21 


## How did you test it?


## Checklist

- [x] I formatted the code `cargo +nightly fmt`
- [x] I addressed lints thrown by `cargo clippy`
- [x] I reviewed submitted code
- [ ] I added unit tests fo
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** refactor: rename the payment request struct (#48)
Files to modify:


**connector-template/mod.rs**
  Remove:
    - function: private::get_url
    - function: private::get_request_body
  Add:
    - function: private::get_url
    - function: private::get_request_body

**connector-template/transformers.rs**
  Remove:
    - impl: impl TryFrom<&types::PaymentsRouterData> for project
  Add:
    - impl: impl TryFrom<&types::PaymentsAuthorizeRouterData> for project

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

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

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

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

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

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

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

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

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

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

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

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

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

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

**crates/router/src/core/payments/flows/psync_flow.rs**
  Remove:
    - impl: impl ConstructFlowSpecificData<
        api::PSync,
        types::PaymentsRequestSyncData,
        types::PaymentsResponseData,
    > for impl Feature<api::PSync, types::PaymentsRequestSyncData>
  Add:
    - impl: impl ConstructFlowSpecificData<api::PSync, types::PaymentsSyncData, types::PaymentsResponseData> for impl Feature<api::PSync, types::PaymentsSyncData>

**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/utils.rs**
  Modify existing code

**crates/router/src/routes/payments.rs**
  Modify existing code

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

**crates/router/src/types/api/payments.rs**
  Remove:
    - struct: pub::PCapture
  Add:
    - struct: pub::Capture

**crates/router/src/types/api/refunds.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_derive/src/macros/operation.rs**
  Modify existing code