Skip to content

Commit

Permalink
feat(api): add 'payment frequencies' and 'pay group ids' to payment m…
Browse files Browse the repository at this point in the history
…odel (#420)
  • Loading branch information
stainless-app[bot] committed Jul 29, 2024
1 parent 7fbcdb8 commit a4297af
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
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
20 changes: 20 additions & 0 deletions src/resources/hris/payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,26 @@ export interface Payment {

pay_date?: string | null;

/**
* List of pay frequencies associated with this payment.
*/
pay_frequencies?: Array<
| 'annually'
| 'semi_annually'
| 'quarterly'
| 'monthly'
| 'semi_monthly'
| 'bi_weekly'
| 'weekly'
| 'daily'
| 'other'
> | null;

/**
* Array of the Finch id (uuidv4) of every pay group associated with this payment.
*/
pay_group_ids?: Array<string> | null;

/**
* The pay period object.
*/
Expand Down
4 changes: 4 additions & 0 deletions src/resources/providers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,10 @@ export namespace Provider {

pay_date?: boolean;

pay_frequencies?: boolean;

pay_group_ids?: boolean;

pay_period?: Payment.PayPeriod;
}

Expand Down
4 changes: 4 additions & 0 deletions src/resources/webhooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,10 @@ export namespace AccountUpdateEvent {

pay_date?: boolean;

pay_frequencies?: boolean;

pay_group_ids?: boolean;

pay_period?: Payment.PayPeriod;
}

Expand Down

0 comments on commit a4297af

Please sign in to comment.