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 #1693

Merged
merged 1 commit into from
Nov 22, 2023
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
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v674
v681
31 changes: 31 additions & 0 deletions src/main/java/com/stripe/model/Charge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,30 @@ public static class ThreeDSecure extends StripeObject {
@SerializedName("authentication_flow")
String authenticationFlow;

/**
* The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of
* authentication was performed.
*
* <p>One of {@code 01}, {@code 02}, {@code 05}, {@code 06}, or {@code 07}.
*/
@SerializedName("electronic_commerce_indicator")
String electronicCommerceIndicator;

/**
* The exemption requested via 3DS and accepted by the issuer at authentication time.
*
* <p>One of {@code low_risk}, or {@code none}.
*/
@SerializedName("exemption_indicator")
String exemptionIndicator;

/**
* Whether Stripe requested the value of {@code exemption_indicator} in the transaction.
* This will depend on the outcome of Stripe's internal risk assessment.
*/
@SerializedName("exemption_indicator_applied")
Boolean exemptionIndicatorApplied;

/**
* Indicates the outcome of 3D Secure authentication.
*
Expand All @@ -1859,6 +1883,13 @@ public static class ThreeDSecure extends StripeObject {
@SerializedName("result_reason")
String resultReason;

/**
* The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID (dsTransId) for this
* payment.
*/
@SerializedName("transaction_id")
String transactionId;

/**
* The version of 3D Secure that was used.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ public class CustomerCashBalanceTransaction extends StripeObject
@SerializedName("refunded_from_payment")
RefundedFromPayment refundedFromPayment;

@SerializedName("transferred_to_balance")
TransferredToBalance transferredToBalance;

/**
* The type of the cash balance transaction. New types may be added in future. See <a
* href="https://stripe.com/docs/payments/customer-balance#types">Customer Balance</a> to learn
Expand Down Expand Up @@ -352,6 +355,39 @@ public void setRefundObject(Refund expandableObject) {
}
}

@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
public static class TransferredToBalance extends StripeObject {
/**
* The <a href="https://stripe.com/docs/api/balance_transactions/object">Balance Transaction</a>
* that corresponds to funds transferred to your Stripe balance.
*/
@SerializedName("balance_transaction")
@Getter(lombok.AccessLevel.NONE)
@Setter(lombok.AccessLevel.NONE)
ExpandableField<BalanceTransaction> balanceTransaction;

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

public void setBalanceTransaction(String id) {
this.balanceTransaction = ApiResource.setExpandableFieldId(id, this.balanceTransaction);
}

/** Get expanded {@code balanceTransaction}. */
public BalanceTransaction getBalanceTransactionObject() {
return (this.balanceTransaction != null) ? this.balanceTransaction.getExpanded() : null;
}

public void setBalanceTransactionObject(BalanceTransaction expandableObject) {
this.balanceTransaction =
new ExpandableField<BalanceTransaction>(expandableObject.getId(), expandableObject);
}
}

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

