diff --git a/src/main/kotlin/Charge.kt b/src/main/kotlin/Charge.kt index 21001f8..a9ffea3 100644 --- a/src/main/kotlin/Charge.kt +++ b/src/main/kotlin/Charge.kt @@ -161,6 +161,7 @@ public data class ChargeRequestBody @JvmOverloads public constructor( public val customer: CustomerRequest? = null, public val expiresIn: Int? = null, public val daysForOverdue: Int? = null, + public val daysForDueDate: Int? = null, public val daysAfterDueDate: Int? = null, public val interests: Interests? = null, public val fines: Fines? = null, @@ -189,6 +190,7 @@ public class ChargeBuilder internal constructor() { public var customer: CustomerRequest? by Properties.nullable() public var expiresIn: Int? by Properties.nullable() public var daysForOverdue: Int? by Properties.nullable() + public var daysForDueDate: Int? by Properties.nullable() public var daysAfterDueDate: Int? by Properties.nullable() public var interests: Interests? by Properties.nullable() public var fines: Fines? by Properties.nullable() @@ -260,6 +262,15 @@ public class ChargeBuilder internal constructor() { this.daysForOverdue = daysForOverdue } + /** + * The days for due date. + * + * @param daysForDueDate The days for due date + */ + public fun daysForDueDate(daysForDueDate: Int): ChargeBuilder = apply { + this.daysForDueDate = daysForDueDate + } + /** * The days after due date. * @@ -333,6 +344,7 @@ public class ChargeBuilder internal constructor() { customer, expiresIn, daysForOverdue, + daysForDueDate, daysAfterDueDate, interests, fines,