From a9c765ea140c4f9c5f01133facf05f877886bcfe Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 29 Nov 2023 11:45:15 +0000 Subject: [PATCH] Update generated code for v683 --- OPENAPI_VERSION | 2 +- .../stripe/param/CustomerCreateParams.java | 35 +++++++++++++++++-- .../stripe/param/CustomerUpdateParams.java | 35 +++++++++++++++++-- 3 files changed, 67 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c523b898421..88cba600871 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v682 \ No newline at end of file +v683 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index f190a9cf5d3..1cee1c831fb 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -1544,9 +1544,15 @@ public static class Tax { @SerializedName("ip_address") Object ipAddress; - private Tax(Map extraParams, Object ipAddress) { + /** A flag that indicates whether Stripe should validate the customer tax location. */ + @SerializedName("validate_location") + ValidateLocation validateLocation; + + private Tax( + Map extraParams, Object ipAddress, ValidateLocation validateLocation) { this.extraParams = extraParams; this.ipAddress = ipAddress; + this.validateLocation = validateLocation; } public static Builder builder() { @@ -1558,9 +1564,12 @@ public static class Builder { private Object ipAddress; + private ValidateLocation validateLocation; + /** Finalize and obtain parameter instance from this builder. */ public CustomerCreateParams.Tax build() { - return new CustomerCreateParams.Tax(this.extraParams, this.ipAddress); + return new CustomerCreateParams.Tax( + this.extraParams, this.ipAddress, this.validateLocation); } /** @@ -1610,6 +1619,28 @@ public Builder setIpAddress(EmptyParam ipAddress) { this.ipAddress = ipAddress; return this; } + + /** A flag that indicates whether Stripe should validate the customer tax location. */ + public Builder setValidateLocation( + CustomerCreateParams.Tax.ValidateLocation validateLocation) { + this.validateLocation = validateLocation; + return this; + } + } + + public enum ValidateLocation implements ApiRequestParams.EnumParam { + @SerializedName("deferred") + DEFERRED("deferred"), + + @SerializedName("immediately") + IMMEDIATELY("immediately"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + ValidateLocation(String value) { + this.value = value; + } } } diff --git a/src/main/java/com/stripe/param/CustomerUpdateParams.java b/src/main/java/com/stripe/param/CustomerUpdateParams.java index 5a621981326..117184a5f8e 100644 --- a/src/main/java/com/stripe/param/CustomerUpdateParams.java +++ b/src/main/java/com/stripe/param/CustomerUpdateParams.java @@ -1715,9 +1715,15 @@ public static class Tax { @SerializedName("ip_address") Object ipAddress; - private Tax(Map extraParams, Object ipAddress) { + /** A flag that indicates whether Stripe should validate the customer tax location. */ + @SerializedName("validate_location") + ValidateLocation validateLocation; + + private Tax( + Map extraParams, Object ipAddress, ValidateLocation validateLocation) { this.extraParams = extraParams; this.ipAddress = ipAddress; + this.validateLocation = validateLocation; } public static Builder builder() { @@ -1729,9 +1735,12 @@ public static class Builder { private Object ipAddress; + private ValidateLocation validateLocation; + /** Finalize and obtain parameter instance from this builder. */ public CustomerUpdateParams.Tax build() { - return new CustomerUpdateParams.Tax(this.extraParams, this.ipAddress); + return new CustomerUpdateParams.Tax( + this.extraParams, this.ipAddress, this.validateLocation); } /** @@ -1781,6 +1790,28 @@ public Builder setIpAddress(EmptyParam ipAddress) { this.ipAddress = ipAddress; return this; } + + /** A flag that indicates whether Stripe should validate the customer tax location. */ + public Builder setValidateLocation( + CustomerUpdateParams.Tax.ValidateLocation validateLocation) { + this.validateLocation = validateLocation; + return this; + } + } + + public enum ValidateLocation implements ApiRequestParams.EnumParam { + @SerializedName("deferred") + DEFERRED("deferred"), + + @SerializedName("immediately") + IMMEDIATELY("immediately"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + ValidateLocation(String value) { + this.value = value; + } } }