mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
feat(customer_v2): add customer create v2 endpoint (#5444)
Co-authored-by: Narayan Bhat <narayan.bhat@juspay.in> Co-authored-by: hrithikesh026 <hrithikesh.vm@juspay.in> Co-authored-by: Prajjwal Kumar <prajjwal.kumar@juspay.in> Co-authored-by: Sanchith Hegde <sanchith.hegde@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -50,7 +50,9 @@ impl ConstructFlowSpecificData<frm_api::Checkout, FraudCheckCheckoutData, FraudC
|
||||
})?;
|
||||
|
||||
let browser_info: Option<BrowserInformation> = self.payment_attempt.get_browser_info().ok();
|
||||
let customer_id = customer.to_owned().map(|customer| customer.customer_id);
|
||||
let customer_id = customer
|
||||
.to_owned()
|
||||
.map(|customer| customer.get_customer_id());
|
||||
|
||||
let router_data = RouterData {
|
||||
flow: std::marker::PhantomData,
|
||||
|
||||
@ -46,7 +46,9 @@ impl ConstructFlowSpecificData<RecordReturn, FraudCheckRecordReturnData, FraudCh
|
||||
id: "ConnectorAuthType".to_string(),
|
||||
})?;
|
||||
|
||||
let customer_id = customer.to_owned().map(|customer| customer.customer_id);
|
||||
let customer_id = customer
|
||||
.to_owned()
|
||||
.map(|customer| customer.get_customer_id());
|
||||
let currency = self.payment_attempt.clone().currency;
|
||||
let router_data = RouterData {
|
||||
flow: std::marker::PhantomData,
|
||||
|
||||
@ -43,7 +43,9 @@ impl ConstructFlowSpecificData<frm_api::Sale, FraudCheckSaleData, FraudCheckResp
|
||||
id: "ConnectorAuthType".to_string(),
|
||||
})?;
|
||||
|
||||
let customer_id = customer.to_owned().map(|customer| customer.customer_id);
|
||||
let customer_id = customer
|
||||
.to_owned()
|
||||
.map(|customer| customer.get_customer_id());
|
||||
|
||||
let router_data = RouterData {
|
||||
flow: std::marker::PhantomData,
|
||||
|
||||
@ -50,7 +50,9 @@ impl
|
||||
id: "ConnectorAuthType".to_string(),
|
||||
})?;
|
||||
|
||||
let customer_id = customer.to_owned().map(|customer| customer.customer_id);
|
||||
let customer_id = customer
|
||||
.to_owned()
|
||||
.map(|customer| customer.get_customer_id());
|
||||
|
||||
let payment_method = self.payment_attempt.payment_method;
|
||||
let currency = self.payment_attempt.currency;
|
||||
|
||||
Reference in New Issue
Block a user