Skip to content

Commit 7cfaae7

Browse files
feat(api): add physical_check_book event category
Adds support for the new `physical_check_book` event category. - Adds `physical_check_book.created` and `physical_check_book.updated` members to the event category enums (event objects, webhook unwrapping, the event list `category` filter, and event subscription selected categories). Spec: `ea35154a418c5a3cabaedc30f766fcac`.
1 parent 8a92728 commit 7cfaae7

8 files changed

Lines changed: 29 additions & 3 deletions

File tree

‎.stats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 239
2-
openapi_spec_hash: 202e0c39463e4ad1b25a72b0da68a6ce
2+
openapi_spec_hash: ea35154a418c5a3cabaedc30f766fcac
33
config_hash: 1ca082e374ef7000e2a5971e8da740e0

‎scripts/mock‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎src/increase/types/event.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ class Event(BaseModel):
118118
"physical_card_profile.updated",
119119
"physical_check.created",
120120
"physical_check.updated",
121+
"physical_check_book.created",
122+
"physical_check_book.updated",
121123
"program.created",
122124
"program.updated",
123125
"proof_of_authorization_request.created",
@@ -283,6 +285,10 @@ class Event(BaseModel):
283285
updated.
284286
- `physical_check.created` - Occurs whenever a Physical Check is created.
285287
- `physical_check.updated` - Occurs whenever a Physical Check is updated.
288+
- `physical_check_book.created` - Occurs whenever a Physical Check Book is
289+
created.
290+
- `physical_check_book.updated` - Occurs whenever a Physical Check Book is
291+
updated.
286292
- `program.created` - Occurs whenever a Program is created.
287293
- `program.updated` - Occurs whenever a Program is updated.
288294
- `proof_of_authorization_request.created` - Occurs whenever a Proof of

‎src/increase/types/event_list_params.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ class EventListParams(TypedDict, total=False):
130130
"physical_card_profile.updated",
131131
"physical_check.created",
132132
"physical_check.updated",
133+
"physical_check_book.created",
134+
"physical_check_book.updated",
133135
"program.created",
134136
"program.updated",
135137
"proof_of_authorization_request.created",

‎src/increase/types/event_subscription.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ class SelectedEventCategory(BaseModel):
108108
"physical_card_profile.updated",
109109
"physical_check.created",
110110
"physical_check.updated",
111+
"physical_check_book.created",
112+
"physical_check_book.updated",
111113
"program.created",
112114
"program.updated",
113115
"proof_of_authorization_request.created",
@@ -271,6 +273,10 @@ class SelectedEventCategory(BaseModel):
271273
updated.
272274
- `physical_check.created` - Occurs whenever a Physical Check is created.
273275
- `physical_check.updated` - Occurs whenever a Physical Check is updated.
276+
- `physical_check_book.created` - Occurs whenever a Physical Check Book is
277+
created.
278+
- `physical_check_book.updated` - Occurs whenever a Physical Check Book is
279+
updated.
274280
- `program.created` - Occurs whenever a Program is created.
275281
- `program.updated` - Occurs whenever a Program is updated.
276282
- `proof_of_authorization_request.created` - Occurs whenever a Proof of

‎src/increase/types/event_subscription_create_params.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ class SelectedEventCategory(TypedDict, total=False):
137137
"physical_card_profile.updated",
138138
"physical_check.created",
139139
"physical_check.updated",
140+
"physical_check_book.created",
141+
"physical_check_book.updated",
140142
"program.created",
141143
"program.updated",
142144
"proof_of_authorization_request.created",
@@ -300,6 +302,10 @@ class SelectedEventCategory(TypedDict, total=False):
300302
updated.
301303
- `physical_check.created` - Occurs whenever a Physical Check is created.
302304
- `physical_check.updated` - Occurs whenever a Physical Check is updated.
305+
- `physical_check_book.created` - Occurs whenever a Physical Check Book is
306+
created.
307+
- `physical_check_book.updated` - Occurs whenever a Physical Check Book is
308+
updated.
303309
- `program.created` - Occurs whenever a Program is created.
304310
- `program.updated` - Occurs whenever a Program is updated.
305311
- `proof_of_authorization_request.created` - Occurs whenever a Proof of

‎src/increase/types/unwrap_webhook_event.py‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,8 @@ class UnwrapWebhookEvent(BaseModel):
118118
"physical_card_profile.updated",
119119
"physical_check.created",
120120
"physical_check.updated",
121+
"physical_check_book.created",
122+
"physical_check_book.updated",
121123
"program.created",
122124
"program.updated",
123125
"proof_of_authorization_request.created",
@@ -283,6 +285,10 @@ class UnwrapWebhookEvent(BaseModel):
283285
updated.
284286
- `physical_check.created` - Occurs whenever a Physical Check is created.
285287
- `physical_check.updated` - Occurs whenever a Physical Check is updated.
288+
- `physical_check_book.created` - Occurs whenever a Physical Check Book is
289+
created.
290+
- `physical_check_book.updated` - Occurs whenever a Physical Check Book is
291+
updated.
286292
- `program.created` - Occurs whenever a Program is created.
287293
- `program.updated` - Occurs whenever a Program is updated.
288294
- `proof_of_authorization_request.created` - Occurs whenever a Proof of

‎uv.lock‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)