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 executives_provided on Account #921

Merged
merged 1 commit into from
Dec 20, 2019
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
9 changes: 9 additions & 0 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -659,6 +659,15 @@ public static class Company extends StripeObject {
@SerializedName("directors_provided")
Boolean directorsProvided;

/**
* Whether the company's executives have been provided. This Boolean will be `true` if you've
* manually indicated that all executives are provided via [the `executives_provided`
* parameter](https://stripe.com/docs/api/accounts/update#update_account-company-executives_provided),
* or if Stripe determined that sufficient executives were provided.
*/
@SerializedName("executives_provided")
Boolean executivesProvided;

/** The company's legal name. */
@SerializedName("name")
String name;
Expand Down
13 changes: 11 additions & 2 deletions src/main/java/com/stripe/model/Customer.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,13 @@ public class Customer extends ApiResource implements HasId, MetadataStore<Custom
@SerializedName("currency")
String currency;

/** ID of the default payment source for the customer. */
/**
* ID of the default payment source for the customer.
*
* <p>If you are using payment methods created via the PaymentMethods API, see the
* [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/object#customer_object-invoice_settings-default_payment_method)
* field instead.
*/
@SerializedName("default_source")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
Expand Down Expand Up @@ -488,7 +494,10 @@ public static class InvoiceSettings extends StripeObject {
@SerializedName("custom_fields")
List<Invoice.CustomField> customFields;

/** ID of the default payment method used for subscriptions and invoices for the customer. */
/**
* ID of a payment method that's attached to the customer, to be used as the customer's default
* payment method for subscriptions and invoices.
*/
@SerializedName("default_payment_method")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/stripe/param/AccountCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,15 @@ public static class Company {
@SerializedName("directors_provided")
Boolean directorsProvided;

/**
* Whether the company's executives have been provided. Set this Boolean to `true` after
* creating all the company's executives with [the Persons
* API](https://stripe.com/docs/api/persons) for accounts with a `relationship.executive`
* requirement.
*/
@SerializedName("executives_provided")
Boolean executivesProvided;

/**
* Map of extra parameters for custom features not available in this client library. The content
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
Expand Down Expand Up @@ -686,6 +695,7 @@ private Company(
AddressKana addressKana,
AddressKanji addressKanji,
Boolean directorsProvided,
Boolean executivesProvided,
Map<String, Object> extraParams,
String name,
String nameKana,
Expand All @@ -700,6 +710,7 @@ private Company(
this.addressKana = addressKana;
this.addressKanji = addressKanji;
this.directorsProvided = directorsProvided;
this.executivesProvided = executivesProvided;
this.extraParams = extraParams;
this.name = name;
this.nameKana = nameKana;
Expand All @@ -725,6 +736,8 @@ public static class Builder {

private Boolean directorsProvided;

private Boolean executivesProvided;

private Map<String, Object> extraParams;

private String name;
Expand Down Expand Up @@ -752,6 +765,7 @@ public Company build() {
this.addressKana,
this.addressKanji,
this.directorsProvided,
this.executivesProvided,
this.extraParams,
this.name,
this.nameKana,
Expand Down Expand Up @@ -794,6 +808,17 @@ public Builder setDirectorsProvided(Boolean directorsProvided) {
return this;
}

/**
* Whether the company's executives have been provided. Set this Boolean to `true` after
* creating all the company's executives with [the Persons
* API](https://stripe.com/docs/api/persons) for accounts with a `relationship.executive`
* requirement.
*/
public Builder setExecutivesProvided(Boolean executivesProvided) {
this.executivesProvided = executivesProvided;
return this;
}

/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
Expand Down
25 changes: 25 additions & 0 deletions src/main/java/com/stripe/param/AccountUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -683,6 +683,15 @@ public static class Company {
@SerializedName("directors_provided")
Boolean directorsProvided;

/**
* Whether the company's executives have been provided. Set this Boolean to `true` after
* creating all the company's executives with [the Persons
* API](https://stripe.com/docs/api/persons) for accounts with a `relationship.executive`
* requirement.
*/
@SerializedName("executives_provided")
Boolean executivesProvided;

/**
* Map of extra parameters for custom features not available in this client library. The content
* in this map is not serialized under this field's {@code @SerializedName} value. Instead, each
Expand Down Expand Up @@ -741,6 +750,7 @@ private Company(
AddressKana addressKana,
AddressKanji addressKanji,
Boolean directorsProvided,
Boolean executivesProvided,
Map<String, Object> extraParams,
Object name,
Object nameKana,
Expand All @@ -755,6 +765,7 @@ private Company(
this.addressKana = addressKana;
this.addressKanji = addressKanji;
this.directorsProvided = directorsProvided;
this.executivesProvided = executivesProvided;
this.extraParams = extraParams;
this.name = name;
this.nameKana = nameKana;
Expand All @@ -780,6 +791,8 @@ public static class Builder {

private Boolean directorsProvided;

private Boolean executivesProvided;

private Map<String, Object> extraParams;

private Object name;
Expand Down Expand Up @@ -807,6 +820,7 @@ public Company build() {
this.addressKana,
this.addressKanji,
this.directorsProvided,
this.executivesProvided,
this.extraParams,
this.name,
this.nameKana,
Expand Down Expand Up @@ -849,6 +863,17 @@ public Builder setDirectorsProvided(Boolean directorsProvided) {
return this;
}

/**
* Whether the company's executives have been provided. Set this Boolean to `true` after
* creating all the company's executives with [the Persons
* API](https://stripe.com/docs/api/persons) for accounts with a `relationship.executive`
* requirement.
*/
public Builder setExecutivesProvided(Boolean executivesProvided) {
this.executivesProvided = executivesProvided;
return this;
}

/**
* Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll`
* call, and subsequent calls add additional key/value pairs to the original map. See {@link
Expand Down
10 changes: 8 additions & 2 deletions src/main/java/com/stripe/param/CustomerCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,10 @@ public static class InvoiceSettings {
@SerializedName("custom_fields")
Object customFields;

/** ID of the default payment method used for subscriptions and invoices for the customer. */
/**
* ID of a payment method that's attached to the customer, to be used as the customer's default
* payment method for subscriptions and invoices.
*/
@SerializedName("default_payment_method")
String defaultPaymentMethod;

Expand Down Expand Up @@ -680,7 +683,10 @@ public Builder setCustomFields(List<CustomField> customFields) {
return this;
}

/** ID of the default payment method used for subscriptions and invoices for the customer. */
/**
* ID of a payment method that's attached to the customer, to be used as the customer's
* default payment method for subscriptions and invoices.
*/
public Builder setDefaultPaymentMethod(String defaultPaymentMethod) {
this.defaultPaymentMethod = defaultPaymentMethod;
return this;
Expand Down
49 changes: 37 additions & 12 deletions src/main/java/com/stripe/param/CustomerUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,15 @@ public class CustomerUpdateParams extends ApiRequestParams {
Object coupon;

/**
* Provide the ID of a payment source already attached to this customer to make it this customer's
* default payment source. If you want to add a new payment source and make it the default, see
* the [source](https://stripe.com/docs/api/customers/update#update_customer-source) property.
* If you are using payment methods created via the PaymentMethods API, see the
* [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method)
* parameter.
*
* <p>Provide the ID of a payment source already attached to this customer to make it this
* customer's default payment source.
*
* <p>If you want to add a new payment source and make it the default, see the
* [source](https://stripe.com/docs/api/customers/update#update_customer-source) property.
*/
@SerializedName("default_source")
Object defaultSource;
Expand Down Expand Up @@ -249,9 +255,14 @@ public Builder setCoupon(EmptyParam coupon) {
}

/**
* Provide the ID of a payment source already attached to this customer to make it this
* customer's default payment source. If you want to add a new payment source and make it the
* default, see the
* If you are using payment methods created via the PaymentMethods API, see the
* [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method)
* parameter.
*
* <p>Provide the ID of a payment source already attached to this customer to make it this
* customer's default payment source.
*
* <p>If you want to add a new payment source and make it the default, see the
* [source](https://stripe.com/docs/api/customers/update#update_customer-source) property.
*/
public Builder setDefaultSource(String defaultSource) {
Expand All @@ -260,9 +271,14 @@ public Builder setDefaultSource(String defaultSource) {
}

/**
* Provide the ID of a payment source already attached to this customer to make it this
* customer's default payment source. If you want to add a new payment source and make it the
* default, see the
* If you are using payment methods created via the PaymentMethods API, see the
* [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method)
* parameter.
*
* <p>Provide the ID of a payment source already attached to this customer to make it this
* customer's default payment source.
*
* <p>If you want to add a new payment source and make it the default, see the
* [source](https://stripe.com/docs/api/customers/update#update_customer-source) property.
*/
public Builder setDefaultSource(EmptyParam defaultSource) {
Expand Down Expand Up @@ -691,7 +707,10 @@ public static class InvoiceSettings {
@SerializedName("custom_fields")
Object customFields;

/** ID of the default payment method used for subscriptions and invoices for the customer. */
/**
* ID of a payment method that's attached to the customer, to be used as the customer's default
* payment method for subscriptions and invoices.
*/
@SerializedName("default_payment_method")
Object defaultPaymentMethod;

Expand Down Expand Up @@ -785,13 +804,19 @@ public Builder setCustomFields(List<CustomField> customFields) {
return this;
}

/** ID of the default payment method used for subscriptions and invoices for the customer. */
/**
* ID of a payment method that's attached to the customer, to be used as the customer's
* default payment method for subscriptions and invoices.
*/
public Builder setDefaultPaymentMethod(String defaultPaymentMethod) {
this.defaultPaymentMethod = defaultPaymentMethod;
return this;
}

/** ID of the default payment method used for subscriptions and invoices for the customer. */
/**
* ID of a payment method that's attached to the customer, to be used as the customer's
* default payment method for subscriptions and invoices.
*/
public Builder setDefaultPaymentMethod(EmptyParam defaultPaymentMethod) {
this.defaultPaymentMethod = defaultPaymentMethod;
return this;
Expand Down