Minor stripe updates.

This commit is contained in:
Patrick Fic
2021-06-17 08:56:12 -07:00
parent 989c7b2ba0
commit 1489d5cd5a
3 changed files with 33 additions and 8 deletions

View File

@@ -973,6 +973,20 @@ export const INSERT_NEW_JOB = gql`
}
`;
export const GET_JOB_INFO_FOR_STRIPE = gql`
query GET_JOB_INFO_FOR_STRIPE($jobid: uuid!) {
jobs_by_pk(id: $jobid) {
id
ro_number
ownr_fn
ownr_ln
ownr_co_nm
ownr_ph1
ownr_ea
}
}
`;
export const UPDATE_JOB_STATUS = gql`
mutation UPDATE_JOB_STATUS($jobId: uuid!, $status: String!) {
update_jobs(where: { id: { _eq: $jobId } }, _set: { status: $status }) {