-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcreateinvoicepaymenterror.py
More file actions
37 lines (31 loc) · 1.23 KB
/
createinvoicepaymenterror.py
File metadata and controls
37 lines (31 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
from __future__ import annotations
from dataclasses import dataclass, field
import httpx
from moovio_sdk.models.components import (
amountdecimalvalidationerror as components_amountdecimalvalidationerror,
)
from moovio_sdk.models.errors import MoovError
from moovio_sdk.types import BaseModel
import pydantic
from typing import Optional
from typing_extensions import Annotated
class CreateInvoicePaymentErrorData(BaseModel):
amount: Optional[
components_amountdecimalvalidationerror.AmountDecimalValidationError
] = None
foreign_id: Annotated[Optional[str], pydantic.Field(alias="foreignID")] = None
description: Optional[str] = None
payment_date: Annotated[Optional[str], pydantic.Field(alias="paymentDate")] = None
@dataclass(unsafe_hash=True)
class CreateInvoicePaymentError(MoovError):
data: CreateInvoicePaymentErrorData = field(hash=False)
def __init__(
self,
data: CreateInvoicePaymentErrorData,
raw_response: httpx.Response,
body: Optional[str] = None,
):
message = body or raw_response.text
super().__init__(message, raw_response, body)
object.__setattr__(self, "data", data)