-
Notifications
You must be signed in to change notification settings - Fork 982
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
Rename STPPaymentIntentAction* -> STPIntentAction* #1208
Conversation
45d19a9
to
40f1942
Compare
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.
lgtm!
|
||
@deprecated Use `redirectToURL` instead. | ||
*/ | ||
@property (nonatomic, strong, nullable, readonly) STPIntentActionRedirectToURL *authorizeWithURL __attribute__((deprecated("Use `redirectToURL` instead", "redirectToURL"))); |
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.
do we need this if we've deprecated the whole class? STPIntentAction.authorizeWithURL
was never shipped
|
||
NS_ASSUME_NONNULL_END | ||
__attribute__((deprecated("Use STPIntentAction instead", "STPIntentAction"))) | ||
typedef STPIntentAction STPPaymentIntentAction; |
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.
oh I see because of the typedef users may still get the drepecation from above
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.
yup!
Stripe/STPIntentAction.m
Outdated
@interface STPIntentAction() | ||
|
||
@property (nonatomic) STPIntentActionType type; | ||
@property (nonatomic, strong, nullable) STPIntentActionRedirectToURL* redirectToURL; |
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.
style-nit on the space after the *
here
Summary
STPPaymentIntentAction
, replaced bySTPIntentAction
STPPaymentIntentActionType
, replaced bySTPIntentActionType
STPPaymentIntentActionRedirectToURL
, replaced bySTPIntentActionTypeRedirectToURL
STPPaymentIntentActionUseStripeSDK
toSTPIntentActionUseStripeSDK
Motivation
In the next PRs, I'll add support for SetupIntent. This object shares these subobjects with PaymentIntent.
Testing
Leaning on existing tests.