Skip to content

Commit

Permalink
Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Sep 29, 2023
1 parent 28a61e6 commit 7b4329a
Show file tree
Hide file tree
Showing 53 changed files with 734 additions and 1,093 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mercoa"
version = "v0.2.15"
version = "v0.3.0"
description = ""
readme = "README.md"
authors = []
Expand Down
24 changes: 8 additions & 16 deletions src/mercoa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
EmailSenderResponse,
EntityAddPayeesRequest,
EntityAddPayorsRequest,
EntityArchivePayeesRequest,
EntityArchivePayorsRequest,
EntityError,
EntityForeignIdAlreadyExists,
EntityHidePayeesRequest,
EntityHidePayorsRequest,
EntityId,
EntityMetadataResponse,
EntityOnboardingLinkType,
Expand Down Expand Up @@ -96,13 +96,14 @@
InvoiceNotificationConfigurationRequest,
InvoiceNotificationConfigurationResponse,
InvoiceOrderByField,
InvoiceQueryError,
InvoiceRequest,
InvoiceResponse,
InvoiceStatus,
InvoiceStatusError,
Itin,
MetadataConditional,
MetadataSchema,
MetadataShowConditions,
MetadataType,
NotFound,
NotificationConfigurationRequest,
Expand Down Expand Up @@ -172,10 +173,6 @@
TokenGenerationPagesOptions,
TokenGenerationStyleOptions,
TokenGenerationVendorOptions,
TransactionId,
TransactionResponse,
TransactionResponseExpanded,
TransactionStatus,
Trigger,
Trigger_All,
Trigger_Amount,
Expand All @@ -195,7 +192,6 @@
organization_types,
payment_method_schema,
payment_method_types,
transaction,
)
from .environment import MercoaEnvironment

Expand Down Expand Up @@ -256,10 +252,10 @@
"EmailSenderResponse",
"EntityAddPayeesRequest",
"EntityAddPayorsRequest",
"EntityArchivePayeesRequest",
"EntityArchivePayorsRequest",
"EntityError",
"EntityForeignIdAlreadyExists",
"EntityHidePayeesRequest",
"EntityHidePayorsRequest",
"EntityId",
"EntityMetadataResponse",
"EntityOnboardingLinkType",
Expand Down Expand Up @@ -295,14 +291,15 @@
"InvoiceNotificationConfigurationRequest",
"InvoiceNotificationConfigurationResponse",
"InvoiceOrderByField",
"InvoiceQueryError",
"InvoiceRequest",
"InvoiceResponse",
"InvoiceStatus",
"InvoiceStatusError",
"Itin",
"MercoaEnvironment",
"MetadataConditional",
"MetadataSchema",
"MetadataShowConditions",
"MetadataType",
"NotFound",
"NotificationConfigurationRequest",
Expand Down Expand Up @@ -372,10 +369,6 @@
"TokenGenerationPagesOptions",
"TokenGenerationStyleOptions",
"TokenGenerationVendorOptions",
"TransactionId",
"TransactionResponse",
"TransactionResponseExpanded",
"TransactionStatus",
"Trigger",
"Trigger_All",
"Trigger_Amount",
Expand All @@ -395,5 +388,4 @@
"organization_types",
"payment_method_schema",
"payment_method_types",
"transaction",
]
3 changes: 0 additions & 3 deletions src/mercoa/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from .resources.ocr.client import AsyncOcrClient, OcrClient
from .resources.organization.client import AsyncOrganizationClient, OrganizationClient
from .resources.payment_method_schema.client import AsyncPaymentMethodSchemaClient, PaymentMethodSchemaClient
from .resources.transaction.client import AsyncTransactionClient, TransactionClient


