Skip to content

Commit f03a104

Browse files
committed
Issue #3 remove payment batch "details" length validation
1 parent 8d85509 commit f03a104

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

apis/accounting/src/Model/BatchPaymentDetails.php

+1-13
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ public function listInvalidProperties()
215215
{
216216
$invalidProperties = [];
217217

218-
if (! is_null($this->container['details']) && (mb_strlen($this->container['details']) > 18)) {
219-
$invalidProperties[] = sprintf(
220-
'invalid value for "%s", the character length must be smaller than or equal to %d.',
221-
'details',
222-
18
223-
);
224-
}
225-
226218
if (! is_null($this->container['code']) && (mb_strlen($this->container['code']) > 12)) {
227219
$invalidProperties[] = sprintf(
228220
'invalid value for "%s", the character length must be smaller than or equal to %d.',
@@ -315,16 +307,12 @@ public function getDetails()
315307
/**
316308
* Sets details
317309
*
318-
* @param string|null $details (Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero. Maximum field length = 18
310+
* @param string|null $details (Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero.
319311
*
320312
* @return $this
321313
*/
322314
public function setDetails($details)
323315
{
324-
if (! is_null($details) && (mb_strlen($details) > 18)) {
325-
throw new \InvalidArgumentException('invalid length for $details when calling BatchPaymentDetails., must be smaller than or equal to 18.');
326-
}
327-
328316
$this->container['details'] = $details;
329317

330318
return $this;

0 commit comments

Comments
 (0)