Skip to content

Commit

Permalink
Merge branch 'main' into pm-details-doc
Browse files Browse the repository at this point in the history
  • Loading branch information
AkshayaFoiger committed Dec 23, 2024
2 parents 11bf497 + 0e3a9b6 commit 954fa23
Show file tree
Hide file tree
Showing 115 changed files with 5,966 additions and 705 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/cypress-tests-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
PAYMENTS_CONNECTORS: "cybersource stripe"
PAYOUTS_CONNECTORS: "adyenplatform 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')}}
Expand Down Expand Up @@ -127,7 +128,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: "6f8289a9-6da0-433b-8a24-18d4d7257b7f.json.gpg"
S3_SOURCE_FILE_NAME: "aa328308-b34e-41b7-a590-4fe45cfe7991.json.gpg"
shell: bash
run: |
mkdir -p ".github/secrets" ".github/test"
Expand Down
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,40 @@ All notable changes to HyperSwitch will be documented here.

- - -

## 2024.12.23.0

### Features

- **connector:** [JPMORGAN] add Payment flows for cards ([#6668](https://github.com/juspay/hyperswitch/pull/6668)) ([`adcddd6`](https://github.com/juspay/hyperswitch/commit/adcddd643c002a5fe3e7c50c0f78fa5a46f210e7))
- **payment_methods_v2:** Added Ephemeral auth for v2 ([#6813](https://github.com/juspay/hyperswitch/pull/6813)) ([`24401bc`](https://github.com/juspay/hyperswitch/commit/24401bc16f9677ce0f5fa70d739e5e6885c7e907))
- **payments_v2:** Implement payments capture v2 ([#6722](https://github.com/juspay/hyperswitch/pull/6722)) ([`977cb70`](https://github.com/juspay/hyperswitch/commit/977cb704e7dcf35d0fa6bc0e3c6d335ad0601521))
- **router:**
- Add /relay endpoint ([#6870](https://github.com/juspay/hyperswitch/pull/6870)) ([`22de8ad`](https://github.com/juspay/hyperswitch/commit/22de8ad132811b636fdb2594649e40b90810f564))
- Add db interface for `/relay` ([#6879](https://github.com/juspay/hyperswitch/pull/6879)) ([`0f8b0b3`](https://github.com/juspay/hyperswitch/commit/0f8b0b3bc854be62942a77d08340510312157c67))

### Bug Fixes

- **connector:**
- Paypal BankRedirects (Ideal/EPS) ([#6864](https://github.com/juspay/hyperswitch/pull/6864)) ([`dcd51a7`](https://github.com/juspay/hyperswitch/commit/dcd51a7fb8df673cc74130ee732542b55783602f))
- [STRIPE] fix stripe mandate ([#6899](https://github.com/juspay/hyperswitch/pull/6899)) ([`9f2ce05`](https://github.com/juspay/hyperswitch/commit/9f2ce05b2591da0d757b267800f42b69fc38e3ee))
- Update mandate PMT configs for Mandate Supported Connectors ([#6903](https://github.com/juspay/hyperswitch/pull/6903)) ([`02f0824`](https://github.com/juspay/hyperswitch/commit/02f0824d303fb9a36ee54123f52176014613a992))
- Cypress reports generation ([#6894](https://github.com/juspay/hyperswitch/pull/6894)) ([`81b324c`](https://github.com/juspay/hyperswitch/commit/81b324caf1bef4f621de30824bfb1f05ef984362))

### Refactors

- **connector:** [Airwallex] add device_data in payment request ([#6881](https://github.com/juspay/hyperswitch/pull/6881)) ([`573974b`](https://github.com/juspay/hyperswitch/commit/573974b3a5d53b279bd3959e400ac682aaacd474))
- **customers_v2:** Include minor fixes for customer v2 flows ([#6876](https://github.com/juspay/hyperswitch/pull/6876)) ([`5cdeaf8`](https://github.com/juspay/hyperswitch/commit/5cdeaf8e6002ad087dba2a562f86b51e97516d29))
- **dynamic_routing:** Add col payment_method_type in dynamic_routing_stats ([#6853](https://github.com/juspay/hyperswitch/pull/6853)) ([`492fd87`](https://github.com/juspay/hyperswitch/commit/492fd871a14e60e02f17fe073544bc40e79a7220))
- **grpc:** Send `x-tenant-id` and `x-request-id` in grpc headers ([#6904](https://github.com/juspay/hyperswitch/pull/6904)) ([`dc0a92d`](https://github.com/juspay/hyperswitch/commit/dc0a92dc108c91d6c5f998af417e382aa7a0d9f1))

### Miscellaneous Tasks

- **cypress:** Payout - fix test cases for adyenplatform bank ([#6887](https://github.com/juspay/hyperswitch/pull/6887)) ([`7540b74`](https://github.com/juspay/hyperswitch/commit/7540b7434766ff9dfa1aa2a56013ac89429dd1e6))

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

- - -

## 2024.12.19.1

### Features
Expand Down
234 changes: 104 additions & 130 deletions api-reference-v2/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -5613,6 +5613,21 @@
"type": "string",
"description": "User-agent of the browser",
"nullable": true
},
"os_type": {
"type": "string",
"description": "The os type of the client device",
"nullable": true
},
"os_version": {
"type": "string",
"description": "The os version of the client device",
"nullable": true
},
"device_model": {
"type": "string",
"description": "The device model of the client",
"nullable": true
}
}
},
Expand Down Expand Up @@ -6495,88 +6510,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 @@ -6624,6 +6557,7 @@
"helcim",
"iatapay",
"itaubank",
"jpmorgan",
"klarna",
"mifinity",
"mollie",
Expand Down Expand Up @@ -12682,6 +12616,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 @@ -13941,16 +13957,11 @@
"PaymentMethodIntentConfirm": {
"type": "object",
"required": [
"client_secret",
"payment_method_data",
"payment_method_type",
"payment_method_subtype"
],
"properties": {
"client_secret": {
"type": "string",
"description": "For SDK based calls, client_secret would be required"
},
"customer_id": {
"type": "string",
"description": "The unique identifier of the customer.",
Expand Down Expand Up @@ -14236,7 +14247,7 @@
"example": "2024-02-24T11:04:09.922Z",
"nullable": true
},
"client_secret": {
"ephemeral_key": {
"type": "string",
"description": "For Client based calls",
"nullable": true
Expand Down Expand Up @@ -14385,14 +14396,6 @@
"properties": {
"payment_method_data": {
"$ref": "#/components/schemas/PaymentMethodUpdateData"
},
"client_secret": {
"type": "string",
"description": "This is a 15 minute expiry token which shall be used from the client to authenticate and perform sessions from the SDK",
"example": "secret_k2uj3he2893eiu2d",
"nullable": true,
"maxLength": 30,
"minLength": 30
}
},
"additionalProperties": false
Expand Down Expand Up @@ -14553,42 +14556,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 @@ -14691,7 +14664,7 @@
"$ref": "#/components/schemas/IntentStatus"
},
"amount": {
"$ref": "#/components/schemas/ConfirmIntentAmountDetailsResponse"
"$ref": "#/components/schemas/PaymentAmountDetailsResponse"
},
"customer_id": {
"type": "string",
Expand Down Expand Up @@ -16440,7 +16413,7 @@
"$ref": "#/components/schemas/IntentStatus"
},
"amount": {
"$ref": "#/components/schemas/ConfirmIntentAmountDetailsResponse"
"$ref": "#/components/schemas/PaymentAmountDetailsResponse"
},
"customer_id": {
"type": "string",
Expand Down Expand Up @@ -19537,6 +19510,7 @@
"helcim",
"iatapay",
"itaubank",
"jpmorgan",
"klarna",
"mifinity",
"mollie",
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
---
Loading

0 comments on commit 954fa23

Please sign in to comment.