-
Notifications
You must be signed in to change notification settings - Fork 8
Dev 1806: Fix invalid schemas + add Sandbox Simulations endpoint for transfer processing #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
e6e905a
Add Sandbox-Simulations endpoint
ShreyaThapa f644dcf
Add sandbox-simulations to spec.yml
ShreyaThapa 4d7a349
Fix customer funding-source creation schemas + add idempotency-key ex…
ShreyaThapa b55b6bb
Remove loan and gl bank types from plaid and exchange schemas
ShreyaThapa 01a6879
Address review comments
ShreyaThapa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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,58 @@ | ||
| post: | ||
| tags: | ||
| - sandbox simulations | ||
| summary: Simulate bank transfer processing (Sandbox only) | ||
| description: | | ||
| Triggers processing for the last 500 bank transfers on the authorized application or Sandbox account. This endpoint is only available in the Sandbox environment. It will process or fail pending bank-to-bank transactions (including both sides of a transfer when applicable) and initiated micro-deposits. If webhooks are configured, corresponding events will be delivered. | ||
| If a bank-to-bank transaction is initiated between two users, call this endpoint twice to process both the debit and credit sides. | ||
| operationId: simulateBankTransferProcessing | ||
| x-speakeasy-name-override: simulate | ||
| x-codeSamples: | ||
| - lang: bash | ||
| source: | | ||
| POST https://api-sandbox.dwolla.com/sandbox-simulations | ||
| Accept: application/vnd.dwolla.v1.hal+json | ||
| Content-Type: application/vnd.dwolla.v1.hal+json | ||
| Authorization: Bearer {Your access token} | ||
| requestBody: | ||
| required: false | ||
| description: Optional JSON body. Typically empty; presence of body is not required. | ||
| content: | ||
| application/vnd.dwolla.v1.hal+json: | ||
| schema: | ||
| type: object | ||
| responses: | ||
| '200': | ||
| description: Simulation executed. Pending bank transfers and micro-deposits were processed or failed. | ||
| content: | ||
| application/vnd.dwolla.v1.hal+json: | ||
| schema: | ||
| type: object | ||
| '401': | ||
| description: unauthorized | ||
| content: | ||
| application/vnd.dwolla.v1.hal+json: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| code: | ||
| type: string | ||
| example: InvalidAccessToken | ||
| message: | ||
| type: string | ||
| example: Invalid access token. | ||
| '403': | ||
| description: forbidden | ||
| content: | ||
| application/vnd.dwolla.v1.hal+json: | ||
| schema: | ||
| type: object | ||
| properties: | ||
| code: | ||
| type: string | ||
| example: forbidden | ||
| message: | ||
| type: string | ||
| example: Not authorized to simulate transfer processing. | ||
|
|
||
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -6,11 +6,12 @@ CreateCustomerFundingSource: | |
| - Exchange: Using IAV through exchange partners (Plaid, MX, etc.) | ||
| - Virtual Account: Creating Virtual Account Numbers (VANs) | ||
| oneOf: | ||
| - $ref: '#/CreateCustomerBankFundingSource' | ||
| - $ref: '#/CreateCustomerBankFundingSourceWithAccountNumbers' | ||
| - $ref: '#/CreateCustomerBankFundingSourceWithPlaid' | ||
| - $ref: '#/CreateCustomerExchangeFundingSource' | ||
| - $ref: '#/CreateCustomerVirtualAccountFundingSource' | ||
| CreateCustomerBankFundingSource: | ||
| title: CreateCustomerBankFundingSource | ||
| CreateCustomerBankFundingSourceWithAccountNumbers: | ||
| title: CreateCustomerBankFundingSourceWithAccountNumbers | ||
| type: object | ||
| description: Schema for creating a basic bank funding source using routing and account numbers. This is the traditional method of adding a bank account. | ||
| required: | ||
|
|
@@ -41,9 +42,46 @@ CreateCustomerBankFundingSource: | |
| description: Use when creating an unverified bank account. | ||
| const: false | ||
| example: false | ||
| channels: | ||
| type: array | ||
| items: | ||
| type: string | ||
| enum: [wire] | ||
| description: An array containing a list of processing channels. ACH is the default processing channel for bank transfers. | ||
| _links: | ||
| type: object | ||
| properties: | ||
| on-demand-authorization: | ||
| type: object | ||
| required: | ||
| - href | ||
| properties: | ||
| href: | ||
| type: string | ||
| format: uri | ||
| example: https://api-sandbox.dwolla.com/on-demand-authorizations/30e7c028-0bdf-e511-80de-0aa34a9b2388 | ||
| CreateCustomerBankFundingSourceWithPlaid: | ||
| title: CreateCustomerBankFundingSourceWithPlaid | ||
| type: object | ||
| description: Schema for creating a bank funding source using a Plaid processor token. | ||
| required: | ||
| - plaidToken | ||
| - bankAccountType | ||
| - name | ||
| properties: | ||
| plaidToken: | ||
| type: string | ||
| description: A processor token obtained from Plaid for adding and verifying a bank | ||
| example: processor-sandbox-plaidauth-123456 | ||
| bankAccountType: | ||
| type: string | ||
| enum: [checking, savings] | ||
| description: Type of bank account | ||
| example: checking | ||
| name: | ||
| type: string | ||
| description: Arbitrary nickname for the funding source. Must be 50 characters or less. | ||
| example: Jane Doe's Checking | ||
| channels: | ||
| type: array | ||
| items: | ||
|
|
@@ -96,7 +134,7 @@ CreateCustomerExchangeFundingSource: | |
| example: https://api-sandbox.dwolla.com/on-demand-authorizations/30e7c028-0bdf-e511-80de-0aa34a9b2388 | ||
| bankAccountType: | ||
| type: string | ||
| enum: [checking, savings, general-ledger, loan] | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same reason as above. Plaid Auth doesn't support Loan accounts. |
||
| enum: [checking, savings] | ||
| description: Type of bank account | ||
| example: checking | ||
| name: | ||
|
|
||
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding this endpoint so we can use it in the MCP and SDK.
In the developer-portal, however, if we'd like to hide it from the main reference we could do that using hidden pages.