Skip to content

Commit 872435c

Browse files
committed
Merge branch 'main' of github.com:juspay/hyperswitch into add-cypress-ci
* 'main' of github.com:juspay/hyperswitch: (37 commits) fix(connector): Fixed status mapping for Plaid (#5525) feat(core): accept profile_id in merchant_account, connectors and customers core functions (#5505) refactor(auth): Pass `profile_id` from the auth to core functions (#5520) refactor(routing): Refactor api v2 routes for deactivating and retrieving the routing config (#5478) refactor(cypress): pass `connector_type` externally (#5522) refactor(router): refactor merchant_connector update v2 flow (#5484) feat(router): add accept language header middleware (#5500) chore(version): 2024.08.05.0 chore(postman): update Postman collection files fix(pm_auth): Added mca status check in pml (#5421) refactor(payment_methods): List the Payment Methods for Merchant , based on the connector type (#4909) fix(router): [Iatapay] make error status and error message optional (#5382) chore(version): 2024.08.02.0 feat(business_profile): introduce domain models for business profile v1 and v2 APIs (#5497) feat(auth): Add `profile_id` in `AuthenticationData` (#5492) feat(core): accept business profile in core functions for payments, refund, payout and disputes (#5498) refactor(router): domain and diesel model changes for merchant_connector_account create v2 flow (#5462) fix(open_payment_links): send displaySavedPaymentMethods as false explicitly for open payment links (#5501) refactor(role): determine level of role entity (#5488) feat(cypress): add corner cases (#5481) ...
2 parents fd4cfaa + 4364630 commit 872435c

File tree

303 files changed

+11253
-3286
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

303 files changed

+11253
-3286
lines changed

CHANGELOG.md

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,105 @@ All notable changes to HyperSwitch will be documented here.
44

55
- - -
66

7+
## 2024.08.05.0
8+
9+
### Bug Fixes
10+
11+
- **pm_auth:** Added mca status check in pml ([#5421](https://github.com/juspay/hyperswitch/pull/5421)) ([`e9bd345`](https://github.com/juspay/hyperswitch/commit/e9bd345464f28133aeaab638c33b77f31dd1fcb5))
12+
- **router:** [Iatapay] make error status and error message optional ([#5382](https://github.com/juspay/hyperswitch/pull/5382)) ([`37e34e3`](https://github.com/juspay/hyperswitch/commit/37e34e3bfde9281b3a69b0769c901a887dcf400f))
13+
14+
### Refactors
15+
16+
- **payment_methods:** List the Payment Methods for Merchant , based on the connector type ([#4909](https://github.com/juspay/hyperswitch/pull/4909)) ([`f3677f2`](https://github.com/juspay/hyperswitch/commit/f3677f268ca18879bc8a9e4c7ab8c96011eb56c3))
17+
18+
### Miscellaneous Tasks
19+
20+
- **postman:** Update Postman collection files ([`1737d74`](https://github.com/juspay/hyperswitch/commit/1737d74183a77910ea764c8cf2cdb148ba77ab74))
21+
22+
**Full Changelog:** [`2024.08.02.0...2024.08.05.0`](https://github.com/juspay/hyperswitch/compare/2024.08.02.0...2024.08.05.0)
23+
24+
- - -
25+
26+
## 2024.08.02.0
27+
28+
### Features
29+
30+
- **auth:**
31+
- Add support for partial-auth, by facilitating injection of authentication parameters in headers ([#4802](https://github.com/juspay/hyperswitch/pull/4802)) ([`1d4c87a`](https://github.com/juspay/hyperswitch/commit/1d4c87a9e37ab1fc05754208ba4fbbcf15ad895a))
32+
- Add `profile_id` in `AuthenticationData` ([#5492](https://github.com/juspay/hyperswitch/pull/5492)) ([`b4eb601`](https://github.com/juspay/hyperswitch/commit/b4eb6016a4e696acf155732592a6571363c24e64))
33+
- **business_profile:** Introduce domain models for business profile v1 and v2 APIs ([#5497](https://github.com/juspay/hyperswitch/pull/5497)) ([`537630f`](https://github.com/juspay/hyperswitch/commit/537630f00482939d4c0b49c643dee3763fe0e046))
34+
- **connector:** [Paybox] add connector template code ([#5485](https://github.com/juspay/hyperswitch/pull/5485)) ([`5e1eb4a`](https://github.com/juspay/hyperswitch/commit/5e1eb4af863265c94299189de983e02a255e7e62))
35+
- **core:** Accept business profile in core functions for payments, refund, payout and disputes ([#5498](https://github.com/juspay/hyperswitch/pull/5498)) ([`fb32b61`](https://github.com/juspay/hyperswitch/commit/fb32b61edfa2b4190a5717850aeca6b3b0d7db54))
36+
- **cypress:** Add corner cases ([#5481](https://github.com/juspay/hyperswitch/pull/5481)) ([`c0f4577`](https://github.com/juspay/hyperswitch/commit/c0f45771b0b4d7d60918ae03aca9f14162ff3218))
37+
- **opensearch:** Updated status filter field name to match index and added time-range based search ([#5468](https://github.com/juspay/hyperswitch/pull/5468)) ([`625f5ae`](https://github.com/juspay/hyperswitch/commit/625f5ae289ca93a1a6d469d6a0f71d7492f22bc5))
38+
39+
### Bug Fixes
40+
41+
- **open_payment_links:** Send displaySavedPaymentMethods as false explicitly for open payment links ([#5501](https://github.com/juspay/hyperswitch/pull/5501)) ([`b4e7717`](https://github.com/juspay/hyperswitch/commit/b4e77170559d5912758f18d2db46bf25eb5277b2))
42+
43+
### Refactors
44+
45+
- **role:** Determine level of role entity ([#5488](https://github.com/juspay/hyperswitch/pull/5488)) ([`c036fd7`](https://github.com/juspay/hyperswitch/commit/c036fd7f41a21eb481859671db672b0bcebdca97))
46+
- **router:** Domain and diesel model changes for merchant_connector_account create v2 flow ([#5462](https://github.com/juspay/hyperswitch/pull/5462)) ([`85209d1`](https://github.com/juspay/hyperswitch/commit/85209d12ae3439b555983d62b2cc3bf764c1b441))
47+
- **routing:** Api v2 for routing create and activate endpoints ([#5423](https://github.com/juspay/hyperswitch/pull/5423)) ([`6140cfe`](https://github.com/juspay/hyperswitch/commit/6140cfe04ea7b3f895f8989dbf2803a06b1a6dd2))
48+
49+
**Full Changelog:** [`2024.08.01.0...2024.08.02.0`](https://github.com/juspay/hyperswitch/compare/2024.08.01.0...2024.08.02.0)
50+
51+
- - -
52+
53+
## 2024.08.01.0
54+
55+
### Bug Fixes
56+
57+
- **payment_link:** Move redirection fn to global scope for open links ([#5494](https://github.com/juspay/hyperswitch/pull/5494)) ([`7ddfbf5`](https://github.com/juspay/hyperswitch/commit/7ddfbf51c3c3db99041e3d175a9100a60a339fe8))
58+
59+
### Documentation
60+
61+
- API-Ref changes for Payouts ([#5236](https://github.com/juspay/hyperswitch/pull/5236)) ([`540ef07`](https://github.com/juspay/hyperswitch/commit/540ef071cb238a56d52d06687226aab7fd0dfe68))
62+
63+
**Full Changelog:** [`2024.07.31.0...2024.08.01.0`](https://github.com/juspay/hyperswitch/compare/2024.07.31.0...2024.08.01.0)
64+
65+
- - -
66+
67+
## 2024.07.31.0
68+
69+
### Features
70+
71+
- **connector:** [BAMBORA, BITPAY, STAX] Move connector to hyperswitch_connectors ([#5450](https://github.com/juspay/hyperswitch/pull/5450)) ([`827fa07`](https://github.com/juspay/hyperswitch/commit/827fa07418b0514cbc5a43af2e4c7a88d1b7b4e7))
72+
- **payment_link:** Add provision for secured payment links ([#5357](https://github.com/juspay/hyperswitch/pull/5357)) ([`043abb5`](https://github.com/juspay/hyperswitch/commit/043abb59b9291e18824d16363f60657f22bd33e1))
73+
- Rename columns in organization for v2 ([#5424](https://github.com/juspay/hyperswitch/pull/5424)) ([`a791391`](https://github.com/juspay/hyperswitch/commit/a791391e2ac125ef7bb6a92de5f1419e673bdfe0))
74+
75+
### Bug Fixes
76+
77+
- **connector:** [Pix] convert data type of pix fields ([#5476](https://github.com/juspay/hyperswitch/pull/5476)) ([`be9347b`](https://github.com/juspay/hyperswitch/commit/be9347b8d56c0a6cf0d04cf51c75dd6426d3a21a))
78+
79+
### Refactors
80+
81+
- **configs:** Include env for cybersource in integration_test ([#5474](https://github.com/juspay/hyperswitch/pull/5474)) ([`b3b71b1`](https://github.com/juspay/hyperswitch/commit/b3b71b10c3627868420648e70913a0620dcb3b6e))
82+
- **id_type:** Use macros for defining ID types and implementing common traits ([#5471](https://github.com/juspay/hyperswitch/pull/5471)) ([`1d4fb1d`](https://github.com/juspay/hyperswitch/commit/1d4fb1d2474190ea0a70810e416c61883fab34b8))
83+
84+
### Documentation
85+
86+
- Update postgreSQL database url ([#5482](https://github.com/juspay/hyperswitch/pull/5482)) ([`ef7fa0d`](https://github.com/juspay/hyperswitch/commit/ef7fa0d16ebe12bd86572c7ab80e7caa70d75578))
87+
88+
**Full Changelog:** [`2024.07.30.0...2024.07.31.0`](https://github.com/juspay/hyperswitch/compare/2024.07.30.0...2024.07.31.0)
89+
90+
- - -
91+
92+
## 2024.07.30.0
93+
94+
### Features
95+
96+
- Add env variable for enable key manager service ([#5442](https://github.com/juspay/hyperswitch/pull/5442)) ([`db26d32`](https://github.com/juspay/hyperswitch/commit/db26d32d8465e20cf3835fbfe6d0a19688078b8c))
97+
98+
### Refactors
99+
100+
- **router:** Remove `connector_account_details` and `connector_webhook_details` in merchant_connector_account list response ([#5457](https://github.com/juspay/hyperswitch/pull/5457)) ([`45a1494`](https://github.com/juspay/hyperswitch/commit/45a149418f1dad0cd27f975dc3dd56c68172b9dd))
101+
102+
**Full Changelog:** [`2024.07.29.0...2024.07.30.0`](https://github.com/juspay/hyperswitch/compare/2024.07.29.0...2024.07.30.0)
103+
104+
- - -
105+
7106
## 2024.07.29.0
8107

9108
### Features

Cargo.lock

Lines changed: 7 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api-reference/openapi_spec.json

Lines changed: 50 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6632,15 +6632,13 @@
66326632
"nullable": true
66336633
},
66346634
"cpf": {
6635-
"type": "integer",
6636-
"format": "int64",
6635+
"type": "string",
66376636
"description": "CPF is a Brazilian tax identification number",
66386637
"example": "10599054689",
66396638
"nullable": true
66406639
},
66416640
"cnpj": {
6642-
"type": "integer",
6643-
"format": "int64",
6641+
"type": "string",
66446642
"description": "CNPJ is a Brazilian company tax identification number",
66456643
"example": "74469027417312",
66466644
"nullable": true
@@ -6992,6 +6990,15 @@
69926990
"$ref": "#/components/schemas/PaymentLinkConfigRequest"
69936991
},
69946992
"nullable": true
6993+
},
6994+
"allowed_domains": {
6995+
"type": "array",
6996+
"items": {
6997+
"type": "string"
6998+
},
6999+
"description": "A list of allowed domains (glob patterns) where this link can be embedded / opened from",
7000+
"uniqueItems": true,
7001+
"nullable": true
69957002
}
69967003
}
69977004
}
@@ -7810,7 +7817,7 @@
78107817
},
78117818
"ChargeRefunds": {
78127819
"type": "object",
7813-
"description": "Charge object for refunds",
7820+
"description": "Charge specific fields for controlling the revert of funds from either platform or connected account. Check sub-fields for more details.",
78147821
"required": [
78157822
"charge_id"
78167823
],
@@ -13956,6 +13963,15 @@
1395613963
"enabled_saved_payment_method": {
1395713964
"type": "boolean",
1395813965
"description": "Enable saved payment method option for payment link"
13966+
},
13967+
"allowed_domains": {
13968+
"type": "array",
13969+
"items": {
13970+
"type": "string"
13971+
},
13972+
"description": "A list of allowed domains (glob patterns) where this link can be embedded / opened from",
13973+
"uniqueItems": true,
13974+
"nullable": true
1395913975
}
1396013976
}
1396113977
},
@@ -14029,10 +14045,17 @@
1402914045
],
1403014046
"properties": {
1403114047
"link": {
14032-
"type": "string"
14048+
"type": "string",
14049+
"description": "URL for rendering the open payment link"
14050+
},
14051+
"secure_link": {
14052+
"type": "string",
14053+
"description": "URL for rendering the secure payment link",
14054+
"nullable": true
1403314055
},
1403414056
"payment_link_id": {
14035-
"type": "string"
14057+
"type": "string",
14058+
"description": "Identifier for the payment link"
1403614059
}
1403714060
}
1403814061
},
@@ -16228,13 +16251,6 @@
1622816251
"example": true,
1622916252
"nullable": true
1623016253
},
16231-
"capture_on": {
16232-
"type": "string",
16233-
"format": "date-time",
16234-
"description": "A timestamp (ISO 8601 code) that determines when the payment should be captured.\nProviding this field will automatically set `capture` to true",
16235-
"example": "2022-09-10T10:11:12Z",
16236-
"nullable": true
16237-
},
1623816254
"capture_method": {
1623916255
"allOf": [
1624016256
{
@@ -18290,7 +18306,8 @@
1829018306
}
1829118307
}
1829218308
}
18293-
]
18309+
],
18310+
"description": "Custom payout link config for the particular payout, if payout link is to be generated."
1829418311
},
1829518312
"PayoutCreateRequest": {
1829618313
"type": "object",
@@ -18309,15 +18326,15 @@
1830918326
"properties": {
1831018327
"payout_id": {
1831118328
"type": "string",
18312-
"description": "Unique identifier for the payout. This ensures idempotency for multiple payouts\nthat have been done by a single merchant. This field is auto generated and is returned in the API response.",
18329+
"description": "Unique identifier for the payout. This ensures idempotency for multiple payouts that have been done by a single merchant. This field is auto generated and is returned in the API response, **not required to be included in the Payout Create/Update Request.**",
1831318330
"example": "payout_mbabizu24mvu3mela5njyhpit4",
1831418331
"nullable": true,
1831518332
"maxLength": 30,
1831618333
"minLength": 30
1831718334
},
1831818335
"merchant_id": {
1831918336
"type": "string",
18320-
"description": "This is an identifier for the merchant account. This is inferred from the API key\nprovided during the request",
18337+
"description": "This is an identifier for the merchant account. This is inferred from the API key provided during the request, **not required to be included in the Payout Create/Update Request.**",
1832118338
"example": "merchant_1668273825",
1832218339
"nullable": true,
1832318340
"maxLength": 255
@@ -18344,7 +18361,7 @@
1834418361
"items": {
1834518362
"$ref": "#/components/schemas/PayoutConnectors"
1834618363
},
18347-
"description": "This allows the merchant to manually select a connector with which the payout can go through",
18364+
"description": "This field allows the merchant to manually select a connector with which the payout can go through.",
1834818365
"example": [
1834918366
"wise",
1835018367
"adyen"
@@ -18353,7 +18370,7 @@
1835318370
},
1835418371
"confirm": {
1835518372
"type": "boolean",
18356-
"description": "The boolean value to create payout with connector",
18373+
"description": "This field is used when merchant wants to confirm the payout, thus useful for the payout _Confirm_ request. Ideally merchants should _Create_ a payout, _Update_ it (if required), then _Confirm_ it.",
1835718374
"default": false,
1835818375
"example": true
1835918376
},
@@ -18454,21 +18471,21 @@
1845418471
},
1845518472
"payout_token": {
1845618473
"type": "string",
18457-
"description": "Provide a reference to a stored payout method",
18474+
"description": "Provide a reference to a stored payout method, used to process the payout.",
1845818475
"example": "187282ab-40ef-47a9-9206-5099ba31e432",
1845918476
"nullable": true
1846018477
},
1846118478
"profile_id": {
1846218479
"type": "string",
18463-
"description": "The business profile to use for this payout, if not passed the default business profile\nassociated with the merchant account will be used.",
18480+
"description": "The business profile to use for this payout, especially if there are multiple business profiles associated with the account, otherwise default business profile associated with the merchant account will be used.",
1846418481
"nullable": true
1846518482
},
1846618483
"priority": {
1846718484
"$ref": "#/components/schemas/PayoutSendPriority"
1846818485
},
1846918486
"payout_link": {
1847018487
"type": "boolean",
18471-
"description": "Whether to get the payout link (if applicable)",
18488+
"description": "Whether to get the payout link (if applicable). Merchant need to specify this during the Payout _Create_, this field can not be updated during Payout _Update_.",
1847218489
"default": false,
1847318490
"example": true,
1847418491
"nullable": true
@@ -18690,6 +18707,7 @@
1869018707
},
1869118708
"PayoutEntityType": {
1869218709
"type": "string",
18710+
"description": "Type of entity to whom the payout is being carried out to, select from the given list of options",
1869318711
"enum": [
1869418712
"Individual",
1869518713
"Company",
@@ -18930,7 +18948,8 @@
1893018948
}
1893118949
}
1893218950
}
18933-
]
18951+
],
18952+
"description": "The payout method information required for carrying out a payout"
1893418953
},
1893518954
"PayoutRequest": {
1893618955
"oneOf": [
@@ -19011,6 +19030,7 @@
1901119030
},
1901219031
"PayoutSendPriority": {
1901319032
"type": "string",
19033+
"description": "The send method which will be required for processing payouts, check options for better understanding.",
1901419034
"enum": [
1901519035
"instant",
1901619036
"fast",
@@ -19040,6 +19060,7 @@
1904019060
},
1904119061
"PayoutType": {
1904219062
"type": "string",
19063+
"description": "The payout_type of the payout request is a mandatory field for confirming the payouts. It should be specified in the Create request. If not provided, it must be updated in the Payout Update request before it can be confirmed.",
1904319064
"enum": [
1904419065
"card",
1904519066
"bank",
@@ -19929,7 +19950,7 @@
1992919950
},
1993019951
"link_to_pay": {
1993119952
"type": "string",
19932-
"description": "Payment Link"
19953+
"description": "Open payment link (without any security checks and listing SPMs)"
1993319954
},
1993419955
"amount": {
1993519956
"type": "integer",
@@ -19963,6 +19984,11 @@
1996319984
}
1996419985
],
1996519986
"nullable": true
19987+
},
19988+
"secure_link": {
19989+
"type": "string",
19990+
"description": "Secure payment link (with security checks and listing saved payment methods)",
19991+
"nullable": true
1996619992
}
1996719993
}
1996819994
},

config/config.example.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ noon.key_mode = "Test"
227227
nuvei.base_url = "https://ppp-test.nuvei.com/"
228228
opayo.base_url = "https://pi-test.sagepay.com/"
229229
opennode.base_url = "https://dev-api.opennode.com"
230+
paybox.base_url = "https://preprod-ppps.paybox.com/PPPS.php"
230231
payeezy.base_url = "https://api-cert.payeezy.com/"
231232
payme.base_url = "https://sandbox.payme.io/"
232233
payone.base_url = "https://payment.preprod.payone.com/"

0 commit comments

Comments
 (0)