Skip to content

feat(api): add 'payment frequencies' and 'pay group ids' to payment model #452

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 37
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-15385b754979d87bd7e583f618870246e79d1430a761e5bcd653db78cfab4789.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-60f88b9ae0cedc03dd888b63ca8dec25658c87e6cc3493170114144ca9e070c9.yml
4 changes: 4 additions & 0 deletions src/finch/types/account_update_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,6 +386,10 @@ class AccountUpdateEventDataAuthenticationMethodSupportedFieldsPayment(BaseModel

pay_date: Optional[bool] = None

pay_frequencies: Optional[bool] = None

pay_group_ids: Optional[bool] = None

pay_period: Optional[AccountUpdateEventDataAuthenticationMethodSupportedFieldsPaymentPayPeriod] = None


Expand Down
21 changes: 21 additions & 0 deletions src/finch/types/hris/payment.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional
from typing_extensions import Literal

from ..money import Money
from ..._models import BaseModel
Expand Down Expand Up @@ -35,5 +36,25 @@ class Payment(BaseModel):

pay_date: Optional[str] = None

pay_frequencies: Optional[
List[
Literal[
"annually",
"semi_annually",
"quarterly",
"monthly",
"semi_monthly",
"bi_weekly",
"weekly",
"daily",
"other",
]
]
] = None
"""List of pay frequencies associated with this payment."""

pay_group_ids: Optional[List[str]] = None
"""Array of the Finch id (uuidv4) of every pay group associated with this payment."""

pay_period: Optional[PayPeriod] = None
"""The pay period object."""
4 changes: 4 additions & 0 deletions src/finch/types/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,10 @@ class AuthenticationMethodSupportedFieldsPayment(BaseModel):

pay_date: Optional[bool] = None

pay_frequencies: Optional[bool] = None

pay_group_ids: Optional[bool] = None

pay_period: Optional[AuthenticationMethodSupportedFieldsPaymentPayPeriod] = None


Expand Down