def __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.

        @param kind: Kind of transaction. Values are: "diversePayment", "tokenSalePayment", "serviceChargePayment", "other", "transactionReversal", "taxChargePayment", "meterConfigurationToken", "accountPayment", "tokenFreeIssue", "tokenExchange", "tokenCancellation", "tokenGrant", "auxiliaryChargePayment"
        @param serviceUnitsEnergy: Actual amount of service units that is being paid for. 
        @param diverseReference: Formal reference for use with diverse payment (traffic fine for example). 
        @param receiverReference: Reference to the entity that is the recipient of 'amount' (for example, supplier for service charge payment; or tax receiver for VAT). 
        @param donorReference: Reference to the entity that is the source of 'amount' (for example: customer for token purchase; or supplier for free issue token). 
        @param serviceUnitsError: Number of service units not reflected in 'serviceUnitsEnergy' due to process rounding or truncating errors. 
        @param reversedId: (if 'kind' is transactionReversal) Reference to the original transaction that is being reversed by this transaction. 
        @param PricingStructure: Pricing structure applicable for this transaction.
        @param 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.
        @param CustomerAccount: Customer account for this payment transaction.
        @param CashierShift: Cashier shift during which this transaction was recorded.
        @param VendorShift: Vendor shift during which this transaction was recorded.
        @param MeterAsset: Meter asset for this vending transaction.
        @param AuxiliaryAccount: Auxiliary account for this payment transaction.
        @param line: Transaction amount, rounding, date and note for this transaction line.
        @param Receipt: The receipted payment for which this transaction has been recorded.
        """
        #: Kind of transaction. Values are: "diversePayment", "tokenSalePayment", "serviceChargePayment", "other", "transactionReversal", "taxChargePayment", "meterConfigurationToken", "accountPayment", "tokenFreeIssue", "tokenExchange", "tokenCancellation", "tokenGrant", "auxiliaryChargePayment"
        self.kind = kind

        #: Actual amount of service units that is being paid for.
        self.serviceUnitsEnergy = serviceUnitsEnergy

        #: Formal reference for use with diverse payment (traffic fine for example).
        self.diverseReference = diverseReference

        #: Reference to the entity that is the recipient of 'amount' (for example, supplier for service charge payment; or tax receiver for VAT).
        self.receiverReference = receiverReference

        #: Reference to the entity that is the source of 'amount' (for example: customer for token purchase; or supplier for free issue token).
        self.donorReference = donorReference

        #: Number of service units not reflected in 'serviceUnitsEnergy' due to process rounding or truncating errors.
        self.serviceUnitsError = serviceUnitsError

        #: (if 'kind' is transactionReversal) Reference to the original transaction that is being reversed by this transaction.
        self.reversedId = reversedId

        self._PricingStructure = None
        self.PricingStructure = PricingStructure

        self._UserAttributes = []
        self.UserAttributes = [] if UserAttributes is None else UserAttributes

        self._CustomerAccount = None
        self.CustomerAccount = CustomerAccount

        self._CashierShift = None
        self.CashierShift = CashierShift

        self._VendorShift = None
        self.VendorShift = VendorShift

        self._MeterAsset = None
        self.MeterAsset = MeterAsset

        self._AuxiliaryAccount = None
        self.AuxiliaryAccount = AuxiliaryAccount

        self.line = line

        self._Receipt = None
        self.Receipt = Receipt

        super(Transaction, self).__init__(*args, **kw_args)
def __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 ) : self . kind = kind self . serviceUnitsEnergy = serviceUnitsEnergy self . diverseReference = diverseReference self . receiverReference = receiverReference self . donorReference = donorReference self . serviceUnitsError = serviceUnitsError self . reversedId = reversedId self . _PricingStructure = None self . PricingStructure = PricingStructure self . _UserAttributes = [ ] self . UserAttributes = [ ] if UserAttributes is None else UserAttributes self . _CustomerAccount = None self . CustomerAccount = CustomerAccount self . _CashierShift = None self . CashierShift = CashierShift self . _VendorShift = None self . VendorShift = VendorShift self . _MeterAsset = None self . MeterAsset = MeterAsset self . _AuxiliaryAccount = None self . AuxiliaryAccount = AuxiliaryAccount self . line = line self . _Receipt = None self . Receipt = Receipt super ( Transaction , self ) . __init__ ( * args , ** kw_args )
Initialises a new 'Transaction' instance.

        @param kind: Kind of transaction. Values are: "diversePayment", "tokenSalePayment", "serviceChargePayment", "other", "transactionReversal", "taxChargePayment", "meterConfigurationToken", "accountPayment", "tokenFreeIssue", "tokenExchange", "tokenCancellation", "tokenGrant", "auxiliaryChargePayment"
        @param serviceUnitsEnergy: Actual amount of service units that is being paid for. 
        @param diverseReference: Formal reference for use with diverse payment (traffic fine for example). 
        @param receiverReference: Reference to the entity that is the recipient of 'amount' (for example, supplier for service charge payment; or tax receiver for VAT). 
        @param donorReference: Reference to the entity that is the source of 'amount' (for example: customer for token purchase; or supplier for free issue token). 
        @param serviceUnitsError: Number of service units not reflected in 'serviceUnitsEnergy' due to process rounding or truncating errors. 
        @param reversedId: (if 'kind' is transactionReversal) Reference to the original transaction that is being reversed by this transaction. 
        @param PricingStructure: Pricing structure applicable for this transaction.
        @param 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.
        @param CustomerAccount: Customer account for this payment transaction.
        @param CashierShift: Cashier shift during which this transaction was recorded.
        @param VendorShift: Vendor shift during which this transaction was recorded.
        @param MeterAsset: Meter asset for this vending transaction.
        @param AuxiliaryAccount: Auxiliary account for this payment transaction.
        @param line: Transaction amount, rounding, date and note for this transaction line.
        @param Receipt: The receipted payment for which this transaction has been recorded.