Skip to content

Commit

Permalink
Update generated code for v683
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 29, 2023
1 parent 66d60bb commit a9c765e
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 5 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v682
v683
35 changes: 33 additions & 2 deletions src/main/java/com/stripe/param/CustomerCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -1544,9 +1544,15 @@ public static class Tax {
@SerializedName("ip_address")
Object ipAddress;

private Tax(Map<String, Object> extraParams, Object ipAddress) {
/** A flag that indicates whether Stripe should validate the customer tax location. */
@SerializedName("validate_location")
ValidateLocation validateLocation;

private Tax(
Map<String, Object> extraParams, Object ipAddress, ValidateLocation validateLocation) {
this.extraParams = extraParams;
this.ipAddress = ipAddress;
this.validateLocation = validateLocation;
}

public static Builder builder() {
Expand All @@ -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);
}

/**
Expand Down Expand Up @@ -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;
}
}
}

Expand Down
35 changes: 33 additions & 2 deletions src/main/java/com/stripe/param/CustomerUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -1715,9 +1715,15 @@ public static class Tax {
@SerializedName("ip_address")
Object ipAddress;

private Tax(Map<String, Object> extraParams, Object ipAddress) {
/** A flag that indicates whether Stripe should validate the customer tax location. */
@SerializedName("validate_location")
ValidateLocation validateLocation;

private Tax(
Map<String, Object> extraParams, Object ipAddress, ValidateLocation validateLocation) {
this.extraParams = extraParams;
this.ipAddress = ipAddress;
this.validateLocation = validateLocation;
}

public static Builder builder() {
Expand All @@ -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);
}

/**
Expand Down Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit a9c765e

Please sign in to comment.