-
-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented method "getSellerTradePartyAddress" to ZUGFeRDImporter.ja…
…va which gets an instance of PostalTradeAddress. Removed method "getISODate" from last Commit due lack of implementation - will be implemented at a later time. Also Added Tests for "getSellerTradePartyAddress" to match ZF1 and ZF2
- Loading branch information
1 parent
3a01efb
commit 5d72156
Showing
5 changed files
with
387 additions
and
229 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
...yBasic/src/main/java/org/mustangproject/ZUGFeRD/IZUGFeRDExportablePostalTradeAddress.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,11 @@ | ||
package org.mustangproject.ZUGFeRD; | ||
|
||
public interface IZUGFeRDExportablePostalTradeAddress { | ||
default String getPostcodeCode(){return null;} | ||
default String getLineOne() {return null;} | ||
default String getLineTwo() {return null;} | ||
default String getLineThree() {return null;} | ||
default String getCityName() {return null;} | ||
default String getCountryID() {return null;} | ||
default String getCountrySubDivisionName() {return null;} | ||
} |
75 changes: 75 additions & 0 deletions
75
libraryBasic/src/main/java/org/mustangproject/ZUGFeRD/PostalTradeAddress.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,75 @@ | ||
package org.mustangproject.ZUGFeRD; | ||
|
||
public class PostalTradeAddress implements IZUGFeRDExportablePostalTradeAddress { | ||
|
||
private String postCodeCode; | ||
private String lineOne; | ||
private String lineTwo; | ||
private String lineThree; | ||
private String cityName; | ||
private String countryID; | ||
private String CountrySubDivisionName; | ||
|
||
public void setPostCodeCode(String postCodeCode) { | ||
this.postCodeCode = postCodeCode; | ||
} | ||
|
||
public void setLineOne(String lineOne) { | ||
this.lineOne = lineOne; | ||
} | ||
|
||
public void setLineTwo(String lineTwo) { | ||
this.lineTwo = lineTwo; | ||
} | ||
|
||
public void setLineThree(String lineThree) { | ||
this.lineThree = lineThree; | ||
} | ||
|
||
public void setCityName(String cityName) { | ||
this.cityName = cityName; | ||
} | ||
|
||
public void setCountryID(String countryID) { | ||
this.countryID = countryID; | ||
} | ||
|
||
public void setCountrySubDivisionName(String countrySubDivisionName) { | ||
CountrySubDivisionName = countrySubDivisionName; | ||
} | ||
|
||
@Override | ||
public String getPostcodeCode() { | ||
return this.postCodeCode; | ||
} | ||
|
||
@Override | ||
public String getLineOne() { | ||
return this.lineOne; | ||
} | ||
|
||
@Override | ||
public String getLineTwo() { | ||
return this.lineTwo; | ||
} | ||
|
||
@Override | ||
public String getLineThree() { | ||
return this.lineThree; | ||
} | ||
|
||
@Override | ||
public String getCityName() { | ||
return this.cityName; | ||
} | ||
|
||
@Override | ||
public String getCountryID() { | ||
return this.countryID; | ||
} | ||
|
||
@Override | ||
public String getCountrySubDivisionName() { | ||
return this.CountrySubDivisionName; | ||
} | ||
} |
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
Oops, something went wrong.