@@ -124,6 +124,12 @@ class TransactionOperation implements \JsonSerializable
124124 */
125125 protected $ errorCode ;
126126
127+ /**
128+ * Error message returned when attempting the operation, if any
129+ * @var string
130+ */
131+ protected $ errorMessage ;
132+
127133 /**
128134 * Additionnal context saved when processing the transaction on the specific PSP
129135 * @var dictionary
@@ -160,6 +166,12 @@ class TransactionOperation implements \JsonSerializable
160166 */
161167 protected $ schemeId ;
162168
169+ /**
170+ * Indicates whether the transaction was processed with a network token instead of raw card details
171+ * @var boolean
172+ */
173+ protected $ processedWithNetworkToken ;
174+
163175 /**
164176 * Payment type of the transaction
165177 * @var string
@@ -621,6 +633,28 @@ public function setErrorCode($value)
621633 return $ this ;
622634 }
623635
636+ /**
637+ * Get ErrorMessage
638+ * Error message returned when attempting the operation, if any
639+ * @return string
640+ */
641+ public function getErrorMessage ()
642+ {
643+ return $ this ->errorMessage ;
644+ }
645+
646+ /**
647+ * Set ErrorMessage
648+ * Error message returned when attempting the operation, if any
649+ * @param string $value
650+ * @return $this
651+ */
652+ public function setErrorMessage ($ value )
653+ {
654+ $ this ->errorMessage = $ value ;
655+ return $ this ;
656+ }
657+
624658 /**
625659 * Get GatewayData
626660 * Additionnal context saved when processing the transaction on the specific PSP
@@ -774,6 +808,28 @@ public function setSchemeId($value)
774808 return $ this ;
775809 }
776810
811+ /**
812+ * Get ProcessedWithNetworkToken
813+ * Indicates whether the transaction was processed with a network token instead of raw card details
814+ * @return bool
815+ */
816+ public function getProcessedWithNetworkToken ()
817+ {
818+ return $ this ->processedWithNetworkToken ;
819+ }
820+
821+ /**
822+ * Set ProcessedWithNetworkToken
823+ * Indicates whether the transaction was processed with a network token instead of raw card details
824+ * @param bool $value
825+ * @return $this
826+ */
827+ public function setProcessedWithNetworkToken ($ value )
828+ {
829+ $ this ->processedWithNetworkToken = $ value ;
830+ return $ this ;
831+ }
832+
777833 /**
778834 * Get PaymentType
779835 * Payment type of the transaction
@@ -924,6 +980,9 @@ public function fillWithData($data)
924980 if (! empty ($ data ['error_code ' ]))
925981 $ this ->setErrorCode ($ data ['error_code ' ]);
926982
983+ if (! empty ($ data ['error_message ' ]))
984+ $ this ->setErrorMessage ($ data ['error_message ' ]);
985+
927986 if (! empty ($ data ['gateway_data ' ]))
928987 $ this ->setGatewayData ($ data ['gateway_data ' ]);
929988
@@ -942,6 +1001,9 @@ public function fillWithData($data)
9421001 if (! empty ($ data ['scheme_id ' ]))
9431002 $ this ->setSchemeId ($ data ['scheme_id ' ]);
9441003
1004+ if (! empty ($ data ['processed_with_network_token ' ]))
1005+ $ this ->setProcessedWithNetworkToken ($ data ['processed_with_network_token ' ]);
1006+
9451007 if (! empty ($ data ['payment_type ' ]))
9461008 $ this ->setPaymentType ($ data ['payment_type ' ]);
9471009
@@ -981,12 +1043,14 @@ public function jsonSerialize() {
9811043 "gateway_operation_id " => $ this ->getGatewayOperationId (),
9821044 "arn " => $ this ->getArn (),
9831045 "error_code " => $ this ->getErrorCode (),
1046+ "error_message " => $ this ->getErrorMessage (),
9841047 "gateway_data " => $ this ->getGatewayData (),
9851048 "payment_data_three_d_s_request " => $ this ->getPaymentDataThreeDSRequest (),
9861049 "payment_data_three_d_s_authentication " => $ this ->getPaymentDataThreeDSAuthentication (),
9871050 "payment_data_network_authentication " => $ this ->getPaymentDataNetworkAuthentication (),
9881051 "initial_scheme_transaction_id " => $ this ->getInitialSchemeTransactionId (),
9891052 "scheme_id " => $ this ->getSchemeId (),
1053+ "processed_with_network_token " => $ this ->getProcessedWithNetworkToken (),
9901054 "payment_type " => $ this ->getPaymentType (),
9911055 "metadata " => $ this ->getMetadata (),
9921056 "gateway_fee " => $ this ->getGatewayFee (),
0 commit comments