Skip to content

Commit 0fab196

Browse files
committed
Merge branch 'main' of github.com:juspay/hyperswitch into add-cypress-ci
* 'main' of github.com:juspay/hyperswitch: (25 commits) fix(logs): ignore request headers while logging (#5273) feat(webhooks): add support for custom outgoing webhook http headers (#5275) fix(payment_methods): set `requires_cvv` to false when either `connector_mandate_details` or `network_transaction_id` is present during MITs (#5331) chore: create justfile for running commands for v1 and v2 migrations (#5325) fix(routing): do not update `perform_session_flow_routing` output if the `SessionRoutingChoice` is none (#5336) fix(database): modified_at updated for every state change for Payment Attempts (#5312) feat(mca): Added recipient connector call for open banking connectors (#3758) chore(version): 2024.07.16.0 refactor(connector): [Mifinity] add a field language_preference in payment request for mifinity payment method data (#5326) fix(router): store `customer_acceptance` in payment_attempt, use it in confirm flow for delayed authorizations like external 3ds flow (#5308) feat(proxy): add support to pass proxy bypass urls from configs (#5322) Docs: Updating Error codes in API-ref (#5296) feat(core): [Payouts] Add retrieve flow for payouts (#4936) fix(connector): [AUTHORIZEDOTNET] Populate error reason for failure transactions (#5319) chore(version): 2024.07.15.0 feat(logging): Emit a setup error when a restricted keys are used for logging default keys (#5185) feat(payment_methods): add support to migrate existing customer PMs from processor to hyperswitch (#5306) feat(connector): [DATATRANS] Implement card payments (#5028) chore: making of function create_encrypted_data (#5251) fix(payments): populate merchant order ref id in list (#5310) ...
2 parents 33afcee + 34d2cec commit 0fab196

File tree

196 files changed

+14482
-2451
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

196 files changed

+14482
-2451
lines changed

.github/workflows/migration-check.yaml

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
name: Verify consistency of migrations with `schema.rs` file
2626
runs-on: ubuntu-latest
2727

28+
env:
29+
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
30+
2831
services:
2932
postgres:
3033
image: postgres
@@ -53,14 +56,22 @@ jobs:
5356
features: postgres
5457
args: "--no-default-features"
5558

56-
- name: Verify `diesel migration run`
59+
- uses: baptiste0928/[email protected]
60+
with:
61+
crate: just
62+
63+
- name: Verify `diesel migration run for v1`
5764
shell: bash
58-
env:
59-
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
60-
run: make migrate locked-schema=yes
65+
run: just migrate run --locked-schema
6166

62-
- name: Verify `diesel migration redo`
67+
- name: Verify `diesel migration redo for v1`
6368
shell: bash
64-
env:
65-
DATABASE_URL: postgres://postgres:postgres@localhost:5432/postgres
66-
run: make redo_migrate locked-schema=yes
69+
run: just migrate redo --locked-schema --all
70+
71+
- name: Verify `diesel migration run for v2`
72+
shell: bash
73+
run: just migrate_v2 run --locked-schema
74+
75+
- name: Verify `diesel migration redo for v2`
76+
shell: bash
77+
run: just migrate_v2 redo --locked-schema --all

.github/workflows/postman-collection-runner.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,17 @@ jobs:
102102
features: postgres
103103
args: "--no-default-features"
104104

105+
- uses: baptiste0928/[email protected]
106+
if: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}
107+
with:
108+
crate: just
109+
105110
- name: Diesel migration run
106111
if: ${{ ((github.event_name == 'pull_request') && (github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name)) || (github.event_name == 'merge_group')}}
107112
shell: bash
108113
env:
109114
DATABASE_URL: postgres://db_user:db_pass@localhost:5432/hyperswitch_db
110-
run: make migrate locked-schema=yes
115+
run: just migrate run --locked-schema
111116

112117
- name: Install newman from fork
113118
run: npm ci

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,59 @@ All notable changes to HyperSwitch will be documented here.
44

55
- - -
66

