refactor(payment_methods): update api contract for update payment method endpoint (#4641)

This commit is contained in:
Chethan Rao
2024-05-14 18:19:35 +05:30
committed by GitHub
parent 6b509c7bec
commit e43ae653a0
4 changed files with 56 additions and 93 deletions

View File

@ -138,7 +138,7 @@ pub async fn payment_method_retrieve_api() {}
/// This API is useful for use cases such as updating the card number for expired cards to prevent discontinuity in recurring payments.
#[utoipa::path(
post,
path = "/payment_methods/{method_id}",
path = "/payment_methods/{method_id}/update",
params (
("method_id" = String, Path, description = "The unique identifier for the Payment Method"),
),
@ -149,7 +149,7 @@ pub async fn payment_method_retrieve_api() {}
),
tag = "Payment Methods",
operation_id = "Update a Payment method",
security(("api_key" = []))
security(("api_key" = []), ("publishable_key" = []))
)]
pub async fn payment_method_update_api() {}