pub struct PromotionCodesResourceRestrictions {
pub currency_options: Option<HashMap<Currency, PromotionCodeCurrencyOption>>,
pub first_time_transaction: bool,
pub minimum_amount: Option<i64>,
pub minimum_amount_currency: Option<Currency>,
}
Fields§
§currency_options: Option<HashMap<Currency, PromotionCodeCurrencyOption>>
Promotion code restrictions defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
first_time_transaction: bool
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.
minimum_amount: Option<i64>
Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).
minimum_amount_currency: Option<Currency>
Three-letter ISO code for minimum_amount
Trait Implementations§
Source§impl Clone for PromotionCodesResourceRestrictions
impl Clone for PromotionCodesResourceRestrictions
Source§fn clone(&self) -> PromotionCodesResourceRestrictions
fn clone(&self) -> PromotionCodesResourceRestrictions
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 FromValueOpt for PromotionCodesResourceRestrictions
impl FromValueOpt for PromotionCodesResourceRestrictions
fn from_value(v: Value) -> Option<Self>
Auto Trait Implementations§
impl Freeze for PromotionCodesResourceRestrictions
impl RefUnwindSafe for PromotionCodesResourceRestrictions
impl Send for PromotionCodesResourceRestrictions
impl Sync for PromotionCodesResourceRestrictions
impl Unpin for PromotionCodesResourceRestrictions
impl UnwindSafe for PromotionCodesResourceRestrictions
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