wave-api 0.1.0

Typed Rust client for the Wave Accounting GraphQL API
Documentation
# Query: List invoices

For a specific business, fetches the first page of invoices. See [schema](360019968212) for all options.

Replace `<BUSINESS_ID>` with a real business id.

Operation
:   ```graphql
    query($businessId: ID!, $page: Int!, $pageSize: Int!) {
      business(id: $businessId) {
        id
        invoices(page: $page, pageSize: $pageSize) {
          pageInfo {
            currentPage
            totalPages
            totalCount
          }
          edges {
            node {
              id
              createdAt
              modifiedAt
              pdfUrl
              viewUrl
              status
              title
              subhead
              invoiceNumber
              invoiceDate
              poNumber
              customer {
                id
                name
                # Can add additional customer fields here
              }
              currency {
                code
              }
              dueDate
              amountDue {
                value
                currency {
                  symbol
                }
              }
              amountPaid {
                value
                currency {
                  symbol
                }
              }
              taxTotal {
                value
                currency {
                  symbol
                }
              }
              total {
                value
                currency {
                  symbol
                }
              }
              exchangeRate
              footer
              memo
              disableCreditCardPayments
              disableBankPayments
              itemTitle
              unitTitle
              priceTitle
              amountTitle
              hideName
              hideDescription
              hideUnit
              hidePrice
              hideAmount
              items {
                product {
                  id
                  name
                  # Can add additional product fields here
                }
                description
                quantity
                price
                subtotal {
                  value
                  currency {
                    symbol
                  }
                }
                total {
                  value
                  currency {
                    symbol
                  }
                }
                account {
                  id
                  name
                  subtype {
                    name
                    value
                  }
                  # Can add additional account fields here
                }
                taxes {
                  amount {
                    value
                  }
                  salesTax {
                    id
                    name
                    # Can add additional sales tax fields here
                  }
                }
              }
              lastSentAt
              lastSentVia
              lastViewedAt
            }
          }
        }
      }
    }
    ```

Operation Variables
:   ```graphql
    {
      "businessId": "<BUSINESS_ID>",
      "page": 1,
      "pageSize": 20
    }
    ```