pub struct IssueVirtualAccount {Show 14 fields
pub amount: i32,
pub order_id: String,
pub order_name: String,
pub customer_name: String,
pub bank: BankCode,
pub account_key: Option<String>,
pub valid_hours: Option<i32>,
pub due_date: Option<String>,
pub customer_email: Option<String>,
pub customer_mobile_phone: Option<String>,
pub tax_free_amount: Option<usize>,
pub use_escrow: Option<bool>,
pub cash_receipt: Option<VirtualAccountCashReceipt>,
pub escrow_products: Option<Vec<VirtualAccountEscrowProduct>>,
}
Fields§
§amount: i32
§order_id: String
§order_name: String
§customer_name: String
§bank: BankCode
§account_key: Option<String>
§valid_hours: Option<i32>
§due_date: Option<String>
§customer_email: Option<String>
§customer_mobile_phone: Option<String>
§tax_free_amount: Option<usize>
§use_escrow: Option<bool>
§cash_receipt: Option<VirtualAccountCashReceipt>
§escrow_products: Option<Vec<VirtualAccountEscrowProduct>>
Implementations§
Source§impl IssueVirtualAccount
impl IssueVirtualAccount
Sourcepub fn builder() -> IssueVirtualAccountBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> IssueVirtualAccountBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building IssueVirtualAccount
.
On the builder, call .amount(...)
, .order_id(...)
, .order_name(...)
, .customer_name(...)
, .bank(...)
, .account_key(...)
(optional), .valid_hours(...)
(optional), .due_date(...)
(optional), .customer_email(...)
(optional), .customer_mobile_phone(...)
(optional), .tax_free_amount(...)
(optional), .use_escrow(...)
(optional), .cash_receipt(...)
(optional), .escrow_products(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of IssueVirtualAccount
.
Trait Implementations§
Source§impl Clone for IssueVirtualAccount
impl Clone for IssueVirtualAccount
Source§fn clone(&self) -> IssueVirtualAccount
fn clone(&self) -> IssueVirtualAccount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for IssueVirtualAccount
impl Debug for IssueVirtualAccount
Source§impl<'de> Deserialize<'de> for IssueVirtualAccount
impl<'de> Deserialize<'de> for IssueVirtualAccount
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IssueVirtualAccount
impl RefUnwindSafe for IssueVirtualAccount
impl Send for IssueVirtualAccount
impl Sync for IssueVirtualAccount
impl Unpin for IssueVirtualAccount
impl UnwindSafe for IssueVirtualAccount
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