facture_rs 0.1.2

A wrapper for the FactureApp API service.
Documentation
use crate::core::app::App;

// Password
pub struct PasswordInput {
  pub app: App,
  pub scopes: String,
}

impl PasswordInput {
  pub fn new() -> Self{
    PasswordInput{
      app: App::new(),
      scopes: String::new()
    }
  }
}


//Refresh Token
pub struct RefreshInput {
  pub app: App,
  pub refresh_token: String,
}

impl RefreshInput {
  pub fn new() -> Self{
    RefreshInput{
      app:App::new(),
      refresh_token: String::new()
    }
  }
}

// Authorize
pub struct AuthorizeInput {
  pub app: App,
  pub scopes: String,
  pub code: String,
  pub redirect_uri: String
}

impl AuthorizeInput {
  pub fn new() -> Self{
    AuthorizeInput{
      app:App::new(),
      scopes: String::new(),
      code: String::new(),
      redirect_uri: String::new()
    }
  }
}