Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add convenience methods for adding a parcel to an invoice in code #357

Open
thomastaylor312 opened this issue Nov 18, 2022 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@thomastaylor312
Copy link
Contributor

As a user, I'd like to easily add a file to an invoice without having to manually calculate the sha of a file.

I think we should add the following functions to the Invoice impl:

fn add_parcel(&self, data: &[u8])
fn add_parcel_from_file(&self, file: &File)
fn add_parcel_from_path(&self, path: impl AsRef<Path>)
@thomastaylor312 thomastaylor312 added the enhancement New feature or request label Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant