Skip to content

Commit

Permalink
Release v0.3.36
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed May 28, 2024
1 parent 89f463f commit 225dc57
Show file tree
Hide file tree
Showing 63 changed files with 1,318 additions and 793 deletions.
12 changes: 6 additions & 6 deletions poetry.lock

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

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.35"
version = "v0.3.36"
description = ""
readme = "README.md"
authors = []
Expand Down
3 changes: 2 additions & 1 deletion src/mercoa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
PaymentDestinationOptions_BankAccount,
PaymentDestinationOptions_Check,
)
from .ocr import OcrAsyncResponse, OcrJobResponse, OcrJobStatus, OcrResponse
from .ocr import OcrAsyncResponse, OcrJobResponse, OcrJobStatus, OcrRequest, OcrResponse
from .organization_types import (
BusinessOnboardingOptions,
CodatProviderRequest,
Expand Down Expand Up @@ -386,6 +386,7 @@
"OcrAsyncResponse",
"OcrJobResponse",
"OcrJobStatus",
"OcrRequest",
"OcrResponse",
"OnboardingOption",
"OnboardingOptionsRequest",
Expand Down
4 changes: 2 additions & 2 deletions src/mercoa/bank_lookup/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def find(
token="YOUR_TOKEN",
)
client.bank_lookup.find(
routing_number="string",
routing_number="026009593",
)
"""
_response = self._client_wrapper.httpx_client.request(
Expand Down Expand Up @@ -136,7 +136,7 @@ async def find(
token="YOUR_TOKEN",
)
await client.bank_lookup.find(
routing_number="string",
routing_number="026009593",
)
"""
_response = await self._client_wrapper.httpx_client.request(
Expand Down
14 changes: 14 additions & 0 deletions src/mercoa/bank_lookup/types/bank_address.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,20 @@


class BankAddress(pydantic_v1.BaseModel):
"""
Examples
--------
from mercoa import BankAddress
BankAddress(
address="123 Main St",
city="Anytown",
state="CA",
postal_code="12345",
postal_code_extension="6789",
)
"""

address: str
city: str
state: str
Expand Down
17 changes: 17 additions & 0 deletions src/mercoa/bank_lookup/types/bank_lookup_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@


class BankLookupResponse(pydantic_v1.BaseModel):
"""
Examples
--------
from mercoa import BankAddress, BankLookupResponse
BankLookupResponse(
bank_name="Bank of America",
bank_address=BankAddress(
address="123 Main St",
city="Anytown",
state="CA",
postal_code="12345",
postal_code_extension="6789",
),
)
"""

bank_name: str = pydantic_v1.Field(alias="bankName")
bank_address: BankAddress = pydantic_v1.Field(alias="bankAddress")

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.35",
"X-Fern-SDK-Version": "v0.3.36",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
138 changes: 116 additions & 22 deletions src/mercoa/custom_payment_method_schema/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,11 +126,32 @@ def create(
)
client.custom_payment_method_schema.create(
request=CustomPaymentMethodSchemaRequest(
name="string",
is_source=True,
name="Wire",
is_source=False,
is_destination=True,
supported_currencies=["AED"],
fields=[CustomPaymentMethodSchemaField()],
supported_currencies=["USD", "EUR"],
fields=[
CustomPaymentMethodSchemaField(
name="accountName",
display_name="Account Name",
type="text",
optional=False,
use_as_account_name=True,
),
CustomPaymentMethodSchemaField(
name="accountNumber",
display_name="Account Number",
type="number",
optional=False,
use_as_account_number=True,
),
CustomPaymentMethodSchemaField(
name="routingNumber",
display_name="Routing Number",
type="number",
optional=False,
),
],
),
)
"""
Expand Down Expand Up @@ -218,13 +239,39 @@ def update(
token="YOUR_TOKEN",
)
client.custom_payment_method_schema.update(
schema_id="string",
schema_id="cpms_14f78dcd-4614-426e-a37a-7af262431d41",
request=CustomPaymentMethodSchemaRequest(
name="string",
is_source=True,
name="Check",
is_source=False,
is_destination=True,
supported_currencies=["AED"],
fields=[CustomPaymentMethodSchemaField()],
supported_currencies=["USD"],
fields=[
CustomPaymentMethodSchemaField(
name="payToTheOrderOf",
display_name="Pay To The Order Of",
type="text",
optional=False,
),
CustomPaymentMethodSchemaField(
name="accountNumber",
display_name="Account Number",
type="number",
optional=False,
use_as_account_number=True,
),
CustomPaymentMethodSchemaField(
name="routingNumber",
display_name="Routing Number",
type="number",
optional=False,
),
CustomPaymentMethodSchemaField(
name="address",
display_name="Address",
type="address",
optional=False,
),
],
),
)
"""
Expand Down Expand Up @@ -304,7 +351,7 @@ def get(
token="YOUR_TOKEN",
)
client.custom_payment_method_schema.get(
schema_id="string",
schema_id="cpms_14f78dcd-4614-426e-a37a-7af262431d41",
)
"""
_response = self._client_wrapper.httpx_client.request(
Expand Down Expand Up @@ -377,7 +424,7 @@ def delete(
token="YOUR_TOKEN",
)
client.custom_payment_method_schema.delete(
schema_id="string",
schema_id="cpms_14f78dcd-4614-426e-a37a-7af262431d41",
)
"""
_response = self._client_wrapper.httpx_client.request(
Expand Down Expand Up @@ -527,11 +574,32 @@ async def create(
)
await client.custom_payment_method_schema.create(
request=CustomPaymentMethodSchemaRequest(
name="string",
is_source=True,
name="Wire",
is_source=False,
is_destination=True,
supported_currencies=["AED"],
fields=[CustomPaymentMethodSchemaField()],
supported_currencies=["USD", "EUR"],
fields=[
CustomPaymentMethodSchemaField(
name="accountName",
display_name="Account Name",
type="text",
optional=False,
use_as_account_name=True,
),
CustomPaymentMethodSchemaField(
name="accountNumber",
display_name="Account Number",
type="number",
optional=False,
use_as_account_number=True,
),
CustomPaymentMethodSchemaField(
name="routingNumber",
display_name="Routing Number",
type="number",
optional=False,
),
],
),
)
"""
Expand Down Expand Up @@ -619,13 +687,39 @@ async def update(
token="YOUR_TOKEN",
)
await client.custom_payment_method_schema.update(
schema_id="string",
schema_id="cpms_14f78dcd-4614-426e-a37a-7af262431d41",
request=CustomPaymentMethodSchemaRequest(
name="string",
is_source=True,
name="Check",
is_source=False,
is_destination=True,
supported_currencies=["AED"],
fields=[CustomPaymentMethodSchemaField()],
supported_currencies=["USD"],
fields=[
CustomPaymentMethodSchemaField(
name="payToTheOrderOf",
display_name="Pay To The Order Of",
type="text",
optional=False,
),
CustomPaymentMethodSchemaField(
name="accountNumber",
display_name="Account Number",
type="number",
optional=False,
use_as_account_number=True,
),
CustomPaymentMethodSchemaField(
name="routingNumber",
display_name="Routing Number",
type="number",
optional=False,
),
CustomPaymentMethodSchemaField(
name="address",
display_name="Address",
type="address",
optional=False,
),
],
),
)
"""
Expand Down Expand Up @@ -705,7 +799,7 @@ async def get(
token="YOUR_TOKEN",
)
await client.custom_payment_method_schema.get(
schema_id="string",
schema_id="cpms_14f78dcd-4614-426e-a37a-7af262431d41",
)
"""
_response = await self._client_wrapper.httpx_client.request(
Expand Down Expand Up @@ -778,7 +872,7 @@ async def delete(
token="YOUR_TOKEN",
)
await client.custom_payment_method_schema.delete(
schema_id="string",
schema_id="cpms_14f78dcd-4614-426e-a37a-7af262431d41",
)
"""
_response = await self._client_wrapper.httpx_client.request(
Expand Down
Loading

0 comments on commit 225dc57

Please sign in to comment.