juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
11.68k stars 1.23k forks source link

[Refactor] Postman collection #3254

Closed pixincreate closed 7 months ago

pixincreate commented 8 months ago

Introduction

With growing connector list, the number of postman collection have been increasing but the test coverage have been low due to form factor of how postman collection is today. This is slowly converting into a pile of garbage which we do not want to and needs to be addressed by means of refactor.

For refactor to be done, we need a blue-print of how-tos and what-tos.

The main purpose of refactor is to:

Problem

Possible solution

Open for discussions and suggestions

Initial work can be seen here at feat(unified_postman_collection): Unified complete postman collection

pixincreate commented 8 months ago
.
├── postman-collection-1--merchant-account-created-dynamically-and-delete/
│   ├── health-check
│   ├── commons/
│   │   └── <common-files-reside-here>/
│   │       ├── payments-retrieve
│   │       ├── refunds-retrieve
│   │       ├── response.js
│   │       ├── tests.js--not-all
│   │       ├── pre-request.js
│   │       └── event-meta
│   ├── merchant-account/
│   │   ├── create
│   │   ├── list
│   │   ├── retrieve
│   │   └── update
│   ├── api-key/
│   │   ├── create
│   │   ├── update
│   │   ├── retrieve
│   │   └── list
│   ├── customers/
│   │   ├── create
│   │   ├── list
│   │   ├── retrieve
│   │   ├── update
│   │   └── ephemeral-key
│   ├── business-profiles/
│   │   └── routing/
│   │       ├── payment-connectors/
│   │       │   ├── create
│   │       │   ├── retrieve
│   │       │   ├── update
│   │       │   ├── list
│   │       │   ├── <connector-1>/
│   │       │   │   └── <connector-specific-flows>/
│   │       │   │       ├── payments/
│   │       │   │       │   ├── create
│   │       │   │       │   ├── session-token
│   │       │   │       │   ├── update
│   │       │   │       │   ├── retrieve
│   │       │   │       │   ├── confirm-via-client-secret
│   │       │   │       │   ├── capture
│   │       │   │       │   ├── create-again
│   │       │   │       │   ├── confirm-again-via-api-key
│   │       │   │       │   ├── create-again
│   │       │   │       │   ├── cancel
│   │       │   │       │   └── list
│   │       │   │       ├── refunds/
│   │       │   │       │   ├── create
│   │       │   │       │   ├── refund-create
│   │       │   │       │   ├── update
│   │       │   │       │   └── retrieve
│   │       │   │       ├── payment-method/
│   │       │   │       │   ├── create-method
│   │       │   │       │   ├── list-for-merchant
│   │       │   │       │   ├── create
│   │       │   │       │   └── list-for-customer
│   │       │   │       ├── non-3ds/
│   │       │   │       │   ├── create-payment-confirm-true
│   │       │   │       │   ├── refund-full
│   │       │   │       │   ├── create-payment-confirm-false
│   │       │   │       │   ├── partial-refund
│   │       │   │       │   ├── create-payment-without-payment-method-data
│   │       │   │       │   ├── multiple-partial-refund
│   │       │   │       │   ├── create-payment-manual-capture
│   │       │   │       │   ├── create-payment-multiple-partial-capture
│   │       │   │       │   ├── create-payment-manual-capture-confirm-false
│   │       │   │       │   ├── create-payment-manual-capture-confirm-false-without-payment-method-data
│   │       │   │       │   └── void-payment
│   │       │   │       ├── 3ds/
│   │       │   │       │   ├── create-3ds-payment-confirm-true
│   │       │   │       │   ├── create-3ds-payment-confirm-false
│   │       │   │       │   ├── create-3ds-payment-without-payment-method-data
│   │       │   │       │   ├── create-3ds-payment-manual-capture
│   │       │   │       │   ├── create-3ds-payment-manual-capture-confirm-false
│   │       │   │       │   ├── create-3ds-payment-manual-capture-confirm-false-without-payment-method-data
│   │       │   │       │   └── void-payment
│   │       │   │       ├── save-card/
│   │       │   │       │   ├── automated/
│   │       │   │       │   │   ├── create
│   │       │   │       │   │   ├── list-for-customer
│   │       │   │       │   │   ├── save-card-payment-create
│   │       │   │       │   │   ├── retrieve
│   │       │   │       │   │   ├── refunds-create
│   │       │   │       │   │   └── retrieve-refunds
│   │       │   │       │   ├── manual/
│   │       │   │       │   │   ├── create
│   │       │   │       │   │   ├── retrieve
│   │       │   │       │   │   ├── list-for-customer
│   │       │   │       │   │   ├── save-card-payment-create
│   │       │   │       │   │   ├── confirm
│   │       │   │       │   │   ├── capture
│   │       │   │       │   │   ├── retrieve
│   │       │   │       │   │   ├── refunds-create
│   │       │   │       │   │   └── retrieve-refunds
│   │       │   │       │   ├── add-card/
│   │       │   │       │   │   ├── create
│   │       │   │       │   │   ├── list-for-customer
│   │       │   │       │   │   ├── save-card-payment-create
│   │       │   │       │   │   ├── confirm
│   │       │   │       │   │   ├── retrieve
│   │       │   │       │   │   ├── refunds
│   │       │   │       │   │   └── refunds-retrieve
│   │       │   │       │   └── no-cvv-and-no-card-holder-name/
│   │       │   │       │       ├── create
│   │       │   │       │       ├── list-for-customer
│   │       │   │       │       ├── save-card-payment-create
│   │       │   │       │       ├── retrieve
│   │       │   │       │       ├── refunds-create
│   │       │   │       │       └── retrieve-refunds
│   │       │   │       ├── mandate/
│   │       │   │       │   ├── mandate-recurring-payment
│   │       │   │       │   ├── refund-recurring-payment
│   │       │   │       │   ├── multiple-refund-recurring-payment
│   │       │   │       │   └── partial-capture-recurring-payment
│   │       │   │       ├── bank-redirects/
│   │       │   │       │   ├── sofort
│   │       │   │       │   ├── eps
│   │       │   │       │   ├── giropay
│   │       │   │       │   ├── trustly
│   │       │   │       │   ├── ach/
│   │       │   │       │   │   ├── bank-transfer
│   │       │   │       │   │   └── bank-debit
│   │       │   │       │   ├── bacs
│   │       │   │       │   ├── sepa
│   │       │   │       │   ├── wechat
│   │       │   │       │   ├── ideal
│   │       │   │       │   ├── affirm
│   │       │   │       │   ├── afterpay
│   │       │   │       │   ├── klarna
│   │       │   │       │   └── blik
│   │       │   │       ├── payment-links
│   │       │   │       └── variations/
│   │       │   │           ├── invalid-card-info
│   │       │   │           ├── missing-card-credentials
│   │       │   │           ├── payment-confirm-without-pmd
│   │       │   │           ├── capture-greater-amount
│   │       │   │           ├── capture-succeded-amount
│   │       │   │           ├── void-success-or-failure-payment
│   │       │   │           ├── 3ds-payment-with-greater-capture
│   │       │   │           ├── refund-exceeds-amount-refund-unsuccessful-payment
│   │       │   │           ├── recurring-payment-greater-mandate-amount
│   │       │   │           └── invalid-cvv
│   │       │   └── <connector-2>/
│   │       │       └── <connector-specific-flows-as-above>
│   │       └── ...
│   ├── customer--delete
│   ├── payment-connector--delete
│   ├── api-key--delete
│   └── merchant-account--delete
└── postman-collection-2--old-merchant-account-for-regression-check
pixincreate commented 7 months ago

closing this, we this is no more the priority or plan in the timeline