Skip to content

Commit

Permalink
Update generated code (#1623)
Browse files Browse the repository at this point in the history
* Update generated code for v448

* Update generated code for v450

* Update generated code for v451

* Update generated code for v452

* Update generated code for v454

* Update generated code for v455

* Update generated code for v457

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] authored Aug 10, 2023
1 parent 0adfd13 commit 4fc1c91
Show file tree
Hide file tree
Showing 11 changed files with 106 additions and 48 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v446
v457
29 changes: 15 additions & 14 deletions src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ public static Account create(AccountCreateParams params, RequestOptions options)
* can only be deleted once all balances are zero.
*
* <p>If you want to delete your own account, use the <a
* href="https://dashboard.stripe.com/account">account information tab in your account
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
* settings</a> instead.
*/
public Account delete() throws StripeException {
Expand All @@ -294,7 +294,7 @@ public Account delete() throws StripeException {
* can only be deleted once all balances are zero.
*
* <p>If you want to delete your own account, use the <a
* href="https://dashboard.stripe.com/account">account information tab in your account
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
* settings</a> instead.
*/
public Account delete(RequestOptions options) throws StripeException {
Expand All @@ -309,7 +309,7 @@ public Account delete(RequestOptions options) throws StripeException {
* can only be deleted once all balances are zero.
*
* <p>If you want to delete your own account, use the <a
* href="https://dashboard.stripe.com/account">account information tab in your account
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
* settings</a> instead.
*/
public Account delete(Map<String, Object> params) throws StripeException {
Expand All @@ -324,7 +324,7 @@ public Account delete(Map<String, Object> params) throws StripeException {
* can only be deleted once all balances are zero.
*
* <p>If you want to delete your own account, use the <a
* href="https://dashboard.stripe.com/account">account information tab in your account
* href="https://dashboard.stripe.com/settings/account">account information tab in your account
* settings</a> instead.
*/
public Account delete(Map<String, Object> params, RequestOptions options) throws StripeException {
Expand Down Expand Up @@ -550,7 +550,7 @@ public static Account retrieve(
* <strong>Custom Only</strong> or <strong>Custom and Express</strong> below.
*
* <p>To update your own account, use the <a
* href="https://dashboard.stripe.com/account">Dashboard</a>. Refer to our <a
* href="https://dashboard.stripe.com/settings/account">Dashboard</a>. Refer to our <a
* href="https://stripe.com/docs/connect/updating-accounts">Connect</a> documentation to learn
* more about updating accounts.
*/
Expand All @@ -570,7 +570,7 @@ public Account update(Map<String, Object> params) throws StripeException {
* <strong>Custom Only</strong> or <strong>Custom and Express</strong> below.
*
* <p>To update your own account, use the <a
* href="https://dashboard.stripe.com/account">Dashboard</a>. Refer to our <a
* href="https://dashboard.stripe.com/settings/account">Dashboard</a>. Refer to our <a
* href="https://stripe.com/docs/connect/updating-accounts">Connect</a> documentation to learn
* more about updating accounts.
*/
Expand All @@ -595,7 +595,7 @@ public Account update(Map<String, Object> params, RequestOptions options) throws
* <strong>Custom Only</strong> or <strong>Custom and Express</strong> below.
*
* <p>To update your own account, use the <a
* href="https://dashboard.stripe.com/account">Dashboard</a>. Refer to our <a
* href="https://dashboard.stripe.com/settings/account">Dashboard</a>. Refer to our <a
* href="https://stripe.com/docs/connect/updating-accounts">Connect</a> documentation to learn
* more about updating accounts.
*/
Expand All @@ -614,7 +614,7 @@ public Account update(AccountUpdateParams params) throws StripeException {
* <strong>Custom Only</strong> or <strong>Custom and Express</strong> below.
*
* <p>To update your own account, use the <a
* href="https://dashboard.stripe.com/account">Dashboard</a>. Refer to our <a
* href="https://dashboard.stripe.com/settings/account">Dashboard</a>. Refer to our <a
* href="https://stripe.com/docs/connect/updating-accounts">Connect</a> documentation to learn
* more about updating accounts.
*/
Expand Down Expand Up @@ -1106,12 +1106,13 @@ public static class Company extends StripeObject {
*
* <p>One of {@code free_zone_establishment}, {@code free_zone_llc}, {@code
* government_instrumentality}, {@code governmental_unit}, {@code incorporated_non_profit},
* {@code limited_liability_partnership}, {@code llc}, {@code multi_member_llc}, {@code
* private_company}, {@code private_corporation}, {@code private_partnership}, {@code
* public_company}, {@code public_corporation}, {@code public_partnership}, {@code
* single_member_llc}, {@code sole_establishment}, {@code sole_proprietorship}, {@code
* tax_exempt_government_instrumentality}, {@code unincorporated_association}, or {@code
* unincorporated_non_profit}.
* {@code incorporated_partnership}, {@code limited_liability_partnership}, {@code llc}, {@code
* multi_member_llc}, {@code private_company}, {@code private_corporation}, {@code
* private_partnership}, {@code public_company}, {@code public_corporation}, {@code
* public_partnership}, {@code single_member_llc}, {@code sole_establishment}, {@code
* sole_proprietorship}, {@code tax_exempt_government_instrumentality}, {@code
* unincorporated_association}, {@code unincorporated_non_profit}, or {@code
* unincorporated_partnership}.
*/
@SerializedName("structure")
String structure;
Expand Down
26 changes: 13 additions & 13 deletions src/main/java/com/stripe/model/BalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,25 +113,25 @@ public class BalanceTransaction extends ApiResource implements HasId {
* charge}, {@code connect_collection_transfer}, {@code contribution}, {@code
* issuing_authorization_hold}, {@code issuing_authorization_release}, {@code issuing_dispute},
* {@code issuing_transaction}, {@code payment}, {@code payment_failure_refund}, {@code
* payment_refund}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code refund},
* {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
* transfer_refund}. <a href="https://stripe.com/docs/reports/balance-transaction-types">Learn
* more</a> about balance transaction types and what they represent. If you are looking to
* classify transactions for accounting purposes, you might want to consider {@code
* reporting_category} instead.
* payment_refund}, {@code payment_reversal}, {@code payout}, {@code payout_cancel}, {@code
* payout_failure}, {@code refund}, {@code refund_failure}, {@code reserve_transaction}, {@code
* reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup},
* {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or
* {@code transfer_refund}. <a
* href="https://stripe.com/docs/reports/balance-transaction-types">Learn more</a> about balance
* transaction types and what they represent. If you are looking to classify transactions for
* accounting purposes, you might want to consider {@code reporting_category} instead.
*
* <p>One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code
* anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code
* charge}, {@code connect_collection_transfer}, {@code contribution}, {@code
* issuing_authorization_hold}, {@code issuing_authorization_release}, {@code issuing_dispute},
* {@code issuing_transaction}, {@code payment}, {@code payment_failure_refund}, {@code
* payment_refund}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code refund},
* {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code
* stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal},
* {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code
* transfer_refund}.
* payment_refund}, {@code payment_reversal}, {@code payout}, {@code payout_cancel}, {@code
* payout_failure}, {@code refund}, {@code refund_failure}, {@code reserve_transaction}, {@code
* reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup},
* {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or
* {@code transfer_refund}.
*/
@SerializedName("type")
String type;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/stripe/model/CreditNoteLineItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import lombok.Getter;
import lombok.Setter;

/** The credit note line item object. */
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
43 changes: 40 additions & 3 deletions src/main/java/com/stripe/model/CustomerCashBalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
@Setter
@EqualsAndHashCode(callSuper = false)
public class CustomerCashBalanceTransaction extends StripeObject implements HasId {
@SerializedName("adjusted_for_overdraft")
AdjustedForOverdraft adjustedForOverdraft;

@SerializedName("applied_to_payment")
AppliedToPayment appliedToPayment;

Expand Down Expand Up @@ -85,9 +88,9 @@ public class CustomerCashBalanceTransaction extends StripeObject implements HasI
* href="https://stripe.com/docs/payments/customer-balance#types">Customer Balance</a> to learn
* more about these types.
*
* <p>One of {@code applied_to_payment}, {@code funded}, {@code funding_reversed}, {@code
* refunded_from_payment}, {@code return_canceled}, {@code return_initiated}, or {@code
* unapplied_from_payment}.
* <p>One of {@code adjusted_for_overdraft}, {@code applied_to_payment}, {@code funded}, {@code
* funding_reversed}, {@code refunded_from_payment}, {@code return_canceled}, {@code
* return_initiated}, or {@code unapplied_from_payment}.
*/
@SerializedName("type")
String type;
Expand All @@ -113,6 +116,40 @@ public void setCustomerObject(Customer expandableObject) {
this.customer = new ExpandableField<Customer>(expandableObject.getId(), expandableObject);
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AdjustedForOverdraft extends StripeObject {
/**
* The <a href="https://stripe.com/docs/api/cash_balance_transactions/object">Cash Balance
* Transaction</a> that brought the customer balance negative, triggering the clawback of funds.
*/
@SerializedName("linked_transaction")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
ExpandableField<CustomerCashBalanceTransaction> linkedTransaction;

/** Get ID of expandable {@code linkedTransaction} object. */
public String getLinkedTransaction() {
return (this.linkedTransaction != null) ? this.linkedTransaction.getId() : null;
}

public void setLinkedTransaction(String id) {
this.linkedTransaction = ApiResource.setExpandableFieldId(id, this.linkedTransaction);
}

/** Get expanded {@code linkedTransaction}. */
public CustomerCashBalanceTransaction getLinkedTransactionObject() {
return (this.linkedTransaction != null) ? this.linkedTransaction.getExpanded() : null;
}

public void setLinkedTransactionObject(CustomerCashBalanceTransaction expandableObject) {
this.linkedTransaction =
new ExpandableField<CustomerCashBalanceTransaction>(
expandableObject.getId(), expandableObject);
}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/com/stripe/model/TaxRate.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,9 @@ public class TaxRate extends ApiResource implements HasId, MetadataStore<TaxRate

/**
* Actual/effective tax rate percentage out of 100. For tax calculations with
* automatic_tax[enabled]=true, this percentage does not include the statutory tax rate of
* non-taxable jurisdictions.
* automatic_tax[enabled]=true, this percentage reflects the rate actually used to calculate tax
* based on the product's taxability and whether the user is registered to collect taxes in the
* corresponding jurisdiction.
*/
@SerializedName("effective_percentage")
BigDecimal effectivePercentage;
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/stripe/param/AccountCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -5617,6 +5617,9 @@ public enum Structure implements ApiRequestParams.EnumParam {
@SerializedName("incorporated_non_profit")
INCORPORATED_NON_PROFIT("incorporated_non_profit"),

@SerializedName("incorporated_partnership")
INCORPORATED_PARTNERSHIP("incorporated_partnership"),

@SerializedName("limited_liability_partnership")
LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"),

Expand Down Expand Up @@ -5660,7 +5663,10 @@ public enum Structure implements ApiRequestParams.EnumParam {
UNINCORPORATED_ASSOCIATION("unincorporated_association"),

@SerializedName("unincorporated_non_profit")
UNINCORPORATED_NON_PROFIT("unincorporated_non_profit");
UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"),

@SerializedName("unincorporated_partnership")
UNINCORPORATED_PARTNERSHIP("unincorporated_partnership");

@Getter(onMethod_ = {@Override})
private final String value;
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/stripe/param/AccountUpdateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -5943,6 +5943,9 @@ public enum Structure implements ApiRequestParams.EnumParam {
@SerializedName("incorporated_non_profit")
INCORPORATED_NON_PROFIT("incorporated_non_profit"),

@SerializedName("incorporated_partnership")
INCORPORATED_PARTNERSHIP("incorporated_partnership"),

@SerializedName("limited_liability_partnership")
LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"),

Expand Down Expand Up @@ -5986,7 +5989,10 @@ public enum Structure implements ApiRequestParams.EnumParam {
UNINCORPORATED_ASSOCIATION("unincorporated_association"),

@SerializedName("unincorporated_non_profit")
UNINCORPORATED_NON_PROFIT("unincorporated_non_profit");
UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"),

@SerializedName("unincorporated_partnership")
UNINCORPORATED_PARTNERSHIP("unincorporated_partnership");

@Getter(onMethod_ = {@Override})
private final String value;
Expand Down
20 changes: 10 additions & 10 deletions src/main/java/com/stripe/param/BalanceTransactionListParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ public class BalanceTransactionListParams extends ApiRequestParams {
* application_fee_refund}, {@code charge}, {@code connect_collection_transfer}, {@code
* contribution}, {@code issuing_authorization_hold}, {@code issuing_authorization_release},
* {@code issuing_dispute}, {@code issuing_transaction}, {@code payment}, {@code
* payment_failure_refund}, {@code payment_refund}, {@code payout}, {@code payout_cancel}, {@code
* payout_failure}, {@code refund}, {@code refund_failure}, {@code reserve_transaction}, {@code
* reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup},
* {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or
* {@code transfer_refund}.
* payment_failure_refund}, {@code payment_refund}, {@code payment_reversal}, {@code payout},
* {@code payout_cancel}, {@code payout_failure}, {@code refund}, {@code refund_failure}, {@code
* reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code
* tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel},
* {@code transfer_failure}, or {@code transfer_refund}.
*/
@SerializedName("type")
String type;
Expand Down Expand Up @@ -303,11 +303,11 @@ public Builder setStartingAfter(String startingAfter) {
* application_fee_refund}, {@code charge}, {@code connect_collection_transfer}, {@code
* contribution}, {@code issuing_authorization_hold}, {@code issuing_authorization_release},
* {@code issuing_dispute}, {@code issuing_transaction}, {@code payment}, {@code
* payment_failure_refund}, {@code payment_refund}, {@code payout}, {@code payout_cancel},
* {@code payout_failure}, {@code refund}, {@code refund_failure}, {@code reserve_transaction},
* {@code reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code
* topup}, {@code topup_reversal}, {@code transfer}, {@code transfer_cancel}, {@code
* transfer_failure}, or {@code transfer_refund}.
* payment_failure_refund}, {@code payment_refund}, {@code payment_reversal}, {@code payout},
* {@code payout_cancel}, {@code payout_failure}, {@code refund}, {@code refund_failure}, {@code
* reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee},
* {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code
* transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}.
*/
public Builder setType(String type) {
this.type = type;
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/com/stripe/param/TokenCreateParams.java
Original file line number Diff line number Diff line change
Expand Up @@ -1598,6 +1598,9 @@ public enum Structure implements ApiRequestParams.EnumParam {
@SerializedName("incorporated_non_profit")
INCORPORATED_NON_PROFIT("incorporated_non_profit"),

@SerializedName("incorporated_partnership")
INCORPORATED_PARTNERSHIP("incorporated_partnership"),

@SerializedName("limited_liability_partnership")
LIMITED_LIABILITY_PARTNERSHIP("limited_liability_partnership"),

Expand Down Expand Up @@ -1641,7 +1644,10 @@ public enum Structure implements ApiRequestParams.EnumParam {
UNINCORPORATED_ASSOCIATION("unincorporated_association"),

@SerializedName("unincorporated_non_profit")
UNINCORPORATED_NON_PROFIT("unincorporated_non_profit");
UNINCORPORATED_NON_PROFIT("unincorporated_non_profit"),

@SerializedName("unincorporated_partnership")
UNINCORPORATED_PARTNERSHIP("unincorporated_partnership");

@Getter(onMethod_ = {@Override})
private final String value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class SessionCreateParams extends ApiRequestParams {
FlowData flowData;

/**
* The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the
* The IETF language tag of the locale customer portal is displayed in. If blank or auto, the
* customer’s {@code preferred_locales} or browser’s locale is used.
*/
@SerializedName("locale")
Expand Down Expand Up @@ -205,7 +205,7 @@ public Builder setFlowData(SessionCreateParams.FlowData flowData) {
}

/**
* The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the
* The IETF language tag of the locale customer portal is displayed in. If blank or auto, the
* customer’s {@code preferred_locales} or browser’s locale is used.
*/
public Builder setLocale(SessionCreateParams.Locale locale) {
Expand Down

0 comments on commit 4fc1c91

Please sign in to comment.