Skip to content

Commit

Permalink
Release v0.3.37
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jun 1, 2024
1 parent 225dc57 commit be2016b
Show file tree
Hide file tree
Showing 42 changed files with 1,282 additions and 182 deletions.
168 changes: 84 additions & 84 deletions poetry.lock

Large diffs are not rendered by default.

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.3.36"
version = "v0.3.37"
description = ""
readme = "README.md"
authors = []
Expand Down
14 changes: 10 additions & 4 deletions src/mercoa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
Ein,
EntityAddPayeesRequest,
EntityAddPayorsRequest,
EntityCustomizationRequest,
EntityCustomizationResponse,
EntityHidePayeesRequest,
EntityHidePayorsRequest,
EntityId,
Expand All @@ -65,19 +67,22 @@
EntityWithPaymentMethodResponse,
FindCounterpartiesResponse,
FindEntityResponse,
FindEntityUserResponse,
FindNotificationResponse,
IdentifierList,
IdentifierList_RolesList,
IdentifierList_UserList,
IndividualProfileRequest,
IndividualProfileResponse,
LineItemAvailabilities,
MetadataCustomizationRequest,
MetadataTrigger,
NotificationId,
NotificationPolicyRequest,
NotificationPolicyResponse,
NotificationResponse,
NotificationType,
PaymentMethodCustomizationRequest,
ProfileRequest,
ProfileResponse,
RepresentativeId,
Expand Down Expand Up @@ -181,8 +186,6 @@
OrganizationResponse,
PaymentMethodsRequest,
PaymentMethodsResponse,
PaymentRailMarkup,
PaymentRailMarkupType,
PaymentRailRequest,
PaymentRailResponse,
RutterProviderRequest,
Expand Down Expand Up @@ -312,6 +315,8 @@
"EmailSenderResponse",
"EntityAddPayeesRequest",
"EntityAddPayorsRequest",
"EntityCustomizationRequest",
"EntityCustomizationResponse",
"EntityHidePayeesRequest",
"EntityHidePayorsRequest",
"EntityId",
Expand All @@ -335,6 +340,7 @@
"ExternalAccountingSystemProviderResponse_Rutter",
"FindCounterpartiesResponse",
"FindEntityResponse",
"FindEntityUserResponse",
"FindInvoiceResponse",
"FindNotificationResponse",
"Forbidden",
Expand Down Expand Up @@ -366,6 +372,7 @@
"InvoiceUpdateRequest",
"LineItemAvailabilities",
"MercoaEnvironment",
"MetadataCustomizationRequest",
"MetadataRegexValidationRule",
"MetadataSchema",
"MetadataShowConditions",
Expand Down Expand Up @@ -402,6 +409,7 @@
"PaymentMethodBalanceStatus",
"PaymentMethodBaseRequest",
"PaymentMethodBaseResponse",
"PaymentMethodCustomizationRequest",
"PaymentMethodId",
"PaymentMethodRequest",
"PaymentMethodRequest_BankAccount",
Expand All @@ -424,8 +432,6 @@
"PaymentMethodUpdateRequest_OffPlatform",
"PaymentMethodsRequest",
"PaymentMethodsResponse",
"PaymentRailMarkup",
"PaymentRailMarkupType",
"PaymentRailRequest",
"PaymentRailResponse",
"PhoneNumber",
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": "v0.3.36",
"X-Fern-SDK-Version": "v0.3.37",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
22 changes: 16 additions & 6 deletions src/mercoa/custom_payment_method_schema/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,16 @@ def create(
supported_currencies=["USD", "EUR"],
fields=[
CustomPaymentMethodSchemaField(
name="accountName",
display_name="Account Name",
name="bankName",
display_name="Bank Name",
type="text",
optional=False,
),
CustomPaymentMethodSchemaField(
name="recipientName",
display_name="Recipient Name",
type="text",
optional=False,
use_as_account_name=True,
),
CustomPaymentMethodSchemaField(
name="accountNumber",
Expand Down Expand Up @@ -580,11 +585,16 @@ async def create(
supported_currencies=["USD", "EUR"],
fields=[
CustomPaymentMethodSchemaField(
name="accountName",
display_name="Account Name",
name="bankName",
display_name="Bank Name",
type="text",
optional=False,
),
CustomPaymentMethodSchemaField(
name="recipientName",
display_name="Recipient Name",
type="text",
optional=False,
use_as_account_name=True,
),
CustomPaymentMethodSchemaField(
name="accountNumber",
Expand Down
2 changes: 2 additions & 0 deletions src/mercoa/entity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from . import (
approval_policy,
counterparty,
customization,
email_log,
external_accounting_system,
invoice,
Expand Down Expand Up @@ -40,6 +41,7 @@
"SyncType",
"approval_policy",
"counterparty",
"customization",
"email_log",
"external_accounting_system",
"invoice",
Expand Down
56 changes: 44 additions & 12 deletions src/mercoa/entity/approval_policy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def create(
ApprovalPolicyRequest,
IdentifierList_RolesList,
Rule_Approver,
Trigger_Amount,
)
from mercoa.client import Mercoa
Expand All @@ -142,10 +143,17 @@ def create(
client.entity.approval_policy.create(
entity_id="ent_8545a84e-a45f-41bf-bdf1-33b42a55812c",
request=ApprovalPolicyRequest(
trigger=[],
trigger=[
Trigger_Amount(
amount=100.0,
currency="USD",
)
],
rule=Rule_Approver(
num_approvers=1,
identifier_list=IdentifierList_RolesList(value=["admin"]),
num_approvers=2,
identifier_list=IdentifierList_RolesList(
value=["Admin", "Controller"]
),
),
upstream_policy_id="root",
),
Expand Down Expand Up @@ -315,6 +323,7 @@ def update(
ApprovalPolicyUpdateRequest,
IdentifierList_RolesList,
Rule_Approver,
Trigger_Amount,
)
from mercoa.client import Mercoa
Expand All @@ -325,10 +334,17 @@ def update(
entity_id="ent_8545a84e-a45f-41bf-bdf1-33b42a55812c",
policy_id="apvl_5ce50275-1789-42ea-bc60-bb7e6d03635c",
request=ApprovalPolicyUpdateRequest(
trigger=[],
trigger=[
Trigger_Amount(
amount=100.0,
currency="USD",
)
],
rule=Rule_Approver(
num_approvers=1,
identifier_list=IdentifierList_RolesList(value=["admin"]),
num_approvers=2,
identifier_list=IdentifierList_RolesList(
value=["Admin", "Controller"]
),
),
upstream_policy_id="root",
),
Expand Down Expand Up @@ -574,6 +590,7 @@ async def create(
ApprovalPolicyRequest,
IdentifierList_RolesList,
Rule_Approver,
Trigger_Amount,
)
from mercoa.client import AsyncMercoa
Expand All @@ -583,10 +600,17 @@ async def create(
await client.entity.approval_policy.create(
entity_id="ent_8545a84e-a45f-41bf-bdf1-33b42a55812c",
request=ApprovalPolicyRequest(
trigger=[],
trigger=[
Trigger_Amount(
amount=100.0,
currency="USD",
)
],
rule=Rule_Approver(
num_approvers=1,
identifier_list=IdentifierList_RolesList(value=["admin"]),
num_approvers=2,
identifier_list=IdentifierList_RolesList(
value=["Admin", "Controller"]
),
),
upstream_policy_id="root",
),
Expand Down Expand Up @@ -756,6 +780,7 @@ async def update(
ApprovalPolicyUpdateRequest,
IdentifierList_RolesList,
Rule_Approver,
Trigger_Amount,
)
from mercoa.client import AsyncMercoa
Expand All @@ -766,10 +791,17 @@ async def update(
entity_id="ent_8545a84e-a45f-41bf-bdf1-33b42a55812c",
policy_id="apvl_5ce50275-1789-42ea-bc60-bb7e6d03635c",
request=ApprovalPolicyUpdateRequest(
trigger=[],
trigger=[
Trigger_Amount(
amount=100.0,
currency="USD",
)
],
rule=Rule_Approver(
num_approvers=1,
identifier_list=IdentifierList_RolesList(value=["admin"]),
num_approvers=2,
identifier_list=IdentifierList_RolesList(
value=["Admin", "Controller"]
),
),
upstream_policy_id="root",
),
Expand Down
3 changes: 3 additions & 0 deletions src/mercoa/entity/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from ..payment_method_types.types.payment_method_id import PaymentMethodId
from .approval_policy.client import ApprovalPolicyClient, AsyncApprovalPolicyClient
from .counterparty.client import AsyncCounterpartyClient, CounterpartyClient
from .customization.client import AsyncCustomizationClient, CustomizationClient
from .email_log.client import AsyncEmailLogClient, EmailLogClient
from .external_accounting_system.client import AsyncExternalAccountingSystemClient, ExternalAccountingSystemClient
from .invoice.client import AsyncInvoiceClient, InvoiceClient
Expand All @@ -48,6 +49,7 @@ def __init__(self, *, client_wrapper: SyncClientWrapper):
self.user = UserClient(client_wrapper=self._client_wrapper)
self.approval_policy = ApprovalPolicyClient(client_wrapper=self._client_wrapper)
self.counterparty = CounterpartyClient(client_wrapper=self._client_wrapper)
self.customization = CustomizationClient(client_wrapper=self._client_wrapper)
self.external_accounting_system = ExternalAccountingSystemClient(client_wrapper=self._client_wrapper)
self.invoice = InvoiceClient(client_wrapper=self._client_wrapper)
self.metadata = MetadataClient(client_wrapper=self._client_wrapper)
Expand Down Expand Up @@ -1106,6 +1108,7 @@ def __init__(self, *, client_wrapper: AsyncClientWrapper):
self.user = AsyncUserClient(client_wrapper=self._client_wrapper)
self.approval_policy = AsyncApprovalPolicyClient(client_wrapper=self._client_wrapper)
self.counterparty = AsyncCounterpartyClient(client_wrapper=self._client_wrapper)
self.customization = AsyncCustomizationClient(client_wrapper=self._client_wrapper)
self.external_accounting_system = AsyncExternalAccountingSystemClient(client_wrapper=self._client_wrapper)
self.invoice = AsyncInvoiceClient(client_wrapper=self._client_wrapper)
self.metadata = AsyncMetadataClient(client_wrapper=self._client_wrapper)
Expand Down
2 changes: 2 additions & 0 deletions src/mercoa/entity/customization/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# This file was auto-generated by Fern from our API Definition.

Loading

0 comments on commit be2016b

Please sign in to comment.