/**
* Status of the refund. For credit card refunds, this can be {@code pending}, {@code succeeded},
* or {@code failed}. For other types of refunds, it can be {@code pending}, {@code
* requires_action}, {@code succeeded}, {@code failed}, or {@code canceled}. Learn more about <a
* Status of the refund. This can be {@code pending}, {@code requires_action}, {@code succeeded},
* {@code failed}, or {@code canceled}. Learn more about <a
* href="https://stripe.com/docs/refunds#failed-refunds">failed refunds</a>.
*/
@SerializedName("status")
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/com/stripe/model/SetupAttempt.java
Original file line number Diff line number Diff line change
Expand Up @@ -565,6 +565,15 @@ public static class ThreeDSecure extends StripeObject {
@SerializedName("authentication_flow")
String authenticationFlow;

/**
* The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of
* authentication was performed.
*
* <p>One of {@code 01}, {@code 02}, {@code 05}, {@code 06}, or {@code 07}.
*/
@SerializedName("electronic_commerce_indicator")
String electronicCommerceIndicator;

/**
* Indicates the outcome of 3D Secure authentication.
*
Expand All @@ -585,6 +594,13 @@ public static class ThreeDSecure extends StripeObject {
@SerializedName("result_reason")
String resultReason;

/**
* The 3D Secure 1 XID or 3D Secure 2 Directory Server Transaction ID (dsTransId) for this
* payment.
*/
@SerializedName("transaction_id")
String transactionId;

/**
* The version of 3D Secure that was used.
*
Expand Down
27 changes: 14 additions & 13 deletions src/main/java/com/stripe/model/StripeError.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,20 @@ public class StripeError extends StripeObject {
* {@code clearing_code_unsupported}, {@code country_code_invalid}, {@code country_unsupported},
* {@code coupon_expired}, {@code customer_max_payment_methods}, {@code
* customer_max_subscriptions}, {@code debit_not_authorized}, {@code email_invalid}, {@code
* expired_card}, {@code idempotency_key_in_use}, {@code incorrect_address}, {@code
* incorrect_cvc}, {@code incorrect_number}, {@code incorrect_zip}, {@code
* instant_payouts_config_disabled}, {@code instant_payouts_currency_disabled}, {@code
* instant_payouts_limit_exceeded}, {@code instant_payouts_unsupported}, {@code
* insufficient_funds}, {@code intent_invalid_state}, {@code intent_verification_method_missing},
* {@code invalid_card_type}, {@code invalid_characters}, {@code invalid_charge_amount}, {@code
* invalid_cvc}, {@code invalid_expiry_month}, {@code invalid_expiry_year}, {@code
* invalid_number}, {@code invalid_source_usage}, {@code invalid_tax_location}, {@code
* invoice_no_customer_line_items}, {@code invoice_no_payment_method_types}, {@code
* invoice_no_subscription_line_items}, {@code invoice_not_editable}, {@code
* invoice_on_behalf_of_not_editable}, {@code invoice_payment_intent_requires_action}, {@code
* invoice_upcoming_none}, {@code livemode_mismatch}, {@code lock_timeout}, {@code missing},
* {@code no_account}, {@code not_allowed_on_standard_account}, {@code out_of_inventory}, {@code
* expired_card}, {@code financial_connections_account_inactive}, {@code idempotency_key_in_use},
* {@code incorrect_address}, {@code incorrect_cvc}, {@code incorrect_number}, {@code
* incorrect_zip}, {@code instant_payouts_config_disabled}, {@code
* instant_payouts_currency_disabled}, {@code instant_payouts_limit_exceeded}, {@code
* instant_payouts_unsupported}, {@code insufficient_funds}, {@code intent_invalid_state}, {@code
* intent_verification_method_missing}, {@code invalid_card_type}, {@code invalid_characters},
* {@code invalid_charge_amount}, {@code invalid_cvc}, {@code invalid_expiry_month}, {@code
* invalid_expiry_year}, {@code invalid_number}, {@code invalid_source_usage}, {@code
* invalid_tax_location}, {@code invoice_no_customer_line_items}, {@code
* invoice_no_payment_method_types}, {@code invoice_no_subscription_line_items}, {@code
* invoice_not_editable}, {@code invoice_on_behalf_of_not_editable}, {@code
* invoice_payment_intent_requires_action}, {@code invoice_upcoming_none}, {@code
* livemode_mismatch}, {@code lock_timeout}, {@code missing}, {@code no_account}, {@code
* not_allowed_on_standard_account}, {@code out_of_inventory}, {@code
* ownership_declaration_not_allowed}, {@code parameter_invalid_empty}, {@code
* parameter_invalid_integer}, {@code parameter_invalid_string_blank}, {@code
* parameter_invalid_string_empty}, {@code parameter_missing}, {@code parameter_unknown}, {@code
Expand Down
Loading