@@ -37,7 +37,7 @@ pub struct MerchantConnectorAccount {
37
37
pub modified_at : time:: PrimitiveDateTime ,
38
38
}
39
39
40
- #[ derive( Clone , Debug , Default , Insertable , router_derive:: DebugAsDisplay ) ]
40
+ #[ derive( Clone , Debug , Insertable , router_derive:: DebugAsDisplay ) ]
41
41
#[ diesel( table_name = merchant_connector_account) ]
42
42
pub struct MerchantConnectorAccountNew {
43
43
pub merchant_id : Option < String > ,
@@ -54,6 +54,8 @@ pub struct MerchantConnectorAccountNew {
54
54
pub business_country : storage_enums:: CountryCode ,
55
55
pub business_label : String ,
56
56
pub business_sub_label : Option < String > ,
57
+ pub created_at : time:: PrimitiveDateTime ,
58
+ pub modified_at : time:: PrimitiveDateTime ,
57
59
}
58
60
59
61
#[ derive( Debug ) ]
@@ -70,7 +72,7 @@ pub enum MerchantConnectorAccountUpdate {
70
72
frm_configs : Option < Secret < serde_json:: Value > > ,
71
73
} ,
72
74
}
73
- #[ derive( Clone , Debug , Default , AsChangeset , router_derive:: DebugAsDisplay ) ]
75
+ #[ derive( Clone , Debug , AsChangeset , router_derive:: DebugAsDisplay ) ]
74
76
#[ diesel( table_name = merchant_connector_account) ]
75
77
pub struct MerchantConnectorAccountUpdateInternal {
76
78
merchant_id : Option < String > ,
@@ -82,7 +84,7 @@ pub struct MerchantConnectorAccountUpdateInternal {
82
84
payment_methods_enabled : Option < Vec < serde_json:: Value > > ,
83
85
metadata : Option < pii:: SecretSerdeValue > ,
84
86
frm_configs : Option < Secret < serde_json:: Value > > ,
85
- modified_at : Option < time:: PrimitiveDateTime > ,
87
+ modified_at : time:: PrimitiveDateTime ,
86
88
}
87
89
88
90
impl From < MerchantConnectorAccountUpdate > for MerchantConnectorAccountUpdateInternal {
@@ -108,7 +110,7 @@ impl From<MerchantConnectorAccountUpdate> for MerchantConnectorAccountUpdateInte
108
110
payment_methods_enabled,
109
111
metadata,
110
112
frm_configs,
111
- modified_at : Some ( common_utils:: date_time:: now ( ) ) ,
113
+ modified_at : common_utils:: date_time:: now ( ) ,
112
114
} ,
113
115
}
114
116
}
0 commit comments