mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
refactor(api): remove max_length validation for return_url in PaymentsRequest (#8125)
This commit is contained in:
@ -19319,8 +19319,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The URL to which you want the user to be redirected after the completion of the payment operation",
|
"description": "The URL to which you want the user to be redirected after the completion of the payment operation",
|
||||||
"example": "https://hyperswitch.io",
|
"example": "https://hyperswitch.io",
|
||||||
"nullable": true,
|
"nullable": true
|
||||||
"maxLength": 255
|
|
||||||
},
|
},
|
||||||
"setup_future_usage": {
|
"setup_future_usage": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
@ -19729,8 +19728,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The URL to which you want the user to be redirected after the completion of the payment operation",
|
"description": "The URL to which you want the user to be redirected after the completion of the payment operation",
|
||||||
"example": "https://hyperswitch.io",
|
"example": "https://hyperswitch.io",
|
||||||
"nullable": true,
|
"nullable": true
|
||||||
"maxLength": 255
|
|
||||||
},
|
},
|
||||||
"setup_future_usage": {
|
"setup_future_usage": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
@ -20997,8 +20995,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The URL to which you want the user to be redirected after the completion of the payment operation",
|
"description": "The URL to which you want the user to be redirected after the completion of the payment operation",
|
||||||
"example": "https://hyperswitch.io",
|
"example": "https://hyperswitch.io",
|
||||||
"nullable": true,
|
"nullable": true
|
||||||
"maxLength": 255
|
|
||||||
},
|
},
|
||||||
"setup_future_usage": {
|
"setup_future_usage": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
@ -22218,8 +22215,7 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "The URL to which you want the user to be redirected after the completion of the payment operation",
|
"description": "The URL to which you want the user to be redirected after the completion of the payment operation",
|
||||||
"example": "https://hyperswitch.io",
|
"example": "https://hyperswitch.io",
|
||||||
"nullable": true,
|
"nullable": true
|
||||||
"maxLength": 255
|
|
||||||
},
|
},
|
||||||
"setup_future_usage": {
|
"setup_future_usage": {
|
||||||
"allOf": [
|
"allOf": [
|
||||||
|
|||||||
@ -964,7 +964,7 @@ pub struct PaymentsRequest {
|
|||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
|
|
||||||
/// The URL to which you want the user to be redirected after the completion of the payment operation
|
/// The URL to which you want the user to be redirected after the completion of the payment operation
|
||||||
#[schema(value_type = Option<String>, example = "https://hyperswitch.io", max_length = 255)]
|
#[schema(value_type = Option<String>, example = "https://hyperswitch.io")]
|
||||||
pub return_url: Option<Url>,
|
pub return_url: Option<Url>,
|
||||||
|
|
||||||
#[schema(value_type = Option<FutureUsage>, example = "off_session")]
|
#[schema(value_type = Option<FutureUsage>, example = "off_session")]
|
||||||
|
|||||||
@ -152,16 +152,16 @@ describe("Corner cases", () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
it("[Payment] return_url - too long", () => {
|
// it("[Payment] return_url - too long", () => {
|
||||||
const data = getConnectorDetails(globalState.get("connectorId"))["return_url_variations"]["return_url_too_long"];
|
// const data = getConnectorDetails(globalState.get("connectorId"))["return_url_variations"]["return_url_too_long"];
|
||||||
cy.createConfirmPaymentTest(
|
// cy.createConfirmPaymentTest(
|
||||||
paymentCreateConfirmBody,
|
// paymentCreateConfirmBody,
|
||||||
data,
|
// data,
|
||||||
"no_three_ds",
|
// "no_three_ds",
|
||||||
"automatic",
|
// "automatic",
|
||||||
globalState
|
// globalState
|
||||||
);
|
// );
|
||||||
});
|
// });
|
||||||
|
|
||||||
it("[Payment] return_url - invalid format", () => {
|
it("[Payment] return_url - invalid format", () => {
|
||||||
const data = getConnectorDetails(globalState.get("connectorId"))["return_url_variations"]["return_url_invalid_format"];
|
const data = getConnectorDetails(globalState.get("connectorId"))["return_url_variations"]["return_url_invalid_format"];
|
||||||
|
|||||||
Reference in New Issue
Block a user