refactor(openai): update open-api spec to have payment changes (#4043)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Amisha Prabhat
2024-03-12 16:18:13 +05:30
committed by GitHub
parent ce3625cb0c
commit 708cce9261
4 changed files with 46 additions and 3 deletions

View File

@ -124,7 +124,8 @@ pub async fn customers_mandates_list() {}
get,
path = "/{customer_id}/payment_methods/{payment_method_id}/default",
params (
("method_id" = String, Path, description = "Set the Payment Method as Default for the Customer"),
("customer_id" = String,Path, description ="The unique identifier for the Customer"),
("payment_method_id" = String,Path, description = "The unique identifier for the Payment Method"),
),
responses(
(status = 200, description = "Payment Method has been set as default", body =CustomerDefaultPaymentMethodResponse ),

View File

@ -100,6 +100,14 @@
"currency": "USD"
}
}
},
"customer_acceptance": {
"acceptance_type": "offline",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "127.0.0.1",
"user_agent": "amet irure esse"
}
}
})
)
@ -302,6 +310,14 @@ pub fn payments_update() {}
"card_holder_name": "joseph Doe",
"card_cvc": "123"
}
},
"customer_acceptance": {
"acceptance_type": "offline",
"accepted_at": "1963-05-03T04:07:52.723Z",
"online": {
"ip_address": "127.0.0.1",
"user_agent": "amet irure esse"
}
}
}
)