pub struct ConfirmBillingBody {
pub amount: i32,
pub customer_key: String,
pub order_id: String,
pub order_name: String,
pub card_installment_plan: Option<i32>,
pub customer_email: Option<String>,
pub customer_name: Option<String>,
pub tax_free_amount: Option<i32>,
pub tax_exemption_amount: Option<i32>,
}
Fields§
§amount: i32
§customer_key: String
§order_id: String
§order_name: String
§card_installment_plan: Option<i32>
§customer_email: Option<String>
§customer_name: Option<String>
§tax_free_amount: Option<i32>
§tax_exemption_amount: Option<i32>
Implementations§
Source§impl ConfirmBillingBody
impl ConfirmBillingBody
Sourcepub fn builder() -> ConfirmBillingBodyBuilder<((), (), (), (), (), (), (), (), ())>
pub fn builder() -> ConfirmBillingBodyBuilder<((), (), (), (), (), (), (), (), ())>
Create a builder for building ConfirmBillingBody
.
On the builder, call .amount(...)
, .customer_key(...)
, .order_id(...)
, .order_name(...)
, .card_installment_plan(...)
(optional), .customer_email(...)
(optional), .customer_name(...)
(optional), .tax_free_amount(...)
(optional), .tax_exemption_amount(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ConfirmBillingBody
.
Trait Implementations§
Source§impl Clone for ConfirmBillingBody
impl Clone for ConfirmBillingBody
Source§fn clone(&self) -> ConfirmBillingBody
fn clone(&self) -> ConfirmBillingBody
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 ConfirmBillingBody
impl Debug for ConfirmBillingBody
Source§impl<'de> Deserialize<'de> for ConfirmBillingBody
impl<'de> Deserialize<'de> for ConfirmBillingBody
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 ConfirmBillingBody
impl RefUnwindSafe for ConfirmBillingBody
impl Send for ConfirmBillingBody
impl Sync for ConfirmBillingBody
impl Unpin for ConfirmBillingBody
impl UnwindSafe for ConfirmBillingBody
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