Struct sep2_common::packages::prepayment::AccountBalance
source · pub struct AccountBalance {
pub available_credit: AccountingUnit,
pub credit_status: Option<CreditStatusType>,
pub emergency_credit: Option<AccountingUnit>,
pub emergency_credit_status: Option<CreditStatusType>,
pub href: Option<String>,
}
prepayment
only.Fields§
§available_credit: AccountingUnit
AvailableCredit shows the balance of the sum of credits minus the sum of charges. In a Central Wallet mode this value may be passed down to the Prepayment server via an out-of-band mechanism. In Local or ESI modes, this value may be calculated based upon summation of CreditRegister transactions minus consumption charges calculated using Metering (and possibly Pricing) function set data. This value may be negative; for instance, if disconnection is prevented due to a Supply Interruption Override.
credit_status: Option<CreditStatusType>
CreditStatus identifies whether the present value of availableCredit is considered OK, low, exhausted, or negative.
emergency_credit: Option<AccountingUnit>
EmergencyCredit is the amount of credit still available for the given service or commodity prepayment instance. If both availableCredit and emergyCredit are exhausted, then service will typically be disconnected.
emergency_credit_status: Option<CreditStatusType>
EmergencyCreditStatus identifies whether the present value of emergencyCredit is considered OK, low, exhausted, or negative.
href: Option<String>
A reference to the resource address (URI). Required in a response to a GET, ignored otherwise.
Trait Implementations§
source§impl Clone for AccountBalance
impl Clone for AccountBalance
source§fn clone(&self) -> AccountBalance
fn clone(&self) -> AccountBalance
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AccountBalance
impl Debug for AccountBalance
source§impl Default for AccountBalance
impl Default for AccountBalance
source§fn default() -> AccountBalance
fn default() -> AccountBalance
source§impl PartialEq<AccountBalance> for AccountBalance
impl PartialEq<AccountBalance> for AccountBalance
source§fn eq(&self, other: &AccountBalance) -> bool
fn eq(&self, other: &AccountBalance) -> bool
self
and other
values to be equal, and is used
by ==
.