pub struct SqlitePrepaymentRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqlitePrepaymentRepository
impl SqlitePrepaymentRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl Debug for SqlitePrepaymentRepository
impl Debug for SqlitePrepaymentRepository
Source§impl PrepaymentRepository for SqlitePrepaymentRepository
impl PrepaymentRepository for SqlitePrepaymentRepository
Source§fn create(&self, input: CreatePrepayment) -> Result<Prepayment>
fn create(&self, input: CreatePrepayment) -> Result<Prepayment>
Create a new prepayment.
Source§fn get(&self, id: PrepaymentId) -> Result<Option<Prepayment>>
fn get(&self, id: PrepaymentId) -> Result<Option<Prepayment>>
Get a prepayment by ID.
Source§fn list(&self, filter: PrepaymentFilter) -> Result<Vec<Prepayment>>
fn list(&self, filter: PrepaymentFilter) -> Result<Vec<Prepayment>>
List prepayments with filter.
Source§fn apply(&self, id: PrepaymentId, input: ApplyPrepayment) -> Result<Prepayment>
fn apply(&self, id: PrepaymentId, input: ApplyPrepayment) -> Result<Prepayment>
Apply a prepayment against a bill or payment obligation, drawing down
the remaining balance and recording an application.
Source§fn list_applications(
&self,
id: PrepaymentId,
) -> Result<Vec<PrepaymentApplication>>
fn list_applications( &self, id: PrepaymentId, ) -> Result<Vec<PrepaymentApplication>>
List applications for a prepayment.
Source§fn reverse_application(
&self,
id: PrepaymentId,
application_id: PrepaymentApplicationId,
) -> Result<Prepayment>
fn reverse_application( &self, id: PrepaymentId, application_id: PrepaymentApplicationId, ) -> Result<Prepayment>
Reverse a previously-recorded application, restoring the balance.
Source§fn refund(&self, id: PrepaymentId) -> Result<Prepayment>
fn refund(&self, id: PrepaymentId) -> Result<Prepayment>
Refund the remaining balance, closing the prepayment.
Auto Trait Implementations§
impl !RefUnwindSafe for SqlitePrepaymentRepository
impl !UnwindSafe for SqlitePrepaymentRepository
impl Freeze for SqlitePrepaymentRepository
impl Send for SqlitePrepaymentRepository
impl Sync for SqlitePrepaymentRepository
impl Unpin for SqlitePrepaymentRepository
impl UnsafeUnpin for SqlitePrepaymentRepository
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more