refactor(customers_v2): Remove merchant reference id from v2 customer update (#7879)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Amey Wale
2025-06-09 12:52:44 +05:30
committed by GitHub
parent 8f5872d6f4
commit d6ad852298
2 changed files with 0 additions and 15 deletions

View File

@ -313,9 +313,6 @@ impl CustomerUpdateRequest {
#[derive(Debug, Default, Clone, Deserialize, Serialize, ToSchema)]
#[serde(deny_unknown_fields)]
pub struct CustomerUpdateRequest {
/// The merchant identifier for the customer object.
#[schema(value_type = Option<String>, max_length = 64, min_length = 1, example = "cus_y3oqhf46pyzuxjbcn2giaqnb44")]
pub merchant_reference_id: Option<id_type::CustomerId>,
/// The customer's name
#[schema(max_length = 255, value_type = String, example = "Jon Test")]
pub name: Option<Secret<String>>,
@ -349,10 +346,6 @@ pub struct CustomerUpdateRequest {
#[cfg(all(feature = "v2", feature = "customer_v2"))]
impl CustomerUpdateRequest {
pub fn get_merchant_reference_id(&self) -> Option<id_type::CustomerId> {
self.merchant_reference_id.clone()
}
pub fn get_default_customer_billing_address(&self) -> Option<payments::AddressDetails> {
self.default_billing_address.clone()
}