forked from pentaho/pentaho-kettle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BACKLOG-38429][Add] Credit Card Validator Plugin
- Loading branch information
1 parent
bff96e1
commit a704df1
Showing
28 changed files
with
729 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.pentaho.di.plugins</groupId> | ||
<artifactId>credit-card-validator-assemblies</artifactId> | ||
<version>10.1.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>credit-card-validator-plugins</artifactId> | ||
<version>10.1.0.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<name>Credit Card Validator Plugins Distribution</name> | ||
<description></description> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>org.pentaho.di.plugins</groupId> | ||
<artifactId>credit-card-validator-plugins-impl</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.pentaho.di.plugins</groupId> | ||
<artifactId>credit-card-validator-plugins-ui</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
<execution> | ||
<id>add-libs</id> | ||
<phase>generate-resources</phase> | ||
<goals> | ||
<goal>copy-dependencies</goal> | ||
</goals> | ||
<configuration> | ||
<outputDirectory>${project.build.directory}/assembly/lib</outputDirectory> | ||
<includeScope>compile</includeScope> | ||
<excludeArtifactIds>credit-card-validator-plugins-impl,credit-card-validator-plugins-ui</excludeArtifactIds> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
</project> |
37 changes: 37 additions & 0 deletions
37
plugins/credit-card-validator/assemblies/plugin/src/assembly/assembly.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> | ||
<id>random-cc-number-generator-plugin</id> | ||
<formats> | ||
<format>zip</format> | ||
</formats> | ||
<baseDirectory>credit-card-validator-plugins</baseDirectory> | ||
|
||
<files> | ||
<file> | ||
<source>${project.basedir}/src/main/resources/version.xml</source> | ||
<outputDirectory>.</outputDirectory> | ||
<filtered>true</filtered> | ||
</file> | ||
</files> | ||
|
||
<fileSets> | ||
<!-- the staging dir --> | ||
<fileSet> | ||
<directory>${project.build.directory}/assembly</directory> | ||
<outputDirectory>.</outputDirectory> | ||
</fileSet> | ||
</fileSets> | ||
|
||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>.</outputDirectory> | ||
<includes> | ||
<include>org.pentaho.di.plugins:credit-card-validator-plugins-impl:jar</include> | ||
<include>org.pentaho.di.plugins:credit-card-validator-plugins-ui:jar</include> | ||
</includes> | ||
<useProjectArtifact>false</useProjectArtifact> | ||
</dependencySet> | ||
</dependencySets> | ||
</assembly> | ||
|
||
|
2 changes: 2 additions & 0 deletions
2
plugins/credit-card-validator/assemblies/plugin/src/main/resources/version.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<version>${project.version}</version> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.pentaho.di.plugins</groupId> | ||
<artifactId>credit-card-validator</artifactId> | ||
<version>10.1.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>credit-card-validator-assemblies</artifactId> | ||
<version>10.1.0.0-SNAPSHOT</version> | ||
<packaging>pom</packaging> | ||
|
||
<name>Credit Card Validator Plugins Assemblies</name> | ||
|
||
<modules> | ||
<module>plugin</module> | ||
</modules> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" | ||
xmlns="http://maven.apache.org/POM/4.0.0" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> | ||
<modelVersion>4.0.0</modelVersion> | ||
|
||
<parent> | ||
<groupId>org.pentaho.di.plugins</groupId> | ||
<artifactId>credit-card-validator</artifactId> | ||
<version>10.1.0.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>credit-card-validator-plugins-impl</artifactId> | ||
<name>Credit Card Validator Plugins Impl</name> | ||
|
||
<dependencies> | ||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-core</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-engine</artifactId> | ||
<scope>provided</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>com.healthmarketscience.jackcess</groupId> | ||
<artifactId>jackcess</artifactId> | ||
<scope>compile</scope> | ||
</dependency> | ||
|
||
<!-- Test dependencies --> | ||
<dependency> | ||
<groupId>org.mockito</groupId> | ||
<artifactId>mockito-all</artifactId> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>org.hamcrest</groupId> | ||
<artifactId>hamcrest-core</artifactId> | ||
<version>1.3</version> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-core</artifactId> | ||
<classifier>tests</classifier> | ||
<scope>test</scope> | ||
</dependency> | ||
<dependency> | ||
<groupId>pentaho-kettle</groupId> | ||
<artifactId>kettle-engine</artifactId> | ||
<classifier>tests</classifier> | ||
<scope>test</scope> | ||
</dependency> | ||
</dependencies> | ||
</project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
...sources/org/pentaho/di/trans/steps/creditcardvalidator/messages/messages_en_US.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
#File generated by Hitachi Vantara Translator for package 'org.pentaho.di.trans.steps.CreditCardValidator' in locale 'en_US' | ||
# | ||
# | ||
#Thu Jun 19 19:10:46 CEST 2008 | ||
BaseStep.TypeLongDesc.CreditCardValidator=Credit card validator | ||
BaseStep.TypeTooltipDesc.CreditCardValidator=The Credit card validator step will help you tell\:\n(1) if a credit card number is valid (uses LUHN10 (MOD-10) algorithm)\n(2) which credit card vendor handles that number\n(VISA, MasterCard, Diners Club, EnRoute, American Express (AMEX),...) | ||
CreditCardValidator.Error.ResultFieldMissing=Result fieldname is missing\! | ||
CreditCardValidatorMeta.CheckResult.ResultFieldOK=Result fieldname is provided | ||
CreditCardValidatorDialog.ResultField.Tooltip=Specify here the name of the result fieldname (Boolean)\nadded in the input stream | ||
CreditCardValidatorDialog.Shell.Title=Credit card validator | ||
CreditCardValidatorDialog.FailedToGetFields.DialogMessage=Unable to get fields from previous steps because of an error | ||
CreditCardValidatorMeta.Exception.UnexpectedErrorReadingStepInfo=Unexpected error reading step information from the repository | ||
CreditCardValidatorDialog.Stepname.Label=Step name | ||
CreditCardValidator.Log.UnexpectedError=Unexpected error in '' | ||
CreditCardValidatorDialog.CardType.Label=Credit card type field | ||
CreditCardValidatorDialog.FieldName.Label=Credit Card field | ||
CreditCardValidatorDialog.FailedToGetFields.DialogTitle=Get fields failed | ||
CreditCardValidator.LineNumber=linenr {0} | ||
CreditCardValidator.Log.StartingToRun=Starting to run... | ||
CreditCardValidator.ErrorInStepRunning=Because of an error, this step can''t continue\: | ||
CreditCardValidator.Log.ErrorFindingField=Error finding field\: | ||
CreditCardValidatorMeta.Exception.UnableToSaveStepInfo=Unable to save step information to the repository for id_step\= | ||
CreditCardValidatorMeta.CheckResult.CouldNotReadFields=Couldn''t read fields from the previous step. | ||
CreditCardValidatorMeta.CheckResult.NoInpuReceived=No input received from other steps\! | ||
CreditCardValidator.Exception.CouldnotFindField=Couldn''t find field ''{0}'' in row\! | ||
CreditCardValidatorMeta.CheckResult.ReceivingInfoFromOtherSteps=Step is receiving info from other steps. | ||
CreditCardValidatorDialog.ResultField.Label=Result fieldname | ||
CreditCardValidator.Error.CardFieldMissing=Card number fieldname is missing\! | ||
CreditCardValidatorMeta.CheckResult.ResultFieldMissing=Result fieldname is missing\! | ||
CreditCardValidatorDialog.CardType.Tooltip=Specify the name of the field that contains Credit Card type.\r\nThis field will be added to the input stream. | ||
CreditCardValidatorDialog.OutputFields.Label=Output fields | ||
CreditCardValidatorMeta.CheckResult.ErrorOccurred=An error occurred\: | ||
CreditCardValidatorMeta.Exception.UnableToReadStepInfo=Unable to read step information from XML | ||
CreditCardValidatorMeta.CheckResult.CardFieldMissing=Credit Card number field name is missing\! | ||
CreditCardValidatorMeta.CheckResult.CardFieldOK=Credit Card number field name was specified | ||
CreditCardValidatorDialog.NotValidMsg.Label=Not valid Message | ||
CreditCardValidatorDialog.NotValidMsg.Tooltip=Not valid Message | ||
CreditCardValidator.Exception.ResultFieldMissing=Result fieldname is missing! | ||
CreditCardValidator.getOnlyDigits.Label=Get only digits? | ||
CreditCardValidator.getOnlyDigits.Tooltip=Extract only digits from credit card before checking. | ||
|
||
CreditCardValidator.Log.NotValidVisa=Not a valid number for Visa. | ||
CreditCardValidator.Log.NotValidMastercard=Not a valid number for Mastercard. | ||
CreditCardValidator.Log.NotValidAmericanExpress=Not a valid number for American Express. | ||
CreditCardValidator.Log.NotValidEnRoute=Not a valid number for En Route. | ||
CreditCardValidator.Log.NotValidDiners=Not a valid number for Diner's CLub/Carte Blanche. | ||
CreditCardValidator.Log.EmptyNumber=Card number cannot be blank! | ||
CreditCardValidator.Log.CardNotValid=This card is not valid! | ||
CreditCardValidator.Log.NotValidDiscover=Not a valid number for Discover | ||
CreditCardValidator.Log.NotValidJcb1=Not a valid number for JCB1 | ||
CreditCardValidator.Log.NotValidJcb2=Not a valid number for JCB2 | ||
CreditCardValidator.Log.NotValidMaestro=Not a valid number for BankCard | ||
CreditCardValidator.Log.NotValidMaestro=Not a valid number for MAESTRO | ||
CreditCardValidator.Log.NotValidSolo=Not a valid number for SOLO | ||
CreditCardValidator.Log.NotValidSwitch=Not a valid number for SWITCH | ||
CreditCardValidator.OnlyNumbers=Credit card number can only contain numbers | ||
CreditCardValidator.Log.NotValidAirplus=Not a valid AIRPLUS | ||
CreditCardValidator.Log.NotValidLaser=Not a valid LASER | ||
CreditCardValidator.Log.NotValidVoyager=Not a valid VOYAGER |
Oops, something went wrong.