Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4070440
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:37:40+00:00 2026-05-20T16:37:40+00:00

At my job, I need to format payments file to be able to communicate

  • 0

At my job, I need to format payments file to be able to communicate with banks. The problem is that all bank ask for a different format. Right now, we use the Template Method pattern [GOF] in a attempt to do this as generics as possible but in result of the same 3 classes repeat for every format.

a class inherit from asbtract absPaymentFile (with Inversion of Control)
a class inherit from Payment (contain info about the payment sometime have 1 or 2 attribute different of the others payments classes)
a class inherit from absMerchant (contain info about the merchant and some method to implement)

Is there a way to format a file, with “almost” the same information, in several ways better than what we do now ?

this link should provide you a good base line of what i need to do : https://www.vancity.com/lang/fr/SharedContent/documents/CPA_Std005_Specs.doc

It’s a .doc !

Thanks !

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:37:41+00:00Added an answer on May 20, 2026 at 4:37 pm

    Having gone down the path of trying to make something which would only need minor tweaks to support multiple formats, I’d say don’t. DRY principles don’t really apply here because each new format is really and truly independent of the others and may change.

    Yes, it might mean copy/pasting fair amounts of code but honestly once one format is done then you don’t have to worry about it until the receiving software updates their spec. Also, if that format changes you usually don’t want any of those changes to impact your other output code.

    In short, this is one of those areas that should only be encapsulated to the point of having some type of plugin architecture. Meaning, all of the classes should implement a basic interface that simply defines how your main app is going to transfer data to it. After that the classes should be able to diverge significantly from each other AND updates in one should have no impact in others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a hadoop job jar file that uses mahout and a
We need to change an already running job. We should be able to push
I need to solve a problem within job booking software and am hoping to
I need to solve a job affectation problem and I would like to find
i have a job portal website project in that i need to signup user
I need to convert a chm file to another format, most likely pdf or
Some of our customers ask for end-user documentation in a format that’s suitable for
I am writing a cron job that will need to pull out the current
I need to convert a very large file from DBF format to CSV format.
Problem: I need to be able identify when two whitespaces occur consecutively. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.