mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 12:06:56 +08:00
feat(documentation): add polymorphic generate_schema macro (#1183)
Co-authored-by: pixincreate@work <69745008+pixincreate@users.noreply.github.com>
This commit is contained in:
@ -48,7 +48,7 @@ pub async fn create_payment_method_api(
|
||||
/// To filter and list the applicable payment methods for a particular Merchant ID
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/payment_methods/{account_id}",
|
||||
path = "/account/payment_methods",
|
||||
params (
|
||||
("account_id" = String, Path, description = "The unique identifier for the merchant account"),
|
||||
("accepted_country" = Vec<String>, Query, description = "The two-letter ISO currency code"),
|
||||
@ -96,7 +96,7 @@ pub async fn list_payment_method_api(
|
||||
/// To filter and list the applicable payment methods for a particular Customer ID
|
||||
#[utoipa::path(
|
||||
get,
|
||||
path = "/payment_methods/{customer_id}",
|
||||
path = "/customer/{customer_id}/payment_methods",
|
||||
params (
|
||||
("customer_id" = String, Path, description = "The unique identifier for the customer account"),
|
||||
("accepted_country" = Vec<String>, Query, description = "The two-letter ISO currency code"),
|
||||
|
||||
Reference in New Issue
Block a user