Skip to content

Commit 5d0680c

Browse files
committed
fix: errors
1 parent 963e2ea commit 5d0680c

32 files changed

+1249
-318
lines changed

openapi.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -420,10 +420,12 @@
420420
"$ref": "./schemas/card/cardFraudOutreachPaths.json#/createCardFraudOutreachPolicy"
421421
},
422422
"/fraud-outreach-policies/{policyId}": {
423-
"$ref": "./schemas/card/cardFraudOutreachPaths.json#/updateCardFraudOutreachPolicy"
424-
},
425-
"/fraud-outreach-policies/{id}": {
426-
"$ref": "./schemas/card/cardFraudOutreachPaths.json#/getCardFraudOutreachPolicy"
423+
"get": {
424+
"$ref": "./schemas/card/cardFraudOutreachPaths.json#/getCardFraudOutreachPolicy/get"
425+
},
426+
"patch": {
427+
"$ref": "./schemas/card/cardFraudOutreachPaths.json#/updateCardFraudOutreachPolicy/patch"
428+
}
427429
},
428430
"/credit-applications": {
429431
"$ref": "./schemas/credit-application/creditApplicationPaths.json#/creditApplications"

schemas/account/accountPaths.json

Lines changed: 74 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@
4747
},
4848
"accounts": {
4949
"get": {
50-
"tags": ["unit"],
50+
"tags": [
51+
"unit"
52+
],
5153
"operationId": "getAccountsList",
5254
"summary": "Get List Accounts",
5355
"description": "Get List Accounts from API ",
@@ -70,14 +72,22 @@
7072
"type": "array",
7173
"items": {
7274
"type": "string",
73-
"enum": ["Open", "Frozen", "Closed"]
75+
"enum": [
76+
"Open",
77+
"Frozen",
78+
"Closed"
79+
]
7480
}
7581
},
7682
"type": {
7783
"type": "array",
7884
"items": {
7985
"type": "string",
80-
"enum": ["deposit", "credit", "wallet"]
86+
"enum": [
87+
"deposit",
88+
"credit",
89+
"wallet"
90+
]
8191
}
8292
},
8393
"fromBalance": {
@@ -134,11 +144,16 @@
134144
},
135145
"401": {
136146
"$ref": "../types.json#/components/schemas/DefaultError"
147+
},
148+
"default": {
149+
"$ref": "../types.json#/components/schemas/DefaultError"
137150
}
138151
}
139152
},
140153
"post": {
141-
"tags": ["unit"],
154+
"tags": [
155+
"unit"
156+
],
142157
"operationId": "createAccount",
143158
"summary": "Create Deposit Account",
144159
"description": "Creates a deposit account for a Customer (or customers). An account.created event is raised when the call was successful. Each deposit account is created using a specific deposit product. A deposit product is a predefined set of terms associated with this deposit account (e.g. interest rate, spending limits). Use **checking** as the default value for the deposit product field while building your solution in sandbox. Contact Unit to create other deposit products under your organization. Deposit Account creation request supports Idempotency, ensuring that performing multiple identical requests will have the same effect as performing a single request. A successful account creation will result in an account in Open status. Later on, accounts can be either frozen, closed and in some cases reopened.",
@@ -172,7 +187,9 @@
172187
},
173188
"account": {
174189
"get": {
175-
"tags": ["unit"],
190+
"tags": [
191+
"unit"
192+
],
176193
"operationId": "getAccount",
177194
"parameters": [
178195
{
@@ -204,11 +221,16 @@
204221
}
205222
}
206223
}
224+
},
225+
"default": {
226+
"$ref": "../types.json#/components/schemas/DefaultError"
207227
}
208228
}
209229
},
210230
"patch": {
211-
"tags": ["unit"],
231+
"tags": [
232+
"unit"
233+
],
212234
"operationId": "updateAccount",
213235
"summary": "Update Account",
214236
"description": "Update an Account via API ",
@@ -253,7 +275,9 @@
253275
},
254276
"getAccountLimits": {
255277
"get": {
256-
"tags": ["unit"],
278+
"tags": [
279+
"unit"
280+
],
257281
"operationId": "getAccountLimits",
258282
"parameters": [
259283
{
@@ -284,13 +308,18 @@
284308
}
285309
}
286310
}
311+
},
312+
"default": {
313+
"$ref": "../types.json#/components/schemas/DefaultError"
287314
}
288315
}
289316
}
290317
},
291318
"unfreezeAccount": {
292319
"post": {
293-
"tags": ["unit"],
320+
"tags": [
321+
"unit"
322+
],
294323
"operationId": "unfreezeAccount",
295324
"parameters": [
296325
{
@@ -324,7 +353,9 @@
324353
},
325354
"freezeAccount": {
326355
"post": {
327-
"tags": ["unit"],
356+
"tags": [
357+
"unit"
358+
],
328359
"operationId": "freezeAccount",
329360
"summary": "Freeze Account by Id",
330361
"description": "Freezes an account. Freezing an account prevents users from performing many operations while preserving all the account data. An account.frozen event is raised when the call is successful.",
@@ -369,7 +400,9 @@
369400
},
370401
"closeAccount": {
371402
"post": {
372-
"tags": ["unit"],
403+
"tags": [
404+
"unit"
405+
],
373406
"operationId": "closeAccount",
374407
"summary": "Close an Account by Id",
375408
"description": "Closes an account. Closing an account is irreversible and can only be done by an Org user. An account.closed event is raised when the call was successful.\n\nNote that closing an account will also close the cards associated with the account.\n\nWhen closing an account with a balance of $1 or less, the funds will automatically be transferred to your organization's revenue account (see more at Account Low Balance Closure). When closing an account with a balance greater than $1, a check will be mailed to the business or individual address on file.\n\nWhen closing an account with a negative balance, the balance will be considered a loss, and will be covered from your reserve account",
@@ -414,7 +447,9 @@
414447
},
415448
"reopenAccount": {
416449
"post": {
417-
"tags": ["unit"],
450+
"tags": [
451+
"unit"
452+
],
418453
"operationId": "reopenAccount",
419454
"summary": "Reopen an Account by Id",
420455
"description": "Reopens a previously closed account. An account.reopened event is raised when the call was successful.",
@@ -448,7 +483,9 @@
448483
},
449484
"enterDaca": {
450485
"post": {
451-
"tags": ["unit"],
486+
"tags": [
487+
"unit"
488+
],
452489
"operationId": "enterControlAgreementForAccount",
453490
"summary": "Enter Account Control Agreement by Id",
454491
"description": "Indicates that a certain deposit account is subject to a Deposit Account Control Agreement. When DACA is entered, an `Operator` is assigned so in case of DACA activation the `Operator` will take control over the account, being the only entity authorized to move funds outside of the account. Setting an account with DACA `Entered` will not affect the account. It only means that DACA can be activated for this account in the future.",
@@ -482,7 +519,9 @@
482519
},
483520
"activateDaca": {
484521
"post": {
485-
"tags": ["unit"],
522+
"tags": [
523+
"unit"
524+
],
486525
"operationId": "activateControlAgreementForAccount",
487526
"summary": "Activate Account Control Agreement by Id",
488527
"description": "Activates the Deposit Account Control Agreement, preventing funds from being withdrawn from the account through either end-customer initiated actions (freezing cards, restricting ACH/Wire origination) or external attempts (automatically rejecting received ACH debits). The only way of initiating money related activities (that will result in withdrawing funds from the account) would be using an org API token (when acting as the `Operator`). Activating a DACA will work only for a DACA `Operator` and for accounts that have previously entered a DACA.",
@@ -516,7 +555,9 @@
516555
},
517556
"deactivateDaca": {
518557
"post": {
519-
"tags": ["unit"],
558+
"tags": [
559+
"unit"
560+
],
520561
"operationId": "deactivateControlAgreementForAccount",
521562
"summary": "Deactivate Account Control Agreement by Id",
522563
"description": "Deactivate an account with DACA `Activated` status. This action will: 1. Return account's `dacaStatus` to `Entered`. 2. Unfreeze all account's cards that were frozen due to DACA. 3. Remove the restrictions on ACH, Wire and Book (when funds are debited from the DACA account). 4. Remove the restriction on incoming debit ACH payments.",
@@ -544,13 +585,18 @@
544585
},
545586
"404": {
546587
"$ref": "../types.json#/components/schemas/DefaultError"
588+
},
589+
"default": {
590+
"$ref": "../types.json#/components/schemas/DefaultError"
547591
}
548592
}
549593
}
550594
},
551595
"getAccountBalanceHistory": {
552596
"get": {
553-
"tags": ["unit"],
597+
"tags": [
598+
"unit"
599+
],
554600
"operationId": "getAccountBalanceHistory",
555601
"summary": "Get Account Balance History",
556602
"description": "List account end-of-day balances history (filtering and paging can be applied). The account balance history can be used to provide the customer with an overview of their balance across account(s) over time in a visually engaging way, providing insights and creating custom product features around it.",
@@ -619,7 +665,9 @@
619665
},
620666
"repaymentInfo": {
621667
"get": {
622-
"tags": ["unit"],
668+
"tags": [
669+
"unit"
670+
],
623671
"operationId": "getRepaymentInformation",
624672
"summary": "Get Repayment Information",
625673
"description": "Retrieve the repayment information for a specific account via API",
@@ -653,7 +701,9 @@
653701
},
654702
"depositProducts": {
655703
"get": {
656-
"tags": ["unit"],
704+
"tags": [
705+
"unit"
706+
],
657707
"operationId": "getDepositProductsList",
658708
"summary": "Get Available Deposit Products",
659709
"description": "List of available deposit products compatible to the account.",
@@ -687,7 +737,9 @@
687737
},
688738
"customers": {
689739
"post": {
690-
"tags": ["unit"],
740+
"tags": [
741+
"unit"
742+
],
691743
"operationId": "addAccountOwners",
692744
"parameters": [
693745
{
@@ -730,7 +782,9 @@
730782
}
731783
},
732784
"delete": {
733-
"tags": ["unit"],
785+
"tags": [
786+
"unit"
787+
],
734788
"operationId": "removeAccountOwners",
735789
"parameters": [
736790
{
@@ -773,4 +827,4 @@
773827
}
774828
}
775829
}
776-
}
830+
}

schemas/application/application.json

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,6 @@
1111
"Pending",
1212
"Canceled"
1313
],
14-
"enumDescriptions": {
15-
"AwaitingDocuments": "Certain documents are required for the process to continue. You may upload them via [Upload Document](https://www.unit.co/docs/api/application-documents/#upload-document).",
16-
"PendingReview": "The application is pending review by Unit (with an SLA of 2 business hours).",
17-
"Pending": "The application is being evaluated asynchronously and a result should be available shortly. Listen for webhooks ([application.denied](https://www.unit.co/docs/api/events/#applicationdenied), [customer.created](https://www.unit.co/docs/api/events/#customercreated)) and [application.awaitingdocuments](https://www.unit.co/docs/api/events/#applicationawaitingdocuments)) for the final result, or periodically query the application with [Get by Id](https://www.unit.co/docs/api/applications/#get-application-by-id\")).",
18-
"Approved": "The application was approved. A Customer resource was created.",
19-
"Denied": "The application was denied. A Customer resource will _not_ be created.",
20-
"Canceled": "The application was canceled. A Customer resource will _not_ be created."
21-
},
2214
"description": "Status of the application. The final statuses for an application are `Approved`, `Denied` or `Canceled`. Once an application is approved, a Customer resource will be created and associated with the application resource."
2315
},
2416
"PowerOfAttorneyAgent": {

0 commit comments

Comments
 (0)