Struct mpesa::services::OnboardModifyBuilder
source · pub struct OnboardModifyBuilder<'mpesa, Env: ApiEnvironment> { /* private fields */ }
Implementations§
source§impl<'mpesa, Env: ApiEnvironment> OnboardModifyBuilder<'mpesa, Env>
impl<'mpesa, Env: ApiEnvironment> OnboardModifyBuilder<'mpesa, Env>
sourcepub fn new(client: &'mpesa Mpesa<Env>) -> OnboardModifyBuilder<'mpesa, Env>
pub fn new(client: &'mpesa Mpesa<Env>) -> OnboardModifyBuilder<'mpesa, Env>
Creates a new Bill Manager Onboard Modify builder
sourcepub fn callback_url(
self,
callback_url: &'mpesa str
) -> OnboardModifyBuilder<'mpesa, Env>
pub fn callback_url( self, callback_url: &'mpesa str ) -> OnboardModifyBuilder<'mpesa, Env>
Adds callbackUrl
.
sourcepub fn email(self, email: &'mpesa str) -> OnboardModifyBuilder<'mpesa, Env>
pub fn email(self, email: &'mpesa str) -> OnboardModifyBuilder<'mpesa, Env>
Adds an email
address to the request.
sourcepub fn logo(self, logo: &'mpesa str) -> OnboardModifyBuilder<'mpesa, Env>
pub fn logo(self, logo: &'mpesa str) -> OnboardModifyBuilder<'mpesa, Env>
Adds logo
; a file with your organizions’s logo.
sourcepub fn official_contact(
self,
official_contact: &'mpesa str
) -> OnboardModifyBuilder<'mpesa, Env>
pub fn official_contact( self, official_contact: &'mpesa str ) -> OnboardModifyBuilder<'mpesa, Env>
Adds officialContact
to the request; must be in the format 07XXXXXXXX
sourcepub fn send_reminders(
self,
send_reminders: SendRemindersTypes
) -> OnboardModifyBuilder<'mpesa, Env>
pub fn send_reminders( self, send_reminders: SendRemindersTypes ) -> OnboardModifyBuilder<'mpesa, Env>
Adds sendReminders
.
sourcepub fn short_code(
self,
short_code: &'mpesa str
) -> OnboardModifyBuilder<'mpesa, Env>
pub fn short_code( self, short_code: &'mpesa str ) -> OnboardModifyBuilder<'mpesa, Env>
Adds ShortCode
; the 6 digit MPESA Till Number or PayBill Number
sourcepub async fn send(self) -> MpesaResult<OnboardModifyResponse>
pub async fn send(self) -> MpesaResult<OnboardModifyResponse>
Bill Manager Onboarding Modify API
Modifies opt-in details to the bill manager api.
A successful request returns a OnboardModifyResponse
type
Errors
Returns an MpesaError
on failure
Trait Implementations§
Auto Trait Implementations§
impl<'mpesa, Env> !RefUnwindSafe for OnboardModifyBuilder<'mpesa, Env>
impl<'mpesa, Env> !Send for OnboardModifyBuilder<'mpesa, Env>
impl<'mpesa, Env> !Sync for OnboardModifyBuilder<'mpesa, Env>
impl<'mpesa, Env> Unpin for OnboardModifyBuilder<'mpesa, Env>
impl<'mpesa, Env> !UnwindSafe for OnboardModifyBuilder<'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