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 copy 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 Default for PromotionCodesResourceRestrictions
impl Default for PromotionCodesResourceRestrictions
source§fn default() -> PromotionCodesResourceRestrictions
fn default() -> PromotionCodesResourceRestrictions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PromotionCodesResourceRestrictions
impl<'de> Deserialize<'de> for PromotionCodesResourceRestrictions
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 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