Skip to content

Commit

Permalink
Merge branch 'main' into business-profile-secret-json-fields
Browse files Browse the repository at this point in the history
  • Loading branch information
SanchithHegde committed Aug 6, 2024
2 parents 9b71d29 + 8302272 commit 752ed4a
Show file tree
Hide file tree
Showing 72 changed files with 8,525 additions and 3,899 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/CI-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,6 @@ jobs:
- name: Cargo hack_v2
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: just hack_v2
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.08.06.0

### Features

- **core:** Accept profile_id in merchant_account, connectors and customers core functions ([#5505](https://github.com/juspay/hyperswitch/pull/5505)) ([`a3e01bb`](https://github.com/juspay/hyperswitch/commit/a3e01bb4ae5893f639f3846ccb73adcca6b25ee0))
- **router:** Add accept language header middleware ([#5500](https://github.com/juspay/hyperswitch/pull/5500)) ([`ec5f9de`](https://github.com/juspay/hyperswitch/commit/ec5f9de0cbfecd584cc200e26b13a37aebe97f16))

### Bug Fixes

- **connector:** Fixed status mapping for Plaid ([#5525](https://github.com/juspay/hyperswitch/pull/5525)) ([`4364630`](https://github.com/juspay/hyperswitch/commit/4364630d6ffbce43bef0947a0150ce255a43751a))

### Refactors

- **auth:** Pass `profile_id` from the auth to core functions ([#5520](https://github.com/juspay/hyperswitch/pull/5520)) ([`53b5551`](https://github.com/juspay/hyperswitch/commit/53b5551df7e7a04bb26532591180608542c33c3a))
- **cypress:** Pass `connector_type` externally ([#5522](https://github.com/juspay/hyperswitch/pull/5522)) ([`7743255`](https://github.com/juspay/hyperswitch/commit/7743255cd8618ea290e714f2268c07bac4cfa88d))
- **router:** Refactor merchant_connector update v2 flow ([#5484](https://github.com/juspay/hyperswitch/pull/5484)) ([`9e358e4`](https://github.com/juspay/hyperswitch/commit/9e358e4f7bac86fbf433bbb727e41e4a9acf29ea))
- **routing:** Refactor api v2 routes for deactivating and retrieving the routing config ([#5478](https://github.com/juspay/hyperswitch/pull/5478)) ([`3fea00c`](https://github.com/juspay/hyperswitch/commit/3fea00c43ee597c9b786da6636e245cb848cdb97))

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

- - -

## 2024.08.05.0

### Bug Fixes
Expand Down
18 changes: 10 additions & 8 deletions api-reference/openapi_spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -7059,7 +7059,7 @@
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"description": "Metadata is useful for storing additional, unstructured information on an object.",
"nullable": true
},
"routing_algorithm": {
Expand Down Expand Up @@ -7221,7 +7221,7 @@
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"description": "Metadata is useful for storing additional, unstructured information on an object.",
"nullable": true
},
"routing_algorithm": {
Expand Down Expand Up @@ -7949,6 +7949,7 @@
"trustpay",
"tsys",
"volt",
"wellsfargo",
"wise",
"worldline",
"worldpay",
Expand Down Expand Up @@ -11761,7 +11762,7 @@
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"description": "Metadata is useful for storing additional, unstructured information on an object.",
"nullable": true
},
"publishable_key": {
Expand Down Expand Up @@ -11893,7 +11894,7 @@
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"description": "Metadata is useful for storing additional, unstructured information on an object.",
"nullable": true
},
"test_mode": {
Expand Down Expand Up @@ -12003,7 +12004,7 @@
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"description": "Metadata is useful for storing additional, unstructured information on an object.",
"nullable": true
}
}
Expand Down Expand Up @@ -12122,7 +12123,7 @@
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"description": "Metadata is useful for storing additional, unstructured information on an object.",
"nullable": true
},
"test_mode": {
Expand Down Expand Up @@ -12289,7 +12290,7 @@
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"description": "Metadata is useful for storing additional, unstructured information on an object.",
"nullable": true
},
"test_mode": {
Expand Down Expand Up @@ -12440,7 +12441,7 @@
},
"metadata": {
"type": "object",
"description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.",
"description": "Metadata is useful for storing additional, unstructured information on an object.",
"nullable": true
},
"test_mode": {
Expand Down Expand Up @@ -20134,6 +20135,7 @@
"trustpay",
"tsys",
"volt",
"wellsfargo",
"wise",
"worldline",
"worldpay",
Expand Down
5 changes: 1 addition & 4 deletions config/config.example.toml
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,7 @@ bitpay.base_url = "https://test.bitpay.com"
bluesnap.base_url = "https://sandbox.bluesnap.com/"
bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"
boku.base_url = "https://$-api4-stage.boku.com"
braintree.base_url = "https://api.sandbox.braintreegateway.com/"
braintree.secondary_base_url = "https://payments.sandbox.braintree-api.com/graphql"
braintree.base_url = "https://payments.sandbox.braintree-api.com/graphql"
cashtocode.base_url = "https://cluster05.api-test.cashtocode.com"
checkout.base_url = "https://api.sandbox.checkout.com/"
coinbase.base_url = "https://api.commerce.coinbase.com"
Expand Down Expand Up @@ -543,8 +542,6 @@ adyen.banks = "affin_bank,agro_bank,alliance_bank,am_bank,bank_islam,bank_muamal
[bank_config.online_banking_thailand]
adyen.banks = "bangkok_bank,krungsri_bank,krung_thai_bank,the_siam_commercial_bank,kasikorn_bank"

[multiple_api_version_supported_connectors]
supported_connectors = "braintree"

[applepay_decrypt_keys]
apple_pay_ppc = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE" # Payment Processing Certificate provided by Apple Pay (https://developer.apple.com/) Certificates, Identifiers & Profiles > Apple Pay Payment Processing Certificate
Expand Down
5 changes: 1 addition & 4 deletions config/deployments/integration_test.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ bitpay.base_url = "https://test.bitpay.com"
bluesnap.base_url = "https://sandbox.bluesnap.com/"
bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"
boku.base_url = "https://$-api4-stage.boku.com"
braintree.base_url = "https://api.sandbox.braintreegateway.com/"
braintree.secondary_base_url = "https://payments.sandbox.braintree-api.com/graphql"
braintree.base_url = "https://payments.sandbox.braintree-api.com/graphql"
cashtocode.base_url = "https://cluster05.api-test.cashtocode.com"
checkout.base_url = "https://api.sandbox.checkout.com/"
coinbase.base_url = "https://api.commerce.coinbase.com"
Expand Down Expand Up @@ -158,8 +157,6 @@ card.debit = { connector_list = "cybersource" } # Update Mandate sup
[network_transaction_id_supported_connectors]
connector_list = "stripe,adyen,cybersource"

[multiple_api_version_supported_connectors]
supported_connectors = "braintree"

[payouts]
payout_eligibility = true # Defaults the eligibility of a payout method to true in case connector does not provide checks for payout eligibility
Expand Down
5 changes: 1 addition & 4 deletions config/deployments/production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ bitpay.base_url = "https://bitpay.com"
bluesnap.base_url = "https://ws.bluesnap.com/"
bluesnap.secondary_base_url = "https://pay.bluesnap.com/"
boku.base_url = "https://country-api4-stage.boku.com"
braintree.base_url = "https://api.sandbox.braintreegateway.com/"
braintree.secondary_base_url = "https://payments.braintree-api.com/graphql"
braintree.base_url = "https://payments.braintree-api.com/graphql"
cashtocode.base_url = "https://cluster14.api.cashtocode.com"
checkout.base_url = "https://api.checkout.com/"
coinbase.base_url = "https://api.commerce.coinbase.com"
Expand Down Expand Up @@ -155,8 +154,6 @@ bank_redirect.giropay.connector_list = "adyen,globalpay,multisafepay" # M
card.credit = { connector_list = "cybersource" } # Update Mandate supported payment method type and connector for card
card.debit = { connector_list = "cybersource" } # Update Mandate supported payment method type and connector for card

[multiple_api_version_supported_connectors]
supported_connectors = "braintree"

[payouts]
payout_eligibility = true # Defaults the eligibility of a payout method to true in case connector does not provide checks for payout eligibility
Expand Down
5 changes: 1 addition & 4 deletions config/deployments/sandbox.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ bitpay.base_url = "https://test.bitpay.com"
bluesnap.base_url = "https://sandbox.bluesnap.com/"
bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"
boku.base_url = "https://$-api4-stage.boku.com"
braintree.base_url = "https://api.sandbox.braintreegateway.com/"
braintree.secondary_base_url = "https://payments.sandbox.braintree-api.com/graphql"
braintree.base_url = "https://payments.sandbox.braintree-api.com/graphql"
cashtocode.base_url = "https://cluster05.api-test.cashtocode.com"
checkout.base_url = "https://api.sandbox.checkout.com/"
coinbase.base_url = "https://api.commerce.coinbase.com"
Expand Down Expand Up @@ -158,8 +157,6 @@ card.debit = { connector_list = "cybersource" } # Update Mandate sup
[network_transaction_id_supported_connectors]
connector_list = "stripe,adyen,cybersource"

[multiple_api_version_supported_connectors]
supported_connectors = "braintree"

[payouts]
payout_eligibility = true # Defaults the eligibility of a payout method to true in case connector does not provide checks for payout eligibility
Expand Down
5 changes: 1 addition & 4 deletions config/development.toml
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,7 @@ bitpay.base_url = "https://test.bitpay.com"
bluesnap.base_url = "https://sandbox.bluesnap.com/"
bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"
boku.base_url = "https://$-api4-stage.boku.com"
braintree.base_url = "https://api.sandbox.braintreegateway.com/"
braintree.secondary_base_url = "https://payments.sandbox.braintree-api.com/graphql"
braintree.base_url = "https://payments.sandbox.braintree-api.com/graphql"
cashtocode.base_url = "https://cluster05.api-test.cashtocode.com"
checkout.base_url = "https://api.sandbox.checkout.com/"
coinbase.base_url = "https://api.commerce.coinbase.com"
Expand Down Expand Up @@ -579,8 +578,6 @@ merchant_ids_send_payment_id_as_connector_request_id = []
[payouts]
payout_eligibility = true

[multiple_api_version_supported_connectors]
supported_connectors = "braintree"

[applepay_decrypt_keys]
apple_pay_ppc = "APPLE_PAY_PAYMENT_PROCESSING_CERTIFICATE"
Expand Down
5 changes: 1 addition & 4 deletions config/docker_compose.toml
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ bitpay.base_url = "https://test.bitpay.com"
bluesnap.base_url = "https://sandbox.bluesnap.com/"
bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"
boku.base_url = "https://$-api4-stage.boku.com"
braintree.base_url = "https://api.sandbox.braintreegateway.com/"
braintree.secondary_base_url = "https://payments.sandbox.braintree-api.com/graphql"
braintree.base_url = "https://payments.sandbox.braintree-api.com/graphql"
cashtocode.base_url = "https://cluster05.api-test.cashtocode.com"
checkout.base_url = "https://api.sandbox.checkout.com/"
coinbase.base_url = "https://api.commerce.coinbase.com"
Expand Down Expand Up @@ -441,8 +440,6 @@ connector_list = "stripe,adyen,cybersource"
connector_list = "gocardless,stax,stripe"
payout_connector_list = "stripe,wise"

[multiple_api_version_supported_connectors]
supported_connectors = "braintree"

[payment_method_auth]
redis_expiry = 900
Expand Down
1 change: 1 addition & 0 deletions crates/api_models/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ customer_v2 = []
merchant_account_v2 = []
merchant_connector_account_v2 = []
payment_v2 = []
payment_methods_v2 = []
routing_v2 = []

[dependencies]
Expand Down
Loading

0 comments on commit 752ed4a

Please # to comment.