@@ -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
0 commit comments