-
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.
* Mensageria SDWO * Pom e Readme * Purchase e Cash-in
- Loading branch information
1 parent
e3db26d
commit a4e9c7a
Showing
9 changed files
with
199 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package com.maxipago; | ||
|
||
import javax.xml.bind.annotation.XmlElement; | ||
|
||
import com.maxipago.enums.BusinessApplicationIdentifier; | ||
import com.maxipago.enums.SDWOProcessingType; | ||
|
||
public class SDWO { | ||
@XmlElement | ||
public int id; | ||
@XmlElement | ||
public String processingType; | ||
@XmlElement | ||
public String senderTaxIdentification; | ||
@XmlElement | ||
public String businessApplicationIdentifier; | ||
|
||
public SDWO setId(int id) { | ||
this.id = id; | ||
return this; | ||
} | ||
|
||
public SDWO setProcessingType(SDWOProcessingType processingType) { | ||
this.processingType = processingType.toString(); | ||
return this; | ||
} | ||
|
||
public SDWO setSenderTaxIdentification(String senderTaxIdentification) { | ||
this.senderTaxIdentification = senderTaxIdentification; | ||
return this; | ||
} | ||
|
||
public SDWO setBusinessApplicationIdentifier(BusinessApplicationIdentifier businessApplicationIdentifier) { | ||
this.businessApplicationIdentifier = businessApplicationIdentifier.toString(); | ||
return this; | ||
} | ||
} |
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,20 @@ | ||
package com.maxipago; | ||
|
||
import javax.xml.bind.annotation.XmlElement; | ||
|
||
public class Wallet { | ||
@XmlElement | ||
public String name; | ||
@XmlElement | ||
public SDWO sdwo; | ||
|
||
public Wallet setName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
public Wallet setSDWO(SDWO sdwo) { | ||
this.sdwo = sdwo; | ||
return this; | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
src/main/java/com/maxipago/enums/BusinessApplicationIdentifier.java
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,16 @@ | ||
package com.maxipago.enums; | ||
|
||
public enum BusinessApplicationIdentifier { | ||
CBPS("01"); | ||
|
||
private String identifier; | ||
|
||
BusinessApplicationIdentifier(String identifier){ | ||
this.identifier = identifier; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.identifier; | ||
} | ||
} |
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,16 @@ | ||
package com.maxipago.enums; | ||
|
||
public enum SDWOProcessingType { | ||
PURCHASE("Purchase"), CASH_IN("Cash-in"); | ||
|
||
private String processingType; | ||
|
||
SDWOProcessingType(String processingType){ | ||
this.processingType = processingType; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return this.processingType; | ||
} | ||
} |
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