Skip to content

Commit

Permalink
refactor: fix openapi
Browse files Browse the repository at this point in the history
  • Loading branch information
Narayanbhat166 committed Dec 20, 2024
1 parent 5025e64 commit 51ad828
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions crates/openapi/src/routes/payments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -691,6 +691,18 @@ pub fn payments_update_intent() {}
#[utoipa::path(
post,
path = "/v2/payments/{id}/confirm-intent",
params (("id" = String, Path, description = "The unique identifier for the Payment Intent"),
(
"X-Profile-Id" = String, Header,
description = "Profile ID associated to the payment intent",
example = json!({"X-Profile-Id": "pro_abcdefghijklmnop"})
),
(
"X-Client-Secret" = String, Header,
description = "Client Secret Associated with the payment intent",
example = json!({"X-Client-Secret": "12345_pay_0193e41106e07e518940f8b51b9c8121_secret_0193e41107027a928d61d292e6a5dba9"})
),
),
request_body(
content = PaymentsConfirmIntentRequest,
examples(
Expand Down Expand Up @@ -761,6 +773,16 @@ pub(crate) enum ForceSync {
path = "/v2/payments/{id}/payment-methods",
params(
("id" = String, Path, description = "The global payment id"),
(
"X-Profile-Id" = String, Header,
description = "Profile ID associated to the payment intent",
example = json!({"X-Profile-Id": "pro_abcdefghijklmnop"})
),
(
"X-Client-Secret" = String, Header,
description = "Client Secret Associated with the payment intent",
example = json!({"X-Client-Secret": "12345_pay_0193e41106e07e518940f8b51b9c8121_secret_0193e41107027a928d61d292e6a5dba9"})
),
),
responses(
(status = 200, description = "Get the payment methods", body = PaymentMethodListResponseForPayments),
Expand Down

0 comments on commit 51ad828

Please sign in to comment.