Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for tos_acceptance[service_agreement] on Account #1120

Merged
merged 1 commit into from
Oct 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1332,22 +1332,22 @@ public static class SettingsPayouts extends StripeObject {
@EqualsAndHashCode(callSuper = false)
public static class TosAcceptance extends StripeObject {
/**
* The Unix timestamp marking when the Stripe Services Agreement was accepted by the account
* representative.
* The Unix timestamp marking when the account representative accepted their service agreement.
*/
@SerializedName("date")
Long date;

/**
* The IP address from which the Stripe Services Agreement was accepted by the account
* representative.
*/
/** The IP address from which the account representative accepted their service agreement. */
@SerializedName("ip")
String ip;

/** The user's service agreement type. */
@SerializedName("service_agreement")
String serviceAgreement;

/**
* The user agent of the browser from which the Stripe Services Agreement was accepted by the
* account representative.
* The user agent of the browser from which the account representative accepted their service
* agreement.
*/
@SerializedName("user_agent")
String userAgent;
Expand Down
47 changes: 30 additions & 17 deletions src/main/java/com/stripe/param/AccountCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -5953,8 +5953,7 @@ public enum WeeklyAnchor implements ApiRequestParams.EnumParam {
@Getter
public static class TosAcceptance {
/**
* The Unix timestamp marking when the account representative accepted the Stripe Services
* Agreement.
* The Unix timestamp marking when the account representative accepted their service agreement.
*/
@SerializedName("date")
Long date;
Expand All @@ -5968,23 +5967,31 @@ public static class TosAcceptance {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/**
* The IP address from which the account representative accepted the Stripe Services Agreement.
*/
/** The IP address from which the account representative accepted their service agreement. */
@SerializedName("ip")
String ip;

/** The user's service agreement type. */
@SerializedName("service_agreement")
String serviceAgreement;

/**
* The user agent of the browser from which the account representative accepted the Stripe
* Services Agreement.
* The user agent of the browser from which the account representative accepted their service
* agreement.
*/
@SerializedName("user_agent")
String userAgent;

private TosAcceptance(Long date, Map<String, Object> extraParams, String ip, String userAgent) {
private TosAcceptance(
Long date,
Map<String, Object> extraParams,
String ip,
String serviceAgreement,
String userAgent) {
this.date = date;
this.extraParams = extraParams;
this.ip = ip;
this.serviceAgreement = serviceAgreement;
this.userAgent = userAgent;
}

Expand All @@ -5999,16 +6006,19 @@ public static class Builder {

private String ip;

private String serviceAgreement;

private String userAgent;

/** Finalize and obtain parameter instance from this builder. */
public TosAcceptance build() {
return new TosAcceptance(this.date, this.extraParams, this.ip, this.userAgent);
return new TosAcceptance(
this.date, this.extraParams, this.ip, this.serviceAgreement, this.userAgent);
}

/**
* The Unix timestamp marking when the account representative accepted the Stripe Services
* Agreement.
* The Unix timestamp marking when the account representative accepted their service
* agreement.
*/
public Builder setDate(Long date) {
this.date = date;
Expand Down Expand Up @@ -6041,18 +6051,21 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/**
* The IP address from which the account representative accepted the Stripe Services
* Agreement.
*/
/** The IP address from which the account representative accepted their service agreement. */
public Builder setIp(String ip) {
this.ip = ip;
return this;
}

/** The user's service agreement type. */
public Builder setServiceAgreement(String serviceAgreement) {
this.serviceAgreement = serviceAgreement;
return this;
}

/**
* The user agent of the browser from which the account representative accepted the Stripe
* Services Agreement.
* The user agent of the browser from which the account representative accepted their service
* agreement.
*/
public Builder setUserAgent(String userAgent) {
this.userAgent = userAgent;
Expand Down
62 changes: 39 additions & 23 deletions src/main/java/com/stripe/param/AccountUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -6579,8 +6579,7 @@ public enum WeeklyAnchor implements ApiRequestParams.EnumParam {
@Getter
public static class TosAcceptance {
/**
* The Unix timestamp marking when the account representative accepted the Stripe Services
* Agreement.
* The Unix timestamp marking when the account representative accepted their service agreement.
*/
@SerializedName("date")
Long date;
Expand All @@ -6594,23 +6593,31 @@ public static class TosAcceptance {
@SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY)
Map<String, Object> extraParams;

/**
* The IP address from which the account representative accepted the Stripe Services Agreement.
*/
/** The IP address from which the account representative accepted their service agreement. */
@SerializedName("ip")
Object ip;

/** The user's service agreement type. */
@SerializedName("service_agreement")
Object serviceAgreement;

/**
* The user agent of the browser from which the account representative accepted the Stripe
* Services Agreement.
* The user agent of the browser from which the account representative accepted their service
* agreement.
*/
@SerializedName("user_agent")
Object userAgent;

private TosAcceptance(Long date, Map<String, Object> extraParams, Object ip, Object userAgent) {
private TosAcceptance(
Long date,
Map<String, Object> extraParams,
Object ip,
Object serviceAgreement,
Object userAgent) {
this.date = date;
this.extraParams = extraParams;
this.ip = ip;
this.serviceAgreement = serviceAgreement;
this.userAgent = userAgent;
}

Expand All @@ -6625,16 +6632,19 @@ public static class Builder {

private Object ip;

private Object serviceAgreement;

private Object userAgent;

/** Finalize and obtain parameter instance from this builder. */
public TosAcceptance build() {
return new TosAcceptance(this.date, this.extraParams, this.ip, this.userAgent);
return new TosAcceptance(
this.date, this.extraParams, this.ip, this.serviceAgreement, this.userAgent);
}

/**
* The Unix timestamp marking when the account representative accepted the Stripe Services
* Agreement.
* The Unix timestamp marking when the account representative accepted their service
* agreement.
*/
public Builder setDate(Long date) {
this.date = date;
Expand Down Expand Up @@ -6667,36 +6677,42 @@ public Builder putAllExtraParam(Map<String, Object> map) {
return this;
}

/**
* The IP address from which the account representative accepted the Stripe Services
* Agreement.
*/
/** The IP address from which the account representative accepted their service agreement. */
public Builder setIp(String ip) {
this.ip = ip;
return this;
}

/**
* The IP address from which the account representative accepted the Stripe Services
* Agreement.
*/
/** The IP address from which the account representative accepted their service agreement. */
public Builder setIp(EmptyParam ip) {
this.ip = ip;
return this;
}

/** The user's service agreement type. */
public Builder setServiceAgreement(String serviceAgreement) {
this.serviceAgreement = serviceAgreement;
return this;
}

/** The user's service agreement type. */
public Builder setServiceAgreement(EmptyParam serviceAgreement) {
this.serviceAgreement = serviceAgreement;
return this;
}

/**
* The user agent of the browser from which the account representative accepted the Stripe
* Services Agreement.
* The user agent of the browser from which the account representative accepted their service
* agreement.
*/
public Builder setUserAgent(String userAgent) {
this.userAgent = userAgent;
return this;
}

/**
* The user agent of the browser from which the account representative accepted the Stripe
* Services Agreement.
* The user agent of the browser from which the account representative accepted their service
* agreement.
*/
public Builder setUserAgent(EmptyParam userAgent) {
this.userAgent = userAgent;
Expand Down