Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
chore: fix typos in the repo (#8063)
Pa1NarK6fc50b67295a
diff --git a/api-reference-v2/openapi_spec.json b/api-reference-v2/openapi_spec.jsonindex 00e3e7bc4f..956d6d6697 100644--- a/api-reference-v2/openapi_spec.json+++ b/api-reference-v2/openapi_spec.json@@ -9017,7 +9017,7 @@],"nullable": true},- "encypted_payload": {+ "encrypted_payload": {"type": "string","description": "Encrypted payload","nullable": truediff --git a/api-reference/hyperswitch_intelligent_router_open_api_spec.yml b/api-reference/hyperswitch_intelligent_router_open_api_spec.ymlindex 341bcc6d20..58bff737f3 100644--- a/api-reference/hyperswitch_intelligent_router_open_api_spec.yml+++ b/api-reference/hyperswitch_intelligent_router_open_api_spec.yml@@ -579,7 +579,7 @@ paths:/euclid.EuclidService/Evaluate:post:operationId: EvaluateRule- summary: Evaludate an existing routing Rule+ summary: Evaluate an existing routing Ruledescription: Evaluates a given routing ruletags:- Static Routingdiff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.jsonindex 3ab7d8d45c..3e94666e40 100644--- a/api-reference/openapi_spec.json+++ b/api-reference/openapi_spec.json@@ -10970,7 +10970,7 @@],"nullable": true},- "encypted_payload": {+ "encrypted_payload": {"type": "string","description": "Encrypted payload","nullable": truediff --git a/config/dashboard.toml b/config/dashboard.tomlindex e6763b6bb6..33a3269662 100644--- a/config/dashboard.toml+++ b/config/dashboard.toml@@ -66,7 +66,7 @@ dev_intelligent_routing_v2=falsedev_modularity_v2=falsedev_alt_payment_methods=falsedev_hypersense_v2_product=false-maintainence_alert=""+maintenance_alert=""[default.merchant_config][default.merchant_config.new_analytics]diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rsindex 5286f071a1..fd150d0fda 100644--- a/crates/api_models/src/payments.rs+++ b/crates/api_models/src/payments.rs@@ -1183,7 +1183,7 @@ pub struct CtpServiceDetails {pub provider: Option<api_enums::CtpServiceProvider>,/// Encrypted payload#[schema(value_type = Option<String>)]- pub encypted_payload: Option<Secret<String>>,+ pub encrypted_payload: Option<Secret<String>>,}impl CtpServiceDetails {diff --git a/crates/common_types/src/payment_methods.rs b/crates/common_types/src/payment_methods.rsindex 4b05c3747e..fc52b807db 100644--- a/crates/common_types/src/payment_methods.rs+++ b/crates/common_types/src/payment_methods.rs@@ -29,7 +29,7 @@ pub struct PaymentMethodsEnabled {pub payment_method_subtypes: Option<Vec<RequestPaymentMethodTypes>>,}-// Custom FromSql implmentation to handle deserialization of v1 data format+// Custom FromSql implementation to handle deserialization of v1 data formatimpl FromSql<Json, diesel::pg::Pg> for PaymentMethodsEnabled {fn from_sql(bytes: <diesel::pg::Pg as Backend>::RawValue<'_>) -> deserialize::Result<Self> {let helper: PaymentMethodsEnabledHelper = serde_json::from_slice(bytes.as_bytes())diff --git a/crates/common_utils/src/macros.rs b/crates/common_utils/src/macros.rsindex 8dcffbb664..dd736d0af3 100644--- a/crates/common_utils/src/macros.rs+++ b/crates/common_utils/src/macros.rs@@ -463,9 +463,9 @@ macro_rules! type_name {/// * **Invalid:** `VariantA(i32)` (tuple variant)/// * **Invalid:** `VariantA` or `VariantA {}` (no field)/// * **Invalid:** `VariantA { value: i32, other: bool }` (multiple fields)-/// 4. **Tag Delimiter:** The macro invocation must specify a `tag_delimeter` literal,+/// 4. **Tag Delimiter:** The macro invocation must specify a `tag_delimiter` literal,/// which is the character used to separate the variant name from the field data in-/// the string representation (e.g., `tag_delimeter = ":",`).+/// the string representation (e.g., `tag_delimiter = ":",`)./// 5. **Field Type Requirements:** The type of the single field in each variant (`$field_ty`)/// must implement:/// * `core::str::FromStr`: To parse the field's data from the string part.@@ -484,7 +484,7 @@ macro_rules! type_name {/// When `serde` features are enabled and the necessary traits are derived or implemented,/// this macro implements `Serialize` and `Deserialize` for the enum:///-/// **Serialization:** An enum value like `MyEnum::VariantA { value: 123 }` (with `tag_delimeter = ":",`)+/// **Serialization:** An enum value like `MyEnum::VariantA { value: 123 }` (with `tag_delimiter = ":",`)/// will be serialized into the string `"VariantA:123"`. If serializing to JSON, this results/// in a JSON string: `"\"VariantA:123\""`./// **Deserialization:** The macro expects a string matching the format `"VariantName<delimiter>FieldValue"`.@@ -503,7 +503,7 @@ macro_rules! type_name {/// use std::str::FromStr;////// crate::impl_enum_str!(-/// tag_delimeter = ":",+/// tag_delimiter = ":",/// #[derive(Debug, PartialEq, Clone)] // Add other derives as needed/// pub enum Setting {/// Timeout { duration_ms: u32 },@@ -554,7 +554,7 @@ macro_rules! type_name {#[macro_export]macro_rules! impl_enum_str {(- tag_delimeter = $tag_delim:literal,+ tag_delimiter = $tag_delim:literal,$(#[$enum_attr:meta])*pub enum $enum_name:ident {$(@@ -701,7 +701,7 @@ mod tests {use crate::impl_enum_str;impl_enum_str!(- tag_delimeter = ":",+ tag_delimiter = ":",#[derive(Debug, PartialEq, Clone)]pub enum TestEnum {VariantA { value: i32 },diff --git a/crates/common_utils/src/types.rs b/crates/common_utils/src/types.rsindex 40b37b6b3c..1ff0dcb20b 100644--- a/crates/common_utils/src/types.rs+++ b/crates/common_utils/src/types.rs@@ -1364,7 +1364,7 @@ where}impl_enum_str!(- tag_delimeter = ":",+ tag_delimiter = ":",/// CreatedBy conveys the information about the creator (identifier) as well as the origin or/// trigger (Api, Jwt) of the record.#[derive(Eq, PartialEq, Debug, Clone)]diff --git a/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs b/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rsindex e74715535a..4c4e766f45 100644--- a/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs@@ -2038,7 +2038,7 @@ pub struct DisputeEvidence {pub(crate) fn get_dispute_stage(code: &str) -> Result<enums::DisputeStage, errors::ConnectorError> {match code {"CHARGEBACK" => Ok(enums::DisputeStage::Dispute),- "PRE_ARBITATION" => Ok(enums::DisputeStage::PreArbitration),+ "PRE_ARBITRATION" => Ok(enums::DisputeStage::PreArbitration),"RETRIEVAL" => Ok(enums::DisputeStage::PreDispute),_ => Err(errors::ConnectorError::WebhookBodyDecodingFailed),}diff --git a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rsindex 343fb99009..367f800a1d 100644--- a/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/fiuu/transformers.rs@@ -1458,7 +1458,7 @@ impl TryFrom<FiuuSyncStatus> for enums::AttemptStatus {match (sync_status.stat_code, sync_status.stat_name) {(StatCode::Success, StatName::Captured | StatName::Settled) => Ok(Self::Charged), // For Success as StatCode we can only expect Captured,Settled and Authorized as StatName.(StatCode::Success, StatName::Authorized) => Ok(Self::Authorized),- (StatCode::Pending, StatName::Pending) => Ok(Self::AuthenticationPending), // For Pending as StatCode we can only expect Pending and Unknow as StatName.+ (StatCode::Pending, StatName::Pending) => Ok(Self::AuthenticationPending), // For Pending as StatCode we can only expect Pending and Unknown as StatName.(StatCode::Pending, StatName::Unknown) => Ok(Self::Pending),(StatCode::Failure, StatName::Cancelled) | (StatCode::Failure, StatName::ReqCancel) => {Ok(Self::Voided)@@ -1897,7 +1897,7 @@ pub enum FiuuWebhooksRefundType {}#[derive(Debug, Deserialize, Serialize, Clone)]-pub struct FiuuWebhookSignauture {+pub struct FiuuWebhookSignature {pub skey: Secret<String>,}diff --git a/crates/hyperswitch_connectors/src/connectors/recurly.rs b/crates/hyperswitch_connectors/src/connectors/recurly.rsindex 02dea67d9b..bb7ea02a93 100644--- a/crates/hyperswitch_connectors/src/connectors/recurly.rs+++ b/crates/hyperswitch_connectors/src/connectors/recurly.rs@@ -52,7 +52,7 @@ const STATUS_FAILED_ENDPOINT: &str = "mark_failed";const RECURLY_API_VERSION: &str = "application/vnd.recurly.v2021-02-25";-// We don't need an amount converter beacuse we are not using it anywhere in code, but it's important to note that Float Major Unit is the standard format used by Recurly.+// We don't need an amount converter because we are not using it anywhere in code, but it's important to note that Float Major Unit is the standard format used by Recurly.#[derive(Clone)]pub struct Recurly {// amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),diff --git a/crates/hyperswitch_connectors/src/connectors/worldpay/response.rs b/crates/hyperswitch_connectors/src/connectors/worldpay/response.rsindex bb0ead48ca..e0cf0d3bff 100644--- a/crates/hyperswitch_connectors/src/connectors/worldpay/response.rs+++ b/crates/hyperswitch_connectors/src/connectors/worldpay/response.rs@@ -199,7 +199,7 @@ pub struct ActionLinks {settle_payment: Option<ActionLink>,partially_settle_payment: Option<ActionLink>,refund_payment: Option<ActionLink>,- partiall_refund_payment: Option<ActionLink>,+ partially_refund_payment: Option<ActionLink>,cancel_payment: Option<ActionLink>,}diff --git a/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs b/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rsindex 40237a1dac..5c2435881e 100644--- a/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs+++ b/crates/hyperswitch_domain_models/src/router_request_types/unified_authentication_service.rs@@ -21,7 +21,7 @@ pub struct AuthenticationInfo {pub is_authenticated: bool,pub locale: Option<String>,pub supported_card_brands: Option<String>,- pub encypted_payload: Option<Secret<String>>,+ pub encrypted_payload: Option<Secret<String>>,}#[derive(Clone, Debug)]pub struct UasAuthenticationRequestData {diff --git a/crates/router/src/core/payment_methods.rs b/crates/router/src/core/payment_methods.rsindex 702b81f972..ca42f81a1a 100644--- a/crates/router/src/core/payment_methods.rs+++ b/crates/router/src/core/payment_methods.rs@@ -214,7 +214,7 @@ pub async fn initiate_pm_collect_link().await?;- // Create DB entrie+ // Create DB entrylet pm_collect_link = create_pm_collect_db_entry(&state,&merchant_context,diff --git a/crates/router/src/core/payments.rs b/crates/router/src/core/payments.rsindex bfe7f7962d..4c3894d5d3 100644--- a/crates/router/src/core/payments.rs+++ b/crates/router/src/core/payments.rs@@ -8287,7 +8287,7 @@ pub trait OperationSessionSetters<F> {fn set_card_network(&mut self, card_network: enums::CardNetwork);fn set_co_badged_card_data(&mut self,- debit_routing_ouput: &api_models::open_router::DebitRoutingOutput,+ debit_routing_output: &api_models::open_router::DebitRoutingOutput,);#[cfg(feature = "v1")]fn set_capture_method_in_attempt(&mut self, capture_method: enums::CaptureMethod);@@ -8538,11 +8538,11 @@ impl<F: Clone> OperationSessionSetters<F> for PaymentData<F> {fn set_co_badged_card_data(&mut self,- debit_routing_ouput: &api_models::open_router::DebitRoutingOutput,+ debit_routing_output: &api_models::open_router::DebitRoutingOutput,) {let co_badged_card_data =- api_models::payment_methods::CoBadgedCardData::from(debit_routing_ouput);- let card_type = debit_routing_ouput+ api_models::payment_methods::CoBadgedCardData::from(debit_routing_output);+ let card_type = debit_routing_output.card_type.clone().to_string()@@ -8793,7 +8793,7 @@ impl<F: Clone> OperationSessionSetters<F> for PaymentIntentData<F> {fn set_co_badged_card_data(&mut self,- debit_routing_ouput: &api_models::open_router::DebitRoutingOutput,+ debit_routing_output: &api_models::open_router::DebitRoutingOutput,) {todo!()}@@ -9052,7 +9052,7 @@ impl<F: Clone> OperationSessionSetters<F> for PaymentConfirmData<F> {fn set_co_badged_card_data(&mut self,- debit_routing_ouput: &api_models::open_router::DebitRoutingOutput,+ debit_routing_output: &api_models::open_router::DebitRoutingOutput,) {todo!()}@@ -9283,7 +9283,7 @@ impl<F: Clone> OperationSessionSetters<F> for PaymentStatusData<F> {fn set_co_badged_card_data(&mut self,- debit_routing_ouput: &api_models::open_router::DebitRoutingOutput,+ debit_routing_output: &api_models::open_router::DebitRoutingOutput,) {todo!()}@@ -9524,7 +9524,7 @@ impl<F: Clone> OperationSessionSetters<F> for PaymentCaptureData<F> {fn set_co_badged_card_data(&mut self,- debit_routing_ouput: &api_models::open_router::DebitRoutingOutput,+ debit_routing_output: &api_models::open_router::DebitRoutingOutput,) {todo!()}diff --git a/crates/router/src/core/payments/retry.rs b/crates/router/src/core/payments/retry.rsindex 241a189d68..a7d8fecfe8 100644--- a/crates/router/src/core/payments/retry.rs+++ b/crates/router/src/core/payments/retry.rs@@ -617,7 +617,7 @@ pub fn make_new_payment_attempt(old_payment_attempt: storage::PaymentAttempt,new_attempt_count: i16,is_step_up: bool,- setup_futture_usage_intent: Option<storage_enums::FutureUsage>,+ setup_future_usage_intent: Option<storage_enums::FutureUsage>,) -> storage::PaymentAttemptNew {let created_at @ modified_at @ last_synced = Some(common_utils::date_time::now());storage::PaymentAttemptNew {@@ -688,7 +688,7 @@ pub fn make_new_payment_attempt(card_discovery: old_payment_attempt.card_discovery,processor_merchant_id: old_payment_attempt.processor_merchant_id,created_by: old_payment_attempt.created_by,- setup_future_usage_applied: setup_futture_usage_intent, // setup future usage is picked from intent for new payment attempt+ setup_future_usage_applied: setup_future_usage_intent, // setup future usage is picked from intent for new payment attempt}}diff --git a/crates/router/src/core/revenue_recovery.rs b/crates/router/src/core/revenue_recovery.rsindex d6091d8aa1..9eb57c4503 100644--- a/crates/router/src/core/revenue_recovery.rs+++ b/crates/router/src/core/revenue_recovery.rs@@ -161,7 +161,7 @@ pub async fn perform_execute_payment(types::Decision::ReviewForFailedPayment(triggered_by) => {match triggered_by {enums::TriggeredBy::Internal => {- // requeue the current taks to update the fields for rescheduling a payment+ // requeue the current tasks to update the fields for rescheduling a paymentlet pt_update = storage::ProcessTrackerUpdate::StatusUpdate {status: enums::ProcessTrackerStatus::Pending,business_status: Some(String::from(diff --git a/crates/router/src/core/unified_authentication_service.rs b/crates/router/src/core/unified_authentication_service.rsindex eba5764206..3820d8d7ed 100644--- a/crates/router/src/core/unified_authentication_service.rs+++ b/crates/router/src/core/unified_authentication_service.rs@@ -75,10 +75,10 @@ impl<F: Clone + Sync> UnifiedAuthenticationService<F> for ClickToPay {is_authenticated: false, // This is not relevant in this flow so keeping it as falselocale: None,supported_card_brands: None,- encypted_payload: payment_data+ encrypted_payload: payment_data.service_details.as_ref()- .and_then(|details| details.encypted_payload.clone()),+ .and_then(|details| details.encrypted_payload.clone()),});Ok(UasPreAuthenticationRequestData {service_details: Some(service_details),diff --git a/crates/router/src/utils/currency.rs b/crates/router/src/utils/currency.rsindex aaabc9ffc2..6e35353af6 100644--- a/crates/router/src/utils/currency.rs+++ b/crates/router/src/utils/currency.rs@@ -381,7 +381,7 @@ pub async fn fetch_forex_rates_from_fallback_api(.await.change_context(ForexError::ParsingError).attach_printable(- "Unable to parse response received from falback api into ForexResponse",+ "Unable to parse response received from fallback api into ForexResponse",)?;logger::info!(fallback_forex_response=?fallback_forex_response,"forex_log");diff --git a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario5-Create a mandate and recurring payment/List payment methods for a Customer/event.test.js b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario5-Create a mandate and recurring payment/List payment methods for a Customer/event.test.jsindex 8f940e049a..036d9ce047 100644--- a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario5-Create a mandate and recurring payment/List payment methods for a Customer/event.test.js+++ b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario5-Create a mandate and recurring payment/List payment methods for a Customer/event.test.js@@ -1,4 +1,4 @@-// Validate status 2xx+// Validate status 2xxpm.test("[GET]::/payment_methods/:customer_id - Status code is 2xx", function () {pm.response.to.be.success;});@@ -19,10 +19,10 @@ if (jsonData?.customer_payment_methods[0]?.payment_token) {console.log('INFO - Unable to assign variable {{payment_token}}, as jsonData.customer_payment_methods[0].payment_token is undefined.');}-// Response body should have at least one card payment mehod"+// Response body should have at least one card payment method"pm.test("[GET]::/payment_methods/:customer_id - Content check body has at least one customer_payment_methods",function () {pm.expect(jsonData.customer_payment_methods.length).greaterThan(0);},-);\ No newline at end of file+);diff --git a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/.meta.json b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/.meta.jsonindex 6f5f51da5e..480eee064e 100644--- a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/.meta.json+++ b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/.meta.json@@ -4,7 +4,7 @@"Payments - Confirm first and save card","Payment methods - List and get token","Payments - Create second",- "Payments - Confirm secod and use saved card",+ "Payments - Confirm second and use saved card","Payments - Retrieve"]-}\ No newline at end of file+}diff --git a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payment methods - List and get token/event.test.js b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payment methods - List and get token/event.test.jsindex 52c82b9201..75e5de2760 100644--- a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payment methods - List and get token/event.test.js+++ b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payment methods - List and get token/event.test.js@@ -1,4 +1,4 @@-// Validate status 2xx+// Validate status 2xxpm.test("[GET]::/payment_methods/:customer_id - Status code is 2xx", function () {pm.response.to.be.success;});@@ -12,7 +12,7 @@ pm.test("[GET]::/payment_methods/:customer_id - Content-Type is application/jsonlet jsonData = {};try {jsonData = pm.response.json();}catch(e){}-// Response body should have at least one card payment mehod"+// Response body should have at least one card payment method"pm.test("[GET]::/payment_methods/:customer_id - Content check body has at least one customer_payment_methods",function () {@@ -25,4 +25,4 @@ if (jsonData?.customer_payment_methods[0]?.payment_token) {console.log("- use {{payment_token}} as collection variable for value", jsonData.customer_payment_methods[0].payment_token);} else {console.log('INFO - Unable to assign variable {{payment_token}}, as jsonData.customer_payment_methods[0].payment_token is undefined.');-}\ No newline at end of file+}diff --git a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm secod and use saved card/.event.meta.json b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm second and use saved card/.event.meta.jsonsimilarity index 100%rename from postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm secod and use saved card/.event.meta.jsonrename to postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm second and use saved card/.event.meta.jsondiff --git a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm secod and use saved card/event.test.js b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm second and use saved card/event.test.jssimilarity index 100%rename from postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm secod and use saved card/event.test.jsrename to postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm second and use saved card/event.test.jsdiff --git a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm secod and use saved card/request.json b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm second and use saved card/request.jsonsimilarity index 100%rename from postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm secod and use saved card/request.jsonrename to postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm second and use saved card/request.jsondiff --git a/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm secod and use saved card/response.json b/postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm second and use saved card/response.jsonsimilarity index 100%rename from postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm secod and use saved card/response.jsonrename to postman/collection-dir/archipel/Flow Testcases/Happy Cases/Scenario6-Saved card flow/Payments - Confirm second and use saved card/response.jsondiff --git a/postman/collection-dir/archipel/Flow Testcases/Negative Cases/Scenario6-Create a recurring payment with greater mandate amount/Recurring Payments - Create/request.json b/postman/collection-dir/archipel/Flow Testcases/Negative Cases/Scenario6-Create a recurring payment with greater mandate amount/Recurring Payments - Create/request.jsonindex a7da97361d..08ee6a23c8 100644--- a/postman/collection-dir/archipel/Flow Testcases/Negative Cases/Scenario6-Create a recurring payment with greater mandate amount/Recurring Payments - Create/request.json+++ b/postman/collection-dir/archipel/Flow Testcases/Negative Cases/Scenario6-Create a recurring payment with greater mandate amount/Recurring Payments - Create/request.json@@ -25,7 +25,7 @@"capture_method": "automatic","capture_on": "{{$isoTimestamp}}","customer_id": "{{customer_id}}",- "description": "[Archipel Connector][Variation Cases][Scenario6] - Create recurring payment greather than mandate amount",+ "description": "[Archipel Connector][Variation Cases][Scenario6] - Create recurring payment greater than mandate amount","authentication_type": "no_three_ds","mandate_id": "{{mandate_id}}","off_session": true,diff --git a/postman/collection-json/archipel.postman_collection.json b/postman/collection-json/archipel.postman_collection.jsonindex 8d89998804..51678f3352 100644--- a/postman/collection-json/archipel.postman_collection.json+++ b/postman/collection-json/archipel.postman_collection.json@@ -4903,7 +4903,7 @@" console.log('INFO - Unable to assign variable {{payment_token}}, as jsonData.customer_payment_methods[0].payment_token is undefined.');","}","",- "// Response body should have at least one card payment mehod\"",+ "// Response body should have at least one card payment method\"","pm.test(","\"[GET]::/payment_methods/:customer_id - Content check body has at least one customer_payment_methods\",","function () {",@@ -5476,7 +5476,7 @@"let jsonData = {};","try {jsonData = pm.response.json();}catch(e){}","",- "// Response body should have at least one card payment mehod\"",+ "// Response body should have at least one card payment method\"","pm.test(","\"[GET]::/payment_methods/:customer_id - Content check body has at least one customer_payment_methods\",","function () {",@@ -5613,7 +5613,7 @@"response": []},{- "name": "Payments - Confirm secod and use saved card",+ "name": "Payments - Confirm second and use saved card","event": [{"listen": "test",@@ -10152,7 +10152,7 @@"language": "json"}},- "raw": "{\"amount\":9000,\"currency\":\"EUR\",\"confirm\":true,\"profile_id\":\"{{profile_id}}\",\"capture_method\":\"automatic\",\"capture_on\":\"{{$isoTimestamp}}\",\"customer_id\":\"{{customer_id}}\",\"description\":\"[Archipel Connector][Variation Cases][Scenario6] - Create recurring payment greather than mandate amount\",\"authentication_type\":\"no_three_ds\",\"mandate_id\":\"{{mandate_id}}\",\"off_session\":true,\"billing\":{\"address\":{\"line1\":\"2 ter\",\"line2\":\"rue du château\",\"line3\":\"\",\"city\":\"Neuilly-sur-Seine\",\"state\":\"France\",\"zip\":\"92200\",\"country\":\"FR\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}}}"+ "raw": "{\"amount\":9000,\"currency\":\"EUR\",\"confirm\":true,\"profile_id\":\"{{profile_id}}\",\"capture_method\":\"automatic\",\"capture_on\":\"{{$isoTimestamp}}\",\"customer_id\":\"{{customer_id}}\",\"description\":\"[Archipel Connector][Variation Cases][Scenario6] - Create recurring payment greater than mandate amount\",\"authentication_type\":\"no_three_ds\",\"mandate_id\":\"{{mandate_id}}\",\"off_session\":true,\"billing\":{\"address\":{\"line1\":\"2 ter\",\"line2\":\"rue du château\",\"line3\":\"\",\"city\":\"Neuilly-sur-Seine\",\"state\":\"France\",\"zip\":\"92200\",\"country\":\"FR\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}},\"shipping\":{\"address\":{\"line1\":\"1467\",\"line2\":\"Harrison Street\",\"line3\":\"Harrison Street\",\"city\":\"San Fransico\",\"state\":\"California\",\"zip\":\"94122\",\"country\":\"US\",\"first_name\":\"joseph\",\"last_name\":\"Doe\"},\"phone\":{\"number\":\"8056594427\",\"country_code\":\"+91\"}}}"},"url": {"raw": "{{baseUrl}}/payments",diff --git a/v2_compatible_migrations/2024-08-28-081757_drop_not_null_constraints_on_v1_columns/up.sql b/v2_compatible_migrations/2024-08-28-081757_drop_not_null_constraints_on_v1_columns/up.sqlindex ea3b08be15..199609d324 100644--- a/v2_compatible_migrations/2024-08-28-081757_drop_not_null_constraints_on_v1_columns/up.sql+++ b/v2_compatible_migrations/2024-08-28-081757_drop_not_null_constraints_on_v1_columns/up.sql@@ -4,7 +4,7 @@ ALTER TABLE organizationDROP CONSTRAINT organization_pkey,ALTER COLUMN org_id DROP NOT NULL;-- Create index on org_id in organization table--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_organization_org_id ON organization (org_id);@@ -16,7 +16,7 @@ ALTER TABLE merchant_accountALTER COLUMN primary_business_details DROP NOT NULL,ALTER COLUMN is_recon_enabled DROP NOT NULL;--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_merchant_account_merchant_id ON merchant_account (merchant_id);------------------------ Business Profile -------------------@@ -24,21 +24,21 @@ ALTER TABLE business_profileDROP CONSTRAINT business_profile_pkey,ALTER COLUMN profile_id DROP NOT NULL;--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_business_profile_profile_id ON business_profile (profile_id);---------------- Merchant Connector Account -----------------ALTER TABLE merchant_connector_accountDROP CONSTRAINT merchant_connector_account_pkey,ALTER COLUMN merchant_connector_id DROP NOT NULL;--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_merchant_connector_account_merchant_connector_id ON merchant_connector_account (merchant_connector_id);------------------------ Customers --------------------------ALTER TABLE customersDROP CONSTRAINT customers_pkey,ALTER COLUMN customer_id DROP NOT NULL;--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_customers_merchant_id_customer_id ON customers (merchant_id, customer_id);---------------------- Payment Intent -----------------------@@ -47,7 +47,7 @@ ALTER TABLE payment_intentALTER COLUMN payment_id DROP NOT NULL,ALTER COLUMN active_attempt_id DROP NOT NULL,ALTER COLUMN active_attempt_id DROP DEFAULT;--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_payment_intent_payment_id_merchant_id ON payment_intent (payment_id, merchant_id);---------------------- Payment Attempt ----------------------@@ -55,19 +55,19 @@ ALTER TABLE payment_attemptDROP CONSTRAINT payment_attempt_pkey,ALTER COLUMN attempt_id DROP NOT NULL,ALTER COLUMN amount DROP NOT NULL;--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_payment_attempt_attempt_id_merchant_id ON payment_attempt (attempt_id, merchant_id);---------------------- Payment Methods ----------------------ALTER TABLE payment_methodsDROP CONSTRAINT payment_methods_pkey,ALTER COLUMN payment_method_id DROP NOT NULL;--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_payment_methods_payment_method_id ON payment_methods (payment_method_id);---------------------- Refunds ----------------------ALTER TABLE refundDROP CONSTRAINT refund_pkey,ALTER COLUMN refund_id DROP NOT NULL;--- This is done to mullify the effects of droping primary key for v1+-- This is done to nullify the effects of dropping primary key for v1CREATE INDEX idx_refund_refund_id_merchant_id ON refund (refund_id, merchant_id);\ No newline at end of file