Skip to content

Commit

Permalink
Merge branch 'main' into show-card-option-in-apple-pay
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 authored Dec 5, 2024
2 parents 8b203e3 + 62521f3 commit 52ab09a
Show file tree
Hide file tree
Showing 348 changed files with 12,368 additions and 8,091 deletions.
1 change: 1 addition & 0 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
allow-dbg-in-tests = true
62 changes: 60 additions & 2 deletions .github/workflows/cypress-tests-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,72 @@ env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
PAYMENTS_CONNECTORS: "cybersource stripe"
PAYOUTS_CONNECTORS: "wise"
RUST_BACKTRACE: short
RUSTUP_MAX_RETRIES: 10
RUN_TESTS: ${{ ((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')}}
DEBUG: cypress:cli
RUST_MIN_STACK: 10485760

jobs:
formatter:
name: Run formatter on Cypress tests and address lints
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest
steps:
- name: Generate a token
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
id: generate_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.HYPERSWITCH_BOT_APP_ID }}
private-key: ${{ secrets.HYPERSWITCH_BOT_APP_PRIVATE_KEY }}

- name: Checkout repository with token
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ steps.generate_token.outputs.token }}

- name: Checkout repository for fork
if: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install Cypress and dependencies
run: |
npm ci --prefix ./cypress-tests
- name: Check formatting for forked pull requests
if: ${{ github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name }}
shell: bash
run: |
npm run format:check --prefix cypress-tests
npm run lint --prefix cypress-tests
- name: Check formatting
if: ${{ github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name }}
shell: bash
run: |
npm run format --prefix cypress-tests
npm run lint --prefix cypress-tests -- --fix
if ! git diff --exit-code --quiet -- cypress-tests; then
echo "::notice::Cypress formatting and lint check failed"
git config --local user.name 'hyperswitch-bot[bot]'
git config --local user.email '148525504+hyperswitch-bot[bot]@users.noreply.github.com'
git add cypress-tests
git commit --message 'chore(cypress): run formatter and address lints'
git push
fi
runner:
name: Run Cypress tests
runs-on: ubuntu-latest
Expand Down Expand Up @@ -69,7 +127,7 @@ jobs:
CONNECTOR_AUTH_PASSPHRASE: ${{ secrets.CONNECTOR_AUTH_PASSPHRASE }}
CONNECTOR_CREDS_S3_BUCKET_URI: ${{ secrets.CONNECTOR_CREDS_S3_BUCKET_URI}}
DESTINATION_FILE_NAME: "creds.json.gpg"
S3_SOURCE_FILE_NAME: "5a3f7679-445e-4621-86c5-39bd8d26b7c5.json.gpg"
S3_SOURCE_FILE_NAME: "6f8289a9-6da0-433b-8a24-18d4d7257b7f.json.gpg"
shell: bash
run: |
mkdir -p ".github/secrets" ".github/test"
Expand Down
52 changes: 52 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,58 @@ All notable changes to HyperSwitch will be documented here.

- - -

## 2024.12.05.0

### Features

- **themes:** Create APIs for managing themes ([#6658](https://github.com/juspay/hyperswitch/pull/6658)) ([`3a3e93c`](https://github.com/juspay/hyperswitch/commit/3a3e93cb3be3fc3ffabef2a708b49defabf338a5))
- Add resources and granular permission groups for reconciliation ([#6591](https://github.com/juspay/hyperswitch/pull/6591)) ([`fa21ef8`](https://github.com/juspay/hyperswitch/commit/fa21ef892da1b2ff511a39134ffdcc5d404dc91a))

### Refactors

- **address:** Change address to domain address in application ([#6608](https://github.com/juspay/hyperswitch/pull/6608)) ([`938b2a8`](https://github.com/juspay/hyperswitch/commit/938b2a898ea3f647d57812858c6bd4dad13972a3))
- **connector:** Add amount conversion framework to cybersource ([#6335](https://github.com/juspay/hyperswitch/pull/6335)) ([`248be9c`](https://github.com/juspay/hyperswitch/commit/248be9c73e7d627c856e5398234ff5840c93798c))
- **gsm:** Add `error_category` column to gsm table ([#6648](https://github.com/juspay/hyperswitch/pull/6648)) ([`fd82cf6`](https://github.com/juspay/hyperswitch/commit/fd82cf610a15143559f8db1038c8c65ede6e7b7c))

### Miscellaneous Tasks

- Wasm paze additional details ([#6710](https://github.com/juspay/hyperswitch/pull/6710)) ([`35f963c`](https://github.com/juspay/hyperswitch/commit/35f963c2e8a48add26bc80e6a828e2d18e6f1058))

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

- - -

## 2024.12.04.0

### Features

- **cypress:** Add multiple creds and flags support ([#6588](https://github.com/juspay/hyperswitch/pull/6588)) ([`6438391`](https://github.com/juspay/hyperswitch/commit/64383915bda5693df1cecf6cc5683e8b9aaef99b))

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

- - -

## 2024.12.03.0

### Features

- **payment_methods_v2:** Implement a barebones version of list customer payment methods v2 ([#6649](https://github.com/juspay/hyperswitch/pull/6649)) ([`797a0db`](https://github.com/juspay/hyperswitch/commit/797a0db7733c5b387564fb1bbc106d054c8dffa6))
- **routing:** Elimination routing switch for toggling the feature ([#6568](https://github.com/juspay/hyperswitch/pull/6568)) ([`f6dde13`](https://github.com/juspay/hyperswitch/commit/f6dde13d6c2920761f236969a3862fe61f3e0e3d))

### Bug Fixes

- **connector:** Adyen - propagate connector mandate details in incoming webhooks ([#6720](https://github.com/juspay/hyperswitch/pull/6720)) ([`bea4b9e`](https://github.com/juspay/hyperswitch/commit/bea4b9e7f430c3d7fbb25be0b472d2afb01135ec))
- **opensearch:** Fix empty filter array query addition in globalsearch query ([#6716](https://github.com/juspay/hyperswitch/pull/6716)) ([`063a1c6`](https://github.com/juspay/hyperswitch/commit/063a1c636ce29ca8f76c3c272c6da4d32d356cda))
- **payment_link:** Add support for hide card nickname field for open payment links ([#6700](https://github.com/juspay/hyperswitch/pull/6700)) ([`933911e`](https://github.com/juspay/hyperswitch/commit/933911eda11f32d72ffeddb948b86672cb08105b))

### Miscellaneous Tasks

- Address Rust 1.83.0 clippy lints and enable more clippy lints ([#6705](https://github.com/juspay/hyperswitch/pull/6705)) ([`9a59d0a`](https://github.com/juspay/hyperswitch/commit/9a59d0a5ff682cd7a983a63e90113afc846aeac6))

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

- - -

## 2024.12.02.1

### Bug Fixes
Expand Down
3 changes: 2 additions & 1 deletion Cargo.lock

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

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,16 @@ unused_qualifications = "warn"

[workspace.lints.clippy]
as_conversions = "warn"
cloned_instead_of_copied = "warn"
dbg_macro = "warn"
expect_used = "warn"
fn_params_excessive_bools = "warn"
index_refutable_slice = "warn"
indexing_slicing = "warn"
large_futures = "warn"
match_on_vec_items = "warn"
missing_panics_doc = "warn"
mod_module_files = "warn"
out_of_bounds_indexing = "warn"
panic = "warn"
panic_in_result_fn = "warn"
Expand All @@ -32,10 +36,12 @@ print_stderr = "warn"
print_stdout = "warn"
todo = "warn"
unimplemented = "warn"
unnecessary_self_imports = "warn"
unreachable = "warn"
unwrap_in_result = "warn"
unwrap_used = "warn"
use_self = "warn"
wildcard_dependencies = "warn"

# Lints to allow
option_map_unit_fn = "allow"
Expand Down
83 changes: 69 additions & 14 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@
],
"summary": "Routing - Create",
"description": "Create a routing algorithm",
"operationId": "Create a routing algprithm",
"operationId": "Create a routing algorithm",
"requestBody": {
"content": {
"application/json": {
Expand Down Expand Up @@ -2972,8 +2972,8 @@
"required": [
"order_amount",
"currency",
"skip_external_tax_calculation",
"skip_surcharge_calculation"
"external_tax_calculation",
"surcharge_calculation"
],
"properties": {
"order_amount": {
Expand Down Expand Up @@ -3002,10 +3002,10 @@
],
"nullable": true
},
"skip_external_tax_calculation": {
"external_tax_calculation": {
"$ref": "#/components/schemas/TaxCalculationOverride"
},
"skip_surcharge_calculation": {
"surcharge_calculation": {
"$ref": "#/components/schemas/SurchargeCalculationOverride"
},
"surcharge_amount": {
Expand Down Expand Up @@ -4176,7 +4176,7 @@
},
"bank_account_bic": {
"type": "string",
"description": "Bank account details for Giropay\nBank account bic code",
"description": "Bank account bic code",
"nullable": true
},
"bank_account_iban": {
Expand Down Expand Up @@ -6125,8 +6125,8 @@
"type": "object",
"required": [
"currency",
"skip_external_tax_calculation",
"skip_surcharge_calculation",
"external_tax_calculation",
"surcharge_calculation",
"net_amount",
"amount_capturable"
],
Expand Down Expand Up @@ -6157,10 +6157,10 @@
],
"nullable": true
},
"skip_external_tax_calculation": {
"external_tax_calculation": {
"$ref": "#/components/schemas/TaxCalculationOverride"
},
"skip_surcharge_calculation": {
"surcharge_calculation": {
"$ref": "#/components/schemas/SurchargeCalculationOverride"
},
"surcharge_amount": {
Expand Down Expand Up @@ -7776,6 +7776,16 @@
}
}
},
"ErrorCategory": {
"type": "string",
"enum": [
"frm_decline",
"processor_downtime",
"processor_decline_unauthorized",
"issue_with_payment_method",
"processor_decline_incorrect_data"
]
},
"ErrorDetails": {
"type": "object",
"description": "Error details for the payment",
Expand Down Expand Up @@ -9162,6 +9172,14 @@
"type": "string",
"description": "error message unified across the connectors",
"nullable": true
},
"error_category": {
"allOf": [
{
"$ref": "#/components/schemas/ErrorCategory"
}
],
"nullable": true
}
}
},
Expand Down Expand Up @@ -9295,6 +9313,14 @@
"type": "string",
"description": "error message unified across the connectors",
"nullable": true
},
"error_category": {
"allOf": [
{
"$ref": "#/components/schemas/ErrorCategory"
}
],
"nullable": true
}
}
},
Expand Down Expand Up @@ -9391,6 +9417,14 @@
"type": "string",
"description": "error message unified across the connectors",
"nullable": true
},
"error_category": {
"allOf": [
{
"$ref": "#/components/schemas/ErrorCategory"
}
],
"nullable": true
}
}
},
Expand Down Expand Up @@ -14971,6 +15005,7 @@
"status",
"amount_details",
"client_secret",
"profile_id",
"capture_method",
"authentication_type",
"customer_present",
Expand All @@ -14997,6 +15032,10 @@
"description": "It's a token used for client side verification.",
"example": "pay_U42c409qyHwOkWo3vK60_secret_el9ksDkiB8hi6j9N78yo"
},
"profile_id": {
"type": "string",
"description": "The identifier for the profile. This is inferred from the `x-profile-id` header"
},
"merchant_reference_id": {
"type": "string",
"description": "Unique identifier for the payment. This ensures idempotency for multiple payments\nthat have been done by a single merchant.",
Expand Down Expand Up @@ -15816,6 +15855,22 @@
}
],
"nullable": true
},
"shipping": {
"allOf": [
{
"$ref": "#/components/schemas/Address"
}
],
"nullable": true
},
"billing": {
"allOf": [
{
"$ref": "#/components/schemas/Address"
}
],
"nullable": true
}
}
},
Expand Down Expand Up @@ -19661,8 +19716,8 @@
"SurchargeCalculationOverride": {
"type": "string",
"enum": [
"Skip",
"Calculate"
"skip",
"calculate"
]
},
"SurchargeDetailsResponse": {
Expand Down Expand Up @@ -19763,8 +19818,8 @@
"TaxCalculationOverride": {
"type": "string",
"enum": [
"Skip",
"Calculate"
"skip",
"calculate"
]
},
"ThirdPartySdkSessionResponse": {
Expand Down
Loading

0 comments on commit 52ab09a

Please sign in to comment.