mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 21:07:58 +08:00
refactor(scheduler): move scheduler to new crate to support workflows in multiple crates (#1681)
This commit is contained in:
@ -791,18 +791,18 @@ impl AddressDetailsData for api::AddressDetails {
|
||||
.ok_or_else(missing_field_err("address.city"))
|
||||
}
|
||||
|
||||
fn get_line2(&self) -> Result<&Secret<String>, Error> {
|
||||
self.line2
|
||||
.as_ref()
|
||||
.ok_or_else(missing_field_err("address.line2"))
|
||||
}
|
||||
|
||||
fn get_state(&self) -> Result<&Secret<String>, Error> {
|
||||
self.state
|
||||
.as_ref()
|
||||
.ok_or_else(missing_field_err("address.state"))
|
||||
}
|
||||
|
||||
fn get_line2(&self) -> Result<&Secret<String>, Error> {
|
||||
self.line2
|
||||
.as_ref()
|
||||
.ok_or_else(missing_field_err("address.line2"))
|
||||
}
|
||||
|
||||
fn get_zip(&self) -> Result<&Secret<String>, Error> {
|
||||
self.zip
|
||||
.as_ref()
|
||||
|
||||
Reference in New Issue
Block a user