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-501] Add snap packs, add outstanding missing resources #235

Merged
merged 12 commits into from
Mar 1, 2024

Conversation

richseviora
Copy link
Contributor

This PR:

  • Adds the Snap Pack resources.
  • Adds outstanding changes to ensure consistency with core specification repo.
  • Moves the individual modules so they are organized consistent with their module name and hierarchy.

@richseviora richseviora marked this pull request as ready for review February 29, 2024 22:49
Copy link

@sachinmurali sachinmurali left a comment

Choose a reason for hiding this comment

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

@richseviora So the main thing that stuck out to me is related to the tracking events. We are referencing the certified tracking events as opposed to the regular tracking events everywhere for snap packs.I had to fix this when working on the openapi docs: https://github.com/lob/lob-openapi/blob/main/resources/snap_packs/models/snap_pack.yml#L57

Snap packs do not accept extra_service as an argument (under which certified is an option). So, why do need to reference the certified tracking events as opposed to normal tracking events object? https://github.com/lob/lob-ruby/pull/235/files#diff-c32b967c6ec06599ed4be0df60c9fb428ca1613a5436ce0e7de94ab722a34fcfR21

include: ['inner_example'], # Array<String> | Request that the response include the total count by specifying `include[]=total_count`.
date_created: { key: Time.now}, # Hash<String, Time> | Filter by date created.
metadata: { key: 'inner_example'}, # Hash<String, String> | Filter by metadata key-value pair`.
size: [Lob::SnapPackSize::N6X18_BIFOLD], # Array<SnapPackSize> | The Snap Pack sizes to be returned.

Choose a reason for hiding this comment

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

We do not support this size with snap packs. Should we update such that we refer to the available sizes and not the self-mailer sizes?

Copy link

@sachinmurali sachinmurali left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the tracking event and size changes. LGTM 👍🏽

@richseviora richseviora merged commit 069bb1c into main Mar 1, 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
Development

Successfully merging this pull request may close these issues.

2 participants