Skip to content

Commit

Permalink
Release 0.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Jul 1, 2024
1 parent 8ac4ddb commit 3798799
Show file tree
Hide file tree
Showing 22 changed files with 230 additions and 46 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 = "0.4.2"
version = "0.4.3"
description = ""
readme = "README.md"
authors = []
Expand Down
4 changes: 4 additions & 0 deletions src/mercoa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,10 @@
CheckRequest,
CheckResponse,
CurrencyCode,
CustomPaymentMethodFeeType,
CustomPaymentMethodRequest,
CustomPaymentMethodResponse,
CustomPaymentMethodSchemaFee,
CustomPaymentMethodSchemaField,
CustomPaymentMethodSchemaFieldType,
CustomPaymentMethodSchemaId,
Expand Down Expand Up @@ -307,8 +309,10 @@
"CounterpartyResponse",
"CounterpartyWebhook",
"CurrencyCode",
"CustomPaymentMethodFeeType",
"CustomPaymentMethodRequest",
"CustomPaymentMethodResponse",
"CustomPaymentMethodSchemaFee",
"CustomPaymentMethodSchemaField",
"CustomPaymentMethodSchemaFieldType",
"CustomPaymentMethodSchemaId",
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.2",
"X-Fern-SDK-Version": "0.4.3",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
65 changes: 41 additions & 24 deletions src/mercoa/custom_payment_method_schema/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from ..core.pydantic_utilities import pydantic_v1
from ..core.request_options import RequestOptions
from ..payment_method_types.types.currency_code import CurrencyCode
from ..payment_method_types.types.custom_payment_method_schema_fee import CustomPaymentMethodSchemaFee
from ..payment_method_types.types.custom_payment_method_schema_field import CustomPaymentMethodSchemaField
from ..payment_method_types.types.custom_payment_method_schema_id import CustomPaymentMethodSchemaId
from ..payment_method_types.types.custom_payment_method_schema_response import CustomPaymentMethodSchemaResponse
Expand Down Expand Up @@ -85,8 +86,9 @@ def create(
is_source: bool,
is_destination: bool,
fields: typing.Sequence[CustomPaymentMethodSchemaField],
estimated_processing_time: typing.Optional[int] = OMIT,
supported_currencies: typing.Optional[typing.Sequence[CurrencyCode]] = OMIT,
estimated_processing_time: typing.Optional[int] = OMIT,
fees: typing.Optional[CustomPaymentMethodSchemaFee] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> CustomPaymentMethodSchemaResponse:
"""
Expand All @@ -104,11 +106,13 @@ def create(
fields : typing.Sequence[CustomPaymentMethodSchemaField]
supported_currencies : typing.Optional[typing.Sequence[CurrencyCode]]
List of currencies that this payment method supports. If not provided, the payment method will support only USD.
estimated_processing_time : typing.Optional[int]
Estimated time in days for this payment method to process a payments. Set as 0 for same-day payment methods, -1 for unknown processing time.
supported_currencies : typing.Optional[typing.Sequence[CurrencyCode]]
List of currencies that this payment method supports. If not provided, the payment method will support only USD.
fees : typing.Optional[CustomPaymentMethodSchemaFee]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -146,14 +150,14 @@ def create(
CustomPaymentMethodSchemaField(
name="accountNumber",
display_name="Account Number",
type="number",
type="usBankAccountNumber",
optional=False,
use_as_account_number=True,
),
CustomPaymentMethodSchemaField(
name="routingNumber",
display_name="Routing Number",
type="number",
type="usBankRoutingNumber",
optional=False,
),
],
Expand All @@ -167,9 +171,10 @@ def create(
"name": name,
"isSource": is_source,
"isDestination": is_destination,
"estimatedProcessingTime": estimated_processing_time,
"supportedCurrencies": supported_currencies,
"fields": fields,
"estimatedProcessingTime": estimated_processing_time,
"fees": fees,
},
request_options=request_options,
omit=OMIT,
Expand Down Expand Up @@ -205,8 +210,9 @@ def update(
is_source: bool,
is_destination: bool,
fields: typing.Sequence[CustomPaymentMethodSchemaField],
estimated_processing_time: typing.Optional[int] = OMIT,
supported_currencies: typing.Optional[typing.Sequence[CurrencyCode]] = OMIT,
estimated_processing_time: typing.Optional[int] = OMIT,
fees: typing.Optional[CustomPaymentMethodSchemaFee] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> CustomPaymentMethodSchemaResponse:
"""
Expand All @@ -226,11 +232,13 @@ def update(
fields : typing.Sequence[CustomPaymentMethodSchemaField]
supported_currencies : typing.Optional[typing.Sequence[CurrencyCode]]
List of currencies that this payment method supports. If not provided, the payment method will support only USD.
estimated_processing_time : typing.Optional[int]
Estimated time in days for this payment method to process a payments. Set as 0 for same-day payment methods, -1 for unknown processing time.
supported_currencies : typing.Optional[typing.Sequence[CurrencyCode]]
List of currencies that this payment method supports. If not provided, the payment method will support only USD.
fees : typing.Optional[CustomPaymentMethodSchemaFee]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -263,14 +271,14 @@ def update(
CustomPaymentMethodSchemaField(
name="accountNumber",
display_name="Account Number",
type="number",
type="usBankAccountNumber",
optional=False,
use_as_account_number=True,
),
CustomPaymentMethodSchemaField(
name="routingNumber",
display_name="Routing Number",
type="number",
type="usBankRoutingNumber",
optional=False,
),
CustomPaymentMethodSchemaField(
Expand All @@ -290,9 +298,10 @@ def update(
"name": name,
"isSource": is_source,
"isDestination": is_destination,
"estimatedProcessingTime": estimated_processing_time,
"supportedCurrencies": supported_currencies,
"fields": fields,
"estimatedProcessingTime": estimated_processing_time,
"fees": fees,
},
request_options=request_options,
omit=OMIT,
Expand Down Expand Up @@ -490,8 +499,9 @@ async def create(
is_source: bool,
is_destination: bool,
fields: typing.Sequence[CustomPaymentMethodSchemaField],
estimated_processing_time: typing.Optional[int] = OMIT,
supported_currencies: typing.Optional[typing.Sequence[CurrencyCode]] = OMIT,
estimated_processing_time: typing.Optional[int] = OMIT,
fees: typing.Optional[CustomPaymentMethodSchemaFee] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> CustomPaymentMethodSchemaResponse:
"""
Expand All @@ -509,11 +519,13 @@ async def create(
fields : typing.Sequence[CustomPaymentMethodSchemaField]
supported_currencies : typing.Optional[typing.Sequence[CurrencyCode]]
List of currencies that this payment method supports. If not provided, the payment method will support only USD.
estimated_processing_time : typing.Optional[int]
Estimated time in days for this payment method to process a payments. Set as 0 for same-day payment methods, -1 for unknown processing time.
supported_currencies : typing.Optional[typing.Sequence[CurrencyCode]]
List of currencies that this payment method supports. If not provided, the payment method will support only USD.
fees : typing.Optional[CustomPaymentMethodSchemaFee]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -551,14 +563,14 @@ async def create(
CustomPaymentMethodSchemaField(
name="accountNumber",
display_name="Account Number",
type="number",
type="usBankAccountNumber",
optional=False,
use_as_account_number=True,
),
CustomPaymentMethodSchemaField(
name="routingNumber",
display_name="Routing Number",
type="number",
type="usBankRoutingNumber",
optional=False,
),
],
Expand All @@ -572,9 +584,10 @@ async def create(
"name": name,
"isSource": is_source,
"isDestination": is_destination,
"estimatedProcessingTime": estimated_processing_time,
"supportedCurrencies": supported_currencies,
"fields": fields,
"estimatedProcessingTime": estimated_processing_time,
"fees": fees,
},
request_options=request_options,
omit=OMIT,
Expand Down Expand Up @@ -610,8 +623,9 @@ async def update(
is_source: bool,
is_destination: bool,
fields: typing.Sequence[CustomPaymentMethodSchemaField],
estimated_processing_time: typing.Optional[int] = OMIT,
supported_currencies: typing.Optional[typing.Sequence[CurrencyCode]] = OMIT,
estimated_processing_time: typing.Optional[int] = OMIT,
fees: typing.Optional[CustomPaymentMethodSchemaFee] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
) -> CustomPaymentMethodSchemaResponse:
"""
Expand All @@ -631,11 +645,13 @@ async def update(
fields : typing.Sequence[CustomPaymentMethodSchemaField]
supported_currencies : typing.Optional[typing.Sequence[CurrencyCode]]
List of currencies that this payment method supports. If not provided, the payment method will support only USD.
estimated_processing_time : typing.Optional[int]
Estimated time in days for this payment method to process a payments. Set as 0 for same-day payment methods, -1 for unknown processing time.
supported_currencies : typing.Optional[typing.Sequence[CurrencyCode]]
List of currencies that this payment method supports. If not provided, the payment method will support only USD.
fees : typing.Optional[CustomPaymentMethodSchemaFee]
request_options : typing.Optional[RequestOptions]
Request-specific configuration.
Expand Down Expand Up @@ -668,14 +684,14 @@ async def update(
CustomPaymentMethodSchemaField(
name="accountNumber",
display_name="Account Number",
type="number",
type="usBankAccountNumber",
optional=False,
use_as_account_number=True,
),
CustomPaymentMethodSchemaField(
name="routingNumber",
display_name="Routing Number",
type="number",
type="usBankRoutingNumber",
optional=False,
),
CustomPaymentMethodSchemaField(
Expand All @@ -695,9 +711,10 @@ async def update(
"name": name,
"isSource": is_source,
"isDestination": is_destination,
"estimatedProcessingTime": estimated_processing_time,
"supportedCurrencies": supported_currencies,
"fields": fields,
"estimatedProcessingTime": estimated_processing_time,
"fees": fees,
},
request_options=request_options,
omit=OMIT,
Expand Down
4 changes: 2 additions & 2 deletions src/mercoa/entity/payment_method/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def get_balance(
request_options: typing.Optional[RequestOptions] = None,
) -> PaymentMethodBalanceResponse:
"""
Get the available balance of a payment method. Only bank accounts added with Plaid are supported. This endpoint will return a cached value and will refresh the balance when called.
Deprecated. Get the available balance of a payment method. Only bank accounts added with Plaid are supported. This endpoint will return a cached value and will refresh the balance when called.
Parameters
----------
Expand Down Expand Up @@ -1027,7 +1027,7 @@ async def get_balance(
request_options: typing.Optional[RequestOptions] = None,
) -> PaymentMethodBalanceResponse:
"""
Get the available balance of a payment method. Only bank accounts added with Plaid are supported. This endpoint will return a cached value and will refresh the balance when called.
Deprecated. Get the available balance of a payment method. Only bank accounts added with Plaid are supported. This endpoint will return a cached value and will refresh the balance when called.
Parameters
----------
Expand Down
Loading

0 comments on commit 3798799

Please sign in to comment.