diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 02bfb399..842d1edb 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.395.0" + ".": "0.396.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 9a6f8ba0..973bfab0 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 229 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-7a6340375b0e06648ff3e7e4b8aa1527b71df0c7a3d793738ba6fe20eef6f624.yml -openapi_spec_hash: 3cb2076c8a4870d3b17d02780a295172 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-fadbd087449a336a91be2645c64e2fe1e81e0f52d9810ab5f830af7e1c727138.yml +openapi_spec_hash: 7e44d91e713fb44925a3565b882248d7 config_hash: ca1425272e17fa23d4466d33492334fa diff --git a/CHANGELOG.md b/CHANGELOG.md index cd50167f..0aa105c5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.396.0 (2025-11-18) + +Full Changelog: [v0.395.0...v0.396.0](https://github.com/Increase/increase-python/compare/v0.395.0...v0.396.0) + +### Features + +* **api:** api update ([73f8a13](https://github.com/Increase/increase-python/commit/73f8a1397f32d11e5b4111e6e706f23e9a87e06e)) + ## 0.395.0 (2025-11-14) Full Changelog: [v0.394.0...v0.395.0](https://github.com/Increase/increase-python/compare/v0.394.0...v0.395.0) diff --git a/pyproject.toml b/pyproject.toml index bc24d4e8..90459df1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.395.0" +version = "0.396.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 ceca6b6b..857ee8cb 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.395.0" # x-release-please-version +__version__ = "0.396.0" # x-release-please-version diff --git a/src/increase/resources/card_push_transfers.py b/src/increase/resources/card_push_transfers.py index 41ebcec9..b72363fc 100644 --- a/src/increase/resources/card_push_transfers.py +++ b/src/increase/resources/card_push_transfers.py @@ -47,7 +47,6 @@ def with_streaming_response(self) -> CardPushTransfersResourceWithStreamingRespo def create( self, *, - amount: int, business_application_identifier: Literal[ "account_to_account", "business_to_business", @@ -71,6 +70,7 @@ def create( merchant_name_prefix: str, merchant_postal_code: str, merchant_state: str, + presentment_amount: card_push_transfer_create_params.PresentmentAmount, recipient_name: str, sender_address_city: str, sender_address_line1: str, @@ -87,13 +87,10 @@ def create( timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> CardPushTransfer: - """Create a Card Push Transfer + """ + Create a Card Push Transfer Args: - amount: The transfer amount in USD cents. - - For Card Push transfers, must be positive. - business_application_identifier: The Business Application Identifier describes the type of transaction being performed. Your program must be approved for the specified Business Application Identifier in order to use it. @@ -134,6 +131,10 @@ def create( merchant_state: The state of the merchant (generally your business) sending the transfer. + presentment_amount: The amount to transfer. The receiving bank will convert this to the cardholder's + currency. The amount that is applied to your Increase account matches the + currency of your account. + recipient_name: The name of the funds recipient. sender_address_city: The city of the sender. @@ -164,7 +165,6 @@ def create( "/card_push_transfers", body=maybe_transform( { - "amount": amount, "business_application_identifier": business_application_identifier, "card_token_id": card_token_id, "merchant_category_code": merchant_category_code, @@ -173,6 +173,7 @@ def create( "merchant_name_prefix": merchant_name_prefix, "merchant_postal_code": merchant_postal_code, "merchant_state": merchant_state, + "presentment_amount": presentment_amount, "recipient_name": recipient_name, "sender_address_city": sender_address_city, "sender_address_line1": sender_address_line1, @@ -406,7 +407,6 @@ def with_streaming_response(self) -> AsyncCardPushTransfersResourceWithStreaming async def create( self, *, - amount: int, business_application_identifier: Literal[ "account_to_account", "business_to_business", @@ -430,6 +430,7 @@ async def create( merchant_name_prefix: str, merchant_postal_code: str, merchant_state: str, + presentment_amount: card_push_transfer_create_params.PresentmentAmount, recipient_name: str, sender_address_city: str, sender_address_line1: str, @@ -446,13 +447,10 @@ async def create( timeout: float | httpx.Timeout | None | NotGiven = not_given, idempotency_key: str | None = None, ) -> CardPushTransfer: - """Create a Card Push Transfer + """ + Create a Card Push Transfer Args: - amount: The transfer amount in USD cents. - - For Card Push transfers, must be positive. - business_application_identifier: The Business Application Identifier describes the type of transaction being performed. Your program must be approved for the specified Business Application Identifier in order to use it. @@ -493,6 +491,10 @@ async def create( merchant_state: The state of the merchant (generally your business) sending the transfer. + presentment_amount: The amount to transfer. The receiving bank will convert this to the cardholder's + currency. The amount that is applied to your Increase account matches the + currency of your account. + recipient_name: The name of the funds recipient. sender_address_city: The city of the sender. @@ -523,7 +525,6 @@ async def create( "/card_push_transfers", body=await async_maybe_transform( { - "amount": amount, "business_application_identifier": business_application_identifier, "card_token_id": card_token_id, "merchant_category_code": merchant_category_code, @@ -532,6 +533,7 @@ async def create( "merchant_name_prefix": merchant_name_prefix, "merchant_postal_code": merchant_postal_code, "merchant_state": merchant_state, + "presentment_amount": presentment_amount, "recipient_name": recipient_name, "sender_address_city": sender_address_city, "sender_address_line1": sender_address_line1, diff --git a/src/increase/types/card_push_transfer.py b/src/increase/types/card_push_transfer.py index 0ec3dadf..7718cb64 100644 --- a/src/increase/types/card_push_transfer.py +++ b/src/increase/types/card_push_transfer.py @@ -18,6 +18,7 @@ "CreatedByOAuthApplication", "CreatedByUser", "Decline", + "PresentmentAmount", "Submission", ] @@ -43,6 +44,9 @@ class Acceptance(BaseModel): network_transaction_identifier: Optional[str] = None """A unique identifier for the transaction on the card network.""" + settlement_amount: int + """The transfer amount in USD cents.""" + class Approval(BaseModel): approved_at: datetime @@ -240,6 +244,340 @@ class Decline(BaseModel): """ +class PresentmentAmount(BaseModel): + currency: Literal[ + "AFN", + "EUR", + "ALL", + "DZD", + "USD", + "AOA", + "ARS", + "AMD", + "AWG", + "AUD", + "AZN", + "BSD", + "BHD", + "BDT", + "BBD", + "BYN", + "BZD", + "BMD", + "INR", + "BTN", + "BOB", + "BOV", + "BAM", + "BWP", + "NOK", + "BRL", + "BND", + "BGN", + "BIF", + "CVE", + "KHR", + "CAD", + "KYD", + "CLP", + "CLF", + "CNY", + "COP", + "COU", + "KMF", + "CDF", + "NZD", + "CRC", + "CUP", + "CZK", + "DKK", + "DJF", + "DOP", + "EGP", + "SVC", + "ERN", + "SZL", + "ETB", + "FKP", + "FJD", + "GMD", + "GEL", + "GHS", + "GIP", + "GTQ", + "GBP", + "GNF", + "GYD", + "HTG", + "HNL", + "HKD", + "HUF", + "ISK", + "IDR", + "IRR", + "IQD", + "ILS", + "JMD", + "JPY", + "JOD", + "KZT", + "KES", + "KPW", + "KRW", + "KWD", + "KGS", + "LAK", + "LBP", + "LSL", + "ZAR", + "LRD", + "LYD", + "CHF", + "MOP", + "MKD", + "MGA", + "MWK", + "MYR", + "MVR", + "MRU", + "MUR", + "MXN", + "MXV", + "MDL", + "MNT", + "MAD", + "MZN", + "MMK", + "NAD", + "NPR", + "NIO", + "NGN", + "OMR", + "PKR", + "PAB", + "PGK", + "PYG", + "PEN", + "PHP", + "PLN", + "QAR", + "RON", + "RUB", + "RWF", + "SHP", + "WST", + "STN", + "SAR", + "RSD", + "SCR", + "SLE", + "SGD", + "SBD", + "SOS", + "SSP", + "LKR", + "SDG", + "SRD", + "SEK", + "CHE", + "CHW", + "SYP", + "TWD", + "TJS", + "TZS", + "THB", + "TOP", + "TTD", + "TND", + "TRY", + "TMT", + "UGX", + "UAH", + "AED", + "USN", + "UYU", + "UYI", + "UYW", + "UZS", + "VUV", + "VES", + "VED", + "VND", + "YER", + "ZMW", + "ZWG", + ] + """The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) currency code. + + - `AFN` - AFN + - `EUR` - EUR + - `ALL` - ALL + - `DZD` - DZD + - `USD` - USD + - `AOA` - AOA + - `ARS` - ARS + - `AMD` - AMD + - `AWG` - AWG + - `AUD` - AUD + - `AZN` - AZN + - `BSD` - BSD + - `BHD` - BHD + - `BDT` - BDT + - `BBD` - BBD + - `BYN` - BYN + - `BZD` - BZD + - `BMD` - BMD + - `INR` - INR + - `BTN` - BTN + - `BOB` - BOB + - `BOV` - BOV + - `BAM` - BAM + - `BWP` - BWP + - `NOK` - NOK + - `BRL` - BRL + - `BND` - BND + - `BGN` - BGN + - `BIF` - BIF + - `CVE` - CVE + - `KHR` - KHR + - `CAD` - CAD + - `KYD` - KYD + - `CLP` - CLP + - `CLF` - CLF + - `CNY` - CNY + - `COP` - COP + - `COU` - COU + - `KMF` - KMF + - `CDF` - CDF + - `NZD` - NZD + - `CRC` - CRC + - `CUP` - CUP + - `CZK` - CZK + - `DKK` - DKK + - `DJF` - DJF + - `DOP` - DOP + - `EGP` - EGP + - `SVC` - SVC + - `ERN` - ERN + - `SZL` - SZL + - `ETB` - ETB + - `FKP` - FKP + - `FJD` - FJD + - `GMD` - GMD + - `GEL` - GEL + - `GHS` - GHS + - `GIP` - GIP + - `GTQ` - GTQ + - `GBP` - GBP + - `GNF` - GNF + - `GYD` - GYD + - `HTG` - HTG + - `HNL` - HNL + - `HKD` - HKD + - `HUF` - HUF + - `ISK` - ISK + - `IDR` - IDR + - `IRR` - IRR + - `IQD` - IQD + - `ILS` - ILS + - `JMD` - JMD + - `JPY` - JPY + - `JOD` - JOD + - `KZT` - KZT + - `KES` - KES + - `KPW` - KPW + - `KRW` - KRW + - `KWD` - KWD + - `KGS` - KGS + - `LAK` - LAK + - `LBP` - LBP + - `LSL` - LSL + - `ZAR` - ZAR + - `LRD` - LRD + - `LYD` - LYD + - `CHF` - CHF + - `MOP` - MOP + - `MKD` - MKD + - `MGA` - MGA + - `MWK` - MWK + - `MYR` - MYR + - `MVR` - MVR + - `MRU` - MRU + - `MUR` - MUR + - `MXN` - MXN + - `MXV` - MXV + - `MDL` - MDL + - `MNT` - MNT + - `MAD` - MAD + - `MZN` - MZN + - `MMK` - MMK + - `NAD` - NAD + - `NPR` - NPR + - `NIO` - NIO + - `NGN` - NGN + - `OMR` - OMR + - `PKR` - PKR + - `PAB` - PAB + - `PGK` - PGK + - `PYG` - PYG + - `PEN` - PEN + - `PHP` - PHP + - `PLN` - PLN + - `QAR` - QAR + - `RON` - RON + - `RUB` - RUB + - `RWF` - RWF + - `SHP` - SHP + - `WST` - WST + - `STN` - STN + - `SAR` - SAR + - `RSD` - RSD + - `SCR` - SCR + - `SLE` - SLE + - `SGD` - SGD + - `SBD` - SBD + - `SOS` - SOS + - `SSP` - SSP + - `LKR` - LKR + - `SDG` - SDG + - `SRD` - SRD + - `SEK` - SEK + - `CHE` - CHE + - `CHW` - CHW + - `SYP` - SYP + - `TWD` - TWD + - `TJS` - TJS + - `TZS` - TZS + - `THB` - THB + - `TOP` - TOP + - `TTD` - TTD + - `TND` - TND + - `TRY` - TRY + - `TMT` - TMT + - `UGX` - UGX + - `UAH` - UAH + - `AED` - AED + - `USN` - USN + - `UYU` - UYU + - `UYI` - UYI + - `UYW` - UYW + - `UZS` - UZS + - `VUV` - VUV + - `VES` - VES + - `VED` - VED + - `VND` - VND + - `YER` - YER + - `ZMW` - ZMW + - `ZWG` - ZWG + """ + + value: str + """ + The amount value represented as a string containing a decimal number in major + units (so e.g., "12.34" for $12.34). + """ + + class Submission(BaseModel): retrieval_reference_number: str """A 12-digit retrieval reference number that identifies the transfer. @@ -276,9 +614,6 @@ class CardPushTransfer(BaseModel): account_id: str """The Account from which the transfer was sent.""" - amount: int - """The transfer amount in USD cents.""" - approval: Optional[Approval] = None """ If your account requires approvals for transfers and the transfer was approved, @@ -337,14 +672,6 @@ class CardPushTransfer(BaseModel): created_by: Optional[CreatedBy] = None """What object created the transfer, either via the API or the dashboard.""" - currency: Literal["USD"] - """ - The [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) code for the transfer's - currency. - - - `USD` - US Dollar (USD) - """ - decline: Optional[Decline] = None """ If the transfer is rejected by the card network or the destination financial @@ -389,6 +716,14 @@ class CardPushTransfer(BaseModel): merchant_state: str """The state of the merchant (generally your business) sending the transfer.""" + presentment_amount: PresentmentAmount + """The amount that was transferred. + + The receiving bank will have converted this to the cardholder's currency. The + amount that is applied to your Increase account matches the currency of your + account. + """ + recipient_name: str """The name of the funds recipient.""" diff --git a/src/increase/types/card_push_transfer_create_params.py b/src/increase/types/card_push_transfer_create_params.py index 9fae1c4e..d3b9d7f3 100644 --- a/src/increase/types/card_push_transfer_create_params.py +++ b/src/increase/types/card_push_transfer_create_params.py @@ -4,13 +4,10 @@ from typing_extensions import Literal, Required, TypedDict -__all__ = ["CardPushTransferCreateParams"] +__all__ = ["CardPushTransferCreateParams", "PresentmentAmount"] class CardPushTransferCreateParams(TypedDict, total=False): - amount: Required[int] - """The transfer amount in USD cents. For Card Push transfers, must be positive.""" - business_application_identifier: Required[ Literal[ "account_to_account", @@ -86,6 +83,13 @@ class CardPushTransferCreateParams(TypedDict, total=False): merchant_state: Required[str] """The state of the merchant (generally your business) sending the transfer.""" + presentment_amount: Required[PresentmentAmount] + """The amount to transfer. + + The receiving bank will convert this to the cardholder's currency. The amount + that is applied to your Increase account matches the currency of your account. + """ + recipient_name: Required[str] """The name of the funds recipient.""" @@ -109,3 +113,343 @@ class CardPushTransferCreateParams(TypedDict, total=False): require_approval: bool """Whether the transfer requires explicit approval via the dashboard or API.""" + + +class PresentmentAmount(TypedDict, total=False): + currency: Required[ + Literal[ + "AFN", + "EUR", + "ALL", + "DZD", + "USD", + "AOA", + "ARS", + "AMD", + "AWG", + "AUD", + "AZN", + "BSD", + "BHD", + "BDT", + "BBD", + "BYN", + "BZD", + "BMD", + "INR", + "BTN", + "BOB", + "BOV", + "BAM", + "BWP", + "NOK", + "BRL", + "BND", + "BGN", + "BIF", + "CVE", + "KHR", + "CAD", + "KYD", + "CLP", + "CLF", + "CNY", + "COP", + "COU", + "KMF", + "CDF", + "NZD", + "CRC", + "CUP", + "CZK", + "DKK", + "DJF", + "DOP", + "EGP", + "SVC", + "ERN", + "SZL", + "ETB", + "FKP", + "FJD", + "GMD", + "GEL", + "GHS", + "GIP", + "GTQ", + "GBP", + "GNF", + "GYD", + "HTG", + "HNL", + "HKD", + "HUF", + "ISK", + "IDR", + "IRR", + "IQD", + "ILS", + "JMD", + "JPY", + "JOD", + "KZT", + "KES", + "KPW", + "KRW", + "KWD", + "KGS", + "LAK", + "LBP", + "LSL", + "ZAR", + "LRD", + "LYD", + "CHF", + "MOP", + "MKD", + "MGA", + "MWK", + "MYR", + "MVR", + "MRU", + "MUR", + "MXN", + "MXV", + "MDL", + "MNT", + "MAD", + "MZN", + "MMK", + "NAD", + "NPR", + "NIO", + "NGN", + "OMR", + "PKR", + "PAB", + "PGK", + "PYG", + "PEN", + "PHP", + "PLN", + "QAR", + "RON", + "RUB", + "RWF", + "SHP", + "WST", + "STN", + "SAR", + "RSD", + "SCR", + "SLE", + "SGD", + "SBD", + "SOS", + "SSP", + "LKR", + "SDG", + "SRD", + "SEK", + "CHE", + "CHW", + "SYP", + "TWD", + "TJS", + "TZS", + "THB", + "TOP", + "TTD", + "TND", + "TRY", + "TMT", + "UGX", + "UAH", + "AED", + "USN", + "UYU", + "UYI", + "UYW", + "UZS", + "VUV", + "VES", + "VED", + "VND", + "YER", + "ZMW", + "ZWG", + ] + ] + """The ISO 4217 currency code representing the currency of the amount. + + - `AFN` - AFN + - `EUR` - EUR + - `ALL` - ALL + - `DZD` - DZD + - `USD` - USD + - `AOA` - AOA + - `ARS` - ARS + - `AMD` - AMD + - `AWG` - AWG + - `AUD` - AUD + - `AZN` - AZN + - `BSD` - BSD + - `BHD` - BHD + - `BDT` - BDT + - `BBD` - BBD + - `BYN` - BYN + - `BZD` - BZD + - `BMD` - BMD + - `INR` - INR + - `BTN` - BTN + - `BOB` - BOB + - `BOV` - BOV + - `BAM` - BAM + - `BWP` - BWP + - `NOK` - NOK + - `BRL` - BRL + - `BND` - BND + - `BGN` - BGN + - `BIF` - BIF + - `CVE` - CVE + - `KHR` - KHR + - `CAD` - CAD + - `KYD` - KYD + - `CLP` - CLP + - `CLF` - CLF + - `CNY` - CNY + - `COP` - COP + - `COU` - COU + - `KMF` - KMF + - `CDF` - CDF + - `NZD` - NZD + - `CRC` - CRC + - `CUP` - CUP + - `CZK` - CZK + - `DKK` - DKK + - `DJF` - DJF + - `DOP` - DOP + - `EGP` - EGP + - `SVC` - SVC + - `ERN` - ERN + - `SZL` - SZL + - `ETB` - ETB + - `FKP` - FKP + - `FJD` - FJD + - `GMD` - GMD + - `GEL` - GEL + - `GHS` - GHS + - `GIP` - GIP + - `GTQ` - GTQ + - `GBP` - GBP + - `GNF` - GNF + - `GYD` - GYD + - `HTG` - HTG + - `HNL` - HNL + - `HKD` - HKD + - `HUF` - HUF + - `ISK` - ISK + - `IDR` - IDR + - `IRR` - IRR + - `IQD` - IQD + - `ILS` - ILS + - `JMD` - JMD + - `JPY` - JPY + - `JOD` - JOD + - `KZT` - KZT + - `KES` - KES + - `KPW` - KPW + - `KRW` - KRW + - `KWD` - KWD + - `KGS` - KGS + - `LAK` - LAK + - `LBP` - LBP + - `LSL` - LSL + - `ZAR` - ZAR + - `LRD` - LRD + - `LYD` - LYD + - `CHF` - CHF + - `MOP` - MOP + - `MKD` - MKD + - `MGA` - MGA + - `MWK` - MWK + - `MYR` - MYR + - `MVR` - MVR + - `MRU` - MRU + - `MUR` - MUR + - `MXN` - MXN + - `MXV` - MXV + - `MDL` - MDL + - `MNT` - MNT + - `MAD` - MAD + - `MZN` - MZN + - `MMK` - MMK + - `NAD` - NAD + - `NPR` - NPR + - `NIO` - NIO + - `NGN` - NGN + - `OMR` - OMR + - `PKR` - PKR + - `PAB` - PAB + - `PGK` - PGK + - `PYG` - PYG + - `PEN` - PEN + - `PHP` - PHP + - `PLN` - PLN + - `QAR` - QAR + - `RON` - RON + - `RUB` - RUB + - `RWF` - RWF + - `SHP` - SHP + - `WST` - WST + - `STN` - STN + - `SAR` - SAR + - `RSD` - RSD + - `SCR` - SCR + - `SLE` - SLE + - `SGD` - SGD + - `SBD` - SBD + - `SOS` - SOS + - `SSP` - SSP + - `LKR` - LKR + - `SDG` - SDG + - `SRD` - SRD + - `SEK` - SEK + - `CHE` - CHE + - `CHW` - CHW + - `SYP` - SYP + - `TWD` - TWD + - `TJS` - TJS + - `TZS` - TZS + - `THB` - THB + - `TOP` - TOP + - `TTD` - TTD + - `TND` - TND + - `TRY` - TRY + - `TMT` - TMT + - `UGX` - UGX + - `UAH` - UAH + - `AED` - AED + - `USN` - USN + - `UYU` - UYU + - `UYI` - UYI + - `UYW` - UYW + - `UZS` - UZS + - `VUV` - VUV + - `VES` - VES + - `VED` - VED + - `VND` - VND + - `YER` - YER + - `ZMW` - ZMW + - `ZWG` - ZWG + """ + + value: Required[str] + """The amount value as a decimal string in the currency's major unit. + + For example, for USD, '1234.56' represents 1234 dollars and 56 cents. For JPY, + '1234' represents 1234 yen. A currency with minor units requires at least one + decimal place and supports up to the number of decimal places defined by the + currency's minor units. A currency without minor units does not support any + decimal places. + """ diff --git a/src/increase/types/transaction.py b/src/increase/types/transaction.py index 27672f96..d3a0b993 100644 --- a/src/increase/types/transaction.py +++ b/src/increase/types/transaction.py @@ -1187,7 +1187,7 @@ def __getattr__(self, attr: str) -> object: ... class SourceCardPushTransferAcceptance(BaseModel): - amount: int + settlement_amount: int """The transfer amount in USD cents.""" transfer_id: str diff --git a/tests/api_resources/test_card_push_transfers.py b/tests/api_resources/test_card_push_transfers.py index 00d3b545..c12a8d0d 100644 --- a/tests/api_resources/test_card_push_transfers.py +++ b/tests/api_resources/test_card_push_transfers.py @@ -22,7 +22,6 @@ class TestCardPushTransfers: @parametrize def test_method_create(self, client: Increase) -> None: card_push_transfer = client.card_push_transfers.create( - amount=100, business_application_identifier="funds_disbursement", card_token_id="outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code="1234", @@ -31,6 +30,10 @@ def test_method_create(self, client: Increase) -> None: merchant_name_prefix="Acme", merchant_postal_code="10045", merchant_state="NY", + presentment_amount={ + "currency": "USD", + "value": "1234.56", + }, recipient_name="Ian Crease", sender_address_city="New York", sender_address_line1="33 Liberty Street", @@ -44,7 +47,6 @@ def test_method_create(self, client: Increase) -> None: @parametrize def test_method_create_with_all_params(self, client: Increase) -> None: card_push_transfer = client.card_push_transfers.create( - amount=100, business_application_identifier="funds_disbursement", card_token_id="outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code="1234", @@ -53,6 +55,10 @@ def test_method_create_with_all_params(self, client: Increase) -> None: merchant_name_prefix="Acme", merchant_postal_code="10045", merchant_state="NY", + presentment_amount={ + "currency": "USD", + "value": "1234.56", + }, recipient_name="Ian Crease", sender_address_city="New York", sender_address_line1="33 Liberty Street", @@ -67,7 +73,6 @@ def test_method_create_with_all_params(self, client: Increase) -> None: @parametrize def test_raw_response_create(self, client: Increase) -> None: response = client.card_push_transfers.with_raw_response.create( - amount=100, business_application_identifier="funds_disbursement", card_token_id="outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code="1234", @@ -76,6 +81,10 @@ def test_raw_response_create(self, client: Increase) -> None: merchant_name_prefix="Acme", merchant_postal_code="10045", merchant_state="NY", + presentment_amount={ + "currency": "USD", + "value": "1234.56", + }, recipient_name="Ian Crease", sender_address_city="New York", sender_address_line1="33 Liberty Street", @@ -93,7 +102,6 @@ def test_raw_response_create(self, client: Increase) -> None: @parametrize def test_streaming_response_create(self, client: Increase) -> None: with client.card_push_transfers.with_streaming_response.create( - amount=100, business_application_identifier="funds_disbursement", card_token_id="outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code="1234", @@ -102,6 +110,10 @@ def test_streaming_response_create(self, client: Increase) -> None: merchant_name_prefix="Acme", merchant_postal_code="10045", merchant_state="NY", + presentment_amount={ + "currency": "USD", + "value": "1234.56", + }, recipient_name="Ian Crease", sender_address_city="New York", sender_address_line1="33 Liberty Street", @@ -283,7 +295,6 @@ class TestAsyncCardPushTransfers: @parametrize async def test_method_create(self, async_client: AsyncIncrease) -> None: card_push_transfer = await async_client.card_push_transfers.create( - amount=100, business_application_identifier="funds_disbursement", card_token_id="outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code="1234", @@ -292,6 +303,10 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None: merchant_name_prefix="Acme", merchant_postal_code="10045", merchant_state="NY", + presentment_amount={ + "currency": "USD", + "value": "1234.56", + }, recipient_name="Ian Crease", sender_address_city="New York", sender_address_line1="33 Liberty Street", @@ -305,7 +320,6 @@ async def test_method_create(self, async_client: AsyncIncrease) -> None: @parametrize async def test_method_create_with_all_params(self, async_client: AsyncIncrease) -> None: card_push_transfer = await async_client.card_push_transfers.create( - amount=100, business_application_identifier="funds_disbursement", card_token_id="outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code="1234", @@ -314,6 +328,10 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) merchant_name_prefix="Acme", merchant_postal_code="10045", merchant_state="NY", + presentment_amount={ + "currency": "USD", + "value": "1234.56", + }, recipient_name="Ian Crease", sender_address_city="New York", sender_address_line1="33 Liberty Street", @@ -328,7 +346,6 @@ async def test_method_create_with_all_params(self, async_client: AsyncIncrease) @parametrize async def test_raw_response_create(self, async_client: AsyncIncrease) -> None: response = await async_client.card_push_transfers.with_raw_response.create( - amount=100, business_application_identifier="funds_disbursement", card_token_id="outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code="1234", @@ -337,6 +354,10 @@ async def test_raw_response_create(self, async_client: AsyncIncrease) -> None: merchant_name_prefix="Acme", merchant_postal_code="10045", merchant_state="NY", + presentment_amount={ + "currency": "USD", + "value": "1234.56", + }, recipient_name="Ian Crease", sender_address_city="New York", sender_address_line1="33 Liberty Street", @@ -354,7 +375,6 @@ async def test_raw_response_create(self, async_client: AsyncIncrease) -> None: @parametrize async def test_streaming_response_create(self, async_client: AsyncIncrease) -> None: async with async_client.card_push_transfers.with_streaming_response.create( - amount=100, business_application_identifier="funds_disbursement", card_token_id="outbound_card_token_zlt0ml6youq3q7vcdlg0", merchant_category_code="1234", @@ -363,6 +383,10 @@ async def test_streaming_response_create(self, async_client: AsyncIncrease) -> N merchant_name_prefix="Acme", merchant_postal_code="10045", merchant_state="NY", + presentment_amount={ + "currency": "USD", + "value": "1234.56", + }, recipient_name="Ian Crease", sender_address_city="New York", sender_address_line1="33 Liberty Street",