-
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.
Merge pull request #54 from digipost/inkasso
add new datatype inkasso for norwegian debt collection
- Loading branch information
Showing
7 changed files
with
112 additions
and
1 deletion.
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
44 changes: 44 additions & 0 deletions
44
src/main/java/no/digipost/api/datatypes/types/Inkasso.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,44 @@ | ||
package no.digipost.api.datatypes.types; | ||
|
||
import lombok.AccessLevel; | ||
import lombok.AllArgsConstructor; | ||
import lombok.NoArgsConstructor; | ||
import lombok.Value; | ||
import lombok.experimental.Wither; | ||
import no.digipost.api.datatypes.DataType; | ||
import no.digipost.api.datatypes.documentation.Description; | ||
|
||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlRootElement; | ||
import java.math.BigDecimal; | ||
import java.time.ZoneId; | ||
import java.time.ZonedDateTime; | ||
|
||
@XmlRootElement | ||
@Value | ||
@AllArgsConstructor | ||
@NoArgsConstructor(force = true, access = AccessLevel.PRIVATE) | ||
@Wither | ||
@Description("A debt collection payment") | ||
public class Inkasso implements DataType { | ||
@XmlElement | ||
@Description("A link to more information, or further actions that can be taken") | ||
ExternalLink link; | ||
@XmlElement(required = true, name = "due-date") | ||
@Description("When the payment falls due") | ||
ZonedDateTime dueDate; | ||
@XmlElement | ||
@Description("The sum to be payed") | ||
BigDecimal sum; | ||
@XmlElement | ||
@Description("The creditor account for the payment") | ||
String account; | ||
@XmlElement | ||
@Description("The customer identification number") | ||
String kid; | ||
|
||
public static Inkasso EXAMPLE = new Inkasso(ExternalLink.EXAMPLE_NO_DEADLINE, | ||
ZonedDateTime.of(2019, 12, 10, 0, 0, 0, 0, ZoneId.systemDefault()), | ||
BigDecimal.valueOf(42), "012354243209523583", "1435025439583420243982723"); | ||
|
||
} |
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ Payslip | |
SignedDocument | ||
pickup.PickupNotice | ||
pickup.PickupNoticeStatus | ||
Inkasso |