diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 70486fbf9..8d521d91f 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.217.0" + ".": "0.218.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 7a1085205..d1dcd2971 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b7b04843..af999ff45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index f21a43ed5..a73d2d154 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/increase/_version.py b/src/increase/_version.py index 98f841162..4dd72ec81 100644 --- a/src/increase/_version.py +++ b/src/increase/_version.py @@ -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 diff --git a/src/increase/types/digital_wallet_token.py b/src/increase/types/digital_wallet_token.py index de9fb6a49..034a31788 100644 --- a/src/increase/types/digital_wallet_token.py +++ b/src/increase/types/digital_wallet_token.py @@ -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): @@ -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. diff --git a/src/increase/types/real_time_decision.py b/src/increase/types/real_time_decision.py index 4abdf5873..2ba75df27 100644 --- a/src/increase/types/real_time_decision.py +++ b/src/increase/types/real_time_decision.py @@ -21,6 +21,7 @@ "CardAuthorizationVerificationCardholderAddress", "DigitalWalletAuthentication", "DigitalWalletToken", + "DigitalWalletTokenDevice", ] @@ -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.""" @@ -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.