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

Update generated code #1931

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1347
v1409
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/Account.java
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ public static class FutureRequirements extends StripeObject {
List<Account.FutureRequirements.Alternative> alternatives;

/**
* Date on which {@code future_requirements} merges with the main {@code requirements} hash and
* Date on which {@code future_requirements} becomes the main {@code requirements} hash and
* {@code future_requirements} becomes empty. After the transition, {@code currently_due}
* requirements may immediately become {@code past_due}, but the account may also be given a
* grace period depending on its enablement state prior to transitioning.
Expand Down
40 changes: 20 additions & 20 deletions src/main/java/com/stripe/model/AccountSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ public static class AccountManagement extends StripeObject {
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -229,10 +229,10 @@ public static class AccountOnboarding extends StripeObject {
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -274,10 +274,10 @@ public static class Balances extends StripeObject {
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -365,10 +365,10 @@ public static class NotificationBanner extends StripeObject {
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down Expand Up @@ -510,10 +510,10 @@ public static class Payouts extends StripeObject {
public static class Features extends StripeObject {
/**
* Disables Stripe user authentication for this embedded component. This feature can only be
* false for accounts where you’re responsible for collecting updated information when
* requirements are due or change, like custom accounts. The default value for this feature
* is {@code false} when {@code external_account_collection} is enabled and {@code true}
* otherwise.
* {@code true} for accounts where you’re responsible for collecting updated information
* when requirements are due or change, like Custom accounts. The default value for this
* feature is {@code false} when {@code external_account_collection} is enabled and {@code
* true} otherwise.
*/
@SerializedName("disable_stripe_user_authentication")
Boolean disableStripeUserAuthentication;
Expand Down
22 changes: 11 additions & 11 deletions src/main/java/com/stripe/model/BalanceTransaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,13 @@ public class BalanceTransaction extends ApiResource implements HasId {
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@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}. Learn more about <a
* href="https://stripe.com/docs/reports/balance-transaction-types">balance transaction types and
* what they represent</a>. To classify transactions for accounting purposes, consider {@code
* reporting_category} instead.
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@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}. Learn
* more about <a href="https://stripe.com/docs/reports/balance-transaction-types">balance
* transaction types and what they represent</a>. To classify transactions for accounting
* purposes, 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
Expand All @@ -145,10 +145,10 @@ public class BalanceTransaction extends ApiResource implements HasId {
* payment_failure_refund}, {@code payment_network_reserve_hold}, {@code
* payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code
* payment_unreconciled}, {@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}.
* payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@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
2 changes: 1 addition & 1 deletion src/main/java/com/stripe/model/Capability.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public static class FutureRequirements extends StripeObject {
List<Capability.FutureRequirements.Alternative> alternatives;

/**
* Date on which {@code future_requirements} merges with the main {@code requirements} hash and
* Date on which {@code future_requirements} becomes the main {@code requirements} hash and
* {@code future_requirements} becomes empty. After the transition, {@code currently_due}
* requirements may immediately become {@code past_due}, but the account may also be given a
* grace period depending on the capability's enablement state prior to transitioning.
Expand Down
150 changes: 148 additions & 2 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1028,6 +1028,20 @@ public static class LineItem extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Outcome extends StripeObject {
/**
* For charges declined by the network, a 2 digit code which indicates the advice returned by
* the network on how to proceed with an error.
*/
@SerializedName("network_advice_code")
String networkAdviceCode;

/**
* For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates
* the reason the authorization failed.
*/
@SerializedName("network_decline_code")
String networkDeclineCode;

/**
* Possible values are {@code approved_by_network}, {@code declined_by_network}, {@code
* not_sent_to_network}, and {@code reversed_after_approval}. The value {@code
Expand Down Expand Up @@ -1476,7 +1490,73 @@ public static class Alma extends StripeObject {}
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class AmazonPay extends StripeObject {}
public static class AmazonPay extends StripeObject {
@SerializedName("funding")
Funding funding;

/**
* For more details about Funding, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Funding extends StripeObject {
@SerializedName("card")
Card card;

/**
* funding type of the underlying payment method.
*
* <p>Equal to {@code card}.
*/
@SerializedName("type")
String type;

/**
* For more details about Card, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
*/
@SerializedName("brand")
String brand;

/**
* Two-letter ISO code representing the country of the card. You could use this attribute
* to get a sense of the international breakdown of cards you've collected.
*/
@SerializedName("country")
String country;

/** Two-digit number representing the card's expiration month. */
@SerializedName("exp_month")
Long expMonth;

/** Four-digit number representing the card's expiration year. */
@SerializedName("exp_year")
Long expYear;

/**
* Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
* unknown}.
*/
@SerializedName("funding")
String funding;

/** The last four digits of the card. */
@SerializedName("last4")
String last4;
}
}
}

