diff --git a/src/main/java/com/gocardless/resources/BillingRequest.java b/src/main/java/com/gocardless/resources/BillingRequest.java index 36d0ee74..a2e5a22b 100644 --- a/src/main/java/com/gocardless/resources/BillingRequest.java +++ b/src/main/java/com/gocardless/resources/BillingRequest.java @@ -1894,7 +1894,9 @@ public String getCurrency() { *
28 or -1 to indicate the last day of the month.
+ * 31 or -1 to indicate the last day of the month. If the chosen
+ * day does not exist in a given month (e.g. 31 in April), the charge is made
+ * on the last day of that month.
*/
public Integer getDayOfMonth() {
return dayOfMonth;
diff --git a/src/main/java/com/gocardless/resources/BillingRequestWithAction.java b/src/main/java/com/gocardless/resources/BillingRequestWithAction.java
index 8cb501cc..8bda3919 100644
--- a/src/main/java/com/gocardless/resources/BillingRequestWithAction.java
+++ b/src/main/java/com/gocardless/resources/BillingRequestWithAction.java
@@ -2111,7 +2111,9 @@ public String getCurrency() {
* 28 or -1 to indicate the last day of the month.
+ * 31 or -1 to indicate the last day of the month. If the
+ * chosen day does not exist in a given month (e.g. 31 in April), the
+ * charge is made on the last day of that month.
*/
public Integer getDayOfMonth() {
return dayOfMonth;
diff --git a/src/main/java/com/gocardless/resources/Subscription.java b/src/main/java/com/gocardless/resources/Subscription.java
index 026ef6bf..7055b32b 100644
--- a/src/main/java/com/gocardless/resources/Subscription.java
+++ b/src/main/java/com/gocardless/resources/Subscription.java
@@ -122,7 +122,9 @@ public String getCurrency() {
* 28 or -1 to indicate the last day of the month.
+ * 31 or -1 to indicate the last day of the month. If the chosen day
+ * does not exist in a given month (e.g. 31 in April), the charge is made on the
+ * last day of that month.
*/
public Integer getDayOfMonth() {
return dayOfMonth;
diff --git a/src/main/java/com/gocardless/services/BillingRequestService.java b/src/main/java/com/gocardless/services/BillingRequestService.java
index b6da54d6..31232427 100644
--- a/src/main/java/com/gocardless/services/BillingRequestService.java
+++ b/src/main/java/com/gocardless/services/BillingRequestService.java
@@ -810,7 +810,9 @@ public BillingRequestCreateRequest withSubscriptionRequestCurrency(String curren
* 28 or -1 to indicate the last day of the month.
+ * 31 or -1 to indicate the last day of the month. If the chosen
+ * day does not exist in a given month (e.g. 31 in April), the charge is made
+ * on the last day of that month.
*/
public BillingRequestCreateRequest withSubscriptionRequestDayOfMonth(Integer dayOfMonth) {
if (subscriptionRequest == null) {
@@ -1919,7 +1921,9 @@ public SubscriptionRequest withCurrency(String currency) {
* 28 or -1 to indicate the last day of the month.
+ * 31 or -1 to indicate the last day of the month. If the
+ * chosen day does not exist in a given month (e.g. 31 in April), the
+ * charge is made on the last day of that month.
*/
public SubscriptionRequest withDayOfMonth(Integer dayOfMonth) {
this.dayOfMonth = dayOfMonth;
diff --git a/src/main/java/com/gocardless/services/PaymentService.java b/src/main/java/com/gocardless/services/PaymentService.java
index bbcfd309..4f98b9ae 100644
--- a/src/main/java/com/gocardless/services/PaymentService.java
+++ b/src/main/java/com/gocardless/services/PaymentService.java
@@ -2,9 +2,11 @@
import com.gocardless.http.*;
import com.gocardless.resources.Payment;
+import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableMap;
import com.google.gson.annotations.SerializedName;
import com.google.gson.reflect.TypeToken;
+import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@@ -443,6 +445,7 @@ public static final class PaymentListRequestcustomer to embed customer
+ * details, or mandate to embed mandate details.
+ */
+ public PaymentListRequestcustomer to embed customer
+ * details, or mandate to embed mandate details.
+ */
+ public PaymentListRequest28 or -1 to indicate the last day of the month.
+ * 31 or -1 to indicate the last day of the month. If the chosen
+ * day does not exist in a given month (e.g. 31 in April), the charge is made
+ * on the last day of that month.
*/
public SubscriptionCreateRequest withDayOfMonth(Integer dayOfMonth) {
this.dayOfMonth = dayOfMonth;