diff --git a/openapi/api.yaml b/openapi/api.yaml
index f779cbf..f99bdfe 100644
--- a/openapi/api.yaml
+++ b/openapi/api.yaml
@@ -1301,6 +1301,15 @@ paths:
and cancels any active subscriptions (canceled subscriptions will remain active
until the end of the current billing cycle before expiring). We recommend
closing accounts only when all business is concluded with a customer.
+ parameters:
+ - in: query
+ name: redact
+ schema:
+ type: boolean
+ description: Permanently removes all personally identifiable information (PII)
+ from this account after it has been deactivated, to fulfill a data subject's
+ right to erasure under GDPR and similar privacy regulations (e.g. CCPA).
+ Cannot be undone.
responses:
'200':
description: An account.
@@ -16931,7 +16940,7 @@ paths:
content:
application/json:
schema:
- "$ref": "#/components/schemas/Entitlements"
+ "$ref": "#/components/schemas/EntitlementList"
'404':
description: Incorrect site or account ID.
content:
@@ -25990,7 +25999,7 @@ components:
maxItems: 200
items:
"$ref": "#/components/schemas/Plan"
- Entitlements:
+ EntitlementList:
type: object
description: A list of privileges granted to a customer through the purchase
of a plan or item.
diff --git a/src/main/java/com/recurly/v3/Client.java b/src/main/java/com/recurly/v3/Client.java
index 507591c..79c79e3 100644
--- a/src/main/java/com/recurly/v3/Client.java
+++ b/src/main/java/com/recurly/v3/Client.java
@@ -11,7 +11,7 @@
import com.recurly.v3.resources.*;
import com.recurly.v3.queryparams.*;
import okhttp3.OkHttpClient;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
import java.lang.reflect.Type;
import java.util.HashMap;
@@ -154,12 +154,26 @@ public Account updateAccount(String accountId, AccountUpdate body) {
* @return An account.
*/
public Account deactivateAccount(String accountId) {
+ return deactivateAccount(accountId, new DeactivateAccountParams());
+ }
+
+ /**
+ * Deactivate an account
+ *
+ * @see deactivate_account api documentation
+ * @param accountId Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
+ * @param queryParams The {@link DeactivateAccountParams} for this endpoint.
+ * @return An account.
+ */
+ public Account deactivateAccount(String accountId, DeactivateAccountParams queryParams) {
final String url = "/accounts/{account_id}";
final HashMap urlParams = new HashMap();
urlParams.put("account_id", accountId);
+ if (queryParams == null) queryParams = new DeactivateAccountParams();
+ final HashMap paramsMap = queryParams.getParams();
final String path = this.interpolatePath(url, urlParams);
Type returnType = Account.class;
- return this.makeRequest("DELETE", path, returnType);
+ return this.makeRequest("DELETE", path, paramsMap, returnType);
}
/**
@@ -3750,7 +3764,7 @@ public ExternalPaymentPhase getExternalSubscriptionExternalPaymentPhase(String e
* @param accountId Account ID or code. For ID no prefix is used e.g. `e28zov4fw0v2`. For code use prefix `code-`, e.g. `code-bob`.
* @return A list of the entitlements granted to an account.
*/
- public Pager listEntitlements(String accountId) {
+ public Pager listEntitlements(String accountId) {
return listEntitlements(accountId, new ListEntitlementsParams());
}
@@ -3762,14 +3776,14 @@ public Pager listEntitlements(String accountId) {
* @param queryParams The {@link ListEntitlementsParams} for this endpoint.
* @return A list of the entitlements granted to an account.
*/
- public Pager listEntitlements(String accountId, ListEntitlementsParams queryParams) {
+ public Pager listEntitlements(String accountId, ListEntitlementsParams queryParams) {
final String url = "/accounts/{account_id}/entitlements";
final HashMap urlParams = new HashMap();
urlParams.put("account_id", accountId);
if (queryParams == null) queryParams = new ListEntitlementsParams();
final HashMap paramsMap = queryParams.getParams();
final String path = this.interpolatePath(url, urlParams);
- Type parameterizedType = TypeToken.getParameterized(Pager.class, Entitlements.class).getType();
+ Type parameterizedType = TypeToken.getParameterized(Pager.class, Entitlement.class).getType();
return new Pager<>(path, paramsMap, this, parameterizedType);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/DeactivateAccountParams.java b/src/main/java/com/recurly/v3/queryparams/DeactivateAccountParams.java
new file mode 100644
index 0000000..6093d18
--- /dev/null
+++ b/src/main/java/com/recurly/v3/queryparams/DeactivateAccountParams.java
@@ -0,0 +1,15 @@
+/**
+ * This file is automatically created by Recurly's OpenAPI generation process and thus any edits you
+ * make by hand will be lost. If you wish to make a change to this file, please create a Github
+ * issue explaining the changes you need and we will usher them to the appropriate places.
+ */
+package com.recurly.v3.queryparams;
+
+import com.recurly.v3.AbstractQueryParams;
+
+public class DeactivateAccountParams extends AbstractQueryParams {
+
+ public void setRedact(final Boolean redact) {
+ this.add("redact", redact);
+ }
+}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAccountAcquisitionParams.java b/src/main/java/com/recurly/v3/queryparams/ListAccountAcquisitionParams.java
index 657a034..572cf75 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAccountAcquisitionParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAccountAcquisitionParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListAccountAcquisitionParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAccountCouponRedemptionsParams.java b/src/main/java/com/recurly/v3/queryparams/ListAccountCouponRedemptionsParams.java
index fd235f6..1af6e5d 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAccountCouponRedemptionsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAccountCouponRedemptionsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListAccountCouponRedemptionsParams extends AbstractQueryParams {
@@ -20,11 +20,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAccountCreditPaymentsParams.java b/src/main/java/com/recurly/v3/queryparams/ListAccountCreditPaymentsParams.java
index 362d8d4..4a1895f 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAccountCreditPaymentsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAccountCreditPaymentsParams.java
@@ -7,7 +7,7 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ListAccountCreditPaymentsParams extends AbstractQueryParams {
@@ -23,11 +23,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAccountInvoicesParams.java b/src/main/java/com/recurly/v3/queryparams/ListAccountInvoicesParams.java
index e83c048..fc81518 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAccountInvoicesParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAccountInvoicesParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListAccountInvoicesParams extends AbstractQueryParams {
@@ -32,11 +32,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAccountLineItemsParams.java b/src/main/java/com/recurly/v3/queryparams/ListAccountLineItemsParams.java
index 1813680..25c9ca6 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAccountLineItemsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAccountLineItemsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListAccountLineItemsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAccountSubscriptionsParams.java b/src/main/java/com/recurly/v3/queryparams/ListAccountSubscriptionsParams.java
index bcbed4d..9bcee60 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAccountSubscriptionsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAccountSubscriptionsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListAccountSubscriptionsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAccountTransactionsParams.java b/src/main/java/com/recurly/v3/queryparams/ListAccountTransactionsParams.java
index 78815cd..8e52403 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAccountTransactionsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAccountTransactionsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListAccountTransactionsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAccountsParams.java b/src/main/java/com/recurly/v3/queryparams/ListAccountsParams.java
index c3ced48..9f47223 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAccountsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAccountsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListAccountsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListAddOnsParams.java b/src/main/java/com/recurly/v3/queryparams/ListAddOnsParams.java
index b4f5462..a693909 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListAddOnsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListAddOnsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListAddOnsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListBillingInfosParams.java b/src/main/java/com/recurly/v3/queryparams/ListBillingInfosParams.java
index fa479ff..b5a6308 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListBillingInfosParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListBillingInfosParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListBillingInfosParams extends AbstractQueryParams {
@@ -20,11 +20,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListBusinessEntityInvoicesParams.java b/src/main/java/com/recurly/v3/queryparams/ListBusinessEntityInvoicesParams.java
index 49bbba2..c3ecca5 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListBusinessEntityInvoicesParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListBusinessEntityInvoicesParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListBusinessEntityInvoicesParams extends AbstractQueryParams {
@@ -32,11 +32,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListChildAccountsParams.java b/src/main/java/com/recurly/v3/queryparams/ListChildAccountsParams.java
index 5f10092..dea331c 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListChildAccountsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListChildAccountsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListChildAccountsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListCouponsParams.java b/src/main/java/com/recurly/v3/queryparams/ListCouponsParams.java
index 2c270b5..22856db 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListCouponsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListCouponsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListCouponsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListCreditPaymentsParams.java b/src/main/java/com/recurly/v3/queryparams/ListCreditPaymentsParams.java
index 26e9265..a92e545 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListCreditPaymentsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListCreditPaymentsParams.java
@@ -7,7 +7,7 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ListCreditPaymentsParams extends AbstractQueryParams {
@@ -23,11 +23,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListCustomFieldDefinitionsParams.java b/src/main/java/com/recurly/v3/queryparams/ListCustomFieldDefinitionsParams.java
index ea1b3e6..ceb632a 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListCustomFieldDefinitionsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListCustomFieldDefinitionsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListCustomFieldDefinitionsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListInvoiceCouponRedemptionsParams.java b/src/main/java/com/recurly/v3/queryparams/ListInvoiceCouponRedemptionsParams.java
index a3543a1..d93dec5 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListInvoiceCouponRedemptionsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListInvoiceCouponRedemptionsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListInvoiceCouponRedemptionsParams extends AbstractQueryParams {
@@ -20,11 +20,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListInvoiceLineItemsParams.java b/src/main/java/com/recurly/v3/queryparams/ListInvoiceLineItemsParams.java
index 74e4a53..200bb7b 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListInvoiceLineItemsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListInvoiceLineItemsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListInvoiceLineItemsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListInvoiceTemplateAccountsParams.java b/src/main/java/com/recurly/v3/queryparams/ListInvoiceTemplateAccountsParams.java
index 3c2cd49..e652125 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListInvoiceTemplateAccountsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListInvoiceTemplateAccountsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListInvoiceTemplateAccountsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListInvoicesParams.java b/src/main/java/com/recurly/v3/queryparams/ListInvoicesParams.java
index fb0270a..21c64d9 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListInvoicesParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListInvoicesParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListInvoicesParams extends AbstractQueryParams {
@@ -32,11 +32,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListItemsParams.java b/src/main/java/com/recurly/v3/queryparams/ListItemsParams.java
index 6a2b95c..5cffdb7 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListItemsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListItemsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListItemsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListLineItemsParams.java b/src/main/java/com/recurly/v3/queryparams/ListLineItemsParams.java
index 65129c4..d5c4d5f 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListLineItemsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListLineItemsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListLineItemsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListMeasuredUnitParams.java b/src/main/java/com/recurly/v3/queryparams/ListMeasuredUnitParams.java
index 078a172..043639b 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListMeasuredUnitParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListMeasuredUnitParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListMeasuredUnitParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListPlanAddOnsParams.java b/src/main/java/com/recurly/v3/queryparams/ListPlanAddOnsParams.java
index 6c49768..12e95ac 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListPlanAddOnsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListPlanAddOnsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListPlanAddOnsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListPlansParams.java b/src/main/java/com/recurly/v3/queryparams/ListPlansParams.java
index 2126ab6..59c28e5 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListPlansParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListPlansParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListPlansParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListShippingAddressesParams.java b/src/main/java/com/recurly/v3/queryparams/ListShippingAddressesParams.java
index c7ad592..5f54756 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListShippingAddressesParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListShippingAddressesParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListShippingAddressesParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListShippingMethodsParams.java b/src/main/java/com/recurly/v3/queryparams/ListShippingMethodsParams.java
index ff555f4..af08399 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListShippingMethodsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListShippingMethodsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListShippingMethodsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListSubscriptionCouponRedemptionsParams.java b/src/main/java/com/recurly/v3/queryparams/ListSubscriptionCouponRedemptionsParams.java
index 50b0b88..af0355c 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListSubscriptionCouponRedemptionsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListSubscriptionCouponRedemptionsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListSubscriptionCouponRedemptionsParams extends AbstractQueryParams {
@@ -20,11 +20,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListSubscriptionInvoicesParams.java b/src/main/java/com/recurly/v3/queryparams/ListSubscriptionInvoicesParams.java
index 10a0b61..8914060 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListSubscriptionInvoicesParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListSubscriptionInvoicesParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListSubscriptionInvoicesParams extends AbstractQueryParams {
@@ -32,11 +32,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListSubscriptionLineItemsParams.java b/src/main/java/com/recurly/v3/queryparams/ListSubscriptionLineItemsParams.java
index 28eb892..11809e4 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListSubscriptionLineItemsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListSubscriptionLineItemsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListSubscriptionLineItemsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListSubscriptionsParams.java b/src/main/java/com/recurly/v3/queryparams/ListSubscriptionsParams.java
index 5d37ef3..934e47e 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListSubscriptionsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListSubscriptionsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListSubscriptionsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListTransactionsParams.java b/src/main/java/com/recurly/v3/queryparams/ListTransactionsParams.java
index 83675c3..266c796 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListTransactionsParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListTransactionsParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListTransactionsParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListUniqueCouponCodesParams.java b/src/main/java/com/recurly/v3/queryparams/ListUniqueCouponCodesParams.java
index 4030725..0dbcc8d 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListUniqueCouponCodesParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListUniqueCouponCodesParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListUniqueCouponCodesParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.TimestampSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/queryparams/ListUsageParams.java b/src/main/java/com/recurly/v3/queryparams/ListUsageParams.java
index 7e213f8..138a089 100644
--- a/src/main/java/com/recurly/v3/queryparams/ListUsageParams.java
+++ b/src/main/java/com/recurly/v3/queryparams/ListUsageParams.java
@@ -7,8 +7,8 @@
import com.recurly.v3.AbstractQueryParams;
import com.recurly.v3.Constants;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ListUsageParams extends AbstractQueryParams {
@@ -28,11 +28,11 @@ public void setSort(final Constants.UsageSort sort) {
this.add("sort", sort);
}
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.add("begin_time", beginTime);
}
- public void setEndTime(final DateTime endTime) {
+ public void setEndTime(final ZonedDateTime endTime) {
this.add("end_time", endTime);
}
diff --git a/src/main/java/com/recurly/v3/requests/AccountAcquisitionUpdate.java b/src/main/java/com/recurly/v3/requests/AccountAcquisitionUpdate.java
index 7ad8f49..8b8a5e4 100644
--- a/src/main/java/com/recurly/v3/requests/AccountAcquisitionUpdate.java
+++ b/src/main/java/com/recurly/v3/requests/AccountAcquisitionUpdate.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class AccountAcquisitionUpdate extends Request {
@@ -20,7 +20,7 @@ public class AccountAcquisitionUpdate extends Request {
*/
@SerializedName("acquired_at")
@Expose
- private DateTime acquiredAt;
+ private ZonedDateTime acquiredAt;
/**
* An arbitrary identifier for the marketing campaign that led to the acquisition of this account.
@@ -50,7 +50,7 @@ public class AccountAcquisitionUpdate extends Request {
* Date the account was first created if different than the account.created_at. ie Importing
* accounts.
*/
- public DateTime getAcquiredAt() {
+ public ZonedDateTime getAcquiredAt() {
return this.acquiredAt;
}
@@ -58,7 +58,7 @@ public DateTime getAcquiredAt() {
* @param acquiredAt Date the account was first created if different than the account.created_at.
* ie Importing accounts.
*/
- public void setAcquiredAt(final DateTime acquiredAt) {
+ public void setAcquiredAt(final ZonedDateTime acquiredAt) {
this.acquiredAt = acquiredAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/AccountCreate.java b/src/main/java/com/recurly/v3/requests/AccountCreate.java
index 032c281..cc953d0 100644
--- a/src/main/java/com/recurly/v3/requests/AccountCreate.java
+++ b/src/main/java/com/recurly/v3/requests/AccountCreate.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class AccountCreate extends Request {
@@ -29,7 +29,7 @@ public class AccountCreate extends Request {
*/
@SerializedName("bill_date")
@Expose
- private DateTime billDate;
+ private ZonedDateTime billDate;
/**
* An enumerable describing the billing behavior of the account, specifically whether the account
@@ -228,7 +228,7 @@ public void setAddress(final Address address) {
* The preferred billing date for the account. This date will be used as the billing date for when
* activating new subscriptions on the account.
*/
- public DateTime getBillDate() {
+ public ZonedDateTime getBillDate() {
return this.billDate;
}
@@ -236,7 +236,7 @@ public DateTime getBillDate() {
* @param billDate The preferred billing date for the account. This date will be used as the
* billing date for when activating new subscriptions on the account.
*/
- public void setBillDate(final DateTime billDate) {
+ public void setBillDate(final ZonedDateTime billDate) {
this.billDate = billDate;
}
diff --git a/src/main/java/com/recurly/v3/requests/AccountPurchase.java b/src/main/java/com/recurly/v3/requests/AccountPurchase.java
index 680dcca..c0c6dfb 100644
--- a/src/main/java/com/recurly/v3/requests/AccountPurchase.java
+++ b/src/main/java/com/recurly/v3/requests/AccountPurchase.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class AccountPurchase extends Request {
@@ -29,7 +29,7 @@ public class AccountPurchase extends Request {
*/
@SerializedName("bill_date")
@Expose
- private DateTime billDate;
+ private ZonedDateTime billDate;
/**
* An enumerable describing the billing behavior of the account, specifically whether the account
@@ -227,7 +227,7 @@ public void setAddress(final Address address) {
* The preferred billing date for the account. This date will be used as the billing date for when
* activating new subscriptions on the account.
*/
- public DateTime getBillDate() {
+ public ZonedDateTime getBillDate() {
return this.billDate;
}
@@ -235,7 +235,7 @@ public DateTime getBillDate() {
* @param billDate The preferred billing date for the account. This date will be used as the
* billing date for when activating new subscriptions on the account.
*/
- public void setBillDate(final DateTime billDate) {
+ public void setBillDate(final ZonedDateTime billDate) {
this.billDate = billDate;
}
diff --git a/src/main/java/com/recurly/v3/requests/AccountUpdate.java b/src/main/java/com/recurly/v3/requests/AccountUpdate.java
index 3b6640d..d446b75 100644
--- a/src/main/java/com/recurly/v3/requests/AccountUpdate.java
+++ b/src/main/java/com/recurly/v3/requests/AccountUpdate.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class AccountUpdate extends Request {
@@ -25,7 +25,7 @@ public class AccountUpdate extends Request {
*/
@SerializedName("bill_date")
@Expose
- private DateTime billDate;
+ private ZonedDateTime billDate;
/**
* An enumerable describing the billing behavior of the account, specifically whether the account
@@ -201,7 +201,7 @@ public void setAddress(final Address address) {
* The preferred billing date for the account. This date will be used as the billing date for when
* activating new subscriptions on the account.
*/
- public DateTime getBillDate() {
+ public ZonedDateTime getBillDate() {
return this.billDate;
}
@@ -209,7 +209,7 @@ public DateTime getBillDate() {
* @param billDate The preferred billing date for the account. This date will be used as the
* billing date for when activating new subscriptions on the account.
*/
- public void setBillDate(final DateTime billDate) {
+ public void setBillDate(final ZonedDateTime billDate) {
this.billDate = billDate;
}
diff --git a/src/main/java/com/recurly/v3/requests/ExternalInvoiceCreate.java b/src/main/java/com/recurly/v3/requests/ExternalInvoiceCreate.java
index c8a7b09..db38cfb 100644
--- a/src/main/java/com/recurly/v3/requests/ExternalInvoiceCreate.java
+++ b/src/main/java/com/recurly/v3/requests/ExternalInvoiceCreate.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ExternalInvoiceCreate extends Request {
@@ -44,7 +44,7 @@ public class ExternalInvoiceCreate extends Request {
/** When the invoice was created in the external platform. */
@SerializedName("purchased_at")
@Expose
- private DateTime purchasedAt;
+ private ZonedDateTime purchasedAt;
@SerializedName("state")
@Expose
@@ -109,12 +109,12 @@ public void setLineItems(final List lineItems) {
}
/** When the invoice was created in the external platform. */
- public DateTime getPurchasedAt() {
+ public ZonedDateTime getPurchasedAt() {
return this.purchasedAt;
}
/** @param purchasedAt When the invoice was created in the external platform. */
- public void setPurchasedAt(final DateTime purchasedAt) {
+ public void setPurchasedAt(final ZonedDateTime purchasedAt) {
this.purchasedAt = purchasedAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/ExternalPaymentPhaseBase.java b/src/main/java/com/recurly/v3/requests/ExternalPaymentPhaseBase.java
index 0723aae..f36dd8f 100644
--- a/src/main/java/com/recurly/v3/requests/ExternalPaymentPhaseBase.java
+++ b/src/main/java/com/recurly/v3/requests/ExternalPaymentPhaseBase.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalPaymentPhaseBase extends Request {
@@ -31,7 +31,7 @@ public class ExternalPaymentPhaseBase extends Request {
/** Ends At */
@SerializedName("ends_at")
@Expose
- private DateTime endsAt;
+ private ZonedDateTime endsAt;
/** Name of the discount offer given, e.g. "introductory" */
@SerializedName("offer_name")
@@ -56,7 +56,7 @@ public class ExternalPaymentPhaseBase extends Request {
/** Started At */
@SerializedName("started_at")
@Expose
- private DateTime startedAt;
+ private ZonedDateTime startedAt;
/** Starting Billing Period Index */
@SerializedName("starting_billing_period_index")
@@ -94,12 +94,12 @@ public void setEndingBillingPeriodIndex(final Integer endingBillingPeriodIndex)
}
/** Ends At */
- public DateTime getEndsAt() {
+ public ZonedDateTime getEndsAt() {
return this.endsAt;
}
/** @param endsAt Ends At */
- public void setEndsAt(final DateTime endsAt) {
+ public void setEndsAt(final ZonedDateTime endsAt) {
this.endsAt = endsAt;
}
@@ -144,12 +144,12 @@ public void setPeriodLength(final String periodLength) {
}
/** Started At */
- public DateTime getStartedAt() {
+ public ZonedDateTime getStartedAt() {
return this.startedAt;
}
/** @param startedAt Started At */
- public void setStartedAt(final DateTime startedAt) {
+ public void setStartedAt(final ZonedDateTime startedAt) {
this.startedAt = startedAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/ExternalRefund.java b/src/main/java/com/recurly/v3/requests/ExternalRefund.java
index e3b8dd1..2c74ce5 100644
--- a/src/main/java/com/recurly/v3/requests/ExternalRefund.java
+++ b/src/main/java/com/recurly/v3/requests/ExternalRefund.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalRefund extends Request {
@@ -27,7 +27,7 @@ public class ExternalRefund extends Request {
/** Date the external refund payment was made. Defaults to the current date-time. */
@SerializedName("refunded_at")
@Expose
- private DateTime refundedAt;
+ private ZonedDateTime refundedAt;
/** Used as the refund transactions' description. */
public String getDescription() {
@@ -50,14 +50,14 @@ public void setPaymentMethod(final Constants.ExternalPaymentMethod paymentMethod
}
/** Date the external refund payment was made. Defaults to the current date-time. */
- public DateTime getRefundedAt() {
+ public ZonedDateTime getRefundedAt() {
return this.refundedAt;
}
/**
* @param refundedAt Date the external refund payment was made. Defaults to the current date-time.
*/
- public void setRefundedAt(final DateTime refundedAt) {
+ public void setRefundedAt(final ZonedDateTime refundedAt) {
this.refundedAt = refundedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/requests/ExternalSubscriptionCreate.java b/src/main/java/com/recurly/v3/requests/ExternalSubscriptionCreate.java
index 682c81b..573686e 100644
--- a/src/main/java/com/recurly/v3/requests/ExternalSubscriptionCreate.java
+++ b/src/main/java/com/recurly/v3/requests/ExternalSubscriptionCreate.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalSubscriptionCreate extends Request {
@@ -20,7 +20,7 @@ public class ExternalSubscriptionCreate extends Request {
/** When the external subscription was activated in the external platform. */
@SerializedName("activated_at")
@Expose
- private DateTime activatedAt;
+ private ZonedDateTime activatedAt;
/** Identifier of the app that generated the external subscription. */
@SerializedName("app_identifier")
@@ -38,7 +38,7 @@ public class ExternalSubscriptionCreate extends Request {
/** When the external subscription expires in the external platform. */
@SerializedName("expires_at")
@Expose
- private DateTime expiresAt;
+ private ZonedDateTime expiresAt;
/** Id of the subscription in the external system, i.e. Apple App Store or Google Play Store. */
@SerializedName("external_id")
@@ -63,7 +63,7 @@ public class ExternalSubscriptionCreate extends Request {
*/
@SerializedName("last_purchased")
@Expose
- private DateTime lastPurchased;
+ private ZonedDateTime lastPurchased;
/** An indication of the quantity of a subscribed item's quantity. */
@SerializedName("quantity")
@@ -80,12 +80,12 @@ public class ExternalSubscriptionCreate extends Request {
/** When the external subscription trial period ends in the external platform. */
@SerializedName("trial_ends_at")
@Expose
- private DateTime trialEndsAt;
+ private ZonedDateTime trialEndsAt;
/** When the external subscription trial period started in the external platform. */
@SerializedName("trial_started_at")
@Expose
- private DateTime trialStartedAt;
+ private ZonedDateTime trialStartedAt;
public AccountExternalSubscription getAccount() {
return this.account;
@@ -97,12 +97,12 @@ public void setAccount(final AccountExternalSubscription account) {
}
/** When the external subscription was activated in the external platform. */
- public DateTime getActivatedAt() {
+ public ZonedDateTime getActivatedAt() {
return this.activatedAt;
}
/** @param activatedAt When the external subscription was activated in the external platform. */
- public void setActivatedAt(final DateTime activatedAt) {
+ public void setActivatedAt(final ZonedDateTime activatedAt) {
this.activatedAt = activatedAt;
}
@@ -133,12 +133,12 @@ public void setAutoRenew(final Boolean autoRenew) {
}
/** When the external subscription expires in the external platform. */
- public DateTime getExpiresAt() {
+ public ZonedDateTime getExpiresAt() {
return this.expiresAt;
}
/** @param expiresAt When the external subscription expires in the external platform. */
- public void setExpiresAt(final DateTime expiresAt) {
+ public void setExpiresAt(final ZonedDateTime expiresAt) {
this.expiresAt = expiresAt;
}
@@ -185,7 +185,7 @@ public void setImported(final Boolean imported) {
* When a new billing event occurred on the external subscription in conjunction with a recent
* billing period, reactivation or upgrade/downgrade.
*/
- public DateTime getLastPurchased() {
+ public ZonedDateTime getLastPurchased() {
return this.lastPurchased;
}
@@ -193,7 +193,7 @@ public DateTime getLastPurchased() {
* @param lastPurchased When a new billing event occurred on the external subscription in
* conjunction with a recent billing period, reactivation or upgrade/downgrade.
*/
- public void setLastPurchased(final DateTime lastPurchased) {
+ public void setLastPurchased(final ZonedDateTime lastPurchased) {
this.lastPurchased = lastPurchased;
}
@@ -223,19 +223,19 @@ public void setState(final String state) {
}
/** When the external subscription trial period ends in the external platform. */
- public DateTime getTrialEndsAt() {
+ public ZonedDateTime getTrialEndsAt() {
return this.trialEndsAt;
}
/**
* @param trialEndsAt When the external subscription trial period ends in the external platform.
*/
- public void setTrialEndsAt(final DateTime trialEndsAt) {
+ public void setTrialEndsAt(final ZonedDateTime trialEndsAt) {
this.trialEndsAt = trialEndsAt;
}
/** When the external subscription trial period started in the external platform. */
- public DateTime getTrialStartedAt() {
+ public ZonedDateTime getTrialStartedAt() {
return this.trialStartedAt;
}
@@ -243,7 +243,7 @@ public DateTime getTrialStartedAt() {
* @param trialStartedAt When the external subscription trial period started in the external
* platform.
*/
- public void setTrialStartedAt(final DateTime trialStartedAt) {
+ public void setTrialStartedAt(final ZonedDateTime trialStartedAt) {
this.trialStartedAt = trialStartedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/requests/ExternalSubscriptionUpdate.java b/src/main/java/com/recurly/v3/requests/ExternalSubscriptionUpdate.java
index 9625bd8..d23f645 100644
--- a/src/main/java/com/recurly/v3/requests/ExternalSubscriptionUpdate.java
+++ b/src/main/java/com/recurly/v3/requests/ExternalSubscriptionUpdate.java
@@ -9,14 +9,14 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalSubscriptionUpdate extends Request {
/** When the external subscription was activated in the external platform. */
@SerializedName("activated_at")
@Expose
- private DateTime activatedAt;
+ private ZonedDateTime activatedAt;
/** Identifier of the app that generated the external subscription. */
@SerializedName("app_identifier")
@@ -34,7 +34,7 @@ public class ExternalSubscriptionUpdate extends Request {
/** When the external subscription expires in the external platform. */
@SerializedName("expires_at")
@Expose
- private DateTime expiresAt;
+ private ZonedDateTime expiresAt;
/** Id of the subscription in the external system, i.e. Apple App Store or Google Play Store. */
@SerializedName("external_id")
@@ -59,7 +59,7 @@ public class ExternalSubscriptionUpdate extends Request {
*/
@SerializedName("last_purchased")
@Expose
- private DateTime lastPurchased;
+ private ZonedDateTime lastPurchased;
/** An indication of the quantity of a subscribed item's quantity. */
@SerializedName("quantity")
@@ -76,20 +76,20 @@ public class ExternalSubscriptionUpdate extends Request {
/** When the external subscription trial period ends in the external platform. */
@SerializedName("trial_ends_at")
@Expose
- private DateTime trialEndsAt;
+ private ZonedDateTime trialEndsAt;
/** When the external subscription trial period started in the external platform. */
@SerializedName("trial_started_at")
@Expose
- private DateTime trialStartedAt;
+ private ZonedDateTime trialStartedAt;
/** When the external subscription was activated in the external platform. */
- public DateTime getActivatedAt() {
+ public ZonedDateTime getActivatedAt() {
return this.activatedAt;
}
/** @param activatedAt When the external subscription was activated in the external platform. */
- public void setActivatedAt(final DateTime activatedAt) {
+ public void setActivatedAt(final ZonedDateTime activatedAt) {
this.activatedAt = activatedAt;
}
@@ -120,12 +120,12 @@ public void setAutoRenew(final Boolean autoRenew) {
}
/** When the external subscription expires in the external platform. */
- public DateTime getExpiresAt() {
+ public ZonedDateTime getExpiresAt() {
return this.expiresAt;
}
/** @param expiresAt When the external subscription expires in the external platform. */
- public void setExpiresAt(final DateTime expiresAt) {
+ public void setExpiresAt(final ZonedDateTime expiresAt) {
this.expiresAt = expiresAt;
}
@@ -172,7 +172,7 @@ public void setImported(final Boolean imported) {
* When a new billing event occurred on the external subscription in conjunction with a recent
* billing period, reactivation or upgrade/downgrade.
*/
- public DateTime getLastPurchased() {
+ public ZonedDateTime getLastPurchased() {
return this.lastPurchased;
}
@@ -180,7 +180,7 @@ public DateTime getLastPurchased() {
* @param lastPurchased When a new billing event occurred on the external subscription in
* conjunction with a recent billing period, reactivation or upgrade/downgrade.
*/
- public void setLastPurchased(final DateTime lastPurchased) {
+ public void setLastPurchased(final ZonedDateTime lastPurchased) {
this.lastPurchased = lastPurchased;
}
@@ -210,19 +210,19 @@ public void setState(final String state) {
}
/** When the external subscription trial period ends in the external platform. */
- public DateTime getTrialEndsAt() {
+ public ZonedDateTime getTrialEndsAt() {
return this.trialEndsAt;
}
/**
* @param trialEndsAt When the external subscription trial period ends in the external platform.
*/
- public void setTrialEndsAt(final DateTime trialEndsAt) {
+ public void setTrialEndsAt(final ZonedDateTime trialEndsAt) {
this.trialEndsAt = trialEndsAt;
}
/** When the external subscription trial period started in the external platform. */
- public DateTime getTrialStartedAt() {
+ public ZonedDateTime getTrialStartedAt() {
return this.trialStartedAt;
}
@@ -230,7 +230,7 @@ public DateTime getTrialStartedAt() {
* @param trialStartedAt When the external subscription trial period started in the external
* platform.
*/
- public void setTrialStartedAt(final DateTime trialStartedAt) {
+ public void setTrialStartedAt(final ZonedDateTime trialStartedAt) {
this.trialStartedAt = trialStartedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/requests/ExternalTransaction.java b/src/main/java/com/recurly/v3/requests/ExternalTransaction.java
index 7c49e2c..b76077a 100644
--- a/src/main/java/com/recurly/v3/requests/ExternalTransaction.java
+++ b/src/main/java/com/recurly/v3/requests/ExternalTransaction.java
@@ -11,7 +11,7 @@
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalTransaction extends Request {
@@ -23,7 +23,7 @@ public class ExternalTransaction extends Request {
/** Datetime that the external payment was collected. Defaults to current datetime. */
@SerializedName("collected_at")
@Expose
- private DateTime collectedAt;
+ private ZonedDateTime collectedAt;
/** Used as the transaction's description. */
@SerializedName("description")
@@ -46,7 +46,7 @@ public void setAmount(final BigDecimal amount) {
}
/** Datetime that the external payment was collected. Defaults to current datetime. */
- public DateTime getCollectedAt() {
+ public ZonedDateTime getCollectedAt() {
return this.collectedAt;
}
@@ -54,7 +54,7 @@ public DateTime getCollectedAt() {
* @param collectedAt Datetime that the external payment was collected. Defaults to current
* datetime.
*/
- public void setCollectedAt(final DateTime collectedAt) {
+ public void setCollectedAt(final ZonedDateTime collectedAt) {
this.collectedAt = collectedAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/GiftCardDeliveryCreate.java b/src/main/java/com/recurly/v3/requests/GiftCardDeliveryCreate.java
index e71cade..9c4b44f 100644
--- a/src/main/java/com/recurly/v3/requests/GiftCardDeliveryCreate.java
+++ b/src/main/java/com/recurly/v3/requests/GiftCardDeliveryCreate.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class GiftCardDeliveryCreate extends Request {
@@ -21,7 +21,7 @@ public class GiftCardDeliveryCreate extends Request {
*/
@SerializedName("deliver_at")
@Expose
- private DateTime deliverAt;
+ private ZonedDateTime deliverAt;
/** The email address of the recipient. Required if `method` is `email`. */
@SerializedName("email_address")
@@ -63,7 +63,7 @@ public class GiftCardDeliveryCreate extends Request {
* delivered immediately. If a datetime is provided, the delivery will be in an hourly window,
* rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.
*/
- public DateTime getDeliverAt() {
+ public ZonedDateTime getDeliverAt() {
return this.deliverAt;
}
@@ -72,7 +72,7 @@ public DateTime getDeliverAt() {
* card will be delivered immediately. If a datetime is provided, the delivery will be in an
* hourly window, rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.
*/
- public void setDeliverAt(final DateTime deliverAt) {
+ public void setDeliverAt(final ZonedDateTime deliverAt) {
this.deliverAt = deliverAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/LineItemCreate.java b/src/main/java/com/recurly/v3/requests/LineItemCreate.java
index aae9615..8c9d4c8 100644
--- a/src/main/java/com/recurly/v3/requests/LineItemCreate.java
+++ b/src/main/java/com/recurly/v3/requests/LineItemCreate.java
@@ -11,8 +11,8 @@
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class LineItemCreate extends Request {
@@ -94,7 +94,7 @@ public class LineItemCreate extends Request {
/** If this date is provided, it indicates the end of a time range. */
@SerializedName("end_date")
@Expose
- private DateTime endDate;
+ private ZonedDateTime endDate;
/**
* The Harmonized System (HS) code is an internationally standardized system of names and numbers
@@ -196,7 +196,7 @@ public class LineItemCreate extends Request {
*/
@SerializedName("start_date")
@Expose
- private DateTime startDate;
+ private ZonedDateTime startDate;
/**
* Optional field used by Avalara, Vertex, and Recurly's In-the-Box tax solution to determine
@@ -401,12 +401,12 @@ public void setDestinationTaxAddressSource(
}
/** If this date is provided, it indicates the end of a time range. */
- public DateTime getEndDate() {
+ public ZonedDateTime getEndDate() {
return this.endDate;
}
/** @param endDate If this date is provided, it indicates the end of a time range. */
- public void setEndDate(final DateTime endDate) {
+ public void setEndDate(final ZonedDateTime endDate) {
this.endDate = endDate;
}
@@ -609,7 +609,7 @@ public void setRevenueScheduleType(
* end date is present it indicates billing for a specific date. Defaults to the current
* date-time.
*/
- public DateTime getStartDate() {
+ public ZonedDateTime getStartDate() {
return this.startDate;
}
@@ -618,7 +618,7 @@ public DateTime getStartDate() {
* time range. If no end date is present it indicates billing for a specific date. Defaults to
* the current date-time.
*/
- public void setStartDate(final DateTime startDate) {
+ public void setStartDate(final ZonedDateTime startDate) {
this.startDate = startDate;
}
diff --git a/src/main/java/com/recurly/v3/requests/RecoveryInvoiceCreate.java b/src/main/java/com/recurly/v3/requests/RecoveryInvoiceCreate.java
index df7f6ab..7355ca0 100644
--- a/src/main/java/com/recurly/v3/requests/RecoveryInvoiceCreate.java
+++ b/src/main/java/com/recurly/v3/requests/RecoveryInvoiceCreate.java
@@ -9,8 +9,8 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class RecoveryInvoiceCreate extends Request {
@@ -26,7 +26,7 @@ public class RecoveryInvoiceCreate extends Request {
/** Date invoice was originally due. Must be in the past. */
@SerializedName("due_at")
@Expose
- private DateTime dueAt;
+ private ZonedDateTime dueAt;
/**
* Must be set to `true` to acknowledge that the invoice is eligible for external recovery.
@@ -69,12 +69,12 @@ public void setCurrency(final String currency) {
}
/** Date invoice was originally due. Must be in the past. */
- public DateTime getDueAt() {
+ public ZonedDateTime getDueAt() {
return this.dueAt;
}
/** @param dueAt Date invoice was originally due. Must be in the past. */
- public void setDueAt(final DateTime dueAt) {
+ public void setDueAt(final ZonedDateTime dueAt) {
this.dueAt = dueAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/RecoveryTransactionCreate.java b/src/main/java/com/recurly/v3/requests/RecoveryTransactionCreate.java
index 6f78f33..bf0edcd 100644
--- a/src/main/java/com/recurly/v3/requests/RecoveryTransactionCreate.java
+++ b/src/main/java/com/recurly/v3/requests/RecoveryTransactionCreate.java
@@ -9,14 +9,14 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class RecoveryTransactionCreate extends Request {
/** The date the original payment collection was attempted. */
@SerializedName("attempted_collection_date")
@Expose
- private DateTime attemptedCollectionDate;
+ private ZonedDateTime attemptedCollectionDate;
/** The error code returned by the payment gateway for the original payment collection attempt. */
@SerializedName("gateway_error_code")
@@ -32,12 +32,12 @@ public class RecoveryTransactionCreate extends Request {
private String merchantAdviceCode;
/** The date the original payment collection was attempted. */
- public DateTime getAttemptedCollectionDate() {
+ public ZonedDateTime getAttemptedCollectionDate() {
return this.attemptedCollectionDate;
}
/** @param attemptedCollectionDate The date the original payment collection was attempted. */
- public void setAttemptedCollectionDate(final DateTime attemptedCollectionDate) {
+ public void setAttemptedCollectionDate(final ZonedDateTime attemptedCollectionDate) {
this.attemptedCollectionDate = attemptedCollectionDate;
}
diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java b/src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java
index a3e1b04..55e3060 100644
--- a/src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java
+++ b/src/main/java/com/recurly/v3/requests/SubscriptionChangeCreate.java
@@ -11,8 +11,8 @@
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class SubscriptionChangeCreate extends Request {
@@ -118,7 +118,7 @@ public class SubscriptionChangeCreate extends Request {
*/
@SerializedName("next_bill_date")
@Expose
- private DateTime nextBillDate;
+ private ZonedDateTime nextBillDate;
/**
* If you want to change to a new plan, you can provide the plan's code or id. If both are
@@ -405,7 +405,7 @@ public void setNetTermsType(final Constants.NetTermsType netTermsType) {
* (`current_period_ends_at`). When combined with proration_settings, proration calculation should
* occur, only supported when timeframe is now.
*/
- public DateTime getNextBillDate() {
+ public ZonedDateTime getNextBillDate() {
return this.nextBillDate;
}
@@ -414,7 +414,7 @@ public DateTime getNextBillDate() {
* start (`current_period_ends_at`). When combined with proration_settings, proration
* calculation should occur, only supported when timeframe is now.
*/
- public void setNextBillDate(final DateTime nextBillDate) {
+ public void setNextBillDate(final ZonedDateTime nextBillDate) {
this.nextBillDate = nextBillDate;
}
diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java b/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java
index 814dfc2..091f639 100644
--- a/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java
+++ b/src/main/java/com/recurly/v3/requests/SubscriptionCreate.java
@@ -11,8 +11,8 @@
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class SubscriptionCreate extends Request {
@@ -180,7 +180,7 @@ public class SubscriptionCreate extends Request {
*/
@SerializedName("next_bill_date")
@Expose
- private DateTime nextBillDate;
+ private ZonedDateTime nextBillDate;
/**
* You must provide either a `plan_code` or `plan_id`. If both are provided the `plan_id` will be
@@ -248,7 +248,7 @@ public class SubscriptionCreate extends Request {
*/
@SerializedName("starts_at")
@Expose
- private DateTime startsAt;
+ private ZonedDateTime startsAt;
/**
* Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature
@@ -292,7 +292,7 @@ public class SubscriptionCreate extends Request {
*/
@SerializedName("trial_ends_at")
@Expose
- private DateTime trialEndsAt;
+ private ZonedDateTime trialEndsAt;
/**
* Override the unit amount of the subscription plan by setting this value. If not provided, the
@@ -626,7 +626,7 @@ public void setNetTermsType(final Constants.NetTermsType netTermsType) {
* based off the plan interval. For a subscription with a trial period, this will change when the
* trial expires.
*/
- public DateTime getNextBillDate() {
+ public ZonedDateTime getNextBillDate() {
return this.nextBillDate;
}
@@ -638,7 +638,7 @@ public DateTime getNextBillDate() {
* based off the plan interval. For a subscription with a trial period, this will change when
* the trial expires.
*/
- public void setNextBillDate(final DateTime nextBillDate) {
+ public void setNextBillDate(final ZonedDateTime nextBillDate) {
this.nextBillDate = nextBillDate;
}
@@ -772,7 +772,7 @@ public void setShipping(final SubscriptionShippingCreate shipping) {
* setup fee and trial period, unless the plan has no trial. Omit this field if the subscription
* should be started immediately.
*/
- public DateTime getStartsAt() {
+ public ZonedDateTime getStartsAt() {
return this.startsAt;
}
@@ -781,7 +781,7 @@ public DateTime getStartsAt() {
* will apply the setup fee and trial period, unless the plan has no trial. Omit this field if
* the subscription should be started immediately.
*/
- public void setStartsAt(final DateTime startsAt) {
+ public void setStartsAt(final ZonedDateTime startsAt) {
this.startsAt = startsAt;
}
@@ -861,7 +861,7 @@ public void setTransactionType(final Constants.GatewayTransactionType transactio
* plan default trial). When a future date time is provided the subscription will begin with a
* trial phase ending at the specified date time.
*/
- public DateTime getTrialEndsAt() {
+ public ZonedDateTime getTrialEndsAt() {
return this.trialEndsAt;
}
@@ -871,7 +871,7 @@ public DateTime getTrialEndsAt() {
* phase (overriding any plan default trial). When a future date time is provided the
* subscription will begin with a trial phase ending at the specified date time.
*/
- public void setTrialEndsAt(final DateTime trialEndsAt) {
+ public void setTrialEndsAt(final ZonedDateTime trialEndsAt) {
this.trialEndsAt = trialEndsAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java b/src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java
index f835afb..2b599b0 100644
--- a/src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java
+++ b/src/main/java/com/recurly/v3/requests/SubscriptionPurchase.java
@@ -11,8 +11,8 @@
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class SubscriptionPurchase extends Request {
@@ -62,7 +62,7 @@ public class SubscriptionPurchase extends Request {
*/
@SerializedName("next_bill_date")
@Expose
- private DateTime nextBillDate;
+ private ZonedDateTime nextBillDate;
/** Plan code */
@SerializedName("plan_code")
@@ -122,7 +122,7 @@ public class SubscriptionPurchase extends Request {
*/
@SerializedName("starts_at")
@Expose
- private DateTime startsAt;
+ private ZonedDateTime startsAt;
/**
* Determines whether or not tax is included in the unit amount. The Tax Inclusive Pricing feature
@@ -149,7 +149,7 @@ public class SubscriptionPurchase extends Request {
*/
@SerializedName("trial_ends_at")
@Expose
- private DateTime trialEndsAt;
+ private ZonedDateTime trialEndsAt;
/**
* Override the unit amount of the subscription plan by setting this value. If not provided, the
@@ -240,7 +240,7 @@ public void setCustomFields(final List customFields) {
* based off the plan interval. For a subscription with a trial period, this will change when the
* trial expires.
*/
- public DateTime getNextBillDate() {
+ public ZonedDateTime getNextBillDate() {
return this.nextBillDate;
}
@@ -252,7 +252,7 @@ public DateTime getNextBillDate() {
* based off the plan interval. For a subscription with a trial period, this will change when
* the trial expires.
*/
- public void setNextBillDate(final DateTime nextBillDate) {
+ public void setNextBillDate(final ZonedDateTime nextBillDate) {
this.nextBillDate = nextBillDate;
}
@@ -368,7 +368,7 @@ public void setShipping(final SubscriptionShippingPurchase shipping) {
* setup fee and trial period, unless the plan has no trial. Omit this field if the subscription
* should be started immediately.
*/
- public DateTime getStartsAt() {
+ public ZonedDateTime getStartsAt() {
return this.startsAt;
}
@@ -377,7 +377,7 @@ public DateTime getStartsAt() {
* will apply the setup fee and trial period, unless the plan has no trial. Omit this field if
* the subscription should be started immediately.
*/
- public void setStartsAt(final DateTime startsAt) {
+ public void setStartsAt(final ZonedDateTime startsAt) {
this.startsAt = startsAt;
}
@@ -422,7 +422,7 @@ public void setTotalBillingCycles(final Integer totalBillingCycles) {
* plan default trial). When a future date time is provided the subscription will begin with a
* trial phase ending at the specified date time.
*/
- public DateTime getTrialEndsAt() {
+ public ZonedDateTime getTrialEndsAt() {
return this.trialEndsAt;
}
@@ -432,7 +432,7 @@ public DateTime getTrialEndsAt() {
* phase (overriding any plan default trial). When a future date time is provided the
* subscription will begin with a trial phase ending at the specified date time.
*/
- public void setTrialEndsAt(final DateTime trialEndsAt) {
+ public void setTrialEndsAt(final ZonedDateTime trialEndsAt) {
this.trialEndsAt = trialEndsAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionShippingCreate.java b/src/main/java/com/recurly/v3/requests/SubscriptionShippingCreate.java
index d45b36b..0a32657 100644
--- a/src/main/java/com/recurly/v3/requests/SubscriptionShippingCreate.java
+++ b/src/main/java/com/recurly/v3/requests/SubscriptionShippingCreate.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class SubscriptionShippingCreate extends Request {
@@ -37,7 +37,7 @@ public class SubscriptionShippingCreate extends Request {
/** The expected date of the first delivery for the subscription. */
@SerializedName("expected_first_delivery_at")
@Expose
- private DateTime expectedFirstDeliveryAt;
+ private ZonedDateTime expectedFirstDeliveryAt;
/**
* The code of the shipping method used to deliver the subscription. If `method_id` and
@@ -97,14 +97,14 @@ public void setAmount(final BigDecimal amount) {
}
/** The expected date of the first delivery for the subscription. */
- public DateTime getExpectedFirstDeliveryAt() {
+ public ZonedDateTime getExpectedFirstDeliveryAt() {
return this.expectedFirstDeliveryAt;
}
/**
* @param expectedFirstDeliveryAt The expected date of the first delivery for the subscription.
*/
- public void setExpectedFirstDeliveryAt(final DateTime expectedFirstDeliveryAt) {
+ public void setExpectedFirstDeliveryAt(final ZonedDateTime expectedFirstDeliveryAt) {
this.expectedFirstDeliveryAt = expectedFirstDeliveryAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionShippingPurchase.java b/src/main/java/com/recurly/v3/requests/SubscriptionShippingPurchase.java
index 0fd7cab..01e3179 100644
--- a/src/main/java/com/recurly/v3/requests/SubscriptionShippingPurchase.java
+++ b/src/main/java/com/recurly/v3/requests/SubscriptionShippingPurchase.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class SubscriptionShippingPurchase extends Request {
@@ -25,7 +25,7 @@ public class SubscriptionShippingPurchase extends Request {
/** The expected date of the first delivery for the subscription. */
@SerializedName("expected_first_delivery_at")
@Expose
- private DateTime expectedFirstDeliveryAt;
+ private ZonedDateTime expectedFirstDeliveryAt;
/**
* The code of the shipping method used to deliver the subscription. If `method_id` and
@@ -60,14 +60,14 @@ public void setAmount(final BigDecimal amount) {
}
/** The expected date of the first delivery for the subscription. */
- public DateTime getExpectedFirstDeliveryAt() {
+ public ZonedDateTime getExpectedFirstDeliveryAt() {
return this.expectedFirstDeliveryAt;
}
/**
* @param expectedFirstDeliveryAt The expected date of the first delivery for the subscription.
*/
- public void setExpectedFirstDeliveryAt(final DateTime expectedFirstDeliveryAt) {
+ public void setExpectedFirstDeliveryAt(final ZonedDateTime expectedFirstDeliveryAt) {
this.expectedFirstDeliveryAt = expectedFirstDeliveryAt;
}
diff --git a/src/main/java/com/recurly/v3/requests/SubscriptionUpdate.java b/src/main/java/com/recurly/v3/requests/SubscriptionUpdate.java
index b1bd0e0..a210309 100644
--- a/src/main/java/com/recurly/v3/requests/SubscriptionUpdate.java
+++ b/src/main/java/com/recurly/v3/requests/SubscriptionUpdate.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class SubscriptionUpdate extends Request {
@@ -111,7 +111,7 @@ public class SubscriptionUpdate extends Request {
*/
@SerializedName("next_bill_date")
@Expose
- private DateTime nextBillDate;
+ private ZonedDateTime nextBillDate;
/** For manual invoicing, this identifies the PO number associated with the subscription. */
@SerializedName("po_number")
@@ -340,7 +340,7 @@ public void setNetTermsType(final Constants.NetTermsType netTermsType) {
* expires. This parameter is useful for postponement of a subscription to change its billing date
* without proration.
*/
- public DateTime getNextBillDate() {
+ public ZonedDateTime getNextBillDate() {
return this.nextBillDate;
}
@@ -351,7 +351,7 @@ public DateTime getNextBillDate() {
* trial expires. This parameter is useful for postponement of a subscription to change its
* billing date without proration.
*/
- public void setNextBillDate(final DateTime nextBillDate) {
+ public void setNextBillDate(final ZonedDateTime nextBillDate) {
this.nextBillDate = nextBillDate;
}
diff --git a/src/main/java/com/recurly/v3/requests/UsageCreate.java b/src/main/java/com/recurly/v3/requests/UsageCreate.java
index bd19f71..2d205ce 100644
--- a/src/main/java/com/recurly/v3/requests/UsageCreate.java
+++ b/src/main/java/com/recurly/v3/requests/UsageCreate.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Request;
import com.recurly.v3.resources.*;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class UsageCreate extends Request {
@@ -35,7 +35,7 @@ public class UsageCreate extends Request {
/** When the usage was recorded in your system. */
@SerializedName("recording_timestamp")
@Expose
- private DateTime recordingTimestamp;
+ private ZonedDateTime recordingTimestamp;
/**
* When the usage actually happened. This will define the line item dates this usage is billed
@@ -43,7 +43,7 @@ public class UsageCreate extends Request {
*/
@SerializedName("usage_timestamp")
@Expose
- private DateTime usageTimestamp;
+ private ZonedDateTime usageTimestamp;
/**
* The amount of usage. Can be positive, negative, or 0. If the Decimal Quantity feature is
@@ -84,12 +84,12 @@ public void setMerchantTag(final String merchantTag) {
}
/** When the usage was recorded in your system. */
- public DateTime getRecordingTimestamp() {
+ public ZonedDateTime getRecordingTimestamp() {
return this.recordingTimestamp;
}
/** @param recordingTimestamp When the usage was recorded in your system. */
- public void setRecordingTimestamp(final DateTime recordingTimestamp) {
+ public void setRecordingTimestamp(final ZonedDateTime recordingTimestamp) {
this.recordingTimestamp = recordingTimestamp;
}
@@ -97,7 +97,7 @@ public void setRecordingTimestamp(final DateTime recordingTimestamp) {
* When the usage actually happened. This will define the line item dates this usage is billed
* under and is important for revenue recognition.
*/
- public DateTime getUsageTimestamp() {
+ public ZonedDateTime getUsageTimestamp() {
return this.usageTimestamp;
}
@@ -105,7 +105,7 @@ public DateTime getUsageTimestamp() {
* @param usageTimestamp When the usage actually happened. This will define the line item dates
* this usage is billed under and is important for revenue recognition.
*/
- public void setUsageTimestamp(final DateTime usageTimestamp) {
+ public void setUsageTimestamp(final ZonedDateTime usageTimestamp) {
this.usageTimestamp = usageTimestamp;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/Account.java b/src/main/java/com/recurly/v3/resources/Account.java
index 38fc17d..683f9d2 100644
--- a/src/main/java/com/recurly/v3/resources/Account.java
+++ b/src/main/java/com/recurly/v3/resources/Account.java
@@ -9,8 +9,8 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class Account extends Resource {
@@ -24,7 +24,7 @@ public class Account extends Resource {
*/
@SerializedName("bill_date")
@Expose
- private DateTime billDate;
+ private ZonedDateTime billDate;
/**
* An enumerable describing the billing behavior of the account, specifically whether the account
@@ -58,7 +58,7 @@ public class Account extends Resource {
/** When the account was created. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* The custom fields will only be altered when they are included in a request. Sending an empty
@@ -72,7 +72,7 @@ public class Account extends Resource {
/** If present, when the account was last marked inactive. */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/**
* Unique ID to identify a dunning campaign. Used to specify if a non-default dunning campaign
@@ -233,7 +233,7 @@ public class Account extends Resource {
/** When the account was last changed. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** A secondary value for the account. */
@SerializedName("username")
@@ -261,7 +261,7 @@ public void setAddress(final Address address) {
* The preferred billing date for the account. This date will be used as the billing date for when
* activating new subscriptions on the account.
*/
- public DateTime getBillDate() {
+ public ZonedDateTime getBillDate() {
return this.billDate;
}
@@ -269,7 +269,7 @@ public DateTime getBillDate() {
* @param billDate The preferred billing date for the account. This date will be used as the
* billing date for when activating new subscriptions on the account.
*/
- public void setBillDate(final DateTime billDate) {
+ public void setBillDate(final ZonedDateTime billDate) {
this.billDate = billDate;
}
@@ -338,12 +338,12 @@ public void setCompany(final String company) {
}
/** When the account was created. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the account was created. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -366,12 +366,12 @@ public void setCustomFields(final List customFields) {
}
/** If present, when the account was last marked inactive. */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt If present, when the account was last marked inactive. */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -693,12 +693,12 @@ public void setTaxExempt(final Boolean taxExempt) {
}
/** When the account was last changed. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the account was last changed. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/AccountAcquisition.java b/src/main/java/com/recurly/v3/resources/AccountAcquisition.java
index d735b69..afc51b7 100644
--- a/src/main/java/com/recurly/v3/resources/AccountAcquisition.java
+++ b/src/main/java/com/recurly/v3/resources/AccountAcquisition.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class AccountAcquisition extends Resource {
@@ -24,7 +24,7 @@ public class AccountAcquisition extends Resource {
*/
@SerializedName("acquired_at")
@Expose
- private DateTime acquiredAt;
+ private ZonedDateTime acquiredAt;
/**
* An arbitrary identifier for the marketing campaign that led to the acquisition of this account.
@@ -46,7 +46,7 @@ public class AccountAcquisition extends Resource {
/** When the account acquisition data was created. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
@SerializedName("id")
@Expose
@@ -67,7 +67,7 @@ public class AccountAcquisition extends Resource {
/** When the account acquisition data was last changed. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Account mini details */
public AccountMini getAccount() {
@@ -83,7 +83,7 @@ public void setAccount(final AccountMini account) {
* Date the account was first created if different than the account.created_at. ie Importing
* accounts.
*/
- public DateTime getAcquiredAt() {
+ public ZonedDateTime getAcquiredAt() {
return this.acquiredAt;
}
@@ -91,7 +91,7 @@ public DateTime getAcquiredAt() {
* @param acquiredAt Date the account was first created if different than the account.created_at.
* ie Importing accounts.
*/
- public void setAcquiredAt(final DateTime acquiredAt) {
+ public void setAcquiredAt(final ZonedDateTime acquiredAt) {
this.acquiredAt = acquiredAt;
}
@@ -131,12 +131,12 @@ public void setCost(final AccountAcquisitionCost cost) {
}
/** When the account acquisition data was created. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the account acquisition data was created. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -175,12 +175,12 @@ public void setSubchannel(final String subchannel) {
}
/** When the account acquisition data was last changed. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the account acquisition data was last changed. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/AccountNote.java b/src/main/java/com/recurly/v3/resources/AccountNote.java
index e0f9b15..d583786 100644
--- a/src/main/java/com/recurly/v3/resources/AccountNote.java
+++ b/src/main/java/com/recurly/v3/resources/AccountNote.java
@@ -8,7 +8,7 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class AccountNote extends Resource {
@@ -18,7 +18,7 @@ public class AccountNote extends Resource {
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
@SerializedName("id")
@Expose
@@ -46,12 +46,12 @@ public void setAccountId(final String accountId) {
this.accountId = accountId;
}
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/AddOn.java b/src/main/java/com/recurly/v3/resources/AddOn.java
index 58f85a1..a8b05ec 100644
--- a/src/main/java/com/recurly/v3/resources/AddOn.java
+++ b/src/main/java/com/recurly/v3/resources/AddOn.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class AddOn extends Resource {
@@ -56,7 +56,7 @@ public class AddOn extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Add-on pricing */
@SerializedName("currencies")
@@ -71,7 +71,7 @@ public class AddOn extends Resource {
/** Deleted at */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** Determines if the quantity field is displayed on the hosted pages for the add-on. */
@SerializedName("display_quantity")
@@ -209,7 +209,7 @@ public class AddOn extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The type of calculation to be employed for an add-on. Cumulative billing will sum all usage
@@ -316,12 +316,12 @@ public void setCode(final String code) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -346,12 +346,12 @@ public void setDefaultQuantity(final Integer defaultQuantity) {
}
/** Deleted at */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt Deleted at */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -632,12 +632,12 @@ public void setTiers(final List tiers) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/BillingInfo.java b/src/main/java/com/recurly/v3/resources/BillingInfo.java
index 0c6ce16..ce0e3d9 100644
--- a/src/main/java/com/recurly/v3/resources/BillingInfo.java
+++ b/src/main/java/com/recurly/v3/resources/BillingInfo.java
@@ -8,8 +8,8 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class BillingInfo extends Resource {
@@ -36,7 +36,7 @@ public class BillingInfo extends Resource {
/** When the billing information was created. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
@SerializedName("first_name")
@Expose
@@ -84,7 +84,7 @@ public class BillingInfo extends Resource {
/** When the billing information was last changed. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
@SerializedName("updated_by")
@Expose
@@ -147,12 +147,12 @@ public void setCompany(final String company) {
}
/** When the billing information was created. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the billing information was created. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -248,12 +248,12 @@ public void setPrimaryPaymentMethod(final Boolean primaryPaymentMethod) {
}
/** When the billing information was last changed. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the billing information was last changed. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/BusinessEntity.java b/src/main/java/com/recurly/v3/resources/BusinessEntity.java
index 815fee1..6198a0c 100644
--- a/src/main/java/com/recurly/v3/resources/BusinessEntity.java
+++ b/src/main/java/com/recurly/v3/resources/BusinessEntity.java
@@ -9,8 +9,8 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class BusinessEntity extends Resource {
@@ -22,7 +22,7 @@ public class BusinessEntity extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* The ID of a general ledger account. General ledger accounts are only accessible as a part of
@@ -101,7 +101,7 @@ public class BusinessEntity extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** The entity code of the business entity. */
public String getCode() {
@@ -114,12 +114,12 @@ public void setCode(final String code) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -287,12 +287,12 @@ public void setTaxAddress(final Address taxAddress) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/Coupon.java b/src/main/java/com/recurly/v3/resources/Coupon.java
index 65a4af0..11404bd 100644
--- a/src/main/java/com/recurly/v3/resources/Coupon.java
+++ b/src/main/java/com/recurly/v3/resources/Coupon.java
@@ -9,9 +9,9 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
import java.util.Map;
-import org.joda.time.DateTime;
public class Coupon extends Resource {
@@ -52,7 +52,7 @@ public class Coupon extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* Details of the discount a coupon applies. Will contain a `type` property and one of the
@@ -73,7 +73,7 @@ public class Coupon extends Resource {
/** The date and time the coupon was expired early or reached its `max_redemptions`. */
@SerializedName("expired_at")
@Expose
- private DateTime expiredAt;
+ private ZonedDateTime expiredAt;
/** Sets the duration of time the `free_trial_unit` is for. */
@SerializedName("free_trial_amount")
@@ -155,7 +155,7 @@ public class Coupon extends Resource {
*/
@SerializedName("redeem_by")
@Expose
- private DateTime redeemBy;
+ private ZonedDateTime redeemBy;
/**
* Whether the discount is for all eligible charges on the account, or only a specific
@@ -206,7 +206,7 @@ public class Coupon extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The coupon is valid for all items if true. If false then `items` will list the applicable
@@ -277,12 +277,12 @@ public void setCouponType(final Constants.CouponType couponType) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -320,7 +320,7 @@ public void setDuration(final Constants.CouponDuration duration) {
}
/** The date and time the coupon was expired early or reached its `max_redemptions`. */
- public DateTime getExpiredAt() {
+ public ZonedDateTime getExpiredAt() {
return this.expiredAt;
}
@@ -328,7 +328,7 @@ public DateTime getExpiredAt() {
* @param expiredAt The date and time the coupon was expired early or reached its
* `max_redemptions`.
*/
- public void setExpiredAt(final DateTime expiredAt) {
+ public void setExpiredAt(final ZonedDateTime expiredAt) {
this.expiredAt = expiredAt;
}
@@ -486,7 +486,7 @@ public void setPlans(final List plans) {
* The date and time the coupon will expire and can no longer be redeemed. Time is always
* 11:59:59, the end-of-day Pacific time.
*/
- public DateTime getRedeemBy() {
+ public ZonedDateTime getRedeemBy() {
return this.redeemBy;
}
@@ -494,7 +494,7 @@ public DateTime getRedeemBy() {
* @param redeemBy The date and time the coupon will expire and can no longer be redeemed. Time is
* always 11:59:59, the end-of-day Pacific time.
*/
- public void setRedeemBy(final DateTime redeemBy) {
+ public void setRedeemBy(final ZonedDateTime redeemBy) {
this.redeemBy = redeemBy;
}
@@ -602,12 +602,12 @@ public void setUniqueCouponCodesCount(final Integer uniqueCouponCodesCount) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/CouponMini.java b/src/main/java/com/recurly/v3/resources/CouponMini.java
index 55d0667..b6621fa 100644
--- a/src/main/java/com/recurly/v3/resources/CouponMini.java
+++ b/src/main/java/com/recurly/v3/resources/CouponMini.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class CouponMini extends Resource {
@@ -37,7 +37,7 @@ public class CouponMini extends Resource {
/** The date and time the coupon was expired early or reached its `max_redemptions`. */
@SerializedName("expired_at")
@Expose
- private DateTime expiredAt;
+ private ZonedDateTime expiredAt;
/** Coupon ID */
@SerializedName("id")
@@ -102,7 +102,7 @@ public void setDiscount(final CouponDiscount discount) {
}
/** The date and time the coupon was expired early or reached its `max_redemptions`. */
- public DateTime getExpiredAt() {
+ public ZonedDateTime getExpiredAt() {
return this.expiredAt;
}
@@ -110,7 +110,7 @@ public DateTime getExpiredAt() {
* @param expiredAt The date and time the coupon was expired early or reached its
* `max_redemptions`.
*/
- public void setExpiredAt(final DateTime expiredAt) {
+ public void setExpiredAt(final ZonedDateTime expiredAt) {
this.expiredAt = expiredAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/CouponRedemption.java b/src/main/java/com/recurly/v3/resources/CouponRedemption.java
index 176dcef..cbb7c26 100644
--- a/src/main/java/com/recurly/v3/resources/CouponRedemption.java
+++ b/src/main/java/com/recurly/v3/resources/CouponRedemption.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class CouponRedemption extends Resource {
@@ -26,7 +26,7 @@ public class CouponRedemption extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** 3-letter ISO 4217 currency code. */
@SerializedName("currency")
@@ -57,7 +57,7 @@ public class CouponRedemption extends Resource {
/** The date and time the redemption was removed from the account (un-redeemed). */
@SerializedName("removed_at")
@Expose
- private DateTime removedAt;
+ private ZonedDateTime removedAt;
/** Coupon Redemption state */
@SerializedName("state")
@@ -72,7 +72,7 @@ public class CouponRedemption extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
@@ -101,12 +101,12 @@ public void setCoupon(final Coupon coupon) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -165,14 +165,14 @@ public void setRemainingDuration(final CouponRedemptionRemainingDuration remaini
}
/** The date and time the redemption was removed from the account (un-redeemed). */
- public DateTime getRemovedAt() {
+ public ZonedDateTime getRemovedAt() {
return this.removedAt;
}
/**
* @param removedAt The date and time the redemption was removed from the account (un-redeemed).
*/
- public void setRemovedAt(final DateTime removedAt) {
+ public void setRemovedAt(final ZonedDateTime removedAt) {
this.removedAt = removedAt;
}
@@ -197,12 +197,12 @@ public void setSubscriptionId(final String subscriptionId) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/CouponRedemptionMini.java b/src/main/java/com/recurly/v3/resources/CouponRedemptionMini.java
index 29f1ce2..34e50a2 100644
--- a/src/main/java/com/recurly/v3/resources/CouponRedemptionMini.java
+++ b/src/main/java/com/recurly/v3/resources/CouponRedemptionMini.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class CouponRedemptionMini extends Resource {
@@ -21,7 +21,7 @@ public class CouponRedemptionMini extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* The amount that was discounted upon the application of the coupon, formatted with the currency.
@@ -59,12 +59,12 @@ public void setCoupon(final CouponMini coupon) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/CouponRedemptionRemainingDuration.java b/src/main/java/com/recurly/v3/resources/CouponRedemptionRemainingDuration.java
index 52f78de..2adef9e 100644
--- a/src/main/java/com/recurly/v3/resources/CouponRedemptionRemainingDuration.java
+++ b/src/main/java/com/recurly/v3/resources/CouponRedemptionRemainingDuration.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class CouponRedemptionRemainingDuration extends Resource {
@@ -19,7 +19,7 @@ public class CouponRedemptionRemainingDuration extends Resource {
*/
@SerializedName("expires_at")
@Expose
- private DateTime expiresAt;
+ private ZonedDateTime expiresAt;
/**
* The coupon's duration type. `temporal` includes an `expires_at` timestamp. `forever` and
@@ -33,7 +33,7 @@ public class CouponRedemptionRemainingDuration extends Resource {
* Present when `type` is `temporal`. The datetime after which this redemption will no longer
* apply.
*/
- public DateTime getExpiresAt() {
+ public ZonedDateTime getExpiresAt() {
return this.expiresAt;
}
@@ -41,7 +41,7 @@ public DateTime getExpiresAt() {
* @param expiresAt Present when `type` is `temporal`. The datetime after which this redemption
* will no longer apply.
*/
- public void setExpiresAt(final DateTime expiresAt) {
+ public void setExpiresAt(final ZonedDateTime expiresAt) {
this.expiresAt = expiresAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/CreditPayment.java b/src/main/java/com/recurly/v3/resources/CreditPayment.java
index d75e851..e7fa89c 100644
--- a/src/main/java/com/recurly/v3/resources/CreditPayment.java
+++ b/src/main/java/com/recurly/v3/resources/CreditPayment.java
@@ -10,7 +10,7 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class CreditPayment extends Resource {
@@ -37,7 +37,7 @@ public class CreditPayment extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** 3-letter ISO 4217 currency code. */
@SerializedName("currency")
@@ -71,7 +71,7 @@ public class CreditPayment extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
@@ -83,7 +83,7 @@ public class CreditPayment extends Resource {
/** Voided at */
@SerializedName("voided_at")
@Expose
- private DateTime voidedAt;
+ private ZonedDateTime voidedAt;
/** Account mini details */
public AccountMini getAccount() {
@@ -126,12 +126,12 @@ public void setAppliedToInvoice(final InvoiceMini appliedToInvoice) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -198,12 +198,12 @@ public void setRefundTransaction(final Transaction refundTransaction) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
@@ -223,12 +223,12 @@ public void setUuid(final String uuid) {
}
/** Voided at */
- public DateTime getVoidedAt() {
+ public ZonedDateTime getVoidedAt() {
return this.voidedAt;
}
/** @param voidedAt Voided at */
- public void setVoidedAt(final DateTime voidedAt) {
+ public void setVoidedAt(final ZonedDateTime voidedAt) {
this.voidedAt = voidedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/CustomFieldDefinition.java b/src/main/java/com/recurly/v3/resources/CustomFieldDefinition.java
index bca314f..4863bec 100644
--- a/src/main/java/com/recurly/v3/resources/CustomFieldDefinition.java
+++ b/src/main/java/com/recurly/v3/resources/CustomFieldDefinition.java
@@ -9,14 +9,14 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class CustomFieldDefinition extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* Definitions are initially soft deleted, and once all the values are removed from the accouts or
@@ -24,7 +24,7 @@ public class CustomFieldDefinition extends Resource {
*/
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** Used to label the field when viewing and editing the field in Recurly's admin UI. */
@SerializedName("display_name")
@@ -62,7 +62,7 @@ public class CustomFieldDefinition extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The access control applied inside Recurly's admin UI: - `api_only` - No one will be able to
@@ -77,12 +77,12 @@ public class CustomFieldDefinition extends Resource {
private Constants.UserAccess userAccess;
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -90,7 +90,7 @@ public void setCreatedAt(final DateTime createdAt) {
* Definitions are initially soft deleted, and once all the values are removed from the accouts or
* subscriptions, will be hard deleted an no longer visible.
*/
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
@@ -98,7 +98,7 @@ public DateTime getDeletedAt() {
* @param deletedAt Definitions are initially soft deleted, and once all the values are removed
* from the accouts or subscriptions, will be hard deleted an no longer visible.
*/
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -172,12 +172,12 @@ public void setTooltip(final String tooltip) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/DunningCampaign.java b/src/main/java/com/recurly/v3/resources/DunningCampaign.java
index 10429df..edb41bb 100644
--- a/src/main/java/com/recurly/v3/resources/DunningCampaign.java
+++ b/src/main/java/com/recurly/v3/resources/DunningCampaign.java
@@ -8,8 +8,8 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class DunningCampaign extends Resource {
@@ -21,7 +21,7 @@ public class DunningCampaign extends Resource {
/** When the current campaign was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* Whether or not this is the default campaign for accounts or plans without an assigned dunning
@@ -34,7 +34,7 @@ public class DunningCampaign extends Resource {
/** When the current campaign was deleted in Recurly. */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** Campaign description. */
@SerializedName("description")
@@ -63,7 +63,7 @@ public class DunningCampaign extends Resource {
/** When the current campaign was updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Campaign code. */
public String getCode() {
@@ -76,12 +76,12 @@ public void setCode(final String code) {
}
/** When the current campaign was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the current campaign was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -102,12 +102,12 @@ public void setDefaultCampaign(final Boolean defaultCampaign) {
}
/** When the current campaign was deleted in Recurly. */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt When the current campaign was deleted in Recurly. */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -161,12 +161,12 @@ public void setObject(final String object) {
}
/** When the current campaign was updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the current campaign was updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/DunningCycle.java b/src/main/java/com/recurly/v3/resources/DunningCycle.java
index cc568c1..5d0f877 100644
--- a/src/main/java/com/recurly/v3/resources/DunningCycle.java
+++ b/src/main/java/com/recurly/v3/resources/DunningCycle.java
@@ -9,8 +9,8 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class DunningCycle extends Resource {
@@ -24,7 +24,7 @@ public class DunningCycle extends Resource {
/** When the current settings were created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Whether the subscription(s) should be cancelled at the end of the dunning cycle. */
@SerializedName("expire_subscription")
@@ -74,7 +74,7 @@ public class DunningCycle extends Resource {
/** When the current settings were updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Current campaign version. */
@SerializedName("version")
@@ -97,12 +97,12 @@ public void setAppliesToManualTrial(final Boolean appliesToManualTrial) {
}
/** When the current settings were created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the current settings were created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -208,12 +208,12 @@ public void setType(final Constants.DunningCycleType type) {
}
/** When the current settings were updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the current settings were updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/Entitlement.java b/src/main/java/com/recurly/v3/resources/Entitlement.java
index 93b206e..f32f743 100644
--- a/src/main/java/com/recurly/v3/resources/Entitlement.java
+++ b/src/main/java/com/recurly/v3/resources/Entitlement.java
@@ -8,15 +8,15 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class Entitlement extends Resource {
/** Time object was created. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
@SerializedName("customer_permission")
@Expose
@@ -35,15 +35,15 @@ public class Entitlement extends Resource {
/** Time the object was last updated */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Time object was created. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Time object was created. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -77,12 +77,12 @@ public void setObject(final String object) {
}
/** Time the object was last updated */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Time the object was last updated */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/ExternalAccount.java b/src/main/java/com/recurly/v3/resources/ExternalAccount.java
index e1078be..a47b438 100644
--- a/src/main/java/com/recurly/v3/resources/ExternalAccount.java
+++ b/src/main/java/com/recurly/v3/resources/ExternalAccount.java
@@ -8,14 +8,14 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalAccount extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Represents the account code for the external account. */
@SerializedName("external_account_code")
@@ -39,15 +39,15 @@ public class ExternalAccount extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -94,12 +94,12 @@ public void setObject(final String object) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/ExternalCharge.java b/src/main/java/com/recurly/v3/resources/ExternalCharge.java
index d60ce60..fb7b6a3 100644
--- a/src/main/java/com/recurly/v3/resources/ExternalCharge.java
+++ b/src/main/java/com/recurly/v3/resources/ExternalCharge.java
@@ -8,7 +8,7 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalCharge extends Resource {
@@ -20,7 +20,7 @@ public class ExternalCharge extends Resource {
/** When the external charge was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** 3-letter ISO 4217 currency code. */
@SerializedName("currency")
@@ -58,7 +58,7 @@ public class ExternalCharge extends Resource {
/** When the external charge was updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Account mini details */
public AccountMini getAccount() {
@@ -71,12 +71,12 @@ public void setAccount(final AccountMini account) {
}
/** When the external charge was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the external charge was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -152,12 +152,12 @@ public void setUnitAmount(final String unitAmount) {
}
/** When the external charge was updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the external charge was updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/ExternalInvoice.java b/src/main/java/com/recurly/v3/resources/ExternalInvoice.java
index a9ab45e..75c69b6 100644
--- a/src/main/java/com/recurly/v3/resources/ExternalInvoice.java
+++ b/src/main/java/com/recurly/v3/resources/ExternalInvoice.java
@@ -9,8 +9,8 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ExternalInvoice extends Resource {
@@ -22,7 +22,7 @@ public class ExternalInvoice extends Resource {
/** When the external invoice was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** 3-letter ISO 4217 currency code. */
@SerializedName("currency")
@@ -59,7 +59,7 @@ public class ExternalInvoice extends Resource {
/** When the invoice was created in the external platform. */
@SerializedName("purchased_at")
@Expose
- private DateTime purchasedAt;
+ private ZonedDateTime purchasedAt;
@SerializedName("state")
@Expose
@@ -73,7 +73,7 @@ public class ExternalInvoice extends Resource {
/** When the external invoice was updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Account mini details */
public AccountMini getAccount() {
@@ -86,12 +86,12 @@ public void setAccount(final AccountMini account) {
}
/** When the external invoice was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the external invoice was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -166,12 +166,12 @@ public void setObject(final String object) {
}
/** When the invoice was created in the external platform. */
- public DateTime getPurchasedAt() {
+ public ZonedDateTime getPurchasedAt() {
return this.purchasedAt;
}
/** @param purchasedAt When the invoice was created in the external platform. */
- public void setPurchasedAt(final DateTime purchasedAt) {
+ public void setPurchasedAt(final ZonedDateTime purchasedAt) {
this.purchasedAt = purchasedAt;
}
@@ -195,12 +195,12 @@ public void setTotal(final String total) {
}
/** When the external invoice was updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the external invoice was updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/ExternalPaymentPhase.java b/src/main/java/com/recurly/v3/resources/ExternalPaymentPhase.java
index e37dcdd..9e35782 100644
--- a/src/main/java/com/recurly/v3/resources/ExternalPaymentPhase.java
+++ b/src/main/java/com/recurly/v3/resources/ExternalPaymentPhase.java
@@ -8,7 +8,7 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalPaymentPhase extends Resource {
@@ -20,7 +20,7 @@ public class ExternalPaymentPhase extends Resource {
/** When the external subscription was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** 3-letter ISO 4217 currency code. */
@SerializedName("currency")
@@ -35,7 +35,7 @@ public class ExternalPaymentPhase extends Resource {
/** Ends At */
@SerializedName("ends_at")
@Expose
- private DateTime endsAt;
+ private ZonedDateTime endsAt;
/** System-generated unique identifier for an external payment phase ID, e.g. `e28zov4fw0v2`. */
@SerializedName("id")
@@ -70,7 +70,7 @@ public class ExternalPaymentPhase extends Resource {
/** Started At */
@SerializedName("started_at")
@Expose
- private DateTime startedAt;
+ private ZonedDateTime startedAt;
/** Starting Billing Period Index */
@SerializedName("starting_billing_period_index")
@@ -80,7 +80,7 @@ public class ExternalPaymentPhase extends Resource {
/** When the external subscription was updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Allows up to 9 decimal places */
public String getAmount() {
@@ -93,12 +93,12 @@ public void setAmount(final String amount) {
}
/** When the external subscription was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the external subscription was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -123,12 +123,12 @@ public void setEndingBillingPeriodIndex(final Integer endingBillingPeriodIndex)
}
/** Ends At */
- public DateTime getEndsAt() {
+ public ZonedDateTime getEndsAt() {
return this.endsAt;
}
/** @param endsAt Ends At */
- public void setEndsAt(final DateTime endsAt) {
+ public void setEndsAt(final ZonedDateTime endsAt) {
this.endsAt = endsAt;
}
@@ -196,12 +196,12 @@ public void setPeriodLength(final String periodLength) {
}
/** Started At */
- public DateTime getStartedAt() {
+ public ZonedDateTime getStartedAt() {
return this.startedAt;
}
/** @param startedAt Started At */
- public void setStartedAt(final DateTime startedAt) {
+ public void setStartedAt(final ZonedDateTime startedAt) {
this.startedAt = startedAt;
}
@@ -216,12 +216,12 @@ public void setStartingBillingPeriodIndex(final Integer startingBillingPeriodInd
}
/** When the external subscription was updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the external subscription was updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/ExternalProduct.java b/src/main/java/com/recurly/v3/resources/ExternalProduct.java
index ea0fc5c..4255fcf 100644
--- a/src/main/java/com/recurly/v3/resources/ExternalProduct.java
+++ b/src/main/java/com/recurly/v3/resources/ExternalProduct.java
@@ -8,15 +8,15 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ExternalProduct extends Resource {
/** When the external product was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** List of external product references of the external product. */
@SerializedName("external_product_references")
@@ -46,15 +46,15 @@ public class ExternalProduct extends Resource {
/** When the external product was updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** When the external product was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the external product was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -114,12 +114,12 @@ public void setPlan(final PlanMini plan) {
}
/** When the external product was updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the external product was updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/ExternalProductReferenceMini.java b/src/main/java/com/recurly/v3/resources/ExternalProductReferenceMini.java
index fbde838..6fb05b5 100644
--- a/src/main/java/com/recurly/v3/resources/ExternalProductReferenceMini.java
+++ b/src/main/java/com/recurly/v3/resources/ExternalProductReferenceMini.java
@@ -8,14 +8,14 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ExternalProductReferenceMini extends Resource {
/** When the external product was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Source connection platform. */
@SerializedName("external_connection_type")
@@ -43,15 +43,15 @@ public class ExternalProductReferenceMini extends Resource {
/** When the external product was updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** When the external product was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the external product was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -104,12 +104,12 @@ public void setReferenceCode(final String referenceCode) {
}
/** When the external product was updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the external product was updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/ExternalSubscription.java b/src/main/java/com/recurly/v3/resources/ExternalSubscription.java
index 1ddf523..caebc50 100644
--- a/src/main/java/com/recurly/v3/resources/ExternalSubscription.java
+++ b/src/main/java/com/recurly/v3/resources/ExternalSubscription.java
@@ -8,8 +8,8 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class ExternalSubscription extends Resource {
@@ -21,7 +21,7 @@ public class ExternalSubscription extends Resource {
/** When the external subscription was activated in the external platform. */
@SerializedName("activated_at")
@Expose
- private DateTime activatedAt;
+ private ZonedDateTime activatedAt;
/** Identifier of the app that generated the external subscription. */
@SerializedName("app_identifier")
@@ -39,17 +39,17 @@ public class ExternalSubscription extends Resource {
/** When the external subscription was canceled in the external platform. */
@SerializedName("canceled_at")
@Expose
- private DateTime canceledAt;
+ private ZonedDateTime canceledAt;
/** When the external subscription was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** When the external subscription expires in the external platform. */
@SerializedName("expires_at")
@Expose
- private DateTime expiresAt;
+ private ZonedDateTime expiresAt;
/**
* The id of the subscription in the external systems., I.e. Apple App Store or Google Play Store.
@@ -92,7 +92,7 @@ public class ExternalSubscription extends Resource {
*/
@SerializedName("last_purchased")
@Expose
- private DateTime lastPurchased;
+ private ZonedDateTime lastPurchased;
/** Object type */
@SerializedName("object")
@@ -122,17 +122,17 @@ public class ExternalSubscription extends Resource {
/** When the external subscription trial period ends in the external platform. */
@SerializedName("trial_ends_at")
@Expose
- private DateTime trialEndsAt;
+ private ZonedDateTime trialEndsAt;
/** When the external subscription trial period started in the external platform. */
@SerializedName("trial_started_at")
@Expose
- private DateTime trialStartedAt;
+ private ZonedDateTime trialStartedAt;
/** When the external subscription was updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Universally Unique Identifier created automatically. */
@SerializedName("uuid")
@@ -150,12 +150,12 @@ public void setAccount(final AccountMini account) {
}
/** When the external subscription was activated in the external platform. */
- public DateTime getActivatedAt() {
+ public ZonedDateTime getActivatedAt() {
return this.activatedAt;
}
/** @param activatedAt When the external subscription was activated in the external platform. */
- public void setActivatedAt(final DateTime activatedAt) {
+ public void setActivatedAt(final ZonedDateTime activatedAt) {
this.activatedAt = activatedAt;
}
@@ -186,32 +186,32 @@ public void setAutoRenew(final Boolean autoRenew) {
}
/** When the external subscription was canceled in the external platform. */
- public DateTime getCanceledAt() {
+ public ZonedDateTime getCanceledAt() {
return this.canceledAt;
}
/** @param canceledAt When the external subscription was canceled in the external platform. */
- public void setCanceledAt(final DateTime canceledAt) {
+ public void setCanceledAt(final ZonedDateTime canceledAt) {
this.canceledAt = canceledAt;
}
/** When the external subscription was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the external subscription was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
/** When the external subscription expires in the external platform. */
- public DateTime getExpiresAt() {
+ public ZonedDateTime getExpiresAt() {
return this.expiresAt;
}
/** @param expiresAt When the external subscription expires in the external platform. */
- public void setExpiresAt(final DateTime expiresAt) {
+ public void setExpiresAt(final ZonedDateTime expiresAt) {
this.expiresAt = expiresAt;
}
@@ -297,7 +297,7 @@ public void setInGracePeriod(final Boolean inGracePeriod) {
* When a new billing event occurred on the external subscription in conjunction with a recent
* billing period, reactivation or upgrade/downgrade.
*/
- public DateTime getLastPurchased() {
+ public ZonedDateTime getLastPurchased() {
return this.lastPurchased;
}
@@ -305,7 +305,7 @@ public DateTime getLastPurchased() {
* @param lastPurchased When a new billing event occurred on the external subscription in
* conjunction with a recent billing period, reactivation or upgrade/downgrade.
*/
- public void setLastPurchased(final DateTime lastPurchased) {
+ public void setLastPurchased(final ZonedDateTime lastPurchased) {
this.lastPurchased = lastPurchased;
}
@@ -361,19 +361,19 @@ public void setTest(final Boolean test) {
}
/** When the external subscription trial period ends in the external platform. */
- public DateTime getTrialEndsAt() {
+ public ZonedDateTime getTrialEndsAt() {
return this.trialEndsAt;
}
/**
* @param trialEndsAt When the external subscription trial period ends in the external platform.
*/
- public void setTrialEndsAt(final DateTime trialEndsAt) {
+ public void setTrialEndsAt(final ZonedDateTime trialEndsAt) {
this.trialEndsAt = trialEndsAt;
}
/** When the external subscription trial period started in the external platform. */
- public DateTime getTrialStartedAt() {
+ public ZonedDateTime getTrialStartedAt() {
return this.trialStartedAt;
}
@@ -381,17 +381,17 @@ public DateTime getTrialStartedAt() {
* @param trialStartedAt When the external subscription trial period started in the external
* platform.
*/
- public void setTrialStartedAt(final DateTime trialStartedAt) {
+ public void setTrialStartedAt(final ZonedDateTime trialStartedAt) {
this.trialStartedAt = trialStartedAt;
}
/** When the external subscription was updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the external subscription was updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/GeneralLedgerAccount.java b/src/main/java/com/recurly/v3/resources/GeneralLedgerAccount.java
index 8118fb2..4b31fff 100644
--- a/src/main/java/com/recurly/v3/resources/GeneralLedgerAccount.java
+++ b/src/main/java/com/recurly/v3/resources/GeneralLedgerAccount.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class GeneralLedgerAccount extends Resource {
@@ -28,7 +28,7 @@ public class GeneralLedgerAccount extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Optional description. */
@SerializedName("description")
@@ -51,7 +51,7 @@ public class GeneralLedgerAccount extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
public Constants.GeneralLedgerAccountType getAccountType() {
return this.accountType;
@@ -79,12 +79,12 @@ public void setCode(final String code) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -125,12 +125,12 @@ public void setObject(final String object) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/GiftCard.java b/src/main/java/com/recurly/v3/resources/GiftCard.java
index 72e66cf..d6883b5 100644
--- a/src/main/java/com/recurly/v3/resources/GiftCard.java
+++ b/src/main/java/com/recurly/v3/resources/GiftCard.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class GiftCard extends Resource {
@@ -25,12 +25,12 @@ public class GiftCard extends Resource {
/** When the gift card was canceled. */
@SerializedName("canceled_at")
@Expose
- private DateTime canceledAt;
+ private ZonedDateTime canceledAt;
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** 3-letter ISO 4217 currency code. */
@SerializedName("currency")
@@ -44,7 +44,7 @@ public class GiftCard extends Resource {
*/
@SerializedName("delivered_at")
@Expose
- private DateTime deliveredAt;
+ private ZonedDateTime deliveredAt;
/** The delivery details for the gift card. */
@SerializedName("delivery")
@@ -103,7 +103,7 @@ public class GiftCard extends Resource {
/** When the gift card was redeemed by the recipient. */
@SerializedName("redeemed_at")
@Expose
- private DateTime redeemedAt;
+ private ZonedDateTime redeemedAt;
/**
* The unique redemption code for the gift card, generated by Recurly. Will be 16 characters,
@@ -141,7 +141,7 @@ public class GiftCard extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The remaining credit on the recipient account associated with this gift card. Only has a value
@@ -162,22 +162,22 @@ public void setBalance(final BigDecimal balance) {
}
/** When the gift card was canceled. */
- public DateTime getCanceledAt() {
+ public ZonedDateTime getCanceledAt() {
return this.canceledAt;
}
/** @param canceledAt When the gift card was canceled. */
- public void setCanceledAt(final DateTime canceledAt) {
+ public void setCanceledAt(final ZonedDateTime canceledAt) {
this.canceledAt = canceledAt;
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -196,7 +196,7 @@ public void setCurrency(final String currency) {
* "Gift Card Delivery" email template was enabled. This will be empty for post delivery or email
* delivery where the email template was disabled.
*/
- public DateTime getDeliveredAt() {
+ public ZonedDateTime getDeliveredAt() {
return this.deliveredAt;
}
@@ -205,7 +205,7 @@ public DateTime getDeliveredAt() {
* was email and the "Gift Card Delivery" email template was enabled. This will be empty for
* post delivery or email delivery where the email template was disabled.
*/
- public void setDeliveredAt(final DateTime deliveredAt) {
+ public void setDeliveredAt(final ZonedDateTime deliveredAt) {
this.deliveredAt = deliveredAt;
}
@@ -322,12 +322,12 @@ public void setRecipientAccountId(final String recipientAccountId) {
}
/** When the gift card was redeemed by the recipient. */
- public DateTime getRedeemedAt() {
+ public ZonedDateTime getRedeemedAt() {
return this.redeemedAt;
}
/** @param redeemedAt When the gift card was redeemed by the recipient. */
- public void setRedeemedAt(final DateTime redeemedAt) {
+ public void setRedeemedAt(final ZonedDateTime redeemedAt) {
this.redeemedAt = redeemedAt;
}
@@ -400,12 +400,12 @@ public void setUnitAmount(final BigDecimal unitAmount) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/GiftCardDelivery.java b/src/main/java/com/recurly/v3/resources/GiftCardDelivery.java
index bee21a6..12f197e 100644
--- a/src/main/java/com/recurly/v3/resources/GiftCardDelivery.java
+++ b/src/main/java/com/recurly/v3/resources/GiftCardDelivery.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class GiftCardDelivery extends Resource {
@@ -20,7 +20,7 @@ public class GiftCardDelivery extends Resource {
*/
@SerializedName("deliver_at")
@Expose
- private DateTime deliverAt;
+ private ZonedDateTime deliverAt;
/** The email address of the recipient. */
@SerializedName("email_address")
@@ -62,7 +62,7 @@ public class GiftCardDelivery extends Resource {
* delivered immediately. If a datetime is provided, the delivery will be in an hourly window,
* rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.
*/
- public DateTime getDeliverAt() {
+ public ZonedDateTime getDeliverAt() {
return this.deliverAt;
}
@@ -71,7 +71,7 @@ public DateTime getDeliverAt() {
* card will be delivered immediately. If a datetime is provided, the delivery will be in an
* hourly window, rounding down. For example, 6:23 pm will be in the 6:00 pm hourly batch.
*/
- public void setDeliverAt(final DateTime deliverAt) {
+ public void setDeliverAt(final ZonedDateTime deliverAt) {
this.deliverAt = deliverAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/Invoice.java b/src/main/java/com/recurly/v3/resources/Invoice.java
index 8bab434..0e973f0 100644
--- a/src/main/java/com/recurly/v3/resources/Invoice.java
+++ b/src/main/java/com/recurly/v3/resources/Invoice.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class Invoice extends Resource {
@@ -50,7 +50,7 @@ public class Invoice extends Resource {
/** Date invoice was marked paid or failed. */
@SerializedName("closed_at")
@Expose
- private DateTime closedAt;
+ private ZonedDateTime closedAt;
/**
* An automatic invoice means a corresponding transaction is run using the account's billing
@@ -71,7 +71,7 @@ public class Invoice extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Credit payments */
@SerializedName("credit_payments")
@@ -107,7 +107,7 @@ public class Invoice extends Resource {
/** Date invoice is due. This is the date the net terms are reached. */
@SerializedName("due_at")
@Expose
- private DateTime dueAt;
+ private ZonedDateTime dueAt;
/**
* Unique ID to identify the dunning campaign used when dunning the invoice. For sites without
@@ -295,7 +295,7 @@ public class Invoice extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* Will be `true` when the invoice had a successful response from the tax service and `false` when
@@ -397,12 +397,12 @@ public void setBusinessEntityId(final String businessEntityId) {
}
/** Date invoice was marked paid or failed. */
- public DateTime getClosedAt() {
+ public ZonedDateTime getClosedAt() {
return this.closedAt;
}
/** @param closedAt Date invoice was marked paid or failed. */
- public void setClosedAt(final DateTime closedAt) {
+ public void setClosedAt(final ZonedDateTime closedAt) {
this.closedAt = closedAt;
}
@@ -439,12 +439,12 @@ public void setCouponRedemptions(final List couponRedempti
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -512,12 +512,12 @@ public void setDiscount(final BigDecimal discount) {
}
/** Date invoice is due. This is the date the net terms are reached. */
- public DateTime getDueAt() {
+ public ZonedDateTime getDueAt() {
return this.dueAt;
}
/** @param dueAt Date invoice is due. This is the date the net terms are reached. */
- public void setDueAt(final DateTime dueAt) {
+ public void setDueAt(final ZonedDateTime dueAt) {
this.dueAt = dueAt;
}
@@ -899,12 +899,12 @@ public void setType(final Constants.InvoiceType type) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/InvoiceTemplate.java b/src/main/java/com/recurly/v3/resources/InvoiceTemplate.java
index 2c68330..85d9344 100644
--- a/src/main/java/com/recurly/v3/resources/InvoiceTemplate.java
+++ b/src/main/java/com/recurly/v3/resources/InvoiceTemplate.java
@@ -8,7 +8,7 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class InvoiceTemplate extends Resource {
@@ -20,7 +20,7 @@ public class InvoiceTemplate extends Resource {
/** When the invoice template was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Invoice template description. */
@SerializedName("description")
@@ -39,7 +39,7 @@ public class InvoiceTemplate extends Resource {
/** When the invoice template was updated in Recurly. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Invoice template code. */
public String getCode() {
@@ -52,12 +52,12 @@ public void setCode(final String code) {
}
/** When the invoice template was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the invoice template was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -91,12 +91,12 @@ public void setName(final String name) {
}
/** When the invoice template was updated in Recurly. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the invoice template was updated in Recurly. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/Item.java b/src/main/java/com/recurly/v3/resources/Item.java
index 445707b..b52bc74 100644
--- a/src/main/java/com/recurly/v3/resources/Item.java
+++ b/src/main/java/com/recurly/v3/resources/Item.java
@@ -9,8 +9,8 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class Item extends Resource {
@@ -47,7 +47,7 @@ public class Item extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Item Pricing */
@SerializedName("currencies")
@@ -66,7 +66,7 @@ public class Item extends Resource {
/** Deleted at */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** Optional, description. */
@SerializedName("description")
@@ -159,7 +159,7 @@ public class Item extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Accounting code for invoice line items. */
public String getAccountingCode() {
@@ -222,12 +222,12 @@ public void setCode(final String code) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -260,12 +260,12 @@ public void setCustomFields(final List customFields) {
}
/** Deleted at */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt Deleted at */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -450,12 +450,12 @@ public void setTaxExempt(final Boolean taxExempt) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/LineItem.java b/src/main/java/com/recurly/v3/resources/LineItem.java
index f243c08..654226c 100644
--- a/src/main/java/com/recurly/v3/resources/LineItem.java
+++ b/src/main/java/com/recurly/v3/resources/LineItem.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class LineItem extends Resource {
@@ -73,7 +73,7 @@ public class LineItem extends Resource {
/** When the line item was created. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** The amount of credit from this line item that was applied to the invoice. */
@SerializedName("credit_applied")
@@ -129,7 +129,7 @@ public class LineItem extends Resource {
/** If this date is provided, it indicates the end of a time range. */
@SerializedName("end_date")
@Expose
- private DateTime endDate;
+ private ZonedDateTime endDate;
/**
* Optional Stock Keeping Unit assigned to an item. Available when the Credit Invoices feature is
@@ -336,7 +336,7 @@ public class LineItem extends Resource {
*/
@SerializedName("start_date")
@Expose
- private DateTime startDate;
+ private ZonedDateTime startDate;
/**
* Pending line items are charges or credits on an account that have not been applied to an
@@ -419,7 +419,7 @@ public class LineItem extends Resource {
/** When the line item was last changed. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
@@ -544,12 +544,12 @@ public void setBillForAccountId(final String billForAccountId) {
}
/** When the line item was created. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the line item was created. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -660,12 +660,12 @@ public void setDiscounts(final List discounts) {
}
/** If this date is provided, it indicates the end of a time range. */
- public DateTime getEndDate() {
+ public ZonedDateTime getEndDate() {
return this.endDate;
}
/** @param endDate If this date is provided, it indicates the end of a time range. */
- public void setEndDate(final DateTime endDate) {
+ public void setEndDate(final ZonedDateTime endDate) {
this.endDate = endDate;
}
@@ -1093,7 +1093,7 @@ public void setShippingAddress(final ShippingAddress shippingAddress) {
* If an end date is present, this is value indicates the beginning of a billing time range. If no
* end date is present it indicates billing for a specific date.
*/
- public DateTime getStartDate() {
+ public ZonedDateTime getStartDate() {
return this.startDate;
}
@@ -1101,7 +1101,7 @@ public DateTime getStartDate() {
* @param startDate If an end date is present, this is value indicates the beginning of a billing
* time range. If no end date is present it indicates billing for a specific date.
*/
- public void setStartDate(final DateTime startDate) {
+ public void setStartDate(final ZonedDateTime startDate) {
this.startDate = startDate;
}
@@ -1267,12 +1267,12 @@ public void setUnitAmountDecimal(final String unitAmountDecimal) {
}
/** When the line item was last changed. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the line item was last changed. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/MeasuredUnit.java b/src/main/java/com/recurly/v3/resources/MeasuredUnit.java
index 370a360..b5386c6 100644
--- a/src/main/java/com/recurly/v3/resources/MeasuredUnit.java
+++ b/src/main/java/com/recurly/v3/resources/MeasuredUnit.java
@@ -9,19 +9,19 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class MeasuredUnit extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Deleted at */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** Optional internal description. */
@SerializedName("description")
@@ -59,25 +59,25 @@ public class MeasuredUnit extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
/** Deleted at */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt Deleted at */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -148,12 +148,12 @@ public void setState(final Constants.ActiveState state) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/PerformanceObligation.java b/src/main/java/com/recurly/v3/resources/PerformanceObligation.java
index f70862b..5bbec00 100644
--- a/src/main/java/com/recurly/v3/resources/PerformanceObligation.java
+++ b/src/main/java/com/recurly/v3/resources/PerformanceObligation.java
@@ -8,14 +8,14 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class PerformanceObligation extends Resource {
/** Created At */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* The ID of a performance obligation. Performance obligations are only accessible as a part of
@@ -33,15 +33,15 @@ public class PerformanceObligation extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Created At */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created At */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -72,12 +72,12 @@ public void setName(final String name) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/Plan.java b/src/main/java/com/recurly/v3/resources/Plan.java
index 8d537ed..54ee6b1 100644
--- a/src/main/java/com/recurly/v3/resources/Plan.java
+++ b/src/main/java/com/recurly/v3/resources/Plan.java
@@ -9,8 +9,8 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class Plan extends Resource {
@@ -72,7 +72,7 @@ public class Plan extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Present only when `pricing_model` is `'fixed'`. */
@SerializedName("currencies")
@@ -91,7 +91,7 @@ public class Plan extends Resource {
/** Deleted at */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** Optional description, not displayed. */
@SerializedName("description")
@@ -286,7 +286,7 @@ public class Plan extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Used by Vertex for tax calculations. Possible values are `sale`, `rental`, `lease`. */
@SerializedName("vertex_transaction_type")
@@ -404,12 +404,12 @@ public void setCode(final String code) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -442,12 +442,12 @@ public void setCustomFields(final List customFields) {
}
/** Deleted at */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt Deleted at */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -839,12 +839,12 @@ public void setTrialUnit(final Constants.IntervalUnit trialUnit) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/ShippingAddress.java b/src/main/java/com/recurly/v3/resources/ShippingAddress.java
index 81d2b6a..da90b7f 100644
--- a/src/main/java/com/recurly/v3/resources/ShippingAddress.java
+++ b/src/main/java/com/recurly/v3/resources/ShippingAddress.java
@@ -8,7 +8,7 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ShippingAddress extends Resource {
@@ -33,7 +33,7 @@ public class ShippingAddress extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
@SerializedName("email")
@Expose
@@ -94,7 +94,7 @@ public class ShippingAddress extends Resource {
/** Updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
@SerializedName("vat_number")
@Expose
@@ -139,12 +139,12 @@ public void setCountry(final String country) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -268,12 +268,12 @@ public void setStreet2(final String street2) {
}
/** Updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/ShippingMethod.java b/src/main/java/com/recurly/v3/resources/ShippingMethod.java
index f709db2..2896e1a 100644
--- a/src/main/java/com/recurly/v3/resources/ShippingMethod.java
+++ b/src/main/java/com/recurly/v3/resources/ShippingMethod.java
@@ -8,7 +8,7 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class ShippingMethod extends Resource {
@@ -25,12 +25,12 @@ public class ShippingMethod extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Deleted at */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** Shipping Method ID */
@SerializedName("id")
@@ -87,7 +87,7 @@ public class ShippingMethod extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Accounting code for shipping method. */
public String getAccountingCode() {
@@ -110,22 +110,22 @@ public void setCode(final String code) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
/** Deleted at */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt Deleted at */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -235,12 +235,12 @@ public void setTaxCode(final String taxCode) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/Site.java b/src/main/java/com/recurly/v3/resources/Site.java
index 2a24749..6cad4f5 100644
--- a/src/main/java/com/recurly/v3/resources/Site.java
+++ b/src/main/java/com/recurly/v3/resources/Site.java
@@ -9,8 +9,8 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class Site extends Resource {
@@ -21,12 +21,12 @@ public class Site extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Deleted at */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** A list of features enabled for the site. */
@SerializedName("features")
@@ -64,7 +64,7 @@ public class Site extends Resource {
/** Updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
public Address getAddress() {
return this.address;
@@ -76,22 +76,22 @@ public void setAddress(final Address address) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
/** Deleted at */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt Deleted at */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -167,12 +167,12 @@ public void setSubdomain(final String subdomain) {
}
/** Updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/Subscription.java b/src/main/java/com/recurly/v3/resources/Subscription.java
index 222a0f4..0fdd272 100644
--- a/src/main/java/com/recurly/v3/resources/Subscription.java
+++ b/src/main/java/com/recurly/v3/resources/Subscription.java
@@ -10,9 +10,9 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
import java.util.Map;
-import org.joda.time.DateTime;
public class Subscription extends Resource {
@@ -32,7 +32,7 @@ public class Subscription extends Resource {
/** Activated at */
@SerializedName("activated_at")
@Expose
- private DateTime activatedAt;
+ private ZonedDateTime activatedAt;
/** The invoice ID of the latest invoice created for an active subscription. */
@SerializedName("active_invoice_id")
@@ -61,7 +61,7 @@ public class Subscription extends Resource {
*/
@SerializedName("bank_account_authorized_at")
@Expose
- private DateTime bankAccountAuthorizedAt;
+ private ZonedDateTime bankAccountAuthorizedAt;
/** Billing Info ID. */
@SerializedName("billing_info_id")
@@ -79,7 +79,7 @@ public class Subscription extends Resource {
/** Canceled at */
@SerializedName("canceled_at")
@Expose
- private DateTime canceledAt;
+ private ZonedDateTime canceledAt;
/** Collection method */
@SerializedName("collection_method")
@@ -89,7 +89,7 @@ public class Subscription extends Resource {
/** When the subscription was converted from a gift card. */
@SerializedName("converted_at")
@Expose
- private DateTime convertedAt;
+ private ZonedDateTime convertedAt;
/** Returns subscription level coupon redemptions that are tied to this subscription. */
@SerializedName("coupon_redemptions")
@@ -99,7 +99,7 @@ public class Subscription extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* Controls whether credit invoices are automatically applied to new invoices. The `mode` field
@@ -118,12 +118,12 @@ public class Subscription extends Resource {
/** Current billing period ends at */
@SerializedName("current_period_ends_at")
@Expose
- private DateTime currentPeriodEndsAt;
+ private ZonedDateTime currentPeriodEndsAt;
/** Current billing period started at */
@SerializedName("current_period_started_at")
@Expose
- private DateTime currentPeriodStartedAt;
+ private ZonedDateTime currentPeriodStartedAt;
/**
* When the term ends. This is calculated by a plan's interval and `total_billing_cycles` in a
@@ -131,7 +131,7 @@ public class Subscription extends Resource {
*/
@SerializedName("current_term_ends_at")
@Expose
- private DateTime currentTermEndsAt;
+ private ZonedDateTime currentTermEndsAt;
/**
* The start date of the term when the first billing period starts. The subscription term is the
@@ -140,7 +140,7 @@ public class Subscription extends Resource {
*/
@SerializedName("current_term_started_at")
@Expose
- private DateTime currentTermStartedAt;
+ private ZonedDateTime currentTermStartedAt;
/**
* The custom fields will only be altered when they are included in a request. Sending an empty
@@ -164,7 +164,7 @@ public class Subscription extends Resource {
/** Expires at */
@SerializedName("expires_at")
@Expose
- private DateTime expiresAt;
+ private ZonedDateTime expiresAt;
/** If present, this subscription's transactions will use the payment gateway with this code. */
@SerializedName("gateway_code")
@@ -220,7 +220,7 @@ public class Subscription extends Resource {
/** Null unless subscription is paused or will pause at the end of the current billing period. */
@SerializedName("paused_at")
@Expose
- private DateTime pausedAt;
+ private ZonedDateTime pausedAt;
/** Subscription Change */
@SerializedName("pending_change")
@@ -279,7 +279,7 @@ public class Subscription extends Resource {
*/
@SerializedName("resume_at")
@Expose
- private DateTime resumeAt;
+ private ZonedDateTime resumeAt;
/** Revenue schedule type */
@SerializedName("revenue_schedule_type")
@@ -346,12 +346,12 @@ public class Subscription extends Resource {
/** Trial period ends at */
@SerializedName("trial_ends_at")
@Expose
- private DateTime trialEndsAt;
+ private ZonedDateTime trialEndsAt;
/** Trial period started at */
@SerializedName("trial_started_at")
@Expose
- private DateTime trialStartedAt;
+ private ZonedDateTime trialStartedAt;
/** Subscription unit price */
@SerializedName("unit_amount")
@@ -361,7 +361,7 @@ public class Subscription extends Resource {
/** Last updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
@@ -397,12 +397,12 @@ public void setActionResult(final Map actionResult) {
}
/** Activated at */
- public DateTime getActivatedAt() {
+ public ZonedDateTime getActivatedAt() {
return this.activatedAt;
}
/** @param activatedAt Activated at */
- public void setActivatedAt(final DateTime activatedAt) {
+ public void setActivatedAt(final ZonedDateTime activatedAt) {
this.activatedAt = activatedAt;
}
@@ -453,7 +453,7 @@ public void setAutoRenew(final Boolean autoRenew) {
* alerting customers to reauthorize in 3 years in accordance with NACHA rules. If a subscription
* becomes inactive or the billing info is no longer a bank account, this timestamp is cleared.
*/
- public DateTime getBankAccountAuthorizedAt() {
+ public ZonedDateTime getBankAccountAuthorizedAt() {
return this.bankAccountAuthorizedAt;
}
@@ -463,7 +463,7 @@ public DateTime getBankAccountAuthorizedAt() {
* with NACHA rules. If a subscription becomes inactive or the billing info is no longer a
* bank account, this timestamp is cleared.
*/
- public void setBankAccountAuthorizedAt(final DateTime bankAccountAuthorizedAt) {
+ public void setBankAccountAuthorizedAt(final ZonedDateTime bankAccountAuthorizedAt) {
this.bankAccountAuthorizedAt = bankAccountAuthorizedAt;
}
@@ -494,12 +494,12 @@ public void setBusinessEntityId(final String businessEntityId) {
}
/** Canceled at */
- public DateTime getCanceledAt() {
+ public ZonedDateTime getCanceledAt() {
return this.canceledAt;
}
/** @param canceledAt Canceled at */
- public void setCanceledAt(final DateTime canceledAt) {
+ public void setCanceledAt(final ZonedDateTime canceledAt) {
this.canceledAt = canceledAt;
}
@@ -514,12 +514,12 @@ public void setCollectionMethod(final Constants.CollectionMethod collectionMetho
}
/** When the subscription was converted from a gift card. */
- public DateTime getConvertedAt() {
+ public ZonedDateTime getConvertedAt() {
return this.convertedAt;
}
/** @param convertedAt When the subscription was converted from a gift card. */
- public void setConvertedAt(final DateTime convertedAt) {
+ public void setConvertedAt(final ZonedDateTime convertedAt) {
this.convertedAt = convertedAt;
}
@@ -537,12 +537,12 @@ public void setCouponRedemptions(final List couponRedempti
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -575,22 +575,22 @@ public void setCurrency(final String currency) {
}
/** Current billing period ends at */
- public DateTime getCurrentPeriodEndsAt() {
+ public ZonedDateTime getCurrentPeriodEndsAt() {
return this.currentPeriodEndsAt;
}
/** @param currentPeriodEndsAt Current billing period ends at */
- public void setCurrentPeriodEndsAt(final DateTime currentPeriodEndsAt) {
+ public void setCurrentPeriodEndsAt(final ZonedDateTime currentPeriodEndsAt) {
this.currentPeriodEndsAt = currentPeriodEndsAt;
}
/** Current billing period started at */
- public DateTime getCurrentPeriodStartedAt() {
+ public ZonedDateTime getCurrentPeriodStartedAt() {
return this.currentPeriodStartedAt;
}
/** @param currentPeriodStartedAt Current billing period started at */
- public void setCurrentPeriodStartedAt(final DateTime currentPeriodStartedAt) {
+ public void setCurrentPeriodStartedAt(final ZonedDateTime currentPeriodStartedAt) {
this.currentPeriodStartedAt = currentPeriodStartedAt;
}
@@ -598,7 +598,7 @@ public void setCurrentPeriodStartedAt(final DateTime currentPeriodStartedAt) {
* When the term ends. This is calculated by a plan's interval and `total_billing_cycles` in a
* term. Subscription changes with a `timeframe=renewal` will be applied on this date.
*/
- public DateTime getCurrentTermEndsAt() {
+ public ZonedDateTime getCurrentTermEndsAt() {
return this.currentTermEndsAt;
}
@@ -607,7 +607,7 @@ public DateTime getCurrentTermEndsAt() {
* `total_billing_cycles` in a term. Subscription changes with a `timeframe=renewal` will be
* applied on this date.
*/
- public void setCurrentTermEndsAt(final DateTime currentTermEndsAt) {
+ public void setCurrentTermEndsAt(final ZonedDateTime currentTermEndsAt) {
this.currentTermEndsAt = currentTermEndsAt;
}
@@ -616,7 +616,7 @@ public void setCurrentTermEndsAt(final DateTime currentTermEndsAt) {
* length of time that a customer will be committed to a subscription. A term can span multiple
* billing periods.
*/
- public DateTime getCurrentTermStartedAt() {
+ public ZonedDateTime getCurrentTermStartedAt() {
return this.currentTermStartedAt;
}
@@ -625,7 +625,7 @@ public DateTime getCurrentTermStartedAt() {
* The subscription term is the length of time that a customer will be committed to a
* subscription. A term can span multiple billing periods.
*/
- public void setCurrentTermStartedAt(final DateTime currentTermStartedAt) {
+ public void setCurrentTermStartedAt(final ZonedDateTime currentTermStartedAt) {
this.currentTermStartedAt = currentTermStartedAt;
}
@@ -668,12 +668,12 @@ public void setExpirationReason(final String expirationReason) {
}
/** Expires at */
- public DateTime getExpiresAt() {
+ public ZonedDateTime getExpiresAt() {
return this.expiresAt;
}
/** @param expiresAt Expires at */
- public void setExpiresAt(final DateTime expiresAt) {
+ public void setExpiresAt(final ZonedDateTime expiresAt) {
this.expiresAt = expiresAt;
}
@@ -780,7 +780,7 @@ public void setObject(final String object) {
}
/** Null unless subscription is paused or will pause at the end of the current billing period. */
- public DateTime getPausedAt() {
+ public ZonedDateTime getPausedAt() {
return this.pausedAt;
}
@@ -788,7 +788,7 @@ public DateTime getPausedAt() {
* @param pausedAt Null unless subscription is paused or will pause at the end of the current
* billing period.
*/
- public void setPausedAt(final DateTime pausedAt) {
+ public void setPausedAt(final ZonedDateTime pausedAt) {
this.pausedAt = pausedAt;
}
@@ -908,7 +908,7 @@ public void setRenewalBillingCycles(final Integer renewalBillingCycles) {
* The date the subscription billing resumes following a pause. Null unless the subscription is
* paused or scheduled to be paused.
*/
- public DateTime getResumeAt() {
+ public ZonedDateTime getResumeAt() {
return this.resumeAt;
}
@@ -916,7 +916,7 @@ public DateTime getResumeAt() {
* @param resumeAt The date the subscription billing resumes following a pause. Null unless the
* subscription is paused or scheduled to be paused.
*/
- public void setResumeAt(final DateTime resumeAt) {
+ public void setResumeAt(final ZonedDateTime resumeAt) {
this.resumeAt = resumeAt;
}
@@ -1046,22 +1046,22 @@ public void setTotalBillingCycles(final Integer totalBillingCycles) {
}
/** Trial period ends at */
- public DateTime getTrialEndsAt() {
+ public ZonedDateTime getTrialEndsAt() {
return this.trialEndsAt;
}
/** @param trialEndsAt Trial period ends at */
- public void setTrialEndsAt(final DateTime trialEndsAt) {
+ public void setTrialEndsAt(final ZonedDateTime trialEndsAt) {
this.trialEndsAt = trialEndsAt;
}
/** Trial period started at */
- public DateTime getTrialStartedAt() {
+ public ZonedDateTime getTrialStartedAt() {
return this.trialStartedAt;
}
/** @param trialStartedAt Trial period started at */
- public void setTrialStartedAt(final DateTime trialStartedAt) {
+ public void setTrialStartedAt(final ZonedDateTime trialStartedAt) {
this.trialStartedAt = trialStartedAt;
}
@@ -1076,12 +1076,12 @@ public void setUnitAmount(final BigDecimal unitAmount) {
}
/** Last updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Last updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/SubscriptionAddOn.java b/src/main/java/com/recurly/v3/resources/SubscriptionAddOn.java
index 42a750a..0fdc13c 100644
--- a/src/main/java/com/recurly/v3/resources/SubscriptionAddOn.java
+++ b/src/main/java/com/recurly/v3/resources/SubscriptionAddOn.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class SubscriptionAddOn extends Resource {
@@ -33,12 +33,12 @@ public class SubscriptionAddOn extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** Expired at */
@SerializedName("expired_at")
@Expose
- private DateTime expiredAt;
+ private ZonedDateTime expiredAt;
/** Subscription Add-on ID */
@SerializedName("id")
@@ -109,7 +109,7 @@ public class SubscriptionAddOn extends Resource {
/** Updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The type of calculation to be employed for an add-on. Cumulative billing will sum all usage
@@ -167,22 +167,22 @@ public void setAddOnSource(final Constants.AddOnSource addOnSource) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
/** Expired at */
- public DateTime getExpiredAt() {
+ public ZonedDateTime getExpiredAt() {
return this.expiredAt;
}
/** @param expiredAt Expired at */
- public void setExpiredAt(final DateTime expiredAt) {
+ public void setExpiredAt(final ZonedDateTime expiredAt) {
this.expiredAt = expiredAt;
}
@@ -320,12 +320,12 @@ public void setUnitAmountDecimal(final String unitAmountDecimal) {
}
/** Updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/SubscriptionChange.java b/src/main/java/com/recurly/v3/resources/SubscriptionChange.java
index aac6687..bdd4a21 100644
--- a/src/main/java/com/recurly/v3/resources/SubscriptionChange.java
+++ b/src/main/java/com/recurly/v3/resources/SubscriptionChange.java
@@ -10,15 +10,15 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class SubscriptionChange extends Resource {
/** Activated at */
@SerializedName("activate_at")
@Expose
- private DateTime activateAt;
+ private ZonedDateTime activateAt;
/** Returns `true` if the subscription change is activated. */
@SerializedName("activated")
@@ -43,7 +43,7 @@ public class SubscriptionChange extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/**
* The custom fields will only be altered when they are included in a request. Sending an empty
@@ -57,7 +57,7 @@ public class SubscriptionChange extends Resource {
/** Deleted at */
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
/** The ID of the Subscription Change. */
@SerializedName("id")
@@ -76,7 +76,7 @@ public class SubscriptionChange extends Resource {
*/
@SerializedName("next_bill_date")
@Expose
- private DateTime nextBillDate;
+ private ZonedDateTime nextBillDate;
/** Object type */
@SerializedName("object")
@@ -126,15 +126,15 @@ public class SubscriptionChange extends Resource {
/** Updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** Activated at */
- public DateTime getActivateAt() {
+ public ZonedDateTime getActivateAt() {
return this.activateAt;
}
/** @param activateAt Activated at */
- public void setActivateAt(final DateTime activateAt) {
+ public void setActivateAt(final ZonedDateTime activateAt) {
this.activateAt = activateAt;
}
@@ -179,12 +179,12 @@ public void setBusinessEntity(final BusinessEntityMini businessEntity) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -207,12 +207,12 @@ public void setCustomFields(final List customFields) {
}
/** Deleted at */
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt Deleted at */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}
@@ -241,7 +241,7 @@ public void setInvoiceCollection(final InvoiceCollection invoiceCollection) {
* (`current_period_ends_at`). When combined with proration_settings, proration calculation should
* occur, only supported when timeframe is now.
*/
- public DateTime getNextBillDate() {
+ public ZonedDateTime getNextBillDate() {
return this.nextBillDate;
}
@@ -250,7 +250,7 @@ public DateTime getNextBillDate() {
* start (`current_period_ends_at`). When combined with proration_settings, proration
* calculation should occur, only supported when timeframe is now.
*/
- public void setNextBillDate(final DateTime nextBillDate) {
+ public void setNextBillDate(final ZonedDateTime nextBillDate) {
this.nextBillDate = nextBillDate;
}
@@ -347,12 +347,12 @@ public void setUnitAmount(final BigDecimal unitAmount) {
}
/** Updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/SubscriptionRampIntervalResponse.java b/src/main/java/com/recurly/v3/resources/SubscriptionRampIntervalResponse.java
index 5ba0549..dc14539 100644
--- a/src/main/java/com/recurly/v3/resources/SubscriptionRampIntervalResponse.java
+++ b/src/main/java/com/recurly/v3/resources/SubscriptionRampIntervalResponse.java
@@ -9,14 +9,14 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class SubscriptionRampIntervalResponse extends Resource {
/** Date the ramp interval ends */
@SerializedName("ending_on")
@Expose
- private DateTime endingOn;
+ private ZonedDateTime endingOn;
/** Represents how many billing cycles are left in a ramp interval. */
@SerializedName("remaining_billing_cycles")
@@ -31,7 +31,7 @@ public class SubscriptionRampIntervalResponse extends Resource {
/** Date the ramp interval starts */
@SerializedName("starting_on")
@Expose
- private DateTime startingOn;
+ private ZonedDateTime startingOn;
/** Represents the price for the ramp interval. */
@SerializedName("unit_amount")
@@ -39,12 +39,12 @@ public class SubscriptionRampIntervalResponse extends Resource {
private BigDecimal unitAmount;
/** Date the ramp interval ends */
- public DateTime getEndingOn() {
+ public ZonedDateTime getEndingOn() {
return this.endingOn;
}
/** @param endingOn Date the ramp interval ends */
- public void setEndingOn(final DateTime endingOn) {
+ public void setEndingOn(final ZonedDateTime endingOn) {
this.endingOn = endingOn;
}
@@ -71,12 +71,12 @@ public void setStartingBillingCycle(final Integer startingBillingCycle) {
}
/** Date the ramp interval starts */
- public DateTime getStartingOn() {
+ public ZonedDateTime getStartingOn() {
return this.startingOn;
}
/** @param startingOn Date the ramp interval starts */
- public void setStartingOn(final DateTime startingOn) {
+ public void setStartingOn(final ZonedDateTime startingOn) {
this.startingOn = startingOn;
}
diff --git a/src/main/java/com/recurly/v3/resources/Transaction.java b/src/main/java/com/recurly/v3/resources/Transaction.java
index 67efaa0..3abd1ab 100644
--- a/src/main/java/com/recurly/v3/resources/Transaction.java
+++ b/src/main/java/com/recurly/v3/resources/Transaction.java
@@ -10,9 +10,9 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
import java.util.Map;
-import org.joda.time.DateTime;
public class Transaction extends Resource {
@@ -51,7 +51,7 @@ public class Transaction extends Resource {
/** Collected at, or if not collected yet, the time the transaction was created. */
@SerializedName("collected_at")
@Expose
- private DateTime collectedAt;
+ private ZonedDateTime collectedAt;
/** The method by which the payment was collected. */
@SerializedName("collection_method")
@@ -61,7 +61,7 @@ public class Transaction extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** 3-letter ISO 4217 currency code. */
@SerializedName("currency")
@@ -267,7 +267,7 @@ public class Transaction extends Resource {
/** Updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The UUID is useful for matching data with the CSV exports and building URLs into Recurly's UI.
@@ -288,7 +288,7 @@ public class Transaction extends Resource {
/** Voided at */
@SerializedName("voided_at")
@Expose
- private DateTime voidedAt;
+ private ZonedDateTime voidedAt;
/** Invoice mini details */
@SerializedName("voided_by_invoice")
@@ -364,14 +364,14 @@ public void setBillingAddress(final AddressWithName billingAddress) {
}
/** Collected at, or if not collected yet, the time the transaction was created. */
- public DateTime getCollectedAt() {
+ public ZonedDateTime getCollectedAt() {
return this.collectedAt;
}
/**
* @param collectedAt Collected at, or if not collected yet, the time the transaction was created.
*/
- public void setCollectedAt(final DateTime collectedAt) {
+ public void setCollectedAt(final ZonedDateTime collectedAt) {
this.collectedAt = collectedAt;
}
@@ -386,12 +386,12 @@ public void setCollectionMethod(final Constants.CollectionMethod collectionMetho
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -815,12 +815,12 @@ public void setType(final Constants.TransactionType type) {
}
/** Updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
@@ -858,12 +858,12 @@ public void setVatNumber(final String vatNumber) {
}
/** Voided at */
- public DateTime getVoidedAt() {
+ public ZonedDateTime getVoidedAt() {
return this.voidedAt;
}
/** @param voidedAt Voided at */
- public void setVoidedAt(final DateTime voidedAt) {
+ public void setVoidedAt(final ZonedDateTime voidedAt) {
this.voidedAt = voidedAt;
}
diff --git a/src/main/java/com/recurly/v3/resources/UniqueCouponCode.java b/src/main/java/com/recurly/v3/resources/UniqueCouponCode.java
index 2fd8a48..8e12088 100644
--- a/src/main/java/com/recurly/v3/resources/UniqueCouponCode.java
+++ b/src/main/java/com/recurly/v3/resources/UniqueCouponCode.java
@@ -9,7 +9,7 @@
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class UniqueCouponCode extends Resource {
@@ -31,12 +31,12 @@ public class UniqueCouponCode extends Resource {
/** Created at */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
/** The date and time the coupon was expired early or reached its `max_redemptions`. */
@SerializedName("expired_at")
@Expose
- private DateTime expiredAt;
+ private ZonedDateTime expiredAt;
/** Unique Coupon Code ID */
@SerializedName("id")
@@ -51,7 +51,7 @@ public class UniqueCouponCode extends Resource {
/** The date and time the unique coupon code was redeemed. */
@SerializedName("redeemed_at")
@Expose
- private DateTime redeemedAt;
+ private ZonedDateTime redeemedAt;
/** Indicates if the unique coupon code is redeemable or why not. */
@SerializedName("state")
@@ -61,7 +61,7 @@ public class UniqueCouponCode extends Resource {
/** Updated at */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/** The Coupon code of the parent Bulk Coupon */
public String getBulkCouponCode() {
@@ -94,17 +94,17 @@ public void setCode(final String code) {
}
/** Created at */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt Created at */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
/** The date and time the coupon was expired early or reached its `max_redemptions`. */
- public DateTime getExpiredAt() {
+ public ZonedDateTime getExpiredAt() {
return this.expiredAt;
}
@@ -112,7 +112,7 @@ public DateTime getExpiredAt() {
* @param expiredAt The date and time the coupon was expired early or reached its
* `max_redemptions`.
*/
- public void setExpiredAt(final DateTime expiredAt) {
+ public void setExpiredAt(final ZonedDateTime expiredAt) {
this.expiredAt = expiredAt;
}
@@ -137,12 +137,12 @@ public void setObject(final String object) {
}
/** The date and time the unique coupon code was redeemed. */
- public DateTime getRedeemedAt() {
+ public ZonedDateTime getRedeemedAt() {
return this.redeemedAt;
}
/** @param redeemedAt The date and time the unique coupon code was redeemed. */
- public void setRedeemedAt(final DateTime redeemedAt) {
+ public void setRedeemedAt(final ZonedDateTime redeemedAt) {
this.redeemedAt = redeemedAt;
}
@@ -157,12 +157,12 @@ public void setState(final Constants.CouponCodeState state) {
}
/** Updated at */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt Updated at */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
}
diff --git a/src/main/java/com/recurly/v3/resources/UniqueCouponCodeParams.java b/src/main/java/com/recurly/v3/resources/UniqueCouponCodeParams.java
index d239055..fa48e56 100644
--- a/src/main/java/com/recurly/v3/resources/UniqueCouponCodeParams.java
+++ b/src/main/java/com/recurly/v3/resources/UniqueCouponCodeParams.java
@@ -8,14 +8,14 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class UniqueCouponCodeParams extends Resource {
/** The date-time to be included when listing UniqueCouponCodes */
@SerializedName("begin_time")
@Expose
- private DateTime beginTime;
+ private ZonedDateTime beginTime;
/** The number of UniqueCouponCodes that will be generated */
@SerializedName("limit")
@@ -33,12 +33,12 @@ public class UniqueCouponCodeParams extends Resource {
private String sort;
/** The date-time to be included when listing UniqueCouponCodes */
- public DateTime getBeginTime() {
+ public ZonedDateTime getBeginTime() {
return this.beginTime;
}
/** @param beginTime The date-time to be included when listing UniqueCouponCodes */
- public void setBeginTime(final DateTime beginTime) {
+ public void setBeginTime(final ZonedDateTime beginTime) {
this.beginTime = beginTime;
}
diff --git a/src/main/java/com/recurly/v3/resources/Usage.java b/src/main/java/com/recurly/v3/resources/Usage.java
index 22db80c..0f6cb54 100644
--- a/src/main/java/com/recurly/v3/resources/Usage.java
+++ b/src/main/java/com/recurly/v3/resources/Usage.java
@@ -10,8 +10,8 @@
import com.recurly.v3.Constants;
import com.recurly.v3.Resource;
import java.math.BigDecimal;
+import java.time.ZonedDateTime;
import java.util.List;
-import org.joda.time.DateTime;
public class Usage extends Resource {
@@ -28,12 +28,12 @@ public class Usage extends Resource {
/** When the usage record was billed on an invoice. */
@SerializedName("billed_at")
@Expose
- private DateTime billedAt;
+ private ZonedDateTime billedAt;
/** When the usage record was created in Recurly. */
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
@SerializedName("id")
@Expose
@@ -69,7 +69,7 @@ public class Usage extends Resource {
/** When the usage was recorded in your system. */
@SerializedName("recording_timestamp")
@Expose
- private DateTime recordingTimestamp;
+ private ZonedDateTime recordingTimestamp;
/**
* The pricing model for the add-on. For more information, [click
@@ -102,7 +102,7 @@ public class Usage extends Resource {
/** When the usage record was billed on an invoice. */
@SerializedName("updated_at")
@Expose
- private DateTime updatedAt;
+ private ZonedDateTime updatedAt;
/**
* The percentage taken of the monetary amount of usage tracked. This can be up to 4 decimal
@@ -118,7 +118,7 @@ public class Usage extends Resource {
*/
@SerializedName("usage_timestamp")
@Expose
- private DateTime usageTimestamp;
+ private ZonedDateTime usageTimestamp;
/** Type of usage, returns usage type if `add_on_type` is `usage`. */
@SerializedName("usage_type")
@@ -147,22 +147,22 @@ public void setAmount(final BigDecimal amount) {
}
/** When the usage record was billed on an invoice. */
- public DateTime getBilledAt() {
+ public ZonedDateTime getBilledAt() {
return this.billedAt;
}
/** @param billedAt When the usage record was billed on an invoice. */
- public void setBilledAt(final DateTime billedAt) {
+ public void setBilledAt(final ZonedDateTime billedAt) {
this.billedAt = billedAt;
}
/** When the usage record was created in Recurly. */
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt When the usage record was created in Recurly. */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
@@ -234,12 +234,12 @@ public void setPercentageTiers(final List perce
}
/** When the usage was recorded in your system. */
- public DateTime getRecordingTimestamp() {
+ public ZonedDateTime getRecordingTimestamp() {
return this.recordingTimestamp;
}
/** @param recordingTimestamp When the usage was recorded in your system. */
- public void setRecordingTimestamp(final DateTime recordingTimestamp) {
+ public void setRecordingTimestamp(final ZonedDateTime recordingTimestamp) {
this.recordingTimestamp = recordingTimestamp;
}
@@ -300,12 +300,12 @@ public void setUnitAmountDecimal(final String unitAmountDecimal) {
}
/** When the usage record was billed on an invoice. */
- public DateTime getUpdatedAt() {
+ public ZonedDateTime getUpdatedAt() {
return this.updatedAt;
}
/** @param updatedAt When the usage record was billed on an invoice. */
- public void setUpdatedAt(final DateTime updatedAt) {
+ public void setUpdatedAt(final ZonedDateTime updatedAt) {
this.updatedAt = updatedAt;
}
@@ -329,7 +329,7 @@ public void setUsagePercentage(final BigDecimal usagePercentage) {
* When the usage actually happened. This will define the line item dates this usage is billed
* under and is important for revenue recognition.
*/
- public DateTime getUsageTimestamp() {
+ public ZonedDateTime getUsageTimestamp() {
return this.usageTimestamp;
}
@@ -337,7 +337,7 @@ public DateTime getUsageTimestamp() {
* @param usageTimestamp When the usage actually happened. This will define the line item dates
* this usage is billed under and is important for revenue recognition.
*/
- public void setUsageTimestamp(final DateTime usageTimestamp) {
+ public void setUsageTimestamp(final ZonedDateTime usageTimestamp) {
this.usageTimestamp = usageTimestamp;
}
diff --git a/src/main/java/com/recurly/v3/resources/User.java b/src/main/java/com/recurly/v3/resources/User.java
index 26f4258..e77f87b 100644
--- a/src/main/java/com/recurly/v3/resources/User.java
+++ b/src/main/java/com/recurly/v3/resources/User.java
@@ -8,17 +8,17 @@
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.recurly.v3.Resource;
-import org.joda.time.DateTime;
+import java.time.ZonedDateTime;
public class User extends Resource {
@SerializedName("created_at")
@Expose
- private DateTime createdAt;
+ private ZonedDateTime createdAt;
@SerializedName("deleted_at")
@Expose
- private DateTime deletedAt;
+ private ZonedDateTime deletedAt;
@SerializedName("email")
@Expose
@@ -45,21 +45,21 @@ public class User extends Resource {
@Expose
private String timeZone;
- public DateTime getCreatedAt() {
+ public ZonedDateTime getCreatedAt() {
return this.createdAt;
}
/** @param createdAt */
- public void setCreatedAt(final DateTime createdAt) {
+ public void setCreatedAt(final ZonedDateTime createdAt) {
this.createdAt = createdAt;
}
- public DateTime getDeletedAt() {
+ public ZonedDateTime getDeletedAt() {
return this.deletedAt;
}
/** @param deletedAt */
- public void setDeletedAt(final DateTime deletedAt) {
+ public void setDeletedAt(final ZonedDateTime deletedAt) {
this.deletedAt = deletedAt;
}