class Mercoa:
Expand All @@ -35,7 +34,6 @@ def __init__(
self.bank_lookup = BankLookupClient(client_wrapper=self._client_wrapper)
self.ocr = OcrClient(client_wrapper=self._client_wrapper)
self.payment_method_schema = PaymentMethodSchemaClient(client_wrapper=self._client_wrapper)
self.transaction = TransactionClient(client_wrapper=self._client_wrapper)


class AsyncMercoa:
Expand All @@ -58,7 +56,6 @@ def __init__(
self.bank_lookup = AsyncBankLookupClient(client_wrapper=self._client_wrapper)
self.ocr = AsyncOcrClient(client_wrapper=self._client_wrapper)
self.payment_method_schema = AsyncPaymentMethodSchemaClient(client_wrapper=self._client_wrapper)
self.transaction = AsyncTransactionClient(client_wrapper=self._client_wrapper)


def _get_base_url(*, base_url: typing.Optional[str] = None, environment: MercoaEnvironment) -> str:
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 @@ -14,7 +14,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": "v0.2.15",
"X-Fern-SDK-Version": "v0.3.0",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
21 changes: 8 additions & 13 deletions src/mercoa/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
organization_types,
payment_method_schema,
payment_method_types,
transaction,
)
from .bank_lookup import BankAddress, BankLookupResponse
from .commons import (
Expand Down Expand Up @@ -50,10 +49,10 @@
Ein,
EntityAddPayeesRequest,
EntityAddPayorsRequest,
EntityArchivePayeesRequest,
EntityArchivePayorsRequest,
EntityError,
EntityForeignIdAlreadyExists,
EntityHidePayeesRequest,
EntityHidePayorsRequest,
EntityId,
EntityMetadataResponse,
EntityOnboardingLinkType,
Expand Down Expand Up @@ -119,6 +118,7 @@
InvoiceLineItemResponse,
InvoiceMetricsResponse,
InvoiceOrderByField,
InvoiceQueryError,
InvoiceRequest,
InvoiceResponse,
InvoiceStatus,
Expand All @@ -139,8 +139,8 @@
IndividualOnboardingOptions,
InvoiceNotificationConfigurationRequest,
InvoiceNotificationConfigurationResponse,
MetadataConditional,
MetadataSchema,
MetadataShowConditions,
MetadataType,
NotificationConfigurationRequest,
NotificationConfigurationRequest_Invoice,
Expand Down Expand Up @@ -201,7 +201,6 @@
PaymentMethodUpdateRequest_Custom,
PlaidLinkRequest,
)
from .transaction import TransactionId, TransactionResponse, TransactionResponseExpanded, TransactionStatus

__all__ = [
"AccountType",
Expand Down Expand Up @@ -260,10 +259,10 @@
"EmailSenderResponse",
"EntityAddPayeesRequest",
"EntityAddPayorsRequest",
"EntityArchivePayeesRequest",
"EntityArchivePayorsRequest",
"EntityError",
"EntityForeignIdAlreadyExists",
"EntityHidePayeesRequest",
"EntityHidePayorsRequest",
"EntityId",
"EntityMetadataResponse",
"EntityOnboardingLinkType",
Expand Down Expand Up @@ -299,13 +298,14 @@
"InvoiceNotificationConfigurationRequest",
"InvoiceNotificationConfigurationResponse",
"InvoiceOrderByField",
"InvoiceQueryError",
"InvoiceRequest",
"InvoiceResponse",
"InvoiceStatus",
"InvoiceStatusError",
"Itin",
"MetadataConditional",
"MetadataSchema",
"MetadataShowConditions",
"MetadataType",
"NotFound",
"NotificationConfigurationRequest",
Expand Down Expand Up @@ -375,10 +375,6 @@
"TokenGenerationPagesOptions",
"TokenGenerationStyleOptions",
"TokenGenerationVendorOptions",
"TransactionId",
"TransactionResponse",
"TransactionResponseExpanded",
"TransactionStatus",
"Trigger",
"Trigger_All",
"Trigger_Amount",
Expand All @@ -398,5 +394,4 @@
"organization_types",
"payment_method_schema",
"payment_method_types",
"transaction",
]
Loading

0 comments on commit 7b4329a

Please sign in to comment.