Struct mpesa::services::ReconciliationBuilder
source · pub struct ReconciliationBuilder<'mpesa, Env: ApiEnvironment> { /* private fields */ }
Implementations§
source§impl<'mpesa, Env: ApiEnvironment> ReconciliationBuilder<'mpesa, Env>
impl<'mpesa, Env: ApiEnvironment> ReconciliationBuilder<'mpesa, Env>
sourcepub fn new(client: &'mpesa Mpesa<Env>) -> ReconciliationBuilder<'mpesa, Env>
pub fn new(client: &'mpesa Mpesa<Env>) -> ReconciliationBuilder<'mpesa, Env>
Creates a new Bill Manager Reconciliation Builder
sourcepub fn account_reference(
self,
account_reference: &'mpesa str
) -> ReconciliationBuilder<'mpesa, Env>
pub fn account_reference( self, account_reference: &'mpesa str ) -> ReconciliationBuilder<'mpesa, Env>
Adds account_reference
sourcepub fn external_reference(
self,
external_reference: &'mpesa str
) -> ReconciliationBuilder<'mpesa, Env>
pub fn external_reference( self, external_reference: &'mpesa str ) -> ReconciliationBuilder<'mpesa, Env>
Adds external_reference
sourcepub fn full_name(
self,
full_name: &'mpesa str
) -> ReconciliationBuilder<'mpesa, Env>
pub fn full_name( self, full_name: &'mpesa str ) -> ReconciliationBuilder<'mpesa, Env>
Adds full_name
sourcepub fn invoice_name(
self,
invoice_name: &'mpesa str
) -> ReconciliationBuilder<'mpesa, Env>
pub fn invoice_name( self, invoice_name: &'mpesa str ) -> ReconciliationBuilder<'mpesa, Env>
Adds invoice_name
sourcepub fn paid_amount<Number: Into<f64>>(
self,
paid_amount: Number
) -> ReconciliationBuilder<'mpesa, Env>
pub fn paid_amount<Number: Into<f64>>( self, paid_amount: Number ) -> ReconciliationBuilder<'mpesa, Env>
Adds paid_amount
sourcepub fn payment_date(
self,
payment_date: DateTime<Utc>
) -> ReconciliationBuilder<'mpesa, Env>
pub fn payment_date( self, payment_date: DateTime<Utc> ) -> ReconciliationBuilder<'mpesa, Env>
Adds payment_date
sourcepub fn phone_number(
self,
phone_number: &'mpesa str
) -> ReconciliationBuilder<'mpesa, Env>
pub fn phone_number( self, phone_number: &'mpesa str ) -> ReconciliationBuilder<'mpesa, Env>
Adds phone_number
sourcepub fn transaction_id(
self,
transaction_id: &'mpesa str
) -> ReconciliationBuilder<'mpesa, Env>
pub fn transaction_id( self, transaction_id: &'mpesa str ) -> ReconciliationBuilder<'mpesa, Env>
Adds transaction_id
sourcepub async fn send(self) -> MpesaResult<ReconciliationResponse>
pub async fn send(self) -> MpesaResult<ReconciliationResponse>
Bill Manager Reconciliation API
Enables your customers to receive e-receipts for payments made to your paybill account
A successful request returns a ReconciliationResponse
type.
Errors
Returns an MpesaError
on failure.
Trait Implementations§
Auto Trait Implementations§
impl<'mpesa, Env> !RefUnwindSafe for ReconciliationBuilder<'mpesa, Env>
impl<'mpesa, Env> !Send for ReconciliationBuilder<'mpesa, Env>
impl<'mpesa, Env> !Sync for ReconciliationBuilder<'mpesa, Env>
impl<'mpesa, Env> Unpin for ReconciliationBuilder<'mpesa, Env>
impl<'mpesa, Env> !UnwindSafe for ReconciliationBuilder<'mpesa, Env>
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