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

Rename STPPaymentIntentAction* -> STPIntentAction* #1208

Merged
merged 3 commits into from
Jun 27, 2019

Conversation

yuki-stripe
Copy link
Collaborator

Summary

  • Deprecates STPPaymentIntentAction* types, replaced by STPIntentAction*.
    • Deprecates STPPaymentIntentAction, replaced by STPIntentAction
    • Deprecates STPPaymentIntentActionType, replaced by STPIntentActionType
    • Deprecates STPPaymentIntentActionRedirectToURL, replaced by STPIntentActionTypeRedirectToURL
    • Renames STPPaymentIntentActionUseStripeSDK to STPIntentActionUseStripeSDK

Motivation

In the next PRs, I'll add support for SetupIntent. This object shares these subobjects with PaymentIntent.

Testing

Leaning on existing tests.

Copy link
Contributor

@csabol-stripe csabol-stripe left a 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")));
Copy link
Contributor

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;
Copy link
Contributor

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

Copy link
Collaborator Author

@yuki-stripe yuki-stripe Jun 27, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup!

@interface STPIntentAction()

@property (nonatomic) STPIntentActionType type;
@property (nonatomic, strong, nullable) STPIntentActionRedirectToURL* redirectToURL;
Copy link
Contributor

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

@yuki-stripe yuki-stripe merged commit a95e5d1 into master Jun 27, 2019
@yuki-stripe yuki-stripe deleted the yuki-rename-action branch June 27, 2019 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants