File tree Expand file tree Collapse file tree 3 files changed +281
-107
lines changed Expand file tree Collapse file tree 3 files changed +281
-107
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,15 @@ pub enum StoreLockerReq<'a> {
27
27
LockerGeneric ( StoreGenericReq < ' a > ) ,
28
28
}
29
29
30
+ impl StoreLockerReq < ' _ > {
31
+ pub fn update_requestor_card_reference ( & mut self , card_reference : Option < String > ) {
32
+ match self {
33
+ Self :: LockerCard ( c) => c. requestor_card_reference = card_reference,
34
+ Self :: LockerGeneric ( _) => ( ) ,
35
+ }
36
+ }
37
+ }
38
+
30
39
#[ derive( Debug , Deserialize , Serialize ) ]
31
40
pub struct StoreCardReq < ' a > {
32
41
pub merchant_id : & ' a str ,
Original file line number Diff line number Diff line change @@ -1452,7 +1452,10 @@ pub async fn fulfill_payout(
1452
1452
. status
1453
1453
. unwrap_or ( payout_attempt. status . to_owned ( ) ) ;
1454
1454
payout_data. payouts . status = status;
1455
- if payout_data. payouts . recurring && payout_data. payouts . payout_method_id . is_none ( ) {
1455
+ if payout_data. payouts . recurring
1456
+ && payout_data. payouts . payout_method_id . is_none ( )
1457
+ && !helpers:: is_payout_err_state ( status)
1458
+ {
1456
1459
helpers:: save_payout_data_to_locker (
1457
1460
state,
1458
1461
payout_data,
You can’t perform that action at this time.
0 commit comments