-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathlockbox.py
More file actions
107 lines (77 loc) · 3.23 KB
/
lockbox.py
File metadata and controls
107 lines (77 loc) · 3.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import TYPE_CHECKING, Dict, Optional
from datetime import datetime
from typing_extensions import Literal
from pydantic import Field as FieldInfo
from .._models import BaseModel
__all__ = ["Lockbox", "Address"]
class Address(BaseModel):
"""The mailing address for the Lockbox."""
city: str
"""The city of the address."""
line1: str
"""The first line of the address."""
line2: str
"""The second line of the address."""
postal_code: str
"""The postal code of the address."""
recipient: Optional[str] = None
"""The recipient line of the address.
This will include the recipient name you provide when creating the address, as
well as an ATTN suffix to help route the mail to your lockbox. Mail senders must
include this ATTN line to receive mail at this Lockbox.
"""
state: str
"""
The two-letter United States Postal Service (USPS) abbreviation for the state of
the address.
"""
class Lockbox(BaseModel):
"""Lockboxes are physical locations that can receive mail containing paper checks.
Increase will automatically create a Check Deposit for checks received this way.
"""
id: str
"""The Lockbox identifier."""
account_id: str
"""
The identifier for the Account checks sent to this lockbox will be deposited
into.
"""
address: Address
"""The mailing address for the Lockbox."""
check_deposit_behavior: Literal["enabled", "disabled", "pend_for_processing"]
"""Indicates if checks mailed to this lockbox will be deposited.
- `enabled` - Checks mailed to this Lockbox will be deposited.
- `disabled` - Checks mailed to this Lockbox will not be deposited.
- `pend_for_processing` - Checks mailed to this Lockbox will be pending until
actioned.
"""
created_at: datetime
"""
The [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) time at which the Lockbox
was created.
"""
description: Optional[str] = None
"""The description you choose for the Lockbox."""
idempotency_key: Optional[str] = None
"""The idempotency key you chose for this object.
This value is unique across Increase and is used to ensure that a request is
only processed once. Learn more about
[idempotency](https://increase.com/documentation/idempotency-keys).
"""
recipient_name: Optional[str] = None
"""The recipient name you choose for the Lockbox."""
type: Literal["lockbox"]
"""A constant representing the object's type.
For this resource it will always be `lockbox`.
"""
if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]