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 collect input types. #721

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Conversation

ianlin-bbpos
Copy link
Collaborator

Summary

Rename collect inputs type names to match JS SDK;

Motivation

The public facing type names for RN SDK is different from the JS SDK. Rename these types for the RN SDK to match that of the JS SDK.

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

Copy link

@zakh-stripe zakh-stripe left a comment

Choose a reason for hiding this comment

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

Thanks for the changes 👍

@@ -859,14 +859,14 @@ class StripeTerminalReactNativeModule(reactContext: ReactApplicationContext) :
@ReactMethod
@Suppress("unused")
fun collectInputs(params: ReadableMap, promise: Promise) = withExceptionResolver(promise) {
val collectInputs = requireParam(params.getArray("collectInputs")) {
val collectInputs = requireParam(params.getArray("inputs")) {
"You must provide a collectInputs"

Choose a reason for hiding this comment

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

Update error message to "inputs"

Copy link

@zakh-stripe zakh-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!

@nazli-stripe nazli-stripe merged commit 9c90709 into main Jun 10, 2024
2 checks passed
@nazli-stripe nazli-stripe deleted the bbpos/rename-collect-input-type branch September 7, 2024 17:13
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