You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Err(errors::ApiErrorResponse::InvalidRequestData{message:"The `created_after` timestamp must be an earlier timestamp compared to the `created_before` timestamp".to_string()})
84
+
})?;
85
+
86
+
let created_after = match created_after {
87
+
Some(created_after) => {
88
+
if created_after < events_list_begin_time {
89
+
Err(errors::ApiErrorResponse::InvalidRequestData{message:format!("`created_after` must be a timestamp within the past {INITIAL_DELIVERY_ATTEMPTS_LIST_MAX_DAYS} days.")})
90
+
}else{
91
+
Ok(created_after)
92
+
}
93
+
},
94
+
None => Ok(events_list_begin_time)
95
+
}?;
96
+
97
+
let created_before = match created_before{
98
+
Some(created_before) => {
99
+
if created_before < events_list_begin_time{
100
+
Err(errors::ApiErrorResponse::InvalidRequestData{message:format!("`created_before` must be a timestamp within the past {INITIAL_DELIVERY_ATTEMPTS_LIST_MAX_DAYS} days.")})
101
+
}
102
+
else{
103
+
Ok(created_before)
104
+
}
105
+
},
106
+
None => Ok(now)
107
+
}?;
108
+
75
109
match account {
76
110
MerchantAccountOrProfile::MerchantAccount(merchant_account) => store
0 commit comments