> customCheckoutFields) {
+ this.customCheckoutFields = customCheckoutFields;
+ return this;
+ }
+
/**
* Use OrderedAddOns instead
* @return Reference to {@code this} so that method calls can be chained together.
@@ -1089,6 +1121,7 @@ public CreatePlanGroupRequestBody build() {
checkoutCollectAddress,
checkoutCollectEmail,
checkoutCollectPhone,
+ customCheckoutFields,
customPlanConfig,
customPlanId,
enableTaxCollection,
diff --git a/src/main/java/com/schematic/api/resources/plangroups/requests/UpdatePlanGroupRequestBody.java b/src/main/java/com/schematic/api/resources/plangroups/requests/UpdatePlanGroupRequestBody.java
index 120cf22..a8dc851 100644
--- a/src/main/java/com/schematic/api/resources/plangroups/requests/UpdatePlanGroupRequestBody.java
+++ b/src/main/java/com/schematic/api/resources/plangroups/requests/UpdatePlanGroupRequestBody.java
@@ -12,6 +12,7 @@
import com.fasterxml.jackson.annotation.Nulls;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.schematic.api.core.ObjectMappers;
+import com.schematic.api.types.CheckoutFieldInput;
import com.schematic.api.types.CompatiblePlans;
import com.schematic.api.types.CustomPlanConfig;
import com.schematic.api.types.OrderedPlansInGroup;
@@ -39,6 +40,8 @@ public final class UpdatePlanGroupRequestBody {
private final boolean checkoutCollectPhone;
+ private final Optional> customCheckoutFields;
+
private final Optional customPlanConfig;
private final Optional customPlanId;
@@ -101,6 +104,7 @@ private UpdatePlanGroupRequestBody(
boolean checkoutCollectAddress,
boolean checkoutCollectEmail,
boolean checkoutCollectPhone,
+ Optional> customCheckoutFields,
Optional customPlanConfig,
Optional customPlanId,
boolean enableTaxCollection,
@@ -134,6 +138,7 @@ private UpdatePlanGroupRequestBody(
this.checkoutCollectAddress = checkoutCollectAddress;
this.checkoutCollectEmail = checkoutCollectEmail;
this.checkoutCollectPhone = checkoutCollectPhone;
+ this.customCheckoutFields = customCheckoutFields;
this.customPlanConfig = customPlanConfig;
this.customPlanId = customPlanId;
this.enableTaxCollection = enableTaxCollection;
@@ -192,6 +197,11 @@ public boolean getCheckoutCollectPhone() {
return checkoutCollectPhone;
}
+ @JsonProperty("custom_checkout_fields")
+ public Optional> getCustomCheckoutFields() {
+ return customCheckoutFields;
+ }
+
@JsonProperty("custom_plan_config")
public Optional getCustomPlanConfig() {
return customPlanConfig;
@@ -344,6 +354,7 @@ private boolean equalTo(UpdatePlanGroupRequestBody other) {
&& checkoutCollectAddress == other.checkoutCollectAddress
&& checkoutCollectEmail == other.checkoutCollectEmail
&& checkoutCollectPhone == other.checkoutCollectPhone
+ && customCheckoutFields.equals(other.customCheckoutFields)
&& customPlanConfig.equals(other.customPlanConfig)
&& customPlanId.equals(other.customPlanId)
&& enableTaxCollection == other.enableTaxCollection
@@ -381,6 +392,7 @@ public int hashCode() {
this.checkoutCollectAddress,
this.checkoutCollectEmail,
this.checkoutCollectPhone,
+ this.customCheckoutFields,
this.customPlanConfig,
this.customPlanId,
this.enableTaxCollection,
@@ -497,6 +509,10 @@ public interface _FinalStage {
_FinalStage addAllAddOnIds(List addOnIds);
+ _FinalStage customCheckoutFields(Optional> customCheckoutFields);
+
+ _FinalStage customCheckoutFields(List customCheckoutFields);
+
_FinalStage customPlanConfig(Optional customPlanConfig);
_FinalStage customPlanConfig(CustomPlanConfig customPlanConfig);
@@ -645,6 +661,8 @@ public static final class Builder
private Optional customPlanConfig = Optional.empty();
+ private Optional> customCheckoutFields = Optional.empty();
+
private List addOnIds = new ArrayList<>();
private Optional> addOnCompatibilities = Optional.empty();
@@ -661,6 +679,7 @@ public Builder from(UpdatePlanGroupRequestBody other) {
checkoutCollectAddress(other.getCheckoutCollectAddress());
checkoutCollectEmail(other.getCheckoutCollectEmail());
checkoutCollectPhone(other.getCheckoutCollectPhone());
+ customCheckoutFields(other.getCustomCheckoutFields());
customPlanConfig(other.getCustomPlanConfig());
customPlanId(other.getCustomPlanId());
enableTaxCollection(other.getEnableTaxCollection());
@@ -1033,6 +1052,19 @@ public _FinalStage customPlanConfig(Optional customPlanConfig)
return this;
}
+ @java.lang.Override
+ public _FinalStage customCheckoutFields(List customCheckoutFields) {
+ this.customCheckoutFields = Optional.ofNullable(customCheckoutFields);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "custom_checkout_fields", nulls = Nulls.SKIP)
+ public _FinalStage customCheckoutFields(Optional> customCheckoutFields) {
+ this.customCheckoutFields = customCheckoutFields;
+ return this;
+ }
+
/**
* Use OrderedAddOns instead
* @return Reference to {@code this} so that method calls can be chained together.
@@ -1089,6 +1121,7 @@ public UpdatePlanGroupRequestBody build() {
checkoutCollectAddress,
checkoutCollectEmail,
checkoutCollectPhone,
+ customCheckoutFields,
customPlanConfig,
customPlanId,
enableTaxCollection,
diff --git a/src/main/java/com/schematic/api/types/AccountMemberResponseData.java b/src/main/java/com/schematic/api/types/AccountMemberResponseData.java
index 41e14a3..62db8c8 100644
--- a/src/main/java/com/schematic/api/types/AccountMemberResponseData.java
+++ b/src/main/java/com/schematic/api/types/AccountMemberResponseData.java
@@ -28,10 +28,14 @@ public final class AccountMemberResponseData {
private final Optional email;
+ private final Optional firstName;
+
private final String id;
private final Optional imageUrl;
+ private final Optional lastName;
+
private final Optional name;
private final Map> permissions;
@@ -45,8 +49,10 @@ public final class AccountMemberResponseData {
private AccountMemberResponseData(
OffsetDateTime createdAt,
Optional email,
+ Optional firstName,
String id,
Optional imageUrl,
+ Optional lastName,
Optional name,
Map> permissions,
Optional role,
@@ -54,8 +60,10 @@ private AccountMemberResponseData(
Map additionalProperties) {
this.createdAt = createdAt;
this.email = email;
+ this.firstName = firstName;
this.id = id;
this.imageUrl = imageUrl;
+ this.lastName = lastName;
this.name = name;
this.permissions = permissions;
this.role = role;
@@ -73,6 +81,11 @@ public Optional getEmail() {
return email;
}
+ @JsonProperty("first_name")
+ public Optional getFirstName() {
+ return firstName;
+ }
+
@JsonProperty("id")
public String getId() {
return id;
@@ -83,6 +96,11 @@ public Optional getImageUrl() {
return imageUrl;
}
+ @JsonProperty("last_name")
+ public Optional getLastName() {
+ return lastName;
+ }
+
@JsonProperty("name")
public Optional getName() {
return name;
@@ -117,8 +135,10 @@ public Map getAdditionalProperties() {
private boolean equalTo(AccountMemberResponseData other) {
return createdAt.equals(other.createdAt)
&& email.equals(other.email)
+ && firstName.equals(other.firstName)
&& id.equals(other.id)
&& imageUrl.equals(other.imageUrl)
+ && lastName.equals(other.lastName)
&& name.equals(other.name)
&& permissions.equals(other.permissions)
&& role.equals(other.role)
@@ -130,8 +150,10 @@ public int hashCode() {
return Objects.hash(
this.createdAt,
this.email,
+ this.firstName,
this.id,
this.imageUrl,
+ this.lastName,
this.name,
this.permissions,
this.role,
@@ -172,10 +194,18 @@ public interface _FinalStage {
_FinalStage email(String email);
+ _FinalStage firstName(Optional firstName);
+
+ _FinalStage firstName(String firstName);
+
_FinalStage imageUrl(Optional imageUrl);
_FinalStage imageUrl(String imageUrl);
+ _FinalStage lastName(Optional lastName);
+
+ _FinalStage lastName(String lastName);
+
_FinalStage name(Optional name);
_FinalStage name(String name);
@@ -205,8 +235,12 @@ public static final class Builder implements CreatedAtStage, IdStage, UpdatedAtS
private Optional name = Optional.empty();
+ private Optional lastName = Optional.empty();
+
private Optional imageUrl = Optional.empty();
+ private Optional firstName = Optional.empty();
+
private Optional email = Optional.empty();
@JsonAnySetter
@@ -218,8 +252,10 @@ private Builder() {}
public Builder from(AccountMemberResponseData other) {
createdAt(other.getCreatedAt());
email(other.getEmail());
+ firstName(other.getFirstName());
id(other.getId());
imageUrl(other.getImageUrl());
+ lastName(other.getLastName());
name(other.getName());
permissions(other.getPermissions());
role(other.getRole());
@@ -298,6 +334,19 @@ public _FinalStage name(Optional name) {
return this;
}
+ @java.lang.Override
+ public _FinalStage lastName(String lastName) {
+ this.lastName = Optional.ofNullable(lastName);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "last_name", nulls = Nulls.SKIP)
+ public _FinalStage lastName(Optional lastName) {
+ this.lastName = lastName;
+ return this;
+ }
+
@java.lang.Override
public _FinalStage imageUrl(String imageUrl) {
this.imageUrl = Optional.ofNullable(imageUrl);
@@ -311,6 +360,19 @@ public _FinalStage imageUrl(Optional imageUrl) {
return this;
}
+ @java.lang.Override
+ public _FinalStage firstName(String firstName) {
+ this.firstName = Optional.ofNullable(firstName);
+ return this;
+ }
+
+ @java.lang.Override
+ @JsonSetter(value = "first_name", nulls = Nulls.SKIP)
+ public _FinalStage firstName(Optional firstName) {
+ this.firstName = firstName;
+ return this;
+ }
+
@java.lang.Override
public _FinalStage email(String email) {
this.email = Optional.ofNullable(email);
@@ -327,7 +389,17 @@ public _FinalStage email(Optional email) {
@java.lang.Override
public AccountMemberResponseData build() {
return new AccountMemberResponseData(
- createdAt, email, id, imageUrl, name, permissions, role, updatedAt, additionalProperties);
+ createdAt,
+ email,
+ firstName,
+ id,
+ imageUrl,
+ lastName,
+ name,
+ permissions,
+ role,
+ updatedAt,
+ additionalProperties);
}
@java.lang.Override
diff --git a/src/main/java/com/schematic/api/types/BillingCreditGrantReason.java b/src/main/java/com/schematic/api/types/BillingCreditGrantReason.java
index 2e93252..f7ee8de 100644
--- a/src/main/java/com/schematic/api/types/BillingCreditGrantReason.java
+++ b/src/main/java/com/schematic/api/types/BillingCreditGrantReason.java
@@ -14,6 +14,8 @@ public final class BillingCreditGrantReason {
public static final BillingCreditGrantReason PLAN = new BillingCreditGrantReason(Value.PLAN, "plan");
+ public static final BillingCreditGrantReason ROLLOVER = new BillingCreditGrantReason(Value.ROLLOVER, "rollover");
+
public static final BillingCreditGrantReason BILLING_CREDIT_AUTO_TOPUP =
new BillingCreditGrantReason(Value.BILLING_CREDIT_AUTO_TOPUP, "billing_credit_auto_topup");
@@ -58,6 +60,8 @@ public T visit(Visitor visitor) {
return visitor.visitAdjustment();
case PLAN:
return visitor.visitPlan();
+ case ROLLOVER:
+ return visitor.visitRollover();
case BILLING_CREDIT_AUTO_TOPUP:
return visitor.visitBillingCreditAutoTopup();
case FREE:
@@ -77,6 +81,8 @@ public static BillingCreditGrantReason valueOf(String value) {
return ADJUSTMENT;
case "plan":
return PLAN;
+ case "rollover":
+ return ROLLOVER;
case "billing_credit_auto_topup":
return BILLING_CREDIT_AUTO_TOPUP;
case "free":
@@ -97,6 +103,8 @@ public enum Value {
PURCHASED,
+ ROLLOVER,
+
UNKNOWN
}
@@ -111,6 +119,8 @@ public interface Visitor {
T visitPurchased();
+ T visitRollover();
+
T visitUnknown(String unknownType);
}
}
diff --git a/src/main/java/com/schematic/api/types/BillingCreditGrantResponseData.java b/src/main/java/com/schematic/api/types/BillingCreditGrantResponseData.java
index 072e5ea..14abebb 100644
--- a/src/main/java/com/schematic/api/types/BillingCreditGrantResponseData.java
+++ b/src/main/java/com/schematic/api/types/BillingCreditGrantResponseData.java
@@ -59,6 +59,12 @@ public final class BillingCreditGrantResponseData {
private final Optional renewalPeriod;
+ private final Optional reserved;
+
+ private final Optional settled;
+
+ private final Optional