diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 5dc618705..f1d4e1531 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.272.0" + ".": "0.273.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 093b8c5d0..1cc1a647b 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 202 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-976ae14d2349a3599f9bd33dba52b3c12c265493a8af9e581c71b2e819b8de04.yml -openapi_spec_hash: d8a9fef4dfe082acdf834ac0339e800c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-5fa3dfeb071930598ed9243dd96db808cf54d4a455c99b1acceadc3335f1a387.yml +openapi_spec_hash: 18dfa4d31cd512dcd83b646e40fb2c86 config_hash: a185e9a72778cc4658ea73fb3a7f1354 diff --git a/CHANGELOG.md b/CHANGELOG.md index ed85eea6a..8a00d6a53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.273.0 (2025-07-29) + +Full Changelog: [v0.272.0...v0.273.0](https://github.com/Increase/increase-python/compare/v0.272.0...v0.273.0) + +### Features + +* **api:** api update ([974625a](https://github.com/Increase/increase-python/commit/974625a2f2fa37849e9f86aa62ca4ba6f5526fff)) +* **api:** api update ([1866b10](https://github.com/Increase/increase-python/commit/1866b1003788e27b2067147739a0210069036986)) + ## 0.272.0 (2025-07-29) Full Changelog: [v0.271.0...v0.272.0](https://github.com/Increase/increase-python/compare/v0.271.0...v0.272.0) diff --git a/pyproject.toml b/pyproject.toml index bf9cb4874..7803d62da 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.272.0" +version = "0.273.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 b295ac433..8ee4663e6 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.272.0" # x-release-please-version +__version__ = "0.273.0" # x-release-please-version diff --git a/src/increase/types/card_payment.py b/src/increase/types/card_payment.py index c24bc4077..2f5c7bbf0 100644 --- a/src/increase/types/card_payment.py +++ b/src/increase/types/card_payment.py @@ -13,6 +13,16 @@ "ElementCardAuthenticationChallenge", "ElementCardAuthenticationChallengeAttempt", "ElementCardAuthorization", + "ElementCardAuthorizationAdditionalAmounts", + "ElementCardAuthorizationAdditionalAmountsClinic", + "ElementCardAuthorizationAdditionalAmountsDental", + "ElementCardAuthorizationAdditionalAmountsPrescription", + "ElementCardAuthorizationAdditionalAmountsSurcharge", + "ElementCardAuthorizationAdditionalAmountsTotalCumulative", + "ElementCardAuthorizationAdditionalAmountsTotalHealthcare", + "ElementCardAuthorizationAdditionalAmountsTransit", + "ElementCardAuthorizationAdditionalAmountsUnknown", + "ElementCardAuthorizationAdditionalAmountsVision", "ElementCardAuthorizationNetworkDetails", "ElementCardAuthorizationNetworkDetailsVisa", "ElementCardAuthorizationNetworkIdentifiers", @@ -21,6 +31,16 @@ "ElementCardAuthorizationVerificationCardholderAddress", "ElementCardAuthorizationExpiration", "ElementCardDecline", + "ElementCardDeclineAdditionalAmounts", + "ElementCardDeclineAdditionalAmountsClinic", + "ElementCardDeclineAdditionalAmountsDental", + "ElementCardDeclineAdditionalAmountsPrescription", + "ElementCardDeclineAdditionalAmountsSurcharge", + "ElementCardDeclineAdditionalAmountsTotalCumulative", + "ElementCardDeclineAdditionalAmountsTotalHealthcare", + "ElementCardDeclineAdditionalAmountsTransit", + "ElementCardDeclineAdditionalAmountsUnknown", + "ElementCardDeclineAdditionalAmountsVision", "ElementCardDeclineNetworkDetails", "ElementCardDeclineNetworkDetailsVisa", "ElementCardDeclineNetworkIdentifiers", @@ -30,6 +50,16 @@ "ElementCardFuelConfirmation", "ElementCardFuelConfirmationNetworkIdentifiers", "ElementCardIncrement", + "ElementCardIncrementAdditionalAmounts", + "ElementCardIncrementAdditionalAmountsClinic", + "ElementCardIncrementAdditionalAmountsDental", + "ElementCardIncrementAdditionalAmountsPrescription", + "ElementCardIncrementAdditionalAmountsSurcharge", + "ElementCardIncrementAdditionalAmountsTotalCumulative", + "ElementCardIncrementAdditionalAmountsTotalHealthcare", + "ElementCardIncrementAdditionalAmountsTransit", + "ElementCardIncrementAdditionalAmountsUnknown", + "ElementCardIncrementAdditionalAmountsVision", "ElementCardIncrementNetworkIdentifiers", "ElementCardRefund", "ElementCardRefundCashback", @@ -56,6 +86,16 @@ "ElementCardSettlementPurchaseDetailsTravelAncillaryService", "ElementCardSettlementPurchaseDetailsTravelTripLeg", "ElementCardValidation", + "ElementCardValidationAdditionalAmounts", + "ElementCardValidationAdditionalAmountsClinic", + "ElementCardValidationAdditionalAmountsDental", + "ElementCardValidationAdditionalAmountsPrescription", + "ElementCardValidationAdditionalAmountsSurcharge", + "ElementCardValidationAdditionalAmountsTotalCumulative", + "ElementCardValidationAdditionalAmountsTotalHealthcare", + "ElementCardValidationAdditionalAmountsTransit", + "ElementCardValidationAdditionalAmountsUnknown", + "ElementCardValidationAdditionalAmountsVision", "ElementCardValidationNetworkDetails", "ElementCardValidationNetworkDetailsVisa", "ElementCardValidationNetworkIdentifiers", @@ -233,6 +273,136 @@ class ElementCardAuthentication(BaseModel): """ +class ElementCardAuthorizationAdditionalAmountsClinic(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmountsDental(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmountsPrescription(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmountsSurcharge(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmountsTotalCumulative(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmountsTotalHealthcare(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmountsTransit(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmountsUnknown(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmountsVision(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardAuthorizationAdditionalAmounts(BaseModel): + clinic: Optional[ElementCardAuthorizationAdditionalAmountsClinic] = None + """The part of this transaction amount that was for clinic-related services.""" + + dental: Optional[ElementCardAuthorizationAdditionalAmountsDental] = None + """The part of this transaction amount that was for dental-related services.""" + + prescription: Optional[ElementCardAuthorizationAdditionalAmountsPrescription] = None + """The part of this transaction amount that was for healthcare prescriptions.""" + + surcharge: Optional[ElementCardAuthorizationAdditionalAmountsSurcharge] = None + """The surcharge amount charged for this transaction by the merchant.""" + + total_cumulative: Optional[ElementCardAuthorizationAdditionalAmountsTotalCumulative] = None + """ + The total amount of a series of incremental authorizations, optionally provided. + """ + + total_healthcare: Optional[ElementCardAuthorizationAdditionalAmountsTotalHealthcare] = None + """The total amount of healthcare-related additional amounts.""" + + transit: Optional[ElementCardAuthorizationAdditionalAmountsTransit] = None + """The part of this transaction amount that was for transit-related services.""" + + unknown: Optional[ElementCardAuthorizationAdditionalAmountsUnknown] = None + """An unknown additional amount.""" + + vision: Optional[ElementCardAuthorizationAdditionalAmountsVision] = None + """The part of this transaction amount that was for vision-related services.""" + + class ElementCardAuthorizationNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -461,6 +631,13 @@ class ElementCardAuthorization(BaseModel): processing. """ + additional_amounts: ElementCardAuthorizationAdditionalAmounts + """ + Additional amounts associated with the card authorization, such as ATM + surcharges fees. These are usually a subset of the `amount` field and are used + to provide more detailed information about the transaction. + """ + amount: int """The pending amount in the minor unit of the transaction's currency. @@ -663,6 +840,136 @@ class ElementCardAuthorizationExpiration(BaseModel): """ +class ElementCardDeclineAdditionalAmountsClinic(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmountsDental(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmountsPrescription(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmountsSurcharge(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmountsTotalCumulative(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmountsTotalHealthcare(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmountsTransit(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmountsUnknown(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmountsVision(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardDeclineAdditionalAmounts(BaseModel): + clinic: Optional[ElementCardDeclineAdditionalAmountsClinic] = None + """The part of this transaction amount that was for clinic-related services.""" + + dental: Optional[ElementCardDeclineAdditionalAmountsDental] = None + """The part of this transaction amount that was for dental-related services.""" + + prescription: Optional[ElementCardDeclineAdditionalAmountsPrescription] = None + """The part of this transaction amount that was for healthcare prescriptions.""" + + surcharge: Optional[ElementCardDeclineAdditionalAmountsSurcharge] = None + """The surcharge amount charged for this transaction by the merchant.""" + + total_cumulative: Optional[ElementCardDeclineAdditionalAmountsTotalCumulative] = None + """ + The total amount of a series of incremental authorizations, optionally provided. + """ + + total_healthcare: Optional[ElementCardDeclineAdditionalAmountsTotalHealthcare] = None + """The total amount of healthcare-related additional amounts.""" + + transit: Optional[ElementCardDeclineAdditionalAmountsTransit] = None + """The part of this transaction amount that was for transit-related services.""" + + unknown: Optional[ElementCardDeclineAdditionalAmountsUnknown] = None + """An unknown additional amount.""" + + vision: Optional[ElementCardDeclineAdditionalAmountsVision] = None + """The part of this transaction amount that was for vision-related services.""" + + class ElementCardDeclineNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -891,6 +1198,13 @@ class ElementCardDecline(BaseModel): processing. """ + additional_amounts: ElementCardDeclineAdditionalAmounts + """ + Additional amounts associated with the card authorization, such as ATM + surcharges fees. These are usually a subset of the `amount` field and are used + to provide more detailed information about the transaction. + """ + amount: int """The declined amount in the minor unit of the destination account currency. @@ -1196,6 +1510,136 @@ class ElementCardFuelConfirmation(BaseModel): """ +class ElementCardIncrementAdditionalAmountsClinic(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmountsDental(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmountsPrescription(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmountsSurcharge(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmountsTotalCumulative(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmountsTotalHealthcare(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmountsTransit(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmountsUnknown(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmountsVision(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardIncrementAdditionalAmounts(BaseModel): + clinic: Optional[ElementCardIncrementAdditionalAmountsClinic] = None + """The part of this transaction amount that was for clinic-related services.""" + + dental: Optional[ElementCardIncrementAdditionalAmountsDental] = None + """The part of this transaction amount that was for dental-related services.""" + + prescription: Optional[ElementCardIncrementAdditionalAmountsPrescription] = None + """The part of this transaction amount that was for healthcare prescriptions.""" + + surcharge: Optional[ElementCardIncrementAdditionalAmountsSurcharge] = None + """The surcharge amount charged for this transaction by the merchant.""" + + total_cumulative: Optional[ElementCardIncrementAdditionalAmountsTotalCumulative] = None + """ + The total amount of a series of incremental authorizations, optionally provided. + """ + + total_healthcare: Optional[ElementCardIncrementAdditionalAmountsTotalHealthcare] = None + """The total amount of healthcare-related additional amounts.""" + + transit: Optional[ElementCardIncrementAdditionalAmountsTransit] = None + """The part of this transaction amount that was for transit-related services.""" + + unknown: Optional[ElementCardIncrementAdditionalAmountsUnknown] = None + """An unknown additional amount.""" + + vision: Optional[ElementCardIncrementAdditionalAmountsVision] = None + """The part of this transaction amount that was for vision-related services.""" + + class ElementCardIncrementNetworkIdentifiers(BaseModel): retrieval_reference_number: Optional[str] = None """A life-cycle identifier used across e.g., an authorization and a reversal. @@ -1232,6 +1676,13 @@ class ElementCardIncrement(BaseModel): processing. """ + additional_amounts: ElementCardIncrementAdditionalAmounts + """ + Additional amounts associated with the card authorization, such as ATM + surcharges fees. These are usually a subset of the `amount` field and are used + to provide more detailed information about the transaction. + """ + amount: int """The amount of this increment in the minor unit of the transaction's currency. @@ -1273,6 +1724,18 @@ class ElementCardIncrement(BaseModel): pending_transaction_id: Optional[str] = None """The identifier of the Pending Transaction associated with this Card Increment.""" + presentment_amount: int + """ + The amount of this increment in the minor unit of the transaction's presentment + currency. + """ + + presentment_currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the + transaction's presentment currency. + """ + real_time_decision_id: Optional[str] = None """ The identifier of the Real-Time Decision sent to approve or decline this @@ -2558,6 +3021,136 @@ class ElementCardSettlement(BaseModel): """ +class ElementCardValidationAdditionalAmountsClinic(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmountsDental(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmountsPrescription(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmountsSurcharge(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmountsTotalCumulative(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmountsTotalHealthcare(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmountsTransit(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmountsUnknown(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmountsVision(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class ElementCardValidationAdditionalAmounts(BaseModel): + clinic: Optional[ElementCardValidationAdditionalAmountsClinic] = None + """The part of this transaction amount that was for clinic-related services.""" + + dental: Optional[ElementCardValidationAdditionalAmountsDental] = None + """The part of this transaction amount that was for dental-related services.""" + + prescription: Optional[ElementCardValidationAdditionalAmountsPrescription] = None + """The part of this transaction amount that was for healthcare prescriptions.""" + + surcharge: Optional[ElementCardValidationAdditionalAmountsSurcharge] = None + """The surcharge amount charged for this transaction by the merchant.""" + + total_cumulative: Optional[ElementCardValidationAdditionalAmountsTotalCumulative] = None + """ + The total amount of a series of incremental authorizations, optionally provided. + """ + + total_healthcare: Optional[ElementCardValidationAdditionalAmountsTotalHealthcare] = None + """The total amount of healthcare-related additional amounts.""" + + transit: Optional[ElementCardValidationAdditionalAmountsTransit] = None + """The part of this transaction amount that was for transit-related services.""" + + unknown: Optional[ElementCardValidationAdditionalAmountsUnknown] = None + """An unknown additional amount.""" + + vision: Optional[ElementCardValidationAdditionalAmountsVision] = None + """The part of this transaction amount that was for vision-related services.""" + + class ElementCardValidationNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -2786,6 +3379,13 @@ class ElementCardValidation(BaseModel): processing. """ + additional_amounts: ElementCardValidationAdditionalAmounts + """ + Additional amounts associated with the card authorization, such as ATM + surcharges fees. These are usually a subset of the `amount` field and are used + to provide more detailed information about the transaction. + """ + card_payment_id: str """The ID of the Card Payment this transaction belongs to.""" diff --git a/src/increase/types/declined_transaction.py b/src/increase/types/declined_transaction.py index a71f24c81..ead0f33b2 100644 --- a/src/increase/types/declined_transaction.py +++ b/src/increase/types/declined_transaction.py @@ -11,6 +11,16 @@ "Source", "SourceACHDecline", "SourceCardDecline", + "SourceCardDeclineAdditionalAmounts", + "SourceCardDeclineAdditionalAmountsClinic", + "SourceCardDeclineAdditionalAmountsDental", + "SourceCardDeclineAdditionalAmountsPrescription", + "SourceCardDeclineAdditionalAmountsSurcharge", + "SourceCardDeclineAdditionalAmountsTotalCumulative", + "SourceCardDeclineAdditionalAmountsTotalHealthcare", + "SourceCardDeclineAdditionalAmountsTransit", + "SourceCardDeclineAdditionalAmountsUnknown", + "SourceCardDeclineAdditionalAmountsVision", "SourceCardDeclineNetworkDetails", "SourceCardDeclineNetworkDetailsVisa", "SourceCardDeclineNetworkIdentifiers", @@ -111,6 +121,136 @@ class SourceACHDecline(BaseModel): """ +class SourceCardDeclineAdditionalAmountsClinic(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmountsDental(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmountsPrescription(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmountsSurcharge(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmountsTotalCumulative(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmountsTotalHealthcare(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmountsTransit(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmountsUnknown(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmountsVision(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardDeclineAdditionalAmounts(BaseModel): + clinic: Optional[SourceCardDeclineAdditionalAmountsClinic] = None + """The part of this transaction amount that was for clinic-related services.""" + + dental: Optional[SourceCardDeclineAdditionalAmountsDental] = None + """The part of this transaction amount that was for dental-related services.""" + + prescription: Optional[SourceCardDeclineAdditionalAmountsPrescription] = None + """The part of this transaction amount that was for healthcare prescriptions.""" + + surcharge: Optional[SourceCardDeclineAdditionalAmountsSurcharge] = None + """The surcharge amount charged for this transaction by the merchant.""" + + total_cumulative: Optional[SourceCardDeclineAdditionalAmountsTotalCumulative] = None + """ + The total amount of a series of incremental authorizations, optionally provided. + """ + + total_healthcare: Optional[SourceCardDeclineAdditionalAmountsTotalHealthcare] = None + """The total amount of healthcare-related additional amounts.""" + + transit: Optional[SourceCardDeclineAdditionalAmountsTransit] = None + """The part of this transaction amount that was for transit-related services.""" + + unknown: Optional[SourceCardDeclineAdditionalAmountsUnknown] = None + """An unknown additional amount.""" + + vision: Optional[SourceCardDeclineAdditionalAmountsVision] = None + """The part of this transaction amount that was for vision-related services.""" + + class SourceCardDeclineNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -339,6 +479,13 @@ class SourceCardDecline(BaseModel): processing. """ + additional_amounts: SourceCardDeclineAdditionalAmounts + """ + Additional amounts associated with the card authorization, such as ATM + surcharges fees. These are usually a subset of the `amount` field and are used + to provide more detailed information about the transaction. + """ + amount: int """The declined amount in the minor unit of the destination account currency. diff --git a/src/increase/types/pending_transaction.py b/src/increase/types/pending_transaction.py index cc78b0eaf..7aa126d5d 100644 --- a/src/increase/types/pending_transaction.py +++ b/src/increase/types/pending_transaction.py @@ -12,6 +12,16 @@ "SourceAccountTransferInstruction", "SourceACHTransferInstruction", "SourceCardAuthorization", + "SourceCardAuthorizationAdditionalAmounts", + "SourceCardAuthorizationAdditionalAmountsClinic", + "SourceCardAuthorizationAdditionalAmountsDental", + "SourceCardAuthorizationAdditionalAmountsPrescription", + "SourceCardAuthorizationAdditionalAmountsSurcharge", + "SourceCardAuthorizationAdditionalAmountsTotalCumulative", + "SourceCardAuthorizationAdditionalAmountsTotalHealthcare", + "SourceCardAuthorizationAdditionalAmountsTransit", + "SourceCardAuthorizationAdditionalAmountsUnknown", + "SourceCardAuthorizationAdditionalAmountsVision", "SourceCardAuthorizationNetworkDetails", "SourceCardAuthorizationNetworkDetailsVisa", "SourceCardAuthorizationNetworkIdentifiers", @@ -61,6 +71,136 @@ class SourceACHTransferInstruction(BaseModel): """The identifier of the ACH Transfer that led to this Pending Transaction.""" +class SourceCardAuthorizationAdditionalAmountsClinic(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmountsDental(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmountsPrescription(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmountsSurcharge(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmountsTotalCumulative(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmountsTotalHealthcare(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmountsTransit(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmountsUnknown(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmountsVision(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class SourceCardAuthorizationAdditionalAmounts(BaseModel): + clinic: Optional[SourceCardAuthorizationAdditionalAmountsClinic] = None + """The part of this transaction amount that was for clinic-related services.""" + + dental: Optional[SourceCardAuthorizationAdditionalAmountsDental] = None + """The part of this transaction amount that was for dental-related services.""" + + prescription: Optional[SourceCardAuthorizationAdditionalAmountsPrescription] = None + """The part of this transaction amount that was for healthcare prescriptions.""" + + surcharge: Optional[SourceCardAuthorizationAdditionalAmountsSurcharge] = None + """The surcharge amount charged for this transaction by the merchant.""" + + total_cumulative: Optional[SourceCardAuthorizationAdditionalAmountsTotalCumulative] = None + """ + The total amount of a series of incremental authorizations, optionally provided. + """ + + total_healthcare: Optional[SourceCardAuthorizationAdditionalAmountsTotalHealthcare] = None + """The total amount of healthcare-related additional amounts.""" + + transit: Optional[SourceCardAuthorizationAdditionalAmountsTransit] = None + """The part of this transaction amount that was for transit-related services.""" + + unknown: Optional[SourceCardAuthorizationAdditionalAmountsUnknown] = None + """An unknown additional amount.""" + + vision: Optional[SourceCardAuthorizationAdditionalAmountsVision] = None + """The part of this transaction amount that was for vision-related services.""" + + class SourceCardAuthorizationNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -289,6 +429,13 @@ class SourceCardAuthorization(BaseModel): processing. """ + additional_amounts: SourceCardAuthorizationAdditionalAmounts + """ + Additional amounts associated with the card authorization, such as ATM + surcharges fees. These are usually a subset of the `amount` field and are used + to provide more detailed information about the transaction. + """ + amount: int """The pending amount in the minor unit of the transaction's currency. diff --git a/src/increase/types/real_time_decision.py b/src/increase/types/real_time_decision.py index 3fb13abc1..19b4f1d34 100644 --- a/src/increase/types/real_time_decision.py +++ b/src/increase/types/real_time_decision.py @@ -11,6 +11,16 @@ "CardAuthentication", "CardAuthenticationChallenge", "CardAuthorization", + "CardAuthorizationAdditionalAmounts", + "CardAuthorizationAdditionalAmountsClinic", + "CardAuthorizationAdditionalAmountsDental", + "CardAuthorizationAdditionalAmountsPrescription", + "CardAuthorizationAdditionalAmountsSurcharge", + "CardAuthorizationAdditionalAmountsTotalCumulative", + "CardAuthorizationAdditionalAmountsTotalHealthcare", + "CardAuthorizationAdditionalAmountsTransit", + "CardAuthorizationAdditionalAmountsUnknown", + "CardAuthorizationAdditionalAmountsVision", "CardAuthorizationNetworkDetails", "CardAuthorizationNetworkDetailsVisa", "CardAuthorizationNetworkIdentifiers", @@ -74,6 +84,136 @@ class CardAuthenticationChallenge(BaseModel): """ +class CardAuthorizationAdditionalAmountsClinic(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmountsDental(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmountsPrescription(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmountsSurcharge(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmountsTotalCumulative(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmountsTotalHealthcare(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmountsTransit(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmountsUnknown(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmountsVision(BaseModel): + amount: int + """The amount in minor units of the `currency` field.""" + + currency: str + """ + The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the additional + amount's currency. + """ + + +class CardAuthorizationAdditionalAmounts(BaseModel): + clinic: Optional[CardAuthorizationAdditionalAmountsClinic] = None + """The part of this transaction amount that was for clinic-related services.""" + + dental: Optional[CardAuthorizationAdditionalAmountsDental] = None + """The part of this transaction amount that was for dental-related services.""" + + prescription: Optional[CardAuthorizationAdditionalAmountsPrescription] = None + """The part of this transaction amount that was for healthcare prescriptions.""" + + surcharge: Optional[CardAuthorizationAdditionalAmountsSurcharge] = None + """The surcharge amount charged for this transaction by the merchant.""" + + total_cumulative: Optional[CardAuthorizationAdditionalAmountsTotalCumulative] = None + """ + The total amount of a series of incremental authorizations, optionally provided. + """ + + total_healthcare: Optional[CardAuthorizationAdditionalAmountsTotalHealthcare] = None + """The total amount of healthcare-related additional amounts.""" + + transit: Optional[CardAuthorizationAdditionalAmountsTransit] = None + """The part of this transaction amount that was for transit-related services.""" + + unknown: Optional[CardAuthorizationAdditionalAmountsUnknown] = None + """An unknown additional amount.""" + + vision: Optional[CardAuthorizationAdditionalAmountsVision] = None + """The part of this transaction amount that was for vision-related services.""" + + class CardAuthorizationNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -320,6 +460,13 @@ class CardAuthorization(BaseModel): account_id: str """The identifier of the Account the authorization will debit.""" + additional_amounts: CardAuthorizationAdditionalAmounts + """ + Additional amounts associated with the card authorization, such as ATM + surcharges fees. These are usually a subset of the `amount` field and are used + to provide more detailed information about the transaction. + """ + card_id: str """The identifier of the Card that is being authorized."""