mirror of
				https://github.com/brain-tec/account_ebics.git
				synced 2025-11-04 07:00:35 +00:00 
			
		
		
		
	add placeholder logic to add pain.002 processing logic
This commit is contained in:
		@@ -79,6 +79,7 @@
 | 
				
			|||||||
      <field name="name">pain.002</field>
 | 
					      <field name="name">pain.002</field>
 | 
				
			||||||
      <field name="type">down</field>
 | 
					      <field name="type">down</field>
 | 
				
			||||||
      <field name="order_type">Z01</field>
 | 
					      <field name="order_type">Z01</field>
 | 
				
			||||||
 | 
					      <field name="download_process_method">pain.002</field>
 | 
				
			||||||
      <field name="description">Payment status report for direct debit in format pain.002</field>
 | 
					      <field name="description">Payment status report for direct debit in format pain.002</field>
 | 
				
			||||||
      <field name="suffix">psr.xml</field>
 | 
					      <field name="suffix">psr.xml</field>
 | 
				
			||||||
    </record>
 | 
					    </record>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -132,6 +132,9 @@ class EbicsFile(models.Model):
 | 
				
			|||||||
            'camt.054':
 | 
					            'camt.054':
 | 
				
			||||||
                {'process': self._process_camt054,
 | 
					                {'process': self._process_camt054,
 | 
				
			||||||
                 'unlink': self._unlink_camt054},
 | 
					                 'unlink': self._unlink_camt054},
 | 
				
			||||||
 | 
					            'pain.002':
 | 
				
			||||||
 | 
					                {'process': self._process_pain002,
 | 
				
			||||||
 | 
					                 'unlink': self._unlink_pain002},
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        return res
 | 
					        return res
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -341,6 +344,23 @@ class EbicsFile(models.Model):
 | 
				
			|||||||
        """
 | 
					        """
 | 
				
			||||||
        pass
 | 
					        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @staticmethod
 | 
				
			||||||
 | 
					    def _process_pain002(self):
 | 
				
			||||||
 | 
					        """
 | 
				
			||||||
 | 
					        Placeholder for processing pain.002 files.
 | 
				
			||||||
 | 
					        TODO:
 | 
				
			||||||
 | 
					        add import logic based upon OCA 'account_payment_return_import'
 | 
				
			||||||
 | 
					        """
 | 
				
			||||||
 | 
					        pass
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    @staticmethod
 | 
				
			||||||
 | 
					    def _unlink_pain002(self):
 | 
				
			||||||
 | 
					        """
 | 
				
			||||||
 | 
					        Placeholder for pain.002 specific actions before removing the
 | 
				
			||||||
 | 
					        EBICS data file.
 | 
				
			||||||
 | 
					        """
 | 
				
			||||||
 | 
					        raise NotImplementedError
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _process_undefined_format(self):
 | 
					    def _process_undefined_format(self):
 | 
				
			||||||
        raise UserError(_(
 | 
					        raise UserError(_(
 | 
				
			||||||
            "The current version of the 'account_ebics' module "
 | 
					            "The current version of the 'account_ebics' module "
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user