Skip to content
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

HMAI-101 Post transaction endpoint #598

Merged
merged 14 commits into from
Jan 27, 2025

Conversation

wcdkj
Copy link
Contributor

@wcdkj wcdkj commented Jan 24, 2025

WebClient wrapper has new function to retry post based off upstream response code

@emmalanigan
Copy link
Contributor

Is there a reason we aren't handling the 409 Duplicate post - The unique_client_ref has been used before error that we can get from the API?

Copy link
Contributor

@ben-madley-mt ben-madley-mt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some qs but mainly that change in how we check transaction types

@@ -24173,7 +24173,7 @@
"type": "string",
"description": "Valid transaction type for the prison_id",
"example": "CANT",
"enum": ["CANT,REFND,PHONE,MRPR,MTDS,DTDS,CASHD,RELA,RELS"]
"enum": ["CANT", "REFND", "PHONE", "MRPR", "MTDS", "DTDS", "CASHD", "RELA", "RELS"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like swagger deals with this appropriately:

allowableValues
public abstract String allowableValues
Limits the acceptable values for this parameter.
There are three ways to describe the allowable values:

To set a list of values, provide a comma-separated list. For example: first, second, third.

@ben-madley-mt
Copy link
Contributor

ben-madley-mt commented Jan 27, 2025

Is there a reason we aren't handling the 409 Duplicate post - The unique_client_ref has been used before error that we can get from the API?

That's a good point. We should at least have a test to make sure it comes back as a 409. It's an important error.

@ben-madley-mt ben-madley-mt merged commit fab85b5 into main Jan 27, 2025
11 checks passed
@ben-madley-mt ben-madley-mt deleted the HMAI-101-prison-transactions-post branch January 27, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants