def is_reversal_request(self): ok = BaseTransaction.is_reversal_request(self) if not ok: return jenis_pajak = self.jenis_pajak() if jenis_pajak: return '{j}_reversal_request_handler'.format(j=jenis_pajak)
def is_reversal_request(self): if not BaseTransaction.is_reversal_request(self): return code = self.get_transaction_code() methods = self.get_reversal_methods() if code in methods: return methods[code]
def is_reversal_request(self): return BaseTransaction.is_reversal_request(self) and \ self.get_transaction_code() == PAYMENT_CODE and \ 'reversal_request_handler'
def set_transaction_response(self): BaseTransaction.set_transaction_response(self) self.copy([49, 58, 59, 60, 62, 63, 102, 107]) self.setBit(47, '') self.setBit(48, '') self.setBit(61, '')
def __init__(self, *args, **kwargs): BaseTransaction.__init__(self, *args, **kwargs) self.invoice_profile = FixLength(INVOICE_PROFILE) self.invoice_profile2 = FixLength(INVOICE_PROFILE2)
def set_transaction_response(self): BaseTransaction.set_transaction_response(self) self.copy([47, 49, 59, 60, 61, 63, 102, 107])
def is_reversal_request(self): if not BaseTransaction.is_reversal_request(self): return if self.get_transaction_code() == PAYMENT_CODE: return 'reversal_request_handler'
def __init__(self, *args, **kwargs): self.invoice_id = FixLength(INVOICE_ID) self.invoice_profile = FixLength(INVOICE_PROFILE) BaseTransaction.__init__(self, *args, **kwargs) self.invoice_id_raw = None
def set_transaction_response(self): BaseTransaction.set_transaction_response(self) self.copy([ 2, 3, 7, 11, 12, 13, 15, 18, 22, 32, 33, 35, 37, 41, 43, 49, 61, 62 ])
def __init__(self, *args, **kwargs): BaseTransaction.__init__(self, *args, **kwargs) self.invoice_profile = FixLength(INVOICE_PROFILE)
def set_transaction_response(self): BaseTransaction.set_transaction_response(self) self.copy( [2, 3, 7, 11, 12, 13, 15, 18, 22, 32, 33, 35, 37, 41, 43, 49, 61, 62])