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

feat(obj-c): add cash app methods (EIT-4059) #262

Merged
merged 10 commits into from
Apr 25, 2024

Conversation

ScottAntonacAP
Copy link
Collaborator

Summary of Changes

This PR exposes methods and classes relating to Cash App for Obj C. These include:

  • validateCashAppOrder()
  • signCashAppOrderToken()
  • cashAppClientId

@ScottAntonacAP ScottAntonacAP added the enhancement New feature or request label Apr 23, 2024
@ScottAntonacAP ScottAntonacAP requested a review from mmroz April 23, 2024 04:33
@ScottAntonacAP ScottAntonacAP self-assigned this Apr 23, 2024
Copy link
Collaborator

@mmroz mmroz left a comment

Choose a reason for hiding this comment

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

LGTM just a couple of questions

// swiftlint:disable type_name

@objc static var cashAppClientId: String {
Afterpay.cashAppClientId ?? ""
Copy link
Collaborator

Choose a reason for hiding this comment

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

Any reason not to make this optional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no reason - great pickup. addressed in 71f61b6


@objc(APCashAppValidationFailedReasonNilData)
public class CashAppValidationFailedReasonNilData: CashAppValidationFailedReason {
init(_ void: ()) {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why do these take a void?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no reason other than to keep consistency with the existing obj-c wrapper code.

@ScottAntonacAP ScottAntonacAP merged commit 40b99db into master Apr 25, 2024
3 checks passed
@ScottAntonacAP ScottAntonacAP deleted the feat/cash-app-obj-c-wrapper-EIT-4059 branch April 25, 2024 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants