Skip to content

Commit

Permalink
Release 0.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-api[bot] committed Oct 13, 2023
1 parent 60892fa commit 415df2b
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 2 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.3.1"
version = "v0.3.2"
description = ""
readme = "README.md"
authors = []
Expand Down
2 changes: 2 additions & 0 deletions src/mercoa/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
Rule_Approver,
Ssn,
TaxId,
TokenGenerationEntityOptions,
TokenGenerationFailed,
TokenGenerationInvoiceOptions,
TokenGenerationOptions,
Expand Down Expand Up @@ -361,6 +362,7 @@
"Rule_Approver",
"Ssn",
"TaxId",
"TokenGenerationEntityOptions",
"TokenGenerationFailed",
"TokenGenerationInvoiceOptions",
"TokenGenerationOptions",
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.3.1",
"X-Fern-SDK-Version": "v0.3.2",
}
headers["Authorization"] = f"Bearer {self._get_token()}"
return headers
Expand Down
2 changes: 2 additions & 0 deletions src/mercoa/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
Rule,
Rule_Approver,
TaxId,
TokenGenerationEntityOptions,
TokenGenerationFailed,
TokenGenerationInvoiceOptions,
TokenGenerationOptions,
Expand Down Expand Up @@ -367,6 +368,7 @@
"Rule_Approver",
"Ssn",
"TaxId",
"TokenGenerationEntityOptions",
"TokenGenerationFailed",
"TokenGenerationInvoiceOptions",
"TokenGenerationOptions",
Expand Down
2 changes: 2 additions & 0 deletions src/mercoa/resources/entity_types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
Rule,
Rule_Approver,
TaxId,
TokenGenerationEntityOptions,
TokenGenerationInvoiceOptions,
TokenGenerationOptions,
TokenGenerationPagesOptions,
Expand Down Expand Up @@ -116,6 +117,7 @@
"Rule",
"Rule_Approver",
"TaxId",
"TokenGenerationEntityOptions",
"TokenGenerationFailed",
"TokenGenerationInvoiceOptions",
"TokenGenerationOptions",
Expand Down
2 changes: 2 additions & 0 deletions src/mercoa/resources/entity_types/types/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
from .responsibilities import Responsibilities
from .rule import Rule, Rule_Approver
from .tax_id import TaxId
from .token_generation_entity_options import TokenGenerationEntityOptions
from .token_generation_invoice_options import TokenGenerationInvoiceOptions
from .token_generation_options import TokenGenerationOptions
from .token_generation_pages_options import TokenGenerationPagesOptions
Expand Down Expand Up @@ -105,6 +106,7 @@
"Rule",
"Rule_Approver",
"TaxId",
"TokenGenerationEntityOptions",
"TokenGenerationInvoiceOptions",
"TokenGenerationOptions",
"TokenGenerationPagesOptions",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This file was auto-generated by Fern from our API Definition.

import datetime as dt
import typing

import pydantic

from ....core.datetime_utils import serialize_datetime


class TokenGenerationEntityOptions(pydantic.BaseModel):
enable_mercoa_payments: typing.Optional[bool] = pydantic.Field(
alias="enableMercoaPayments",
description="If true, will require entity to undergo KYB to use Mercoa payment rails and will capture required KYB data in the portal.",
)

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().json(**kwargs_with_defaults)

def dict(self, **kwargs: typing.Any) -> typing.Dict[str, typing.Any]:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
return super().dict(**kwargs_with_defaults)

class Config:
frozen = True
smart_union = True
allow_population_by_field_name = True
json_encoders = {dt.datetime: serialize_datetime}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import pydantic

from ....core.datetime_utils import serialize_datetime
from .token_generation_entity_options import TokenGenerationEntityOptions
from .token_generation_invoice_options import TokenGenerationInvoiceOptions
from .token_generation_pages_options import TokenGenerationPagesOptions
from .token_generation_style_options import TokenGenerationStyleOptions
Expand All @@ -20,6 +21,7 @@ class TokenGenerationOptions(pydantic.BaseModel):
pages: typing.Optional[TokenGenerationPagesOptions]
style: typing.Optional[TokenGenerationStyleOptions]
vendors: typing.Optional[TokenGenerationVendorOptions]
entity: typing.Optional[TokenGenerationEntityOptions]

def json(self, **kwargs: typing.Any) -> str:
kwargs_with_defaults: typing.Any = {"by_alias": True, "exclude_unset": True, **kwargs}
Expand Down

0 comments on commit 415df2b

Please sign in to comment.