diff --git a/reference/spender.yaml b/reference/spender.yaml index b76dd2bc2..16bf756cb 100644 --- a/reference/spender.yaml +++ b/reference/spender.yaml @@ -8503,6 +8503,79 @@ paths: application/json: schema: $ref: '#/components/schemas/403' + /spender/dwolla/funding_sources/delete: + post: + tags: + - Dwolla + summary: Remove the active bank funding source + operationId: dwolla_spender_funding_source_delete + requestBody: + required: true + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - data + properties: + data: + type: object + additionalProperties: false + maxProperties: 0 + responses: + '200': + description: Funding source removed + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - data + properties: + data: + type: object + additionalProperties: false + required: + - removed + properties: + removed: + type: boolean + enum: + - true + '400': + description: Bad request + content: + application/json: + schema: + $ref: '#/components/schemas/400' + '401': + description: Unauthorized request + content: + application/json: + schema: + $ref: '#/components/schemas/401' + '403': + description: Forbidden + content: + application/json: + schema: + $ref: '#/components/schemas/403' + '404': + description: Not found + content: + application/json: + schema: + type: object + properties: + message: + type: string + enum: + - Employee not found + - Dwolla customer not found + - Active Dwolla funding source not found + description: The spender, their Dwolla customer, or their active funding source was not found. /spender/expenses/export_configurations: get: x-internal: false diff --git a/src/spender/openapi.yaml b/src/spender/openapi.yaml index b1acb0622..ff3b2a3c1 100644 --- a/src/spender/openapi.yaml +++ b/src/spender/openapi.yaml @@ -429,6 +429,8 @@ paths: $ref: paths/spender@dwolla@customers.yaml /spender/dwolla/funding_sources: $ref: paths/spender@dwolla@funding_sources.yaml + /spender/dwolla/funding_sources/delete: + $ref: paths/spender@dwolla@funding_sources@delete.yaml /spender/expenses/export_configurations: $ref: paths/spender@expenses@export_configurations.yaml /spender/expenses/export_configurations/delete/bulk: diff --git a/src/spender/paths/spender@dwolla@funding_sources@delete.yaml b/src/spender/paths/spender@dwolla@funding_sources@delete.yaml new file mode 100644 index 000000000..30185db66 --- /dev/null +++ b/src/spender/paths/spender@dwolla@funding_sources@delete.yaml @@ -0,0 +1,72 @@ +post: + tags: + - Dwolla + summary: Remove the active bank funding source + operationId: dwolla_spender_funding_source_delete + requestBody: + required: true + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - data + properties: + data: + type: object + additionalProperties: false + maxProperties: 0 + responses: + '200': + description: Funding source removed + content: + application/json: + schema: + type: object + additionalProperties: false + required: + - data + properties: + data: + type: object + additionalProperties: false + required: + - removed + properties: + removed: + type: boolean + enum: + - true + '400': + description: Bad request + content: + application/json: + schema: + $ref: '../../components/schemas/400.yaml' + '401': + description: Unauthorized request + content: + application/json: + schema: + $ref: '../../components/schemas/401.yaml' + '403': + description: Forbidden + content: + application/json: + schema: + $ref: '../../components/schemas/403.yaml' + '404': + description: Not found + content: + application/json: + schema: + type: object + properties: + message: + type: string + enum: + - Employee not found + - Dwolla customer not found + - Active funding source not found + description: The spender, their Dwolla customer, or their active funding source was not found.