Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

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

@thomastaylor312

Description

@thomastaylor312

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>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions