Skip to content

Conversation

@fern-support
Copy link
Collaborator

@fern-support fern-support commented Jul 9, 2025

I created a custom test with the following code, which generated a successful response:

import os
import pytest
from merge import Merge
from merge.resources.accounting.resources.invoices.types import (
    InvoicesListRequestExpand,
    InvoicesListRequestType,
    InvoicesListRequestStatus,
)


# Get started with writing tests with pytest at https://docs.pytest.org
@pytest.mark.skip(reason="Unimplemented")
def test_client() -> None:
    assert True


def test_list_invoices_with_expand():
    client = Merge(
        api_key=api_key,
        account_token=account_token,
    )
    expand = [
        InvoicesListRequestExpand.EMPLOYEE,
        InvoicesListRequestExpand.ACCOUNTING_PERIOD,
        InvoicesListRequestExpand.APPLIED_CREDIT_NOTES,
        InvoicesListRequestExpand.CONTACT,
        InvoicesListRequestExpand.PAYMENT_TERM,
    ]
    result = client.accounting.invoices.list(
        expand=expand,
        include_remote_data=True,
        page_size=100,
        type=InvoicesListRequestType.ACCOUNTS_RECEIVABLE,
        status=InvoicesListRequestStatus.OPEN,
    )
    for invoice in result.results:
        print(f"Invoice ID: {invoice.id}")
image

@fern-support fern-support requested a review from a team as a code owner July 9, 2025 19:31
@fern-support fern-support requested a review from azhou202 July 9, 2025 19:31
@semgrep-app
Copy link

semgrep-app bot commented Jul 23, 2025

Legal Risk

The following dependencies were released under a license that
has been flagged by your organization for consideration.

Recommendation

While merging is not directly blocked, it's best to pause and consider what it means to use this license before continuing. If you are unsure, reach out to your security team or Semgrep admin to address this issue.

MPL-2.0

@dsinghvi dsinghvi closed this Jul 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants