Skip to content

Commit e1bd2c5

Browse files
committed
Add various nullable types to the API schema
1 parent 2236cac commit e1bd2c5

8 files changed

Lines changed: 10 additions & 10 deletions

plaid/model/credit_bank_income_historical_summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def openapi_types():
7575
"""
7676
lazy_import()
7777
return {
78-
'total_amount': (float,), # noqa: E501
78+
'total_amount': (float, none_type), # noqa: E501
7979
'iso_currency_code': (str, none_type,), # noqa: E501
8080
'unofficial_currency_code': (str, none_type,), # noqa: E501
8181
'start_date': (date,), # noqa: E501

plaid/model/credit_bank_income_source.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def openapi_types():
8686
'start_date': (date,), # noqa: E501
8787
'end_date': (date,), # noqa: E501
8888
'pay_frequency': (CreditBankIncomePayFrequency,), # noqa: E501
89-
'total_amount': (float,), # noqa: E501
89+
'total_amount': (float, none_type), # noqa: E501
9090
'transaction_count': (int,), # noqa: E501
9191
'historical_summary': ([CreditBankIncomeHistoricalSummary],), # noqa: E501
9292
}

plaid/model/credit_bank_income_summary.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def openapi_types():
7575
"""
7676
lazy_import()
7777
return {
78-
'total_amount': (float,), # noqa: E501
78+
'total_amount': (float, none_type), # noqa: E501
7979
'iso_currency_code': (str, none_type,), # noqa: E501
8080
'unofficial_currency_code': (str, none_type,), # noqa: E501
8181
'start_date': (date,), # noqa: E501

plaid/model/credit_pay_stub_deductions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def openapi_types():
8484
"""
8585
lazy_import()
8686
return {
87-
'breakdown': ([PayStubDeductionsBreakdown],), # noqa: E501
87+
'breakdown': ([PayStubDeductionsBreakdown], none_type), # noqa: E501
8888
'total': (PayStubDeductionsTotal,), # noqa: E501
8989
}
9090

plaid/model/owner.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ def openapi_types():
8787
lazy_import()
8888
return {
8989
'names': ([str],), # noqa: E501
90-
'phone_numbers': ([PhoneNumber],), # noqa: E501
91-
'emails': ([Email],), # noqa: E501
90+
'phone_numbers': ([PhoneNumber], none_type), # noqa: E501
91+
'emails': ([Email], none_type), # noqa: E501
9292
'addresses': ([Address],), # noqa: E501
9393
}
9494

plaid/model/pay_period_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def openapi_types():
9292
lazy_import()
9393
return {
9494
'check_amount': (float, none_type,), # noqa: E501
95-
'distribution_breakdown': ([DistributionBreakdown],), # noqa: E501
95+
'distribution_breakdown': ([DistributionBreakdown], none_type), # noqa: E501
9696
'end_date': (date, none_type,), # noqa: E501
9797
'gross_earnings': (float, none_type,), # noqa: E501
9898
'pay_date': (date, none_type,), # noqa: E501

plaid/model/pay_stub_pay_period_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def openapi_types():
8383
lazy_import()
8484
return {
8585
'pay_amount': (float, none_type,), # noqa: E501
86-
'distribution_breakdown': ([PayStubDistributionBreakdown],), # noqa: E501
86+
'distribution_breakdown': ([PayStubDistributionBreakdown],none_type), # noqa: E501
8787
'end_date': (date, none_type,), # noqa: E501
8888
'gross_earnings': (float, none_type,), # noqa: E501
8989
'iso_currency_code': (str, none_type,), # noqa: E501

plaid/model/payroll_income_object.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def openapi_types():
8888
return {
8989
'account_id': (str, none_type,), # noqa: E501
9090
'pay_stubs': ([CreditPayStub],), # noqa: E501
91-
'w2s': ([CreditW2],), # noqa: E501
92-
'form1099s': ([Credit1099],), # noqa: E501
91+
'w2s': ([CreditW2], none_type), # noqa: E501
92+
'form1099s': ([Credit1099], none_type), # noqa: E501
9393
}
9494

9595
@cached_property

0 commit comments

Comments
 (0)