7+
## 2024.07.16.0
8+
9+
### Features
10+
11+
- **core:** [Payouts] Add retrieve flow for payouts ([#4936](https://github.com/juspay/hyperswitch/pull/4936)) ([`693f08d`](https://github.com/juspay/hyperswitch/commit/693f08dc5bf57de3ec180968209f98a133503109))
12+
- **proxy:** Add support to pass proxy bypass urls from configs ([#5322](https://github.com/juspay/hyperswitch/pull/5322)) ([`61b3aef`](https://github.com/juspay/hyperswitch/commit/61b3aef6617ccfa02d2892b31612811602aabd2b))
13+
14+
### Bug Fixes
15+
16+
- **connector:** [AUTHORIZEDOTNET] Populate error reason for failure transactions ([#5319](https://github.com/juspay/hyperswitch/pull/5319)) ([`d8d222a`](https://github.com/juspay/hyperswitch/commit/d8d222a5d53f934cd45761c6c68edfab37590c85))
17+
- **router:** Store `customer_acceptance` in payment_attempt, use it in confirm flow for delayed authorizations like external 3ds flow ([#5308](https://github.com/juspay/hyperswitch/pull/5308)) ([`0f70473`](https://github.com/juspay/hyperswitch/commit/0f70473a3a0764d95441ac5dd39d6c1676071a82))
18+
19+
### Refactors
20+
21+
- **connector:** [Mifinity] add a field language_preference in payment request for mifinity payment method data ([#5326](https://github.com/juspay/hyperswitch/pull/5326)) ([`e4a0ff1`](https://github.com/juspay/hyperswitch/commit/e4a0ff1c190c0d711aacc67cd25d57bf6c481f0d))
22+
23+
### Documentation
24+
25+
- Updating Error codes in API-ref ([#5296](https://github.com/juspay/hyperswitch/pull/5296)) ([`da1f604`](https://github.com/juspay/hyperswitch/commit/da1f604bb86293b9897d5eb2a0242afb36956efa))
26+
27+
**Full Changelog:** [`2024.07.15.0...2024.07.16.0`](https://github.com/juspay/hyperswitch/compare/2024.07.15.0...2024.07.16.0)
28+
29+
- - -
30+
31+
## 2024.07.15.0
32+
33+
### Features
34+
35+
- **connector:** [DATATRANS] Implement card payments ([#5028](https://github.com/juspay/hyperswitch/pull/5028)) ([`f24a407`](https://github.com/juspay/hyperswitch/commit/f24a4070c33a435f25be9511fe1b90cf337efa52))
36+
- **logging:** Emit a setup error when a restricted keys are used for logging default keys ([#5185](https://github.com/juspay/hyperswitch/pull/5185)) ([`ff96a62`](https://github.com/juspay/hyperswitch/commit/ff96a62b9570392f8b9474ca375c630081cb1189))
37+
- **payment_methods:** Add support to migrate existing customer PMs from processor to hyperswitch ([#5306](https://github.com/juspay/hyperswitch/pull/5306)) ([`2149994`](https://github.com/juspay/hyperswitch/commit/21499947ad229580dd37cbbb22c31c48270bdb29))
38+
39+
### Bug Fixes
40+
41+
- **connector:** [Adyen] fix bank debit mandates for adyen ([#5302](https://github.com/juspay/hyperswitch/pull/5302)) ([`06dc803`](https://github.com/juspay/hyperswitch/commit/06dc80358cb1db972cca7d7f1a6d8d5e3c9e4606))
42+
- **payments:** Populate merchant order ref id in list ([#5310](https://github.com/juspay/hyperswitch/pull/5310)) ([`bf4ec90`](https://github.com/juspay/hyperswitch/commit/bf4ec90d4500d9883dfa946b2ca99976a681ea37))
43+
- Email template minor fix ([#5291](https://github.com/juspay/hyperswitch/pull/5291)) ([`42e26e7`](https://github.com/juspay/hyperswitch/commit/42e26e763e47706744b66cf808a158d97c31153b))
44+
45+
### Refactors
46+
47+
- **cypress:** Correction of cypress tests env variables for Payment method list ([#5299](https://github.com/juspay/hyperswitch/pull/5299)) ([`1081e38`](https://github.com/juspay/hyperswitch/commit/1081e38089e3d6e5bbae73932fe4385ae420250a))
48+
- **payouts:** Update helper functions for deciding whether or not to consume flows based on current status ([#5248](https://github.com/juspay/hyperswitch/pull/5248)) ([`d65d7b5`](https://github.com/juspay/hyperswitch/commit/d65d7b5ccaf3ba0d53a83e1f483a04fc409584c3))
49+
- Use `Debug` impl instead of `Display` impl for logging errors ([#5301](https://github.com/juspay/hyperswitch/pull/5301)) ([`e835706`](https://github.com/juspay/hyperswitch/commit/e835706ad6153f25d74aa1f3b450eaf2fc73a313))
50+
51+
### Miscellaneous Tasks
52+
53+
- **euclid_wasm:** Refactor connector metadata ([#5083](https://github.com/juspay/hyperswitch/pull/5083)) ([`8b614c9`](https://github.com/juspay/hyperswitch/commit/8b614c9b7ed4831b6a11094ad924a8dd55a996d6))
54+
- Making of function create_encrypted_data ([#5251](https://github.com/juspay/hyperswitch/pull/5251)) ([`6ee1cad`](https://github.com/juspay/hyperswitch/commit/6ee1cad46931e2ceb8a6280e469aa1735d60c970))
55+
56+
**Full Changelog:** [`2024.07.12.0...2024.07.15.0`](https://github.com/juspay/hyperswitch/compare/2024.07.12.0...2024.07.15.0)
57+
58+
- - -
59+
760
## 2024.07.12.0
861

962
### Features

Cargo.lock

Lines changed: 27 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

INSTALL_dependencies.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ fi
252252

253253
# run migrations
254254
print_info "Running migrations"
255-
MIGRATION_CMD="make migrate database-url=postgres://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME}"
255+
MIGRATION_CMD="diesel migration --database-url=postgres://${DB_USER}:${DB_PASS}@localhost:5432/${DB_NAME} run"
256256

257257
if [[ -d "migrations" ]]; then
258258
$MIGRATION_CMD

Makefile

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -113,37 +113,3 @@ precommit : fmt clippy test
113113

114114
hack:
115115
cargo hack check --workspace --each-feature --all-targets
116-
117-
# Run database migrations using `diesel_cli`.
118-
# Assumes `diesel_cli` is already installed.
119-
#
120-
# Usage :
121-
# make migrate [database-url=<PSQL connection string>] [locked-schema=<yes|no>]
122-
123-
# This proceeds as follows:
124-
# Creates a temporary migrations directory, cleans it up if it already exists
125-
# Copies all migrations to the temporary migrations directory and runs migrations
126-
# Cleans up migrations, removing tmp directory if empty, ignoring otherwise
127-
migrate:
128-
mkdir -p $(ROOT_DIR)/tmp/migrations
129-
find $(ROOT_DIR)/tmp/migrations/ -mindepth 1 -delete
130-
131-
cp -r $(ROOT_DIR)/migrations/. $(ROOT_DIR)/v2_migrations/. $(ROOT_DIR)/tmp/migrations/
132-
diesel migration run --migration-dir=$(ROOT_DIR)/tmp/migrations \
133-
$(if $(strip $(database-url)),--database-url="$(database-url)",) \
134-
$(if $(strip $(call eq,$(locked-schema),yes)),--locked-schema,)
135-
136-
rm -r $(ROOT_DIR)/tmp/migrations
137-
rmdir $(ROOT_DIR)/tmp 2>/dev/null || true
138-
139-
redo_migrate:
140-
mkdir -p $(ROOT_DIR)/tmp/migrations
141-
find $(ROOT_DIR)/tmp/migrations/ -mindepth 1 -delete
142-
143-
cp -r $(ROOT_DIR)/migrations/. $(ROOT_DIR)/v2_migrations/. $(ROOT_DIR)/tmp/migrations/
144-
diesel migration redo --all --migration-dir=$(ROOT_DIR)/tmp/migrations \
145-
$(if $(strip $(database-url)),--database-url="$(database-url)",) \
146-
$(if $(strip $(call eq,$(locked-schema),yes)),--locked-schema,)
147-
148-
rm -r $(ROOT_DIR)/tmp/migrations
149-
rmdir $(ROOT_DIR)/tmp 2>/dev/null || true

0 commit comments

Comments
 (0)