pub struct PaymentBuilder { /* private fields */ }Expand description
PaymentBuilder
Implementations§
Source§impl PaymentBuilder
impl PaymentBuilder
pub fn new() -> Self
pub fn transaction_id(self, transaction_id: String) -> Self
pub fn thid(self, thid: String) -> Self
pub fn pthid(self, pthid: String) -> Self
pub fn merchant(self, merchant: Participant) -> Self
pub fn customer(self, customer: Participant) -> Self
pub fn asset(self, asset: AssetId) -> Self
pub fn amount(self, amount: String) -> Self
pub fn order_details(self, order_details: HashMap<String, Value>) -> Self
pub fn timestamp(self, timestamp: String) -> Self
pub fn expires(self, expires: String) -> Self
pub fn note(self, note: String) -> Self
pub fn add_agent(self, agent: Participant) -> Self
pub fn set_agents(self, agents: Vec<Participant>) -> Self
pub fn add_metadata(self, key: String, value: Value) -> Self
pub fn set_metadata(self, metadata: HashMap<String, Value>) -> Self
pub fn add_attachment(self, attachment: Attachment) -> Self
pub fn set_attachments(self, attachments: Vec<Attachment>) -> Self
pub fn build(self) -> Result<Payment>
Trait Implementations§
Source§impl Default for PaymentBuilder
impl Default for PaymentBuilder
Source§fn default() -> PaymentBuilder
fn default() -> PaymentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PaymentBuilder
impl RefUnwindSafe for PaymentBuilder
impl Send for PaymentBuilder
impl Sync for PaymentBuilder
impl Unpin for PaymentBuilder
impl UnwindSafe for PaymentBuilder
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