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

CMB-341: docs to support legal letters #481

Merged
merged 2 commits into from
Feb 13, 2024
Merged

CMB-341: docs to support legal letters #481

merged 2 commits into from
Feb 13, 2024

Conversation

sachinmurali
Copy link
Contributor

Fixes #<CMB-341>

https://lobsters.atlassian.net/browse/CMB-341

Checklist

  • Up to date with main
  • All the tests are passing
    • Delete all resources created in tests
  • Prettier
  • Spectral Lint
  • npm run bundle outputs nothing suspect
  • npm run postman outputs nothing suspect

Changes

Adds support for legal letters. Legal letters are supported via the size property with the Lob-Version header set to 2024-01-01. The following properties are not applicable / available to legal letters.

  • cards
  • extra_service
  • qr_code
  • fsc

Areas of Concern

First time contributing to the repo. Let me know if I've missed anything.

@sachinmurali sachinmurali requested a review from a team as a code owner February 12, 2024 23:47
@sachinmurali sachinmurali requested a review from a team February 12, 2024 23:48
@@ -1,6 +1,6 @@
{
"name": "@lob/openapi",
"version": "1.19.24",
"version": "1.19.25",
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to upgrade package-lock.json too?

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 probably. I wasn't sure about committing the package-lock.json too. I'll push it.


description: >
Specifies the size of the letter. Currently only applicable for legal letters.
To use `us_legal`, set the [Lob-Version header](#tag/Versioning-and-Changelog) to `2024-01-01`. Do not include this attribute as well the header version set to 2024-01-01 if you are not sending a legal letter.
Copy link
Contributor

Choose a reason for hiding this comment

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

can this be a little bit clearer?

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
To use `us_legal`, set the [Lob-Version header](#tag/Versioning-and-Changelog) to `2024-01-01`. Do not include this attribute as well the header version set to 2024-01-01 if you are not sending a legal letter.
To use `us_legal`, set the [Lob-Version header](#tag/Versioning-and-Changelog) to `2024-01-01`. Do not include neither this attribute nor the header version set to 2024-01-01 if you are not sending a legal letter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@juanfriss updated the verbiage to be less confusing.

Copy link

@samkitsheth95 samkitsheth95 left a comment

Choose a reason for hiding this comment

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

LGTM

@sachinmurali sachinmurali merged commit 7e50102 into main Feb 13, 2024
6 checks passed
@sachinmurali sachinmurali deleted the CMB-341 branch February 13, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants