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

Add types for Confirmation Token GA #556

Merged
merged 4 commits into from
Mar 22, 2024
Merged

Conversation

jsang-stripe
Copy link
Contributor

@jsang-stripe jsang-stripe commented Feb 20, 2024

Summary & motivation

Added types for Confirmation Tokens.

Testing & documentation

Tested

billing_details?: PaymentMethodCreateParams.BillingDetails;
};

/**
Copy link
Contributor Author

Choose a reason for hiding this comment

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

highlight: payment_method is removed

phone?: string | null;
}

export interface PaymentMethodPreview {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are all copied from payment-methods.d.ts

/**
* The customer's billing details.
*/
billing_details?: PaymentMethodCreateParams.BillingDetails;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should allow_redisplay be added with this PR?

Choose a reason for hiding this comment

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

let's separate it from this PR

Copy link

@hungvu-stripe hungvu-stripe left a comment

Choose a reason for hiding this comment

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

overall lgtm, left one question

Comment on lines 452 to 454
if (result.error) {
return console.log(result.error.code);
}

Choose a reason for hiding this comment

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

we should probably remove this console.log?

Copy link
Contributor Author

@jsang-stripe jsang-stripe Feb 23, 2024

Choose a reason for hiding this comment

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

The file doesn't seem to be run and a bunch of console.logs are throughout the file, so I was just copying how others were doing it.

(I believe they just run a typescript checker over it)

Choose a reason for hiding this comment

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

hmm i could see some in tests/types/src/valid.ts but not here. I think we should just remove console.log here and keep in the file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, i'll remove it then

/**
* The customer's billing details.
*/
billing_details?: PaymentMethodCreateParams.BillingDetails;

Choose a reason for hiding this comment

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

let's separate it from this PR

hungvu-stripe
hungvu-stripe previously approved these changes Feb 23, 2024
Copy link

@hungvu-stripe hungvu-stripe left a comment

Choose a reason for hiding this comment

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

🎉

Copy link

stale bot commented Mar 15, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Mar 15, 2024
@stale stale bot closed this Mar 22, 2024
@jsang-stripe jsang-stripe reopened this Mar 22, 2024
@stale stale bot removed the stale label Mar 22, 2024
@jsang-stripe jsang-stripe marked this pull request as ready for review March 22, 2024 17:03
@jsang-stripe jsang-stripe merged commit 0817376 into master Mar 22, 2024
2 checks passed
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.

2 participants