Skip to content

Commit 8138a65

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): add 'payment frequencies' and 'pay group ids' to payment model (#452)
1 parent fab464f commit 8138a65

File tree

4 files changed

+30
-1
lines changed

4 files changed

+30
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 37
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-15385b754979d87bd7e583f618870246e79d1430a761e5bcd653db78cfab4789.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/finch-60f88b9ae0cedc03dd888b63ca8dec25658c87e6cc3493170114144ca9e070c9.yml

src/finch/types/account_update_event.py

+4
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,10 @@ class AccountUpdateEventDataAuthenticationMethodSupportedFieldsPayment(BaseModel
386386

387387
pay_date: Optional[bool] = None
388388

389+
pay_frequencies: Optional[bool] = None
390+
391+
pay_group_ids: Optional[bool] = None
392+
389393
pay_period: Optional[AccountUpdateEventDataAuthenticationMethodSupportedFieldsPaymentPayPeriod] = None
390394

391395

src/finch/types/hris/payment.py

+21
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4+
from typing_extensions import Literal
45

56
from ..money import Money
67
from ..._models import BaseModel
@@ -35,5 +36,25 @@ class Payment(BaseModel):
3536

3637
pay_date: Optional[str] = None
3738

39+
pay_frequencies: Optional[
40+
List[
41+
Literal[
42+
"annually",
43+
"semi_annually",
44+
"quarterly",
45+
"monthly",
46+
"semi_monthly",
47+
"bi_weekly",
48+
"weekly",
49+
"daily",
50+
"other",
51+
]
52+
]
53+
] = None
54+
"""List of pay frequencies associated with this payment."""
55+
56+
pay_group_ids: Optional[List[str]] = None
57+
"""Array of the Finch id (uuidv4) of every pay group associated with this payment."""
58+
3859
pay_period: Optional[PayPeriod] = None
3960
"""The pay period object."""

src/finch/types/provider.py

+4
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ class AuthenticationMethodSupportedFieldsPayment(BaseModel):
375375

376376
pay_date: Optional[bool] = None
377377

378+
pay_frequencies: Optional[bool] = None
379+
380+
pay_group_ids: Optional[bool] = None
381+
378382
pay_period: Optional[AuthenticationMethodSupportedFieldsPaymentPayPeriod] = None
379383

380384

0 commit comments

Comments
 (0)