viam-projectv-scan
Version:
ViaCheck deposit application
39 lines (34 loc) • 800 B
JavaScript
import gql from 'graphql-tag';
const GVERIFY_MUTATION = gql`
mutation getGVerify($checkList: [gVerifyInput]) {
getGVerify(checkList: $checkList) {
status {
code
message
}
verifyInformationList {
scanOrder
verificationResponseDescription
accountResponseDescription
bankName
colorVerificationResponse
colorAccountResponse
}
}
}
`;
const getGVerify = (argms, client) =>
client
.mutate({
mutation: GVERIFY_MUTATION,
variables: {
checkList: argms.checkList
}
})
.then(({ data }) => {
return data;
})
.catch(error => {
console.error(`error.message: ${error.message}`);
});
export default getGVerify;