Skip to content

Commit 8a3230e

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(examples): minor formatting changes (#472)
1 parent ed6527d commit 8a3230e

File tree

5 files changed

+156
-156
lines changed

5 files changed

+156
-156
lines changed

tests/api_resources/sandbox/connections/test_accounts.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_method_update(self, client: Finch) -> None:
7676
@parametrize
7777
def test_method_update_with_all_params(self, client: Finch) -> None:
7878
account = client.sandbox.connections.accounts.update(
79-
connection_status="reauth",
79+
connection_status="pending",
8080
)
8181
assert_matches_type(AccountUpdateResponse, account, path=["response"])
8282

@@ -160,7 +160,7 @@ async def test_method_update(self, async_client: AsyncFinch) -> None:
160160
@parametrize
161161
async def test_method_update_with_all_params(self, async_client: AsyncFinch) -> None:
162162
account = await async_client.sandbox.connections.accounts.update(
163-
connection_status="reauth",
163+
connection_status="pending",
164164
)
165165
assert_matches_type(AccountUpdateResponse, account, path=["response"])
166166

tests/api_resources/sandbox/test_company.py

+44-44
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
3636
company = client.sandbox.company.update(
3737
accounts=[
3838
{
39-
"routing_number": "routing_number",
4039
"account_name": "account_name",
41-
"institution_name": "institution_name",
42-
"account_type": "checking",
4340
"account_number": "account_number",
41+
"account_type": "checking",
42+
"institution_name": "institution_name",
43+
"routing_number": "routing_number",
4444
},
4545
{
46-
"routing_number": "routing_number",
4746
"account_name": "account_name",
48-
"institution_name": "institution_name",
49-
"account_type": "checking",
5047
"account_number": "account_number",
48+
"account_type": "checking",
49+
"institution_name": "institution_name",
50+
"routing_number": "routing_number",
5151
},
5252
{
53-
"routing_number": "routing_number",
5453
"account_name": "account_name",
55-
"institution_name": "institution_name",
56-
"account_type": "checking",
5754
"account_number": "account_number",
55+
"account_type": "checking",
56+
"institution_name": "institution_name",
57+
"routing_number": "routing_number",
5858
},
5959
],
6060
departments=[
@@ -73,40 +73,40 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
7373
],
7474
ein="ein",
7575
entity={
76-
"type": "llc",
7776
"subtype": "s_corporation",
77+
"type": "llc",
7878
},
7979
legal_name="legal_name",
8080
locations=[
8181
{
82-
"line1": "line1",
83-
"line2": "line2",
8482
"city": "city",
85-
"state": "state",
86-
"postal_code": "postal_code",
8783
"country": "country",
84+
"line1": "line1",
85+
"line2": "line2",
8886
"name": "name",
87+
"postal_code": "postal_code",
8988
"source_id": "source_id",
89+
"state": "state",
9090
},
9191
{
92-
"line1": "line1",
93-
"line2": "line2",
9492
"city": "city",
95-
"state": "state",
96-
"postal_code": "postal_code",
9793
"country": "country",
94+
"line1": "line1",
95+
"line2": "line2",
9896
"name": "name",
97+
"postal_code": "postal_code",
9998
"source_id": "source_id",
99+
"state": "state",
100100
},
101101
{
102-
"line1": "line1",
103-
"line2": "line2",
104102
"city": "city",
105-
"state": "state",
106-
"postal_code": "postal_code",
107103
"country": "country",
104+
"line1": "line1",
105+
"line2": "line2",
108106
"name": "name",
107+
"postal_code": "postal_code",
109108
"source_id": "source_id",
109+
"state": "state",
110110
},
111111
],
112112
primary_email="primary_email",
@@ -175,25 +175,25 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
175175
company = await async_client.sandbox.company.update(
176176
accounts=[
177177
{
178-
"routing_number": "routing_number",
179178
"account_name": "account_name",
180-
"institution_name": "institution_name",
181-
"account_type": "checking",
182179
"account_number": "account_number",
180+
"account_type": "checking",
181+
"institution_name": "institution_name",
182+
"routing_number": "routing_number",
183183
},
184184
{
185-
"routing_number": "routing_number",
186185
"account_name": "account_name",
187-
"institution_name": "institution_name",
188-
"account_type": "checking",
189186
"account_number": "account_number",
187+
"account_type": "checking",
188+
"institution_name": "institution_name",
189+
"routing_number": "routing_number",
190190
},
191191
{
192-
"routing_number": "routing_number",
193192
"account_name": "account_name",
194-
"institution_name": "institution_name",
195-
"account_type": "checking",
196193
"account_number": "account_number",
194+
"account_type": "checking",
195+
"institution_name": "institution_name",
196+
"routing_number": "routing_number",
197197
},
198198
],
199199
departments=[
@@ -212,40 +212,40 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
212212
],
213213
ein="ein",
214214
entity={
215-
"type": "llc",
216215
"subtype": "s_corporation",
216+
"type": "llc",
217217
},
218218
legal_name="legal_name",
219219
locations=[
220220
{
221-
"line1": "line1",
222-
"line2": "line2",
223221
"city": "city",
224-
"state": "state",
225-
"postal_code": "postal_code",
226222
"country": "country",
223+
"line1": "line1",
224+
"line2": "line2",
227225
"name": "name",
226+
"postal_code": "postal_code",
228227
"source_id": "source_id",
228+
"state": "state",
229229
},
230230
{
231-
"line1": "line1",
232-
"line2": "line2",
233231
"city": "city",
234-
"state": "state",
235-
"postal_code": "postal_code",
236232
"country": "country",
233+
"line1": "line1",
234+
"line2": "line2",
237235
"name": "name",
236+
"postal_code": "postal_code",
238237
"source_id": "source_id",
238+
"state": "state",
239239
},
240240
{
241-
"line1": "line1",
242-
"line2": "line2",
243241
"city": "city",
244-
"state": "state",
245-
"postal_code": "postal_code",
246242
"country": "country",
243+
"line1": "line1",
244+
"line2": "line2",
247245
"name": "name",
246+
"postal_code": "postal_code",
248247
"source_id": "source_id",
248+
"state": "state",
249249
},
250250
],
251251
primary_email="primary_email",

tests/api_resources/sandbox/test_employment.py

+18-18
Original file line numberDiff line numberDiff line change
@@ -45,48 +45,48 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
4545
],
4646
department={"name": "name"},
4747
employment={
48-
"type": "employee",
4948
"subtype": "full_time",
49+
"type": "employee",
5050
},
5151
end_date="end_date",
5252
first_name="first_name",
5353
income={
54-
"unit": "yearly",
5554
"amount": 0,
5655
"currency": "currency",
5756
"effective_date": "effective_date",
57+
"unit": "yearly",
5858
},
5959
income_history=[
6060
{
61-
"unit": "yearly",
6261
"amount": 0,
6362
"currency": "currency",
6463
"effective_date": "effective_date",
64+
"unit": "yearly",
6565
},
6666
{
67-
"unit": "yearly",
6867
"amount": 0,
6968
"currency": "currency",
7069
"effective_date": "effective_date",
70+
"unit": "yearly",
7171
},
7272
{
73-
"unit": "yearly",
7473
"amount": 0,
7574
"currency": "currency",
7675
"effective_date": "effective_date",
76+
"unit": "yearly",
7777
},
7878
],
7979
is_active=True,
8080
last_name="last_name",
8181
location={
82-
"line1": "line1",
83-
"line2": "line2",
8482
"city": "city",
85-
"state": "state",
86-
"postal_code": "postal_code",
8783
"country": "country",
84+
"line1": "line1",
85+
"line2": "line2",
8886
"name": "name",
87+
"postal_code": "postal_code",
8988
"source_id": "source_id",
89+
"state": "state",
9090
},
9191
manager={"id": "id"},
9292
middle_name="middle_name",
@@ -159,48 +159,48 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
159159
],
160160
department={"name": "name"},
161161
employment={
162-
"type": "employee",
163162
"subtype": "full_time",
163+
"type": "employee",
164164
},
165165
end_date="end_date",
166166
first_name="first_name",
167167
income={
168-
"unit": "yearly",
169168
"amount": 0,
170169
"currency": "currency",
171170
"effective_date": "effective_date",
171+
"unit": "yearly",
172172
},
173173
income_history=[
174174
{
175-
"unit": "yearly",
176175
"amount": 0,
177176
"currency": "currency",
178177
"effective_date": "effective_date",
178+
"unit": "yearly",
179179
},
180180
{
181-
"unit": "yearly",
182181
"amount": 0,
183182
"currency": "currency",
184183
"effective_date": "effective_date",
184+
"unit": "yearly",
185185
},
186186
{
187-
"unit": "yearly",
188187
"amount": 0,
189188
"currency": "currency",
190189
"effective_date": "effective_date",
190+
"unit": "yearly",
191191
},
192192
],
193193
is_active=True,
194194
last_name="last_name",
195195
location={
196-
"line1": "line1",
197-
"line2": "line2",
198196
"city": "city",
199-
"state": "state",
200-
"postal_code": "postal_code",
201197
"country": "country",
198+
"line1": "line1",
199+
"line2": "line2",
202200
"name": "name",
201+
"postal_code": "postal_code",
203202
"source_id": "source_id",
203+
"state": "state",
204204
},
205205
manager={"id": "id"},
206206
middle_name="middle_name",

tests/api_resources/sandbox/test_individual.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ def test_method_update_with_all_params(self, client: Finch) -> None:
6565
],
6666
preferred_name="preferred_name",
6767
residence={
68-
"line1": "line1",
69-
"line2": "line2",
7068
"city": "city",
71-
"state": "state",
72-
"postal_code": "postal_code",
7369
"country": "country",
70+
"line1": "line1",
71+
"line2": "line2",
7472
"name": "name",
73+
"postal_code": "postal_code",
7574
"source_id": "source_id",
75+
"state": "state",
7676
},
7777
ssn="ssn",
7878
)
@@ -161,14 +161,14 @@ async def test_method_update_with_all_params(self, async_client: AsyncFinch) ->
161161
],
162162
preferred_name="preferred_name",
163163
residence={
164-
"line1": "line1",
165-
"line2": "line2",
166164
"city": "city",
167-
"state": "state",
168-
"postal_code": "postal_code",
169165
"country": "country",
166+
"line1": "line1",
167+
"line2": "line2",
170168
"name": "name",
169+
"postal_code": "postal_code",
171170
"source_id": "source_id",
171+
"state": "state",
172172
},
173173
ssn="ssn",
174174
)

0 commit comments

Comments
 (0)