Skip to content

Commit 67e0b63

Browse files
committed
Updated Auto Generated Code
1 parent f70ec13 commit 67e0b63

File tree

2 files changed

+12
-27
lines changed

2 files changed

+12
-27
lines changed

src/Requests/InvoiceCreditNoteRequest.php

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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
}

swagger.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2804,9 +2804,9 @@ definitions:
28042804
- $ref: "#/definitions/Entity"
28052805
- properties:
28062806
invoiceFid:
2807-
$ref: '#/definitions/Fid'
2807+
type: string
28082808
chargeRequestFid:
2809-
$ref: '#/definitions/Fid'
2809+
type: string
28102810
creditDate:
28112811
$ref: '#/definitions/isoTime'
28122812
amount:

0 commit comments

Comments
 (0)