Skip to content

Commit

Permalink
Merge branch 'main' into platform-merchant-account
Browse files Browse the repository at this point in the history
  • Loading branch information
racnan committed Dec 20, 2024
2 parents f11c40e + 977cb70 commit 6be65ca
Show file tree
Hide file tree
Showing 51 changed files with 2,665 additions and 405 deletions.
22 changes: 22 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,28 @@ All notable changes to HyperSwitch will be documented here.

- - -

## 2024.12.19.1

### Features

- **core:** Added customer phone_number and email to session token response for click to pay ([#6863](https://github.com/juspay/hyperswitch/pull/6863)) ([`092c79e`](https://github.com/juspay/hyperswitch/commit/092c79ec40c6af47a5d6654129411300e42eac56))
- **klarna:** Klarna Kustom Checkout Integration ([#6839](https://github.com/juspay/hyperswitch/pull/6839)) ([`c525c9f`](https://github.com/juspay/hyperswitch/commit/c525c9f4c9d23802989bc594a4acd26c7d7cd27d))
- **payment_methods:** Add support to pass apple pay recurring details to obtain apple pay merchant token ([#6770](https://github.com/juspay/hyperswitch/pull/6770)) ([`6074249`](https://github.com/juspay/hyperswitch/commit/607424992af4196f5a3e01477f64d794b3594a47))
- **payments:** [Payment links] Add config for changing button text for payment links ([#6860](https://github.com/juspay/hyperswitch/pull/6860)) ([`46aad50`](https://github.com/juspay/hyperswitch/commit/46aad503b04efe60c54bbf4d5d5122696d9b1157))
- **users:** Handle email url for users in different tenancies ([#6809](https://github.com/juspay/hyperswitch/pull/6809)) ([`839e69d`](https://github.com/juspay/hyperswitch/commit/839e69df241cf0eb2495f0ad3fc19cf32632c741))

### Bug Fixes

- **connector:** [UNIFIED_AUTHENTICATION_SERVICE] change url path to `pre_authentication_processing` in pre-auth flow ([#6885](https://github.com/juspay/hyperswitch/pull/6885)) ([`f219b74`](https://github.com/juspay/hyperswitch/commit/f219b74cb6a100e07084afe6d9242a88f7127971))

### Refactors

- **users:** Move roles schema to global interface ([#6862](https://github.com/juspay/hyperswitch/pull/6862)) ([`2d8af88`](https://github.com/juspay/hyperswitch/commit/2d8af882046bbfe309c5dbb5be9bfbd43e0c3831))

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

- - -

## 2024.12.19.0

### Refactors
Expand Down
218 changes: 102 additions & 116 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -6495,88 +6495,6 @@
"greater_than_equal"
]
},
"ConfirmIntentAmountDetailsResponse": {
"type": "object",
"required": [
"currency",
"external_tax_calculation",
"surcharge_calculation",
"net_amount",
"amount_capturable"
],
"properties": {
"order_amount": {
"type": "integer",
"format": "int64",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)",
"example": 6540,
"minimum": 0
},
"currency": {
"$ref": "#/components/schemas/Currency"
},
"shipping_cost": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"order_tax_amount": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"external_tax_calculation": {
"$ref": "#/components/schemas/TaxCalculationOverride"
},
"surcharge_calculation": {
"$ref": "#/components/schemas/SurchargeCalculationOverride"
},
"surcharge_amount": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"tax_on_surcharge": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"net_amount": {
"$ref": "#/components/schemas/MinorUnit"
},
"amount_to_capture": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"amount_capturable": {
"$ref": "#/components/schemas/MinorUnit"
},
"amount_captured": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
}
}
},
"Connector": {
"type": "string",
"description": "A connector is an integration to fulfill payments",
Expand Down Expand Up @@ -12605,6 +12523,88 @@
}
}
},
"PaymentAmountDetailsResponse": {
"type": "object",
"required": [
"currency",
"external_tax_calculation",
"surcharge_calculation",
"net_amount",
"amount_capturable"
],
"properties": {
"order_amount": {
"type": "integer",
"format": "int64",
"description": "The payment amount. Amount for the payment in the lowest denomination of the currency, (i.e) in cents for USD denomination, in yen for JPY denomination etc. E.g., Pass 100 to charge $1.00 and 1 for 1¥ since ¥ is a zero-decimal currency. Read more about [the Decimal and Non-Decimal Currencies](https://github.com/juspay/hyperswitch/wiki/Decimal-and-Non%E2%80%90Decimal-Currencies)",
"example": 6540,
"minimum": 0
},
"currency": {
"$ref": "#/components/schemas/Currency"
},
"shipping_cost": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"order_tax_amount": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"external_tax_calculation": {
"$ref": "#/components/schemas/TaxCalculationOverride"
},
"surcharge_calculation": {
"$ref": "#/components/schemas/SurchargeCalculationOverride"
},
"surcharge_amount": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"tax_on_surcharge": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"net_amount": {
"$ref": "#/components/schemas/MinorUnit"
},
"amount_to_capture": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
},
"amount_capturable": {
"$ref": "#/components/schemas/MinorUnit"
},
"amount_captured": {
"allOf": [
{
"$ref": "#/components/schemas/MinorUnit"
}
],
"nullable": true
}
}
},
"PaymentAttemptResponse": {
"type": "object",
"required": [
Expand Down Expand Up @@ -14467,42 +14467,12 @@
},
"PaymentsCaptureRequest": {
"type": "object",
"required": [
"amount_to_capture"
],
"properties": {
"merchant_id": {
"type": "string",
"description": "The unique identifier for the merchant",
"nullable": true
},
"amount_to_capture": {
"type": "integer",
"format": "int64",
"description": "The Amount to be captured/ debited from the user's payment method.",
"example": 6540
},
"refund_uncaptured_amount": {
"type": "boolean",
"description": "Decider to refund the uncaptured amount",
"nullable": true
},
"statement_descriptor_suffix": {
"type": "string",
"description": "Provides information about a card payment that customers see on their statements.",
"nullable": true
},
"statement_descriptor_prefix": {
"type": "string",
"description": "Concatenated with the statement descriptor suffix that’s set on the account to form the complete statement descriptor.",
"nullable": true
},
"merchant_connector_details": {
"allOf": [
{
"$ref": "#/components/schemas/MerchantConnectorDetailsWrap"
}
],
"description": "The Amount to be captured/ debited from the user's payment method. If not passed the full amount will be captured.",
"example": 6540,
"nullable": true
}
}
Expand Down Expand Up @@ -14585,6 +14555,7 @@
"id",
"status",
"amount",
"customer_id",
"connector",
"client_secret",
"created",
Expand All @@ -14604,7 +14575,14 @@
"$ref": "#/components/schemas/IntentStatus"
},
"amount": {
"$ref": "#/components/schemas/ConfirmIntentAmountDetailsResponse"
"$ref": "#/components/schemas/PaymentAmountDetailsResponse"
},
"customer_id": {
"type": "string",
"description": "The identifier for the customer",
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 32
},
"connector": {
"type": "string",
Expand Down Expand Up @@ -16330,6 +16308,7 @@
"id",
"status",
"amount",
"customer_id",
"client_secret",
"created"
],
Expand All @@ -16345,7 +16324,14 @@
"$ref": "#/components/schemas/IntentStatus"
},
"amount": {
"$ref": "#/components/schemas/ConfirmIntentAmountDetailsResponse"
"$ref": "#/components/schemas/PaymentAmountDetailsResponse"
},
"customer_id": {
"type": "string",
"description": "The identifier for the customer",
"example": "12345_cus_01926c58bc6e77c09e809964e72af8c8",
"maxLength": 64,
"minLength": 32
},
"connector": {
"type": "string",
Expand Down
3 changes: 3 additions & 0 deletions api-reference/api-reference/relay/relay--retrieve.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec get /relay/{relay_id}
---
3 changes: 3 additions & 0 deletions api-reference/api-reference/relay/relay.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
openapi: openapi_spec post /relay
---
7 changes: 7 additions & 0 deletions api-reference/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,13 @@
"api-reference/routing/routing--activate-config"
]
},
{
"group": "Relay",
"pages": [
"api-reference/relay/relay",
"api-reference/relay/relay--retrieve"
]
},
{
"group": "Schemas",
"pages": ["api-reference/schemas/outgoing--webhook"]
Expand Down
Loading

0 comments on commit 6be65ca

Please sign in to comment.