Skip to content

Commit

Permalink
Merge branch 'main' of github.com:juspay/hyperswitch into cypress-pay…
Browse files Browse the repository at this point in the history
…out-fix

* 'main' of github.com:juspay/hyperswitch:
  refactor(connector): convert init payment flow to preprocessing flow for shift4 (#4884)
  ci(cypress): Add billing address for bank redirects (#4903)
  refactor(openapi): move openapi to a separate folder (#4859)
  chore(version): 2024.06.07.0
  refactor(outgoing_webhooks): raise errors in the analytics pipeline in case of API client errors or non-2xx responses (#4894)
  chore(config): [MIFINITY] add configs for Mifinity in WASM (#4895)
  feat(router): add `acquirer_country_code` in acquirer_details and send it in netcetera authentication flow (#4835)
  refactor(connector): convert init payment flow to preprocessing flow for nuvei (#4878)
  feat(connector): [MIFINITY] Implement payment flows and Mifinity payment method (#4592)
  fix(connectors): [BOA/CYBS] make avs code optional (#4898)
  feat(events): add metadata info to events (#4875)
  • Loading branch information
pixincreate committed Jun 7, 2024
2 parents b5f178f + 5b92371 commit 2c820de
Show file tree
Hide file tree
Showing 205 changed files with 3,054 additions and 5,458 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/validate-openapi-spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ jobs:

- name: Validate the JSON file
shell: bash
run: swagger-cli validate ./openapi/openapi_spec.json
run: swagger-cli validate ./api-reference/openapi_spec.json

- name: Commit the JSON file if it is not up-to-date
# PR originated from same repository
if: ${{ (github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name) }}
shell: bash
run: |
if ! git diff --quiet --exit-code -- openapi/openapi_spec.json ; then
if ! git diff --quiet --exit-code -- api-reference/openapi_spec.json ; then
git config --local user.name 'hyperswitch-bot[bot]'
git config --local user.email '148525504+hyperswitch-bot[bot]@users.noreply.github.com'
git add openapi/openapi_spec.json
git add api-reference/openapi_spec.json
git commit --message 'docs(openapi): re-generate OpenAPI specification'
git push
fi
Expand All @@ -79,7 +79,7 @@ jobs:
if: ${{ (github.event_name == 'merge_group') || ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name)) }}
shell: bash
run: |
if ! git diff --quiet --exit-code -- openapi/openapi_spec.json ; then
if ! git diff --quiet --exit-code -- api-reference/openapi_spec.json ; then
echo '::error::The OpenAPI spec file is not up-to-date. Please re-generate the OpenAPI spec file using `cargo run -p openapi` and commit it.'
exit 1
fi
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,31 @@ All notable changes to HyperSwitch will be documented here.

- - -

## 2024.06.07.0

### Features

- **connector:** [MIFINITY] Implement payment flows and Mifinity payment method ([#4592](https://github.com/juspay/hyperswitch/pull/4592)) ([`6750be5`](https://github.com/juspay/hyperswitch/commit/6750be5aeecfa8c3805cf2eac49e6122a8eb91e1))
- **events:** Add metadata info to events ([#4875](https://github.com/juspay/hyperswitch/pull/4875)) ([`c9dbb56`](https://github.com/juspay/hyperswitch/commit/c9dbb567ab1a633aef6d4fd8bace7250ed638747))
- **router:** Add `acquirer_country_code` in acquirer_details and send it in netcetera authentication flow ([#4835](https://github.com/juspay/hyperswitch/pull/4835)) ([`3077421`](https://github.com/juspay/hyperswitch/commit/3077421cbde335faec961fb6d751078e87dcf1ac))

### Bug Fixes

- **connectors:** [BOA/CYBS] make avs code optional ([#4898](https://github.com/juspay/hyperswitch/pull/4898)) ([`3d9ecd0`](https://github.com/juspay/hyperswitch/commit/3d9ecd09383916fa9ac824e5ebf9052f6862758d))

### Refactors

- **connector:** Convert init payment flow to preprocessing flow for nuvei ([#4878](https://github.com/juspay/hyperswitch/pull/4878)) ([`e7acaa5`](https://github.com/juspay/hyperswitch/commit/e7acaa5716e93a7ebcd497fe18bb3748e04e890c))
- **outgoing_webhooks:** Raise errors in the analytics pipeline in case of API client errors or non-2xx responses ([#4894](https://github.com/juspay/hyperswitch/pull/4894)) ([`9da9202`](https://github.com/juspay/hyperswitch/commit/9da92027ef82f96140ee6663733c19ac927e3775))

### Miscellaneous Tasks

- **config:** [MIFINITY] add configs for Mifinity in WASM ([#4895](https://github.com/juspay/hyperswitch/pull/4895)) ([`b4dbe84`](https://github.com/juspay/hyperswitch/commit/b4dbe841f82b1d3bbbd70926fa46c03270b5599b))

**Full Changelog:** [`2024.06.06.1...2024.06.07.0`](https://github.com/juspay/hyperswitch/compare/2024.06.06.1...2024.06.07.0)

- - -

## 2024.06.06.1

### Features
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions api-reference/_snippets/snippet-example.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## My Snippet

<Info>This is an example of a reusable snippet</Info>
3 changes: 3 additions & 0 deletions api-reference/api-reference/api-key/api-key--create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /api_keys/{merchant_id)
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/api-key/api-key--retrieve.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /api_keys/{merchant_id}/{key_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/api-key/api-key--revoke.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: delete /api_keys/{merchant_id)/{key_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/api-key/api-key--update.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /api_keys/{merchant_id}/{key_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/blocklist/delete-blocklist.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: delete /blocklist
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/blocklist/get-blocklist.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /blocklist
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/blocklist/post-blocklist.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /blocklist
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /blocklist/toggle
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /account/{account_id}/business_profile
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: delete /account/{account_id}/business_profile/{profile_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /account/{account_id}/business_profile
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /account/{account_id}/business_profile/{profile_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /account/{account_id}/business_profile/{profile_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /{customer_id}/payment_methods/{payment_method_id}/default
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/customers/customers--create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /customers
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/customers/customers--delete.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec delete /customers/{customer_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/customers/customers--list.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /customers/list
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/customers/customers--retrieve.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /customers/{customer_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/customers/customers--update.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /customers/{customer_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/disputes/disputes--list.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /disputes/list
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/disputes/disputes--retrieve.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /disputes/{dispute_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /events/{merchant_id_or_profile_id}/{event_id}/attempts
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/event/events--list.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /events/{merchant_id_or_profile_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/event/events--manual-retry.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /events/{merchant_id_or_profile_id}/{event_id}/retry
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/gsm/gsm--create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /gsm
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/gsm/gsm--delete.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /gsm/delete
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/gsm/gsm--get.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /gsm/get
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/gsm/gsm--update.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /gsm/update
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /customers/{customer_id}/mandates
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /mandates/{mandate_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /mandates/revoke/{mandate_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /accounts
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: delete /accounts/{account_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /accounts/{account_id}/kv
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /accounts/{account_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /accounts/{account_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /accounts/{account_id}/connectors
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: delete /accounts/{account_id}/connectors/{connector_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /accounts/{account_id}/connectors
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /accounts/{account_id}/connectors/{connector_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /accounts/{account_id}/connectors/{connector_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /customers/payment_methods
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /customers/{customer_id}/payment_methods
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /account/payment_methods
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec delete /payment_methods/{method_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /payment_methods/{method_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: get /{customer_id}/payment_methods/{payment_method_id}/default
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payment_methods/{method_id}/update
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payment_methods
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payments/payments--cancel.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payments/{payment_id}/cancel
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payments/payments--capture.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payments/{payment_id}/capture
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /{payment_id}/complete_authorize
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payments/payments--confirm.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payments/{payment_id}/confirm
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payments/payments--create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payments
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /payments/{payment_id}/3ds/authentication
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /payments/{payment_id}/incremental_authorization
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payments/payments--list.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /payments/list
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payments/payments--retrieve.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /payments/{payment_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payments/session_tokens
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payments/payments--update.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payments/{payment_id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /payment_link/{payment_link_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payouts/payouts--cancel.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payouts/{payout_id}/cancel
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payouts/payouts--create.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payouts/create
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payouts/payouts--filter.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /payouts/list
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/payouts/payouts--fulfill.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /payouts/{payout_id}/fulfill
---
Loading

0 comments on commit 2c820de

Please sign in to comment.