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

Fix naming convention #107

Merged
merged 7 commits into from
May 13, 2022
Merged

Conversation

EmmetZC
Copy link
Contributor

@EmmetZC EmmetZC commented May 12, 2022

No description provided.

`cert` --> `certificate`
`serialNo` --> `serialNumber`

备注:
本次修改没有选择将 `mch` 修改为 `merchant`,原因是代码中除了`WithMerchantCredential`,其他地方均使用 `mchXXX` 作为 `merchantXXX` 的简写(如:`mchID`,`mchPrivateKey`)
因此在本项目中,在符号命名中使用 `mch` 表示 `merchant` 的行为是一致的。在没有歧义的情况下,没有必要大动干戈进行修改。
可见部分包括:
1. 代码示例
2. 导出方法
3. 导出方法的参数

备注:
内部方法、内部代码等则没有进行此更改。
可见部分包括:
1. 代码示例
2. 导出方法
3. 导出方法的参数

同时为了保持兼容性,`SignResult` 以及 `SHA256WithRSASigner` 等类型的导出字段没有参与此重命名

备注:
内部方法、内部代码等则没有进行此更改。
@EmmetZC EmmetZC merged commit a6d5373 into wechatpay-apiv3:main May 13, 2022
@EmmetZC EmmetZC deleted the fix_naming_convention branch May 13, 2022 10:22
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.

None yet

3 participants