@@ -25,22 +25,26 @@ public function jsonSerialize()
2525
2626 /**
2727 * @param mixed $default
28+ * @param bool $trim Trim Value
2829 *
29- * @return FidRequest
30+ * @return string
3031 */
31- public function getInvoiceFid ($ default = null )
32+ public function getInvoiceFid ($ default = null , $ trim = true )
3233 {
33- return Objects::property ($ this ->_getResultJson (), 'invoiceFid ' , $ default );
34+ $ value = Objects::property ($ this ->_getResultJson (), 'invoiceFid ' , $ default );
35+ return $ trim ? Strings::ntrim ($ value ) : $ value ;
3436 }
3537
3638 /**
3739 * @param mixed $default
40+ * @param bool $trim Trim Value
3841 *
39- * @return FidRequest
42+ * @return string
4043 */
41- public function getChargeRequestFid ($ default = null )
44+ public function getChargeRequestFid ($ default = null , $ trim = true )
4245 {
43- return Objects::property ($ this ->_getResultJson (), 'chargeRequestFid ' , $ default );
46+ $ value = Objects::property ($ this ->_getResultJson (), 'chargeRequestFid ' , $ default );
47+ return $ trim ? Strings::ntrim ($ value ) : $ value ;
4448 }
4549
4650 /**
@@ -78,23 +82,4 @@ public function getCurrency($default = null, $trim = true)
7882 $ value = Objects::property ($ this ->_getResultJson (), 'currency ' , $ default );
7983 return $ trim ? Strings::ntrim ($ value ) : $ value ;
8084 }
81-
82- protected function _prepareResult ($ result )
83- {
84- $ return = parent ::_prepareResult ($ result );
85-
86- if (!empty ($ return ->invoiceFid ))
87- {
88- $ return ->invoiceFid = (new FidRequest ())
89- ->hydrate ($ return ->invoiceFid );
90- }
91-
92- if (!empty ($ return ->chargeRequestFid ))
93- {
94- $ return ->chargeRequestFid = (new FidRequest ())
95- ->hydrate ($ return ->chargeRequestFid );
96- }
97-
98- return $ return ;
99- }
10085}
0 commit comments