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
docs: add list mandates for customer (#3592)
SamraatBansal3a869a2d5731
diff --git a/crates/openapi/src/openapi.rs b/crates/openapi/src/openapi.rsindex 1936300ee1..dc38181a68 100644--- a/crates/openapi/src/openapi.rs+++ b/crates/openapi/src/openapi.rs@@ -114,6 +114,7 @@ Never share your secret api keys. Keep them guarded and secure.routes::customers::customers_list,routes::customers::customers_update,routes::customers::customers_delete,+ routes::customers::customers_mandates_list,//Routes for payment methodsroutes::payment_method::create_payment_method_api,diff --git a/crates/openapi/src/routes/customers.rs b/crates/openapi/src/routes/customers.rsindex 7517cdc61a..19901cbbeb 100644--- a/crates/openapi/src/routes/customers.rs+++ b/crates/openapi/src/routes/customers.rs@@ -100,3 +100,19 @@ pub async fn customers_delete() {}security(("api_key" = [])))]pub async fn customers_list() {}++/// Customers - Mandates List+///+/// Lists all the mandates for a particular customer id.+#[utoipa::path(+ post,+ path = "/customers/{customer_id}/mandates",+ responses(+ (status = 200, description = "List of retrieved mandates for a customer", body = Vec<MandateResponse>),+ (status = 400, description = "Invalid Data"),+ ),+ tag = "Customers Mandates List",+ operation_id = "List all Mandates for a Customer",+ security(("api_key" = []))+)]+pub async fn customers_mandates_list() {}diff --git a/openapi/openapi_spec.json b/openapi/openapi_spec.jsonindex 2803141b38..be011422e0 100644--- a/openapi/openapi_spec.json+++ b/openapi/openapi_spec.json@@ -1608,6 +1608,39 @@]}},+ "/customers/{customer_id}/mandates": {+ "post": {+ "tags": [+ "Customers Mandates List"+ ],+ "summary": "Customers - Mandates List",+ "description": "Customers - Mandates List\n\nLists all the mandates for a particular customer id.",+ "operationId": "List all Mandates for a Customer",+ "responses": {+ "200": {+ "description": "List of retrieved mandates for a customer",+ "content": {+ "application/json": {+ "schema": {+ "type": "array",+ "items": {+ "$ref": "#/components/schemas/MandateResponse"+ }+ }+ }+ }+ },+ "400": {+ "description": "Invalid Data"+ }+ },+ "security": [+ {+ "api_key": []+ }+ ]+ }+ },"/customers/{customer_id}/payment_methods": {"get": {"tags": [