-
Notifications
You must be signed in to change notification settings - Fork 365
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 ACSS Debit #1195
Merged
Merged
Changes from 1 commit
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5ea540e
codegen
richardm-stripe a98888d
With client_metadata fixes
richardm-stripe ee12681
Update
richardm-stripe 039fae8
fix checkout.Session.PaymentMethodOptions.AcssDebit
richardm-stripe 66c98a1
Add currency
richardm-stripe 8688dff
Properly nest mandate options
richardm-stripe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
With client_metadata fixes
- Loading branch information
commit a98888dacab9415c963e278b0e41aa0fe0126c36
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 0 additions & 4 deletions
4
.../stripe/model/PaymentPagesCheckoutSessionCheckoutSessionResourcePaymentMethodOptions.java
This file was deleted.
Oops, something went wrong.
111 changes: 0 additions & 111 deletions
111
...entPagesCheckoutSessionCheckoutSessionResourcePaymentMethodOptionsTypeAdapterFactory.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -689,7 +689,23 @@ public static class NextAction extends StripeObject { | |
Map<String, Object> useStripeSdk; | ||
|
||
@SerializedName("verify_with_microdeposits") | ||
PaymentIntent.NextActionVerifyWithMicrodeposits verifyWithMicrodeposits; | ||
VerifyWithMicrodeposits verifyWithMicrodeposits; | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public static class VerifyWithMicrodeposits extends StripeObject { | ||
/** The timestamp when the microdeposits are expected to land. */ | ||
@SerializedName("arrival_date") | ||
Long arrivalDate; | ||
|
||
/** | ||
* The URL for the hosted verification page, which allows customers to verify their bank | ||
* account. | ||
*/ | ||
@SerializedName("hosted_verification_url") | ||
String hostedVerificationUrl; | ||
} | ||
} | ||
|
||
@Getter | ||
|
@@ -734,7 +750,7 @@ public static class AcssDebit extends StripeObject { | |
String currency; | ||
|
||
@SerializedName("mandate_options") | ||
AcssDebitMandateOptions mandateOptions; | ||
MandateOptions mandateOptions; | ||
|
||
/** | ||
* Bank account verification method. | ||
|
@@ -748,7 +764,28 @@ public static class AcssDebit extends StripeObject { | |
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public static class AcssDebitMandateOptions extends StripeObject { | ||
public static class Card extends StripeObject { | ||
/** | ||
* We strongly recommend that you rely on our SCA Engine to automatically prompt your | ||
* customers for authentication based on risk level and <a | ||
* href="https://stripe.com/docs/strong-customer-authentication">other requirements</a>. | ||
* However, if you wish to request 3D Secure based on logic from your own fraud engine, | ||
* provide this option. Permitted values include: {@code automatic} or {@code any}. If not | ||
* provided, defaults to {@code automatic}. Read our guide on <a | ||
* href="https://stripe.com/docs/payments/3d-secure#manual-three-ds">manually requesting 3D | ||
* Secure</a> for more information on how this configuration interacts with Radar and our SCA | ||
* Engine. | ||
* | ||
* <p>One of {@code any}, {@code automatic}, or {@code challenge_only}. | ||
*/ | ||
@SerializedName("request_three_d_secure") | ||
String requestThreeDSecure; | ||
} | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public static class MandateOptions extends StripeObject { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, inside |
||
/** A URL for custom mandate text. */ | ||
@SerializedName("custom_mandate_url") | ||
String customMandateUrl; | ||
|
@@ -777,27 +814,6 @@ public static class AcssDebitMandateOptions extends StripeObject { | |
String transactionType; | ||
} | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public static class Card extends StripeObject { | ||
/** | ||
* We strongly recommend that you rely on our SCA Engine to automatically prompt your | ||
* customers for authentication based on risk level and <a | ||
* href="https://stripe.com/docs/strong-customer-authentication">other requirements</a>. | ||
* However, if you wish to request 3D Secure based on logic from your own fraud engine, | ||
* provide this option. Permitted values include: {@code automatic} or {@code any}. If not | ||
* provided, defaults to {@code automatic}. Read our guide on <a | ||
* href="https://stripe.com/docs/payments/3d-secure#manual-three-ds">manually requesting 3D | ||
* Secure</a> for more information on how this configuration interacts with Radar and our SCA | ||
* Engine. | ||
* | ||
* <p>One of {@code any}, {@code automatic}, or {@code challenge_only}. | ||
*/ | ||
@SerializedName("request_three_d_secure") | ||
String requestThreeDSecure; | ||
} | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
|
@@ -811,4 +827,20 @@ public static class SepaDebit extends StripeObject { | |
@EqualsAndHashCode(callSuper = false) | ||
public static class SepaDebitMandateOptions extends StripeObject {} | ||
} | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode(callSuper = false) | ||
public static class VerifyWithMicrodeposits extends StripeObject { | ||
/** The timestamp when the microdeposits are expected to land. */ | ||
@SerializedName("arrival_date") | ||
Long arrivalDate; | ||
|
||
/** | ||
* The URL for the hosted verification page, which allows customers to verify their bank | ||
* account. | ||
*/ | ||
@SerializedName("hosted_verification_url") | ||
String hostedVerificationUrl; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs to be inside
AcssDebit