mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
refactor(customers_v2): address panics and some bugs in customers v2 endpoints (#6836)
This commit is contained in:
@ -235,6 +235,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::admin::BusinessCollectLinkConfig,
|
||||
api_models::admin::BusinessPayoutLinkConfig,
|
||||
api_models::customers::CustomerRequest,
|
||||
api_models::customers::CustomerUpdateRequest,
|
||||
api_models::customers::CustomerDeleteResponse,
|
||||
api_models::payment_methods::PaymentMethodCreate,
|
||||
api_models::payment_methods::PaymentMethodResponse,
|
||||
|
||||
@ -187,6 +187,7 @@ Never share your secret api keys. Keep them guarded and secure.
|
||||
api_models::admin::BusinessCollectLinkConfig,
|
||||
api_models::admin::BusinessPayoutLinkConfig,
|
||||
api_models::customers::CustomerRequest,
|
||||
api_models::customers::CustomerUpdateRequest,
|
||||
api_models::customers::CustomerDeleteResponse,
|
||||
api_models::payment_methods::PaymentMethodCreate,
|
||||
api_models::payment_methods::PaymentMethodIntentCreate,
|
||||
|
||||
@ -51,7 +51,7 @@ pub async fn customers_retrieve() {}
|
||||
post,
|
||||
path = "/customers/{customer_id}",
|
||||
request_body (
|
||||
content = CustomerRequest,
|
||||
content = CustomerUpdateRequest,
|
||||
examples (( "Update name and email of a customer" =(
|
||||
value =json!( {
|
||||
"email": "guest@example.com",
|
||||
@ -159,7 +159,7 @@ pub async fn customers_retrieve() {}
|
||||
post,
|
||||
path = "/v2/customers/{id}",
|
||||
request_body (
|
||||
content = CustomerRequest,
|
||||
content = CustomerUpdateRequest,
|
||||
examples (( "Update name and email of a customer" =(
|
||||
value =json!( {
|
||||
"email": "guest@example.com",
|
||||
|
||||
Reference in New Issue
Block a user