-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
161700c
commit 47559c8
Showing
8 changed files
with
86 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/mercoa/resources/payment_method/types/custom_payment_method_update_request.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 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 | ||
from ...payment_method_schema.types.payment_method_schema_id import PaymentMethodSchemaId | ||
|
||
|
||
class CustomPaymentMethodUpdateRequest(pydantic.BaseModel): | ||
foreign_id: typing.Optional[str] = pydantic.Field( | ||
alias="foreignId", description=("ID for this payment method in your system\n") | ||
) | ||
account_name: typing.Optional[str] = pydantic.Field(alias="accountName") | ||
account_number: typing.Optional[str] = pydantic.Field(alias="accountNumber") | ||
schema_id: typing.Optional[PaymentMethodSchemaId] = pydantic.Field( | ||
alias="schemaId", | ||
description=( | ||
"Payment method schema used for this payment method. Defines the fields that this payment method contains.\n" | ||
), | ||
) | ||
data: typing.Optional[typing.Dict[str, str]] = pydantic.Field( | ||
description=("Object of key/value pairs that matches the keys in the linked payment method schema.\n") | ||
) | ||
|
||
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 | ||
allow_population_by_field_name = True | ||
json_encoders = {dt.datetime: serialize_datetime} |
25 changes: 25 additions & 0 deletions
25
src/mercoa/resources/payment_method/types/payment_method_update_request.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# 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 | ||
from .custom_payment_method_update_request import CustomPaymentMethodUpdateRequest | ||
|
||
|
||
class PaymentMethodUpdateRequest(pydantic.BaseModel): | ||
custom: typing.Optional[CustomPaymentMethodUpdateRequest] | ||
|
||
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 | ||
json_encoders = {dt.datetime: serialize_datetime} |