Issue:
feat(stripe): add setup intent in connector integration (stripe)

## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [ ] New feature
- [x] Enhancement
- [ ] Refactoring
- [ ] Dependency updates

## Description
This PR adds a stripe POC for the verify API
<!-- 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`
2. `crates/router/src/configs`
3. `loadtest/config`
-->


## Motivation and Context
Here, the intension is adding a new Validation feature in PaymentsCore, for that reason following are the steps that the change is broken down to.

1. Create new types for the change #45 
2. Introduce the Flow and Connector Integration #47 
3. Add Stripe POC
4. Move the mandate related behaviour to domain
5. Introduce the new operation and all the related components in the payments core
<!--
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?
<!--
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
- [ ] I added unit tests for my changes where possible
- [ ] I added a [CHANGELOG](/CHANGELOG.md) entry if applicable


Resolution:
<think>
PR Context:
- Title: feat(routes): add the validation API in payments route
- Merged: 2022-12-08T14:36:46Z
- Files changed: 14 files
- Commits: 21 commits

Implementation approach:
## Type of Change
<!-- Put an `x` in the boxes that apply -->

- [ ] Bugfix
- [x] New feature
- [ ] Enhancement
- [ ] Refactoring
- [ ] Dependency updates

## Description
This PR is an extension to the pr for adding operation in payments core where the changes are also included in the routes #53 
<!-- Describe your changes in detail -->


### Additional Changes

- [ ] This PR modifies the database schema
- [ ] This PR modifies application configuration/environment variables

<
</think>

To implement this, you'll need to modify:


**Detailed Implementation:**


**Commit 1:** feat(routes): add the validation API in payments route (#61)
Files to modify:


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

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

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

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

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

**crates/router/src/core/payments/operations/payment_response.rs**
  Add:
    - function: private::update_tracker
    - impl: impl PostUpdateTracker<F, PaymentData<F>, types::VerifyRequestData> for PaymentResponse

**crates/router/src/core/payments/transformers.rs**
  Add:
    - function: private::generate_response
    - function: private::generate_response
    - trait: pub::ToResponse
    - impl: impl ToResponse<Req, PaymentData<F>, Op> for api::PaymentsResponse
    - impl: impl ToResponse<Req, PaymentData<F>, Op> for api::VerifyResponse

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

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

**crates/router/src/types/api/payments.rs**
  Add:
    - function: private::from
    - function: private::from
    - impl: impl From<PaymentsRequest> for VerifyRequest
    - impl: impl From<VerifyRequest> for VerifyResponse

**crates/router/tests/payments.rs**
  Modify existing code

**crates/router/tests/payments2.rs**
  Modify existing code

**crates/router_derive/src/macros/operation.rs**
  Modify existing code

**crates/router_env/src/logger/types.rs**
  Modify existing code