diff --git a/src/increase/resources/exports.py b/src/increase/resources/exports.py index 900aa136f..e0eaf245d 100644 --- a/src/increase/resources/exports.py +++ b/src/increase/resources/exports.py @@ -29,9 +29,10 @@ def __init__(self, client: Increase) -> None: def create( self, *, - category: Literal["account_statement_ofx", "transaction_csv", "balance_csv"], + category: Literal["account_statement_ofx", "transaction_csv", "balance_csv", "bookkeeping_account_balance_csv"], account_statement_ofx: export_create_params.AccountStatementOfx | NotGiven = NOT_GIVEN, balance_csv: export_create_params.BalanceCsv | NotGiven = NOT_GIVEN, + bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | NotGiven = NOT_GIVEN, transaction_csv: export_create_params.TransactionCsv | NotGiven = NOT_GIVEN, # 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. @@ -52,6 +53,8 @@ def create( - `transaction_csv` - Export a CSV of all transactions for a given time range. - `balance_csv` - Export a CSV of account balances for the dates in a given range. + - `bookkeeping_account_balance_csv` - Export a CSV of bookkeeping account + balances for the dates in a given range. account_statement_ofx: Options for the created export. Required if `category` is equal to `account_statement_ofx`. @@ -59,6 +62,9 @@ def create( balance_csv: Options for the created export. Required if `category` is equal to `balance_csv`. + bookkeeping_account_balance_csv: Options for the created export. Required if `category` is equal to + `bookkeeping_account_balance_csv`. + transaction_csv: Options for the created export. Required if `category` is equal to `transaction_csv`. @@ -79,6 +85,7 @@ def create( "category": category, "account_statement_ofx": account_statement_ofx, "balance_csv": balance_csv, + "bookkeeping_account_balance_csv": bookkeeping_account_balance_csv, "transaction_csv": transaction_csv, }, export_create_params.ExportCreateParams, @@ -185,9 +192,10 @@ def __init__(self, client: AsyncIncrease) -> None: async def create( self, *, - category: Literal["account_statement_ofx", "transaction_csv", "balance_csv"], + category: Literal["account_statement_ofx", "transaction_csv", "balance_csv", "bookkeeping_account_balance_csv"], account_statement_ofx: export_create_params.AccountStatementOfx | NotGiven = NOT_GIVEN, balance_csv: export_create_params.BalanceCsv | NotGiven = NOT_GIVEN, + bookkeeping_account_balance_csv: export_create_params.BookkeepingAccountBalanceCsv | NotGiven = NOT_GIVEN, transaction_csv: export_create_params.TransactionCsv | NotGiven = NOT_GIVEN, # 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. @@ -208,6 +216,8 @@ async def create( - `transaction_csv` - Export a CSV of all transactions for a given time range. - `balance_csv` - Export a CSV of account balances for the dates in a given range. + - `bookkeeping_account_balance_csv` - Export a CSV of bookkeeping account + balances for the dates in a given range. account_statement_ofx: Options for the created export. Required if `category` is equal to `account_statement_ofx`. @@ -215,6 +225,9 @@ async def create( balance_csv: Options for the created export. Required if `category` is equal to `balance_csv`. + bookkeeping_account_balance_csv: Options for the created export. Required if `category` is equal to + `bookkeeping_account_balance_csv`. + transaction_csv: Options for the created export. Required if `category` is equal to `transaction_csv`. @@ -235,6 +248,7 @@ async def create( "category": category, "account_statement_ofx": account_statement_ofx, "balance_csv": balance_csv, + "bookkeeping_account_balance_csv": bookkeeping_account_balance_csv, "transaction_csv": transaction_csv, }, export_create_params.ExportCreateParams, diff --git a/src/increase/types/ach_transfer.py b/src/increase/types/ach_transfer.py index ac2322228..4387acdbb 100644 --- a/src/increase/types/ach_transfer.py +++ b/src/increase/types/ach_transfer.py @@ -369,6 +369,14 @@ class Return(BaseModel): class Submission(BaseModel): + effective_date: date + """The ACH's effective date sent to the receiving bank. + + If `effective_date` is configured in the ACH transfer, this will match the value + there. Otherwise, it will the date that the ACH transfer was processed, which is + usually the current or subsequent business day. + """ + expected_funds_settlement_at: datetime """When the funds transfer is expected to settle in the recipient's account. diff --git a/src/increase/types/card_payment.py b/src/increase/types/card_payment.py index 997d5edf5..c7a9c0905 100644 --- a/src/increase/types/card_payment.py +++ b/src/increase/types/card_payment.py @@ -25,8 +25,11 @@ "ElementCardDeclineVerificationCardVerificationCode", "ElementCardDeclineVerificationCardholderAddress", "ElementCardFuelConfirmation", + "ElementCardFuelConfirmationNetworkIdentifiers", "ElementCardIncrement", + "ElementCardIncrementNetworkIdentifiers", "ElementCardRefund", + "ElementCardRefundNetworkIdentifiers", "ElementCardRefundPurchaseDetails", "ElementCardRefundPurchaseDetailsCarRental", "ElementCardRefundPurchaseDetailsLodging", @@ -35,7 +38,9 @@ "ElementCardRefundPurchaseDetailsTravelAncillaryService", "ElementCardRefundPurchaseDetailsTravelTripLeg", "ElementCardReversal", + "ElementCardReversalNetworkIdentifiers", "ElementCardSettlement", + "ElementCardSettlementNetworkIdentifiers", "ElementCardSettlementPurchaseDetails", "ElementCardSettlementPurchaseDetailsCarRental", "ElementCardSettlementPurchaseDetailsLodging", @@ -668,6 +673,27 @@ class ElementCardDecline(BaseModel): """Fields related to verification of cardholder-provided values.""" +class ElementCardFuelConfirmationNetworkIdentifiers(BaseModel): + retrieval_reference_number: Optional[str] + """A life-cycle identifier used across e.g., an authorization and a reversal. + + Expected to be unique per acquirer within a window of time. For some card + networks the retrieval reference number includes the trace counter. + """ + + trace_number: Optional[str] + """A counter used to verify an individual authorization. + + Expected to be unique per acquirer within a window of time. + """ + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class ElementCardFuelConfirmation(BaseModel): id: str """The Card Fuel Confirmation identifier.""" @@ -694,6 +720,9 @@ class ElementCardFuelConfirmation(BaseModel): - `visa` - Visa """ + network_identifiers: ElementCardFuelConfirmationNetworkIdentifiers + """Network-specific identifiers for a specific request or transaction.""" + pending_transaction_id: Optional[str] """ The identifier of the Pending Transaction associated with this Card Fuel @@ -713,6 +742,27 @@ class ElementCardFuelConfirmation(BaseModel): """ +class ElementCardIncrementNetworkIdentifiers(BaseModel): + retrieval_reference_number: Optional[str] + """A life-cycle identifier used across e.g., an authorization and a reversal. + + Expected to be unique per acquirer within a window of time. For some card + networks the retrieval reference number includes the trace counter. + """ + + trace_number: Optional[str] + """A counter used to verify an individual authorization. + + Expected to be unique per acquirer within a window of time. + """ + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class ElementCardIncrement(BaseModel): id: str """The Card Increment identifier.""" @@ -745,6 +795,9 @@ class ElementCardIncrement(BaseModel): - `visa` - Visa """ + network_identifiers: ElementCardIncrementNetworkIdentifiers + """Network-specific identifiers for a specific request or transaction.""" + pending_transaction_id: Optional[str] """The identifier of the Pending Transaction associated with this Card Increment.""" @@ -767,6 +820,23 @@ class ElementCardIncrement(BaseModel): """ +class ElementCardRefundNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class ElementCardRefundPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -1221,6 +1291,9 @@ class ElementCardRefund(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: ElementCardRefundNetworkIdentifiers + """Network-specific identifiers for this refund.""" + purchase_details: Optional[ElementCardRefundPurchaseDetails] """ Additional details about the card purchase, such as tax and industry-specific @@ -1237,6 +1310,27 @@ class ElementCardRefund(BaseModel): """ +class ElementCardReversalNetworkIdentifiers(BaseModel): + retrieval_reference_number: Optional[str] + """A life-cycle identifier used across e.g., an authorization and a reversal. + + Expected to be unique per acquirer within a window of time. For some card + networks the retrieval reference number includes the trace counter. + """ + + trace_number: Optional[str] + """A counter used to verify an individual authorization. + + Expected to be unique per acquirer within a window of time. + """ + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class ElementCardReversal(BaseModel): id: str """The Card Reversal identifier.""" @@ -1263,6 +1357,9 @@ class ElementCardReversal(BaseModel): - `visa` - Visa """ + network_identifiers: ElementCardReversalNetworkIdentifiers + """Network-specific identifiers for a specific request or transaction.""" + pending_transaction_id: Optional[str] """The identifier of the Pending Transaction associated with this Card Reversal.""" @@ -1285,6 +1382,23 @@ class ElementCardReversal(BaseModel): """ +class ElementCardSettlementNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class ElementCardSettlementPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -1745,6 +1859,9 @@ class ElementCardSettlement(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: ElementCardSettlementNetworkIdentifiers + """Network-specific identifiers for this refund.""" + pending_transaction_id: Optional[str] """The identifier of the Pending Transaction associated with this Transaction.""" diff --git a/src/increase/types/export.py b/src/increase/types/export.py index d3b6c232b..7881262bd 100644 --- a/src/increase/types/export.py +++ b/src/increase/types/export.py @@ -13,7 +13,7 @@ class Export(BaseModel): id: str """The Export identifier.""" - category: Literal["account_statement_ofx", "transaction_csv", "balance_csv"] + category: Literal["account_statement_ofx", "transaction_csv", "balance_csv", "bookkeeping_account_balance_csv"] """The category of the Export. We may add additional possible values for this enum over time; your application @@ -24,6 +24,8 @@ class Export(BaseModel): - `transaction_csv` - Export a CSV of all transactions for a given time range. - `balance_csv` - Export a CSV of account balances for the dates in a given range. + - `bookkeeping_account_balance_csv` - Export a CSV of bookkeeping account + balances for the dates in a given range. """ created_at: datetime diff --git a/src/increase/types/export_create_params.py b/src/increase/types/export_create_params.py index bac35e8e7..f17a6ab7b 100644 --- a/src/increase/types/export_create_params.py +++ b/src/increase/types/export_create_params.py @@ -14,13 +14,17 @@ "AccountStatementOfxCreatedAt", "BalanceCsv", "BalanceCsvCreatedAt", + "BookkeepingAccountBalanceCsv", + "BookkeepingAccountBalanceCsvCreatedAt", "TransactionCsv", "TransactionCsvCreatedAt", ] class ExportCreateParams(TypedDict, total=False): - category: Required[Literal["account_statement_ofx", "transaction_csv", "balance_csv"]] + category: Required[ + Literal["account_statement_ofx", "transaction_csv", "balance_csv", "bookkeeping_account_balance_csv"] + ] """The type of Export to create. - `account_statement_ofx` - Export an Open Financial Exchange (OFX) file of @@ -28,6 +32,8 @@ class ExportCreateParams(TypedDict, total=False): - `transaction_csv` - Export a CSV of all transactions for a given time range. - `balance_csv` - Export a CSV of account balances for the dates in a given range. + - `bookkeeping_account_balance_csv` - Export a CSV of bookkeeping account + balances for the dates in a given range. """ account_statement_ofx: AccountStatementOfx @@ -42,6 +48,12 @@ class ExportCreateParams(TypedDict, total=False): Required if `category` is equal to `balance_csv`. """ + bookkeeping_account_balance_csv: BookkeepingAccountBalanceCsv + """Options for the created export. + + Required if `category` is equal to `bookkeeping_account_balance_csv`. + """ + transaction_csv: TransactionCsv """Options for the created export. @@ -117,6 +129,40 @@ class BalanceCsv(TypedDict, total=False): """Filter results by time range on the `created_at` attribute.""" +class BookkeepingAccountBalanceCsvCreatedAt(TypedDict, total=False): + after: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] + """ + Return results after this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) + timestamp. + """ + + before: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] + """ + Return results before this [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) + timestamp. + """ + + on_or_after: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] + """ + Return results on or after this + [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp. + """ + + on_or_before: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] + """ + Return results on or before this + [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) timestamp. + """ + + +class BookkeepingAccountBalanceCsv(TypedDict, total=False): + bookkeeping_account_id: str + """Filter exported Transactions to the specified BookkeepingAccount.""" + + created_at: BookkeepingAccountBalanceCsvCreatedAt + """Filter results by time range on the `created_at` attribute.""" + + class TransactionCsvCreatedAt(TypedDict, total=False): after: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] """ diff --git a/src/increase/types/simulations/ach_transfer_simulation.py b/src/increase/types/simulations/ach_transfer_simulation.py index f212600d1..c0e388e38 100644 --- a/src/increase/types/simulations/ach_transfer_simulation.py +++ b/src/increase/types/simulations/ach_transfer_simulation.py @@ -30,6 +30,7 @@ "TransactionSourceACHTransferReturn", "TransactionSourceCardDisputeAcceptance", "TransactionSourceCardRefund", + "TransactionSourceCardRefundNetworkIdentifiers", "TransactionSourceCardRefundPurchaseDetails", "TransactionSourceCardRefundPurchaseDetailsCarRental", "TransactionSourceCardRefundPurchaseDetailsLodging", @@ -39,6 +40,7 @@ "TransactionSourceCardRefundPurchaseDetailsTravelTripLeg", "TransactionSourceCardRevenuePayment", "TransactionSourceCardSettlement", + "TransactionSourceCardSettlementNetworkIdentifiers", "TransactionSourceCardSettlementPurchaseDetails", "TransactionSourceCardSettlementPurchaseDetailsCarRental", "TransactionSourceCardSettlementPurchaseDetailsLodging", @@ -1348,6 +1350,23 @@ class TransactionSourceCardDisputeAcceptance(BaseModel): """ +class TransactionSourceCardRefundNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class TransactionSourceCardRefundPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -1802,6 +1821,9 @@ class TransactionSourceCardRefund(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: TransactionSourceCardRefundNetworkIdentifiers + """Network-specific identifiers for this refund.""" + purchase_details: Optional[TransactionSourceCardRefundPurchaseDetails] """ Additional details about the card purchase, such as tax and industry-specific @@ -1848,6 +1870,23 @@ class TransactionSourceCardRevenuePayment(BaseModel): """The account the card belonged to.""" +class TransactionSourceCardSettlementNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class TransactionSourceCardSettlementPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -2308,6 +2347,9 @@ class TransactionSourceCardSettlement(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: TransactionSourceCardSettlementNetworkIdentifiers + """Network-specific identifiers for this refund.""" + pending_transaction_id: Optional[str] """The identifier of the Pending Transaction associated with this Transaction.""" diff --git a/src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py b/src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py index 322dba4cd..d8c7f5107 100644 --- a/src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py +++ b/src/increase/types/simulations/inbound_real_time_payments_transfer_simulation_result.py @@ -30,6 +30,7 @@ "TransactionSourceACHTransferReturn", "TransactionSourceCardDisputeAcceptance", "TransactionSourceCardRefund", + "TransactionSourceCardRefundNetworkIdentifiers", "TransactionSourceCardRefundPurchaseDetails", "TransactionSourceCardRefundPurchaseDetailsCarRental", "TransactionSourceCardRefundPurchaseDetailsLodging", @@ -39,6 +40,7 @@ "TransactionSourceCardRefundPurchaseDetailsTravelTripLeg", "TransactionSourceCardRevenuePayment", "TransactionSourceCardSettlement", + "TransactionSourceCardSettlementNetworkIdentifiers", "TransactionSourceCardSettlementPurchaseDetails", "TransactionSourceCardSettlementPurchaseDetailsCarRental", "TransactionSourceCardSettlementPurchaseDetailsLodging", @@ -1340,6 +1342,23 @@ class TransactionSourceCardDisputeAcceptance(BaseModel): """ +class TransactionSourceCardRefundNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class TransactionSourceCardRefundPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -1794,6 +1813,9 @@ class TransactionSourceCardRefund(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: TransactionSourceCardRefundNetworkIdentifiers + """Network-specific identifiers for this refund.""" + purchase_details: Optional[TransactionSourceCardRefundPurchaseDetails] """ Additional details about the card purchase, such as tax and industry-specific @@ -1840,6 +1862,23 @@ class TransactionSourceCardRevenuePayment(BaseModel): """The account the card belonged to.""" +class TransactionSourceCardSettlementNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class TransactionSourceCardSettlementPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -2300,6 +2339,9 @@ class TransactionSourceCardSettlement(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: TransactionSourceCardSettlementNetworkIdentifiers + """Network-specific identifiers for this refund.""" + pending_transaction_id: Optional[str] """The identifier of the Pending Transaction associated with this Transaction.""" diff --git a/src/increase/types/simulations/interest_payment_simulation_result.py b/src/increase/types/simulations/interest_payment_simulation_result.py index 6445212fe..040d117fb 100644 --- a/src/increase/types/simulations/interest_payment_simulation_result.py +++ b/src/increase/types/simulations/interest_payment_simulation_result.py @@ -16,6 +16,7 @@ "TransactionSourceACHTransferReturn", "TransactionSourceCardDisputeAcceptance", "TransactionSourceCardRefund", + "TransactionSourceCardRefundNetworkIdentifiers", "TransactionSourceCardRefundPurchaseDetails", "TransactionSourceCardRefundPurchaseDetailsCarRental", "TransactionSourceCardRefundPurchaseDetailsLodging", @@ -25,6 +26,7 @@ "TransactionSourceCardRefundPurchaseDetailsTravelTripLeg", "TransactionSourceCardRevenuePayment", "TransactionSourceCardSettlement", + "TransactionSourceCardSettlementNetworkIdentifiers", "TransactionSourceCardSettlementPurchaseDetails", "TransactionSourceCardSettlementPurchaseDetailsCarRental", "TransactionSourceCardSettlementPurchaseDetailsLodging", @@ -375,6 +377,23 @@ class TransactionSourceCardDisputeAcceptance(BaseModel): """ +class TransactionSourceCardRefundNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class TransactionSourceCardRefundPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -829,6 +848,9 @@ class TransactionSourceCardRefund(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: TransactionSourceCardRefundNetworkIdentifiers + """Network-specific identifiers for this refund.""" + purchase_details: Optional[TransactionSourceCardRefundPurchaseDetails] """ Additional details about the card purchase, such as tax and industry-specific @@ -875,6 +897,23 @@ class TransactionSourceCardRevenuePayment(BaseModel): """The account the card belonged to.""" +class TransactionSourceCardSettlementNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class TransactionSourceCardSettlementPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -1335,6 +1374,9 @@ class TransactionSourceCardSettlement(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: TransactionSourceCardSettlementNetworkIdentifiers + """Network-specific identifiers for this refund.""" + pending_transaction_id: Optional[str] """The identifier of the Pending Transaction associated with this Transaction.""" diff --git a/src/increase/types/simulations/wire_transfer_simulation.py b/src/increase/types/simulations/wire_transfer_simulation.py index 13ed66a80..ef7060419 100644 --- a/src/increase/types/simulations/wire_transfer_simulation.py +++ b/src/increase/types/simulations/wire_transfer_simulation.py @@ -16,6 +16,7 @@ "TransactionSourceACHTransferReturn", "TransactionSourceCardDisputeAcceptance", "TransactionSourceCardRefund", + "TransactionSourceCardRefundNetworkIdentifiers", "TransactionSourceCardRefundPurchaseDetails", "TransactionSourceCardRefundPurchaseDetailsCarRental", "TransactionSourceCardRefundPurchaseDetailsLodging", @@ -25,6 +26,7 @@ "TransactionSourceCardRefundPurchaseDetailsTravelTripLeg", "TransactionSourceCardRevenuePayment", "TransactionSourceCardSettlement", + "TransactionSourceCardSettlementNetworkIdentifiers", "TransactionSourceCardSettlementPurchaseDetails", "TransactionSourceCardSettlementPurchaseDetailsCarRental", "TransactionSourceCardSettlementPurchaseDetailsLodging", @@ -375,6 +377,23 @@ class TransactionSourceCardDisputeAcceptance(BaseModel): """ +class TransactionSourceCardRefundNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class TransactionSourceCardRefundPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -829,6 +848,9 @@ class TransactionSourceCardRefund(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: TransactionSourceCardRefundNetworkIdentifiers + """Network-specific identifiers for this refund.""" + purchase_details: Optional[TransactionSourceCardRefundPurchaseDetails] """ Additional details about the card purchase, such as tax and industry-specific @@ -875,6 +897,23 @@ class TransactionSourceCardRevenuePayment(BaseModel): """The account the card belonged to.""" +class TransactionSourceCardSettlementNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class TransactionSourceCardSettlementPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -1335,6 +1374,9 @@ class TransactionSourceCardSettlement(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: TransactionSourceCardSettlementNetworkIdentifiers + """Network-specific identifiers for this refund.""" + pending_transaction_id: Optional[str] """The identifier of the Pending Transaction associated with this Transaction.""" diff --git a/src/increase/types/transaction.py b/src/increase/types/transaction.py index df0c0b5d7..a8d8b6f73 100644 --- a/src/increase/types/transaction.py +++ b/src/increase/types/transaction.py @@ -15,6 +15,7 @@ "SourceACHTransferReturn", "SourceCardDisputeAcceptance", "SourceCardRefund", + "SourceCardRefundNetworkIdentifiers", "SourceCardRefundPurchaseDetails", "SourceCardRefundPurchaseDetailsCarRental", "SourceCardRefundPurchaseDetailsLodging", @@ -24,6 +25,7 @@ "SourceCardRefundPurchaseDetailsTravelTripLeg", "SourceCardRevenuePayment", "SourceCardSettlement", + "SourceCardSettlementNetworkIdentifiers", "SourceCardSettlementPurchaseDetails", "SourceCardSettlementPurchaseDetailsCarRental", "SourceCardSettlementPurchaseDetailsLodging", @@ -374,6 +376,23 @@ class SourceCardDisputeAcceptance(BaseModel): """ +class SourceCardRefundNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class SourceCardRefundPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -828,6 +847,9 @@ class SourceCardRefund(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: SourceCardRefundNetworkIdentifiers + """Network-specific identifiers for this refund.""" + purchase_details: Optional[SourceCardRefundPurchaseDetails] """ Additional details about the card purchase, such as tax and industry-specific @@ -874,6 +896,23 @@ class SourceCardRevenuePayment(BaseModel): """The account the card belonged to.""" +class SourceCardSettlementNetworkIdentifiers(BaseModel): + acquirer_business_id: str + """ + A network assigned business ID that identifies the acquirer that processed this + transaction. + """ + + acquirer_reference_number: str + """A globally unique identifier for this settlement.""" + + transaction_id: Optional[str] + """ + A globally unique transaction identifier provided by the card network, used + across multiple life-cycle requests. + """ + + class SourceCardSettlementPurchaseDetailsCarRental(BaseModel): car_class_code: Optional[str] """Code indicating the vehicle's class.""" @@ -1334,6 +1373,9 @@ class SourceCardSettlement(BaseModel): merchant_state: Optional[str] """The state the merchant resides in.""" + network_identifiers: SourceCardSettlementNetworkIdentifiers + """Network-specific identifiers for this refund.""" + pending_transaction_id: Optional[str] """The identifier of the Pending Transaction associated with this Transaction.""" diff --git a/tests/api_resources/entities/test_supplemental_documents.py b/tests/api_resources/entities/test_supplemental_documents.py index 4cb53f5ef..ed48de776 100644 --- a/tests/api_resources/entities/test_supplemental_documents.py +++ b/tests/api_resources/entities/test_supplemental_documents.py @@ -52,7 +52,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: supplemental_document = client.entities.supplemental_documents.list( entity_id="string", cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[SupplementalDocument], supplemental_document, path=["response"]) @@ -101,7 +101,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: supplemental_document = await client.entities.supplemental_documents.list( entity_id="string", cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[SupplementalDocument], supplemental_document, path=["response"]) diff --git a/tests/api_resources/test_account_numbers.py b/tests/api_resources/test_account_numbers.py index 40a8efe6f..c8087dbee 100644 --- a/tests/api_resources/test_account_numbers.py +++ b/tests/api_resources/test_account_numbers.py @@ -108,7 +108,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, status="active", ) assert_matches_type(SyncPage[AccountNumber], account_number, path=["response"]) @@ -212,7 +212,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, status="active", ) assert_matches_type(AsyncPage[AccountNumber], account_number, path=["response"]) diff --git a/tests/api_resources/test_account_statements.py b/tests/api_resources/test_account_statements.py index 2109e9a79..c0506c9da 100644 --- a/tests/api_resources/test_account_statements.py +++ b/tests/api_resources/test_account_statements.py @@ -48,7 +48,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: account_statement = client.account_statements.list( account_id="string", cursor="string", - limit=0, + limit=1, statement_period_start={ "after": parse_datetime("2019-12-27T18:11:19.117Z"), "before": parse_datetime("2019-12-27T18:11:19.117Z"), @@ -97,7 +97,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: account_statement = await client.account_statements.list( account_id="string", cursor="string", - limit=0, + limit=1, statement_period_start={ "after": parse_datetime("2019-12-27T18:11:19.117Z"), "before": parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/test_account_transfers.py b/tests/api_resources/test_account_transfers.py index 88f897715..b11d89121 100644 --- a/tests/api_resources/test_account_transfers.py +++ b/tests/api_resources/test_account_transfers.py @@ -88,7 +88,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(SyncPage[AccountTransfer], account_transfer, path=["response"]) @@ -204,7 +204,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(AsyncPage[AccountTransfer], account_transfer, path=["response"]) diff --git a/tests/api_resources/test_accounts.py b/tests/api_resources/test_accounts.py index d3e7a9af5..dec816513 100644 --- a/tests/api_resources/test_accounts.py +++ b/tests/api_resources/test_accounts.py @@ -105,7 +105,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: cursor="string", entity_id="string", informational_entity_id="string", - limit=0, + limit=1, status="open", ) assert_matches_type(SyncPage[Account], account, path=["response"]) @@ -224,7 +224,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: cursor="string", entity_id="string", informational_entity_id="string", - limit=0, + limit=1, status="open", ) assert_matches_type(AsyncPage[Account], account, path=["response"]) diff --git a/tests/api_resources/test_ach_prenotifications.py b/tests/api_resources/test_ach_prenotifications.py index 9fd45ff51..561195f01 100644 --- a/tests/api_resources/test_ach_prenotifications.py +++ b/tests/api_resources/test_ach_prenotifications.py @@ -89,7 +89,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[ACHPrenotification], ach_prenotification, path=["response"]) @@ -173,7 +173,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[ACHPrenotification], ach_prenotification, path=["response"]) diff --git a/tests/api_resources/test_ach_transfers.py b/tests/api_resources/test_ach_transfers.py index 8800540c2..98b64e536 100644 --- a/tests/api_resources/test_ach_transfers.py +++ b/tests/api_resources/test_ach_transfers.py @@ -99,7 +99,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: }, cursor="string", external_account_id="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(SyncPage[ACHTransfer], ach_transfer, path=["response"]) @@ -226,7 +226,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: }, cursor="string", external_account_id="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(AsyncPage[ACHTransfer], ach_transfer, path=["response"]) diff --git a/tests/api_resources/test_bookkeeping_accounts.py b/tests/api_resources/test_bookkeeping_accounts.py index 536c20c82..14efcfcf9 100644 --- a/tests/api_resources/test_bookkeeping_accounts.py +++ b/tests/api_resources/test_bookkeeping_accounts.py @@ -74,7 +74,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: bookkeeping_account = client.bookkeeping_accounts.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[BookkeepingAccount], bookkeeping_account, path=["response"]) @@ -144,7 +144,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: bookkeeping_account = await client.bookkeeping_accounts.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[BookkeepingAccount], bookkeeping_account, path=["response"]) diff --git a/tests/api_resources/test_bookkeeping_entries.py b/tests/api_resources/test_bookkeeping_entries.py index 8daeaa17f..37dc2a6b5 100644 --- a/tests/api_resources/test_bookkeeping_entries.py +++ b/tests/api_resources/test_bookkeeping_entries.py @@ -30,7 +30,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: bookkeeping_entry = client.bookkeeping_entries.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[BookkeepingEntry], bookkeeping_entry, path=["response"]) @@ -56,7 +56,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: bookkeeping_entry = await client.bookkeeping_entries.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[BookkeepingEntry], bookkeeping_entry, path=["response"]) diff --git a/tests/api_resources/test_card_disputes.py b/tests/api_resources/test_card_disputes.py index 879401889..63dc2e976 100644 --- a/tests/api_resources/test_card_disputes.py +++ b/tests/api_resources/test_card_disputes.py @@ -71,7 +71,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, status={"in": ["pending_reviewing", "accepted", "rejected"]}, ) assert_matches_type(SyncPage[CardDispute], card_dispute, path=["response"]) @@ -138,7 +138,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, status={"in": ["pending_reviewing", "accepted", "rejected"]}, ) assert_matches_type(AsyncPage[CardDispute], card_dispute, path=["response"]) diff --git a/tests/api_resources/test_card_payments.py b/tests/api_resources/test_card_payments.py index 292db66c8..7d09fb974 100644 --- a/tests/api_resources/test_card_payments.py +++ b/tests/api_resources/test_card_payments.py @@ -55,7 +55,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[CardPayment], card_payment, path=["response"]) @@ -105,7 +105,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[CardPayment], card_payment, path=["response"]) diff --git a/tests/api_resources/test_card_profiles.py b/tests/api_resources/test_card_profiles.py index 4dbb271d4..ef5c1fdb8 100644 --- a/tests/api_resources/test_card_profiles.py +++ b/tests/api_resources/test_card_profiles.py @@ -100,7 +100,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: card_profile = client.card_profiles.list( cursor="string", - limit=0, + limit=1, physical_cards_status={"in": ["not_eligible", "rejected", "pending_creating"]}, status={"in": ["pending", "rejected", "active"]}, ) @@ -214,7 +214,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: card_profile = await client.card_profiles.list( cursor="string", - limit=0, + limit=1, physical_cards_status={"in": ["not_eligible", "rejected", "pending_creating"]}, status={"in": ["pending", "rejected", "active"]}, ) diff --git a/tests/api_resources/test_card_purchase_supplements.py b/tests/api_resources/test_card_purchase_supplements.py index ddcd1dc02..7caa63ab1 100644 --- a/tests/api_resources/test_card_purchase_supplements.py +++ b/tests/api_resources/test_card_purchase_supplements.py @@ -54,7 +54,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[CardPurchaseSupplement], card_purchase_supplement, path=["response"]) @@ -103,7 +103,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[CardPurchaseSupplement], card_purchase_supplement, path=["response"]) diff --git a/tests/api_resources/test_cards.py b/tests/api_resources/test_cards.py index 4b9941c7d..10a399255 100644 --- a/tests/api_resources/test_cards.py +++ b/tests/api_resources/test_cards.py @@ -129,7 +129,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[Card], card, path=["response"]) @@ -269,7 +269,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[Card], card, path=["response"]) diff --git a/tests/api_resources/test_check_deposits.py b/tests/api_resources/test_check_deposits.py index 06b6743b4..07793660a 100644 --- a/tests/api_resources/test_check_deposits.py +++ b/tests/api_resources/test_check_deposits.py @@ -78,7 +78,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[CheckDeposit], check_deposit, path=["response"]) @@ -151,7 +151,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[CheckDeposit], check_deposit, path=["response"]) diff --git a/tests/api_resources/test_check_transfers.py b/tests/api_resources/test_check_transfers.py index 5b3bcf32c..f5706a6bb 100644 --- a/tests/api_resources/test_check_transfers.py +++ b/tests/api_resources/test_check_transfers.py @@ -105,7 +105,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(SyncPage[CheckTransfer], check_transfer, path=["response"]) @@ -265,7 +265,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(AsyncPage[CheckTransfer], check_transfer, path=["response"]) diff --git a/tests/api_resources/test_declined_transactions.py b/tests/api_resources/test_declined_transactions.py index 52c87fd8e..2cf39dfb3 100644 --- a/tests/api_resources/test_declined_transactions.py +++ b/tests/api_resources/test_declined_transactions.py @@ -55,7 +55,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, route_id="string", ) assert_matches_type(SyncPage[DeclinedTransaction], declined_transaction, path=["response"]) @@ -106,7 +106,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, route_id="string", ) assert_matches_type(AsyncPage[DeclinedTransaction], declined_transaction, path=["response"]) diff --git a/tests/api_resources/test_digital_wallet_tokens.py b/tests/api_resources/test_digital_wallet_tokens.py index 96b5b1846..89da058a0 100644 --- a/tests/api_resources/test_digital_wallet_tokens.py +++ b/tests/api_resources/test_digital_wallet_tokens.py @@ -54,7 +54,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[DigitalWalletToken], digital_wallet_token, path=["response"]) @@ -103,7 +103,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[DigitalWalletToken], digital_wallet_token, path=["response"]) diff --git a/tests/api_resources/test_documents.py b/tests/api_resources/test_documents.py index 0877118aa..f45bde9a7 100644 --- a/tests/api_resources/test_documents.py +++ b/tests/api_resources/test_documents.py @@ -55,7 +55,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: }, cursor="string", entity_id="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[Document], document, path=["response"]) @@ -105,7 +105,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: }, cursor="string", entity_id="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[Document], document, path=["response"]) diff --git a/tests/api_resources/test_entities.py b/tests/api_resources/test_entities.py index 9e0cee803..9abb38eb8 100644 --- a/tests/api_resources/test_entities.py +++ b/tests/api_resources/test_entities.py @@ -434,7 +434,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, status={"in": ["active", "archived", "disabled"]}, ) assert_matches_type(SyncPage[Entity], entity, path=["response"]) @@ -922,7 +922,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, status={"in": ["active", "archived", "disabled"]}, ) assert_matches_type(AsyncPage[Entity], entity, path=["response"]) diff --git a/tests/api_resources/test_event_subscriptions.py b/tests/api_resources/test_event_subscriptions.py index 673cd3861..c42a01ddd 100644 --- a/tests/api_resources/test_event_subscriptions.py +++ b/tests/api_resources/test_event_subscriptions.py @@ -95,7 +95,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: event_subscription = client.event_subscriptions.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[EventSubscription], event_subscription, path=["response"]) @@ -186,7 +186,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: event_subscription = await client.event_subscriptions.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[EventSubscription], event_subscription, path=["response"]) diff --git a/tests/api_resources/test_events.py b/tests/api_resources/test_events.py index 8fe064b3e..83efa86bb 100644 --- a/tests/api_resources/test_events.py +++ b/tests/api_resources/test_events.py @@ -55,7 +55,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[Event], event, path=["response"]) @@ -105,7 +105,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[Event], event, path=["response"]) diff --git a/tests/api_resources/test_exports.py b/tests/api_resources/test_exports.py index 3e7d8a7a4..38030afaa 100644 --- a/tests/api_resources/test_exports.py +++ b/tests/api_resources/test_exports.py @@ -51,6 +51,15 @@ def test_method_create_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, }, + bookkeeping_account_balance_csv={ + "bookkeeping_account_id": "string", + "created_at": { + "after": parse_datetime("2019-12-27T18:11:19.117Z"), + "before": parse_datetime("2019-12-27T18:11:19.117Z"), + "on_or_after": parse_datetime("2019-12-27T18:11:19.117Z"), + "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), + }, + }, transaction_csv={ "account_id": "account_in71c4amph0vgo2qllky", "created_at": { @@ -97,7 +106,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: export = client.exports.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[Export], export, path=["response"]) @@ -143,6 +152,15 @@ async def test_method_create_with_all_params(self, client: AsyncIncrease) -> Non "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, }, + bookkeeping_account_balance_csv={ + "bookkeeping_account_id": "string", + "created_at": { + "after": parse_datetime("2019-12-27T18:11:19.117Z"), + "before": parse_datetime("2019-12-27T18:11:19.117Z"), + "on_or_after": parse_datetime("2019-12-27T18:11:19.117Z"), + "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), + }, + }, transaction_csv={ "account_id": "account_in71c4amph0vgo2qllky", "created_at": { @@ -189,7 +207,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: export = await client.exports.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[Export], export, path=["response"]) diff --git a/tests/api_resources/test_external_accounts.py b/tests/api_resources/test_external_accounts.py index c8eb17e68..3ad75ed0c 100644 --- a/tests/api_resources/test_external_accounts.py +++ b/tests/api_resources/test_external_accounts.py @@ -101,7 +101,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: external_account = client.external_accounts.list( cursor="string", - limit=0, + limit=1, routing_number="xxxxxxxxx", status={"in": ["active", "archived"]}, ) @@ -200,7 +200,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: external_account = await client.external_accounts.list( cursor="string", - limit=0, + limit=1, routing_number="xxxxxxxxx", status={"in": ["active", "archived"]}, ) diff --git a/tests/api_resources/test_files.py b/tests/api_resources/test_files.py index 6e3bce43c..8ea7b64a9 100644 --- a/tests/api_resources/test_files.py +++ b/tests/api_resources/test_files.py @@ -80,7 +80,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, purpose={"in": ["check_image_front", "check_image_back", "mailed_check_image"]}, ) assert_matches_type(SyncPage[File], file, path=["response"]) @@ -156,7 +156,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, purpose={"in": ["check_image_front", "check_image_back", "mailed_check_image"]}, ) assert_matches_type(AsyncPage[File], file, path=["response"]) diff --git a/tests/api_resources/test_inbound_ach_transfers.py b/tests/api_resources/test_inbound_ach_transfers.py index e9b281585..7ff384bd6 100644 --- a/tests/api_resources/test_inbound_ach_transfers.py +++ b/tests/api_resources/test_inbound_ach_transfers.py @@ -54,7 +54,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, status="pending", ) assert_matches_type(SyncPage[InboundACHTransfer], inbound_ach_transfer, path=["response"]) @@ -163,7 +163,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, status="pending", ) assert_matches_type(AsyncPage[InboundACHTransfer], inbound_ach_transfer, path=["response"]) diff --git a/tests/api_resources/test_inbound_wire_drawdown_requests.py b/tests/api_resources/test_inbound_wire_drawdown_requests.py index 23d404a77..34d585eab 100644 --- a/tests/api_resources/test_inbound_wire_drawdown_requests.py +++ b/tests/api_resources/test_inbound_wire_drawdown_requests.py @@ -46,7 +46,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: inbound_wire_drawdown_request = client.inbound_wire_drawdown_requests.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[InboundWireDrawdownRequest], inbound_wire_drawdown_request, path=["response"]) @@ -88,7 +88,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: inbound_wire_drawdown_request = await client.inbound_wire_drawdown_requests.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[InboundWireDrawdownRequest], inbound_wire_drawdown_request, path=["response"]) diff --git a/tests/api_resources/test_oauth_connections.py b/tests/api_resources/test_oauth_connections.py index 26ce25faa..7fc14e594 100644 --- a/tests/api_resources/test_oauth_connections.py +++ b/tests/api_resources/test_oauth_connections.py @@ -46,7 +46,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: oauth_connection = client.oauth_connections.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[OauthConnection], oauth_connection, path=["response"]) @@ -88,7 +88,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: oauth_connection = await client.oauth_connections.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[OauthConnection], oauth_connection, path=["response"]) diff --git a/tests/api_resources/test_pending_transactions.py b/tests/api_resources/test_pending_transactions.py index 3c1fce444..993cd08ec 100644 --- a/tests/api_resources/test_pending_transactions.py +++ b/tests/api_resources/test_pending_transactions.py @@ -55,7 +55,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, route_id="string", source_id="string", status={"in": ["pending", "complete"]}, @@ -108,7 +108,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, route_id="string", source_id="string", status={"in": ["pending", "complete"]}, diff --git a/tests/api_resources/test_physical_cards.py b/tests/api_resources/test_physical_cards.py index fc0faf3b2..65af913c3 100644 --- a/tests/api_resources/test_physical_cards.py +++ b/tests/api_resources/test_physical_cards.py @@ -118,7 +118,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[PhysicalCard], physical_card, path=["response"]) @@ -231,7 +231,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[PhysicalCard], physical_card, path=["response"]) diff --git a/tests/api_resources/test_programs.py b/tests/api_resources/test_programs.py index 4e9de6213..969687ae2 100644 --- a/tests/api_resources/test_programs.py +++ b/tests/api_resources/test_programs.py @@ -46,7 +46,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: program = client.programs.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[Program], program, path=["response"]) @@ -88,7 +88,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: program = await client.programs.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[Program], program, path=["response"]) diff --git a/tests/api_resources/test_real_time_payments_transfers.py b/tests/api_resources/test_real_time_payments_transfers.py index 7b821b19a..e5fe96199 100644 --- a/tests/api_resources/test_real_time_payments_transfers.py +++ b/tests/api_resources/test_real_time_payments_transfers.py @@ -92,7 +92,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: }, cursor="string", external_account_id="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(SyncPage[RealTimePaymentsTransfer], real_time_payments_transfer, path=["response"]) @@ -180,7 +180,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: }, cursor="string", external_account_id="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(AsyncPage[RealTimePaymentsTransfer], real_time_payments_transfer, path=["response"]) diff --git a/tests/api_resources/test_routing_numbers.py b/tests/api_resources/test_routing_numbers.py index 72467ae14..d6a3963e6 100644 --- a/tests/api_resources/test_routing_numbers.py +++ b/tests/api_resources/test_routing_numbers.py @@ -33,7 +33,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: routing_number = client.routing_numbers.list( routing_number="xxxxxxxxx", cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[RoutingNumber], routing_number, path=["response"]) @@ -64,7 +64,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: routing_number = await client.routing_numbers.list( routing_number="xxxxxxxxx", cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[RoutingNumber], routing_number, path=["response"]) diff --git a/tests/api_resources/test_transactions.py b/tests/api_resources/test_transactions.py index 4cef0bb30..c59ce04a6 100644 --- a/tests/api_resources/test_transactions.py +++ b/tests/api_resources/test_transactions.py @@ -55,7 +55,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, route_id="string", ) assert_matches_type(SyncPage[Transaction], transaction, path=["response"]) @@ -106,7 +106,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: "on_or_before": parse_datetime("2019-12-27T18:11:19.117Z"), }, cursor="string", - limit=0, + limit=1, route_id="string", ) assert_matches_type(AsyncPage[Transaction], transaction, path=["response"]) diff --git a/tests/api_resources/test_wire_drawdown_requests.py b/tests/api_resources/test_wire_drawdown_requests.py index 078978e7a..3eb9d172d 100644 --- a/tests/api_resources/test_wire_drawdown_requests.py +++ b/tests/api_resources/test_wire_drawdown_requests.py @@ -90,7 +90,7 @@ def test_method_list(self, client: Increase) -> None: def test_method_list_with_all_params(self, client: Increase) -> None: wire_drawdown_request = client.wire_drawdown_requests.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(SyncPage[WireDrawdownRequest], wire_drawdown_request, path=["response"]) @@ -176,7 +176,7 @@ async def test_method_list(self, client: AsyncIncrease) -> None: async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: wire_drawdown_request = await client.wire_drawdown_requests.list( cursor="string", - limit=0, + limit=1, ) assert_matches_type(AsyncPage[WireDrawdownRequest], wire_drawdown_request, path=["response"]) diff --git a/tests/api_resources/test_wire_transfers.py b/tests/api_resources/test_wire_transfers.py index 25edb7ddd..45136f7c6 100644 --- a/tests/api_resources/test_wire_transfers.py +++ b/tests/api_resources/test_wire_transfers.py @@ -95,7 +95,7 @@ def test_method_list_with_all_params(self, client: Increase) -> None: }, cursor="string", external_account_id="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(SyncPage[WireTransfer], wire_transfer, path=["response"]) @@ -254,7 +254,7 @@ async def test_method_list_with_all_params(self, client: AsyncIncrease) -> None: }, cursor="string", external_account_id="string", - limit=0, + limit=1, unique_identifier="x", ) assert_matches_type(AsyncPage[WireTransfer], wire_transfer, path=["response"])