Skip to content

Commit 6332772

Browse files
authored
Merge pull request #33 from Dwolla/DEV-1808
Dev 1808: Remove path fragments + Regen SDK
2 parents bdb1f76 + dc9cd74 commit 6332772

File tree

204 files changed

+3109
-4681
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+3109
-4681
lines changed

.speakeasy/gen.lock

Lines changed: 62 additions & 59 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ generation:
2929
generateNewTests: false
3030
skipResponseBodyAssertions: false
3131
typescript:
32-
version: 0.0.1-beta.12
32+
version: 0.0.1-beta.13
3333
acceptHeaderEnum: true
3434
additionalDependencies:
3535
dependencies: {}
@@ -72,7 +72,7 @@ typescript:
7272
responseFormat: flat
7373
sseFlatResponse: false
7474
templateVersion: v2
75-
unionStrategy: left-to-right
75+
unionStrategy: populated-fields
7676
usageSDKInitImports: []
7777
useIndexModules: true
7878
zodVersion: v3

.speakeasy/overlay.yaml

Lines changed: 16 additions & 230 deletions
Original file line numberDiff line numberDiff line change
@@ -24,236 +24,6 @@ actions:
2424
update:
2525
x-speakeasy-server-id: sandbox
2626

27-
# Remove the original customer creation POST endpoint. Customer creation has been moved to path fragments.
28-
- target: $["paths"]["/customers"]["post"]
29-
remove: true
30-
31-
# Add path fragments for separate customer creation methods
32-
- target: $["paths"]
33-
update:
34-
"/customers#unverified":
35-
post:
36-
x-speakeasy-name-override: createUnverified
37-
tags:
38-
- customers
39-
summary: Create an unverified customer
40-
description: Creates a new unverified customer with basic information. Unverified customers have limited transaction capabilities.
41-
operationId: createUnverifiedCustomer
42-
parameters:
43-
- $ref: '#/components/parameters/Accept'
44-
requestBody:
45-
required: true
46-
description: Parameters for unverified customer to be created
47-
content:
48-
application/vnd.dwolla.v1.hal+json:
49-
schema:
50-
$ref: '#/components/schemas/CreateUnverifiedCustomer'
51-
responses:
52-
'201':
53-
description: successful operation
54-
headers:
55-
Location:
56-
$ref: '#/components/headers/Location'
57-
'400':
58-
description: Bad Request
59-
headers: {}
60-
content:
61-
application/vnd.dwolla.v1.hal+json:
62-
schema:
63-
$ref: '#/components/schemas/BadRequestSchema'
64-
'403':
65-
description: forbidden
66-
headers: {}
67-
content:
68-
application/vnd.dwolla.v1.hal+json:
69-
schema:
70-
$ref: '#/components/schemas/ForbiddenError'
71-
"/customers#receive-only":
72-
post:
73-
x-speakeasy-name-override: createReceiveOnly
74-
tags:
75-
- customers
76-
summary: Create a receive-only user
77-
description: Creates a new receive-only user who can only receive funds, not send them.
78-
operationId: createReceiveOnlyCustomer
79-
parameters:
80-
- $ref: '#/components/parameters/Accept'
81-
requestBody:
82-
required: true
83-
description: Parameters for receive-only user to be created
84-
content:
85-
application/vnd.dwolla.v1.hal+json:
86-
schema:
87-
$ref: '#/components/schemas/CreateReceiveOnlyUser'
88-
responses:
89-
'201':
90-
description: successful operation
91-
headers:
92-
Location:
93-
$ref: '#/components/headers/Location'
94-
'400':
95-
description: Bad Request
96-
headers: {}
97-
content:
98-
application/vnd.dwolla.v1.hal+json:
99-
schema:
100-
$ref: '#/components/schemas/BadRequestSchema'
101-
'403':
102-
description: forbidden
103-
headers: {}
104-
content:
105-
application/vnd.dwolla.v1.hal+json:
106-
schema:
107-
$ref: '#/components/schemas/ForbiddenError'
108-
"/customers#verified-personal":
109-
post:
110-
x-speakeasy-name-override: createVerifiedPersonal
111-
tags:
112-
- customers
113-
summary: Create a verified personal customer
114-
description: Creates a new verified personal customer with full transaction capabilities.
115-
operationId: createVerifiedPersonalCustomer
116-
parameters:
117-
- $ref: '#/components/parameters/Accept'
118-
requestBody:
119-
required: true
120-
description: Parameters for verified personal customer to be created
121-
content:
122-
application/vnd.dwolla.v1.hal+json:
123-
schema:
124-
$ref: '#/components/schemas/CreateVerifiedPersonalCustomer'
125-
responses:
126-
'201':
127-
description: successful operation
128-
headers:
129-
Location:
130-
$ref: '#/components/headers/Location'
131-
'400':
132-
description: Bad Request
133-
headers: {}
134-
content:
135-
application/vnd.dwolla.v1.hal+json:
136-
schema:
137-
$ref: '#/components/schemas/BadRequestSchema'
138-
'403':
139-
description: forbidden
140-
headers: {}
141-
content:
142-
application/vnd.dwolla.v1.hal+json:
143-
schema:
144-
$ref: '#/components/schemas/ForbiddenError'
145-
"/customers#verified-sole-prop":
146-
post:
147-
x-speakeasy-name-override: createVerifiedSoleProp
148-
tags:
149-
- customers
150-
summary: Create a verified sole proprietorship customer
151-
description: Creates a new verified sole proprietorship business customer.
152-
operationId: createVerifiedSolePropCustomer
153-
parameters:
154-
- $ref: '#/components/parameters/Accept'
155-
requestBody:
156-
required: true
157-
description: Parameters for verified sole proprietorship customer to be created
158-
content:
159-
application/vnd.dwolla.v1.hal+json:
160-
schema:
161-
$ref: '#/components/schemas/CreateVerifiedSolePropCustomer'
162-
responses:
163-
'201':
164-
description: successful operation
165-
headers:
166-
Location:
167-
$ref: '#/components/headers/Location'
168-
'400':
169-
description: Bad Request
170-
headers: {}
171-
content:
172-
application/vnd.dwolla.v1.hal+json:
173-
schema:
174-
$ref: '#/components/schemas/BadRequestSchema'
175-
'403':
176-
description: forbidden
177-
headers: {}
178-
content:
179-
application/vnd.dwolla.v1.hal+json:
180-
schema:
181-
$ref: '#/components/schemas/ForbiddenError'
182-
"/customers#verified-business":
183-
post:
184-
x-speakeasy-name-override: createVerifiedBusiness
185-
tags:
186-
- customers
187-
summary: Create a verified business customer
188-
description: Creates a new verified business customer with a US controller.
189-
operationId: createVerifiedBusinessCustomer
190-
parameters:
191-
- $ref: '#/components/parameters/Accept'
192-
requestBody:
193-
required: true
194-
description: Parameters for verified business customer to be created
195-
content:
196-
application/vnd.dwolla.v1.hal+json:
197-
schema:
198-
$ref: '#/components/schemas/CreateVerifiedBusinessCustomerWithController'
199-
responses:
200-
'201':
201-
description: successful operation
202-
headers:
203-
Location:
204-
$ref: '#/components/headers/Location'
205-
'400':
206-
description: Bad Request
207-
headers: {}
208-
content:
209-
application/vnd.dwolla.v1.hal+json:
210-
schema:
211-
$ref: '#/components/schemas/BadRequestSchema'
212-
'403':
213-
description: forbidden
214-
headers: {}
215-
content:
216-
application/vnd.dwolla.v1.hal+json:
217-
schema:
218-
$ref: '#/components/schemas/ForbiddenError'
219-
"/customers#verified-business-international":
220-
post:
221-
x-speakeasy-name-override: createVerifiedBusinessInternational
222-
tags:
223-
- customers
224-
summary: Create a verified business customer with international controller
225-
description: Creates a new verified business customer with an international (non-US) controller.
226-
operationId: createVerifiedBusinessInternationalCustomer
227-
parameters:
228-
- $ref: '#/components/parameters/Accept'
229-
requestBody:
230-
required: true
231-
description: Parameters for verified business customer with international controller to be created
232-
content:
233-
application/vnd.dwolla.v1.hal+json:
234-
schema:
235-
$ref: '#/components/schemas/CreateVerifiedBusinessCustomerWithInternationalController'
236-
responses:
237-
'201':
238-
description: successful operation
239-
headers:
240-
Location:
241-
$ref: '#/components/headers/Location'
242-
'400':
243-
description: Bad Request
244-
headers: {}
245-
content:
246-
application/vnd.dwolla.v1.hal+json:
247-
schema:
248-
$ref: '#/components/schemas/BadRequestSchema'
249-
'403':
250-
description: forbidden
251-
headers: {}
252-
content:
253-
application/vnd.dwolla.v1.hal+json:
254-
schema:
255-
$ref: '#/components/schemas/ForbiddenError'
256-
25727
# Remove existing customer update schemas from base spec to avoid duplicates
25828
- target: $["components"]["schemas"]["DeactivateCustomer"]
25929
remove: true
@@ -267,6 +37,8 @@ actions:
26737
remove: true
26838
- target: $["components"]["schemas"]["UpdateVerifiedBusiness"]
26939
remove: true
40+
- target: $["components"]["schemas"]["UpgradeToUnverified"]
41+
remove: true
27042
- target: $["components"]["schemas"]["UpgradeToVerifiedPersonal"]
27143
remove: true
27244
- target: $["components"]["schemas"]["UpgradeToVerifiedBusiness"]
@@ -424,6 +196,20 @@ actions:
424196
website:
425197
type: string
426198
example: https://www.domain.com
199+
UpgradeToUnverified:
200+
title: UpgradeToUnverified
201+
description: Upgrade Receive Only User to Unverified Customer
202+
type: object
203+
required:
204+
- operationType
205+
- type
206+
properties:
207+
operationType:
208+
type: string
209+
const: upgradeToUnverified
210+
type:
211+
type: string
212+
example: unverified
427213
UpgradeToVerifiedPersonal:
428214
title: UpgradeToVerifiedPersonal
429215
description: Upgrade Unverified Customer to Verified Personal Customer

