diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 786891957..c3ae3e4ab 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.378.0" + ".": "0.379.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 78b249d42..fff512bc2 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 228 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-f07048979577d746042198f73c1bac07529dd48f26402f60def922a12b6e01e0.yml -openapi_spec_hash: 6d1ca8aa0b64f414db957540bbeab5ee +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/increase%2Fincrease-e9e51b3c9b5c8d9e6e0267b62a12a00fedbce419b765192aa4e2470984192e1f.yml +openapi_spec_hash: 84bc91dd8b8a80edf447dddad15c23fc config_hash: eb2035151c7b49c2f12caf55469b8f9a diff --git a/CHANGELOG.md b/CHANGELOG.md index 3f1ed2f75..19495654a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.379.0 (2025-10-31) + +Full Changelog: [v0.378.0...v0.379.0](https://github.com/Increase/increase-python/compare/v0.378.0...v0.379.0) + +### Features + +* **api:** api update ([e44827d](https://github.com/Increase/increase-python/commit/e44827d17007b5ff4cebf2bc16a9b7c9baf184e8)) + ## 0.378.0 (2025-10-31) Full Changelog: [v0.377.0...v0.378.0](https://github.com/Increase/increase-python/compare/v0.377.0...v0.378.0) diff --git a/README.md b/README.md index 9f25b034e..ff695d451 100644 --- a/README.md +++ b/README.md @@ -182,6 +182,21 @@ for account in first_page.data: # Remove `await` for non-async usage. ``` +## Nested params + +Nested parameters are dictionaries, typed using `TypedDict`, for example: + +```python +from increase import Increase + +client = Increase() + +account = client.accounts.create( + name="New Account!", +) +print(account.id) +``` + ## File uploads Request parameters that correspond to file uploads can be passed as `bytes`, or a [`PathLike`](https://docs.python.org/3/library/os.html#os.PathLike) instance or a tuple of `(filename, contents, media type)`. diff --git a/pyproject.toml b/pyproject.toml index e8c1617a3..3f9d704ea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "increase" -version = "0.378.0" +version = "0.379.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 209179b28..e6308ca0f 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.378.0" # x-release-please-version +__version__ = "0.379.0" # x-release-please-version diff --git a/src/increase/resources/exports.py b/src/increase/resources/exports.py index 6e9911b12..754a1a9dd 100644 --- a/src/increase/resources/exports.py +++ b/src/increase/resources/exports.py @@ -62,7 +62,7 @@ def create( bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | Omit = omit, entity_csv: export_create_params.EntityCsv | Omit = omit, transaction_csv: export_create_params.TransactionCsv | Omit = omit, - vendor_csv: object | Omit = omit, + vendor_csv: export_create_params.VendorCsv | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -279,7 +279,7 @@ async def create( bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | Omit = omit, entity_csv: export_create_params.EntityCsv | Omit = omit, transaction_csv: export_create_params.TransactionCsv | Omit = omit, - vendor_csv: object | Omit = omit, + vendor_csv: export_create_params.VendorCsv | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/increase/types/card_dispute.py b/src/increase/types/card_dispute.py index eced5df31..375569bea 100644 --- a/src/increase/types/card_dispute.py +++ b/src/increase/types/card_dispute.py @@ -12,6 +12,10 @@ "Visa", "VisaNetworkEvent", "VisaNetworkEventAttachmentFile", + "VisaNetworkEventChargebackAccepted", + "VisaNetworkEventChargebackSubmitted", + "VisaNetworkEventChargebackTimedOut", + "VisaNetworkEventMerchantPrearbitrationDeclineSubmitted", "VisaNetworkEventMerchantPrearbitrationReceived", "VisaNetworkEventMerchantPrearbitrationReceivedCardholderNoLongerDisputes", "VisaNetworkEventMerchantPrearbitrationReceivedCompellingEvidence", @@ -21,19 +25,28 @@ "VisaNetworkEventMerchantPrearbitrationReceivedInvalidDispute", "VisaNetworkEventMerchantPrearbitrationReceivedNonFiatCurrencyOrNonFungibleTokenReceived", "VisaNetworkEventMerchantPrearbitrationReceivedPriorUndisputedNonFraudTransactions", + "VisaNetworkEventMerchantPrearbitrationTimedOut", "VisaNetworkEventRepresented", "VisaNetworkEventRepresentedCardholderNoLongerDisputes", "VisaNetworkEventRepresentedCreditOrReversalProcessed", "VisaNetworkEventRepresentedInvalidDispute", + "VisaNetworkEventRepresentedNonFiatCurrencyOrNonFungibleTokenAsDescribed", "VisaNetworkEventRepresentedNonFiatCurrencyOrNonFungibleTokenReceived", "VisaNetworkEventRepresentedProofOfCashDisbursement", "VisaNetworkEventRepresentedReversalIssued", + "VisaNetworkEventRepresentmentTimedOut", + "VisaNetworkEventUserPrearbitrationAccepted", + "VisaNetworkEventUserPrearbitrationDeclined", + "VisaNetworkEventUserPrearbitrationSubmitted", + "VisaNetworkEventUserPrearbitrationTimedOut", + "VisaNetworkEventUserWithdrawalSubmitted", "VisaUserSubmission", "VisaUserSubmissionAttachmentFile", "VisaUserSubmissionChargeback", "VisaUserSubmissionChargebackAuthorization", "VisaUserSubmissionChargebackConsumerCanceledMerchandise", "VisaUserSubmissionChargebackConsumerCanceledMerchandiseCardholderCancellation", + "VisaUserSubmissionChargebackConsumerCanceledMerchandiseNotReturned", "VisaUserSubmissionChargebackConsumerCanceledMerchandiseReturnAttempted", "VisaUserSubmissionChargebackConsumerCanceledMerchandiseReturned", "VisaUserSubmissionChargebackConsumerCanceledRecurringTransaction", @@ -41,12 +54,16 @@ "VisaUserSubmissionChargebackConsumerCanceledServices", "VisaUserSubmissionChargebackConsumerCanceledServicesCardholderCancellation", "VisaUserSubmissionChargebackConsumerCanceledServicesGuaranteedReservation", + "VisaUserSubmissionChargebackConsumerCanceledServicesOther", + "VisaUserSubmissionChargebackConsumerCanceledServicesTimeshare", "VisaUserSubmissionChargebackConsumerCounterfeitMerchandise", "VisaUserSubmissionChargebackConsumerCreditNotProcessed", "VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandise", + "VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandiseNotReturned", "VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandiseReturnAttempted", "VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandiseReturned", "VisaUserSubmissionChargebackConsumerMerchandiseMisrepresentation", + "VisaUserSubmissionChargebackConsumerMerchandiseMisrepresentationNotReturned", "VisaUserSubmissionChargebackConsumerMerchandiseMisrepresentationReturnAttempted", "VisaUserSubmissionChargebackConsumerMerchandiseMisrepresentationReturned", "VisaUserSubmissionChargebackConsumerMerchandiseNotAsDescribed", @@ -55,12 +72,16 @@ "VisaUserSubmissionChargebackConsumerMerchandiseNotReceived", "VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedCardholderCancellationPriorToExpectedReceipt", "VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayed", + "VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayedNotReturned", "VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayedReturnAttempted", "VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayedReturned", "VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDeliveredToWrongLocation", "VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedMerchantCancellation", + "VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedNoCancellation", + "VisaUserSubmissionChargebackConsumerNonReceiptOfCash", "VisaUserSubmissionChargebackConsumerOriginalCreditTransactionNotAccepted", "VisaUserSubmissionChargebackConsumerQualityMerchandise", + "VisaUserSubmissionChargebackConsumerQualityMerchandiseNotReturned", "VisaUserSubmissionChargebackConsumerQualityMerchandiseOngoingNegotiations", "VisaUserSubmissionChargebackConsumerQualityMerchandiseReturnAttempted", "VisaUserSubmissionChargebackConsumerQualityMerchandiseReturned", @@ -74,6 +95,7 @@ "VisaUserSubmissionChargebackConsumerServicesNotReceived", "VisaUserSubmissionChargebackConsumerServicesNotReceivedCardholderCancellationPriorToExpectedReceipt", "VisaUserSubmissionChargebackConsumerServicesNotReceivedMerchantCancellation", + "VisaUserSubmissionChargebackConsumerServicesNotReceivedNoCancellation", "VisaUserSubmissionChargebackFraud", "VisaUserSubmissionChargebackProcessingError", "VisaUserSubmissionChargebackProcessingErrorDuplicateTransaction", @@ -106,6 +128,22 @@ class VisaNetworkEventAttachmentFile(BaseModel): """The ID of the file attached to the Card Dispute.""" +class VisaNetworkEventChargebackAccepted(BaseModel): + pass + + +class VisaNetworkEventChargebackSubmitted(BaseModel): + pass + + +class VisaNetworkEventChargebackTimedOut(BaseModel): + pass + + +class VisaNetworkEventMerchantPrearbitrationDeclineSubmitted(BaseModel): + pass + + class VisaNetworkEventMerchantPrearbitrationReceivedCardholderNoLongerDisputes(BaseModel): explanation: Optional[str] = None """ @@ -311,6 +349,10 @@ class VisaNetworkEventMerchantPrearbitrationReceived(BaseModel): """ +class VisaNetworkEventMerchantPrearbitrationTimedOut(BaseModel): + pass + + class VisaNetworkEventRepresentedCardholderNoLongerDisputes(BaseModel): explanation: Optional[str] = None """ @@ -441,6 +483,10 @@ class VisaNetworkEventRepresentedInvalidDispute(BaseModel): """ +class VisaNetworkEventRepresentedNonFiatCurrencyOrNonFungibleTokenAsDescribed(BaseModel): + pass + + class VisaNetworkEventRepresentedNonFiatCurrencyOrNonFungibleTokenReceived(BaseModel): blockchain_transaction_hash: str """Blockchain transaction hash.""" @@ -481,7 +527,9 @@ class VisaNetworkEventRepresented(BaseModel): invalid_dispute: Optional[VisaNetworkEventRepresentedInvalidDispute] = None """Invalid dispute details. Present if and only if `reason` is `invalid_dispute`.""" - non_fiat_currency_or_non_fungible_token_as_described: Optional[object] = None + non_fiat_currency_or_non_fungible_token_as_described: Optional[ + VisaNetworkEventRepresentedNonFiatCurrencyOrNonFungibleTokenAsDescribed + ] = None """Non-fiat currency or non-fungible token as described details. Present if and only if `reason` is @@ -533,6 +581,30 @@ class VisaNetworkEventRepresented(BaseModel): """ +class VisaNetworkEventRepresentmentTimedOut(BaseModel): + pass + + +class VisaNetworkEventUserPrearbitrationAccepted(BaseModel): + pass + + +class VisaNetworkEventUserPrearbitrationDeclined(BaseModel): + pass + + +class VisaNetworkEventUserPrearbitrationSubmitted(BaseModel): + pass + + +class VisaNetworkEventUserPrearbitrationTimedOut(BaseModel): + pass + + +class VisaNetworkEventUserWithdrawalSubmitted(BaseModel): + pass + + class VisaNetworkEvent(BaseModel): attachment_files: List[VisaNetworkEventAttachmentFile] """The files attached to the Visa Card Dispute User Submission.""" @@ -592,7 +664,7 @@ class VisaNetworkEvent(BaseModel): Network Event: details will be under the `user_withdrawal_submitted` object. """ - chargeback_accepted: Optional[object] = None + chargeback_accepted: Optional[VisaNetworkEventChargebackAccepted] = None """A Card Dispute Chargeback Accepted Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -601,7 +673,7 @@ class VisaNetworkEvent(BaseModel): been accepted by the merchant. """ - chargeback_submitted: Optional[object] = None + chargeback_submitted: Optional[VisaNetworkEventChargebackSubmitted] = None """A Card Dispute Chargeback Submitted Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -610,7 +682,7 @@ class VisaNetworkEvent(BaseModel): has been submitted to the network. """ - chargeback_timed_out: Optional[object] = None + chargeback_timed_out: Optional[VisaNetworkEventChargebackTimedOut] = None """A Card Dispute Chargeback Timed Out Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -628,7 +700,7 @@ class VisaNetworkEvent(BaseModel): dispute_financial_transaction_id: Optional[str] = None """The dispute financial transaction that resulted from the network event, if any.""" - merchant_prearbitration_decline_submitted: Optional[object] = None + merchant_prearbitration_decline_submitted: Optional[VisaNetworkEventMerchantPrearbitrationDeclineSubmitted] = None """ A Card Dispute Merchant Pre-Arbitration Decline Submitted Visa Network Event object. This field will be present in the JSON response if and only if @@ -648,7 +720,7 @@ class VisaNetworkEvent(BaseModel): favor. """ - merchant_prearbitration_timed_out: Optional[object] = None + merchant_prearbitration_timed_out: Optional[VisaNetworkEventMerchantPrearbitrationTimedOut] = None """A Card Dispute Merchant Pre-Arbitration Timed Out Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -667,7 +739,7 @@ class VisaNetworkEvent(BaseModel): user's chargeback and has re-presented the payment. """ - representment_timed_out: Optional[object] = None + representment_timed_out: Optional[VisaNetworkEventRepresentmentTimedOut] = None """A Card Dispute Re-presentment Timed Out Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -677,7 +749,7 @@ class VisaNetworkEvent(BaseModel): limit. """ - user_prearbitration_accepted: Optional[object] = None + user_prearbitration_accepted: Optional[VisaNetworkEventUserPrearbitrationAccepted] = None """A Card Dispute User Pre-Arbitration Accepted Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -686,7 +758,7 @@ class VisaNetworkEvent(BaseModel): the merchant has accepted the user's prearbitration request in the user's favor. """ - user_prearbitration_declined: Optional[object] = None + user_prearbitration_declined: Optional[VisaNetworkEventUserPrearbitrationDeclined] = None """A Card Dispute User Pre-Arbitration Declined Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -695,7 +767,7 @@ class VisaNetworkEvent(BaseModel): the merchant has declined the user's prearbitration request. """ - user_prearbitration_submitted: Optional[object] = None + user_prearbitration_submitted: Optional[VisaNetworkEventUserPrearbitrationSubmitted] = None """A Card Dispute User Pre-Arbitration Submitted Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -704,7 +776,7 @@ class VisaNetworkEvent(BaseModel): that the user's request for prearbitration has been submitted to the network. """ - user_prearbitration_timed_out: Optional[object] = None + user_prearbitration_timed_out: Optional[VisaNetworkEventUserPrearbitrationTimedOut] = None """A Card Dispute User Pre-Arbitration Timed Out Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -713,7 +785,7 @@ class VisaNetworkEvent(BaseModel): that the merchant has timed out responding to the user's prearbitration request. """ - user_withdrawal_submitted: Optional[object] = None + user_withdrawal_submitted: Optional[VisaNetworkEventUserWithdrawalSubmitted] = None """A Card Dispute User Withdrawal Submitted Visa Network Event object. This field will be present in the JSON response if and only if `category` is @@ -760,6 +832,10 @@ class VisaUserSubmissionChargebackConsumerCanceledMerchandiseCardholderCancellat """Reason.""" +class VisaUserSubmissionChargebackConsumerCanceledMerchandiseNotReturned(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerCanceledMerchandiseReturnAttempted(BaseModel): attempt_explanation: str """Attempt explanation.""" @@ -825,7 +901,7 @@ class VisaUserSubmissionChargebackConsumerCanceledMerchandise(BaseModel): - `prohibited_by_local_law` - Prohibited by local law. """ - not_returned: Optional[object] = None + not_returned: Optional[VisaUserSubmissionChargebackConsumerCanceledMerchandiseNotReturned] = None """Not returned. Present if and only if `return_outcome` is `not_returned`.""" purchase_explanation: str @@ -920,6 +996,14 @@ class VisaUserSubmissionChargebackConsumerCanceledServicesGuaranteedReservation( """ +class VisaUserSubmissionChargebackConsumerCanceledServicesOther(BaseModel): + pass + + +class VisaUserSubmissionChargebackConsumerCanceledServicesTimeshare(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerCanceledServices(BaseModel): cardholder_cancellation: VisaUserSubmissionChargebackConsumerCanceledServicesCardholderCancellation """Cardholder cancellation.""" @@ -940,7 +1024,7 @@ class VisaUserSubmissionChargebackConsumerCanceledServices(BaseModel): - `prohibited_by_local_law` - Prohibited by local law. """ - other: Optional[object] = None + other: Optional[VisaUserSubmissionChargebackConsumerCanceledServicesOther] = None """Other service type explanation. Present if and only if `service_type` is `other`. @@ -957,7 +1041,7 @@ class VisaUserSubmissionChargebackConsumerCanceledServices(BaseModel): - `timeshare` - Timeshare. """ - timeshare: Optional[object] = None + timeshare: Optional[VisaUserSubmissionChargebackConsumerCanceledServicesTimeshare] = None """Timeshare explanation. Present if and only if `service_type` is `timeshare`.""" @@ -983,6 +1067,10 @@ class VisaUserSubmissionChargebackConsumerCreditNotProcessed(BaseModel): """Credit expected at.""" +class VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandiseNotReturned(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandiseReturnAttempted(BaseModel): attempt_explanation: str """Attempt explanation.""" @@ -1043,7 +1131,7 @@ class VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandise(BaseMode - `prohibited_by_local_law` - Prohibited by local law. """ - not_returned: Optional[object] = None + not_returned: Optional[VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandiseNotReturned] = None """Not returned. Present if and only if `return_outcome` is `not_returned`.""" order_and_issue_explanation: str @@ -1070,6 +1158,10 @@ class VisaUserSubmissionChargebackConsumerDamagedOrDefectiveMerchandise(BaseMode """Returned. Present if and only if `return_outcome` is `returned`.""" +class VisaUserSubmissionChargebackConsumerMerchandiseMisrepresentationNotReturned(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerMerchandiseMisrepresentationReturnAttempted(BaseModel): attempt_explanation: str """Attempt explanation.""" @@ -1133,7 +1225,7 @@ class VisaUserSubmissionChargebackConsumerMerchandiseMisrepresentation(BaseModel misrepresentation_explanation: str """Misrepresentation explanation.""" - not_returned: Optional[object] = None + not_returned: Optional[VisaUserSubmissionChargebackConsumerMerchandiseMisrepresentationNotReturned] = None """Not returned. Present if and only if `return_outcome` is `not_returned`.""" purchase_explanation: str @@ -1248,6 +1340,10 @@ class VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedCardholderCancel """Reason.""" +class VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayedNotReturned(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayedReturnAttempted(BaseModel): attempted_at: date """Attempted at.""" @@ -1265,7 +1361,7 @@ class VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayed(BaseMode explanation: str """Explanation.""" - not_returned: Optional[object] = None + not_returned: Optional[VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayedNotReturned] = None """Not returned. Present if and only if `return_outcome` is `not_returned`.""" return_attempted: Optional[VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedDelayedReturnAttempted] = None @@ -1296,6 +1392,10 @@ class VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedMerchantCancella """Canceled at.""" +class VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedNoCancellation(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerMerchandiseNotReceived(BaseModel): cancellation_outcome: Literal[ "cardholder_cancellation_prior_to_expected_receipt", "merchant_cancellation", "no_cancellation" @@ -1353,7 +1453,7 @@ class VisaUserSubmissionChargebackConsumerMerchandiseNotReceived(BaseModel): - `prohibited_by_local_law` - Prohibited by local law. """ - no_cancellation: Optional[object] = None + no_cancellation: Optional[VisaUserSubmissionChargebackConsumerMerchandiseNotReceivedNoCancellation] = None """No cancellation. Present if and only if `cancellation_outcome` is `no_cancellation`. @@ -1363,6 +1463,10 @@ class VisaUserSubmissionChargebackConsumerMerchandiseNotReceived(BaseModel): """Purchase information and explanation.""" +class VisaUserSubmissionChargebackConsumerNonReceiptOfCash(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerOriginalCreditTransactionNotAccepted(BaseModel): explanation: str """Explanation.""" @@ -1376,6 +1480,10 @@ class VisaUserSubmissionChargebackConsumerOriginalCreditTransactionNotAccepted(B """ +class VisaUserSubmissionChargebackConsumerQualityMerchandiseNotReturned(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerQualityMerchandiseOngoingNegotiations(BaseModel): explanation: str """ @@ -1453,7 +1561,7 @@ class VisaUserSubmissionChargebackConsumerQualityMerchandise(BaseModel): - `prohibited_by_local_law` - Prohibited by local law. """ - not_returned: Optional[object] = None + not_returned: Optional[VisaUserSubmissionChargebackConsumerQualityMerchandiseNotReturned] = None """Not returned. Present if and only if `return_outcome` is `not_returned`.""" ongoing_negotiations: Optional[VisaUserSubmissionChargebackConsumerQualityMerchandiseOngoingNegotiations] = None @@ -1632,6 +1740,10 @@ class VisaUserSubmissionChargebackConsumerServicesNotReceivedMerchantCancellatio """Canceled at.""" +class VisaUserSubmissionChargebackConsumerServicesNotReceivedNoCancellation(BaseModel): + pass + + class VisaUserSubmissionChargebackConsumerServicesNotReceived(BaseModel): cancellation_outcome: Literal[ "cardholder_cancellation_prior_to_expected_receipt", "merchant_cancellation", "no_cancellation" @@ -1669,7 +1781,7 @@ class VisaUserSubmissionChargebackConsumerServicesNotReceived(BaseModel): - `prohibited_by_local_law` - Prohibited by local law. """ - no_cancellation: Optional[object] = None + no_cancellation: Optional[VisaUserSubmissionChargebackConsumerServicesNotReceivedNoCancellation] = None """No cancellation. Present if and only if `cancellation_outcome` is `no_cancellation`. @@ -1885,7 +1997,7 @@ class VisaUserSubmissionChargeback(BaseModel): Present if and only if `category` is `consumer_merchandise_not_received`. """ - consumer_non_receipt_of_cash: Optional[object] = None + consumer_non_receipt_of_cash: Optional[VisaUserSubmissionChargebackConsumerNonReceiptOfCash] = None """Non-receipt of cash. Present if and only if `category` is `consumer_non_receipt_of_cash`. diff --git a/src/increase/types/card_dispute_create_params.py b/src/increase/types/card_dispute_create_params.py index 1f1cc43f7..089cf7add 100644 --- a/src/increase/types/card_dispute_create_params.py +++ b/src/increase/types/card_dispute_create_params.py @@ -15,6 +15,7 @@ "VisaAuthorization", "VisaConsumerCanceledMerchandise", "VisaConsumerCanceledMerchandiseCardholderCancellation", + "VisaConsumerCanceledMerchandiseNotReturned", "VisaConsumerCanceledMerchandiseReturnAttempted", "VisaConsumerCanceledMerchandiseReturned", "VisaConsumerCanceledRecurringTransaction", @@ -22,12 +23,16 @@ "VisaConsumerCanceledServices", "VisaConsumerCanceledServicesCardholderCancellation", "VisaConsumerCanceledServicesGuaranteedReservation", + "VisaConsumerCanceledServicesOther", + "VisaConsumerCanceledServicesTimeshare", "VisaConsumerCounterfeitMerchandise", "VisaConsumerCreditNotProcessed", "VisaConsumerDamagedOrDefectiveMerchandise", + "VisaConsumerDamagedOrDefectiveMerchandiseNotReturned", "VisaConsumerDamagedOrDefectiveMerchandiseReturnAttempted", "VisaConsumerDamagedOrDefectiveMerchandiseReturned", "VisaConsumerMerchandiseMisrepresentation", + "VisaConsumerMerchandiseMisrepresentationNotReturned", "VisaConsumerMerchandiseMisrepresentationReturnAttempted", "VisaConsumerMerchandiseMisrepresentationReturned", "VisaConsumerMerchandiseNotAsDescribed", @@ -36,12 +41,16 @@ "VisaConsumerMerchandiseNotReceived", "VisaConsumerMerchandiseNotReceivedCardholderCancellationPriorToExpectedReceipt", "VisaConsumerMerchandiseNotReceivedDelayed", + "VisaConsumerMerchandiseNotReceivedDelayedNotReturned", "VisaConsumerMerchandiseNotReceivedDelayedReturnAttempted", "VisaConsumerMerchandiseNotReceivedDelayedReturned", "VisaConsumerMerchandiseNotReceivedDeliveredToWrongLocation", "VisaConsumerMerchandiseNotReceivedMerchantCancellation", + "VisaConsumerMerchandiseNotReceivedNoCancellation", + "VisaConsumerNonReceiptOfCash", "VisaConsumerOriginalCreditTransactionNotAccepted", "VisaConsumerQualityMerchandise", + "VisaConsumerQualityMerchandiseNotReturned", "VisaConsumerQualityMerchandiseOngoingNegotiations", "VisaConsumerQualityMerchandiseReturnAttempted", "VisaConsumerQualityMerchandiseReturned", @@ -55,6 +64,7 @@ "VisaConsumerServicesNotReceived", "VisaConsumerServicesNotReceivedCardholderCancellationPriorToExpectedReceipt", "VisaConsumerServicesNotReceivedMerchantCancellation", + "VisaConsumerServicesNotReceivedNoCancellation", "VisaFraud", "VisaProcessingError", "VisaProcessingErrorDuplicateTransaction", @@ -137,6 +147,10 @@ class VisaConsumerCanceledMerchandiseCardholderCancellation(TypedDict, total=Fal """Reason.""" +class VisaConsumerCanceledMerchandiseNotReturned(TypedDict, total=False): + pass + + class VisaConsumerCanceledMerchandiseReturnAttempted(TypedDict, total=False): attempt_explanation: Required[str] """Attempt explanation.""" @@ -216,7 +230,7 @@ class VisaConsumerCanceledMerchandise(TypedDict, total=False): cardholder_cancellation: VisaConsumerCanceledMerchandiseCardholderCancellation """Cardholder cancellation.""" - not_returned: object + not_returned: VisaConsumerCanceledMerchandiseNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" return_attempted: VisaConsumerCanceledMerchandiseReturnAttempted @@ -299,6 +313,14 @@ class VisaConsumerCanceledServicesGuaranteedReservation(TypedDict, total=False): """ +class VisaConsumerCanceledServicesOther(TypedDict, total=False): + pass + + +class VisaConsumerCanceledServicesTimeshare(TypedDict, total=False): + pass + + class VisaConsumerCanceledServices(TypedDict, total=False): cardholder_cancellation: Required[VisaConsumerCanceledServicesCardholderCancellation] """Cardholder cancellation.""" @@ -330,13 +352,13 @@ class VisaConsumerCanceledServices(TypedDict, total=False): Required if and only if `service_type` is `guaranteed_reservation`. """ - other: object + other: VisaConsumerCanceledServicesOther """Other service type explanation. Required if and only if `service_type` is `other`. """ - timeshare: object + timeshare: VisaConsumerCanceledServicesTimeshare """Timeshare explanation. Required if and only if `service_type` is `timeshare`.""" @@ -362,6 +384,10 @@ class VisaConsumerCreditNotProcessed(TypedDict, total=False): """Credit expected at.""" +class VisaConsumerDamagedOrDefectiveMerchandiseNotReturned(TypedDict, total=False): + pass + + class VisaConsumerDamagedOrDefectiveMerchandiseReturnAttempted(TypedDict, total=False): attempt_explanation: Required[str] """Attempt explanation.""" @@ -438,7 +464,7 @@ class VisaConsumerDamagedOrDefectiveMerchandise(TypedDict, total=False): - `return_attempted` - Return attempted. """ - not_returned: object + not_returned: VisaConsumerDamagedOrDefectiveMerchandiseNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" return_attempted: VisaConsumerDamagedOrDefectiveMerchandiseReturnAttempted @@ -451,6 +477,10 @@ class VisaConsumerDamagedOrDefectiveMerchandise(TypedDict, total=False): """Returned. Required if and only if `return_outcome` is `returned`.""" +class VisaConsumerMerchandiseMisrepresentationNotReturned(TypedDict, total=False): + pass + + class VisaConsumerMerchandiseMisrepresentationReturnAttempted(TypedDict, total=False): attempt_explanation: Required[str] """Attempt explanation.""" @@ -530,7 +560,7 @@ class VisaConsumerMerchandiseMisrepresentation(TypedDict, total=False): - `return_attempted` - Return attempted. """ - not_returned: object + not_returned: VisaConsumerMerchandiseMisrepresentationNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" return_attempted: VisaConsumerMerchandiseMisrepresentationReturnAttempted @@ -633,6 +663,10 @@ class VisaConsumerMerchandiseNotReceivedCardholderCancellationPriorToExpectedRec """Reason.""" +class VisaConsumerMerchandiseNotReceivedDelayedNotReturned(TypedDict, total=False): + pass + + class VisaConsumerMerchandiseNotReceivedDelayedReturnAttempted(TypedDict, total=False): attempted_at: Required[Annotated[Union[str, date], PropertyInfo(format="iso8601")]] """Attempted at.""" @@ -658,7 +692,7 @@ class VisaConsumerMerchandiseNotReceivedDelayed(TypedDict, total=False): - `return_attempted` - Return attempted. """ - not_returned: object + not_returned: VisaConsumerMerchandiseNotReceivedDelayedNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" return_attempted: VisaConsumerMerchandiseNotReceivedDelayedReturnAttempted @@ -681,6 +715,10 @@ class VisaConsumerMerchandiseNotReceivedMerchantCancellation(TypedDict, total=Fa """Canceled at.""" +class VisaConsumerMerchandiseNotReceivedNoCancellation(TypedDict, total=False): + pass + + class VisaConsumerMerchandiseNotReceived(TypedDict, total=False): cancellation_outcome: Required[ Literal["cardholder_cancellation_prior_to_expected_receipt", "merchant_cancellation", "no_cancellation"] @@ -737,13 +775,17 @@ class VisaConsumerMerchandiseNotReceived(TypedDict, total=False): Required if and only if `cancellation_outcome` is `merchant_cancellation`. """ - no_cancellation: object + no_cancellation: VisaConsumerMerchandiseNotReceivedNoCancellation """No cancellation. Required if and only if `cancellation_outcome` is `no_cancellation`. """ +class VisaConsumerNonReceiptOfCash(TypedDict, total=False): + pass + + class VisaConsumerOriginalCreditTransactionNotAccepted(TypedDict, total=False): explanation: Required[str] """Explanation.""" @@ -757,6 +799,10 @@ class VisaConsumerOriginalCreditTransactionNotAccepted(TypedDict, total=False): """ +class VisaConsumerQualityMerchandiseNotReturned(TypedDict, total=False): + pass + + class VisaConsumerQualityMerchandiseOngoingNegotiations(TypedDict, total=False): explanation: Required[str] """ @@ -850,7 +896,7 @@ class VisaConsumerQualityMerchandise(TypedDict, total=False): - `return_attempted` - Return attempted. """ - not_returned: object + not_returned: VisaConsumerQualityMerchandiseNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" ongoing_negotiations: VisaConsumerQualityMerchandiseOngoingNegotiations @@ -1015,6 +1061,10 @@ class VisaConsumerServicesNotReceivedMerchantCancellation(TypedDict, total=False """Canceled at.""" +class VisaConsumerServicesNotReceivedNoCancellation(TypedDict, total=False): + pass + + class VisaConsumerServicesNotReceived(TypedDict, total=False): cancellation_outcome: Required[ Literal["cardholder_cancellation_prior_to_expected_receipt", "merchant_cancellation", "no_cancellation"] @@ -1055,7 +1105,7 @@ class VisaConsumerServicesNotReceived(TypedDict, total=False): Required if and only if `cancellation_outcome` is `merchant_cancellation`. """ - no_cancellation: object + no_cancellation: VisaConsumerServicesNotReceivedNoCancellation """No cancellation. Required if and only if `cancellation_outcome` is `no_cancellation`. @@ -1264,7 +1314,7 @@ class Visa(TypedDict, total=False): Required if and only if `category` is `consumer_merchandise_not_received`. """ - consumer_non_receipt_of_cash: object + consumer_non_receipt_of_cash: VisaConsumerNonReceiptOfCash """Non-receipt of cash. Required if and only if `category` is `consumer_non_receipt_of_cash`. diff --git a/src/increase/types/card_dispute_submit_user_submission_params.py b/src/increase/types/card_dispute_submit_user_submission_params.py index 68927cb2f..3384f3968 100644 --- a/src/increase/types/card_dispute_submit_user_submission_params.py +++ b/src/increase/types/card_dispute_submit_user_submission_params.py @@ -16,6 +16,7 @@ "VisaChargebackAuthorization", "VisaChargebackConsumerCanceledMerchandise", "VisaChargebackConsumerCanceledMerchandiseCardholderCancellation", + "VisaChargebackConsumerCanceledMerchandiseNotReturned", "VisaChargebackConsumerCanceledMerchandiseReturnAttempted", "VisaChargebackConsumerCanceledMerchandiseReturned", "VisaChargebackConsumerCanceledRecurringTransaction", @@ -23,12 +24,16 @@ "VisaChargebackConsumerCanceledServices", "VisaChargebackConsumerCanceledServicesCardholderCancellation", "VisaChargebackConsumerCanceledServicesGuaranteedReservation", + "VisaChargebackConsumerCanceledServicesOther", + "VisaChargebackConsumerCanceledServicesTimeshare", "VisaChargebackConsumerCounterfeitMerchandise", "VisaChargebackConsumerCreditNotProcessed", "VisaChargebackConsumerDamagedOrDefectiveMerchandise", + "VisaChargebackConsumerDamagedOrDefectiveMerchandiseNotReturned", "VisaChargebackConsumerDamagedOrDefectiveMerchandiseReturnAttempted", "VisaChargebackConsumerDamagedOrDefectiveMerchandiseReturned", "VisaChargebackConsumerMerchandiseMisrepresentation", + "VisaChargebackConsumerMerchandiseMisrepresentationNotReturned", "VisaChargebackConsumerMerchandiseMisrepresentationReturnAttempted", "VisaChargebackConsumerMerchandiseMisrepresentationReturned", "VisaChargebackConsumerMerchandiseNotAsDescribed", @@ -37,12 +42,16 @@ "VisaChargebackConsumerMerchandiseNotReceived", "VisaChargebackConsumerMerchandiseNotReceivedCardholderCancellationPriorToExpectedReceipt", "VisaChargebackConsumerMerchandiseNotReceivedDelayed", + "VisaChargebackConsumerMerchandiseNotReceivedDelayedNotReturned", "VisaChargebackConsumerMerchandiseNotReceivedDelayedReturnAttempted", "VisaChargebackConsumerMerchandiseNotReceivedDelayedReturned", "VisaChargebackConsumerMerchandiseNotReceivedDeliveredToWrongLocation", "VisaChargebackConsumerMerchandiseNotReceivedMerchantCancellation", + "VisaChargebackConsumerMerchandiseNotReceivedNoCancellation", + "VisaChargebackConsumerNonReceiptOfCash", "VisaChargebackConsumerOriginalCreditTransactionNotAccepted", "VisaChargebackConsumerQualityMerchandise", + "VisaChargebackConsumerQualityMerchandiseNotReturned", "VisaChargebackConsumerQualityMerchandiseOngoingNegotiations", "VisaChargebackConsumerQualityMerchandiseReturnAttempted", "VisaChargebackConsumerQualityMerchandiseReturned", @@ -56,6 +65,7 @@ "VisaChargebackConsumerServicesNotReceived", "VisaChargebackConsumerServicesNotReceivedCardholderCancellationPriorToExpectedReceipt", "VisaChargebackConsumerServicesNotReceivedMerchantCancellation", + "VisaChargebackConsumerServicesNotReceivedNoCancellation", "VisaChargebackFraud", "VisaChargebackProcessingError", "VisaChargebackProcessingErrorDuplicateTransaction", @@ -135,6 +145,10 @@ class VisaChargebackConsumerCanceledMerchandiseCardholderCancellation(TypedDict, """Reason.""" +class VisaChargebackConsumerCanceledMerchandiseNotReturned(TypedDict, total=False): + pass + + class VisaChargebackConsumerCanceledMerchandiseReturnAttempted(TypedDict, total=False): attempt_explanation: Required[str] """Attempt explanation.""" @@ -214,7 +228,7 @@ class VisaChargebackConsumerCanceledMerchandise(TypedDict, total=False): cardholder_cancellation: VisaChargebackConsumerCanceledMerchandiseCardholderCancellation """Cardholder cancellation.""" - not_returned: object + not_returned: VisaChargebackConsumerCanceledMerchandiseNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" return_attempted: VisaChargebackConsumerCanceledMerchandiseReturnAttempted @@ -297,6 +311,14 @@ class VisaChargebackConsumerCanceledServicesGuaranteedReservation(TypedDict, tot """ +class VisaChargebackConsumerCanceledServicesOther(TypedDict, total=False): + pass + + +class VisaChargebackConsumerCanceledServicesTimeshare(TypedDict, total=False): + pass + + class VisaChargebackConsumerCanceledServices(TypedDict, total=False): cardholder_cancellation: Required[VisaChargebackConsumerCanceledServicesCardholderCancellation] """Cardholder cancellation.""" @@ -328,13 +350,13 @@ class VisaChargebackConsumerCanceledServices(TypedDict, total=False): Required if and only if `service_type` is `guaranteed_reservation`. """ - other: object + other: VisaChargebackConsumerCanceledServicesOther """Other service type explanation. Required if and only if `service_type` is `other`. """ - timeshare: object + timeshare: VisaChargebackConsumerCanceledServicesTimeshare """Timeshare explanation. Required if and only if `service_type` is `timeshare`.""" @@ -360,6 +382,10 @@ class VisaChargebackConsumerCreditNotProcessed(TypedDict, total=False): """Credit expected at.""" +class VisaChargebackConsumerDamagedOrDefectiveMerchandiseNotReturned(TypedDict, total=False): + pass + + class VisaChargebackConsumerDamagedOrDefectiveMerchandiseReturnAttempted(TypedDict, total=False): attempt_explanation: Required[str] """Attempt explanation.""" @@ -436,7 +462,7 @@ class VisaChargebackConsumerDamagedOrDefectiveMerchandise(TypedDict, total=False - `return_attempted` - Return attempted. """ - not_returned: object + not_returned: VisaChargebackConsumerDamagedOrDefectiveMerchandiseNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" return_attempted: VisaChargebackConsumerDamagedOrDefectiveMerchandiseReturnAttempted @@ -449,6 +475,10 @@ class VisaChargebackConsumerDamagedOrDefectiveMerchandise(TypedDict, total=False """Returned. Required if and only if `return_outcome` is `returned`.""" +class VisaChargebackConsumerMerchandiseMisrepresentationNotReturned(TypedDict, total=False): + pass + + class VisaChargebackConsumerMerchandiseMisrepresentationReturnAttempted(TypedDict, total=False): attempt_explanation: Required[str] """Attempt explanation.""" @@ -528,7 +558,7 @@ class VisaChargebackConsumerMerchandiseMisrepresentation(TypedDict, total=False) - `return_attempted` - Return attempted. """ - not_returned: object + not_returned: VisaChargebackConsumerMerchandiseMisrepresentationNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" return_attempted: VisaChargebackConsumerMerchandiseMisrepresentationReturnAttempted @@ -631,6 +661,10 @@ class VisaChargebackConsumerMerchandiseNotReceivedCardholderCancellationPriorToE """Reason.""" +class VisaChargebackConsumerMerchandiseNotReceivedDelayedNotReturned(TypedDict, total=False): + pass + + class VisaChargebackConsumerMerchandiseNotReceivedDelayedReturnAttempted(TypedDict, total=False): attempted_at: Required[Annotated[Union[str, date], PropertyInfo(format="iso8601")]] """Attempted at.""" @@ -656,7 +690,7 @@ class VisaChargebackConsumerMerchandiseNotReceivedDelayed(TypedDict, total=False - `return_attempted` - Return attempted. """ - not_returned: object + not_returned: VisaChargebackConsumerMerchandiseNotReceivedDelayedNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" return_attempted: VisaChargebackConsumerMerchandiseNotReceivedDelayedReturnAttempted @@ -679,6 +713,10 @@ class VisaChargebackConsumerMerchandiseNotReceivedMerchantCancellation(TypedDict """Canceled at.""" +class VisaChargebackConsumerMerchandiseNotReceivedNoCancellation(TypedDict, total=False): + pass + + class VisaChargebackConsumerMerchandiseNotReceived(TypedDict, total=False): cancellation_outcome: Required[ Literal["cardholder_cancellation_prior_to_expected_receipt", "merchant_cancellation", "no_cancellation"] @@ -735,13 +773,17 @@ class VisaChargebackConsumerMerchandiseNotReceived(TypedDict, total=False): Required if and only if `cancellation_outcome` is `merchant_cancellation`. """ - no_cancellation: object + no_cancellation: VisaChargebackConsumerMerchandiseNotReceivedNoCancellation """No cancellation. Required if and only if `cancellation_outcome` is `no_cancellation`. """ +class VisaChargebackConsumerNonReceiptOfCash(TypedDict, total=False): + pass + + class VisaChargebackConsumerOriginalCreditTransactionNotAccepted(TypedDict, total=False): explanation: Required[str] """Explanation.""" @@ -755,6 +797,10 @@ class VisaChargebackConsumerOriginalCreditTransactionNotAccepted(TypedDict, tota """ +class VisaChargebackConsumerQualityMerchandiseNotReturned(TypedDict, total=False): + pass + + class VisaChargebackConsumerQualityMerchandiseOngoingNegotiations(TypedDict, total=False): explanation: Required[str] """ @@ -848,7 +894,7 @@ class VisaChargebackConsumerQualityMerchandise(TypedDict, total=False): - `return_attempted` - Return attempted. """ - not_returned: object + not_returned: VisaChargebackConsumerQualityMerchandiseNotReturned """Not returned. Required if and only if `return_outcome` is `not_returned`.""" ongoing_negotiations: VisaChargebackConsumerQualityMerchandiseOngoingNegotiations @@ -1013,6 +1059,10 @@ class VisaChargebackConsumerServicesNotReceivedMerchantCancellation(TypedDict, t """Canceled at.""" +class VisaChargebackConsumerServicesNotReceivedNoCancellation(TypedDict, total=False): + pass + + class VisaChargebackConsumerServicesNotReceived(TypedDict, total=False): cancellation_outcome: Required[ Literal["cardholder_cancellation_prior_to_expected_receipt", "merchant_cancellation", "no_cancellation"] @@ -1053,7 +1103,7 @@ class VisaChargebackConsumerServicesNotReceived(TypedDict, total=False): Required if and only if `cancellation_outcome` is `merchant_cancellation`. """ - no_cancellation: object + no_cancellation: VisaChargebackConsumerServicesNotReceivedNoCancellation """No cancellation. Required if and only if `cancellation_outcome` is `no_cancellation`. @@ -1262,7 +1312,7 @@ class VisaChargeback(TypedDict, total=False): Required if and only if `category` is `consumer_merchandise_not_received`. """ - consumer_non_receipt_of_cash: object + consumer_non_receipt_of_cash: VisaChargebackConsumerNonReceiptOfCash """Non-receipt of cash. Required if and only if `category` is `consumer_non_receipt_of_cash`. diff --git a/src/increase/types/card_payment.py b/src/increase/types/card_payment.py index 6bcb0e4e1..4def0c304 100644 --- a/src/increase/types/card_payment.py +++ b/src/increase/types/card_payment.py @@ -27,6 +27,7 @@ "ElementCardAuthorizationAdditionalAmountsUnknown", "ElementCardAuthorizationAdditionalAmountsVision", "ElementCardAuthorizationNetworkDetails", + "ElementCardAuthorizationNetworkDetailsPulse", "ElementCardAuthorizationNetworkDetailsVisa", "ElementCardAuthorizationNetworkIdentifiers", "ElementCardAuthorizationVerification", @@ -46,6 +47,7 @@ "ElementCardDeclineAdditionalAmountsUnknown", "ElementCardDeclineAdditionalAmountsVision", "ElementCardDeclineNetworkDetails", + "ElementCardDeclineNetworkDetailsPulse", "ElementCardDeclineNetworkDetailsVisa", "ElementCardDeclineNetworkIdentifiers", "ElementCardDeclineVerification", @@ -64,6 +66,7 @@ "ElementCardFinancialAdditionalAmountsUnknown", "ElementCardFinancialAdditionalAmountsVision", "ElementCardFinancialNetworkDetails", + "ElementCardFinancialNetworkDetailsPulse", "ElementCardFinancialNetworkDetailsVisa", "ElementCardFinancialNetworkIdentifiers", "ElementCardFinancialVerification", @@ -122,11 +125,13 @@ "ElementCardValidationAdditionalAmountsUnknown", "ElementCardValidationAdditionalAmountsVision", "ElementCardValidationNetworkDetails", + "ElementCardValidationNetworkDetailsPulse", "ElementCardValidationNetworkDetailsVisa", "ElementCardValidationNetworkIdentifiers", "ElementCardValidationVerification", "ElementCardValidationVerificationCardVerificationCode", "ElementCardValidationVerificationCardholderAddress", + "ElementOther", "State", ] @@ -494,6 +499,10 @@ class ElementCardAuthorizationAdditionalAmounts(BaseModel): """The part of this transaction amount that was for vision-related services.""" +class ElementCardAuthorizationNetworkDetailsPulse(BaseModel): + pass + + class ElementCardAuthorizationNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -620,7 +629,7 @@ class ElementCardAuthorizationNetworkDetails(BaseModel): - `pulse` - Pulse """ - pulse: Optional[object] = None + pulse: Optional[ElementCardAuthorizationNetworkDetailsPulse] = None """Fields specific to the `pulse` network.""" visa: Optional[ElementCardAuthorizationNetworkDetailsVisa] = None @@ -1152,6 +1161,10 @@ class ElementCardDeclineAdditionalAmounts(BaseModel): """The part of this transaction amount that was for vision-related services.""" +class ElementCardDeclineNetworkDetailsPulse(BaseModel): + pass + + class ElementCardDeclineNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -1278,7 +1291,7 @@ class ElementCardDeclineNetworkDetails(BaseModel): - `pulse` - Pulse """ - pulse: Optional[object] = None + pulse: Optional[ElementCardDeclineNetworkDetailsPulse] = None """Fields specific to the `pulse` network.""" visa: Optional[ElementCardDeclineNetworkDetailsVisa] = None @@ -1837,6 +1850,10 @@ class ElementCardFinancialAdditionalAmounts(BaseModel): """The part of this transaction amount that was for vision-related services.""" +class ElementCardFinancialNetworkDetailsPulse(BaseModel): + pass + + class ElementCardFinancialNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -1963,7 +1980,7 @@ class ElementCardFinancialNetworkDetails(BaseModel): - `pulse` - Pulse """ - pulse: Optional[object] = None + pulse: Optional[ElementCardFinancialNetworkDetailsPulse] = None """Fields specific to the `pulse` network.""" visa: Optional[ElementCardFinancialNetworkDetailsVisa] = None @@ -4192,6 +4209,10 @@ class ElementCardValidationAdditionalAmounts(BaseModel): """The part of this transaction amount that was for vision-related services.""" +class ElementCardValidationNetworkDetailsPulse(BaseModel): + pass + + class ElementCardValidationNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -4318,7 +4339,7 @@ class ElementCardValidationNetworkDetails(BaseModel): - `pulse` - Pulse """ - pulse: Optional[object] = None + pulse: Optional[ElementCardValidationNetworkDetailsPulse] = None """Fields specific to the `pulse` network.""" visa: Optional[ElementCardValidationNetworkDetailsVisa] = None @@ -4545,6 +4566,10 @@ def __getattr__(self, attr: str) -> object: ... __pydantic_extra__: Dict[str, object] +class ElementOther(BaseModel): + pass + + class Element(BaseModel): card_authentication: Optional[ElementCardAuthentication] = None """A Card Authentication object. @@ -4685,7 +4710,7 @@ class Element(BaseModel): the card payment element was created. """ - other: Optional[object] = None + other: Optional[ElementOther] = None """ If the category of this Transaction source is equal to `other`, this field will contain an empty object, otherwise it will contain null. diff --git a/src/increase/types/check_transfer_create_params.py b/src/increase/types/check_transfer_create_params.py index 6c33ecd97..4b7a873f7 100644 --- a/src/increase/types/check_transfer_create_params.py +++ b/src/increase/types/check_transfer_create_params.py @@ -2,8 +2,8 @@ from __future__ import annotations -from typing import Iterable -from typing_extensions import Literal, Required, TypedDict +from typing import Dict, Union, Iterable +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "CheckTransferCreateParams", @@ -118,7 +118,7 @@ class PhysicalCheckReturnAddress(TypedDict, total=False): """The second line of the return address.""" -class PhysicalCheck(TypedDict, total=False): +class PhysicalCheckTyped(TypedDict, total=False): mailing_address: Required[PhysicalCheckMailingAddress] """Details for where Increase will mail the check.""" @@ -171,7 +171,10 @@ class PhysicalCheck(TypedDict, total=False): """ -class ThirdParty(TypedDict, total=False): +PhysicalCheck: TypeAlias = Union[PhysicalCheckTyped, Dict[str, object]] + + +class ThirdPartyTyped(TypedDict, total=False): recipient_name: str """The pay-to name you will print on the check. @@ -179,3 +182,6 @@ class ThirdParty(TypedDict, total=False): this is omitted, Increase will be unable to validate the payer name when the check is deposited. """ + + +ThirdParty: TypeAlias = Union[ThirdPartyTyped, Dict[str, object]] diff --git a/src/increase/types/declined_transaction.py b/src/increase/types/declined_transaction.py index c6fdabf0b..b09705907 100644 --- a/src/increase/types/declined_transaction.py +++ b/src/increase/types/declined_transaction.py @@ -25,6 +25,7 @@ "SourceCardDeclineAdditionalAmountsUnknown", "SourceCardDeclineAdditionalAmountsVision", "SourceCardDeclineNetworkDetails", + "SourceCardDeclineNetworkDetailsPulse", "SourceCardDeclineNetworkDetailsVisa", "SourceCardDeclineNetworkIdentifiers", "SourceCardDeclineVerification", @@ -34,6 +35,7 @@ "SourceCheckDepositRejection", "SourceInboundFednowTransferDecline", "SourceInboundRealTimePaymentsTransferDecline", + "SourceOther", "SourceWireDecline", ] @@ -321,6 +323,10 @@ class SourceCardDeclineAdditionalAmounts(BaseModel): """The part of this transaction amount that was for vision-related services.""" +class SourceCardDeclineNetworkDetailsPulse(BaseModel): + pass + + class SourceCardDeclineNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -447,7 +453,7 @@ class SourceCardDeclineNetworkDetails(BaseModel): - `pulse` - Pulse """ - pulse: Optional[object] = None + pulse: Optional[SourceCardDeclineNetworkDetailsPulse] = None """Fields specific to the `pulse` network.""" visa: Optional[SourceCardDeclineNetworkDetailsVisa] = None @@ -1086,6 +1092,10 @@ class SourceInboundRealTimePaymentsTransferDecline(BaseModel): """The identifier of the Real-Time Payments Transfer that led to this Transaction.""" +class SourceOther(BaseModel): + pass + + class SourceWireDecline(BaseModel): inbound_wire_transfer_id: str """The identifier of the Inbound Wire Transfer that was declined.""" @@ -1198,7 +1208,7 @@ class Source(BaseModel): equal to `inbound_real_time_payments_transfer_decline`. """ - other: Optional[object] = None + other: Optional[SourceOther] = None """ If the category of this Transaction source is equal to `other`, this field will contain an empty object, otherwise it will contain null. diff --git a/src/increase/types/entity_create_beneficial_owner_params.py b/src/increase/types/entity_create_beneficial_owner_params.py index 9876edb42..88feb4d64 100644 --- a/src/increase/types/entity_create_beneficial_owner_params.py +++ b/src/increase/types/entity_create_beneficial_owner_params.py @@ -2,9 +2,9 @@ from __future__ import annotations -from typing import List, Union +from typing import Dict, List, Union from datetime import date -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict from .._utils import PropertyInfo @@ -102,7 +102,7 @@ class BeneficialOwnerIndividualIdentificationPassport(TypedDict, total=False): """The identifier of the File containing the passport.""" -class BeneficialOwnerIndividualIdentification(TypedDict, total=False): +class BeneficialOwnerIndividualIdentificationTyped(TypedDict, total=False): method: Required[ Literal[ "social_security_number", @@ -147,6 +147,11 @@ class BeneficialOwnerIndividualIdentification(TypedDict, total=False): """ +BeneficialOwnerIndividualIdentification: TypeAlias = Union[ + BeneficialOwnerIndividualIdentificationTyped, Dict[str, object] +] + + class BeneficialOwnerIndividual(TypedDict, total=False): address: Required[BeneficialOwnerIndividualAddress] """The individual's physical address. @@ -172,7 +177,7 @@ class BeneficialOwnerIndividual(TypedDict, total=False): """ -class BeneficialOwner(TypedDict, total=False): +class BeneficialOwnerTyped(TypedDict, total=False): individual: Required[BeneficialOwnerIndividual] """Personal details for the beneficial owner.""" @@ -185,3 +190,6 @@ class BeneficialOwner(TypedDict, total=False): company_title: str """This person's role or title within the entity.""" + + +BeneficialOwner: TypeAlias = Union[BeneficialOwnerTyped, Dict[str, object]] diff --git a/src/increase/types/entity_create_params.py b/src/increase/types/entity_create_params.py index 431adf3f4..9e05147e4 100644 --- a/src/increase/types/entity_create_params.py +++ b/src/increase/types/entity_create_params.py @@ -2,9 +2,9 @@ from __future__ import annotations -from typing import List, Union, Iterable +from typing import Dict, List, Union, Iterable from datetime import date, datetime -from typing_extensions import Literal, Required, Annotated, TypedDict +from typing_extensions import Literal, Required, Annotated, TypeAlias, TypedDict from .._utils import PropertyInfo @@ -213,7 +213,7 @@ class CorporationBeneficialOwnerIndividualIdentificationPassport(TypedDict, tota """The identifier of the File containing the passport.""" -class CorporationBeneficialOwnerIndividualIdentification(TypedDict, total=False): +class CorporationBeneficialOwnerIndividualIdentificationTyped(TypedDict, total=False): method: Required[ Literal[ "social_security_number", @@ -258,6 +258,11 @@ class CorporationBeneficialOwnerIndividualIdentification(TypedDict, total=False) """ +CorporationBeneficialOwnerIndividualIdentification: TypeAlias = Union[ + CorporationBeneficialOwnerIndividualIdentificationTyped, Dict[str, object] +] + + class CorporationBeneficialOwnerIndividual(TypedDict, total=False): address: Required[CorporationBeneficialOwnerIndividualAddress] """The individual's physical address. @@ -283,7 +288,7 @@ class CorporationBeneficialOwnerIndividual(TypedDict, total=False): """ -class CorporationBeneficialOwner(TypedDict, total=False): +class CorporationBeneficialOwnerTyped(TypedDict, total=False): individual: Required[CorporationBeneficialOwnerIndividual] """Personal details for the beneficial owner.""" @@ -298,6 +303,9 @@ class CorporationBeneficialOwner(TypedDict, total=False): """This person's role or title within the entity.""" +CorporationBeneficialOwner: TypeAlias = Union[CorporationBeneficialOwnerTyped, Dict[str, object]] + + class Corporation(TypedDict, total=False): address: Required[CorporationAddress] """The entity's physical address. @@ -478,7 +486,7 @@ class JointIndividualIdentificationPassport(TypedDict, total=False): """The identifier of the File containing the passport.""" -class JointIndividualIdentification(TypedDict, total=False): +class JointIndividualIdentificationTyped(TypedDict, total=False): method: Required[ Literal[ "social_security_number", @@ -523,6 +531,9 @@ class JointIndividualIdentification(TypedDict, total=False): """ +JointIndividualIdentification: TypeAlias = Union[JointIndividualIdentificationTyped, Dict[str, object]] + + class JointIndividual(TypedDict, total=False): address: Required[JointIndividualAddress] """The individual's physical address. @@ -624,7 +635,7 @@ class NaturalPersonIdentificationPassport(TypedDict, total=False): """The identifier of the File containing the passport.""" -class NaturalPersonIdentification(TypedDict, total=False): +class NaturalPersonIdentificationTyped(TypedDict, total=False): method: Required[ Literal[ "social_security_number", @@ -669,6 +680,9 @@ class NaturalPersonIdentification(TypedDict, total=False): """ +NaturalPersonIdentification: TypeAlias = Union[NaturalPersonIdentificationTyped, Dict[str, object]] + + class NaturalPerson(TypedDict, total=False): address: Required[NaturalPersonAddress] """The individual's physical address. @@ -819,7 +833,7 @@ class TrustTrusteeIndividualIdentificationPassport(TypedDict, total=False): """The identifier of the File containing the passport.""" -class TrustTrusteeIndividualIdentification(TypedDict, total=False): +class TrustTrusteeIndividualIdentificationTyped(TypedDict, total=False): method: Required[ Literal[ "social_security_number", @@ -864,6 +878,9 @@ class TrustTrusteeIndividualIdentification(TypedDict, total=False): """ +TrustTrusteeIndividualIdentification: TypeAlias = Union[TrustTrusteeIndividualIdentificationTyped, Dict[str, object]] + + class TrustTrusteeIndividual(TypedDict, total=False): address: Required[TrustTrusteeIndividualAddress] """The individual's physical address. @@ -975,7 +992,7 @@ class TrustGrantorIdentificationPassport(TypedDict, total=False): """The identifier of the File containing the passport.""" -class TrustGrantorIdentification(TypedDict, total=False): +class TrustGrantorIdentificationTyped(TypedDict, total=False): method: Required[ Literal[ "social_security_number", @@ -1020,6 +1037,9 @@ class TrustGrantorIdentification(TypedDict, total=False): """ +TrustGrantorIdentification: TypeAlias = Union[TrustGrantorIdentificationTyped, Dict[str, object]] + + class TrustGrantor(TypedDict, total=False): address: Required[TrustGrantorAddress] """The individual's physical address. diff --git a/src/increase/types/export_create_params.py b/src/increase/types/export_create_params.py index 2c9adf7b2..b9733fd56 100644 --- a/src/increase/types/export_create_params.py +++ b/src/increase/types/export_create_params.py @@ -21,6 +21,7 @@ "EntityCsvStatus", "TransactionCsv", "TransactionCsvCreatedAt", + "VendorCsv", ] @@ -88,7 +89,7 @@ class ExportCreateParams(TypedDict, total=False): Required if `category` is equal to `transaction_csv`. """ - vendor_csv: object + vendor_csv: VendorCsv """Options for the created export. Required if `category` is equal to `vendor_csv`. @@ -275,3 +276,7 @@ class TransactionCsv(TypedDict, total=False): program_id: str """Filter exported Transactions to the specified Program.""" + + +class VendorCsv(TypedDict, total=False): + pass diff --git a/src/increase/types/pending_transaction.py b/src/increase/types/pending_transaction.py index db5c6145a..33666c110 100644 --- a/src/increase/types/pending_transaction.py +++ b/src/increase/types/pending_transaction.py @@ -26,6 +26,7 @@ "SourceCardAuthorizationAdditionalAmountsUnknown", "SourceCardAuthorizationAdditionalAmountsVision", "SourceCardAuthorizationNetworkDetails", + "SourceCardAuthorizationNetworkDetailsPulse", "SourceCardAuthorizationNetworkDetailsVisa", "SourceCardAuthorizationNetworkIdentifiers", "SourceCardAuthorizationVerification", @@ -37,6 +38,7 @@ "SourceFednowTransferInstruction", "SourceInboundFundsHold", "SourceInboundWireTransferReversal", + "SourceOther", "SourceRealTimePaymentsTransferInstruction", "SourceSwiftTransferInstruction", "SourceWireTransferInstruction", @@ -283,6 +285,10 @@ class SourceCardAuthorizationAdditionalAmounts(BaseModel): """The part of this transaction amount that was for vision-related services.""" +class SourceCardAuthorizationNetworkDetailsPulse(BaseModel): + pass + + class SourceCardAuthorizationNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -409,7 +415,7 @@ class SourceCardAuthorizationNetworkDetails(BaseModel): - `pulse` - Pulse """ - pulse: Optional[object] = None + pulse: Optional[SourceCardAuthorizationNetworkDetailsPulse] = None """Fields specific to the `pulse` network.""" visa: Optional[SourceCardAuthorizationNetworkDetailsVisa] = None @@ -892,6 +898,10 @@ def __getattr__(self, attr: str) -> object: ... __pydantic_extra__: Dict[str, object] +class SourceOther(BaseModel): + pass + + class SourceRealTimePaymentsTransferInstruction(BaseModel): amount: int """The transfer amount in USD cents.""" @@ -1073,7 +1083,7 @@ class Source(BaseModel): reversed. """ - other: Optional[object] = None + other: Optional[SourceOther] = None """ If the category of this Transaction source is equal to `other`, this field will contain an empty object, otherwise it will contain null. diff --git a/src/increase/types/real_time_decision.py b/src/increase/types/real_time_decision.py index 3e3c971c6..ff3897655 100644 --- a/src/increase/types/real_time_decision.py +++ b/src/increase/types/real_time_decision.py @@ -26,10 +26,12 @@ "CardAuthorizationAdditionalAmountsVision", "CardAuthorizationDecline", "CardAuthorizationNetworkDetails", + "CardAuthorizationNetworkDetailsPulse", "CardAuthorizationNetworkDetailsVisa", "CardAuthorizationNetworkIdentifiers", "CardAuthorizationRequestDetails", "CardAuthorizationRequestDetailsIncrementalAuthorization", + "CardAuthorizationRequestDetailsInitialAuthorization", "CardAuthorizationVerification", "CardAuthorizationVerificationCardVerificationCode", "CardAuthorizationVerificationCardholderAddress", @@ -277,6 +279,10 @@ class CardAuthorizationDecline(BaseModel): """The reason the authorization was declined.""" +class CardAuthorizationNetworkDetailsPulse(BaseModel): + pass + + class CardAuthorizationNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -403,7 +409,7 @@ class CardAuthorizationNetworkDetails(BaseModel): - `pulse` - Pulse """ - pulse: Optional[object] = None + pulse: Optional[CardAuthorizationNetworkDetailsPulse] = None """Fields specific to the `pulse` network.""" visa: Optional[CardAuthorizationNetworkDetailsVisa] = None @@ -448,6 +454,10 @@ class CardAuthorizationRequestDetailsIncrementalAuthorization(BaseModel): """ +class CardAuthorizationRequestDetailsInitialAuthorization(BaseModel): + pass + + class CardAuthorizationRequestDetails(BaseModel): category: Literal["initial_authorization", "incremental_authorization"] """ @@ -462,7 +472,7 @@ class CardAuthorizationRequestDetails(BaseModel): incremental_authorization: Optional[CardAuthorizationRequestDetailsIncrementalAuthorization] = None """Fields specific to the category `incremental_authorization`.""" - initial_authorization: Optional[object] = None + initial_authorization: Optional[CardAuthorizationRequestDetailsInitialAuthorization] = None """Fields specific to the category `initial_authorization`.""" diff --git a/src/increase/types/real_time_decision_action_params.py b/src/increase/types/real_time_decision_action_params.py index 831c017a8..b4a73334b 100644 --- a/src/increase/types/real_time_decision_action_params.py +++ b/src/increase/types/real_time_decision_action_params.py @@ -2,7 +2,8 @@ from __future__ import annotations -from typing_extensions import Literal, Required, TypedDict +from typing import Dict, Union +from typing_extensions import Literal, Required, TypeAlias, TypedDict __all__ = [ "RealTimeDecisionActionParams", @@ -138,7 +139,7 @@ class CardAuthorizationDecline(TypedDict, total=False): """ -class CardAuthorization(TypedDict, total=False): +class CardAuthorizationTyped(TypedDict, total=False): decision: Required[Literal["approve", "decline"]] """Whether the card authorization should be approved or declined. @@ -161,6 +162,9 @@ class CardAuthorization(TypedDict, total=False): """ +CardAuthorization: TypeAlias = Union[CardAuthorizationTyped, Dict[str, object]] + + class DigitalWalletAuthenticationSuccess(TypedDict, total=False): email: str """The email address that was used to verify the cardholder via one-time passcode.""" diff --git a/src/increase/types/simulations/card_dispute_action_params.py b/src/increase/types/simulations/card_dispute_action_params.py index 558f23aaa..d712dbb42 100644 --- a/src/increase/types/simulations/card_dispute_action_params.py +++ b/src/increase/types/simulations/card_dispute_action_params.py @@ -4,7 +4,20 @@ from typing_extensions import Literal, Required, TypedDict -__all__ = ["CardDisputeActionParams", "Visa", "VisaRequestFurtherInformation"] +__all__ = [ + "CardDisputeActionParams", + "Visa", + "VisaAcceptChargeback", + "VisaAcceptUserSubmission", + "VisaDeclineUserPrearbitration", + "VisaReceiveMerchantPrearbitration", + "VisaRepresent", + "VisaRequestFurtherInformation", + "VisaTimeOutChargeback", + "VisaTimeOutMerchantPrearbitration", + "VisaTimeOutRepresentment", + "VisaTimeOutUserPrearbitration", +] class CardDisputeActionParams(TypedDict, total=False): @@ -24,11 +37,47 @@ class CardDisputeActionParams(TypedDict, total=False): """ +class VisaAcceptChargeback(TypedDict, total=False): + pass + + +class VisaAcceptUserSubmission(TypedDict, total=False): + pass + + +class VisaDeclineUserPrearbitration(TypedDict, total=False): + pass + + +class VisaReceiveMerchantPrearbitration(TypedDict, total=False): + pass + + +class VisaRepresent(TypedDict, total=False): + pass + + class VisaRequestFurtherInformation(TypedDict, total=False): reason: Required[str] """The reason for requesting further information from the user.""" +class VisaTimeOutChargeback(TypedDict, total=False): + pass + + +class VisaTimeOutMerchantPrearbitration(TypedDict, total=False): + pass + + +class VisaTimeOutRepresentment(TypedDict, total=False): + pass + + +class VisaTimeOutUserPrearbitration(TypedDict, total=False): + pass + + class Visa(TypedDict, total=False): action: Required[ Literal[ @@ -73,31 +122,31 @@ class Visa(TypedDict, total=False): to a user pre-arbitration. This will move the dispute to a `win` state. """ - accept_chargeback: object + accept_chargeback: VisaAcceptChargeback """The parameters for accepting the chargeback. Required if and only if `action` is `accept_chargeback`. """ - accept_user_submission: object + accept_user_submission: VisaAcceptUserSubmission """The parameters for accepting the user submission. Required if and only if `action` is `accept_user_submission`. """ - decline_user_prearbitration: object + decline_user_prearbitration: VisaDeclineUserPrearbitration """The parameters for declining the prearbitration. Required if and only if `action` is `decline_user_prearbitration`. """ - receive_merchant_prearbitration: object + receive_merchant_prearbitration: VisaReceiveMerchantPrearbitration """The parameters for receiving the prearbitration. Required if and only if `action` is `receive_merchant_prearbitration`. """ - represent: object + represent: VisaRepresent """The parameters for re-presenting the dispute. Required if and only if `action` is `represent`. @@ -109,25 +158,25 @@ class Visa(TypedDict, total=False): Required if and only if `action` is `request_further_information`. """ - time_out_chargeback: object + time_out_chargeback: VisaTimeOutChargeback """The parameters for timing out the chargeback. Required if and only if `action` is `time_out_chargeback`. """ - time_out_merchant_prearbitration: object + time_out_merchant_prearbitration: VisaTimeOutMerchantPrearbitration """The parameters for timing out the merchant prearbitration. Required if and only if `action` is `time_out_merchant_prearbitration`. """ - time_out_representment: object + time_out_representment: VisaTimeOutRepresentment """The parameters for timing out the re-presentment. Required if and only if `action` is `time_out_representment`. """ - time_out_user_prearbitration: object + time_out_user_prearbitration: VisaTimeOutUserPrearbitration """The parameters for timing out the user prearbitration. Required if and only if `action` is `time_out_user_prearbitration`. diff --git a/src/increase/types/transaction.py b/src/increase/types/transaction.py index 3512af64e..2b4499a50 100644 --- a/src/increase/types/transaction.py +++ b/src/increase/types/transaction.py @@ -33,6 +33,7 @@ "SourceCardFinancialAdditionalAmountsUnknown", "SourceCardFinancialAdditionalAmountsVision", "SourceCardFinancialNetworkDetails", + "SourceCardFinancialNetworkDetailsPulse", "SourceCardFinancialNetworkDetailsVisa", "SourceCardFinancialNetworkIdentifiers", "SourceCardFinancialVerification", @@ -83,6 +84,7 @@ "SourceInboundWireTransferReversal", "SourceInterestPayment", "SourceInternalSource", + "SourceOther", "SourceRealTimePaymentsTransferAcknowledgement", "SourceSampleFunds", "SourceSwiftTransferIntention", @@ -774,6 +776,10 @@ class SourceCardFinancialAdditionalAmounts(BaseModel): """The part of this transaction amount that was for vision-related services.""" +class SourceCardFinancialNetworkDetailsPulse(BaseModel): + pass + + class SourceCardFinancialNetworkDetailsVisa(BaseModel): electronic_commerce_indicator: Optional[ Literal[ @@ -900,7 +906,7 @@ class SourceCardFinancialNetworkDetails(BaseModel): - `pulse` - Pulse """ - pulse: Optional[object] = None + pulse: Optional[SourceCardFinancialNetworkDetailsPulse] = None """Fields specific to the `pulse` network.""" visa: Optional[SourceCardFinancialNetworkDetailsVisa] = None @@ -3273,6 +3279,10 @@ def __getattr__(self, attr: str) -> object: ... __pydantic_extra__: Dict[str, object] +class SourceOther(BaseModel): + pass + + class SourceRealTimePaymentsTransferAcknowledgement(BaseModel): amount: int """The transfer amount in USD cents.""" @@ -3761,7 +3771,7 @@ class Source(BaseModel): `reason` attribute for more information. """ - other: Optional[object] = None + other: Optional[SourceOther] = None """ If the category of this Transaction source is equal to `other`, this field will contain an empty object, otherwise it will contain null.