-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add Payment flows APIs #275
base: master
Are you sure you want to change the base?
Conversation
8ef1f03
to
e35bf7d
Compare
e35bf7d
to
ad44a92
Compare
* Execute payment workflow | ||
* @param workflowExeuctionId | ||
*/ | ||
public async executePaymentFlow(workflowExeuctionId: string): Promise<Payments.WorkflowExecution> { |
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.
Just to keep the same pattern, this is the only endpoint with the word Flow
instead of Workflow
.
I guess it came from our code but maybe it's better to change it here.
* Format: uuid | ||
* @description The related workflow id that executes the failure handling | ||
*/ | ||
workflowExecutionId?: string; |
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.
the new structure:
execution?: {
executionId: string;
status: WorkflowExecutionStatus;
};
export interface AnyAdditionalPropertiesSchema { | ||
[key: string]: unknown; | ||
} |
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.
that's fine.
since we need to allow Record<string, unknown>
values, in the openapi
the way to do that is by a schema of an object with additionalProperties: { }
.
This is the reason for this weird interface.
We can change here every usage of this interface to the actual type, but in my opinion we can leave it like that for now.
Pull Request Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes (link to the issue here)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: