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: add endpoints about ThreeDSecureRequest object. #63

Merged
merged 6 commits into from
Nov 12, 2024

Conversation

@nonz250 nonz250 self-assigned this Nov 11, 2024
@nonz250 nonz250 marked this pull request as ready for review November 11, 2024 07:23
Copy link
Contributor

@natsuki-yamanaka natsuki-yamanaka left a comment

Choose a reason for hiding this comment

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

いくつか

@@ -264,7 +268,7 @@ namespace Payjp {
total_platform_fee?: number,
tenant?: string | null,
product?: any,
three_d_secure_status: string | null,
three_d_secure_status: ThreeDSecureStatus,
Copy link
Contributor

Choose a reason for hiding this comment

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

three_d_secure_statusプロパティは現状chargeとcardにあります。cardも合わせてもらえますか?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fbee108
card 付けるの忘れてました。ありがとうございます。
修正しました✍

@@ -11,6 +11,7 @@ import Transfers from './transfer';
import Statements from './statement';
import Terms from "./term";
import Balances from "./balance";
import ThreeDSecureRequests from "./threeDSecureRequest";
Copy link
Contributor

Choose a reason for hiding this comment

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

クラス名に合わせてファイルもthreeDSecureRequests(末尾のsつける)がいいんじゃないですかね。
本来は他のリソースもそうすべきに見える

Copy link
Contributor Author

Choose a reason for hiding this comment

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

振る舞いに変更は無いので一旦このPRではこのままにしておきたいです。
別 PR で対処させてください。

const query = {
resource_id: 'car_xxxxxxxxxxxxxxxxxxxxxxxxx'
};
return payjp.three_d_secure_requests.create(query).then(([_method, _endpoint]) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

queryのassertionも足したいですね

Copy link
Contributor Author

Choose a reason for hiding this comment

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

75a6974
追加しました✍

@nonz250 nonz250 merged commit 3d3b1c4 into master Nov 12, 2024
4 checks passed
@nonz250 nonz250 deleted the nonz250/feat-tds-request-endpoints branch November 12, 2024 02:16
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