wave-api 0.1.0

Typed Rust client for the Wave Accounting GraphQL API
Documentation
# Mutation: Create customer

Create a customer under a business.

Includes optional data `firstName`, `lastName`, `email`, `address` and `currency`.

See [Variables](360024906591) for how to pass in `String` data as arguments.

See [Errors](360018571372) for additional information about error cases.

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

Operation
:   ```graphql
    mutation ($input: CustomerCreateInput!) {
      customerCreate(input: $input) {
        didSucceed
        inputErrors {
          code
          message
          path
        }
        customer {
          id
          name
          firstName
          lastName
          email
          address {
            addressLine1
            addressLine2
            city
            province {
              code
              name
            }
            country {
              code
              name
            }
            postalCode
          }
          currency {
            code
          }
        }
      }
    }
    ```

Operation Variables
:   ```graphql
    {
      "input": {
        "businessId": "<BUSINESS_ID>",
        "name": "Santa",
        "firstName": "Saint",
        "lastName": "Nicholas",
        "email": "santa@example.com",
        "address": {
          "city": "North Pole",
          "postalCode": "H0H 0H0",
          "provinceCode": "CA-NU",
          "countryCode": "CA"
        },
        "currency": "CAD"
      }
    }
    ```