Update invoice fragment
This commit is contained in:
parent
c4c9895a56
commit
43ae37d229
3 changed files with 5 additions and 5 deletions
|
@ -63,7 +63,7 @@ export const fulfillmentFragment = gql`
|
|||
}
|
||||
`;
|
||||
|
||||
export const fragmentInvoice = gql`
|
||||
export const invoiceFragment = gql`
|
||||
fragment InvoiceFragment on Invoice {
|
||||
id
|
||||
number
|
||||
|
@ -78,7 +78,7 @@ export const fragmentOrderDetails = gql`
|
|||
${fragmentOrderEvent}
|
||||
${fragmentOrderLine}
|
||||
${fulfillmentFragment}
|
||||
${fragmentInvoice}
|
||||
${invoiceFragment}
|
||||
fragment OrderDetailsFragment on Order {
|
||||
id
|
||||
billingAddress {
|
||||
|
|
|
@ -462,7 +462,7 @@ export const useOrderFulfill = makeMutation<
|
|||
|
||||
const invoiceRequestMutation = gql`
|
||||
${invoiceErrorFragment}
|
||||
${fragmentInvoice}
|
||||
${invoiceFragment}
|
||||
mutation InvoiceRequest($orderId: ID!) {
|
||||
invoiceRequest(orderId: $orderId) {
|
||||
errors: invoiceErrors {
|
||||
|
@ -481,7 +481,7 @@ export const TypedInvoiceRequestMutation = TypedMutation<
|
|||
|
||||
const invoiceEmailSendMutation = gql`
|
||||
${invoiceErrorFragment}
|
||||
${fragmentInvoice}
|
||||
${invoiceFragment}
|
||||
mutation InvoiceEmailSend($id: ID!) {
|
||||
invoiceSendEmail(id: $id) {
|
||||
errors: invoiceErrors {
|
||||
|
|
|
@ -230,7 +230,7 @@ export const useOrderFulfillData = makeQuery<
|
|||
>(orderFulfillData);
|
||||
|
||||
export const checkOrderInvoicesStatus = gql`
|
||||
${fragmentInvoice}
|
||||
${invoiceFragment}
|
||||
query CheckOrderInvoicesStatus($id: ID!) {
|
||||
order(id: $id) {
|
||||
id
|
||||
|
|
Loading…
Reference in a new issue