/**
* For more details about AuBecsDebit, please refer to the <a
Expand Down Expand Up @@ -3277,7 +3357,73 @@ public static class Promptpay extends StripeObject {
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class RevolutPay extends StripeObject {}
public static class RevolutPay extends StripeObject {
@SerializedName("funding")
Funding funding;

/**
* For more details about Funding, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Funding extends StripeObject {
@SerializedName("card")
Card card;

/**
* funding type of the underlying payment method.
*
* <p>Equal to {@code card}.
*/
@SerializedName("type")
String type;

/**
* For more details about Card, please refer to the <a
* href="https://docs.stripe.com/api">API Reference.</a>
*/
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Card extends StripeObject {
/**
* Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au},
* {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or
* {@code unknown}.
*/
@SerializedName("brand")
String brand;

/**
* Two-letter ISO code representing the country of the card. You could use this attribute
* to get a sense of the international breakdown of cards you've collected.
*/
@SerializedName("country")
String country;

/** Two-digit number representing the card's expiration month. */
@SerializedName("exp_month")
Long expMonth;

/** Four-digit number representing the card's expiration year. */
@SerializedName("exp_year")
Long expYear;

/**
* Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code
* unknown}.
*/
@SerializedName("funding")
String funding;

/** The last four digits of the card. */
@SerializedName("last4")
String last4;
}
}
}

/**
* For more details about SamsungPay, please refer to the <a
Expand Down
28 changes: 28 additions & 0 deletions src/main/java/com/stripe/model/FundingInstructions.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,16 @@ public static class Aba extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Iban extends StripeObject {
@SerializedName("account_holder_address")
Address accountHolderAddress;

/** The name of the person or business that owns the bank account. */
@SerializedName("account_holder_name")
String accountHolderName;

@SerializedName("bank_address")
Address bankAddress;

/** The BIC/SWIFT code of the account. */
@SerializedName("bic")
String bic;
Expand All @@ -181,6 +187,9 @@ public static class Iban extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class SortCode extends StripeObject {
@SerializedName("account_holder_address")
Address accountHolderAddress;

/** The name of the person or business that owns the bank account. */
@SerializedName("account_holder_name")
String accountHolderName;
Expand All @@ -189,6 +198,9 @@ public static class SortCode extends StripeObject {
@SerializedName("account_number")
String accountNumber;

@SerializedName("bank_address")
Address bankAddress;

/** The six-digit sort code. */
@SerializedName("sort_code")
String sortCode;
Expand All @@ -199,6 +211,16 @@ public static class SortCode extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Spei extends StripeObject {
@SerializedName("account_holder_address")
Address accountHolderAddress;

/** The account holder name. */
@SerializedName("account_holder_name")
String accountHolderName;

@SerializedName("bank_address")
Address bankAddress;

/** The three-digit bank code. */
@SerializedName("bank_code")
String bankCode;
Expand Down Expand Up @@ -249,6 +271,9 @@ public static class Swift extends StripeObject {
@Setter
@EqualsAndHashCode(callSuper = false)
public static class Zengin extends StripeObject {
@SerializedName("account_holder_address")
Address accountHolderAddress;

/** The account holder name. */
@SerializedName("account_holder_name")
String accountHolderName;
Expand All @@ -261,6 +286,9 @@ public static class Zengin extends StripeObject {
@SerializedName("account_type")
String accountType;

@SerializedName("bank_address")
Address bankAddress;

/** The bank code of the account. */
@SerializedName("bank_code")
String bankCode;
Expand Down
Loading
Loading