Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions api-reference/v2/openapi_spec_v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}
],
"paths": {
"/v2/organization": {
"/v2/organizations": {
"post": {
"tags": [
"Organization"
Expand Down Expand Up @@ -67,7 +67,7 @@
]
}
},
"/v2/organization/{id}": {
"/v2/organizations/{id}": {
"get": {
"tags": [
"Organization"
Expand Down Expand Up @@ -164,7 +164,7 @@
]
}
},
"/v2/organization/{id}/merchant-accounts": {
"/v2/organizations/{id}/merchant-accounts": {
"get": {
"tags": [
"Organization"
Expand Down Expand Up @@ -1220,7 +1220,7 @@
]
}
},
"/v2/routing-algorithm": {
"/v2/routing-algorithms": {
"post": {
"tags": [
"Routing"
Expand Down Expand Up @@ -1275,7 +1275,7 @@
]
}
},
"/v2/routing-algorithm/{id}": {
"/v2/routing-algorithms/{id}": {
"get": {
"tags": [
"Routing"
Expand Down Expand Up @@ -2850,7 +2850,7 @@
]
}
},
"/v2/payment-method-session": {
"/v2/payment-method-sessions": {
"post": {
"tags": [
"Payment Method Session"
Expand Down Expand Up @@ -2897,7 +2897,7 @@
]
}
},
"/v2/payment-method-session/{id}": {
"/v2/payment-method-sessions/{id}": {
"get": {
"tags": [
"Payment Method Session"
Expand Down Expand Up @@ -2994,7 +2994,7 @@
]
}
},
"/v2/payment-method-session/{id}/list-payment-methods": {
"/v2/payment-method-sessions/{id}/list-payment-methods": {
"get": {
"tags": [
"Payment Method Session"
Expand Down Expand Up @@ -3035,7 +3035,7 @@
]
}
},
"/v2/payment-method-session/{id}/update-saved-payment-method": {
"/v2/payment-method-sessions/{id}/update-saved-payment-method": {
"put": {
"tags": [
"Payment Method Session"
Expand Down Expand Up @@ -3098,7 +3098,7 @@
]
}
},
"/v2/payment-method-session/{id}/confirm": {
"/v2/payment-method-sessions/{id}/confirm": {
"post": {
"tags": [
"Payment Method Session"
Expand Down Expand Up @@ -3241,7 +3241,7 @@
]
}
},
"/v2/refunds/{id}/update_metadata": {
"/v2/refunds/{id}/update-metadata": {
"put": {
"tags": [
"Refunds"
Expand Down Expand Up @@ -3377,7 +3377,7 @@
]
}
},
"/v2/process_tracker/revenue_recovery_workflow/{revenue_recovery_id}": {
"/v2/process-trackers/revenue-recovery-workflow/{revenue_recovery_id}": {
"get": {
"tags": [
"Revenue Recovery"
Expand Down
2 changes: 1 addition & 1 deletion api-reference/v2/organization/organization--create.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: post /v2/organization
openapi: post /v2/organizations
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/organization/{id}/merchant-accounts
openapi: get /v2/organizations/{id}/merchant-accounts
---
2 changes: 1 addition & 1 deletion api-reference/v2/organization/organization--retrieve.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/organization/{id}
openapi: get /v2/organizations/{id}
---
2 changes: 1 addition & 1 deletion api-reference/v2/organization/organization--update.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: put /v2/organization/{id}
openapi: put /v2/organizations/{id}
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: post /v2/payment-method-session/{id}/confirm
openapi: post /v2/payment-method-sessions/{id}/confirm
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: post /v2/payment-method-session
openapi: post /v2/payment-method-sessions
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: delete /v2/payment-method-session/{id}
openapi: delete /v2/payment-method-sessions/{id}
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/payment-method-session/{id}/list-payment-methods
openapi: get /v2/payment-method-sessions/{id}/list-payment-methods
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/payment-method-session/{id}
openapi: get /v2/payment-method-sessions/{id}
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: put /v2/payment-method-session/{id}/update-saved-payment-method
openapi: put /v2/payment-method-sessions/{id}/update-saved-payment-method
---
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/process_tracker/revenue_recovery_workflow/{revenue_recovery_id}
openapi: get /v2/process-trackers/revenue-recovery-workflow/{revenue_recovery_id}
---
2 changes: 1 addition & 1 deletion api-reference/v2/routing/routing--create.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: post /v2/routing-algorithm
openapi: post /v2/routing-algorithms
---
2 changes: 1 addition & 1 deletion api-reference/v2/routing/routing--retrieve.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
openapi: get /v2/routing-algorithm/{id}
openapi: get /v2/routing-algorithms/{id}
---
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ impl ConnectorIntegration<ExternalVaultCreateFlow, VaultRequestData, VaultRespon
connectors: &Connectors,
) -> CustomResult<String, errors::ConnectorError> {
Ok(format!(
"{}/v2/payment-methods-session",
"{}/v2/payment-method-sessions",
self.base_url(connectors)
))
}
Expand Down
8 changes: 4 additions & 4 deletions crates/openapi/src/routes/organization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pub async fn organization_update() {}
/// Create a new organization
#[utoipa::path(
post,
path = "/v2/organization",
path = "/v2/organizations",
request_body(
content = OrganizationCreateRequest,
examples(
Expand All @@ -104,7 +104,7 @@ pub async fn organization_create() {}
/// Retrieve an existing organization
#[utoipa::path(
get,
path = "/v2/organization/{id}",
path = "/v2/organizations/{id}",
params (("id" = String, Path, description = "The unique identifier for the Organization")),
responses(
(status = 200, description = "Organization Created", body =OrganizationResponse),
Expand All @@ -122,7 +122,7 @@ pub async fn organization_retrieve() {}
/// Create a new organization for .
#[utoipa::path(
put,
path = "/v2/organization/{id}",
path = "/v2/organizations/{id}",
request_body(
content = OrganizationUpdateRequest,
examples(
Expand Down Expand Up @@ -150,7 +150,7 @@ pub async fn organization_update() {}
/// List merchant accounts for an Organization
#[utoipa::path(
get,
path = "/v2/organization/{id}/merchant-accounts",
path = "/v2/organizations/{id}/merchant-accounts",
params (("id" = String, Path, description = "The unique identifier for the Organization")),
responses(
(status = 200, description = "Merchant Account list retrieved successfully", body = Vec<MerchantAccountResponse>),
Expand Down
12 changes: 6 additions & 6 deletions crates/openapi/src/routes/payment_method.rs
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ pub async fn list_customer_payment_method_api() {}
#[cfg(feature = "v2")]
#[utoipa::path(
post,
path = "/v2/payment-method-session",
path = "/v2/payment-method-sessions",
request_body(
content = PaymentMethodSessionRequest,
examples (( "Create a payment method session with customer_id" = (
Expand All @@ -378,7 +378,7 @@ pub fn payment_method_session_create() {}
#[cfg(feature = "v2")]
#[utoipa::path(
get,
path = "/v2/payment-method-session/{id}",
path = "/v2/payment-method-sessions/{id}",
params (
("id" = String, Path, description = "The unique identifier for the Payment Method Session"),
),
Expand All @@ -399,7 +399,7 @@ pub fn payment_method_session_retrieve() {}
#[cfg(feature = "v2")]
#[utoipa::path(
get,
path = "/v2/payment-method-session/{id}/list-payment-methods",
path = "/v2/payment-method-sessions/{id}/list-payment-methods",
params (
("id" = String, Path, description = "The unique identifier for the Payment Method Session"),
),
Expand All @@ -419,7 +419,7 @@ pub fn payment_method_session_list_payment_methods() {}
#[cfg(feature = "v2")]
#[utoipa::path(
put,
path = "/v2/payment-method-session/{id}/update-saved-payment-method",
path = "/v2/payment-method-sessions/{id}/update-saved-payment-method",
params (
("id" = String, Path, description = "The unique identifier for the Payment Method Session"),
),
Expand Down Expand Up @@ -453,7 +453,7 @@ pub fn payment_method_session_update_saved_payment_method() {}
#[cfg(feature = "v2")]
#[utoipa::path(
delete,
path = "/v2/payment-method-session/{id}",
path = "/v2/payment-method-sessions/{id}",
params (
("id" = String, Path, description = "The unique identifier for the Payment Method Session"),
),
Expand Down Expand Up @@ -520,7 +520,7 @@ pub async fn tokenize_card_using_pm_api() {}
/// **Confirms a payment method session object with the payment method data**
#[utoipa::path(
post,
path = "/v2/payment-method-session/{id}/confirm",
path = "/v2/payment-method-sessions/{id}/confirm",
params (("id" = String, Path, description = "The unique identifier for the Payment Method Session"),
(
"X-Profile-Id" = String, Header,
Expand Down
2 changes: 1 addition & 1 deletion crates/openapi/src/routes/refunds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ pub async fn refunds_create() {}
/// Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields
#[utoipa::path(
put,
path = "/v2/refunds/{id}/update_metadata",
path = "/v2/refunds/{id}/update-metadata",
params(
("id" = String, Path, description = "The identifier for refund")
),
Expand Down
2 changes: 1 addition & 1 deletion crates/openapi/src/routes/revenue_recovery.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/// Retrieve the Revenue Recovery Payment Info
#[utoipa::path(
get,
path = "/v2/process_tracker/revenue_recovery_workflow/{revenue_recovery_id}",
path = "/v2/process-trackers/revenue-recovery-workflow/{revenue_recovery_id}",
params(
("recovery_recovery_id" = String, Path, description = "The payment intent id"),
),
Expand Down
4 changes: 2 additions & 2 deletions crates/openapi/src/routes/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub async fn routing_create_config() {}
/// Create a routing algorithm
#[utoipa::path(
post,
path = "/v2/routing-algorithm",
path = "/v2/routing-algorithms",
request_body = RoutingConfigRequest,
responses(
(status = 200, description = "Routing Algorithm created", body = RoutingDictionaryRecord),
Expand Down Expand Up @@ -92,7 +92,7 @@ pub async fn routing_retrieve_config() {}
/// Retrieve a routing algorithm with its algorithm id
#[utoipa::path(
get,
path = "/v2/routing-algorithm/{id}",
path = "/v2/routing-algorithms/{id}",
params(
("id" = String, Path, description = "The unique identifier for a routing algorithm"),
),
Expand Down
5 changes: 4 additions & 1 deletion crates/router/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,10 @@ pub fn mk_app(

#[cfg(feature = "v2")]
{
server_app = server_app.service(routes::ProcessTracker::server(state.clone()));
server_app = server_app
.service(routes::UserDeprecated::server(state.clone()))
.service(routes::ProcessTrackerDeprecated::server(state.clone()))
.service(routes::ProcessTracker::server(state.clone()));
}
}

Expand Down
5 changes: 3 additions & 2 deletions crates/router/src/routes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ pub use self::app::{
ApiKeys, AppState, ApplePayCertificatesMigration, Authentication, Cache, Cards, Chat, Configs,
ConnectorOnboarding, Customers, Disputes, EphemeralKey, FeatureMatrix, Files, Forex, Gsm,
Health, Hypersense, Mandates, MerchantAccount, MerchantConnectorAccount, PaymentLink,
PaymentMethods, Payments, Poll, ProcessTracker, Profile, ProfileAcquirer, ProfileNew, Refunds,
Relay, RelayWebhooks, SessionState, ThreeDsDecisionRule, User, Webhooks,
PaymentMethods, Payments, Poll, ProcessTracker, ProcessTrackerDeprecated, Profile,
ProfileAcquirer, ProfileNew, Refunds, Relay, RelayWebhooks, SessionState, ThreeDsDecisionRule,
User, UserDeprecated, Webhooks,
};
#[cfg(feature = "olap")]
pub use self::app::{Blocklist, Organization, Routing, Verify, WebhookEvents};
Expand Down
Loading
Loading