@@ -154,6 +154,7 @@ pub struct PaymentIntent {
154
154
pub processor_merchant_id : Option < common_utils:: id_type:: MerchantId > ,
155
155
pub created_by : Option < String > ,
156
156
pub is_iframe_redirection_enabled : Option < bool > ,
157
+ pub extended_return_url : Option < String > ,
157
158
}
158
159
159
160
#[ derive( Clone , Debug , serde:: Deserialize , serde:: Serialize , diesel:: AsExpression , PartialEq ) ]
@@ -422,6 +423,7 @@ pub struct PaymentIntentNew {
422
423
pub processor_merchant_id : Option < common_utils:: id_type:: MerchantId > ,
423
424
pub created_by : Option < String > ,
424
425
pub is_iframe_redirection_enabled : Option < bool > ,
426
+ pub extended_return_url : Option < String > ,
425
427
}
426
428
427
429
#[ cfg( feature = "v2" ) ]
@@ -670,6 +672,7 @@ pub struct PaymentIntentUpdateInternal {
670
672
pub tax_details : Option < TaxDetails > ,
671
673
pub force_3ds_challenge : Option < bool > ,
672
674
pub is_iframe_redirection_enabled : Option < bool > ,
675
+ pub extended_return_url : Option < String > ,
673
676
}
674
677
675
678
#[ cfg( feature = "v1" ) ]
@@ -714,6 +717,7 @@ impl PaymentIntentUpdate {
714
717
tax_details,
715
718
force_3ds_challenge,
716
719
is_iframe_redirection_enabled,
720
+ extended_return_url,
717
721
} = self . into ( ) ;
718
722
PaymentIntent {
719
723
amount : amount. unwrap_or ( source. amount ) ,
@@ -762,6 +766,7 @@ impl PaymentIntentUpdate {
762
766
force_3ds_challenge : force_3ds_challenge. or ( source. force_3ds_challenge ) ,
763
767
is_iframe_redirection_enabled : is_iframe_redirection_enabled
764
768
. or ( source. is_iframe_redirection_enabled ) ,
769
+ extended_return_url : extended_return_url. or ( source. extended_return_url ) ,
765
770
..source
766
771
}
767
772
}
@@ -813,6 +818,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
813
818
tax_details : None ,
814
819
force_3ds_challenge : None ,
815
820
is_iframe_redirection_enabled : None ,
821
+ extended_return_url : None ,
816
822
} ,
817
823
PaymentIntentUpdate :: Update ( value) => Self {
818
824
amount : Some ( value. amount ) ,
@@ -822,7 +828,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
822
828
customer_id : value. customer_id ,
823
829
shipping_address_id : value. shipping_address_id ,
824
830
billing_address_id : value. billing_address_id ,
825
- return_url : value . return_url ,
831
+ return_url : None , // deprecated
826
832
business_country : value. business_country ,
827
833
business_label : value. business_label ,
828
834
description : value. description ,
@@ -854,6 +860,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
854
860
tax_details : None ,
855
861
force_3ds_challenge : value. force_3ds_challenge ,
856
862
is_iframe_redirection_enabled : value. is_iframe_redirection_enabled ,
863
+ extended_return_url : value. return_url ,
857
864
} ,
858
865
PaymentIntentUpdate :: PaymentCreateUpdate {
859
866
return_url,
@@ -864,7 +871,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
864
871
customer_details,
865
872
updated_by,
866
873
} => Self {
867
- return_url,
874
+ return_url : None , // deprecated
868
875
status,
869
876
customer_id,
870
877
shipping_address_id,
@@ -902,6 +909,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
902
909
tax_details : None ,
903
910
force_3ds_challenge : None ,
904
911
is_iframe_redirection_enabled : None ,
912
+ extended_return_url : return_url,
905
913
} ,
906
914
PaymentIntentUpdate :: PGStatusUpdate {
907
915
status,
@@ -946,6 +954,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
946
954
tax_details : None ,
947
955
force_3ds_challenge : None ,
948
956
is_iframe_redirection_enabled : None ,
957
+ extended_return_url : None ,
949
958
} ,
950
959
PaymentIntentUpdate :: MerchantStatusUpdate {
951
960
status,
@@ -991,6 +1000,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
991
1000
tax_details : None ,
992
1001
force_3ds_challenge : None ,
993
1002
is_iframe_redirection_enabled : None ,
1003
+ extended_return_url : None ,
994
1004
} ,
995
1005
PaymentIntentUpdate :: ResponseUpdate {
996
1006
// amount,
@@ -1043,6 +1053,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1043
1053
tax_details : None ,
1044
1054
force_3ds_challenge : None ,
1045
1055
is_iframe_redirection_enabled : None ,
1056
+ extended_return_url : None ,
1046
1057
} ,
1047
1058
PaymentIntentUpdate :: PaymentAttemptAndAttemptCountUpdate {
1048
1059
active_attempt_id,
@@ -1087,6 +1098,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1087
1098
tax_details : None ,
1088
1099
force_3ds_challenge : None ,
1089
1100
is_iframe_redirection_enabled : None ,
1101
+ extended_return_url : None ,
1090
1102
} ,
1091
1103
PaymentIntentUpdate :: StatusAndAttemptUpdate {
1092
1104
status,
@@ -1132,6 +1144,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1132
1144
tax_details : None ,
1133
1145
force_3ds_challenge : None ,
1134
1146
is_iframe_redirection_enabled : None ,
1147
+ extended_return_url : None ,
1135
1148
} ,
1136
1149
PaymentIntentUpdate :: ApproveUpdate {
1137
1150
status,
@@ -1176,6 +1189,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1176
1189
tax_details : None ,
1177
1190
force_3ds_challenge : None ,
1178
1191
is_iframe_redirection_enabled : None ,
1192
+ extended_return_url : None ,
1179
1193
} ,
1180
1194
PaymentIntentUpdate :: RejectUpdate {
1181
1195
status,
@@ -1220,6 +1234,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1220
1234
tax_details : None ,
1221
1235
force_3ds_challenge : None ,
1222
1236
is_iframe_redirection_enabled : None ,
1237
+ extended_return_url : None ,
1223
1238
} ,
1224
1239
PaymentIntentUpdate :: SurchargeApplicableUpdate {
1225
1240
surcharge_applicable,
@@ -1263,6 +1278,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1263
1278
tax_details : None ,
1264
1279
force_3ds_challenge : None ,
1265
1280
is_iframe_redirection_enabled : None ,
1281
+ extended_return_url : None ,
1266
1282
} ,
1267
1283
PaymentIntentUpdate :: IncrementalAuthorizationAmountUpdate { amount } => Self {
1268
1284
amount : Some ( amount) ,
@@ -1303,6 +1319,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1303
1319
tax_details : None ,
1304
1320
force_3ds_challenge : None ,
1305
1321
is_iframe_redirection_enabled : None ,
1322
+ extended_return_url : None ,
1306
1323
} ,
1307
1324
PaymentIntentUpdate :: AuthorizationCountUpdate {
1308
1325
authorization_count,
@@ -1345,6 +1362,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1345
1362
tax_details : None ,
1346
1363
force_3ds_challenge : None ,
1347
1364
is_iframe_redirection_enabled : None ,
1365
+ extended_return_url : None ,
1348
1366
} ,
1349
1367
PaymentIntentUpdate :: CompleteAuthorizeUpdate {
1350
1368
shipping_address_id,
@@ -1387,6 +1405,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1387
1405
tax_details : None ,
1388
1406
force_3ds_challenge : None ,
1389
1407
is_iframe_redirection_enabled : None ,
1408
+ extended_return_url : None ,
1390
1409
} ,
1391
1410
PaymentIntentUpdate :: ManualUpdate { status, updated_by } => Self {
1392
1411
status,
@@ -1427,6 +1446,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1427
1446
tax_details : None ,
1428
1447
force_3ds_challenge : None ,
1429
1448
is_iframe_redirection_enabled : None ,
1449
+ extended_return_url : None ,
1430
1450
} ,
1431
1451
PaymentIntentUpdate :: SessionResponseUpdate {
1432
1452
tax_details,
@@ -1472,6 +1492,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1472
1492
is_payment_processor_token_flow : None ,
1473
1493
force_3ds_challenge : None ,
1474
1494
is_iframe_redirection_enabled : None ,
1495
+ extended_return_url : None ,
1475
1496
} ,
1476
1497
}
1477
1498
}
0 commit comments