Skip to content

Commit

Permalink
Release 0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jun 19, 2024
1 parent 7e2d86c commit bbf240f
Show file tree
Hide file tree
Showing 21 changed files with 1,304 additions and 95 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ jobs:
curl -sSL https://install.python-poetry.org | python - -y --version 1.5.1
- name: Install dependencies
run: poetry install

- name: Test
run: poetry run pytest ./tests/custom/

Expand Down
65 changes: 32 additions & 33 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mercoa"
version = "0.4.0"
version = "0.4.1"
description = ""
readme = "README.md"
authors = []
Expand Down Expand Up @@ -37,7 +37,7 @@ pydantic = ">= 1.9.2"
typing_extensions = ">= 4.0.0"

[tool.poetry.dev-dependencies]
mypy = "1.9.0"
mypy = "1.0.1"
pytest = "^7.4.0"
pytest-asyncio = "^0.23.5"
python-dateutil = "^2.9.0"
Expand Down
16 changes: 16 additions & 0 deletions src/mercoa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
organization,
organization_types,
payment_method_types,
webhooks,
)
from .bank_lookup import BankAddress, BankLookupResponse
from .commons import (
Expand Down Expand Up @@ -241,6 +242,14 @@
PlaidLinkRequest,
)
from .version import __version__
from .webhooks import (
CounterpartyWebhook,
EntityWebhook,
InvoiceEmailWebhook,
InvoiceStatusChangedWebhook,
InvoiceWebhook,
PaymentMethodWebhook,
)

__all__ = [
"AccountType",
Expand Down Expand Up @@ -296,6 +305,7 @@
"CounterpartyInvoiceMetricsStatusResponse",
"CounterpartyNetworkType",
"CounterpartyResponse",
"CounterpartyWebhook",
"CurrencyCode",
"CustomPaymentMethodRequest",
"CustomPaymentMethodResponse",
Expand Down Expand Up @@ -331,6 +341,7 @@
"EntityUserId",
"EntityUserRequest",
"EntityUserResponse",
"EntityWebhook",
"EntityWithPaymentMethodResponse",
"ExternalAccountingSystemProviderRequest",
"ExternalAccountingSystemProviderRequest_Codat",
Expand All @@ -356,6 +367,7 @@
"IndividualProfileResponse",
"InternalServerError",
"InvoiceCreationRequest",
"InvoiceEmailWebhook",
"InvoiceFailureType",
"InvoiceFeesResponse",
"InvoiceId",
Expand All @@ -371,7 +383,9 @@
"InvoiceRequestBase",
"InvoiceResponse",
"InvoiceStatus",
"InvoiceStatusChangedWebhook",
"InvoiceUpdateRequest",
"InvoiceWebhook",
"LineItemAvailabilities",
"MercoaEnvironment",
"MetadataCustomizationRequest",
Expand Down Expand Up @@ -432,6 +446,7 @@
"PaymentMethodUpdateRequest_Check",
"PaymentMethodUpdateRequest_Custom",
"PaymentMethodUpdateRequest_OffPlatform",
"PaymentMethodWebhook",
"PaymentMethodsRequest",
"PaymentMethodsResponse",
"PaymentRailRequest",
Expand Down Expand Up @@ -479,4 +494,5 @@
"organization",
"organization_types",
"payment_method_types",
"webhooks",
]
4 changes: 2 additions & 2 deletions src/mercoa/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class Mercoa:
token : typing.Union[str, typing.Callable[[], str]]
timeout : typing.Optional[float]
The timeout to be used, in seconds, for requests by default the timeout is 60 seconds, unless a custom httpx client is used, in which case a default is not set.
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
follow_redirects : typing.Optional[bool]
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
Expand Down Expand Up @@ -102,7 +102,7 @@ class AsyncMercoa:
token : typing.Union[str, typing.Callable[[], str]]
timeout : typing.Optional[float]
The timeout to be used, in seconds, for requests by default the timeout is 60 seconds, unless a custom httpx client is used, in which case a default is not set.
The timeout to be used, in seconds, for requests. By default the timeout is 60 seconds, unless a custom httpx client is used, in which case this default is not enforced.
follow_redirects : typing.Optional[bool]
Whether the default httpx client follows redirects or not, this is irrelevant if a custom httpx client is passed in.
Expand Down
2 changes: 1 addition & 1 deletion src/mercoa/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def get_headers(self) -> typing.Dict[str, str]:
headers: typing.Dict[str, str] = {
"X-Fern-Language": "Python",
"X-Fern-SDK-Name": "mercoa",
"X-Fern-SDK-Version": "0.4.0",
"X-Fern-SDK-Version": "0.4.1",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
Loading

0 comments on commit bbf240f

Please sign in to comment.