pub struct SqlitePaymentObligationRepository { /* private fields */ }Available on crate feature
sqlite only.Implementations§
Source§impl SqlitePaymentObligationRepository
impl SqlitePaymentObligationRepository
pub const fn new(pool: Pool<SqliteConnectionManager>) -> Self
Trait Implementations§
Source§impl PaymentObligationRepository for SqlitePaymentObligationRepository
impl PaymentObligationRepository for SqlitePaymentObligationRepository
Source§fn create(&self, input: CreatePaymentObligation) -> Result<PaymentObligation>
fn create(&self, input: CreatePaymentObligation) -> Result<PaymentObligation>
Create a new payment obligation.
Source§fn get(&self, id: PaymentObligationId) -> Result<Option<PaymentObligation>>
fn get(&self, id: PaymentObligationId) -> Result<Option<PaymentObligation>>
Get a payment obligation by ID.
Source§fn list(
&self,
filter: PaymentObligationFilter,
) -> Result<Vec<PaymentObligation>>
fn list( &self, filter: PaymentObligationFilter, ) -> Result<Vec<PaymentObligation>>
List payment obligations with filter.
Source§fn record_payment(
&self,
id: PaymentObligationId,
amount: Decimal,
) -> Result<PaymentObligation>
fn record_payment( &self, id: PaymentObligationId, amount: Decimal, ) -> Result<PaymentObligation>
Record a payment against an obligation, advancing its status.
Source§fn set_status(
&self,
id: PaymentObligationId,
status: PaymentObligationStatus,
) -> Result<PaymentObligation>
fn set_status( &self, id: PaymentObligationId, status: PaymentObligationStatus, ) -> Result<PaymentObligation>
Set the obligation status explicitly (e.g. schedule or cancel).
Source§fn link_bill(
&self,
id: PaymentObligationId,
bill_id: Uuid,
) -> Result<PaymentObligation>
fn link_bill( &self, id: PaymentObligationId, bill_id: Uuid, ) -> Result<PaymentObligation>
Link an AP bill to an obligation (idempotent).
Auto Trait Implementations§
impl !RefUnwindSafe for SqlitePaymentObligationRepository
impl !UnwindSafe for SqlitePaymentObligationRepository
impl Freeze for SqlitePaymentObligationRepository
impl Send for SqlitePaymentObligationRepository
impl Sync for SqlitePaymentObligationRepository
impl Unpin for SqlitePaymentObligationRepository
impl UnsafeUnpin for SqlitePaymentObligationRepository
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