File tree Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Expand file tree Collapse file tree 2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ public static function assertOrderPayment(InfoInterface $paymentInfo)
33
33
public static function assertQuotePayment (InfoInterface $ paymentInfo )
34
34
{
35
35
if (!$ paymentInfo instanceof \Magento \Quote \Model \Quote \Payment) {
36
- throw new \LogicException ('Order payment should be provided. ' );
36
+ throw new \LogicException ('Quote payment should be provided. ' );
37
37
}
38
38
}
39
39
}
Original file line number Diff line number Diff line change @@ -2785,5 +2785,28 @@ public function getIsFraudDetected()
2785
2785
return (bool )$ this ->getData ('is_fraud_detected ' );
2786
2786
}
2787
2787
2788
+ /**
2789
+ * Sets whether should close parent transaction
2790
+ *
2791
+ * @param int|bool $flag
2792
+ * @return $this
2793
+ */
2794
+ public function setShouldCloseParentTransaction ($ flag )
2795
+ {
2796
+ $ this ->setData ('should_close_parent_transaction ' , (bool )$ flag );
2797
+ return $ this ;
2798
+ }
2799
+
2800
+ /**
2801
+ * Whether should close parent transaction
2802
+ *
2803
+ * @return bool
2804
+ * @SuppressWarnings(PHPMD.BooleanGetMethodName)
2805
+ */
2806
+ public function getShouldCloseParentTransaction ()
2807
+ {
2808
+ return (bool )$ this ->getData ('should_close_parent_transaction ' );
2809
+ }
2810
+
2788
2811
//@codeCoverageIgnoreEnd
2789
2812
}
You can’t perform that action at this time.
0 commit comments