wave-api 0.1.0

Typed Rust client for the Wave Accounting GraphQL API
Documentation
pub(crate) const CUSTOMER_CREATE: &str = r#"
mutation ($input: CustomerCreateInput!) {
  customerCreate(input: $input) {
    didSucceed
    inputErrors { code message path }
    customer {
      id name firstName lastName displayId
      email mobile phone fax tollFree website
      internalNotes isArchived
      address {
        addressLine1 addressLine2 city
        province { code name }
        country { code name }
        postalCode
      }
      currency { code symbol name }
      createdAt modifiedAt
    }
  }
}
"#;

pub(crate) const CUSTOMER_PATCH: &str = r#"
mutation ($input: CustomerPatchInput!) {
  customerPatch(input: $input) {
    didSucceed
    inputErrors { code message path }
    customer {
      id name firstName lastName displayId
      email mobile phone fax tollFree website
      internalNotes isArchived
      address {
        addressLine1 addressLine2 city
        province { code name }
        country { code name }
        postalCode
      }
      currency { code symbol name }
      createdAt modifiedAt
    }
  }
}
"#;

pub(crate) const CUSTOMER_DELETE: &str = r#"
mutation ($input: CustomerDeleteInput!) {
  customerDelete(input: $input) {
    didSucceed
    inputErrors { code message path }
  }
}
"#;