Skip to content

Commit 08ae64b

Browse files
feat(api): api update (#1648)
Co-authored-by: increase-releases[bot] <285999079+increase-releases[bot]@users.noreply.github.com>
1 parent 657f7b4 commit 08ae64b

16 files changed

Lines changed: 196 additions & 21 deletions

‎.stats.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
configured_endpoints: 255
2-
openapi_spec_hash: 4458c613643910026be17923a699563f
2+
openapi_spec_hash: de4578cd6e5125791bb32e1a25c9c5ac
33
config_hash: de151ebd21a0bd391662389b310a8f49

‎scripts/mock‎

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

‎src/increase/resources/ach_transfers.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ def create(
120120
`PAYROLL`, and reversals must use `REVERSAL`.
121121
122122
company_name: The name by which the recipient knows you, sent in the company batch header. We
123-
recommend setting this on every transfer; if you do not, we fall back to the ACH
124-
company name configured on your account.
123+
recommend setting this on every transfer; if you do not, we fall back to the
124+
`statement_descriptor`.
125125
126126
destination_account_holder: The type of entity that owns the receiver's account.
127127
@@ -502,8 +502,8 @@ async def create(
502502
`PAYROLL`, and reversals must use `REVERSAL`.
503503
504504
company_name: The name by which the recipient knows you, sent in the company batch header. We
505-
recommend setting this on every transfer; if you do not, we fall back to the ACH
506-
company name configured on your account.
505+
recommend setting this on every transfer; if you do not, we fall back to the
506+
`statement_descriptor`.
507507
508508
destination_account_holder: The type of entity that owns the receiver's account.
509509

‎src/increase/resources/digital_card_profiles.py‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def create(
5353
background_image_file_id: str,
5454
card_description: str,
5555
description: str,
56+
apple_pay: digital_card_profile_create_params.ApplePay | Omit = omit,
5657
contact_email: str | Omit = omit,
5758
contact_name: str | Omit = omit,
5859
contact_phone: str | Omit = omit,
@@ -78,6 +79,8 @@ def create(
7879
7980
description: A description you can use to identify the Card Profile.
8081
82+
apple_pay: Apple Pay specific settings for the Card Profile.
83+
8184
contact_email: An email address the user can contact to receive support for their card.
8285
8386
contact_name: The name of your company or card program, shown to the user as who to contact
@@ -107,6 +110,7 @@ def create(
107110
"background_image_file_id": background_image_file_id,
108111
"card_description": card_description,
109112
"description": description,
113+
"apple_pay": apple_pay,
110114
"contact_email": contact_email,
111115
"contact_name": contact_name,
112116
"contact_phone": contact_phone,
@@ -275,6 +279,7 @@ def clone(
275279
digital_card_profile_id: str,
276280
*,
277281
app_icon_file_id: str | Omit = omit,
282+
apple_pay: digital_card_profile_clone_params.ApplePay | Omit = omit,
278283
background_image_file_id: str | Omit = omit,
279284
card_description: str | Omit = omit,
280285
contact_email: str | Omit = omit,
@@ -299,6 +304,9 @@ def clone(
299304
300305
app_icon_file_id: The identifier of the File containing the card's icon image.
301306
307+
apple_pay: Apple Pay specific settings for the Card Profile. Each list you leave out is
308+
copied from the original Card Profile.
309+
302310
background_image_file_id: The identifier of the File containing the card's front image.
303311
304312
card_description: A user-facing description for the card itself.
@@ -338,6 +346,7 @@ def clone(
338346
body=maybe_transform(
339347
{
340348
"app_icon_file_id": app_icon_file_id,
349+
"apple_pay": apple_pay,
341350
"background_image_file_id": background_image_file_id,
342351
"card_description": card_description,
343352
"contact_email": contact_email,
@@ -387,6 +396,7 @@ async def create(
387396
background_image_file_id: str,
388397
card_description: str,
389398
description: str,
399+
apple_pay: digital_card_profile_create_params.ApplePay | Omit = omit,
390400
contact_email: str | Omit = omit,
391401
contact_name: str | Omit = omit,
392402
contact_phone: str | Omit = omit,
@@ -412,6 +422,8 @@ async def create(
412422
413423
description: A description you can use to identify the Card Profile.
414424
425+
apple_pay: Apple Pay specific settings for the Card Profile.
426+
415427
contact_email: An email address the user can contact to receive support for their card.
416428
417429
contact_name: The name of your company or card program, shown to the user as who to contact
@@ -441,6 +453,7 @@ async def create(
441453
"background_image_file_id": background_image_file_id,
442454
"card_description": card_description,
443455
"description": description,
456+
"apple_pay": apple_pay,
444457
"contact_email": contact_email,
445458
"contact_name": contact_name,
446459
"contact_phone": contact_phone,
@@ -609,6 +622,7 @@ async def clone(
609622
digital_card_profile_id: str,
610623
*,
611624
app_icon_file_id: str | Omit = omit,
625+
apple_pay: digital_card_profile_clone_params.ApplePay | Omit = omit,
612626
background_image_file_id: str | Omit = omit,
613627
card_description: str | Omit = omit,
614628
contact_email: str | Omit = omit,
@@ -633,6 +647,9 @@ async def clone(
633647
634648
app_icon_file_id: The identifier of the File containing the card's icon image.
635649
650+
apple_pay: Apple Pay specific settings for the Card Profile. Each list you leave out is
651+
copied from the original Card Profile.
652+
636653
background_image_file_id: The identifier of the File containing the card's front image.
637654
638655
card_description: A user-facing description for the card itself.
@@ -672,6 +689,7 @@ async def clone(
672689
body=await async_maybe_transform(
673690
{
674691
"app_icon_file_id": app_icon_file_id,
692+
"apple_pay": apple_pay,
675693
"background_image_file_id": background_image_file_id,
676694
"card_description": card_description,
677695
"contact_email": contact_email,

‎src/increase/types/ach_transfer_create_params.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class ACHTransferCreateParams(TypedDict, total=False):
8686
"""The name by which the recipient knows you, sent in the company batch header.
8787
8888
We recommend setting this on every transfer; if you do not, we fall back to the
89-
ACH company name configured on your account.
89+
`statement_descriptor`.
9090
"""
9191

9292
destination_account_holder: Literal["business", "individual", "unknown"]

‎src/increase/types/digital_card_profile.py‎

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,46 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import TYPE_CHECKING, Dict, Optional
3+
from typing import TYPE_CHECKING, Dict, List, Optional
44
from datetime import datetime
55
from typing_extensions import Literal
66

77
from pydantic import Field as FieldInfo
88

99
from .._models import BaseModel
1010

11-
__all__ = ["DigitalCardProfile", "TextColor"]
11+
__all__ = [
12+
"DigitalCardProfile",
13+
"ApplePay",
14+
"ApplePayAssociatedApplicationIdentifier",
15+
"ApplePayAssociatedStoreIdentifier",
16+
"TextColor",
17+
]
18+
19+
20+
class ApplePayAssociatedApplicationIdentifier(BaseModel):
21+
identifier: str
22+
"""
23+
The application identifier, composed of your Apple Developer Team ID and the
24+
application's bundle identifier, like `ABCDE12345.com.example.app`.
25+
"""
26+
27+
28+
class ApplePayAssociatedStoreIdentifier(BaseModel):
29+
identifier: str
30+
"""The numeric App Store identifier."""
31+
32+
33+
class ApplePay(BaseModel):
34+
"""Apple Pay specific settings for the Card Profile."""
35+
36+
associated_application_identifiers: List[ApplePayAssociatedApplicationIdentifier]
37+
"""The applications associated with cards using this Card Profile."""
38+
39+
associated_store_identifiers: List[ApplePayAssociatedStoreIdentifier]
40+
"""
41+
The App Store listings of the applications associated with cards using this Card
42+
Profile.
43+
"""
1244

1345

1446
class TextColor(BaseModel):
@@ -35,6 +67,9 @@ class DigitalCardProfile(BaseModel):
3567
app_icon_file_id: str
3668
"""The identifier of the File containing the card's icon image."""
3769

70+
apple_pay: Optional[ApplePay] = None
71+
"""Apple Pay specific settings for the Card Profile."""
72+
3873
background_image_file_id: str
3974
"""The identifier of the File containing the card's front image."""
4075

‎src/increase/types/digital_card_profile_clone_params.py‎

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,28 @@
22

33
from __future__ import annotations
44

5+
from typing import Iterable
56
from typing_extensions import Required, TypedDict
67

7-
__all__ = ["DigitalCardProfileCloneParams", "TextColor"]
8+
__all__ = [
9+
"DigitalCardProfileCloneParams",
10+
"ApplePay",
11+
"ApplePayAssociatedApplicationIdentifier",
12+
"ApplePayAssociatedStoreIdentifier",
13+
"TextColor",
14+
]
815

916

1017
class DigitalCardProfileCloneParams(TypedDict, total=False):
1118
app_icon_file_id: str
1219
"""The identifier of the File containing the card's icon image."""
1320

21+
apple_pay: ApplePay
22+
"""Apple Pay specific settings for the Card Profile.
23+
24+
Each list you leave out is copied from the original Card Profile.
25+
"""
26+
1427
background_image_file_id: str
1528
"""The identifier of the File containing the card's front image."""
1629

@@ -39,6 +52,35 @@ class DigitalCardProfileCloneParams(TypedDict, total=False):
3952
"""The Card's text color, specified as an RGB triple. The default is white."""
4053

4154

55+
class ApplePayAssociatedApplicationIdentifier(TypedDict, total=False):
56+
identifier: Required[str]
57+
"""
58+
The application identifier, composed of your Apple Developer Team ID and the
59+
application's bundle identifier, like `ABCDE12345.com.example.app`.
60+
"""
61+
62+
63+
class ApplePayAssociatedStoreIdentifier(TypedDict, total=False):
64+
identifier: Required[str]
65+
"""The numeric App Store identifier."""
66+
67+
68+
class ApplePay(TypedDict, total=False):
69+
"""Apple Pay specific settings for the Card Profile.
70+
71+
Each list you leave out is copied from the original Card Profile.
72+
"""
73+
74+
associated_application_identifiers: Iterable[ApplePayAssociatedApplicationIdentifier]
75+
"""The applications to associate with cards using this Card Profile."""
76+
77+
associated_store_identifiers: Iterable[ApplePayAssociatedStoreIdentifier]
78+
"""
79+
The App Store listings of the applications to associate with cards using this
80+
Card Profile.
81+
"""
82+
83+
4284
class TextColor(TypedDict, total=False):
4385
"""The Card's text color, specified as an RGB triple. The default is white."""
4486

‎src/increase/types/digital_card_profile_create_params.py‎

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,16 @@
22

33
from __future__ import annotations
44

5+
from typing import Iterable
56
from typing_extensions import Required, TypedDict
67

7-
__all__ = ["DigitalCardProfileCreateParams", "TextColor"]
8+
__all__ = [
9+
"DigitalCardProfileCreateParams",
10+
"ApplePay",
11+
"ApplePayAssociatedApplicationIdentifier",
12+
"ApplePayAssociatedStoreIdentifier",
13+
"TextColor",
14+
]
815

916

1017
class DigitalCardProfileCreateParams(TypedDict, total=False):
@@ -20,6 +27,9 @@ class DigitalCardProfileCreateParams(TypedDict, total=False):
2027
description: Required[str]
2128
"""A description you can use to identify the Card Profile."""
2229

30+
apple_pay: ApplePay
31+
"""Apple Pay specific settings for the Card Profile."""
32+
2333
contact_email: str
2434
"""An email address the user can contact to receive support for their card."""
2535

@@ -39,6 +49,32 @@ class DigitalCardProfileCreateParams(TypedDict, total=False):
3949
"""The Card's text color, specified as an RGB triple. The default is white."""
4050

4151

52+
class ApplePayAssociatedApplicationIdentifier(TypedDict, total=False):
53+
identifier: Required[str]
54+
"""
55+
The application identifier, composed of your Apple Developer Team ID and the
56+
application's bundle identifier, like `ABCDE12345.com.example.app`.
57+
"""
58+
59+
60+
class ApplePayAssociatedStoreIdentifier(TypedDict, total=False):
61+
identifier: Required[str]
62+
"""The numeric App Store identifier."""
63+
64+
65+
class ApplePay(TypedDict, total=False):
66+
"""Apple Pay specific settings for the Card Profile."""
67+
68+
associated_application_identifiers: Iterable[ApplePayAssociatedApplicationIdentifier]
69+
"""The applications to associate with cards using this Card Profile."""
70+
71+
associated_store_identifiers: Iterable[ApplePayAssociatedStoreIdentifier]
72+
"""
73+
The App Store listings of the applications to associate with cards using this
74+
Card Profile.
75+
"""
76+
77+
4278
class TextColor(TypedDict, total=False):
4379
"""The Card's text color, specified as an RGB triple. The default is white."""
4480

‎src/increase/types/event.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ class Event(BaseModel):
105105
"loan_obligation.created",
106106
"loan_offer.created",
107107
"loan_offer.updated",
108-
"loan_purchase.created",
108+
"loan_purchase_offer.created",
109+
"loan_purchase_offer.updated",
109110
"lockbox.created",
110111
"lockbox.updated",
111112
"lockbox_address.created",
@@ -279,7 +280,10 @@ class Event(BaseModel):
279280
- `loan_obligation.created` - Occurs whenever a Loan Obligation is created.
280281
- `loan_offer.created` - Occurs whenever a Loan Offer is created.
281282
- `loan_offer.updated` - Occurs whenever a Loan Offer is updated.
282-
- `loan_purchase.created` - Occurs whenever a Loan Purchase is created.
283+
- `loan_purchase_offer.created` - Occurs whenever a Loan Purchase Offer is
284+
created.
285+
- `loan_purchase_offer.updated` - Occurs whenever a Loan Purchase Offer is
286+
updated.
283287
- `lockbox.created` - Occurs whenever a Lockbox is created.
284288
- `lockbox.updated` - Occurs whenever a Lockbox is updated.
285289
- `lockbox_address.created` - Occurs whenever a Lockbox Address is created.

‎src/increase/types/event_list_params.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,8 @@ class EventListParams(TypedDict, total=False):
119119
"loan_obligation.created",
120120
"loan_offer.created",
121121
"loan_offer.updated",
122-
"loan_purchase.created",
122+
"loan_purchase_offer.created",
123+
"loan_purchase_offer.updated",
123124
"lockbox.created",
124125
"lockbox.updated",
125126
"lockbox_address.created",

0 commit comments

Comments
 (0)