Package CIM14 :: Package IEC61968 :: Package PaymentMetering :: Module Transaction' :: Class Transaction
[hide private]
[frames] | no frames]

Class Transaction

                                  object --+        
                                           |        
                            Element'.Element --+    
                                               |    
IEC61970.Core.IdentifiedObject'.IdentifiedObject --+
                                                   |
                                                  Transaction

The record of details of payment for service or token sale.

Instance Methods [hide private]
 
__init__(self, kind='diversePayment', serviceUnitsEnergy=0.0, diverseReference='', receiverReference='', donorReference='', serviceUnitsError=0.0, reversedId='', PricingStructure=None, UserAttributes=None, CustomerAccount=None, CashierShift=None, VendorShift=None, MeterAsset=None, AuxiliaryAccount=None, line=None, Receipt=None, *args, **kw_args)
Initialises a new 'Transaction' instance.
 
addUserAttributes(self, *UserAttributes)
 
getAuxiliaryAccount(self)
Auxiliary account for this payment transaction.
 
getCashierShift(self)
Cashier shift during which this transaction was recorded.
 
getCustomerAccount(self)
Customer account for this payment transaction.
 
getMeterAsset(self)
Meter asset for this vending transaction.
 
getPricingStructure(self)
Pricing structure applicable for this transaction.
 
getReceipt(self)
The receipted payment for which this transaction has been recorded.
 
getUserAttributes(self)
All snapshots of meter parameters recorded at the time of this transaction.
 
getVendorShift(self)
Vendor shift during which this transaction was recorded.
 
removeUserAttributes(self, *UserAttributes)
 
setAuxiliaryAccount(self, value)
 
setCashierShift(self, value)
 
setCustomerAccount(self, value)
 
setMeterAsset(self, value)
 
setPricingStructure(self, value)
 
setReceipt(self, value)
 
setUserAttributes(self, value)
 
setVendorShift(self, value)

Inherited from IEC61970.Core.IdentifiedObject'.IdentifiedObject: getModelingAuthoritySet, setModelingAuthoritySet

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _attr_types = {'diverseReference': <type 'str'>, 'donorReferen...
  _attrs = ['kind', 'serviceUnitsEnergy', 'diverseReference', 'r...
  _defaults = {'diverseReference': '', 'donorReference': '', 'ki...
  _enums = {'kind': 'TransactionKind'}
  _many_refs = ['UserAttributes']
  _refs = ['PricingStructure', 'UserAttributes', 'CustomerAccoun...
  line = None
Properties [hide private]
  AuxiliaryAccount
Auxiliary account for this payment transaction.
  CashierShift
Cashier shift during which this transaction was recorded.
  CustomerAccount
Customer account for this payment transaction.
  MeterAsset
Meter asset for this vending transaction.
  PricingStructure
Pricing structure applicable for this transaction.
  Receipt
The receipted payment for which this transaction has been recorded.
  UserAttributes
All snapshots of meter parameters recorded at the time of this transaction.
  VendorShift
Vendor shift during which this transaction was recorded.

Inherited from IEC61970.Core.IdentifiedObject'.IdentifiedObject: ModelingAuthoritySet

Inherited from object: __class__

Method Details [hide private]

__init__(self, kind='diversePayment', serviceUnitsEnergy=0.0, diverseReference='', receiverReference='', donorReference='', serviceUnitsError=0.0, reversedId='', PricingStructure=None, UserAttributes=None, CustomerAccount=None, CashierShift=None, VendorShift=None, MeterAsset=None, AuxiliaryAccount=None, line=None, Receipt=None, *args, **kw_args)
(Constructor)

 

Initialises a new 'Transaction' instance.

Parameters:
  • kind - Kind of transaction. Values are: "diversePayment", "tokenSalePayment", "serviceChargePayment", "other", "transactionReversal", "taxChargePayment", "meterConfigurationToken", "accountPayment", "tokenFreeIssue", "tokenExchange", "tokenCancellation", "tokenGrant", "auxiliaryChargePayment"
  • serviceUnitsEnergy - Actual amount of service units that is being paid for.
  • diverseReference - Formal reference for use with diverse payment (traffic fine for example).
  • receiverReference - Reference to the entity that is the recipient of 'amount' (for example, supplier for service charge payment; or tax receiver for VAT).
  • donorReference - Reference to the entity that is the source of 'amount' (for example: customer for token purchase; or supplier for free issue token).
  • serviceUnitsError - Number of service units not reflected in 'serviceUnitsEnergy' due to process rounding or truncating errors.
  • reversedId - (if 'kind' is transactionReversal) Reference to the original transaction that is being reversed by this transaction.
  • PricingStructure - Pricing structure applicable for this transaction.
  • UserAttributes - All snapshots of meter parameters recorded at the time of this transaction. Use 'name' and 'value.value' attributes to specify name and value of a parameter from meter.
  • CustomerAccount - Customer account for this payment transaction.
  • CashierShift - Cashier shift during which this transaction was recorded.
  • VendorShift - Vendor shift during which this transaction was recorded.
  • MeterAsset - Meter asset for this vending transaction.
  • AuxiliaryAccount - Auxiliary account for this payment transaction.
  • line - Transaction amount, rounding, date and note for this transaction line.
  • Receipt - The receipted payment for which this transaction has been recorded.
Overrides: object.__init__

getUserAttributes(self)

 

All snapshots of meter parameters recorded at the time of this transaction. Use 'name' and 'value.value' attributes to specify name and value of a parameter from meter.


Class Variable Details [hide private]

_attr_types

Value:
{'diverseReference': <type 'str'>,
 'donorReference': <type 'str'>,
 'kind': <type 'str'>,
 'receiverReference': <type 'str'>,
 'reversedId': <type 'str'>,
 'serviceUnitsEnergy': <type 'float'>,
 'serviceUnitsError': <type 'float'>}

_attrs

Value:
['kind',
 'serviceUnitsEnergy',
 'diverseReference',
 'receiverReference',
 'donorReference',
 'serviceUnitsError',
 'reversedId']

_defaults

Value:
{'diverseReference': '',
 'donorReference': '',
 'kind': 'diversePayment',
 'receiverReference': '',
 'reversedId': '',
 'serviceUnitsEnergy': 0.0,
 'serviceUnitsError': 0.0}

_refs

Value:
['PricingStructure',
 'UserAttributes',
 'CustomerAccount',
 'CashierShift',
 'VendorShift',
 'MeterAsset',
 'AuxiliaryAccount',
 'line',
...

Property Details [hide private]

AuxiliaryAccount

Auxiliary account for this payment transaction.

Get Method:
getAuxiliaryAccount(self) - Auxiliary account for this payment transaction.
Set Method:
setAuxiliaryAccount(self, value)

CashierShift

Cashier shift during which this transaction was recorded.

Get Method:
getCashierShift(self) - Cashier shift during which this transaction was recorded.
Set Method:
setCashierShift(self, value)

CustomerAccount

Customer account for this payment transaction.

Get Method:
getCustomerAccount(self) - Customer account for this payment transaction.
Set Method:
setCustomerAccount(self, value)

MeterAsset

Meter asset for this vending transaction.

Get Method:
getMeterAsset(self) - Meter asset for this vending transaction.
Set Method:
setMeterAsset(self, value)

PricingStructure

Pricing structure applicable for this transaction.

Get Method:
getPricingStructure(self) - Pricing structure applicable for this transaction.
Set Method:
setPricingStructure(self, value)

Receipt

The receipted payment for which this transaction has been recorded.

Get Method:
getReceipt(self) - The receipted payment for which this transaction has been recorded.
Set Method:
setReceipt(self, value)

UserAttributes

All snapshots of meter parameters recorded at the time of this transaction. Use 'name' and 'value.value' attributes to specify name and value of a parameter from meter.

Get Method:
getUserAttributes(self) - All snapshots of meter parameters recorded at the time of this transaction.
Set Method:
setUserAttributes(self, value)

VendorShift

Vendor shift during which this transaction was recorded.

Get Method:
getVendorShift(self) - Vendor shift during which this transaction was recorded.
Set Method:
setVendorShift(self, value)