Skip to content
Open
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,3 +1,3 @@
configured_endpoints: 255
openapi_spec_hash: 4458c613643910026be17923a699563f
openapi_spec_hash: 8c7315f38f199c5dd9ee8253ff0ad6f8
config_hash: de151ebd21a0bd391662389b310a8f49
2 changes: 1 addition & 1 deletion scripts/mock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/increase/resources/ach_transfers.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ def create(
`PAYROLL`, and reversals must use `REVERSAL`.

company_name: The name by which the recipient knows you, sent in the company batch header. We
recommend setting this on every transfer; if you do not, we fall back to the ACH
company name configured on your account.
recommend setting this on every transfer; if you do not, we fall back to the
`statement_descriptor`.

destination_account_holder: The type of entity that owns the receiver's account.

Expand Down Expand Up @@ -502,8 +502,8 @@ async def create(
`PAYROLL`, and reversals must use `REVERSAL`.

company_name: The name by which the recipient knows you, sent in the company batch header. We
recommend setting this on every transfer; if you do not, we fall back to the ACH
company name configured on your account.
recommend setting this on every transfer; if you do not, we fall back to the
`statement_descriptor`.

destination_account_holder: The type of entity that owns the receiver's account.

Expand Down
18 changes: 18 additions & 0 deletions src/increase/resources/digital_card_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def create(
background_image_file_id: str,
card_description: str,
description: str,
apple_pay: digital_card_profile_create_params.ApplePay | Omit = omit,
contact_email: str | Omit = omit,
contact_name: str | Omit = omit,
contact_phone: str | Omit = omit,
Expand All @@ -78,6 +79,8 @@ def create(

description: A description you can use to identify the Card Profile.

apple_pay: Apple Pay specific settings for the Card Profile.

contact_email: An email address the user can contact to receive support for their card.

contact_name: The name of your company or card program, shown to the user as who to contact
Expand Down Expand Up @@ -107,6 +110,7 @@ def create(
"background_image_file_id": background_image_file_id,
"card_description": card_description,
"description": description,
"apple_pay": apple_pay,
"contact_email": contact_email,
"contact_name": contact_name,
"contact_phone": contact_phone,
Expand Down Expand Up @@ -275,6 +279,7 @@ def clone(
digital_card_profile_id: str,
*,
app_icon_file_id: str | Omit = omit,
apple_pay: digital_card_profile_clone_params.ApplePay | Omit = omit,
background_image_file_id: str | Omit = omit,
card_description: str | Omit = omit,
contact_email: str | Omit = omit,
Expand All @@ -299,6 +304,9 @@ def clone(

app_icon_file_id: The identifier of the File containing the card's icon image.

apple_pay: Apple Pay specific settings for the Card Profile. Each list you leave out is
copied from the original Card Profile.

background_image_file_id: The identifier of the File containing the card's front image.

card_description: A user-facing description for the card itself.
Expand Down Expand Up @@ -338,6 +346,7 @@ def clone(
body=maybe_transform(
{
"app_icon_file_id": app_icon_file_id,
"apple_pay": apple_pay,
"background_image_file_id": background_image_file_id,
"card_description": card_description,
"contact_email": contact_email,
Expand Down Expand Up @@ -387,6 +396,7 @@ async def create(
background_image_file_id: str,
card_description: str,
description: str,
apple_pay: digital_card_profile_create_params.ApplePay | Omit = omit,
contact_email: str | Omit = omit,
contact_name: str | Omit = omit,
contact_phone: str | Omit = omit,
Expand All @@ -412,6 +422,8 @@ async def create(

description: A description you can use to identify the Card Profile.

apple_pay: Apple Pay specific settings for the Card Profile.

contact_email: An email address the user can contact to receive support for their card.

contact_name: The name of your company or card program, shown to the user as who to contact
Expand Down Expand Up @@ -441,6 +453,7 @@ async def create(
"background_image_file_id": background_image_file_id,
"card_description": card_description,
"description": description,
"apple_pay": apple_pay,
"contact_email": contact_email,
"contact_name": contact_name,
"contact_phone": contact_phone,
Expand Down Expand Up @@ -609,6 +622,7 @@ async def clone(
digital_card_profile_id: str,
*,
app_icon_file_id: str | Omit = omit,
apple_pay: digital_card_profile_clone_params.ApplePay | Omit = omit,
background_image_file_id: str | Omit = omit,
card_description: str | Omit = omit,
contact_email: str | Omit = omit,
Expand All @@ -633,6 +647,9 @@ async def clone(

app_icon_file_id: The identifier of the File containing the card's icon image.

apple_pay: Apple Pay specific settings for the Card Profile. Each list you leave out is
copied from the original Card Profile.

background_image_file_id: The identifier of the File containing the card's front image.

card_description: A user-facing description for the card itself.
Expand Down Expand Up @@ -672,6 +689,7 @@ async def clone(
body=await async_maybe_transform(
{
"app_icon_file_id": app_icon_file_id,
"apple_pay": apple_pay,
"background_image_file_id": background_image_file_id,
"card_description": card_description,
"contact_email": contact_email,
Expand Down
2 changes: 1 addition & 1 deletion src/increase/types/ach_transfer_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class ACHTransferCreateParams(TypedDict, total=False):
"""The name by which the recipient knows you, sent in the company batch header.

We recommend setting this on every transfer; if you do not, we fall back to the
ACH company name configured on your account.
`statement_descriptor`.
"""

destination_account_holder: Literal["business", "individual", "unknown"]
Expand Down
39 changes: 37 additions & 2 deletions src/increase/types/digital_card_profile.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,46 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import TYPE_CHECKING, Dict, Optional
from typing import TYPE_CHECKING, Dict, List, Optional
from datetime import datetime
from typing_extensions import Literal

from pydantic import Field as FieldInfo

from .._models import BaseModel

__all__ = ["DigitalCardProfile", "TextColor"]
__all__ = [
"DigitalCardProfile",
"ApplePay",
"ApplePayAssociatedApplicationIdentifier",
"ApplePayAssociatedStoreIdentifier",
"TextColor",
]


class ApplePayAssociatedApplicationIdentifier(BaseModel):
identifier: str
"""
The application identifier, composed of your Apple Developer Team ID and the
application's bundle identifier, like `ABCDE12345.com.example.app`.
"""


class ApplePayAssociatedStoreIdentifier(BaseModel):
identifier: str
"""The numeric App Store identifier."""


class ApplePay(BaseModel):
"""Apple Pay specific settings for the Card Profile."""

associated_application_identifiers: List[ApplePayAssociatedApplicationIdentifier]
"""The applications associated with cards using this Card Profile."""

associated_store_identifiers: List[ApplePayAssociatedStoreIdentifier]
"""
The App Store listings of the applications associated with cards using this Card
Profile.
"""


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

apple_pay: Optional[ApplePay] = None
"""Apple Pay specific settings for the Card Profile."""

background_image_file_id: str
"""The identifier of the File containing the card's front image."""

Expand Down
44 changes: 43 additions & 1 deletion src/increase/types/digital_card_profile_clone_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,28 @@

from __future__ import annotations

from typing import Iterable
from typing_extensions import Required, TypedDict

__all__ = ["DigitalCardProfileCloneParams", "TextColor"]
__all__ = [
"DigitalCardProfileCloneParams",
"ApplePay",
"ApplePayAssociatedApplicationIdentifier",
"ApplePayAssociatedStoreIdentifier",
"TextColor",
]


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

apple_pay: ApplePay
"""Apple Pay specific settings for the Card Profile.

Each list you leave out is copied from the original Card Profile.
"""

background_image_file_id: str
"""The identifier of the File containing the card's front image."""

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


class ApplePayAssociatedApplicationIdentifier(TypedDict, total=False):
identifier: Required[str]
"""
The application identifier, composed of your Apple Developer Team ID and the
application's bundle identifier, like `ABCDE12345.com.example.app`.
"""


class ApplePayAssociatedStoreIdentifier(TypedDict, total=False):
identifier: Required[str]
"""The numeric App Store identifier."""


class ApplePay(TypedDict, total=False):
"""Apple Pay specific settings for the Card Profile.

Each list you leave out is copied from the original Card Profile.
"""

associated_application_identifiers: Iterable[ApplePayAssociatedApplicationIdentifier]
"""The applications to associate with cards using this Card Profile."""

associated_store_identifiers: Iterable[ApplePayAssociatedStoreIdentifier]
"""
The App Store listings of the applications to associate with cards using this
Card Profile.
"""


class TextColor(TypedDict, total=False):
"""The Card's text color, specified as an RGB triple. The default is white."""

Expand Down
38 changes: 37 additions & 1 deletion src/increase/types/digital_card_profile_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,16 @@

from __future__ import annotations

from typing import Iterable
from typing_extensions import Required, TypedDict

__all__ = ["DigitalCardProfileCreateParams", "TextColor"]
__all__ = [
"DigitalCardProfileCreateParams",
"ApplePay",
"ApplePayAssociatedApplicationIdentifier",
"ApplePayAssociatedStoreIdentifier",
"TextColor",
]


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

apple_pay: ApplePay
"""Apple Pay specific settings for the Card Profile."""

contact_email: str
"""An email address the user can contact to receive support for their card."""

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


class ApplePayAssociatedApplicationIdentifier(TypedDict, total=False):
identifier: Required[str]
"""
The application identifier, composed of your Apple Developer Team ID and the
application's bundle identifier, like `ABCDE12345.com.example.app`.
"""


class ApplePayAssociatedStoreIdentifier(TypedDict, total=False):
identifier: Required[str]
"""The numeric App Store identifier."""


class ApplePay(TypedDict, total=False):
"""Apple Pay specific settings for the Card Profile."""

associated_application_identifiers: Iterable[ApplePayAssociatedApplicationIdentifier]
"""The applications to associate with cards using this Card Profile."""

associated_store_identifiers: Iterable[ApplePayAssociatedStoreIdentifier]
"""
The App Store listings of the applications to associate with cards using this
Card Profile.
"""


class TextColor(TypedDict, total=False):
"""The Card's text color, specified as an RGB triple. The default is white."""

Expand Down
24 changes: 24 additions & 0 deletions tests/api_resources/test_digital_card_profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ def test_method_create_with_all_params(self, client: Increase) -> None:
background_image_file_id="file_1ai913suu1zfn1pdetru",
card_description="National Phonograph Card",
description="My Card Profile",
apple_pay={
"associated_application_identifiers": [
{"identifier": "210B9798AD.---aH0O-6L.8tjDQ-3.-K-h.8asJ.WN--u-kX-Q.l3VU-F.-i-5p54n-N"}
],
"associated_store_identifiers": [{"identifier": "26"}],
},
contact_email="user@example.com",
contact_name="National Phonograph Company",
contact_phone="+18885551212",
Expand Down Expand Up @@ -202,6 +208,12 @@ def test_method_clone_with_all_params(self, client: Increase) -> None:
digital_card_profile = client.digital_card_profiles.clone(
digital_card_profile_id="digital_card_profile_s3puplu90f04xhcwkiga",
app_icon_file_id="app_icon_file_id",
apple_pay={
"associated_application_identifiers": [
{"identifier": "210B9798AD.---aH0O-6L.8tjDQ-3.-K-h.8asJ.WN--u-kX-Q.l3VU-F.-i-5p54n-N"}
],
"associated_store_identifiers": [{"identifier": "26"}],
},
background_image_file_id="file_1ai913suu1zfn1pdetru",
card_description="x",
contact_email="dev@stainless.com",
Expand Down Expand Up @@ -272,6 +284,12 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease)
background_image_file_id="file_1ai913suu1zfn1pdetru",
card_description="National Phonograph Card",
description="My Card Profile",
apple_pay={
"associated_application_identifiers": [
{"identifier": "210B9798AD.---aH0O-6L.8tjDQ-3.-K-h.8asJ.WN--u-kX-Q.l3VU-F.-i-5p54n-N"}
],
"associated_store_identifiers": [{"identifier": "26"}],
},
contact_email="user@example.com",
contact_name="National Phonograph Company",
contact_phone="+18885551212",
Expand Down Expand Up @@ -437,6 +455,12 @@ async def test_method_clone_with_all_params(self, async_client: AsyncIncrease) -
digital_card_profile = await async_client.digital_card_profiles.clone(
digital_card_profile_id="digital_card_profile_s3puplu90f04xhcwkiga",
app_icon_file_id="app_icon_file_id",
apple_pay={
"associated_application_identifiers": [
{"identifier": "210B9798AD.---aH0O-6L.8tjDQ-3.-K-h.8asJ.WN--u-kX-Q.l3VU-F.-i-5p54n-N"}
],
"associated_store_identifiers": [{"identifier": "26"}],
},
background_image_file_id="file_1ai913suu1zfn1pdetru",
card_description="x",
contact_email="dev@stainless.com",
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading