|
5 | 5 |
|
6 | 6 | No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 |
7 | 7 |
|
8 | | - OpenAPI spec version: 2.7.0 |
9 | 8 | |
10 | 9 | Generated by: https://openapi-generator.tech |
11 | 10 | """ |
@@ -303,12 +302,14 @@ def status(self, status): |
303 | 302 | :type: str |
304 | 303 | """ |
305 | 304 | allowed_values = ["ACTIVE", "ARCHIVED", "DELETED", "None"] # noqa: E501 |
306 | | - if status not in allowed_values: |
307 | | - raise ValueError( |
308 | | - "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 |
309 | | - status, allowed_values |
| 305 | + |
| 306 | + if status: |
| 307 | + if status not in allowed_values: |
| 308 | + raise ValueError( |
| 309 | + "Invalid value for `status` ({0}), must be one of {1}".format( # noqa: E501 |
| 310 | + status, allowed_values |
| 311 | + ) |
310 | 312 | ) |
311 | | - ) |
312 | 313 |
|
313 | 314 | self._status = status |
314 | 315 |
|
@@ -363,12 +364,14 @@ def bank_account_type(self, bank_account_type): |
363 | 364 | "", |
364 | 365 | "None", |
365 | 366 | ] # noqa: E501 |
366 | | - if bank_account_type not in allowed_values: |
367 | | - raise ValueError( |
368 | | - "Invalid value for `bank_account_type` ({0}), must be one of {1}".format( # noqa: E501 |
369 | | - bank_account_type, allowed_values |
| 367 | + |
| 368 | + if bank_account_type: |
| 369 | + if bank_account_type not in allowed_values: |
| 370 | + raise ValueError( |
| 371 | + "Invalid value for `bank_account_type` ({0}), must be one of {1}".format( # noqa: E501 |
| 372 | + bank_account_type, allowed_values |
| 373 | + ) |
370 | 374 | ) |
371 | | - ) |
372 | 375 |
|
373 | 376 | self._bank_account_type = bank_account_type |
374 | 377 |
|
@@ -490,12 +493,14 @@ def _class(self, _class): |
490 | 493 | "REVENUE", |
491 | 494 | "None", |
492 | 495 | ] # noqa: E501 |
493 | | - if _class not in allowed_values: |
494 | | - raise ValueError( |
495 | | - "Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501 |
496 | | - _class, allowed_values |
| 496 | + |
| 497 | + if _class: |
| 498 | + if _class not in allowed_values: |
| 499 | + raise ValueError( |
| 500 | + "Invalid value for `_class` ({0}), must be one of {1}".format( # noqa: E501 |
| 501 | + _class, allowed_values |
| 502 | + ) |
497 | 503 | ) |
498 | | - ) |
499 | 504 |
|
500 | 505 | self.__class = _class |
501 | 506 |
|
@@ -543,12 +548,14 @@ def system_account(self, system_account): |
543 | 548 | "", |
544 | 549 | "None", |
545 | 550 | ] # noqa: E501 |
546 | | - if system_account not in allowed_values: |
547 | | - raise ValueError( |
548 | | - "Invalid value for `system_account` ({0}), must be one of {1}".format( # noqa: E501 |
549 | | - system_account, allowed_values |
| 551 | + |
| 552 | + if system_account: |
| 553 | + if system_account not in allowed_values: |
| 554 | + raise ValueError( |
| 555 | + "Invalid value for `system_account` ({0}), must be one of {1}".format( # noqa: E501 |
| 556 | + system_account, allowed_values |
| 557 | + ) |
550 | 558 | ) |
551 | | - ) |
552 | 559 |
|
553 | 560 | self._system_account = system_account |
554 | 561 |
|
|
0 commit comments