.speakeasy/workflow.lock

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
1-
speakeasyVersion: 1.656.3
1+
speakeasyVersion: 1.658.2
22
sources:
33
Dwolla API:
44
sourceNamespace: dwolla-api
5-
sourceRevisionDigest: sha256:43d9d60ee3716e3791ea9b7984b1f76093ec4cd785c3859c178865de3975fc5d
6-
sourceBlobDigest: sha256:a4196955717051e213fde97e0d9abf84a7d80f9d5dcd61e1486189099600cb47
5+
sourceRevisionDigest: sha256:8560f130650477e719c332a5dd7de3491ac607dfacadedf856b431398fe90b54
6+
sourceBlobDigest: sha256:2bcc871656f1bc33551ec6f2d0d26e2a8dbd69adc88c9b10e52c2bf44bf28f11
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1763137611
109
- "2.0"
1110
targets:
1211
dwolla:
1312
source: Dwolla API
1413
sourceNamespace: dwolla-api
15-
sourceRevisionDigest: sha256:43d9d60ee3716e3791ea9b7984b1f76093ec4cd785c3859c178865de3975fc5d
16-
sourceBlobDigest: sha256:a4196955717051e213fde97e0d9abf84a7d80f9d5dcd61e1486189099600cb47
14+
sourceRevisionDigest: sha256:8560f130650477e719c332a5dd7de3491ac607dfacadedf856b431398fe90b54
15+
sourceBlobDigest: sha256:2bcc871656f1bc33551ec6f2d0d26e2a8dbd69adc88c9b10e52c2bf44bf28f11
1716
codeSamplesNamespace: dwolla-api-typescript-code-samples
18-
codeSamplesRevisionDigest: sha256:e8257659601693907e0afca1b6a2d980f4c3e529e9ec34849b43938008578758
17+
codeSamplesRevisionDigest: sha256:c469e70e3f1bec2c0149f3513e457a6de5dafba0b044f58334f2560f87df8ada
1918
workflow:
2019
workflowVersion: 1.0.0
2120
speakeasyVersion: latest

0 commit comments

Comments
 (0)