Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

make requiredPaymentDetails optional #139

Merged
merged 7 commits into from
Feb 21, 2024

Conversation

finn-block
Copy link
Member

fixes #90

Copy link

changeset-bot bot commented Jan 16, 2024

⚠️ No Changeset found

Latest commit: c974e39

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

github-actions bot commented Jan 16, 2024

TBDocs Report

🛑 Errors: 0
⚠️ Warnings: 12

@tbdex/protocol

  • Project entry file: packages/protocol/src/main.ts

@tbdex/http-client

  • Project entry file: packages/http-client/src/main.ts
📄 File: packages/http-client/src/errors/request-error.ts
⚠️ extractor:ae-missing-release-tag: "RequestErrorParams" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) #L1
⚠️ extractor:ae-undocumented: Missing documentation for "RequestErrorParams". #L1
⚠️ extractor:ae-undocumented: Missing documentation for "recipientDid". #L13
⚠️ extractor:ae-undocumented: Missing documentation for "url". #L14
📄 File: packages/http-client/src/errors/request-token-error.ts
⚠️ extractor:ae-missing-release-tag: "RequestTokenErrorParams" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) #L3
⚠️ extractor:ae-undocumented: Missing documentation for "RequestTokenErrorParams". #L3
📄 File: packages/http-client/src/errors/response-error.ts
⚠️ extractor:ae-missing-release-tag: "ResponseErrorParams" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal) #L3
⚠️ extractor:ae-undocumented: Missing documentation for "ResponseErrorParams". #L3
⚠️ extractor:ae-undocumented: Missing documentation for "statusCode". #L15
⚠️ extractor:ae-undocumented: Missing documentation for "details". #L16
⚠️ extractor:ae-undocumented: Missing documentation for "recipientDid". #L17
⚠️ extractor:ae-undocumented: Missing documentation for "url". #L18

@tbdex/http-server

  • Project entry file: packages/http-server/src/main.ts

TBDocs Report Updated at 2024-02-21T01:05:31Z c974e39

@finn-block finn-block force-pushed the requiredPaymentDetails-optional-90 branch from 446724e to 6b67fe0 Compare January 16, 2024 23:35
@finn-block
Copy link
Member Author

left this in draft state because I wasn't sure if further checks were needed. It looks like this field is used in a protoc/src/message-kinds/rfq.ts where it is assumed to be set. Should we have some safety around checking there? I'm missing a lot of context around what this field is and how it may be used.

@diehuxx
Copy link

diehuxx commented Jan 18, 2024

It looks like this field is used in a protoc/src/message-kinds/rfq.ts where it is assumed to be set.

@finn-tbd Good catch. The fix for that would conflict with #141 (which will also make the TS compiler strict enough to catch errors like that in the future). Once #141 is merged, I can push a commit to this PR fixing protoc/src/message-kinds/rfq.ts is that's alright with you.

@finn-block
Copy link
Member Author

sounds good

@diehuxx diehuxx force-pushed the requiredPaymentDetails-optional-90 branch from 6b67fe0 to c6aae4c Compare January 20, 2024 00:40
@diehuxx
Copy link

diehuxx commented Jan 20, 2024

TODO:

@diehuxx diehuxx force-pushed the requiredPaymentDetails-optional-90 branch from 78245e1 to c6aae4c Compare January 23, 2024 01:07
Copy link

codecov bot commented Jan 23, 2024

Codecov Report

Merging #139 (c974e39) into main (ebefc54) will increase coverage by 0.03%.
Report is 2 commits behind head on main.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #139      +/-   ##
==========================================
+ Coverage   92.48%   92.52%   +0.03%     
==========================================
  Files          37       37              
  Lines        2995     3011      +16     
  Branches      321      326       +5     
==========================================
+ Hits         2770     2786      +16     
  Misses        225      225              
Components Coverage Δ
protocol 93.46% <100.00%> (+0.06%) ⬆️
http-client 93.63% <ø> (ø)
http-server 89.49% <ø> (ø)

@finn-block
Copy link
Member Author

Blocked pending TBD54566975/tbdex#227

@diehuxx diehuxx force-pushed the requiredPaymentDetails-optional-90 branch from c6aae4c to d253636 Compare February 13, 2024 23:58
@diehuxx diehuxx marked this pull request as ready for review February 13, 2024 23:58
Copy link
Contributor

@KendallWeihe KendallWeihe left a comment

Choose a reason for hiding this comment

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

one comment added, but not strictly required (opinionated take)

feel free to merge once this blocking PR is merged TBD54566975/tbdex#227

Diane Huxley added 4 commits February 20, 2024 10:05
* main:
  Add external_id field (#163)
  Stricten, test, and bugfix http-server (#170)
  Version Packages (#167)
  Update web5/dids, web5/credentials, web5/crypto, web5/common to latest  (#177)
@diehuxx diehuxx merged commit ffc3af8 into main Feb 21, 2024
16 of 17 checks passed
@diehuxx diehuxx deleted the requiredPaymentDetails-optional-90 branch February 21, 2024 01:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make requiredPaymentDetails optional
4 participants