@@ -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 ) ]
@@ -423,6 +424,7 @@ pub struct PaymentIntentNew {
423
424
pub processor_merchant_id : Option < common_utils:: id_type:: MerchantId > ,
424
425
pub created_by : Option < String > ,
425
426
pub is_iframe_redirection_enabled : Option < bool > ,
427
+ pub extended_return_url : Option < String > ,
426
428
}
427
429
428
430
#[ cfg( feature = "v2" ) ]
@@ -671,6 +673,7 @@ pub struct PaymentIntentUpdateInternal {
671
673
pub tax_details : Option < TaxDetails > ,
672
674
pub force_3ds_challenge : Option < bool > ,
673
675
pub is_iframe_redirection_enabled : Option < bool > ,
676
+ pub extended_return_url : Option < String > ,
674
677
}
675
678
676
679
#[ cfg( feature = "v1" ) ]
@@ -715,6 +718,7 @@ impl PaymentIntentUpdate {
715
718
tax_details,
716
719
force_3ds_challenge,
717
720
is_iframe_redirection_enabled,
721
+ extended_return_url,
718
722
} = self . into ( ) ;
719
723
PaymentIntent {
720
724
amount : amount. unwrap_or ( source. amount ) ,
@@ -763,6 +767,7 @@ impl PaymentIntentUpdate {
763
767
force_3ds_challenge : force_3ds_challenge. or ( source. force_3ds_challenge ) ,
764
768
is_iframe_redirection_enabled : is_iframe_redirection_enabled
765
769
. or ( source. is_iframe_redirection_enabled ) ,
770
+ extended_return_url : extended_return_url. or ( source. extended_return_url ) ,
766
771
..source
767
772
}
768
773
}
@@ -814,6 +819,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
814
819
tax_details : None ,
815
820
force_3ds_challenge : None ,
816
821
is_iframe_redirection_enabled : None ,
822
+ extended_return_url : None ,
817
823
} ,
818
824
PaymentIntentUpdate :: Update ( value) => Self {
819
825
amount : Some ( value. amount ) ,
@@ -823,7 +829,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
823
829
customer_id : value. customer_id ,
824
830
shipping_address_id : value. shipping_address_id ,
825
831
billing_address_id : value. billing_address_id ,
826
- return_url : value . return_url ,
832
+ return_url : None , // deprecated
827
833
business_country : value. business_country ,
828
834
business_label : value. business_label ,
829
835
description : value. description ,
@@ -855,6 +861,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
855
861
tax_details : None ,
856
862
force_3ds_challenge : value. force_3ds_challenge ,
857
863
is_iframe_redirection_enabled : value. is_iframe_redirection_enabled ,
864
+ extended_return_url : value. return_url ,
858
865
} ,
859
866
PaymentIntentUpdate :: PaymentCreateUpdate {
860
867
return_url,
@@ -865,7 +872,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
865
872
customer_details,
866
873
updated_by,
867
874
} => Self {
868
- return_url,
875
+ return_url : None , // deprecated
869
876
status,
870
877
customer_id,
871
878
shipping_address_id,
@@ -903,6 +910,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
903
910
tax_details : None ,
904
911
force_3ds_challenge : None ,
905
912
is_iframe_redirection_enabled : None ,
913
+ extended_return_url : return_url,
906
914
} ,
907
915
PaymentIntentUpdate :: PGStatusUpdate {
908
916
status,
@@ -947,6 +955,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
947
955
tax_details : None ,
948
956
force_3ds_challenge : None ,
949
957
is_iframe_redirection_enabled : None ,
958
+ extended_return_url : None ,
950
959
} ,
951
960
PaymentIntentUpdate :: MerchantStatusUpdate {
952
961
status,
@@ -992,6 +1001,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
992
1001
tax_details : None ,
993
1002
force_3ds_challenge : None ,
994
1003
is_iframe_redirection_enabled : None ,
1004
+ extended_return_url : None ,
995
1005
} ,
996
1006
PaymentIntentUpdate :: ResponseUpdate {
997
1007
// amount,
@@ -1044,6 +1054,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1044
1054
tax_details : None ,
1045
1055
force_3ds_challenge : None ,
1046
1056
is_iframe_redirection_enabled : None ,
1057
+ extended_return_url : None ,
1047
1058
} ,
1048
1059
PaymentIntentUpdate :: PaymentAttemptAndAttemptCountUpdate {
1049
1060
active_attempt_id,
@@ -1088,6 +1099,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1088
1099
tax_details : None ,
1089
1100
force_3ds_challenge : None ,
1090
1101
is_iframe_redirection_enabled : None ,
1102
+ extended_return_url : None ,
1091
1103
} ,
1092
1104
PaymentIntentUpdate :: StatusAndAttemptUpdate {
1093
1105
status,
@@ -1133,6 +1145,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1133
1145
tax_details : None ,
1134
1146
force_3ds_challenge : None ,
1135
1147
is_iframe_redirection_enabled : None ,
1148
+ extended_return_url : None ,
1136
1149
} ,
1137
1150
PaymentIntentUpdate :: ApproveUpdate {
1138
1151
status,
@@ -1177,6 +1190,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1177
1190
tax_details : None ,
1178
1191
force_3ds_challenge : None ,
1179
1192
is_iframe_redirection_enabled : None ,
1193
+ extended_return_url : None ,
1180
1194
} ,
1181
1195
PaymentIntentUpdate :: RejectUpdate {
1182
1196
status,
@@ -1221,6 +1235,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1221
1235
tax_details : None ,
1222
1236
force_3ds_challenge : None ,
1223
1237
is_iframe_redirection_enabled : None ,
1238
+ extended_return_url : None ,
1224
1239
} ,
1225
1240
PaymentIntentUpdate :: SurchargeApplicableUpdate {
1226
1241
surcharge_applicable,
@@ -1264,6 +1279,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1264
1279
tax_details : None ,
1265
1280
force_3ds_challenge : None ,
1266
1281
is_iframe_redirection_enabled : None ,
1282
+ extended_return_url : None ,
1267
1283
} ,
1268
1284
PaymentIntentUpdate :: IncrementalAuthorizationAmountUpdate { amount } => Self {
1269
1285
amount : Some ( amount) ,
@@ -1304,6 +1320,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1304
1320
tax_details : None ,
1305
1321
force_3ds_challenge : None ,
1306
1322
is_iframe_redirection_enabled : None ,
1323
+ extended_return_url : None ,
1307
1324
} ,
1308
1325
PaymentIntentUpdate :: AuthorizationCountUpdate {
1309
1326
authorization_count,
@@ -1346,6 +1363,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1346
1363
tax_details : None ,
1347
1364
force_3ds_challenge : None ,
1348
1365
is_iframe_redirection_enabled : None ,
1366
+ extended_return_url : None ,
1349
1367
} ,
1350
1368
PaymentIntentUpdate :: CompleteAuthorizeUpdate {
1351
1369
shipping_address_id,
@@ -1388,6 +1406,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1388
1406
tax_details : None ,
1389
1407
force_3ds_challenge : None ,
1390
1408
is_iframe_redirection_enabled : None ,
1409
+ extended_return_url : None ,
1391
1410
} ,
1392
1411
PaymentIntentUpdate :: ManualUpdate { status, updated_by } => Self {
1393
1412
status,
@@ -1428,6 +1447,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1428
1447
tax_details : None ,
1429
1448
force_3ds_challenge : None ,
1430
1449
is_iframe_redirection_enabled : None ,
1450
+ extended_return_url : None ,
1431
1451
} ,
1432
1452
PaymentIntentUpdate :: SessionResponseUpdate {
1433
1453
tax_details,
@@ -1473,6 +1493,7 @@ impl From<PaymentIntentUpdate> for PaymentIntentUpdateInternal {
1473
1493
is_payment_processor_token_flow : None ,
1474
1494
force_3ds_challenge : None ,
1475
1495
is_iframe_redirection_enabled : None ,
1496
+ extended_return_url : None ,
1476
1497
} ,
1477
1498
}
1478
1499
}
0 commit comments