Skip to content
Merged
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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.217.0"
".": "0.218.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 199
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-33bdf702b7e17c6ce26736fdcbf42437952f56eed26df196c073d8c2d0405364.yml
openapi_spec_hash: e528f453ee22576ba66bc039e99977a9
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-2f220d665fe0014a15369e084c2ad554dc9dbe6758e079b40af056153807fe1f.yml
openapi_spec_hash: 280b322bc7ae0fc3eb4ea18d73fa01ae
config_hash: 20a463ecd33bd32b7b9bc6f4990907ac
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.218.0 (2025-04-02)

Full Changelog: [v0.217.0...v0.218.0](https://github.com/Increase/increase-python/compare/v0.217.0...v0.218.0)

### Features

* **api:** api update ([#1070](https://github.com/Increase/increase-python/issues/1070)) ([a89331c](https://github.com/Increase/increase-python/commit/a89331cadc23edc594beb0d10c23f351d3ddc076))

## 0.217.0 (2025-04-01)

Full Changelog: [v0.216.0...v0.217.0](https://github.com/Increase/increase-python/compare/v0.216.0...v0.217.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "increase"
version = "0.217.0"
version = "0.218.0"
description = "The official Python library for the increase API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/increase/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "increase"
__version__ = "0.217.0" # x-release-please-version
__version__ = "0.218.0" # x-release-please-version
52 changes: 50 additions & 2 deletions src/increase/types/digital_wallet_token.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,54 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

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

from .._models import BaseModel

__all__ = ["DigitalWalletToken", "Update"]
__all__ = ["DigitalWalletToken", "Cardholder", "Device", "Update"]


class Cardholder(BaseModel):
name: Optional[str] = None
"""Name of the cardholder, for example "John Smith"."""


class Device(BaseModel):
device_type: Optional[
Literal[
"unknown",
"mobile_phone",
"tablet",
"watch",
"mobilephone_or_tablet",
"pc",
"household_device",
"wearable_device",
"automobile_device",
]
] = None
"""Device type.

- `unknown` - Unknown
- `mobile_phone` - Mobile Phone
- `tablet` - Tablet
- `watch` - Watch
- `mobilephone_or_tablet` - Mobile Phone or Tablet
- `pc` - PC
- `household_device` - Household Device
- `wearable_device` - Wearable Device
- `automobile_device` - Automobile Device
"""

identifier: Optional[str] = None
"""ID assigned to the device by the digital wallet provider."""

ip_address: Optional[str] = None
"""IP address of the device."""

name: Optional[str] = None
"""Name of the device, for example "My Work Phone"."""


class Update(BaseModel):
Expand Down Expand Up @@ -34,12 +76,18 @@ class DigitalWalletToken(BaseModel):
card_id: str
"""The identifier for the Card this Digital Wallet Token belongs to."""

cardholder: Cardholder
"""The cardholder information given when the Digital Wallet Token was created."""

created_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date and time at which
the Digital Wallet Token was created.
"""

device: Device
"""The device that was used to create the Digital Wallet Token."""

status: Literal["active", "inactive", "suspended", "deactivated"]
"""This indicates if payments can be made with the Digital Wallet Token.

Expand Down
9 changes: 9 additions & 0 deletions src/increase/types/real_time_decision.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"CardAuthorizationVerificationCardholderAddress",
"DigitalWalletAuthentication",
"DigitalWalletToken",
"DigitalWalletTokenDevice",
]


Expand Down Expand Up @@ -503,6 +504,11 @@ class DigitalWalletAuthentication(BaseModel):
"""


class DigitalWalletTokenDevice(BaseModel):
identifier: Optional[str] = None
"""ID assigned to the device by the digital wallet provider."""


class DigitalWalletToken(BaseModel):
card_id: str
"""The identifier of the Card that is being tokenized."""
Expand All @@ -523,6 +529,9 @@ class DigitalWalletToken(BaseModel):
- `decline` - Decline the provisioning request.
"""

device: DigitalWalletTokenDevice
"""Device that is being used to provision the digital wallet token."""

digital_wallet: Literal["apple_pay", "google_pay", "samsung_pay", "unknown"]
"""The digital wallet app being used.

Expand Down