Skip to content

Commit

Permalink
Merge branch 'refactor-net-amount' of github.com:juspay/hyperswitch i…
Browse files Browse the repository at this point in the history
…nto refactor-net-amount
  • Loading branch information
sai-harsha-vardhan committed Oct 9, 2024
2 parents 56c77f3 + 7d4aaf1 commit a653f88
Show file tree
Hide file tree
Showing 127 changed files with 3,208 additions and 2,417 deletions.
65 changes: 65 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,71 @@ All notable changes to HyperSwitch will be documented here.

- - -

## 2024.10.08.0

### Bug Fixes

- **user_role:** Restrict updating user role to the same `EntityType` ([#6224](https://github.com/juspay/hyperswitch/pull/6224)) ([`b499287`](https://github.com/juspay/hyperswitch/commit/b499287f2347837bc885387bb5eb99b3fd841f63))
- **users:** Trustpay refund url update ([#6251](https://github.com/juspay/hyperswitch/pull/6251)) ([`f4830eb`](https://github.com/juspay/hyperswitch/commit/f4830ebaae5dcc8407e420dfeb1ca981c08bc8fb))

### Refactors

- **dynamic_fields:** Rename sepa in dynamic fields ([#6234](https://github.com/juspay/hyperswitch/pull/6234)) ([`e44eb13`](https://github.com/juspay/hyperswitch/commit/e44eb13c6188df4863dc6f960e35b2ab6e96c064))

### Documentation

- Fix broken links to Running Additional Services ([#6243](https://github.com/juspay/hyperswitch/pull/6243)) ([`da6c0ff`](https://github.com/juspay/hyperswitch/commit/da6c0ff60bf059e73383ac37671c6df5c26d332c))

### Miscellaneous Tasks

- V2 api changes for session token endpoint ([#6032](https://github.com/juspay/hyperswitch/pull/6032)) ([`6e355f3`](https://github.com/juspay/hyperswitch/commit/6e355f34a8cef41cb9d9047f7c8792d4b46c10d8))

### Build System / Dependencies

- **docker-compose-development:** Address build failure of `hyperswitch-server` service ([#6217](https://github.com/juspay/hyperswitch/pull/6217)) ([`b79f75a`](https://github.com/juspay/hyperswitch/commit/b79f75a7ab9ed63a75defa2b3c5f9c170fca493e))

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

- - -

## 2024.10.07.0

### Features

- **opensearch:** Restrict search view access based on user roles and permissions ([#5932](https://github.com/juspay/hyperswitch/pull/5932)) ([`caa0693`](https://github.com/juspay/hyperswitch/commit/caa0693148764175201f7b1e2029fe29941cc7eb))

### Bug Fixes

- Add `reference` in `sepa_bank_instructions` ([#6215](https://github.com/juspay/hyperswitch/pull/6215)) ([`036a2d5`](https://github.com/juspay/hyperswitch/commit/036a2d5056134c067ec76dfd2afce4855303f5d7))
- Batch encrypt/decrypt on merchant connector account ([#6206](https://github.com/juspay/hyperswitch/pull/6206)) ([`b713948`](https://github.com/juspay/hyperswitch/commit/b7139483bb4735b7dfaf7e659ab33a16a90af1db))

### Refactors

- **user_role:** Remove V1 insertion for `user_roles` and allow Invites for `org_admins` ([#6185](https://github.com/juspay/hyperswitch/pull/6185)) ([`c07ee28`](https://github.com/juspay/hyperswitch/commit/c07ee28c0a0b388ee8064a247e70484a3c4fec33))
- **users:** Deprecate unused user APIs and stabilize v1 APIs ([#6114](https://github.com/juspay/hyperswitch/pull/6114)) ([`b2eb56e`](https://github.com/juspay/hyperswitch/commit/b2eb56e8d8589d1ae1a841a2c9e914c9d93e7993))

### Documentation

- Change organization_id to id in organization endpoints ([#6218](https://github.com/juspay/hyperswitch/pull/6218)) ([`939483c`](https://github.com/juspay/hyperswitch/commit/939483cebe91d16266521827e9fbd654fb060ca6))

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

- - -

## 2024.10.04.1

### Features

- **connector:** Add dynamic duitnow qr code, google pay and applpe pay for fiuu ([#6204](https://github.com/juspay/hyperswitch/pull/6204)) ([`2e54186`](https://github.com/juspay/hyperswitch/commit/2e54186a809e1322683a9379923ce418d05d3619))

### Bug Fixes

- **router:** Persist card_network if present for non co-badged cards ([#6212](https://github.com/juspay/hyperswitch/pull/6212)) ([`7564826`](https://github.com/juspay/hyperswitch/commit/75648262e7f741351c1149cd01083065d17bde7f))

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

- - -

## 2024.10.04.0

### Features
Expand Down
2 changes: 2 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ clippy :
# make euclid-wasm

euclid-wasm:
wasm-pack build --target web --out-dir $(ROOT_DIR)/wasm --out-name euclid $(ROOT_DIR)/crates/euclid_wasm -- --features dummy_connector
wasm-pack build --target web --out-dir $(ROOT_DIR)/wasm --out-name euclid $(ROOT_DIR)/crates/euclid_wasm -- --features dummy_connector,v1

# Run Rust tests of project.
#
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ setup, which includes the [scheduler and monitoring services][docker-compose-sch
[website-link]: https://hyperswitch.io/
[learning-resources]: https://docs.hyperswitch.io/learn-more/payment-flows
[local-setup-guide]: /docs/try_local_system.md
[docker-compose-scheduler-monitoring]: /docs/try_local_system.md#run-the-scheduler-and-monitoring-services
[docker-compose-scheduler-monitoring]: /docs/try_local_system.md#running-additional-services
<a href="#Fast-Integration-for-Stripe-Users">
<h2 id="fast-integration-for-stripe-users">🔌 Fast Integration for Stripe Users</h2>
</a>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/organization/{organization_id}/merchant_accounts
openapi: get /v2/organization/{id}/merchant_accounts
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/organization/{organization_id}
openapi: get /v2/organization/{id}
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: put /v2/organization/{organization_id}
openapi: put /v2/organization/{id}
---
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: post /v2/payments/{payment_id}/create_external_sdk_tokens
---
3 changes: 2 additions & 1 deletion api-reference-v2/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
{
"group": "Payments",
"pages": [
"api-reference/payments/payments--create-intent"
"api-reference/payments/payments--create-intent",
"api-reference/payments/payments--session-token"
]
},
{
Expand Down
160 changes: 123 additions & 37 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
]
}
},
"/v2/organization/{organization_id}": {
"/v2/organization/{id}": {
"get": {
"tags": [
"Organization"
Expand All @@ -77,7 +77,7 @@
"operationId": "Retrieve an Organization",
"parameters": [
{
"name": "organization_id",
"name": "id",
"in": "path",
"description": "The unique identifier for the Organization",
"required": true,
Expand Down Expand Up @@ -116,7 +116,7 @@
"operationId": "Update an Organization",
"parameters": [
{
"name": "organization_id",
"name": "id",
"in": "path",
"description": "The unique identifier for the Organization",
"required": true,
Expand Down Expand Up @@ -164,7 +164,7 @@
]
}
},
"/v2/organization/{organization_id}/merchant_accounts": {
"/v2/organization/{id}/merchant_accounts": {
"get": {
"tags": [
"Organization"
Expand All @@ -174,7 +174,7 @@
"operationId": "List Merchant Accounts",
"parameters": [
{
"name": "organization_id",
"name": "id",
"in": "path",
"description": "The unique identifier for the Organization",
"required": true,
Expand Down Expand Up @@ -663,6 +663,46 @@
]
}
},
"/v2/payments/{payment_id}/create_external_sdk_tokens": {
"post": {
"tags": [
"Payments"
],
"summary": "Payments - Session token",
"description": "Creates a session object or a session token for wallets like Apple Pay, Google Pay, etc. These tokens are used by Hyperswitch's SDK to initiate these wallets' SDK.",
"operationId": "Create Session tokens for a Payment",
"requestBody": {
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PaymentsSessionRequest"
}
}
},
"required": true
},
"responses": {
"200": {
"description": "Payment session object created or session token was retrieved from wallets",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/PaymentsSessionResponse"
}
}
}
},
"400": {
"description": "Missing mandatory fields"
}
},
"security": [
{
"publishable_key": []
}
]
}
},
"/v2/profiles": {
"post": {
"tags": [
Expand Down Expand Up @@ -5552,6 +5592,11 @@
"type": "object",
"description": "This field contains the Samsung Pay certificates and credentials",
"nullable": true
},
"paze": {
"type": "object",
"description": "This field contains the Paze certificates and credentials",
"nullable": true
}
},
"additionalProperties": false
Expand Down Expand Up @@ -12508,6 +12553,7 @@
"open_banking_uk",
"pay_bright",
"paypal",
"paze",
"pix",
"pay_safe_card",
"przelewy24",
Expand Down Expand Up @@ -15602,37 +15648,7 @@
}
},
"PaymentsSessionRequest": {
"type": "object",
"required": [
"payment_id",
"client_secret",
"wallets"
],
"properties": {
"payment_id": {
"type": "string",
"description": "The identifier for the payment"
},
"client_secret": {
"type": "string",
"description": "This is a token which expires after 15 minutes, used from the client to authenticate and create sessions from the SDK"
},
"wallets": {
"type": "array",
"items": {
"$ref": "#/components/schemas/PaymentMethodType"
},
"description": "The list of the supported wallets"
},
"merchant_connector_details": {
"allOf": [
{
"$ref": "#/components/schemas/MerchantConnectorDetailsWrap"
}
],
"nullable": true
}
}
"type": "object"
},
"PaymentsSessionResponse": {
"type": "object",
Expand Down Expand Up @@ -17128,6 +17144,39 @@
}
}
},
"PazeSessionTokenResponse": {
"type": "object",
"required": [
"client_id",
"client_name",
"client_profile_id"
],
"properties": {
"client_id": {
"type": "string",
"description": "Paze Client ID"
},
"client_name": {
"type": "string",
"description": "Client Name to be displayed on the Paze screen"
},
"client_profile_id": {
"type": "string",
"description": "Paze Client Profile ID"
}
}
},
"PazeWalletData": {
"type": "object",
"required": [
"complete_response"
],
"properties": {
"complete_response": {
"type": "string"
}
}
},
"PhoneDetails": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -19214,7 +19263,8 @@
"account_holder_name",
"bic",
"country",
"iban"
"iban",
"reference"
],
"properties": {
"account_holder_name": {
Expand All @@ -19231,6 +19281,10 @@
"iban": {
"type": "string",
"example": "123456789"
},
"reference": {
"type": "string",
"example": "U2PVVSEV4V9Y"
}
}
},
Expand Down Expand Up @@ -19362,6 +19416,27 @@
}
]
},
{
"allOf": [
{
"$ref": "#/components/schemas/PazeSessionTokenResponse"
},
{
"type": "object",
"required": [
"wallet_name"
],
"properties": {
"wallet_name": {
"type": "string",
"enum": [
"paze"
]
}
}
}
]
},
{
"type": "object",
"required": [
Expand Down Expand Up @@ -20536,6 +20611,17 @@
}
}
},
{
"type": "object",
"required": [
"paze"
],
"properties": {
"paze": {
"$ref": "#/components/schemas/PazeWalletData"
}
}
},
{
"type": "object",
"required": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /organization/{organization_id}
openapi: get /organization/{id}
---
Loading

0 comments on commit a653f88

Please sign in to comment.