-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update API schema based on new API changes
- Loading branch information
1 parent
23653cd
commit aba0ad0
Showing
33 changed files
with
1,665 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
{ | ||
"post": { | ||
"tags": [ | ||
"Accounts", | ||
"Funding Sources" | ||
], | ||
"summary": "Remove a Funding Source belonging to an Account", | ||
"description": "Remove a Funding Source that is attached to your Main Account.", | ||
"operationId": "removeAccountFundingSource", | ||
"parameters": [ | ||
{ | ||
"in": "path", | ||
"name": "id", | ||
"description": "UUID of Main Account", | ||
"schema": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"required": true | ||
} | ||
], | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"$ref": "../../schemas/accounts/CreateFundingSourceForAccountRequestBody.json#/CreateFundingSourceForAccountRequestBody" | ||
}, | ||
"example": { | ||
"removed": true | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"description": "Ok", | ||
"content": { | ||
"application/vnd.dwolla.v1.hal+json": { | ||
"schema": { | ||
"$ref": "../../schemas/funding-sources/FundingSource.json#/FundingSource" | ||
}, | ||
"example": { | ||
"_links": { | ||
"self": { | ||
"href": "https://api.dwolla.com/funding-sources/2bb9b57a-cb45-4bd2-b8ff-e3a5644e0fb7", | ||
"type": "application/vnd.dwolla.v1.hal+json", | ||
"resource-type": "funding-source" | ||
}, | ||
"treasury-account": { | ||
"href": "https://api.dwolla.com/treasury-accounts/ea5f9468-4374-410f-b52e-5461d8cbca98", | ||
"type": "application/vnd.dwolla.v1.hal+json", | ||
"resource-type": "treasury-account" | ||
} | ||
}, | ||
"id": "2bb9b57a-cb45-4bd2-b8ff-e3a5644e0fb7", | ||
"bankAccountType": "checking", | ||
"name": "My Savings Account", | ||
"created": "2023-09-15T20:05:04.266Z", | ||
"removed": "2023-09-15T20:06:06.560Z" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
{ | ||
"post": { | ||
"tags": [ | ||
"Exchanges" | ||
], | ||
"summary": "Create exchange for an Account", | ||
"description": "Create exchange for an Account", | ||
"operationId": "createExchangeForAccount", | ||
"parameters": [ | ||
{ | ||
"in": "path", | ||
"name": "id", | ||
"description": "UUID of Account", | ||
"schema": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"required": true | ||
} | ||
], | ||
"requestBody": { | ||
"content": { | ||
"application/json": { | ||
"schema": { | ||
"oneOf": [ | ||
{ | ||
"$ref": "../../schemas/exchanges/createFinicityExchangeRequestBody.json#/CreateFinicityExchangeRequestBody" | ||
}, | ||
{ | ||
"$ref": "../../schemas/exchanges/createMXExchangeRequestBody.json#/CreateMXExchangeRequestBody" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"201": { | ||
"description": "Created", | ||
"headers": { | ||
"Location": { | ||
"$ref": "../../schemas/common.json#/components/headers/Location" | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
"get": { | ||
"tags": [ | ||
"Exchanges" | ||
], | ||
"summary": "List exchanges for an Account", | ||
"description": "List exchanges for an Account", | ||
"operationId": "listExchangesForAccount", | ||
"parameters": [ | ||
{ | ||
"in": "path", | ||
"name": "id", | ||
"description": "UUID of Account", | ||
"schema": { | ||
"type": "string", | ||
"format": "uuid" | ||
}, | ||
"required": true | ||
} | ||
], | ||
"responses": { | ||
"200": { | ||
"description": "Ok", | ||
"headers": {}, | ||
"content": { | ||
"application/vnd.dwolla.v1.hal+json": { | ||
"schema": { | ||
"$ref": "../../schemas/exchanges/Exchange.json#/Exchange" | ||
}, | ||
"example": { | ||
"_links": { | ||
"self": { | ||
"href": "https://api.dwolla.com/exchanges", | ||
"type": "application/vnd.dwolla.v1.hal+json", | ||
"resource-type": "exchange" | ||
} | ||
}, | ||
"_embedded": { | ||
"exchanges": [ | ||
{ | ||
"_links": { | ||
"self": { | ||
"href": "https://apidwolla.com/exchanges/92822961-3a7f-42c0-b0cc-7ffef05717fa", | ||
"type": "application/vnd.dwolla.v1.hal+json", | ||
"resource-type": "exchange" | ||
}, | ||
"exchange-partner": { | ||
"href": "https://api.dwolla.com/exchange-partners/bca8d065-49a5-475b-a6b4-509bc8504d22", | ||
"type": "application/vnd.dwolla.v1.hal+json", | ||
"resource-type": "exchange-partner" | ||
}, | ||
"funding-sources": { | ||
"href": "https://api.dwolla.com/funding-sources", | ||
"type": "application/vnd.dwolla.v1.hal+json", | ||
"resource-type": "funding-source" | ||
} | ||
}, | ||
"id": "92822961-3a7f-42c0-b0cc-7ffef05717fa", | ||
"status": "active", | ||
"created": "2022-10-19T17:44:44.864Z" | ||
} | ||
] | ||
}, | ||
"total": 1 | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.