refactor(customers_v2): address panics and some bugs in customers v2 endpoints (#6836)

This commit is contained in:
Sanchith Hegde
2024-12-17 15:54:27 +05:30
committed by GitHub
parent 588ce408b4
commit dfbfce4e42
56 changed files with 909 additions and 478 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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",