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 PaymentIntent#Status enum #870

Merged
merged 2 commits into from Apr 12, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -435,11 +435,30 @@ public static NextActionType fromCode(@Nullable String code) {
}
}

/**
* See https://stripe.com/docs/api/payment_intents/object#payment_intent_object-status
*/
public enum Status {
RequiresSource("requires_source"),
Canceled("canceled"),
Processing("processing"),
RequiresAction("requires_action"),
RequiresAuthorization("requires_authorization"),
RequiresCapture("requires_capture"),
RequiresConfirmation("requires_confirmation"),
RequiresPaymentMethod("requires_payment_method"),
RequiresSourceAction("requires_source_action"),
RequiresAction("requires_action");
Succeeded("succeeded"),

/**
* @deprecated use {@link #RequiresPaymentMethod}
*/
@Deprecated
RequiresSource("requires_source"),

/**
* @deprecated use {@link #RequiresAction}
*/
@Deprecated
RequiresSourceAction("requires_source_action");

@NonNull
public final String code;
Expand Down